2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for llvm 2.5svn.
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 more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix
*) set -o posix
;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits
='0123456789'
42 as_cr_alnum
=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
57 # Support unset when possible.
58 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself
=$0 ;;
77 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir
=.
82 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x
; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var
in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C
; export $as_var
115 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
127 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me
=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x
; then
159 if (eval ":") 2>/dev
/null
; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev
/null
; then
225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
226 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir
=.
232 for as_base
in sh bash ksh sh5
; do
233 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
240 for as_shell
in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix
*) set -o posix
;;
262 CONFIG_SHELL
=$as_shell
264 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix
*) set -o posix
;;
290 as_func_ret_success
() {
293 as_func_ret_failure
() {
298 if as_func_success
; then
302 echo as_func_success failed.
305 if as_func_failure
; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success
; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure
; then
319 echo as_func_ret_failure succeeded.
322 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) ||
{ (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x
; then
347 for as_var
in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no
; then
356 echo This
script requires a shell
more modern than all the
357 echo shells that I found on your system. Please
install a
358 echo modern shell
, or manually run the
script under such a
359 echo shell
if you
do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") ||
{
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system
,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x
"$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
476 ECHO_C
= ECHO_N
= ECHO_T
=
480 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
487 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
494 rm -f conf$$ conf$$.exe conf$$.
file
495 if test -d conf$$.dir
; then
496 rm -f conf$$.dir
/conf$$.
file
502 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
510 elif ln conf$$.
file conf$$
2>/dev
/null
; then
515 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
516 rmdir conf$$.dir
2>/dev
/null
518 if mkdir
-p .
2>/dev
/null
; then
521 test -d .
/-p && rmdir .
/-p
525 if test -x / >/dev
/null
2>&1; then
528 if ls -dL / >/dev
/null
2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p
=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 # Check that we are running under the correct shell.
558 SHELL
=${CONFIG_SHELL-/bin/sh}
562 # Remove one level of quotation (which was required for Make).
563 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
568 if test "X$1" = X--no-reexec
; then
569 # Discard the --no-reexec flag, and continue.
571 elif test "X$1" = X--fallback-echo
; then
572 # Avoid inline document here, it may be left over
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575 # Yippee, $echo works!
578 # Restart under the correct shell.
579 exec $SHELL "$0" --no-reexec ${1+"$@"}
582 if test "X$1" = X--fallback-echo
; then
583 # used as fallback echo
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset
; then
597 # find a string as large as possible, as long as the shell can cope with it
598 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
601 echo_test_string
=`eval $cmd` &&
602 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
618 # So, first we look for a working echo in the user's PATH.
620 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
621 for dir
in $PATH /usr
/ucb
; do
623 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
633 if test "X$echo" = Xecho
; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
640 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
641 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL
=/bin
/ksh
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
651 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
656 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
662 SHELL
="$CONFIG_SHELL"
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 echo="$CONFIG_SHELL $0 --fallback-echo"
671 # maybe with a smaller string...
674 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string
=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
687 # Oops. We lost completely, so just stick with echo.
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
706 tagnames
=${tagnames+${tagnames},}CXX
708 tagnames
=${tagnames+${tagnames},}F77
710 exec 7<&0 </dev
/null
6>&1
713 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
714 # so uname gets run too.
715 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
720 ac_default_prefix
=/usr
/local
722 ac_config_libobj_dir
=.
728 SHELL
=${CONFIG_SHELL-/bin/sh}
730 # Identity of this package.
732 PACKAGE_TARNAME
='-llvm-'
733 PACKAGE_VERSION
='2.5svn'
734 PACKAGE_STRING
='llvm 2.5svn'
735 PACKAGE_BUGREPORT
='llvmbugs@cs.uiuc.edu'
737 ac_unique_file
="lib/VMCore/Module.cpp"
738 # Factoring default headers for most tests.
739 ac_includes_default
="\
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
751 # ifdef HAVE_STDLIB_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
783 program_transform_name
849 ENABLE_EXPENSIVE_CHECKS
909 CONVENIENCE_LTDL_TRUE
910 CONVENIENCE_LTDL_FALSE
948 ENABLE_VISIBILITY_INLINES_HIDDEN
952 ac_precious_vars
='build_alias
969 ac_subdirs_all
='projects/sample
971 projects/llvm-stacker
978 projects/llvm-poolalloc
980 projects/llvm-kernel'
982 # Initialize some variables set by options.
984 ac_init_version
=false
985 # The variables have the same names as the options, with
986 # dashes changed to underlines.
994 program_transform_name
=s
,x
,x
,
1002 # Installation directory options.
1003 # These are left unexpanded so users can "make install exec_prefix=/foo"
1004 # and all the variables that are supposed to be based on exec_prefix
1005 # by default will actually change.
1006 # Use braces instead of parens because sh, perl, etc. also accept them.
1007 # (The list follows the same order as the GNU Coding Standards.)
1008 bindir
='${exec_prefix}/bin'
1009 sbindir
='${exec_prefix}/sbin'
1010 libexecdir
='${exec_prefix}/libexec'
1011 datarootdir
='${prefix}/share'
1012 datadir
='${datarootdir}'
1013 sysconfdir
='${prefix}/etc'
1014 sharedstatedir
='${prefix}/com'
1015 localstatedir
='${prefix}/var'
1016 includedir
='${prefix}/include'
1017 oldincludedir
='/usr/include'
1018 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1019 infodir
='${datarootdir}/info'
1024 libdir
='${exec_prefix}/lib'
1025 localedir
='${datarootdir}/locale'
1026 mandir
='${datarootdir}/man'
1032 # If the previous option needs an argument, assign it.
1033 if test -n "$ac_prev"; then
1034 eval $ac_prev=\
$ac_option
1040 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1044 # Accept the important Cygnus configure options, so we can diagnose typos.
1046 case $ac_dashdash$ac_option in
1050 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1052 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1053 bindir
=$ac_optarg ;;
1055 -build |
--build |
--buil |
--bui |
--bu)
1056 ac_prev
=build_alias
;;
1057 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1058 build_alias
=$ac_optarg ;;
1060 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1061 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1062 ac_prev
=cache_file
;;
1063 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1064 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1065 cache_file
=$ac_optarg ;;
1067 --config-cache |
-C)
1068 cache_file
=config.cache
;;
1070 -datadir |
--datadir |
--datadi |
--datad)
1072 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1073 datadir
=$ac_optarg ;;
1075 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1076 |
--dataroo |
--dataro |
--datar)
1077 ac_prev
=datarootdir
;;
1078 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1079 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1080 datarootdir
=$ac_optarg ;;
1082 -disable-* |
--disable-*)
1083 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
1088 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1089 eval enable_
$ac_feature=no
;;
1091 -docdir |
--docdir |
--docdi |
--doc |
--do)
1093 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1094 docdir
=$ac_optarg ;;
1096 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1098 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1099 dvidir
=$ac_optarg ;;
1101 -enable-* |
--enable-*)
1102 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1105 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1108 eval enable_
$ac_feature=\
$ac_optarg ;;
1110 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1111 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1112 |
--exec |
--exe |
--ex)
1113 ac_prev
=exec_prefix
;;
1114 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1115 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1116 |
--exec=* |
--exe=* |
--ex=*)
1117 exec_prefix
=$ac_optarg ;;
1119 -gas |
--gas |
--ga |
--g)
1120 # Obsolete; use --with-gas.
1123 -help |
--help |
--hel |
--he |
-h)
1124 ac_init_help
=long
;;
1125 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1126 ac_init_help
=recursive
;;
1127 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1128 ac_init_help
=short
;;
1130 -host |
--host |
--hos |
--ho)
1131 ac_prev
=host_alias
;;
1132 -host=* |
--host=* |
--hos=* |
--ho=*)
1133 host_alias
=$ac_optarg ;;
1135 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1137 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1139 htmldir
=$ac_optarg ;;
1141 -includedir |
--includedir |
--includedi |
--included |
--include \
1142 |
--includ |
--inclu |
--incl |
--inc)
1143 ac_prev
=includedir
;;
1144 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1145 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1146 includedir
=$ac_optarg ;;
1148 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1150 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1151 infodir
=$ac_optarg ;;
1153 -libdir |
--libdir |
--libdi |
--libd)
1155 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1156 libdir
=$ac_optarg ;;
1158 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1159 |
--libexe |
--libex |
--libe)
1160 ac_prev
=libexecdir
;;
1161 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1162 |
--libexe=* |
--libex=* |
--libe=*)
1163 libexecdir
=$ac_optarg ;;
1165 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1166 ac_prev
=localedir
;;
1167 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1168 localedir
=$ac_optarg ;;
1170 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1171 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1172 ac_prev
=localstatedir
;;
1173 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1174 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1175 localstatedir
=$ac_optarg ;;
1177 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1179 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1180 mandir
=$ac_optarg ;;
1182 -nfp |
--nfp |
--nf)
1183 # Obsolete; use --without-fp.
1186 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1187 |
--no-cr |
--no-c |
-n)
1190 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1191 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1194 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1195 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1196 |
--oldin |
--oldi |
--old |
--ol |
--o)
1197 ac_prev
=oldincludedir
;;
1198 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1199 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1200 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1201 oldincludedir
=$ac_optarg ;;
1203 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1205 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1206 prefix
=$ac_optarg ;;
1208 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1209 |
--program-pre |
--program-pr |
--program-p)
1210 ac_prev
=program_prefix
;;
1211 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1212 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1213 program_prefix
=$ac_optarg ;;
1215 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1216 |
--program-suf |
--program-su |
--program-s)
1217 ac_prev
=program_suffix
;;
1218 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1219 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1220 program_suffix
=$ac_optarg ;;
1222 -program-transform-name |
--program-transform-name \
1223 |
--program-transform-nam |
--program-transform-na \
1224 |
--program-transform-n |
--program-transform- \
1225 |
--program-transform |
--program-transfor \
1226 |
--program-transfo |
--program-transf \
1227 |
--program-trans |
--program-tran \
1228 |
--progr-tra |
--program-tr |
--program-t)
1229 ac_prev
=program_transform_name
;;
1230 -program-transform-name=* |
--program-transform-name=* \
1231 |
--program-transform-nam=* |
--program-transform-na=* \
1232 |
--program-transform-n=* |
--program-transform-=* \
1233 |
--program-transform=* |
--program-transfor=* \
1234 |
--program-transfo=* |
--program-transf=* \
1235 |
--program-trans=* |
--program-tran=* \
1236 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1237 program_transform_name
=$ac_optarg ;;
1239 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1241 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1242 pdfdir
=$ac_optarg ;;
1244 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1246 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1249 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1250 |
-silent |
--silent |
--silen |
--sile |
--sil)
1253 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1255 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1257 sbindir
=$ac_optarg ;;
1259 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1260 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1261 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1263 ac_prev
=sharedstatedir
;;
1264 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1265 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1266 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1268 sharedstatedir
=$ac_optarg ;;
1270 -site |
--site |
--sit)
1272 -site=* |
--site=* |
--sit=*)
1275 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1277 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1278 srcdir
=$ac_optarg ;;
1280 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1281 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1282 ac_prev
=sysconfdir
;;
1283 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1284 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1285 sysconfdir
=$ac_optarg ;;
1287 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1288 ac_prev
=target_alias
;;
1289 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1290 target_alias
=$ac_optarg ;;
1292 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1295 -version |
--version |
--versio |
--versi |
--vers |
-V)
1296 ac_init_version
=: ;;
1299 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1302 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 { (exit 1); exit 1; }; }
1304 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1305 eval with_
$ac_package=\
$ac_optarg ;;
1307 -without-* |
--without-*)
1308 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1311 { echo "$as_me: error: invalid package name: $ac_package" >&2
1312 { (exit 1); exit 1; }; }
1313 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1314 eval with_
$ac_package=no
;;
1317 # Obsolete; use --with-x.
1320 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1321 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1322 ac_prev
=x_includes
;;
1323 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1324 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1325 x_includes
=$ac_optarg ;;
1327 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1328 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1329 ac_prev
=x_libraries
;;
1330 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1331 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1332 x_libraries
=$ac_optarg ;;
1334 -*) { echo "$as_me: error: unrecognized option: $ac_option
1335 Try \`$0 --help' for more information." >&2
1336 { (exit 1); exit 1; }; }
1340 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1343 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1344 { (exit 1); exit 1; }; }
1345 eval $ac_envvar=\
$ac_optarg
1346 export $ac_envvar ;;
1349 # FIXME: should be removed in autoconf 3.0.
1350 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1352 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1359 if test -n "$ac_prev"; then
1360 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1361 { echo "$as_me: error: missing argument to $ac_option" >&2
1362 { (exit 1); exit 1; }; }
1365 # Be sure to have absolute directory names.
1366 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1371 eval ac_val
=\$
$ac_var
1373 [\\/$
]* | ?
:[\\/]* ) continue;;
1374 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1376 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1377 { (exit 1); exit 1; }; }
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1385 target
=$target_alias
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x
; then
1389 if test "x$build_alias" = x
; then
1390 cross_compiling
=maybe
1391 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392 If a cross compiler is detected then cross compile mode will be used." >&2
1393 elif test "x$build_alias" != "x$host_alias"; then
1399 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1401 test "$silent" = yes && exec 6>/dev
/null
1404 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1405 ac_ls_di
=`ls -di .` &&
1406 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1407 { echo "$as_me: error: Working directory cannot be determined" >&2
1408 { (exit 1); exit 1; }; }
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 { echo "$as_me: error: pwd does not report name of working directory" >&2
1411 { (exit 1); exit 1; }; }
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted
=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir
=`$as_dirname -- "$0" ||
1419 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$0" : 'X\(//\)[^/]' \| \
1421 X"$0" : 'X\(//\)$' \| \
1422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1446 ac_srcdir_defaulted
=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1450 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1451 { (exit 1); exit 1; }; }
1453 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1456 { (exit 1); exit 1; }; }
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1466 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 for ac_var
in $ac_precious_vars; do
1469 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1471 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1476 # Report the --help message.
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1482 \`configure' configures llvm 2.5svn to adapt to many kinds of systems.
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1489 Defaults for the options are specified in brackets.
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1513 For better control, use the options below.
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1540 --build=BUILD configure
for building on BUILD
[guessed
]
1541 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1542 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1546 if test -n "$ac_init_help"; then
1547 case $ac_init_help in
1548 short | recursive
) echo "Configuration of llvm 2.5svn:";;
1553 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1554 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1557 --enable-expensive-checks
1559 --enable-debug-runtime
1560 --enable-jit Enable Just In Time Compiling
(default is YES
)
1561 --enable-doxygen Build doxygen documentation
(default is NO
)
1562 --enable-threads Use threads
if available
(default is YES
)
1563 --enable-pic Build LLVM with Position Independent Code
(default
1565 --enable-targets Build specific
host targets
:
1566 all
,host-only
,{target-name
} (default
=all
)
1567 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1569 --enable-bindings Build specific language bindings
:
1570 all
,auto
,none
,{binding-name
} (default
=auto
)
1571 --enable-ltdl-install install libltdl
1572 --enable-shared[=PKGS
] build shared libraries
1574 --enable-static[=PKGS
] build static libraries
1576 --enable-fast-install[=PKGS
]
1577 optimize
for fast installation
1579 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1582 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1583 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1584 --with-llvmgccdir Specify location of llvm-gcc
install dir
(default
1586 --with-llvmgcc Specify location of llvm-gcc driver
(default
1588 --with-llvmgxx Specify location of llvm-g
++ driver
(default
1590 --with-extra-options Specify addtional options to compile LLVM with
1591 --with-ocaml-libdir Specify
install location
for ocaml bindings
(default
1593 --with-tclinclude directory where tcl headers are
1594 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1595 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1597 --with-tags[=TAGS
] include additional configurations
[automatic
]
1598 --with-udis86=<path
> Use udis86 external x86 disassembler library
1600 Some influential environment variables
:
1601 CC C compiler
command
1602 CFLAGS C compiler flags
1603 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1604 nonstandard directory
<lib dir
>
1605 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1606 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1607 you have headers
in a nonstandard directory
<include dir
>
1609 CXX C
++ compiler
command
1610 CXXFLAGS C
++ compiler flags
1611 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1612 the first program found out of: `bison
-y', `byacc', `yacc'.
1613 YFLAGS The list of arguments that will be passed by default to $YACC.
1614 This script will default YFLAGS to the empty string to avoid a
1615 default value of `-d' given by some make applications.
1616 CXXCPP C++ preprocessor
1617 F77 Fortran 77 compiler command
1618 FFLAGS Fortran 77 compiler flags
1620 Use these variables to override the choices made by `configure' or to
help
1621 it to
find libraries and programs with nonstandard names
/locations.
1623 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1628 if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
1630 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1631 test -d "$ac_dir" ||
continue
1635 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1637 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1638 # A ".." for each directory in $ac_dir_suffix.
1639 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1640 case $ac_top_builddir_sub in
1641 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1642 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1645 ac_abs_top_builddir
=$ac_pwd
1646 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1647 # for backward compatibility:
1648 ac_top_builddir
=$ac_top_build_prefix
1651 .
) # We are building in place.
1653 ac_top_srcdir
=$ac_top_builddir_sub
1654 ac_abs_top_srcdir
=$ac_pwd ;;
1655 [\\/]* | ?
:[\\/]* ) # Absolute name.
1656 ac_srcdir
=$srcdir$ac_dir_suffix;
1657 ac_top_srcdir
=$srcdir
1658 ac_abs_top_srcdir
=$srcdir ;;
1660 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1662 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1664 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1666 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1667 # Check for guested configure.
1668 if test -f "$ac_srcdir/configure.gnu"; then
1670 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671 elif test -f "$ac_srcdir/configure"; then
1673 $SHELL "$ac_srcdir/configure" --help=recursive
1675 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1681 test -n "$ac_init_help" && exit $ac_status
1682 if $ac_init_version; then
1684 llvm configure
2.5svn
1685 generated by GNU Autoconf
2.61
1687 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1688 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1689 This configure
script is free software
; the Free Software Foundation
1690 gives unlimited permission to copy
, distribute and modify it.
1692 Copyright
(c
) 2003-2008 University of Illinois
at Urbana-Champaign.
1696 cat >config.log
<<_ACEOF
1697 This file contains any messages produced by compilers while
1698 running configure, to aid debugging if configure makes a mistake.
1700 It was created by llvm $as_me 2.5svn, which was
1701 generated by GNU Autoconf 2.61. Invocation command line was
1713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1736 test -z "$as_dir" && as_dir
=.
1737 echo "PATH: $as_dir"
1753 # Keep a trace of the command line.
1754 # Strip out --no-create and --no-recursion so they do not pile up.
1755 # Strip out --silent because we don't want to record it for future runs.
1756 # Also quote any args containing shell meta-characters.
1757 # Make two passes to allow for proper duplicate-argument suppression.
1761 ac_must_keep_next
=false
1767 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1768 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1769 |
-silent |
--silent |
--silen |
--sile |
--sil)
1772 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1777 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1778 if test $ac_must_keep_next = true
; then
1779 ac_must_keep_next
=false
# Got value, back to normal.
1782 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1783 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1784 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1785 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1786 case "$ac_configure_args0 " in
1787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1790 -* ) ac_must_keep_next
=true
;;
1793 ac_configure_args
="$ac_configure_args '$ac_arg'"
1798 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1799 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1801 # When interrupted or exit'd, cleanup temporary files, and complete
1802 # config.log. We remove comments because anyway the quotes in there
1803 # would cause problems or look ugly.
1804 # WARNING: Use '\'' to represent an apostrophe within the trap.
1805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806 trap 'exit_status=$?
1807 # Save into config.log some information that might help in debugging.
1812 ## ---------------- ##
1813 ## Cache variables. ##
1814 ## ---------------- ##
1817 # The following way of writing the cache mishandles newlines in values,
1819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820 eval ac_val=\$$ac_var
1824 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1825 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1828 _ | IFS | as_nl) ;; #(
1829 *) $as_unset $ac_var ;;
1834 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835 *${as_nl}ac_space=\ *)
1837 "s/'\''/'\''\\\\'\'''\''/g;
1838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849 ## ----------------- ##
1850 ## Output variables. ##
1851 ## ----------------- ##
1854 for ac_var in $ac_subst_vars
1856 eval ac_val=\$$ac_var
1858 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 echo "$ac_var='\''$ac_val'\''"
1864 if test -n "$ac_subst_files"; then
1866 ## ------------------- ##
1867 ## File substitutions. ##
1868 ## ------------------- ##
1871 for ac_var
in $ac_subst_files
1873 eval ac_val
=\$
$ac_var
1875 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 echo "$ac_var='\''$ac_val'\''"
1882 if test -s confdefs.h; then
1892 test "$ac_signal" != 0 &&
1893 echo "$as_me: caught signal $ac_signal"
1894 echo "$as_me: exit $exit_status"
1896 rm -f core *.core core.conftest.* &&
1897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1900 for ac_signal
in 1 2 13 15; do
1901 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1906 rm -f -r conftest
* confdefs.h
1908 # Predefined preprocessor variables.
1910 cat >>confdefs.h
<<_ACEOF
1911 #define PACKAGE_NAME "$PACKAGE_NAME"
1915 cat >>confdefs.h
<<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1920 cat >>confdefs.h
<<_ACEOF
1921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1925 cat >>confdefs.h
<<_ACEOF
1926 #define PACKAGE_STRING "$PACKAGE_STRING"
1930 cat >>confdefs.h
<<_ACEOF
1931 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1935 # Let the site file select an alternate cache file if it wants to.
1936 # Prefer explicitly selected file to automatically selected ones.
1937 if test -n "$CONFIG_SITE"; then
1938 set x
"$CONFIG_SITE"
1939 elif test "x$prefix" != xNONE
; then
1940 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1942 set x
"$ac_default_prefix/share/config.site" \
1943 "$ac_default_prefix/etc/config.site"
1948 if test -r "$ac_site_file"; then
1949 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950 echo "$as_me: loading site script $ac_site_file" >&6;}
1951 sed 's/^/| /' "$ac_site_file" >&5
1956 if test -r "$cache_file"; then
1957 # Some versions of bash will fail to source /dev/null (special
1958 # files actually), so we avoid doing that.
1959 if test -f "$cache_file"; then
1960 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961 echo "$as_me: loading cache $cache_file" >&6;}
1963 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1964 *) .
"./$cache_file";;
1968 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969 echo "$as_me: creating cache $cache_file" >&6;}
1973 # Check that the precious variables saved in the cache have kept the same
1975 ac_cache_corrupted
=false
1976 for ac_var
in $ac_precious_vars; do
1977 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1978 eval ac_new_set
=\
$ac_env_${ac_var}_set
1979 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1980 eval ac_new_val
=\
$ac_env_${ac_var}_value
1981 case $ac_old_set,$ac_new_set in
1983 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985 ac_cache_corrupted
=: ;;
1987 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989 ac_cache_corrupted
=: ;;
1992 if test "x$ac_old_val" != "x$ac_new_val"; then
1993 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1996 echo "$as_me: former value: $ac_old_val" >&2;}
1997 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1998 echo "$as_me: current value: $ac_new_val" >&2;}
1999 ac_cache_corrupted
=:
2002 # Pass precious variables to config.status.
2003 if test "$ac_new_set" = set; then
2005 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 *) ac_arg
=$ac_var=$ac_new_val ;;
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2014 if $ac_cache_corrupted; then
2015 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019 { (exit 1); exit 1; }; }
2047 ac_cpp
='$CPP $CPPFLAGS'
2048 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2054 LLVM_COPYRIGHT
="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2063 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2064 if test -f "$ac_dir/install-sh"; then
2066 ac_install_sh
="$ac_aux_dir/install-sh -c"
2068 elif test -f "$ac_dir/install.sh"; then
2070 ac_install_sh
="$ac_aux_dir/install.sh -c"
2072 elif test -f "$ac_dir/shtool"; then
2074 ac_install_sh
="$ac_aux_dir/shtool install -c"
2078 if test -z "$ac_aux_dir"; then
2079 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2080 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2081 { (exit 1); exit 1; }; }
2084 # These three variables are undocumented and unsupported,
2085 # and are intended to be withdrawn in a future Autoconf release.
2086 # They can cause serious problems if a builder's source tree is in a directory
2087 # whose full name contains unusual characters.
2088 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2089 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2090 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2094 if test ${srcdir} != "." ; then
2095 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
2096 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2097 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2098 { (exit 1); exit 1; }; }
2102 for i
in `ls ${srcdir}/projects`
2104 if test -d ${srcdir}/projects
/${i} ; then
2107 sample
) subdirs
="$subdirs projects/sample"
2109 privbracket
) subdirs
="$subdirs projects/privbracket"
2111 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
2113 # llvm-test is the old name of the test-suite, kept here for backwards
2115 llvm-test
) subdirs
="$subdirs projects/llvm-test"
2117 test-suite
) subdirs
="$subdirs projects/test-suite"
2119 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
2121 llvm-gcc
) subdirs
="$subdirs projects/llvm-gcc"
2123 llvm-java
) subdirs
="$subdirs projects/llvm-java"
2125 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
2127 llvm-poolalloc
) subdirs
="$subdirs projects/llvm-poolalloc"
2129 poolalloc
) subdirs
="$subdirs projects/poolalloc"
2131 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2134 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2135 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2142 # Make sure we can run config.sub.
2143 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2144 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2145 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2146 { (exit 1); exit 1; }; }
2148 { echo "$as_me:$LINENO: checking build system type" >&5
2149 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2150 if test "${ac_cv_build+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 ac_build_alias
=$build_alias
2154 test "x$ac_build_alias" = x
&&
2155 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2156 test "x$ac_build_alias" = x
&&
2157 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2158 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2159 { (exit 1); exit 1; }; }
2160 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2161 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2162 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2163 { (exit 1); exit 1; }; }
2166 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2167 echo "${ECHO_T}$ac_cv_build" >&6; }
2168 case $ac_cv_build in
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2171 echo "$as_me: error: invalid value of canonical build" >&2;}
2172 { (exit 1); exit 1; }; };;
2175 ac_save_IFS
=$IFS; IFS
='-'
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2185 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2188 { echo "$as_me:$LINENO: checking host system type" >&5
2189 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2190 if test "${ac_cv_host+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test "x$host_alias" = x
; then
2194 ac_cv_host
=$ac_cv_build
2196 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2197 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2198 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2203 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2204 echo "${ECHO_T}$ac_cv_host" >&6; }
2207 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2208 echo "$as_me: error: invalid value of canonical host" >&2;}
2209 { (exit 1); exit 1; }; };;
2212 ac_save_IFS
=$IFS; IFS
='-'
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2222 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2225 { echo "$as_me:$LINENO: checking target system type" >&5
2226 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2227 if test "${ac_cv_target+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 if test "x$target_alias" = x
; then
2231 ac_cv_target
=$ac_cv_host
2233 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2234 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2235 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2236 { (exit 1); exit 1; }; }
2240 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2241 echo "${ECHO_T}$ac_cv_target" >&6; }
2242 case $ac_cv_target in
2244 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2245 echo "$as_me: error: invalid value of canonical target" >&2;}
2246 { (exit 1); exit 1; }; };;
2248 target
=$ac_cv_target
2249 ac_save_IFS
=$IFS; IFS
='-'
2255 # Remember, the first character of IFS is used to create $*,
2256 # except with old shells:
2259 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2262 # The aliases save the names the user supplied, while $host etc.
2263 # will get canonicalized.
2264 test -n "$target_alias" &&
2265 test "$program_prefix$program_suffix$program_transform_name" = \
2267 program_prefix
=${target_alias}-
2269 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2270 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2271 if test "${llvm_cv_os_type+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 llvm_cv_link_all_option
="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2278 llvm_cv_os_type
="AIX"
2279 llvm_cv_platform_type
="Unix" ;;
2281 llvm_cv_link_all_option
="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2283 llvm_cv_os_type
="IRIX"
2284 llvm_cv_platform_type
="Unix" ;;
2286 llvm_cv_link_all_option
="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2288 llvm_cv_os_type
="Cygwin"
2289 llvm_cv_platform_type
="Unix" ;;
2291 llvm_cv_link_all_option
="-Wl,-all_load"
2292 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2293 llvm_cv_os_type
="Darwin"
2294 llvm_cv_platform_type
="Unix" ;;
2296 llvm_cv_link_all_option
="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2298 llvm_cv_os_type
="FreeBSD"
2299 llvm_cv_platform_type
="Unix" ;;
2301 llvm_cv_link_all_option
="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2303 llvm_cv_os_type
="OpenBSD"
2304 llvm_cv_platform_type
="Unix" ;;
2306 llvm_cv_link_all_option
="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2308 llvm_cv_os_type
="NetBSD"
2309 llvm_cv_platform_type
="Unix" ;;
2311 llvm_cv_link_all_option
="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2313 llvm_cv_os_type
="DragonFly"
2314 llvm_cv_platform_type
="Unix" ;;
2316 llvm_cv_link_all_option
="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2318 llvm_cv_os_type
="HP-UX"
2319 llvm_cv_platform_type
="Unix" ;;
2321 llvm_cv_link_all_option
="-Wl,--whole-archive"
2322 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2323 llvm_cv_os_type
="Interix"
2324 llvm_cv_platform_type
="Unix" ;;
2326 llvm_cv_link_all_option
="-Wl,--whole-archive"
2327 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2328 llvm_cv_os_type
="Linux"
2329 llvm_cv_platform_type
="Unix" ;;
2331 llvm_cv_link_all_option
="-Wl,-z,allextract"
2332 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2333 llvm_cv_os_type
="SunOS"
2334 llvm_cv_platform_type
="Unix" ;;
2336 llvm_cv_link_all_option
="-Wl,--whole-archive"
2337 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2338 llvm_cv_os_type
="Win32"
2339 llvm_cv_platform_type
="Win32" ;;
2341 llvm_cv_link_all_option
="-Wl,--whole-archive"
2342 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2343 llvm_cv_os_type
="MingW"
2344 llvm_cv_platform_type
="Win32" ;;
2346 llvm_cv_link_all_option
=""
2347 llvm_cv_no_link_all_option
=""
2348 llvm_cv_os_type
="Unknown"
2349 llvm_cv_platform_type
="Unknown" ;;
2352 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2353 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2355 if test "$llvm_cv_os_type" = "Unknown" ; then
2356 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2357 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2358 { (exit 1); exit 1; }; }
2364 LINKALL
=$llvm_cv_link_all_option
2366 NOLINKALL
=$llvm_cv_no_link_all_option
2369 case $llvm_cv_platform_type in
2372 cat >>confdefs.h
<<\_ACEOF
2373 #define LLVM_ON_UNIX 1
2383 cat >>confdefs.h
<<\_ACEOF
2384 #define LLVM_ON_WIN32 1
2394 { echo "$as_me:$LINENO: checking target architecture" >&5
2395 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2396 if test "${llvm_cv_target_arch+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 i?
86-*) llvm_cv_target_arch
="x86" ;;
2401 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2402 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2403 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2404 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2405 ia64-
*) llvm_cv_target_arch
="IA64" ;;
2406 arm-
*) llvm_cv_target_arch
="ARM" ;;
2407 mips-
*) llvm_cv_target_arch
="Mips" ;;
2408 pic16-
*) llvm_cv_target_arch
="PIC16" ;;
2409 xcore-
*) llvm_cv_target_arch
="XCore" ;;
2410 *) llvm_cv_target_arch
="Unknown" ;;
2413 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2414 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2416 if test "$llvm_cv_target_arch" = "Unknown" ; then
2417 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2418 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2421 ARCH
=$llvm_cv_target_arch
2425 ac_cpp
='$CPP $CPPFLAGS'
2426 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2431 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC
="$CC" # Let the user override the test.
2440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir
=.
2445 for ac_exec_ext
in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2447 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 if test -n "$CC"; then
2459 { echo "$as_me:$LINENO: result: $CC" >&5
2460 echo "${ECHO_T}$CC" >&6; }
2462 { echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6; }
2468 if test -z "$ac_cv_prog_CC"; then
2470 # Extract the first word of "gcc", so it can be a program name with args.
2471 set dummy gcc
; ac_word
=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 if test -n "$ac_ct_CC"; then
2478 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2484 test -z "$as_dir" && as_dir
=.
2485 for ac_exec_ext
in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487 ac_cv_prog_ac_ct_CC
="gcc"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6; }
2502 { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2506 if test "x$ac_ct_CC" = x
; then
2509 case $cross_compiling:$ac_tool_warned in
2511 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2512 whose name does not start with the host triplet. If you think this
2513 configuration is useful to you, please write to autoconf@gnu.org." >&5
2514 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2515 whose name does not start with the host triplet. If you think this
2516 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2517 ac_tool_warned
=yes ;;
2525 if test -z "$CC"; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2528 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_CC+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC
="$CC" # Let the user override the test.
2537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2541 test -z "$as_dir" && as_dir
=.
2542 for ac_exec_ext
in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 if test -n "$CC"; then
2556 { echo "$as_me:$LINENO: result: $CC" >&5
2557 echo "${ECHO_T}$CC" >&6; }
2559 { echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6; }
2566 if test -z "$CC"; then
2567 # Extract the first word of "cc", so it can be a program name with args.
2568 set dummy cc
; ac_word
=$2
2569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2571 if test "${ac_cv_prog_CC+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 if test -n "$CC"; then
2575 ac_cv_prog_CC
="$CC" # Let the user override the test.
2578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2582 test -z "$as_dir" && as_dir
=.
2583 for ac_exec_ext
in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2586 ac_prog_rejected
=yes
2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 if test $ac_prog_rejected = yes; then
2598 # We found a bogon in the path, so make sure we never use it.
2599 set dummy
$ac_cv_prog_CC
2601 if test $# != 0; then
2602 # We chose a different compiler from the bogus one.
2603 # However, it has the same basename, so the bogon will be chosen
2604 # first if we set CC to just the basename; use the full file name.
2606 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2612 if test -n "$CC"; then
2613 { echo "$as_me:$LINENO: result: $CC" >&5
2614 echo "${ECHO_T}$CC" >&6; }
2616 { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2622 if test -z "$CC"; then
2623 if test -n "$ac_tool_prefix"; then
2624 for ac_prog
in cl.exe
2626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2627 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_CC+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC
="$CC" # Let the user override the test.
2636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir
=.
2641 for ac_exec_ext
in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 if test -n "$CC"; then
2655 { echo "$as_me:$LINENO: result: $CC" >&5
2656 echo "${ECHO_T}$CC" >&6; }
2658 { echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6; }
2663 test -n "$CC" && break
2666 if test -z "$CC"; then
2668 for ac_prog
in cl.exe
2670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2671 set dummy
$ac_prog; ac_word
=$2
2672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 if test -n "$ac_ct_CC"; then
2678 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir
=.
2685 for ac_exec_ext
in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_ac_ct_CC
="$ac_prog"
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2698 if test -n "$ac_ct_CC"; then
2699 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2700 echo "${ECHO_T}$ac_ct_CC" >&6; }
2702 { echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6; }
2707 test -n "$ac_ct_CC" && break
2710 if test "x$ac_ct_CC" = x
; then
2713 case $cross_compiling:$ac_tool_warned in
2715 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2716 whose name does not start with the host triplet. If you think this
2717 configuration is useful to you, please write to autoconf@gnu.org." >&5
2718 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet. If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2721 ac_tool_warned
=yes ;;
2730 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2731 See \`config.log' for more details." >&5
2732 echo "$as_me: error: no acceptable C compiler found in \$PATH
2733 See \`config.log' for more details." >&2;}
2734 { (exit 1); exit 1; }; }
2736 # Provide some information about the compiler.
2737 echo "$as_me:$LINENO: checking for C compiler version" >&5
2738 ac_compiler
=`set X $ac_compile; echo $2`
2739 { (ac_try
="$ac_compiler --version >&5"
2741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compiler --version >&5") 2>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2749 { (ac_try="$ac_compiler -v >&5"
2751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2752 *) ac_try_echo
=$ac_try;;
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compiler -v >&5") 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2759 { (ac_try
="$ac_compiler -V >&5"
2761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compiler -V >&5") 2>&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }
2770 cat >conftest.$ac_ext <<_ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2785 ac_clean_files_save=$ac_clean_files
2786 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2787 # Try to create an executable without -o first, disregard a.out.
2788 # It will help us diagnose broken compilers, and finding out an intuition
2790 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2791 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2792 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2794 # List of possible output files, starting from the most likely.
2795 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2796 # only as a last resort. b.out is created by i960 compilers.
2797 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2799 # The IRIX 6 linker writes into existing files which may not be
2800 # executable, retaining their permissions. Remove them first so a
2801 # subsequent execution test works.
2803 for ac_file in $ac_files
2806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2807 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2812 if { (ac_try="$ac_link_default"
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_link_default") 2>&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; then
2822 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2823 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2824 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2825 # so that the user can short-circuit this test for compilers unknown to
2827 for ac_file
in $ac_files ''
2829 test -f "$ac_file" ||
continue
2831 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2834 # We found the default executable, but exeext='' is most
2838 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2840 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2842 # We set ac_cv_exeext here because the later test for it is not
2843 # safe: cross compilers may not add the suffix if given an `-o'
2844 # argument, so we may need to know it at that point already.
2845 # Even if this section looks crufty: it has the advantage of
2852 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2858 { echo "$as_me:$LINENO: result: $ac_file" >&5
2859 echo "${ECHO_T}$ac_file" >&6; }
2860 if test -z "$ac_file"; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.
$ac_ext >&5
2864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&2;}
2868 { (exit 77); exit 77; }; }
2871 ac_exeext
=$ac_cv_exeext
2873 # Check that the compiler produces executables we can run. If not, either
2874 # the compiler is broken, or we cross compile.
2875 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2876 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2877 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2878 # If not cross compiling, check that we can run a simple program.
2879 if test "$cross_compiling" != yes; then
2880 if { ac_try
='./$ac_file'
2881 { (case "(($ac_try" in
2882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_try") 2>&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2892 if test "$cross_compiling" = maybe; then
2895 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2896 If you meant to cross compile, use \`--host'.
2897 See \`config.log' for more details.
" >&5
2898 echo "$as_me: error
: cannot run C compiled programs.
2899 If you meant to cross compile
, use \
`--host'.
2900 See \`config.log
' for more details." >&2;}
2901 { (exit 1); exit 1; }; }
2905 { echo "$as_me:$LINENO: result: yes" >&5
2906 echo "${ECHO_T}yes" >&6; }
2908 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2909 ac_clean_files=$ac_clean_files_save
2910 # Check that the compiler produces executables we can run. If not, either
2911 # the compiler is broken, or we cross compile.
2912 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2913 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2914 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2915 echo "${ECHO_T}$cross_compiling" >&6; }
2917 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2918 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2919 if { (ac_try="$ac_link"
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_link") 2>&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; then
2929 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2930 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2931 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2933 for ac_file
in conftest.exe conftest conftest.
*; do
2934 test -f "$ac_file" ||
continue
2936 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2937 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2944 See \`config.log' for more details." >&5
2945 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2946 See \`config.log' for more details." >&2;}
2947 { (exit 1); exit 1; }; }
2950 rm -f conftest
$ac_cv_exeext
2951 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2952 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2954 rm -f conftest.
$ac_ext
2955 EXEEXT
=$ac_cv_exeext
2957 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2958 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2959 if test "${ac_cv_objext+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 cat >conftest.
$ac_ext <<_ACEOF
2965 cat confdefs.h
>>conftest.
$ac_ext
2966 cat >>conftest.
$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2977 rm -f conftest.o conftest.obj
2978 if { (ac_try
="$ac_compile"
2980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compile") 2>&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; then
2988 for ac_file in conftest.o conftest.obj conftest.*; do
2989 test -f "$ac_file" || continue;
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3001 See \`config.log
' for more details." >&5
3002 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details.
" >&2;}
3004 { (exit 1); exit 1; }; }
3007 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3009 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3010 echo "${ECHO_T}$ac_cv_objext" >&6; }
3011 OBJEXT=$ac_cv_objext
3013 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3014 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3015 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3016 echo $ECHO_N "(cached
) $ECHO_C" >&6
3018 cat >conftest.$ac_ext <<_ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3036 rm -f conftest.$ac_objext
3037 if { (ac_try="$ac_compile"
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_compile") 2>conftest.er1
3045 grep -v '^ *+' conftest.er1 >conftest.err
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3049 (exit $ac_status); } && {
3050 test -z "$ac_c_werror_flag" ||
3051 test ! -s conftest.err
3052 } && test -s conftest.$ac_objext; then
3055 echo "$as_me: failed program was
:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3065 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3066 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3067 GCC=`test $ac_compiler_gnu = yes && echo yes`
3068 ac_test_CFLAGS=${CFLAGS+set}
3069 ac_save_CFLAGS=$CFLAGS
3070 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3071 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3072 if test "${ac_cv_prog_cc_g+set}" = set; then
3073 echo $ECHO_N "(cached
) $ECHO_C" >&6
3075 ac_save_c_werror_flag=$ac_c_werror_flag
3076 ac_c_werror_flag=yes
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3107 (exit $ac_status); } && {
3108 test -z "$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest.$ac_objext; then
3113 echo "$as_me: failed program was
:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
3151 echo "$as_me: failed program was
:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 ac_c_werror_flag=$ac_save_c_werror_flag
3156 cat >conftest.$ac_ext <<_ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3171 rm -f conftest.$ac_objext
3172 if { (ac_try="$ac_compile"
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3180 grep -v '^ *+' conftest.er1 >conftest.err
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3184 (exit $ac_status); } && {
3185 test -z "$ac_c_werror_flag" ||
3186 test ! -s conftest.err
3187 } && test -s conftest.$ac_objext; then
3190 echo "$as_me: failed program was
:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_c_werror_flag=$ac_save_c_werror_flag
3205 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3206 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3207 if test "$ac_test_CFLAGS" = set; then
3208 CFLAGS=$ac_save_CFLAGS
3209 elif test $ac_cv_prog_cc_g = yes; then
3210 if test "$GCC" = yes; then
3216 if test "$GCC" = yes; then
3222 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3223 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3224 if test "${ac_cv_prog_cc_c89+set}" = set; then
3225 echo $ECHO_N "(cached
) $ECHO_C" >&6
3227 ac_cv_prog_cc_c89=no
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3237 #include <sys/types.h>
3238 #include <sys/stat.h>
3239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3240 struct buf { int x; };
3241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242 static char *e (p, i)
3248 static char *f (char * (*g) (char **, int), char **p, ...)
3253 s = g (p, va_arg (v,int));
3258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3259 function prototypes and stuff, but not '\xHH' hex character constants.
3260 These don't provoke an error unfortunately, instead are silently treated
3261 as 'x'. The following induces an error, until -std is added to get
3262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3263 array size at least. It's necessary to write '\x00'==0 to get something
3264 that's true only with -std. */
3265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268 inside strings and character constants. */
3270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3272 int test (int i, double x);
3273 struct s1 {int (*f) (int a);};
3274 struct s2 {int (*f) (double a);};
3275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3289 CC="$ac_save_CC $ac_arg"
3290 rm -f conftest.$ac_objext
3291 if { (ac_try="$ac_compile"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>conftest.er1
3299 grep -v '^ *+' conftest.er1 >conftest.err
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3303 (exit $ac_status); } && {
3304 test -z "$ac_c_werror_flag" ||
3305 test ! -s conftest.err
3306 } && test -s conftest.$ac_objext; then
3307 ac_cv_prog_cc_c89=$ac_arg
3309 echo "$as_me: failed program was
:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3315 rm -f core conftest.err conftest.$ac_objext
3316 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3318 rm -f conftest.$ac_ext
3323 case "x
$ac_cv_prog_cc_c89" in
3325 { echo "$as_me:$LINENO: result
: none needed
" >&5
3326 echo "${ECHO_T}none needed
" >&6; } ;;
3328 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3329 echo "${ECHO_T}unsupported
" >&6; } ;;
3331 CC="$CC $ac_cv_prog_cc_c89"
3332 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3333 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3350 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3351 # On Suns, sometimes $CPP names a directory.
3352 if test -n "$CPP" && test -d "$CPP"; then
3355 if test -z "$CPP"; then
3356 if test "${ac_cv_prog_CPP+set}" = set; then
3357 echo $ECHO_N "(cached
) $ECHO_C" >&6
3359 # Double quotes because CPP needs to be expanded
3360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3363 for ac_c_preproc_warn_flag in '' yes
3365 # Use a header file that comes with gcc, so configuring glibc
3366 # with a fresh cross-compiler works.
3367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3368 # <limits.h> exists even on freestanding compilers.
3369 # On the NeXT, cc -E runs the code through the compiler's parser,
3370 # not just through cpp. "Syntax error
" is here to catch this case.
3371 cat >conftest.$ac_ext <<_ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3378 # include <limits.h>
3380 # include <assert.h>
3384 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3392 grep -v '^ *+' conftest.er1 >conftest.err
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3396 (exit $ac_status); } >/dev/null && {
3397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3402 echo "$as_me: failed program was
:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 # Broken: fails on valid input.
3409 rm -f conftest.err conftest.$ac_ext
3411 # OK, works on sane cases. Now check whether nonexistent headers
3412 # can be detected and how.
3413 cat >conftest.$ac_ext <<_ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3419 #include <ac_nonexistent.h>
3421 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3429 grep -v '^ *+' conftest.er1 >conftest.err
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3433 (exit $ac_status); } >/dev/null && {
3434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3435 test ! -s conftest.err
3437 # Broken: success on invalid input.
3440 echo "$as_me: failed program was
:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 # Passes both tests.
3448 rm -f conftest.err conftest.$ac_ext
3451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3452 rm -f conftest.err conftest.$ac_ext
3453 if $ac_preproc_ok; then
3465 { echo "$as_me:$LINENO: result
: $CPP" >&5
3466 echo "${ECHO_T}$CPP" >&6; }
3468 for ac_c_preproc_warn_flag in '' yes
3470 # Use a header file that comes with gcc, so configuring glibc
3471 # with a fresh cross-compiler works.
3472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473 # <limits.h> exists even on freestanding compilers.
3474 # On the NeXT, cc -E runs the code through the compiler's parser,
3475 # not just through cpp. "Syntax error
" is here to catch this case.
3476 cat >conftest.$ac_ext <<_ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3483 # include <limits.h>
3485 # include <assert.h>
3489 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3497 grep -v '^ *+' conftest.er1 >conftest.err
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3501 (exit $ac_status); } >/dev/null && {
3502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3507 echo "$as_me: failed program was
:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 # Broken: fails on valid input.
3514 rm -f conftest.err conftest.$ac_ext
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include <ac_nonexistent.h>
3526 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3534 grep -v '^ *+' conftest.er1 >conftest.err
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3538 (exit $ac_status); } >/dev/null && {
3539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3542 # Broken: success on invalid input.
3545 echo "$as_me: failed program was
:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 # Passes both tests.
3553 rm -f conftest.err conftest.$ac_ext
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3561 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3562 See \
`config.log' for more details." >&5
3563 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3564 See \`config.log
' for more details." >&2;}
3565 { (exit 1); exit 1; }; }
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3571 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3576 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3577 if test "${ac_cv_path_GREP+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 # Extract the first word of "grep ggrep" to use in msg output
3581 if test -z "$GREP"; then
3582 set dummy grep ggrep; ac_prog_name=$2
3583 if test "${ac_cv_path_GREP+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 ac_path_GREP_found=false
3587 # Loop through the user's path and
test for each of PROGNAME-LIST
3588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3589 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3592 test -z "$as_dir" && as_dir
=.
3593 for ac_prog
in grep ggrep
; do
3594 for ac_exec_ext
in '' $ac_executable_extensions; do
3595 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3596 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3597 # Check for GNU ac_path_GREP and select it if it is found.
3598 # Check for GNU $ac_path_GREP
3599 case `"$ac_path_GREP" --version 2>&1` in
3601 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3604 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3607 cat "conftest.in" "conftest.in" >"conftest.tmp"
3608 mv "conftest.tmp" "conftest.in"
3609 cp "conftest.in" "conftest.nl"
3610 echo 'GREP' >> "conftest.nl"
3611 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3612 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3613 ac_count
=`expr $ac_count + 1`
3614 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3615 # Best one so far, save it but keep looking for a better one
3616 ac_cv_path_GREP
="$ac_path_GREP"
3617 ac_path_GREP_max
=$ac_count
3619 # 10*(2^10) chars as input seems more than enough
3620 test $ac_count -gt 10 && break
3622 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3626 $ac_path_GREP_found && break 3
3636 GREP
="$ac_cv_path_GREP"
3637 if test -z "$GREP"; then
3638 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3639 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3640 { (exit 1); exit 1; }; }
3644 ac_cv_path_GREP
=$GREP
3649 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3650 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3651 GREP
="$ac_cv_path_GREP"
3654 { echo "$as_me:$LINENO: checking for egrep" >&5
3655 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3656 if test "${ac_cv_path_EGREP+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3660 then ac_cv_path_EGREP
="$GREP -E"
3662 # Extract the first word of "egrep" to use in msg output
3663 if test -z "$EGREP"; then
3664 set dummy
egrep; ac_prog_name
=$2
3665 if test "${ac_cv_path_EGREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 ac_path_EGREP_found
=false
3669 # Loop through the user's path and test for each of PROGNAME-LIST
3670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3671 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3674 test -z "$as_dir" && as_dir
=.
3675 for ac_prog
in egrep; do
3676 for ac_exec_ext
in '' $ac_executable_extensions; do
3677 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3678 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3679 # Check for GNU ac_path_EGREP and select it if it is found.
3680 # Check for GNU $ac_path_EGREP
3681 case `"$ac_path_EGREP" --version 2>&1` in
3683 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3686 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3689 cat "conftest.in" "conftest.in" >"conftest.tmp"
3690 mv "conftest.tmp" "conftest.in"
3691 cp "conftest.in" "conftest.nl"
3692 echo 'EGREP' >> "conftest.nl"
3693 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3694 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3695 ac_count
=`expr $ac_count + 1`
3696 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3697 # Best one so far, save it but keep looking for a better one
3698 ac_cv_path_EGREP
="$ac_path_EGREP"
3699 ac_path_EGREP_max
=$ac_count
3701 # 10*(2^10) chars as input seems more than enough
3702 test $ac_count -gt 10 && break
3704 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3708 $ac_path_EGREP_found && break 3
3718 EGREP
="$ac_cv_path_EGREP"
3719 if test -z "$EGREP"; then
3720 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3721 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3722 { (exit 1); exit 1; }; }
3726 ac_cv_path_EGREP
=$EGREP
3732 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3733 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3734 EGREP
="$ac_cv_path_EGREP"
3737 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3738 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3739 if test "${ac_cv_header_stdc+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 cat >conftest.
$ac_ext <<_ACEOF
3745 cat confdefs.h
>>conftest.
$ac_ext
3746 cat >>conftest.
$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3761 rm -f conftest.
$ac_objext
3762 if { (ac_try
="$ac_compile"
3764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_compile") 2>conftest.er1
3770 grep -v '^ *+' conftest.er1 >conftest.err
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } && {
3775 test -z "$ac_c_werror_flag" ||
3776 test ! -s conftest.err
3777 } && test -s conftest.$ac_objext; then
3778 ac_cv_header_stdc=yes
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3783 ac_cv_header_stdc=no
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 if test $ac_cv_header_stdc = yes; then
3789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3790 cat >conftest.$ac_ext <<_ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3800 $EGREP "memchr" >/dev/null 2>&1; then
3803 ac_cv_header_stdc=no
3809 if test $ac_cv_header_stdc = yes; then
3810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3811 cat >conftest.$ac_ext <<_ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3821 $EGREP "free" >/dev/null 2>&1; then
3824 ac_cv_header_stdc=no
3830 if test $ac_cv_header_stdc = yes; then
3831 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3832 if test "$cross_compiling" = yes; then
3835 cat >conftest.$ac_ext <<_ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3843 #if ((' ' & 0x0FF) == 0x020)
3844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3847 # define ISLOWER(c) \
3848 (('a' <= (c) && (c) <= 'i') \
3849 || ('j' <= (c) && (c) <= 'r') \
3850 || ('s' <= (c) && (c) <= 'z'))
3851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3859 for (i = 0; i < 256; i++)
3860 if (XOR (islower (i), ISLOWER (i))
3861 || toupper (i) != TOUPPER (i))
3866 rm -f conftest$ac_exeext
3867 if { (ac_try="$ac_link"
3869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3870 *) ac_try_echo
=$ac_try;;
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_link") 2>&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3877 { (case "(($ac_try" in
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_try") 2>&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3888 echo "$as_me: program exited with status $ac_status" >&5
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3893 ac_cv_header_stdc=no
3895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3901 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3902 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3903 if test $ac_cv_header_stdc = yes; then
3905 cat >>confdefs.h <<\_ACEOF
3906 #define STDC_HEADERS 1
3911 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3921 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3922 inttypes.h stdint.h unistd.h
3924 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 cat >conftest.$ac_ext <<_ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 $ac_includes_default
3938 #include <$ac_header>
3940 rm -f conftest.$ac_objext
3941 if { (ac_try="$ac_compile"
3943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3944 *) ac_try_echo
=$ac_try;;
3946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_compile") 2>conftest.er1
3949 grep -v '^ *+' conftest.er1
>conftest.err
3951 cat conftest.err
>&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && {
3954 test -z "$ac_c_werror_flag" ||
3955 test ! -s conftest.err
3956 } && test -s conftest.
$ac_objext; then
3957 eval "$as_ac_Header=yes"
3959 echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.
$ac_ext >&5
3962 eval "$as_ac_Header=no"
3965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3967 ac_res
=`eval echo '${'$as_ac_Header'}'`
3968 { echo "$as_me:$LINENO: result: $ac_res" >&5
3969 echo "${ECHO_T}$ac_res" >&6; }
3970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3971 cat >>confdefs.h
<<_ACEOF
3972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3980 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3981 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3982 if test "${ac_cv_c_bigendian+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 # See if sys/param.h defines the BYTE_ORDER macro.
3986 cat >conftest.
$ac_ext <<_ACEOF
3989 cat confdefs.h
>>conftest.
$ac_ext
3990 cat >>conftest.
$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
3992 #include <sys/types.h>
3993 #include <sys/param.h>
3998 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3999 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4007 rm -f conftest.
$ac_objext
4008 if { (ac_try
="$ac_compile"
4010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_compile") 2>conftest.er1
4016 grep -v '^ *+' conftest.er1 >conftest.err
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } && {
4021 test -z "$ac_c_werror_flag" ||
4022 test ! -s conftest.err
4023 } && test -s conftest.$ac_objext; then
4024 # It does; now see whether it defined to BIG_ENDIAN or not.
4025 cat >conftest.$ac_ext <<_ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031 #include <sys/types.h>
4032 #include <sys/param.h>
4037 #if BYTE_ORDER != BIG_ENDIAN
4045 rm -f conftest.$ac_objext
4046 if { (ac_try="$ac_compile"
4048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4049 *) ac_try_echo
=$ac_try;;
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_compile") 2>conftest.er1
4054 grep -v '^ *+' conftest.er1
>conftest.err
4056 cat conftest.err
>&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); } && {
4059 test -z "$ac_c_werror_flag" ||
4060 test ! -s conftest.err
4061 } && test -s conftest.
$ac_objext; then
4062 ac_cv_c_bigendian
=yes
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.
$ac_ext >&5
4067 ac_cv_c_bigendian
=no
4070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.
$ac_ext >&5
4075 # It does not; compile a test program.
4076 if test "$cross_compiling" = yes; then
4077 # try to guess the endianness by grepping values into an object file
4078 ac_cv_c_bigendian
=unknown
4079 cat >conftest.
$ac_ext <<_ACEOF
4082 cat confdefs.h
>>conftest.
$ac_ext
4083 cat >>conftest.
$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4086 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4087 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4088 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4089 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4090 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4094 _ascii (); _ebcdic ();
4099 rm -f conftest.
$ac_objext
4100 if { (ac_try
="$ac_compile"
4102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_compile") 2>conftest.er1
4108 grep -v '^ *+' conftest.er1 >conftest.err
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } && {
4113 test -z "$ac_c_werror_flag" ||
4114 test ! -s conftest.err
4115 } && test -s conftest.$ac_objext; then
4116 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4117 ac_cv_c_bigendian=yes
4119 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4120 if test "$ac_cv_c_bigendian" = unknown; then
4121 ac_cv_c_bigendian=no
4123 # finding both strings is unlikely to happen, but who knows?
4124 ac_cv_c_bigendian=unknown
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 $ac_includes_default
4147 /* Are we little or big endian? From Harbison&Steele. */
4151 char c[sizeof (long int)];
4154 return u.c[sizeof (long int) - 1] == 1;
4160 rm -f conftest$ac_exeext
4161 if { (ac_try="$ac_link"
4163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4164 *) ac_try_echo
=$ac_try;;
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_link") 2>&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4171 { (case "(($ac_try" in
4172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_try") 2>&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 ac_cv_c_bigendian=no
4182 echo "$as_me: program exited with status $ac_status" >&5
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4187 ac_cv_c_bigendian=yes
4189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4198 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4199 case $ac_cv_c_bigendian in
4207 { { echo "$as_me:$LINENO: error: unknown endianness
4208 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4209 echo "$as_me: error: unknown endianness
4210 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4211 { (exit 1); exit 1; }; } ;;
4215 if test "$cross_compiling" = yes; then
4216 LLVM_CROSS_COMPILING=1
4219 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4220 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4221 if test "${ac_cv_build_exeext+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4225 ac_cv_build_exeext=.exe
4227 ac_build_prefix=${build_alias}-
4229 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4230 set dummy ${ac_build_prefix}gcc; ac_word=$2
4231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4233 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 if test -n "$BUILD_CC"; then
4237 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4256 BUILD_CC=$ac_cv_prog_BUILD_CC
4257 if test -n "$BUILD_CC"; then
4258 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4259 echo "${ECHO_T}$BUILD_CC" >&6; }
4261 { echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6; }
4266 if test -z "$BUILD_CC"; then
4267 # Extract the first word of "gcc", so it can be a program name with args.
4268 set dummy gcc; ac_word=$2
4269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4271 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 if test -n "$BUILD_CC"; then
4275 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 ac_cv_prog_BUILD_CC="gcc"
4285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 BUILD_CC=$ac_cv_prog_BUILD_CC
4295 if test -n "$BUILD_CC"; then
4296 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4297 echo "${ECHO_T}$BUILD_CC" >&6; }
4299 { echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6; }
4304 if test -z "$BUILD_CC"; then
4305 # Extract the first word of "cc", so it can be a program name with args.
4306 set dummy cc; ac_word=$2
4307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4309 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 if test -n "$BUILD_CC"; then
4313 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4324 ac_prog_rejected=yes
4327 ac_cv_prog_BUILD_CC="cc"
4328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 if test $ac_prog_rejected = yes; then
4336 # We found a bogon in the path, so make sure we never use it.
4337 set dummy $ac_cv_prog_BUILD_CC
4339 if test $# != 0; then
4340 # We chose a different compiler from the bogus one.
4341 # However, it has the same basename, so the bogon will be chosen
4342 # first if we set BUILD_CC to just the basename; use the full file name.
4344 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4349 BUILD_CC=$ac_cv_prog_BUILD_CC
4350 if test -n "$BUILD_CC"; then
4351 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4352 echo "${ECHO_T}$BUILD_CC" >&6; }
4354 { echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6; }
4361 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4362 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4363 { (exit 1); exit 1; }; }
4364 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4366 echo 'int main () { return 0; }' > conftest.$ac_ext
4368 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4369 (eval $ac_build_link) 2>&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; then
4373 for file in conftest.*; do
4375 *.c | *.o | *.obj | *.dSYM) ;;
4376 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4380 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4381 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4382 { (exit 1); exit 1; }; }
4385 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4390 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4391 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4392 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4393 ac_build_exeext=$BUILD_EXEEXT
4395 ac_build_prefix=${build_alias}-
4396 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4397 set dummy ${ac_build_prefix}g++; ac_word=$2
4398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 if test -n "$BUILD_CXX"; then
4404 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4424 if test -n "$BUILD_CXX"; then
4425 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4426 echo "${ECHO_T}$BUILD_CXX" >&6; }
4428 { echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6; }
4433 if test -z "$BUILD_CXX"; then
4434 # Extract the first word of "g++", so it can be a program name with args.
4435 set dummy g++; ac_word=$2
4436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 if test -n "$BUILD_CXX"; then
4442 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 ac_cv_prog_BUILD_CXX="g++"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4462 if test -n "$BUILD_CXX"; then
4463 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4464 echo "${ECHO_T}$BUILD_CXX" >&6; }
4466 { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4471 if test -z "$BUILD_CXX"; then
4472 # Extract the first word of "c++", so it can be a program name with args.
4473 set dummy c++; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 if test -n "$BUILD_CXX"; then
4480 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4491 ac_prog_rejected=yes
4494 ac_cv_prog_BUILD_CXX="c++"
4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 if test $ac_prog_rejected = yes; then
4503 # We found a bogon in the path, so make sure we never use it.
4504 set dummy $ac_cv_prog_BUILD_CXX
4506 if test $# != 0; then
4507 # We chose a different compiler from the bogus one.
4508 # However, it has the same basename, so the bogon will be chosen
4509 # first if we set BUILD_CXX to just the basename; use the full file name.
4511 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4516 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4517 if test -n "$BUILD_CXX"; then
4518 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4519 echo "${ECHO_T}$BUILD_CXX" >&6; }
4521 { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4529 LLVM_CROSS_COMPILING=0
4533 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4544 # Check whether --enable-optimized was given.
4545 if test "${enable_optimized+set}" = set; then
4546 enableval=$enable_optimized;
4551 if test ${enableval} = "no" ; then
4555 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4559 # Check whether --enable-assertions was given.
4560 if test "${enable_assertions+set}" = set; then
4561 enableval=$enable_assertions;
4566 if test ${enableval} = "yes" ; then
4570 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4574 # Check whether --enable-expensive-checks was given.
4575 if test "${enable_expensive_checks+set}" = set; then
4576 enableval=$enable_expensive_checks;
4581 if test ${enableval} = "yes" ; then
4582 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4584 EXPENSIVE_CHECKS=yes
4587 ENABLE_EXPENSIVE_CHECKS=
4593 # Check whether --enable-debug-runtime was given.
4594 if test "${enable_debug_runtime+set}" = set; then
4595 enableval=$enable_debug_runtime;
4600 if test ${enableval} = "no" ; then
4604 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4608 # Check whether --enable-jit was given.
4609 if test "${enable_jit+set}" = set; then
4610 enableval=$enable_jit;
4615 if test ${enableval} = "no"
4620 case "$llvm_cv_target_arch" in
4621 x86) TARGET_HAS_JIT=1
4623 Sparc) TARGET_HAS_JIT=0
4625 PowerPC) TARGET_HAS_JIT=1
4627 x86_64) TARGET_HAS_JIT=1
4629 Alpha) TARGET_HAS_JIT=1
4631 IA64) TARGET_HAS_JIT=0
4633 ARM) TARGET_HAS_JIT=0
4635 Mips) TARGET_HAS_JIT=0
4637 PIC16) TARGET_HAS_JIT=0
4639 XCore) TARGET_HAS_JIT=0
4646 # Check whether --enable-doxygen was given.
4647 if test "${enable_doxygen+set}" = set; then
4648 enableval=$enable_doxygen;
4653 case "$enableval" in
4654 yes) ENABLE_DOXYGEN=1
4656 no) ENABLE_DOXYGEN=0
4658 default) ENABLE_DOXYGEN=0
4660 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4661 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4662 { (exit 1); exit 1; }; } ;;
4665 # Check whether --enable-threads was given.
4666 if test "${enable_threads+set}" = set; then
4667 enableval=$enable_threads;
4672 case "$enableval" in
4673 yes) ENABLE_THREADS=1
4675 no) ENABLE_THREADS=0
4677 default) ENABLE_THREADS=1
4679 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4680 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4681 { (exit 1); exit 1; }; } ;;
4684 cat >>confdefs.h <<_ACEOF
4685 #define ENABLE_THREADS $ENABLE_THREADS
4689 # Check whether --enable-pic was given.
4690 if test "${enable_pic+set}" = set; then
4691 enableval=$enable_pic;
4696 case "$enableval" in
4701 default) ENABLE_PIC=0
4703 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4704 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4705 { (exit 1); exit 1; }; } ;;
4708 cat >>confdefs.h <<_ACEOF
4709 #define ENABLE_PIC $ENABLE_PIC
4714 # Check whether --enable-targets was given.
4715 if test "${enable_targets+set}" = set; then
4716 enableval=$enable_targets;
4721 case "$enableval" in
4722 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
4724 case "$llvm_cv_target_arch" in
4725 x86) TARGETS_TO_BUILD="X86" ;;
4726 x86_64) TARGETS_TO_BUILD="X86" ;;
4727 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4728 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4729 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4730 IA64) TARGETS_TO_BUILD="IA64" ;;
4731 ARM) TARGETS_TO_BUILD="ARM" ;;
4732 Mips) TARGETS_TO_BUILD="Mips" ;;
4733 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4734 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4735 XCore) TARGETS_TO_BUILD="XCore" ;;
4736 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4737 echo "$as_me: error: Can not set target to build" >&2;}
4738 { (exit 1); exit 1; }; } ;;
4741 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4743 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4744 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4745 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4746 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4747 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4748 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4749 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4750 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4751 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4752 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4753 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4754 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4755 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4756 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4757 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4758 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4759 { (exit 1); exit 1; }; } ;;
4764 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4767 # Check whether --enable-cbe-printf-a was given.
4768 if test "${enable_cbe_printf_a+set}" = set; then
4769 enableval=$enable_cbe_printf_a;
4774 case "$enableval" in
4775 yes) ENABLE_CBE_PRINTF_A=1
4777 no) ENABLE_CBE_PRINTF_A=0
4779 default) ENABLE_CBE_PRINTF_A=1
4781 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4782 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4783 { (exit 1); exit 1; }; } ;;
4786 cat >>confdefs.h <<_ACEOF
4787 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4792 # Check whether --with-llvmgccdir was given.
4793 if test "${with_llvmgccdir+set}" = set; then
4794 withval=$with_llvmgccdir;
4800 default) WITH_LLVMGCCDIR=default ;;
4801 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4802 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4803 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4804 { (exit 1); exit 1; }; } ;;
4808 # Check whether --with-llvmgcc was given.
4809 if test "${with_llvmgcc+set}" = set; then
4810 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4816 # Check whether --with-llvmgxx was given.
4817 if test "${with_llvmgxx+set}" = set; then
4818 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4823 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4824 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4825 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4826 { (exit 1); exit 1; }; };
4829 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4830 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4831 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4832 { (exit 1); exit 1; }; };
4836 # Check whether --with-extra-options was given.
4837 if test "${with_extra_options+set}" = set; then
4838 withval=$with_extra_options;
4844 default) EXTRA_OPTIONS= ;;
4845 *) EXTRA_OPTIONS=$withval ;;
4847 EXTRA_OPTIONS=$EXTRA_OPTIONS
4850 # Check whether --enable-bindings was given.
4851 if test "${enable_bindings+set}" = set; then
4852 enableval=$enable_bindings;
4857 BINDINGS_TO_BUILD=""
4858 case "$enableval" in
4859 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4860 all ) BINDINGS_TO_BUILD="ocaml" ;;
4861 none | no) BINDINGS_TO_BUILD="" ;;
4862 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4863 case "$a_binding" in
4864 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4865 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4866 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4867 { (exit 1); exit 1; }; } ;;
4874 # Check whether --with-ocaml-libdir was given.
4875 if test "${with_ocaml_libdir+set}" = set; then
4876 withval=$with_ocaml_libdir;
4882 auto) with_ocaml_libdir="$withval" ;;
4883 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4884 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4885 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4886 { (exit 1); exit 1; }; } ;;
4891 ac_cpp='$CPP $CPPFLAGS'
4892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4896 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4897 # On Suns, sometimes $CPP names a directory.
4898 if test -n "$CPP" && test -d "$CPP"; then
4901 if test -z "$CPP"; then
4902 if test "${ac_cv_prog_CPP+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 # Double quotes because CPP needs to be expanded
4906 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4909 for ac_c_preproc_warn_flag in '' yes
4911 # Use a header file that comes with gcc, so configuring glibc
4912 # with a fresh cross-compiler works.
4913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4914 # <limits.h> exists even on freestanding compilers.
4915 # On the NeXT, cc -E runs the code through the compiler's parser,
4916 # not just through cpp. "Syntax error" is here to catch this case.
4917 cat >conftest.$ac_ext <<_ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4924 # include <limits.h>
4926 # include <assert.h>
4930 if { (ac_try="$ac_cpp conftest.$ac_ext"
4932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4933 *) ac_try_echo
=$ac_try;;
4935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4938 grep -v '^ *+' conftest.er1
>conftest.err
4940 cat conftest.err
>&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } >/dev
/null
&& {
4943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4944 test ! -s conftest.err
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.
$ac_ext >&5
4951 # Broken: fails on valid input.
4955 rm -f conftest.err conftest.
$ac_ext
4957 # OK, works on sane cases. Now check whether nonexistent headers
4958 # can be detected and how.
4959 cat >conftest.
$ac_ext <<_ACEOF
4962 cat confdefs.h
>>conftest.
$ac_ext
4963 cat >>conftest.
$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4965 #include <ac_nonexistent.h>
4967 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4975 grep -v '^ *+' conftest.er1 >conftest.err
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } >/dev/null && {
4980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4983 # Broken: success on invalid input.
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4989 # Passes both tests.
4994 rm -f conftest.err conftest.$ac_ext
4997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4998 rm -f conftest.err conftest.
$ac_ext
4999 if $ac_preproc_ok; then
5011 { echo "$as_me:$LINENO: result: $CPP" >&5
5012 echo "${ECHO_T}$CPP" >&6; }
5014 for ac_c_preproc_warn_flag
in '' yes
5016 # Use a header file that comes with gcc, so configuring glibc
5017 # with a fresh cross-compiler works.
5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019 # <limits.h> exists even on freestanding compilers.
5020 # On the NeXT, cc -E runs the code through the compiler's parser,
5021 # not just through cpp. "Syntax error" is here to catch this case.
5022 cat >conftest.
$ac_ext <<_ACEOF
5025 cat confdefs.h
>>conftest.
$ac_ext
5026 cat >>conftest.
$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5029 # include <limits.h>
5031 # include <assert.h>
5035 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5043 grep -v '^ *+' conftest.er1 >conftest.err
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } >/dev/null && {
5048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5049 test ! -s conftest.err
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5056 # Broken: fails on valid input.
5060 rm -f conftest.err conftest.$ac_ext
5062 # OK, works on sane cases. Now check whether nonexistent headers
5063 # can be detected and how.
5064 cat >conftest.$ac_ext <<_ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 #include <ac_nonexistent.h>
5072 if { (ac_try="$ac_cpp conftest.$ac_ext"
5074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5075 *) ac_try_echo
=$ac_try;;
5077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5080 grep -v '^ *+' conftest.er1
>conftest.err
5082 cat conftest.err
>&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } >/dev
/null
&& {
5085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5086 test ! -s conftest.err
5088 # Broken: success on invalid input.
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.
$ac_ext >&5
5094 # Passes both tests.
5099 rm -f conftest.err conftest.
$ac_ext
5102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5103 rm -f conftest.err conftest.
$ac_ext
5104 if $ac_preproc_ok; then
5107 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5108 See \`config.log' for more details." >&5
5109 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5110 See \`config.log' for more details." >&2;}
5111 { (exit 1); exit 1; }; }
5115 ac_cpp
='$CPP $CPPFLAGS'
5116 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5121 ac_cpp
='$CPP $CPPFLAGS'
5122 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5125 if test -n "$ac_tool_prefix"; then
5128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5129 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5132 if test "${ac_cv_prog_CC+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 if test -n "$CC"; then
5136 ac_cv_prog_CC
="$CC" # Let the user override the test.
5138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5142 test -z "$as_dir" && as_dir
=.
5143 for ac_exec_ext
in '' $ac_executable_extensions; do
5144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5145 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 if test -n "$CC"; then
5157 { echo "$as_me:$LINENO: result: $CC" >&5
5158 echo "${ECHO_T}$CC" >&6; }
5160 { echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6; }
5165 test -n "$CC" && break
5168 if test -z "$CC"; then
5172 # Extract the first word of "$ac_prog", so it can be a program name with args.
5173 set dummy
$ac_prog; ac_word
=$2
5174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 if test -n "$ac_ct_CC"; then
5180 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir
=.
5187 for ac_exec_ext
in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_ac_ct_CC
="$ac_prog"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5200 if test -n "$ac_ct_CC"; then
5201 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5202 echo "${ECHO_T}$ac_ct_CC" >&6; }
5204 { echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6; }
5209 test -n "$ac_ct_CC" && break
5212 if test "x$ac_ct_CC" = x
; then
5215 case $cross_compiling:$ac_tool_warned in
5217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5218 whose name does not start with the host triplet. If you think this
5219 configuration is useful to you, please write to autoconf@gnu.org." >&5
5220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5221 whose name does not start with the host triplet. If you think this
5222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5223 ac_tool_warned
=yes ;;
5230 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5231 See \`config.log' for more details." >&5
5232 echo "$as_me: error: no acceptable C compiler found in \$PATH
5233 See \`config.log' for more details." >&2;}
5234 { (exit 1); exit 1; }; }
5236 # Provide some information about the compiler.
5237 echo "$as_me:$LINENO: checking for C compiler version" >&5
5238 ac_compiler
=`set X $ac_compile; echo $2`
5239 { (ac_try
="$ac_compiler --version >&5"
5241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_compiler --version >&5") 2>&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }
5249 { (ac_try="$ac_compiler -v >&5"
5251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5252 *) ac_try_echo
=$ac_try;;
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_compiler -v >&5") 2>&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }
5259 { (ac_try
="$ac_compiler -V >&5"
5261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_compiler -V >&5") 2>&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }
5270 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5271 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5272 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 cat >conftest.$ac_ext <<_ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5293 rm -f conftest.$ac_objext
5294 if { (ac_try="$ac_compile"
5296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5297 *) ac_try_echo
=$ac_try;;
5299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300 (eval "$ac_compile") 2>conftest.er1
5302 grep -v '^ *+' conftest.er1
>conftest.err
5304 cat conftest.err
>&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } && {
5307 test -z "$ac_c_werror_flag" ||
5308 test ! -s conftest.err
5309 } && test -s conftest.
$ac_objext; then
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.
$ac_ext >&5
5318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5319 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5322 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5323 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5324 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5325 ac_test_CFLAGS
=${CFLAGS+set}
5326 ac_save_CFLAGS
=$CFLAGS
5327 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5328 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5329 if test "${ac_cv_prog_cc_g+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 ac_save_c_werror_flag
=$ac_c_werror_flag
5333 ac_c_werror_flag
=yes
5336 cat >conftest.
$ac_ext <<_ACEOF
5339 cat confdefs.h
>>conftest.
$ac_ext
5340 cat >>conftest.
$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5351 rm -f conftest.
$ac_objext
5352 if { (ac_try
="$ac_compile"
5354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compile") 2>conftest.er1
5360 grep -v '^ *+' conftest.er1 >conftest.err
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && {
5365 test -z "$ac_c_werror_flag" ||
5366 test ! -s conftest.err
5367 } && test -s conftest.$ac_objext; then
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5374 cat >conftest.$ac_ext <<_ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5389 rm -f conftest.$ac_objext
5390 if { (ac_try="$ac_compile"
5392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5393 *) ac_try_echo
=$ac_try;;
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_compile") 2>conftest.er1
5398 grep -v '^ *+' conftest.er1
>conftest.err
5400 cat conftest.err
>&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } && {
5403 test -z "$ac_c_werror_flag" ||
5404 test ! -s conftest.err
5405 } && test -s conftest.
$ac_objext; then
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.
$ac_ext >&5
5411 ac_c_werror_flag
=$ac_save_c_werror_flag
5413 cat >conftest.
$ac_ext <<_ACEOF
5416 cat confdefs.h
>>conftest.
$ac_ext
5417 cat >>conftest.
$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5428 rm -f conftest.
$ac_objext
5429 if { (ac_try
="$ac_compile"
5431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_compile") 2>conftest.er1
5437 grep -v '^ *+' conftest.er1 >conftest.err
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } && {
5442 test -z "$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest.$ac_objext; then
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 ac_c_werror_flag=$ac_save_c_werror_flag
5462 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5463 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5464 if test "$ac_test_CFLAGS" = set; then
5465 CFLAGS=$ac_save_CFLAGS
5466 elif test $ac_cv_prog_cc_g = yes; then
5467 if test "$GCC" = yes; then
5473 if test "$GCC" = yes; then
5479 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5480 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5481 if test "${ac_cv_prog_cc_c89+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 ac_cv_prog_cc_c89=no
5486 cat >conftest.$ac_ext <<_ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5494 #include <sys/types.h>
5495 #include <sys/stat.h>
5496 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5497 struct buf { int x; };
5498 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5499 static char *e (p, i)
5505 static char *f (char * (*g) (char **, int), char **p, ...)
5510 s = g (p, va_arg (v,int));
5515 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5516 function prototypes and stuff, but not '\xHH' hex character constants.
5517 These don't provoke an error unfortunately, instead are silently treated
5518 as 'x'. The following induces an error, until -std is added to get
5519 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5520 array size at least. It's necessary to write '\x00'==0 to get something
5521 that's true only with -std. */
5522 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5524 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5525 inside strings and character constants. */
5527 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5529 int test (int i, double x);
5530 struct s1 {int (*f) (int a);};
5531 struct s2 {int (*f) (double a);};
5532 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5538 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5543 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5544 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5546 CC="$ac_save_CC $ac_arg"
5547 rm -f conftest.$ac_objext
5548 if { (ac_try="$ac_compile"
5550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5551 *) ac_try_echo
=$ac_try;;
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_compile") 2>conftest.er1
5556 grep -v '^ *+' conftest.er1
>conftest.err
5558 cat conftest.err
>&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && {
5561 test -z "$ac_c_werror_flag" ||
5562 test ! -s conftest.err
5563 } && test -s conftest.
$ac_objext; then
5564 ac_cv_prog_cc_c89
=$ac_arg
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.
$ac_ext >&5
5572 rm -f core conftest.err conftest.
$ac_objext
5573 test "x$ac_cv_prog_cc_c89" != "xno" && break
5575 rm -f conftest.
$ac_ext
5580 case "x$ac_cv_prog_cc_c89" in
5582 { echo "$as_me:$LINENO: result: none needed" >&5
5583 echo "${ECHO_T}none needed" >&6; } ;;
5585 { echo "$as_me:$LINENO: result: unsupported" >&5
5586 echo "${ECHO_T}unsupported" >&6; } ;;
5588 CC
="$CC $ac_cv_prog_cc_c89"
5589 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5590 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5595 ac_cpp
='$CPP $CPPFLAGS'
5596 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5597 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5598 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5601 ac_cpp
='$CXXCPP $CPPFLAGS'
5602 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5603 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5604 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5605 if test -z "$CXX"; then
5606 if test -n "$CCC"; then
5609 if test -n "$ac_tool_prefix"; then
5612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5613 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5616 if test "${ac_cv_prog_CXX+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 if test -n "$CXX"; then
5620 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
5622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5626 test -z "$as_dir" && as_dir
=.
5627 for ac_exec_ext
in '' $ac_executable_extensions; do
5628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5629 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
5630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 if test -n "$CXX"; then
5641 { echo "$as_me:$LINENO: result: $CXX" >&5
5642 echo "${ECHO_T}$CXX" >&6; }
5644 { echo "$as_me:$LINENO: result: no" >&5
5645 echo "${ECHO_T}no" >&6; }
5649 test -n "$CXX" && break
5652 if test -z "$CXX"; then
5656 # Extract the first word of "$ac_prog", so it can be a program name with args.
5657 set dummy
$ac_prog; ac_word
=$2
5658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5660 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 if test -n "$ac_ct_CXX"; then
5664 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
5666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5670 test -z "$as_dir" && as_dir
=.
5671 for ac_exec_ext
in '' $ac_executable_extensions; do
5672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5673 ac_cv_prog_ac_ct_CXX
="$ac_prog"
5674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
5684 if test -n "$ac_ct_CXX"; then
5685 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5686 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5688 { echo "$as_me:$LINENO: result: no" >&5
5689 echo "${ECHO_T}no" >&6; }
5693 test -n "$ac_ct_CXX" && break
5696 if test "x$ac_ct_CXX" = x
; then
5699 case $cross_compiling:$ac_tool_warned in
5701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5702 whose name does not start with the host triplet. If you think this
5703 configuration is useful to you, please write to autoconf@gnu.org." >&5
5704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5705 whose name does not start with the host triplet. If you think this
5706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5707 ac_tool_warned
=yes ;;
5715 # Provide some information about the compiler.
5716 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5717 ac_compiler
=`set X $ac_compile; echo $2`
5718 { (ac_try
="$ac_compiler --version >&5"
5720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compiler --version >&5") 2>&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }
5728 { (ac_try="$ac_compiler -v >&5"
5730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5731 *) ac_try_echo
=$ac_try;;
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_compiler -v >&5") 2>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }
5738 { (ac_try
="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }
5749 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5750 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5751 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 cat >conftest.$ac_ext <<_ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5772 rm -f conftest.$ac_objext
5773 if { (ac_try="$ac_compile"
5775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5776 *) ac_try_echo
=$ac_try;;
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compile") 2>conftest.er1
5781 grep -v '^ *+' conftest.er1
>conftest.err
5783 cat conftest.err
>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } && {
5786 test -z "$ac_cxx_werror_flag" ||
5787 test ! -s conftest.err
5788 } && test -s conftest.
$ac_objext; then
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.
$ac_ext >&5
5797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5798 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5801 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5802 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5803 GXX
=`test $ac_compiler_gnu = yes && echo yes`
5804 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5805 ac_save_CXXFLAGS
=$CXXFLAGS
5806 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5807 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5808 if test "${ac_cv_prog_cxx_g+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5812 ac_cxx_werror_flag
=yes
5815 cat >conftest.
$ac_ext <<_ACEOF
5818 cat confdefs.h
>>conftest.
$ac_ext
5819 cat >>conftest.
$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5830 rm -f conftest.
$ac_objext
5831 if { (ac_try
="$ac_compile"
5833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_compile") 2>conftest.er1
5839 grep -v '^ *+' conftest.er1 >conftest.err
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } && {
5844 test -z "$ac_cxx_werror_flag" ||
5845 test ! -s conftest.err
5846 } && test -s conftest.$ac_objext; then
5847 ac_cv_prog_cxx_g=yes
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5853 cat >conftest.$ac_ext <<_ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5868 rm -f conftest.$ac_objext
5869 if { (ac_try="$ac_compile"
5871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5872 *) ac_try_echo
=$ac_try;;
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compile") 2>conftest.er1
5877 grep -v '^ *+' conftest.er1
>conftest.err
5879 cat conftest.err
>&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } && {
5882 test -z "$ac_cxx_werror_flag" ||
5883 test ! -s conftest.err
5884 } && test -s conftest.
$ac_objext; then
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.
$ac_ext >&5
5890 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5892 cat >conftest.
$ac_ext <<_ACEOF
5895 cat confdefs.h
>>conftest.
$ac_ext
5896 cat >>conftest.
$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5907 rm -f conftest.
$ac_objext
5908 if { (ac_try
="$ac_compile"
5910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5914 (eval "$ac_compile") 2>conftest.er1
5916 grep -v '^ *+' conftest.er1 >conftest.err
5918 cat conftest.err >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } && {
5921 test -z "$ac_cxx_werror_flag" ||
5922 test ! -s conftest.err
5923 } && test -s conftest.$ac_objext; then
5924 ac_cv_prog_cxx_g=yes
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5941 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5942 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5943 if test "$ac_test_CXXFLAGS" = set; then
5944 CXXFLAGS=$ac_save_CXXFLAGS
5945 elif test $ac_cv_prog_cxx_g = yes; then
5946 if test "$GXX" = yes; then
5952 if test "$GXX" = yes; then
5959 ac_cpp='$CPP $CPPFLAGS'
5960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5964 { echo "$as_me:$LINENO: checking " >&5
5965 echo $ECHO_N "checking ... $ECHO_C" >&6; }
5966 if test "${ac_cv_has_flex+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 for ac_prog in flex lex
5971 # Extract the first word of "$ac_prog", so it can be a program name with args.
5972 set dummy $ac_prog; ac_word=$2
5973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5975 if test "${ac_cv_prog_LEX+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 if test -n "$LEX"; then
5979 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5988 ac_cv_prog_LEX="$ac_prog"
5989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 if test -n "$LEX"; then
6000 { echo "$as_me:$LINENO: result: $LEX" >&5
6001 echo "${ECHO_T}$LEX" >&6; }
6003 { echo "$as_me:$LINENO: result: no" >&5
6004 echo "${ECHO_T}no" >&6; }
6008 test -n "$LEX" && break
6010 test -n "$LEX" || LEX=":"
6012 if test "x$LEX" != "x:"; then
6013 cat >conftest.l <<_ACEOF
6019 e { yyless (input () != 0); }
6020 f { unput (yytext[0]); }
6021 . { BEGIN INITIAL; }
6023 #ifdef YYTEXT_POINTER
6024 extern char *yytext;
6029 return ! yylex () + ! yywrap ();
6032 { (ac_try="$LEX conftest.l"
6034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6035 *) ac_try_echo
=$ac_try;;
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$LEX conftest.l") 2>&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }
6042 { echo "$as_me:$LINENO: checking lex output file root" >&5
6043 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6044 if test "${ac_cv_prog_lex_root+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 if test -f lex.yy.c
; then
6049 ac_cv_prog_lex_root
=lex.yy
6050 elif test -f lexyy.c
; then
6051 ac_cv_prog_lex_root
=lexyy
6053 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6054 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6055 { (exit 1); exit 1; }; }
6058 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6059 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6060 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
6062 if test -z "${LEXLIB+set}"; then
6063 { echo "$as_me:$LINENO: checking lex library" >&5
6064 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
6065 if test "${ac_cv_lib_lex+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 ac_cv_lib_lex
='none needed'
6071 for ac_lib
in '' -lfl -ll; do
6072 LIBS
="$ac_lib $ac_save_LIBS"
6073 cat >conftest.
$ac_ext <<_ACEOF
6074 `cat $LEX_OUTPUT_ROOT.c`
6076 rm -f conftest.
$ac_objext conftest
$ac_exeext
6077 if { (ac_try
="$ac_link"
6079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_link") 2>conftest.er1
6085 grep -v '^ *+' conftest.er1 >conftest.err
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest$ac_exeext &&
6093 $as_test_x conftest$ac_exeext; then
6094 ac_cv_lib_lex=$ac_lib
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6103 conftest$ac_exeext conftest.$ac_ext
6104 test "$ac_cv_lib_lex" != 'none needed' && break
6109 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
6110 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
6111 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6115 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6116 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6117 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 # POSIX says lex can declare yytext either as a pointer or an array; the
6121 # default is implementation-dependent. Figure out which it is, since
6122 # not all implementations provide the %pointer and %array declarations.
6123 ac_cv_prog_lex_yytext_pointer=no
6125 LIBS="$LEXLIB $ac_save_LIBS"
6126 cat >conftest.$ac_ext <<_ACEOF
6127 #define YYTEXT_POINTER 1
6128 `cat $LEX_OUTPUT_ROOT.c
`
6130 rm -f conftest.$ac_objext conftest$ac_exeext
6131 if { (ac_try="$ac_link"
6133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6134 *) ac_try_echo
=$ac_try;;
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_link") 2>conftest.er1
6139 grep -v '^ *+' conftest.er1
>conftest.err
6141 cat conftest.err
>&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && {
6144 test -z "$ac_c_werror_flag" ||
6145 test ! -s conftest.err
6146 } && test -s conftest
$ac_exeext &&
6147 $as_test_x conftest
$ac_exeext; then
6148 ac_cv_prog_lex_yytext_pointer
=yes
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.
$ac_ext >&5
6156 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6157 conftest
$ac_exeext conftest.
$ac_ext
6161 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6162 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6163 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6165 cat >>confdefs.h
<<\_ACEOF
6166 #define YYTEXT_POINTER 1
6170 rm -f conftest.l
$LEX_OUTPUT_ROOT.c
6175 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6176 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6177 if test "$LEX" != "flex"; then
6178 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6179 echo "$as_me: error: flex not found but required" >&2;}
6180 { (exit 1); exit 1; }; }
6186 { echo "$as_me:$LINENO: checking " >&5
6187 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6188 if test "${llvm_cv_has_bison+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 for ac_prog
in 'bison -y' byacc
6193 # Extract the first word of "$ac_prog", so it can be a program name with args.
6194 set dummy
$ac_prog; ac_word
=$2
6195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6197 if test "${ac_cv_prog_YACC+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 if test -n "$YACC"; then
6201 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6207 test -z "$as_dir" && as_dir
=.
6208 for ac_exec_ext
in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_YACC
="$ac_prog"
6211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 YACC
=$ac_cv_prog_YACC
6221 if test -n "$YACC"; then
6222 { echo "$as_me:$LINENO: result: $YACC" >&5
6223 echo "${ECHO_T}$YACC" >&6; }
6225 { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6230 test -n "$YACC" && break
6232 test -n "$YACC" || YACC
="yacc"
6235 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6236 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6237 if test "$YACC" != "bison -y"; then
6239 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6240 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6246 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6247 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6248 if test "${lt_cv_path_NM+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 if test -n "$NM"; then
6252 # Let the user override the test.
6255 lt_nm_to_check
="${ac_tool_prefix}nm"
6256 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6257 lt_nm_to_check
="$lt_nm_to_check nm"
6259 for lt_tmp_nm
in $lt_nm_to_check; do
6260 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6261 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6263 test -z "$ac_dir" && ac_dir
=.
6264 tmp_nm
="$ac_dir/$lt_tmp_nm"
6265 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
6266 # Check to see if the nm accepts a BSD-compat flag.
6267 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6268 # nm: unknown option "B" ignored
6269 # Tru64's nm complains that /dev/null is an invalid object file
6270 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6271 */dev
/null
* |
*'Invalid file or object type'*)
6272 lt_cv_path_NM
="$tmp_nm -B"
6276 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6278 lt_cv_path_NM
="$tmp_nm -p"
6282 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6283 continue # so that we can try to find one that supports BSD flags
6292 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6295 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6296 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6301 { echo "$as_me:$LINENO: checking for GNU make" >&5
6302 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6303 if test "${llvm_cv_gnu_make_command+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 llvm_cv_gnu_make_command
=''
6307 for a
in "$MAKE" make gmake gnumake
; do
6308 if test -z "$a" ; then continue ; fi ;
6309 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6311 llvm_cv_gnu_make_command
=$a ;
6316 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6317 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6318 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6322 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6323 echo "${ECHO_T}\"Not found\"" >&6; };
6327 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6328 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6330 if test "$LN_S" = "ln -s"; then
6331 { echo "$as_me:$LINENO: result: yes" >&5
6332 echo "${ECHO_T}yes" >&6; }
6334 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6335 echo "${ECHO_T}no, using $LN_S" >&6; }
6338 # Extract the first word of "cmp", so it can be a program name with args.
6339 set dummy
cmp; ac_word
=$2
6340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6342 if test "${ac_cv_path_CMP+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6354 test -z "$as_dir" && as_dir
=.
6355 for ac_exec_ext
in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6370 if test -n "$CMP"; then
6371 { echo "$as_me:$LINENO: result: $CMP" >&5
6372 echo "${ECHO_T}$CMP" >&6; }
6374 { echo "$as_me:$LINENO: result: no" >&5
6375 echo "${ECHO_T}no" >&6; }
6379 # Extract the first word of "cp", so it can be a program name with args.
6380 set dummy
cp; ac_word
=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_path_CP+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6395 test -z "$as_dir" && as_dir
=.
6396 for ac_exec_ext
in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6411 if test -n "$CP"; then
6412 { echo "$as_me:$LINENO: result: $CP" >&5
6413 echo "${ECHO_T}$CP" >&6; }
6415 { echo "$as_me:$LINENO: result: no" >&5
6416 echo "${ECHO_T}no" >&6; }
6420 # Extract the first word of "date", so it can be a program name with args.
6421 set dummy
date; ac_word
=$2
6422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6424 if test "${ac_cv_path_DATE+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6429 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6436 test -z "$as_dir" && as_dir
=.
6437 for ac_exec_ext
in '' $ac_executable_extensions; do
6438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6439 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6451 DATE
=$ac_cv_path_DATE
6452 if test -n "$DATE"; then
6453 { echo "$as_me:$LINENO: result: $DATE" >&5
6454 echo "${ECHO_T}$DATE" >&6; }
6456 { echo "$as_me:$LINENO: result: no" >&5
6457 echo "${ECHO_T}no" >&6; }
6461 # Extract the first word of "find", so it can be a program name with args.
6462 set dummy
find; ac_word
=$2
6463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465 if test "${ac_cv_path_FIND+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6477 test -z "$as_dir" && as_dir
=.
6478 for ac_exec_ext
in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6492 FIND
=$ac_cv_path_FIND
6493 if test -n "$FIND"; then
6494 { echo "$as_me:$LINENO: result: $FIND" >&5
6495 echo "${ECHO_T}$FIND" >&6; }
6497 { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6502 # Extract the first word of "grep", so it can be a program name with args.
6503 set dummy
grep; ac_word
=$2
6504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6506 if test "${ac_cv_path_GREP+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6518 test -z "$as_dir" && as_dir
=.
6519 for ac_exec_ext
in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6533 GREP
=$ac_cv_path_GREP
6534 if test -n "$GREP"; then
6535 { echo "$as_me:$LINENO: result: $GREP" >&5
6536 echo "${ECHO_T}$GREP" >&6; }
6538 { echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6; }
6543 # Extract the first word of "mkdir", so it can be a program name with args.
6544 set dummy mkdir
; ac_word
=$2
6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547 if test "${ac_cv_path_MKDIR+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6559 test -z "$as_dir" && as_dir
=.
6560 for ac_exec_ext
in '' $ac_executable_extensions; do
6561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6562 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6574 MKDIR
=$ac_cv_path_MKDIR
6575 if test -n "$MKDIR"; then
6576 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6577 echo "${ECHO_T}$MKDIR" >&6; }
6579 { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6584 # Extract the first word of "mv", so it can be a program name with args.
6585 set dummy
mv; ac_word
=$2
6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588 if test "${ac_cv_path_MV+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
6596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir
=.
6601 for ac_exec_ext
in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
6604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
6616 if test -n "$MV"; then
6617 { echo "$as_me:$LINENO: result: $MV" >&5
6618 echo "${ECHO_T}$MV" >&6; }
6620 { echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6; }
6625 if test -n "$ac_tool_prefix"; then
6626 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6627 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_prog_RANLIB+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 if test -n "$RANLIB"; then
6634 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir
=.
6641 for ac_exec_ext
in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 RANLIB
=$ac_cv_prog_RANLIB
6654 if test -n "$RANLIB"; then
6655 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6656 echo "${ECHO_T}$RANLIB" >&6; }
6658 { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6664 if test -z "$ac_cv_prog_RANLIB"; then
6665 ac_ct_RANLIB
=$RANLIB
6666 # Extract the first word of "ranlib", so it can be a program name with args.
6667 set dummy ranlib
; ac_word
=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 if test -n "$ac_ct_RANLIB"; then
6674 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir
=.
6681 for ac_exec_ext
in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6694 if test -n "$ac_ct_RANLIB"; then
6695 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6696 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6698 { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6702 if test "x$ac_ct_RANLIB" = x
; then
6705 case $cross_compiling:$ac_tool_warned in
6707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6708 whose name does not start with the host triplet. If you think this
6709 configuration is useful to you, please write to autoconf@gnu.org." >&5
6710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6711 whose name does not start with the host triplet. If you think this
6712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6713 ac_tool_warned
=yes ;;
6715 RANLIB
=$ac_ct_RANLIB
6718 RANLIB
="$ac_cv_prog_RANLIB"
6721 # Extract the first word of "rm", so it can be a program name with args.
6722 set dummy
rm; ac_word
=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_path_RM+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
6733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6737 test -z "$as_dir" && as_dir
=.
6738 for ac_exec_ext
in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
6753 if test -n "$RM"; then
6754 { echo "$as_me:$LINENO: result: $RM" >&5
6755 echo "${ECHO_T}$RM" >&6; }
6757 { echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6; }
6762 # Extract the first word of "sed", so it can be a program name with args.
6763 set dummy
sed; ac_word
=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_SED+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
6774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir
=.
6779 for ac_exec_ext
in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
6794 if test -n "$SED"; then
6795 { echo "$as_me:$LINENO: result: $SED" >&5
6796 echo "${ECHO_T}$SED" >&6; }
6798 { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6803 # Extract the first word of "tar", so it can be a program name with args.
6804 set dummy
tar; ac_word
=$2
6805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807 if test "${ac_cv_path_TAR+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
6815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir
=.
6820 for ac_exec_ext
in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
6835 if test -n "$TAR"; then
6836 { echo "$as_me:$LINENO: result: $TAR" >&5
6837 echo "${ECHO_T}$TAR" >&6; }
6839 { echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6; }
6844 # Extract the first word of "pwd", so it can be a program name with args.
6845 set dummy
pwd; ac_word
=$2
6846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6848 if test "${ac_cv_path_BINPWD+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
6856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6860 test -z "$as_dir" && as_dir
=.
6861 for ac_exec_ext
in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
6864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
6875 BINPWD
=$ac_cv_path_BINPWD
6876 if test -n "$BINPWD"; then
6877 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6878 echo "${ECHO_T}$BINPWD" >&6; }
6880 { echo "$as_me:$LINENO: result: no" >&5
6881 echo "${ECHO_T}no" >&6; }
6886 # Extract the first word of "Graphviz", so it can be a program name with args.
6887 set dummy Graphviz
; ac_word
=$2
6888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
6898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6902 test -z "$as_dir" && as_dir
=.
6903 for ac_exec_ext
in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
6917 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
6918 if test -n "$GRAPHVIZ"; then
6919 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6920 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6922 { echo "$as_me:$LINENO: result: no" >&5
6923 echo "${ECHO_T}no" >&6; }
6927 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6929 cat >>confdefs.h
<<\_ACEOF
6930 #define HAVE_GRAPHVIZ 1
6933 if test "$llvm_cv_os_type" = "MingW" ; then
6934 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6937 cat >>confdefs.h
<<_ACEOF
6938 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6942 # Extract the first word of "dot", so it can be a program name with args.
6943 set dummy dot
; ac_word
=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_path_DOT+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
6954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6958 test -z "$as_dir" && as_dir
=.
6959 for ac_exec_ext
in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
6962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
6974 if test -n "$DOT"; then
6975 { echo "$as_me:$LINENO: result: $DOT" >&5
6976 echo "${ECHO_T}$DOT" >&6; }
6978 { echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6; }
6983 if test "$DOT" != "echo dot" ; then
6985 cat >>confdefs.h
<<\_ACEOF
6989 if test "$llvm_cv_os_type" = "MingW" ; then
6990 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6993 cat >>confdefs.h
<<_ACEOF
6994 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6998 for ac_prog
in gv gsview32
7000 # Extract the first word of "$ac_prog", so it can be a program name with args.
7001 set dummy
$ac_prog; ac_word
=$2
7002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004 if test "${ac_cv_path_GV+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7016 test -z "$as_dir" && as_dir
=.
7017 for ac_exec_ext
in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 if test -n "$GV"; then
7032 { echo "$as_me:$LINENO: result: $GV" >&5
7033 echo "${ECHO_T}$GV" >&6; }
7035 { echo "$as_me:$LINENO: result: no" >&5
7036 echo "${ECHO_T}no" >&6; }
7040 test -n "$GV" && break
7042 test -n "$GV" || GV
="echo gv"
7044 if test "$GV" != "echo gv" ; then
7046 cat >>confdefs.h
<<\_ACEOF
7050 if test "$llvm_cv_os_type" = "MingW" ; then
7051 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7054 cat >>confdefs.h
<<_ACEOF
7055 #define LLVM_PATH_GV "$GV${EXEEXT}"
7059 # Extract the first word of "dotty", so it can be a program name with args.
7060 set dummy dotty
; ac_word
=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_path_DOTTY+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7075 test -z "$as_dir" && as_dir
=.
7076 for ac_exec_ext
in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7090 DOTTY
=$ac_cv_path_DOTTY
7091 if test -n "$DOTTY"; then
7092 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7093 echo "${ECHO_T}$DOTTY" >&6; }
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7100 if test "$DOTTY" != "echo dotty" ; then
7102 cat >>confdefs.h
<<\_ACEOF
7103 #define HAVE_DOTTY 1
7106 if test "$llvm_cv_os_type" = "MingW" ; then
7107 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7110 cat >>confdefs.h
<<_ACEOF
7111 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7117 # Extract the first word of "perl", so it can be a program name with args.
7118 set dummy perl
; ac_word
=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_path_PERL+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir
=.
7134 for ac_exec_ext
in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7148 PERL
=$ac_cv_path_PERL
7149 if test -n "$PERL"; then
7150 { echo "$as_me:$LINENO: result: $PERL" >&5
7151 echo "${ECHO_T}$PERL" >&6; }
7153 { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7158 if test "$PERL" != "none"; then
7159 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7160 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7161 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7162 { echo "$as_me:$LINENO: result: yes" >&5
7163 echo "${ECHO_T}yes" >&6; }
7166 { echo "$as_me:$LINENO: result: not found" >&5
7167 echo "${ECHO_T}not found" >&6; }
7172 if test x
"$PERL" = xnone
; then
7175 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7176 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7177 { (exit 1); exit 1; }; }
7183 # Find a good install program. We prefer a C program (faster),
7184 # so one script is as good as another. But avoid the broken or
7185 # incompatible versions:
7186 # SysV /etc/install, /usr/sbin/install
7187 # SunOS /usr/etc/install
7188 # IRIX /sbin/install
7190 # AmigaOS /C/install, which installs bootblocks on floppy discs
7191 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7194 # OS/2's system install, which has a completely different semantic
7195 # ./install, which can be erroneously created by make from ./install.sh.
7196 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7197 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7198 if test -z "$INSTALL"; then
7199 if test "${ac_cv_path_install+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7206 test -z "$as_dir" && as_dir
=.
7207 # Account for people who put trailing slashes in PATH elements.
7209 .
/ | .
// |
/cC
/* | \
7210 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7211 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7214 # OSF1 and SCO ODT 3.0 have their own names for install.
7215 # Don't use installbsd from OSF since it installs stuff as root
7217 for ac_prog
in ginstall scoinst
install; do
7218 for ac_exec_ext
in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7220 if test $ac_prog = install &&
7221 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7222 # AIX install. It has an incompatible calling convention.
7224 elif test $ac_prog = install &&
7225 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7226 # program-specific install script used by HP pwplus--don't use.
7229 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7242 if test "${ac_cv_path_install+set}" = set; then
7243 INSTALL
=$ac_cv_path_install
7245 # As a last resort, use the slow shell script. Don't cache a
7246 # value for INSTALL within a source directory, because that will
7247 # break other packages using the cache if that directory is
7248 # removed, or if the value is a relative name.
7249 INSTALL
=$ac_install_sh
7252 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7253 echo "${ECHO_T}$INSTALL" >&6; }
7255 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7256 # It thinks the first close brace ends the variable substitution.
7257 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7259 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7261 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7264 # Extract the first word of "bzip2", so it can be a program name with args.
7265 set dummy
bzip2; ac_word
=$2
7266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7268 if test "${ac_cv_path_BZIP2+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7280 test -z "$as_dir" && as_dir
=.
7281 for ac_exec_ext
in '' $ac_executable_extensions; do
7282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7283 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 BZIP2
=$ac_cv_path_BZIP2
7295 if test -n "$BZIP2"; then
7296 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7297 echo "${ECHO_T}$BZIP2" >&6; }
7299 { echo "$as_me:$LINENO: result: no" >&5
7300 echo "${ECHO_T}no" >&6; }
7304 # Extract the first word of "doxygen", so it can be a program name with args.
7305 set dummy doxygen
; ac_word
=$2
7306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
7316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7320 test -z "$as_dir" && as_dir
=.
7321 for ac_exec_ext
in '' $ac_executable_extensions; do
7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7323 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 DOXYGEN
=$ac_cv_path_DOXYGEN
7335 if test -n "$DOXYGEN"; then
7336 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7337 echo "${ECHO_T}$DOXYGEN" >&6; }
7339 { echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6; }
7344 # Extract the first word of "groff", so it can be a program name with args.
7345 set dummy
groff; ac_word
=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_path_GROFF+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
7356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir
=.
7361 for ac_exec_ext
in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 GROFF
=$ac_cv_path_GROFF
7375 if test -n "$GROFF"; then
7376 { echo "$as_me:$LINENO: result: $GROFF" >&5
7377 echo "${ECHO_T}$GROFF" >&6; }
7379 { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7384 # Extract the first word of "gzip", so it can be a program name with args.
7385 set dummy
gzip; ac_word
=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_path_GZIP+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
7396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir
=.
7401 for ac_exec_ext
in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 GZIP
=$ac_cv_path_GZIP
7415 if test -n "$GZIP"; then
7416 { echo "$as_me:$LINENO: result: $GZIP" >&5
7417 echo "${ECHO_T}$GZIP" >&6; }
7419 { echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6; }
7424 # Extract the first word of "pod2html", so it can be a program name with args.
7425 set dummy pod2html
; ac_word
=$2
7426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_POD2HTML+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
7436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir
=.
7441 for ac_exec_ext
in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 POD2HTML
=$ac_cv_path_POD2HTML
7455 if test -n "$POD2HTML"; then
7456 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7457 echo "${ECHO_T}$POD2HTML" >&6; }
7459 { echo "$as_me:$LINENO: result: no" >&5
7460 echo "${ECHO_T}no" >&6; }
7464 # Extract the first word of "pod2man", so it can be a program name with args.
7465 set dummy pod2man
; ac_word
=$2
7466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468 if test "${ac_cv_path_POD2MAN+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
7476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7480 test -z "$as_dir" && as_dir
=.
7481 for ac_exec_ext
in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
7484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 POD2MAN
=$ac_cv_path_POD2MAN
7495 if test -n "$POD2MAN"; then
7496 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7497 echo "${ECHO_T}$POD2MAN" >&6; }
7499 { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7504 # Extract the first word of "runtest", so it can be a program name with args.
7505 set dummy runtest
; ac_word
=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_path_RUNTEST+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
7516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7520 test -z "$as_dir" && as_dir
=.
7521 for ac_exec_ext
in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 RUNTEST
=$ac_cv_path_RUNTEST
7535 if test -n "$RUNTEST"; then
7536 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7537 echo "${ECHO_T}$RUNTEST" >&6; }
7539 { echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6; }
7546 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7547 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7549 # Check whether --with-tclinclude was given.
7550 if test "${with_tclinclude+set}" = set; then
7551 withval
=$with_tclinclude; with_tclinclude
=${withval}
7556 if test "${ac_cv_path_tclsh+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 if test x
"${with_tclinclude}" != x
; then
7561 if test -f ${with_tclinclude}/tclsh
; then
7562 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
7563 elif test -f ${with_tclinclude}/src
/tclsh
; then
7564 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
7566 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7567 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7568 { (exit 1); exit 1; }; }
7572 if test x
"${ac_cv_path_tclsh}" = x
; then
7573 { echo "$as_me:$LINENO: result: none" >&5
7574 echo "${ECHO_T}none" >&6; }
7575 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
7577 # Extract the first word of "$ac_prog", so it can be a program name with args.
7578 set dummy
$ac_prog; ac_word
=$2
7579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7581 if test "${ac_cv_path_TCLSH+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
7589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7593 test -z "$as_dir" && as_dir
=.
7594 for ac_exec_ext
in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7596 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
7597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 TCLSH
=$ac_cv_path_TCLSH
7608 if test -n "$TCLSH"; then
7609 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7610 echo "${ECHO_T}$TCLSH" >&6; }
7612 { echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6; }
7617 test -n "$TCLSH" && break
7620 if test x
"${TCLSH}" = x
; then
7621 ac_cv_path_tclsh
='';
7623 ac_cv_path_tclsh
="${TCLSH}";
7626 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7627 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7628 TCLSH="${ac_cv_path_tclsh}"
7634 # Extract the first word of "zip", so it can be a program name with args.
7635 set dummy zip; ac_word=$2
7636 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7637 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7638 if test "${ac_cv_path_ZIP+set}" = set; then
7639 echo $ECHO_N "(cached
) $ECHO_C" >&6
7643 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7654 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7665 if test -n "$ZIP"; then
7666 { echo "$as_me:$LINENO: result
: $ZIP" >&5
7667 echo "${ECHO_T}$ZIP" >&6; }
7669 { echo "$as_me:$LINENO: result
: no
" >&5
7670 echo "${ECHO_T}no
" >&6; }
7674 for ac_prog in ocamlc
7676 # Extract the first word of "$ac_prog", so it can be a program name with args.
7677 set dummy $ac_prog; ac_word=$2
7678 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7679 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7680 if test "${ac_cv_path_OCAMLC+set}" = set; then
7681 echo $ECHO_N "(cached
) $ECHO_C" >&6
7685 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7695 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7696 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7706 OCAMLC=$ac_cv_path_OCAMLC
7707 if test -n "$OCAMLC"; then
7708 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
7709 echo "${ECHO_T}$OCAMLC" >&6; }
7711 { echo "$as_me:$LINENO: result
: no
" >&5
7712 echo "${ECHO_T}no
" >&6; }
7716 test -n "$OCAMLC" && break
7719 for ac_prog in ocamlopt
7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
7722 set dummy $ac_prog; ac_word=$2
7723 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7724 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7725 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7726 echo $ECHO_N "(cached
) $ECHO_C" >&6
7730 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7740 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7741 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7751 OCAMLOPT=$ac_cv_path_OCAMLOPT
7752 if test -n "$OCAMLOPT"; then
7753 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
7754 echo "${ECHO_T}$OCAMLOPT" >&6; }
7756 { echo "$as_me:$LINENO: result
: no
" >&5
7757 echo "${ECHO_T}no
" >&6; }
7761 test -n "$OCAMLOPT" && break
7764 for ac_prog in ocamldep
7766 # Extract the first word of "$ac_prog", so it can be a program name with args.
7767 set dummy $ac_prog; ac_word=$2
7768 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7769 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7770 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7771 echo $ECHO_N "(cached
) $ECHO_C" >&6
7775 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7785 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7786 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7796 OCAMLDEP=$ac_cv_path_OCAMLDEP
7797 if test -n "$OCAMLDEP"; then
7798 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
7799 echo "${ECHO_T}$OCAMLDEP" >&6; }
7801 { echo "$as_me:$LINENO: result
: no
" >&5
7802 echo "${ECHO_T}no
" >&6; }
7806 test -n "$OCAMLDEP" && break
7809 for ac_prog in ocamldoc
7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
7812 set dummy $ac_prog; ac_word=$2
7813 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7814 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7815 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7816 echo $ECHO_N "(cached
) $ECHO_C" >&6
7820 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7830 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7831 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7841 OCAMLDOC=$ac_cv_path_OCAMLDOC
7842 if test -n "$OCAMLDOC"; then
7843 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
7844 echo "${ECHO_T}$OCAMLDOC" >&6; }
7846 { echo "$as_me:$LINENO: result
: no
" >&5
7847 echo "${ECHO_T}no
" >&6; }
7851 test -n "$OCAMLDOC" && break
7854 for ac_prog in gas as
7856 # Extract the first word of "$ac_prog", so it can be a program name with args.
7857 set dummy $ac_prog; ac_word=$2
7858 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7859 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7860 if test "${ac_cv_path_GAS+set}" = set; then
7861 echo $ECHO_N "(cached
) $ECHO_C" >&6
7865 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7876 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7887 if test -n "$GAS"; then
7888 { echo "$as_me:$LINENO: result
: $GAS" >&5
7889 echo "${ECHO_T}$GAS" >&6; }
7891 { echo "$as_me:$LINENO: result
: no
" >&5
7892 echo "${ECHO_T}no
" >&6; }
7896 test -n "$GAS" && break
7900 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-R<path
> option
" >&5
7901 echo $ECHO_N "checking
for compiler
-Wl,-R<path
> option...
$ECHO_C" >&6; }
7902 if test "${llvm_cv_link_use_r+set}" = set; then
7903 echo $ECHO_N "(cached
) $ECHO_C" >&6
7906 ac_cpp='$CPP $CPPFLAGS'
7907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7912 CFLAGS="$CFLAGS -Wl,-R.
"
7913 cat >conftest.$ac_ext <<_ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7923 int main() { return 0; }
7928 rm -f conftest.$ac_objext conftest$ac_exeext
7929 if { (ac_try="$ac_link"
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_link") 2>conftest.er1
7937 grep -v '^ *+' conftest.er1 >conftest.err
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7941 (exit $ac_status); } && {
7942 test -z "$ac_c_werror_flag" ||
7943 test ! -s conftest.err
7944 } && test -s conftest$ac_exeext &&
7945 $as_test_x conftest$ac_exeext; then
7946 llvm_cv_link_use_r=yes
7948 echo "$as_me: failed program was
:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 llvm_cv_link_use_r=no
7954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7955 conftest$ac_exeext conftest.$ac_ext
7958 ac_cpp='$CPP $CPPFLAGS'
7959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7965 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_r" >&5
7966 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7967 if test "$llvm_cv_link_use_r" = yes ; then
7969 cat >>confdefs.h <<\_ACEOF
7970 #define HAVE_LINK_R 1
7978 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
7979 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
7980 if test "${ac_cv_c_const+set}" = set; then
7981 echo $ECHO_N "(cached
) $ECHO_C" >&6
7983 cat >conftest.$ac_ext <<_ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7993 /* FIXME: Include the comments suggested by Paul. */
7995 /* Ultrix mips cc rejects this. */
7996 typedef int charset[2];
7998 /* SunOS 4.1.1 cc rejects this. */
7999 char const *const *pcpcc;
8001 /* NEC SVR4.0.2 mips cc rejects this. */
8002 struct point {int x, y;};
8003 static struct point const zero = {0,0};
8004 /* AIX XL C 1.02.0.0 rejects this.
8005 It does not let you subtract one const X* pointer from another in
8006 an arm of an if-expression whose if-part is not a constant
8008 const char *g = "string
";
8009 pcpcc = &g + (g ? g-g : 0);
8010 /* HPUX 7.0 cc rejects these. */
8012 ppc = (char**) pcpcc;
8013 pcpcc = (char const *const *) ppc;
8014 { /* SCO 3.2v4 cc rejects this. */
8016 char const *s = 0 ? (char *) 0 : (char const *) 0;
8021 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8023 const int *foo = &x[0];
8026 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8027 typedef const int *iptr;
8031 { /* AIX XL C 1.02.0.0 rejects this saying
8032 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8033 struct s { int j; const int *ap[3]; };
8034 struct s *b; b->j = 5;
8036 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8040 return !cs[0] && !zero.x;
8047 rm -f conftest.$ac_objext
8048 if { (ac_try="$ac_compile"
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest.$ac_objext; then
8066 echo "$as_me: failed program was
:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
8075 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8076 if test $ac_cv_c_const = no; then
8078 cat >>confdefs.h <<\_ACEOF
8090 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8091 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8092 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
8093 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
8094 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8095 echo $ECHO_N "(cached
) $ECHO_C" >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 #include <sys/types.h>
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8132 eval "$as_ac_Header=yes"
8134 echo "$as_me: failed program was
:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 eval "$as_ac_Header=no
"
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 ac_res=`eval echo '${'$as_ac_Header'}'`
8143 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8144 echo "${ECHO_T}$ac_res" >&6; }
8145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8146 cat >>confdefs.h <<_ACEOF
8147 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8150 ac_header_dirent=$ac_hdr; break
8154 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8155 if test $ac_header_dirent = dirent.h; then
8156 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8157 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8158 if test "${ac_cv_search_opendir+set}" = set; then
8159 echo $ECHO_N "(cached
) $ECHO_C" >&6
8161 ac_func_search_save_LIBS=$LIBS
8162 cat >conftest.$ac_ext <<_ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8169 /* Override any GCC internal prototype to avoid an error.
8170 Use char because int might match the return type of a GCC
8171 builtin and then its argument prototype would still apply. */
8184 for ac_lib in '' dir; do
8185 if test -z "$ac_lib"; then
8186 ac_res="none required
"
8189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8191 rm -f conftest.$ac_objext conftest$ac_exeext
8192 if { (ac_try="$ac_link"
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_link") 2>conftest.er1
8200 grep -v '^ *+' conftest.er1 >conftest.err
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8204 (exit $ac_status); } && {
8205 test -z "$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8207 } && test -s conftest$ac_exeext &&
8208 $as_test_x conftest$ac_exeext; then
8209 ac_cv_search_opendir=$ac_res
8211 echo "$as_me: failed program was
:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8219 if test "${ac_cv_search_opendir+set}" = set; then
8223 if test "${ac_cv_search_opendir+set}" = set; then
8226 ac_cv_search_opendir=no
8229 LIBS=$ac_func_search_save_LIBS
8231 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8232 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8233 ac_res=$ac_cv_search_opendir
8234 if test "$ac_res" != no; then
8235 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8240 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
8241 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
8242 if test "${ac_cv_search_opendir+set}" = set; then
8243 echo $ECHO_N "(cached
) $ECHO_C" >&6
8245 ac_func_search_save_LIBS=$LIBS
8246 cat >conftest.$ac_ext <<_ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8253 /* Override any GCC internal prototype to avoid an error.
8254 Use char because int might match the return type of a GCC
8255 builtin and then its argument prototype would still apply. */
8268 for ac_lib in '' x; do
8269 if test -z "$ac_lib"; then
8270 ac_res="none required
"
8273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8275 rm -f conftest.$ac_objext conftest$ac_exeext
8276 if { (ac_try="$ac_link"
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8281 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_link") 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8288 (exit $ac_status); } && {
8289 test -z "$ac_c_werror_flag" ||
8290 test ! -s conftest.err
8291 } && test -s conftest$ac_exeext &&
8292 $as_test_x conftest$ac_exeext; then
8293 ac_cv_search_opendir=$ac_res
8295 echo "$as_me: failed program was
:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8303 if test "${ac_cv_search_opendir+set}" = set; then
8307 if test "${ac_cv_search_opendir+set}" = set; then
8310 ac_cv_search_opendir=no
8313 LIBS=$ac_func_search_save_LIBS
8315 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
8316 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8317 ac_res=$ac_cv_search_opendir
8318 if test "$ac_res" != no; then
8319 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8326 for ac_header in dlfcn.h
8328 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8329 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8330 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8331 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8332 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8333 echo $ECHO_N "(cached
) $ECHO_C" >&6
8335 ac_res=`eval echo '${'$as_ac_Header'}'`
8336 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8337 echo "${ECHO_T}$ac_res" >&6; }
8339 # Is the header compilable?
8340 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8341 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8342 cat >conftest.$ac_ext <<_ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 $ac_includes_default
8349 #include <$ac_header>
8351 rm -f conftest.$ac_objext
8352 if { (ac_try="$ac_compile"
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_compile") 2>conftest.er1
8360 grep -v '^ *+' conftest.er1 >conftest.err
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest.$ac_objext; then
8368 ac_header_compiler=yes
8370 echo "$as_me: failed program was
:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8373 ac_header_compiler=no
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8378 echo "${ECHO_T}$ac_header_compiler" >&6; }
8380 # Is the header present?
8381 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8382 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8383 cat >conftest.$ac_ext <<_ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 #include <$ac_header>
8391 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8399 grep -v '^ *+' conftest.er1 >conftest.err
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8403 (exit $ac_status); } >/dev/null && {
8404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8407 ac_header_preproc=yes
8409 echo "$as_me: failed program was
:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 ac_header_preproc=no
8415 rm -f conftest.err conftest.$ac_ext
8416 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8417 echo "${ECHO_T}$ac_header_preproc" >&6; }
8419 # So? What about this header?
8420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8422 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8423 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8424 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8426 ac_header_preproc=yes
8429 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8430 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8431 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8432 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8433 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8434 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8435 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8436 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8437 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8439 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8440 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8442 ## ----------------------------------- ##
8443 ## Report this to llvmbugs@cs.uiuc.edu ##
8444 ## ----------------------------------- ##
8446 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
8449 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8450 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8451 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8452 echo $ECHO_N "(cached
) $ECHO_C" >&6
8454 eval "$as_ac_Header=\
$ac_header_preproc"
8456 ac_res=`eval echo '${'$as_ac_Header'}'`
8457 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8458 echo "${ECHO_T}$ac_res" >&6; }
8461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8462 cat >>confdefs.h <<_ACEOF
8463 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8470 # Check whether --enable-ltdl-install was given.
8471 if test "${enable_ltdl_install+set}" = set; then
8472 enableval=$enable_ltdl_install;
8478 if test x"${enable_ltdl_install-no}" != xno; then
8480 INSTALL_LTDL_FALSE='#'
8482 INSTALL_LTDL_TRUE='#'
8488 if test x"${enable_ltdl_convenience-no}" != xno; then
8489 CONVENIENCE_LTDL_TRUE=
8490 CONVENIENCE_LTDL_FALSE='#'
8492 CONVENIENCE_LTDL_TRUE='#'
8493 CONVENIENCE_LTDL_FALSE=
8497 { echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
8498 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6; }
8500 libname_spec='lib$name'
8508 shlibpath_overrides_runpath=unknown
8510 dynamic_linker="$host_os ld.so
"
8511 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
8512 if test "$GCC" = yes; then
8513 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
8514 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8515 # if the path contains ";" then we assume it to be the separator
8516 # otherwise default to the standard path separator (i.e. ":") - it is
8517 # assumed that no part of a normal pathname contains ";" but that should
8518 # okay in the real world where ";" in dirpaths is itself problematic.
8519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
8524 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
8526 need_lib_prefix=unknown
8527 hardcode_into_libs=no
8529 # when you set need_version to no, make sure it does not cause -set_version
8530 # flags to be left without arguments
8531 need_version=unknown
8536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8537 shlibpath_var=LIBPATH
8539 # AIX 3 has no versioning support, so we append a major version to the name.
8540 soname_spec='${libname}${release}${shared_ext}$major'
8547 hardcode_into_libs=yes
8548 if test "$host_cpu" = ia64; then
8549 # AIX 5 supports IA64
8550 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8551 shlibpath_var=LD_LIBRARY_PATH
8553 # With GCC up to 2.95.x, collect2 would create an import file
8554 # for dependence libraries. The import file would start with
8555 # the line `#! .'. This would cause the generated library to
8556 # depend on `.', always an invalid library. This was fixed in
8557 # development snapshots of GCC prior to 3.0.
8559 aix4 | aix4.[01] | aix4.[01].*)
8560 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8562 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8569 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8570 # soname into executable. Probably we can add versioning support to
8571 # collect2, so additional links can be useful in future.
8572 if test "$aix_use_runtimelinking" = yes; then
8573 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8574 # instead of lib<name>.a to let people know that these are not
8575 # typical AIX shared libraries.
8576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8578 # We preserve .a as extension for shared libraries through AIX4.2
8579 # and later when we are not doing run time linking.
8580 library_names_spec='${libname}${release}.a $libname.a'
8581 soname_spec='${libname}${release}${shared_ext}$major'
8583 shlibpath_var=LIBPATH
8588 library_names_spec='$libname.ixlibrary $libname.a'
8589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8590 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'
8594 library_names_spec='${libname}${shared_ext}'
8595 dynamic_linker="$host_os ld.so
"
8596 shlibpath_var=LIBRARY_PATH
8602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8603 soname_spec='${libname}${release}${shared_ext}$major'
8604 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
8605 shlibpath_var=LD_LIBRARY_PATH
8606 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
8607 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
8608 # the default ld.so.conf also contains /usr/contrib/lib and
8609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8610 # libtool to hard-code these into programs
8613 cygwin* | mingw* | pw32*)
8614 version_type=windows
8619 case $GCC,$host_os in
8620 yes,cygwin* | yes,mingw* | yes,pw32*)
8621 library_names_spec='$libname.dll.a'
8622 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8623 postinstall_cmds='base_file=`basename \${file}`~
8624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8625 dldir=$destdir/`dirname \$dlpath`~
8626 test -d \$dldir || mkdir -p \$dldir~
8627 $install_prog $dir/$dlname \$dldir/$dlname~
8628 chmod a+x \$dldir/$dlname'
8629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8630 dlpath=$dir/\$dldll~
8632 shlibpath_overrides_runpath=yes
8636 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8637 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8638 sys_lib_search_path_spec="/usr
/lib
/lib
/w32api
/lib
/usr
/local
/lib
"
8641 # MinGW DLLs use traditional 'lib' prefix
8642 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8643 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
8644 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8645 # It is most probably a Windows format PATH printed by
8646 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8647 # path with ; separators, and with drive letters. We can handle the
8648 # drive letters (cygwin fileutils understands them), so leave them,
8649 # especially as we might pass files found there to a mingw objdump,
8650 # which wouldn't understand a cygwinified path. Ahh.
8651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
8657 # pw32 DLLs use 'pw' prefix rather than 'lib'
8658 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8664 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8667 dynamic_linker='Win32 ld.exe'
8668 # FIXME: first we should search . and the directory the executable is in
8672 darwin* | rhapsody*)
8673 dynamic_linker="$host_os dyld
"
8677 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8678 soname_spec='${libname}${release}${major}$shared_ext'
8679 shlibpath_overrides_runpath=yes
8680 shlibpath_var=DYLD_LIBRARY_PATH
8681 shrext_cmds='.dylib'
8682 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8683 if test "$GCC" = yes; then
8684 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
"`
8686 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8688 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8696 soname_spec='${libname}${release}${shared_ext}$major'
8697 shlibpath_var=LD_LIBRARY_PATH
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8709 soname_spec='${libname}${release}${shared_ext}$major'
8710 shlibpath_var=LD_LIBRARY_PATH
8711 shlibpath_overrides_runpath=no
8712 hardcode_into_libs=yes
8713 dynamic_linker='GNU ld.so'
8716 freebsd* | dragonfly*)
8717 # DragonFly does not have aout. When/if they implement a new
8718 # versioning mechanism, adjust this.
8719 if test -x /usr/bin/objformat; then
8720 objformat=`/usr/bin/objformat`
8723 freebsd[123]*) objformat=aout ;;
8727 version_type=freebsd-$objformat
8728 case $version_type in
8730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8739 shlibpath_var=LD_LIBRARY_PATH
8742 shlibpath_overrides_runpath=yes
8744 freebsd3.[01]* | freebsdelf3.[01]*)
8745 shlibpath_overrides_runpath=yes
8746 hardcode_into_libs=yes
8748 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8749 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8750 shlibpath_overrides_runpath=no
8751 hardcode_into_libs=yes
8753 freebsd*) # from 4.6 on
8754 shlibpath_overrides_runpath=yes
8755 hardcode_into_libs=yes
8764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8765 soname_spec='${libname}${release}${shared_ext}$major'
8766 shlibpath_var=LD_LIBRARY_PATH
8767 hardcode_into_libs=yes
8770 hpux9* | hpux10* | hpux11*)
8771 # Give a soname corresponding to the major version so that dld.sl refuses to
8772 # link against other versions.
8779 hardcode_into_libs=yes
8780 dynamic_linker="$host_os dld.so
"
8781 shlibpath_var=LD_LIBRARY_PATH
8782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8785 if test "X
$HPUX_IA64_MODE" = X32; then
8786 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
8788 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
8790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8794 hardcode_into_libs=yes
8795 dynamic_linker="$host_os dld.sl
"
8796 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8799 soname_spec='${libname}${release}${shared_ext}$major'
8800 sys_lib_search_path_spec="/usr
/lib
/pa20_64
/usr
/ccs
/lib
/pa20_64
"
8801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8805 dynamic_linker="$host_os dld.sl
"
8806 shlibpath_var=SHLIB_PATH
8807 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809 soname_spec='${libname}${release}${shared_ext}$major'
8812 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8813 postinstall_cmds='chmod 555 $lib'
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8821 soname_spec='${libname}${release}${shared_ext}$major'
8822 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8823 shlibpath_var=LD_LIBRARY_PATH
8824 shlibpath_overrides_runpath=no
8825 hardcode_into_libs=yes
8828 irix5* | irix6* | nonstopux*)
8830 nonstopux*) version_type=nonstopux ;;
8832 if test "$lt_cv_prog_gnu_ld" = yes; then
8840 soname_spec='${libname}${release}${shared_ext}$major'
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8843 irix5* | nonstopux*)
8847 case $LD in # libtool.m4 will add one of these switches to LD
8848 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8849 libsuff= shlibsuff= libmagic=32-bit;;
8850 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8851 libsuff=32 shlibsuff=N32 libmagic=N32;;
8852 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8853 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8854 *) libsuff= shlibsuff= libmagic=never-match;;
8858 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8859 shlibpath_overrides_runpath=no
8860 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8861 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
8862 hardcode_into_libs=yes
8865 # No shared lib support for Linux oldld, aout, or coff.
8866 linux*oldld* | linux*aout* | linux*coff*)
8870 # This must be Linux ELF.
8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8876 soname_spec='${libname}${release}${shared_ext}$major'
8877 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
8878 shlibpath_var=LD_LIBRARY_PATH
8879 shlibpath_overrides_runpath=no
8880 # This implies no fast_install, which is unacceptable.
8881 # Some rework will be needed to allow for fast_install
8882 # before this can be enabled.
8883 hardcode_into_libs=yes
8885 # Append ld.so.conf contents to the search path
8886 if test -f /etc/ld.so.conf; then
8887 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' ' '`
8888 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
$lt_ld_extra"
8891 # We used to test for /lib/ld.so.1 and disable shared libraries on
8892 # powerpc, because MkLinux only supported shared libraries with the
8893 # GNU dynamic linker. Since this was broken with cross compilers,
8894 # most powerpc-linux boxes support dynamic linking these days and
8895 # people can always --disable-shared, the test was removed, and we
8896 # assume the GNU/Linux dynamic linker is in use.
8897 dynamic_linker='GNU/Linux ld.so'
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 shlibpath_var=LD_LIBRARY_PATH
8907 shlibpath_overrides_runpath=no
8908 hardcode_into_libs=yes
8909 dynamic_linker='GNU ld.so'
8916 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8918 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
8919 dynamic_linker='NetBSD (a.out) ld.so'
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 dynamic_linker='NetBSD ld.elf_so'
8925 shlibpath_var=LD_LIBRARY_PATH
8926 shlibpath_overrides_runpath=yes
8927 hardcode_into_libs=yes
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=yes
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=yes
8949 sys_lib_dlsearch_path_spec="/usr
/lib
"
8951 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8953 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8954 *) need_version=no ;;
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8957 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
8958 shlibpath_var=LD_LIBRARY_PATH
8959 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
8961 openbsd2.[89] | openbsd2.[89].*)
8962 shlibpath_overrides_runpath=no
8965 shlibpath_overrides_runpath=yes
8969 shlibpath_overrides_runpath=yes
8974 libname_spec='$name'
8977 library_names_spec='$libname${shared_ext} $libname.a'
8978 dynamic_linker='OS/2 ld.exe'
8979 shlibpath_var=LIBPATH
8982 osf3* | osf4* | osf5*)
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
8990 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 shlibpath_var=LD_LIBRARY_PATH
9000 shlibpath_overrides_runpath=yes
9001 hardcode_into_libs=yes
9002 # ldd complains unless libraries are executable
9003 postinstall_cmds='chmod +x $lib'
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9009 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
9010 shlibpath_var=LD_LIBRARY_PATH
9011 shlibpath_overrides_runpath=yes
9012 if test "$with_gnu_ld" = yes; then
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 case $host_vendor in
9025 shlibpath_overrides_runpath=no
9027 export_dynamic_flag_spec='${wl}-Blargedynsym'
9028 runpath_var=LD_RUN_PATH
9036 shlibpath_overrides_runpath=no
9037 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9043 if test -d /usr/nec ;then
9045 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9046 soname_spec='$libname${shared_ext}.$major'
9047 shlibpath_var=LD_LIBRARY_PATH
9051 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9052 version_type=freebsd-elf
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 hardcode_into_libs=yes
9059 if test "$with_gnu_ld" = yes; then
9060 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9061 shlibpath_overrides_runpath=no
9063 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9064 shlibpath_overrides_runpath=yes
9067 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib
"
9071 sys_lib_dlsearch_path_spec='/usr/lib'
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 shlibpath_var=LD_LIBRARY_PATH
9085 { echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
9086 echo "${ECHO_T}$dynamic_linker" >&6; }
9087 test "$dynamic_linker" = no && can_build_shared=no
9089 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
9090 if test "$GCC" = yes; then
9091 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
9095 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
9096 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
9097 if test "${libltdl_cv_shlibext+set}" = set; then
9098 echo $ECHO_N "(cached
) $ECHO_C" >&6
9102 eval libltdl_cv_shlibext=$shrext_cmds
9105 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
9106 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9107 if test -n "$libltdl_cv_shlibext"; then
9109 cat >>confdefs.h <<_ACEOF
9110 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9116 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
9117 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
9118 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9119 echo $ECHO_N "(cached
) $ECHO_C" >&6
9121 libltdl_cv_shlibpath_var="$shlibpath_var"
9123 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
9124 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9125 if test -n "$libltdl_cv_shlibpath_var"; then
9127 cat >>confdefs.h <<_ACEOF
9128 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9134 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
9135 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
9136 if test "${libltdl_cv_sys_search_path+set}" = set; then
9137 echo $ECHO_N "(cached
) $ECHO_C" >&6
9139 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9141 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
9142 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9143 if test -n "$libltdl_cv_sys_search_path"; then
9145 for dir in $libltdl_cv_sys_search_path; do
9146 if test -z "$sys_search_path"; then
9147 sys_search_path="$dir"
9149 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9153 cat >>confdefs.h <<_ACEOF
9154 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9159 { echo "$as_me:$LINENO: checking
for objdir
" >&5
9160 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
9161 if test "${libltdl_cv_objdir+set}" = set; then
9162 echo $ECHO_N "(cached
) $ECHO_C" >&6
9164 libltdl_cv_objdir="$objdir"
9165 if test -n "$objdir"; then
9168 rm -f .libs 2>/dev/null
9169 mkdir .libs 2>/dev/null
9170 if test -d .libs; then
9171 libltdl_cv_objdir=.libs
9173 # MS-DOS does not allow filenames that begin with a dot.
9174 libltdl_cv_objdir=_libs
9176 rmdir .libs 2>/dev/null
9180 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
9181 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9183 cat >>confdefs.h <<_ACEOF
9184 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9192 # Check for command to grab the raw symbol name followed by C symbol from nm.
9193 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
9194 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
9195 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9196 echo $ECHO_N "(cached
) $ECHO_C" >&6
9199 # These are sane defaults that work on at least a few old systems.
9200 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9202 # Character class describing NM global symbol codes.
9203 symcode='[BCDEGRST]'
9205 # Regexp to match symbols that can be accessed directly from C.
9206 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9208 # Transform an extracted symbol line into a proper C declaration
9209 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9211 # Transform an extracted symbol line into symbol name and symbol address
9212 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'"
9214 # Define system-specific variables.
9219 cygwin* | mingw* | pw32*)
9220 symcode='[ABCDGISTW]'
9222 hpux*) # Its linker distinguishes data from code symbols
9223 if test "$host_cpu" = ia64; then
9224 symcode='[ABCDEGRST]'
9226 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9227 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'"
9230 if test "$host_cpu" = ia64; then
9231 symcode='[ABCDGIRSTW]'
9232 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9233 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'"
9237 symcode='[BCDEGRST]'
9240 symcode='[BCDEGQRST]'
9251 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9259 # Handle CRLF in mingw tool chain
9263 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9267 # If we're using GNU nm, then use its standard symbol codes.
9268 case `$NM -V 2>&1` in
9269 *GNU* | *'with BFD'*)
9270 symcode='[ABCDGIRSTW]' ;;
9273 # Try without a prefix undercore, then with it.
9274 for ac_symprfx in "" "_
"; do
9276 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9277 symxfrm="\\1 $ac_symprfx\\2 \\2"
9279 # Write the raw and C identifiers.
9280 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9282 # Check to see that the pipe works correctly.
9286 cat > conftest.$ac_ext <<EOF
9291 void nm_test_func(){}
9295 int main(){nm_test_var='a';nm_test_func();return(0);}
9298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9299 (eval $ac_compile) 2>&5
9301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9302 (exit $ac_status); }; then
9303 # Now try to grab the symbols.
9305 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
9306 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9309 (exit $ac_status); } && test -s "$nlist"; then
9310 # Try sorting and uniquifying the output.
9311 if sort "$nlist" | uniq > "$nlist"T; then
9312 mv -f "$nlist"T "$nlist"
9317 # Make sure that we snagged all the symbols we need.
9318 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9319 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9320 cat <<EOF > conftest.$ac_ext
9326 # Now generate the symbol file.
9327 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9329 cat <<EOF >> conftest.$ac_ext
9330 #if defined (__STDC__) && __STDC__
9331 # define lt_ptr_t void *
9333 # define lt_ptr_t char *
9337 /* The mapping between symbol names and symbols. */
9342 lt_preloaded_symbols[] =
9345 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (lt_ptr_t
) \
&\
2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9346 cat <<\EOF >> conftest.$ac_ext
9354 # Now try linking the two files.
9355 mv conftest.$ac_objext conftstm.$ac_objext
9356 lt_save_LIBS="$LIBS"
9357 lt_save_CFLAGS="$CFLAGS"
9358 LIBS="conftstm.
$ac_objext"
9359 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9361 (eval $ac_link) 2>&5
9363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9364 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9367 LIBS="$lt_save_LIBS"
9368 CFLAGS="$lt_save_CFLAGS"
9370 echo "cannot
find nm_test_func
in $nlist" >&5
9373 echo "cannot
find nm_test_var
in $nlist" >&5
9376 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
9379 echo "$progname: failed program was
:" >&5
9380 cat conftest.$ac_ext >&5
9382 rm -f conftest* conftst*
9384 # Do not use the global_symbol_pipe unless it works.
9385 if test "$pipe_works" = yes; then
9388 lt_cv_sys_global_symbol_pipe=
9394 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9395 lt_cv_sys_global_symbol_to_cdecl=
9397 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9398 { echo "$as_me:$LINENO: result
: failed
" >&5
9399 echo "${ECHO_T}failed
" >&6; }
9401 { echo "$as_me:$LINENO: result
: ok
" >&5
9402 echo "${ECHO_T}ok
" >&6; }
9406 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
9407 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
9408 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9409 echo $ECHO_N "(cached
) $ECHO_C" >&6
9411 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9412 libltdl_cv_preloaded_symbols=yes
9414 libltdl_cv_preloaded_symbols=no
9418 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
9419 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9420 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9422 cat >>confdefs.h <<\_ACEOF
9423 #define HAVE_PRELOADED_SYMBOLS 1
9431 ac_cpp='$CPP $CPPFLAGS'
9432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9437 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
9438 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
9439 if test "${ac_cv_func_shl_load+set}" = set; then
9440 echo $ECHO_N "(cached
) $ECHO_C" >&6
9442 cat >conftest.$ac_ext <<_ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9450 #define shl_load innocuous_shl_load
9452 /* System header to define __stub macros and hopefully few prototypes,
9453 which can conflict with char shl_load (); below.
9454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9455 <limits.h> exists even on freestanding compilers. */
9458 # include <limits.h>
9460 # include <assert.h>
9465 /* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
9472 /* The GNU C library defines this for functions which it implements
9473 to always fail with ENOSYS. Some functions are actually named
9474 something starting with __ and the normal name is an alias. */
9475 #if defined __stub_shl_load || defined __stub___shl_load
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (ac_try="$ac_link"
9490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491 *) ac_try_echo=$ac_try;;
9493 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_link") 2>conftest.er1
9496 grep -v '^ *+' conftest.er1 >conftest.err
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9500 (exit $ac_status); } && {
9501 test -z "$ac_c_werror_flag" ||
9502 test ! -s conftest.err
9503 } && test -s conftest$ac_exeext &&
9504 $as_test_x conftest$ac_exeext; then
9505 ac_cv_func_shl_load=yes
9507 echo "$as_me: failed program was
:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9510 ac_cv_func_shl_load=no
9513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9514 conftest$ac_exeext conftest.$ac_ext
9516 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
9517 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9518 if test $ac_cv_func_shl_load = yes; then
9520 cat >>confdefs.h <<\_ACEOF
9521 #define HAVE_SHL_LOAD 1
9525 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
9526 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
9527 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9528 echo $ECHO_N "(cached
) $ECHO_C" >&6
9530 ac_check_lib_save_LIBS=$LIBS
9532 cat >conftest.$ac_ext <<_ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9539 /* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (ac_try="$ac_link"
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9560 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_link") 2>conftest.er1
9563 grep -v '^ *+' conftest.er1 >conftest.err
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9567 (exit $ac_status); } && {
9568 test -z "$ac_c_werror_flag" ||
9569 test ! -s conftest.err
9570 } && test -s conftest$ac_exeext &&
9571 $as_test_x conftest$ac_exeext; then
9572 ac_cv_lib_dld_shl_load=yes
9574 echo "$as_me: failed program was
:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9577 ac_cv_lib_dld_shl_load=no
9580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9581 conftest$ac_exeext conftest.$ac_ext
9582 LIBS=$ac_check_lib_save_LIBS
9584 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
9585 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9586 if test $ac_cv_lib_dld_shl_load = yes; then
9588 cat >>confdefs.h <<\_ACEOF
9589 #define HAVE_SHL_LOAD 1
9592 LIBADD_DL="$LIBADD_DL -ldld"
9594 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
9595 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
9596 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9597 echo $ECHO_N "(cached
) $ECHO_C" >&6
9599 ac_check_lib_save_LIBS=$LIBS
9601 cat >conftest.$ac_ext <<_ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9608 /* Override any GCC internal prototype to avoid an error.
9609 Use char because int might match the return type of a GCC
9610 builtin and then its argument prototype would still apply. */
9623 rm -f conftest.$ac_objext conftest$ac_exeext
9624 if { (ac_try="$ac_link"
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9630 (eval "$ac_link") 2>conftest.er1
9632 grep -v '^ *+' conftest.er1 >conftest.err
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9636 (exit $ac_status); } && {
9637 test -z "$ac_c_werror_flag" ||
9638 test ! -s conftest.err
9639 } && test -s conftest$ac_exeext &&
9640 $as_test_x conftest$ac_exeext; then
9641 ac_cv_lib_dl_dlopen=yes
9643 echo "$as_me: failed program was
:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_cv_lib_dl_dlopen=no
9649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9650 conftest$ac_exeext conftest.$ac_ext
9651 LIBS=$ac_check_lib_save_LIBS
9653 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
9654 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9655 if test $ac_cv_lib_dl_dlopen = yes; then
9657 cat >>confdefs.h <<\_ACEOF
9658 #define HAVE_LIBDL 1
9661 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9663 cat >conftest.$ac_ext <<_ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_link") 2>conftest.er1
9690 grep -v '^ *+' conftest.er1 >conftest.err
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest$ac_exeext &&
9698 $as_test_x conftest$ac_exeext; then
9700 cat >>confdefs.h <<\_ACEOF
9701 #define HAVE_LIBDL 1
9703 libltdl_cv_func_dlopen="yes"
9705 echo "$as_me: failed program was
:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9708 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
9709 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
9710 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9711 echo $ECHO_N "(cached
) $ECHO_C" >&6
9713 ac_check_lib_save_LIBS=$LIBS
9715 cat >conftest.$ac_ext <<_ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9722 /* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9737 rm -f conftest.$ac_objext conftest$ac_exeext
9738 if { (ac_try="$ac_link"
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_link") 2>conftest.er1
9746 grep -v '^ *+' conftest.er1 >conftest.err
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9750 (exit $ac_status); } && {
9751 test -z "$ac_c_werror_flag" ||
9752 test ! -s conftest.err
9753 } && test -s conftest$ac_exeext &&
9754 $as_test_x conftest$ac_exeext; then
9755 ac_cv_lib_svld_dlopen=yes
9757 echo "$as_me: failed program was
:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 ac_cv_lib_svld_dlopen=no
9763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LIBS=$ac_check_lib_save_LIBS
9767 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
9768 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9769 if test $ac_cv_lib_svld_dlopen = yes; then
9771 cat >>confdefs.h <<\_ACEOF
9772 #define HAVE_LIBDL 1
9775 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9777 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
9778 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
9779 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9780 echo $ECHO_N "(cached
) $ECHO_C" >&6
9782 ac_check_lib_save_LIBS=$LIBS
9784 cat >conftest.$ac_ext <<_ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9791 /* Override any GCC internal prototype to avoid an error.
9792 Use char because int might match the return type of a GCC
9793 builtin and then its argument prototype would still apply. */
9806 rm -f conftest.$ac_objext conftest$ac_exeext
9807 if { (ac_try="$ac_link"
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9812 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_link") 2>conftest.er1
9815 grep -v '^ *+' conftest.er1 >conftest.err
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9819 (exit $ac_status); } && {
9820 test -z "$ac_c_werror_flag" ||
9821 test ! -s conftest.err
9822 } && test -s conftest$ac_exeext &&
9823 $as_test_x conftest$ac_exeext; then
9824 ac_cv_lib_dld_dld_link=yes
9826 echo "$as_me: failed program was
:" >&5
9827 sed 's/^/| /' conftest.$ac_ext >&5
9829 ac_cv_lib_dld_dld_link=no
9832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9833 conftest$ac_exeext conftest.$ac_ext
9834 LIBS=$ac_check_lib_save_LIBS
9836 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
9837 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9838 if test $ac_cv_lib_dld_dld_link = yes; then
9840 cat >>confdefs.h <<\_ACEOF
9844 LIBADD_DL="$LIBADD_DL -ldld"
9846 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
9847 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
9848 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9849 echo $ECHO_N "(cached
) $ECHO_C" >&6
9851 cat >conftest.$ac_ext <<_ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9857 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9859 #define _dyld_func_lookup innocuous__dyld_func_lookup
9861 /* System header to define __stub macros and hopefully few prototypes,
9862 which can conflict with char _dyld_func_lookup (); below.
9863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9864 <limits.h> exists even on freestanding compilers. */
9867 # include <limits.h>
9869 # include <assert.h>
9872 #undef _dyld_func_lookup
9874 /* Override any GCC internal prototype to avoid an error.
9875 Use char because int might match the return type of a GCC
9876 builtin and then its argument prototype would still apply. */
9880 char _dyld_func_lookup ();
9881 /* The GNU C library defines this for functions which it implements
9882 to always fail with ENOSYS. Some functions are actually named
9883 something starting with __ and the normal name is an alias. */
9884 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9891 return _dyld_func_lookup ();
9896 rm -f conftest.$ac_objext conftest$ac_exeext
9897 if { (ac_try="$ac_link"
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9902 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_link") 2>conftest.er1
9905 grep -v '^ *+' conftest.er1 >conftest.err
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9909 (exit $ac_status); } && {
9910 test -z "$ac_c_werror_flag" ||
9911 test ! -s conftest.err
9912 } && test -s conftest$ac_exeext &&
9913 $as_test_x conftest$ac_exeext; then
9914 ac_cv_func__dyld_func_lookup=yes
9916 echo "$as_me: failed program was
:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9919 ac_cv_func__dyld_func_lookup=no
9922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9923 conftest$ac_exeext conftest.$ac_ext
9925 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
9926 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9927 if test $ac_cv_func__dyld_func_lookup = yes; then
9929 cat >>confdefs.h <<\_ACEOF
9944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9945 conftest$ac_exeext conftest.$ac_ext
9956 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9958 lt_save_LIBS="$LIBS"
9959 LIBS="$LIBS $LIBADD_DL"
9961 for ac_func in dlerror
9963 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
9964 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
9965 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
9966 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
9967 echo $ECHO_N "(cached
) $ECHO_C" >&6
9969 cat >conftest.$ac_ext <<_ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9977 #define $ac_func innocuous_$ac_func
9979 /* System header to define __stub macros and hopefully few prototypes,
9980 which can conflict with char $ac_func (); below.
9981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9982 <limits.h> exists even on freestanding compilers. */
9985 # include <limits.h>
9987 # include <assert.h>
9992 /* Override any GCC internal prototype to avoid an error.
9993 Use char because int might match the return type of a GCC
9994 builtin and then its argument prototype would still apply. */
9999 /* The GNU C library defines this for functions which it implements
10000 to always fail with ENOSYS. Some functions are actually named
10001 something starting with __ and the normal name is an alias. */
10002 #if defined __stub_$ac_func || defined __stub___$ac_func
10009 return $ac_func ();
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (ac_try="$ac_link"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_link") 2>conftest.er1
10023 grep -v '^ *+' conftest.er1 >conftest.err
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10027 (exit $ac_status); } && {
10028 test -z "$ac_c_werror_flag" ||
10029 test ! -s conftest.err
10030 } && test -s conftest$ac_exeext &&
10031 $as_test_x conftest$ac_exeext; then
10032 eval "$as_ac_var=yes"
10034 echo "$as_me: failed program was
:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10037 eval "$as_ac_var=no
"
10040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10041 conftest$ac_exeext conftest.$ac_ext
10043 ac_res=`eval echo '${'$as_ac_var'}'`
10044 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10045 echo "${ECHO_T}$ac_res" >&6; }
10046 if test `eval echo '${'$as_ac_var'}'` = yes; then
10047 cat >>confdefs.h <<_ACEOF
10048 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10054 LIBS="$lt_save_LIBS"
10057 ac_cpp='$CPP $CPPFLAGS'
10058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10064 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
10065 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
10066 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10067 echo $ECHO_N "(cached
) $ECHO_C" >&6
10069 ac_cv_sys_symbol_underscore=no
10070 cat > conftest.$ac_ext <<EOF
10071 void nm_test_func(){}
10072 int main(){nm_test_func;return 0;}
10074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10075 (eval $ac_compile) 2>&5
10077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10078 (exit $ac_status); }; then
10079 # Now try to grab the symbols.
10080 ac_nlist=conftest.nm
10081 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
10082 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10085 (exit $ac_status); } && test -s "$ac_nlist"; then
10086 # See whether the symbols have a leading underscore.
10087 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10088 ac_cv_sys_symbol_underscore=yes
10090 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10093 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
10097 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10100 echo "configure
: failed program was
:" >&5
10106 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
10107 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10110 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10111 if test x"$libltdl_cv_func_dlopen" = xyes ||
10112 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10113 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
10114 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
10115 if test "${libltdl_cv_need_uscore+set}" = set; then
10116 echo $ECHO_N "(cached
) $ECHO_C" >&6
10118 libltdl_cv_need_uscore=unknown
10120 LIBS="$LIBS $LIBADD_DL"
10121 if test "$cross_compiling" = yes; then :
10122 libltdl_cv_need_uscore=cross
10124 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10125 lt_status=$lt_dlunknown
10126 cat > conftest.$ac_ext <<EOF
10127 #line 10127 "configure
"
10128 #include "confdefs.h
"
10137 # define LT_DLGLOBAL RTLD_GLOBAL
10140 # define LT_DLGLOBAL DL_GLOBAL
10142 # define LT_DLGLOBAL 0
10146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10147 find out it does not work in some platform. */
10148 #ifndef LT_DLLAZY_OR_NOW
10150 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10153 # define LT_DLLAZY_OR_NOW DL_LAZY
10156 # define LT_DLLAZY_OR_NOW RTLD_NOW
10159 # define LT_DLLAZY_OR_NOW DL_NOW
10161 # define LT_DLLAZY_OR_NOW 0
10169 extern "C
" void exit (int);
10172 void fnord() { int i=42;}
10175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10176 int status = $lt_dlunknown;
10180 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
10181 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
10182 /* dlclose (self); */
10190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10191 (eval $ac_link) 2>&5
10193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10194 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10195 (./conftest; exit; ) >&5 2>/dev/null
10197 case x$lt_status in
10198 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10199 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10200 x$lt_dlunknown|x*) ;;
10203 # compilation failed
10212 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
10213 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10217 if test x"$libltdl_cv_need_uscore" = xyes; then
10219 cat >>confdefs.h <<\_ACEOF
10220 #define NEED_USCORE 1
10226 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
10227 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
10228 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10229 echo $ECHO_N "(cached
) $ECHO_C" >&6
10231 # PORTME does your system automatically load deplibs for dlopen?
10232 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10233 # For now, we just catch OSes we know something about -- in the
10234 # future, we'll try test this programmatically.
10235 libltdl_cv_sys_dlopen_deplibs=unknown
10237 aix3*|aix4.1.*|aix4.2.*)
10238 # Unknown whether this is true for these versions of AIX, but
10239 # we want this `case' here to explicitly catch those versions.
10240 libltdl_cv_sys_dlopen_deplibs=unknown
10243 libltdl_cv_sys_dlopen_deplibs=yes
10246 # Assuming the user has installed a libdl from somewhere, this is true
10247 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10248 libltdl_cv_sys_dlopen_deplibs=yes
10250 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10251 # GNU and its variants, using gnu ld.so (Glibc)
10252 libltdl_cv_sys_dlopen_deplibs=yes
10255 libltdl_cv_sys_dlopen_deplibs=yes
10258 libltdl_cv_sys_dlopen_deplibs=yes
10260 irix[12345]*|irix6.[01]*)
10261 # Catch all versions of IRIX before 6.2, and indicate that we don't
10262 # know how it worked for any of those versions.
10263 libltdl_cv_sys_dlopen_deplibs=unknown
10266 # The case above catches anything before 6.2, and it's known that
10267 # at 6.2 and later dlopen does load deplibs.
10268 libltdl_cv_sys_dlopen_deplibs=yes
10271 libltdl_cv_sys_dlopen_deplibs=yes
10274 libltdl_cv_sys_dlopen_deplibs=yes
10277 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10278 # it did *not* use an RPATH in a shared library to find objects the
10279 # library depends on, so we explictly say `no'.
10280 libltdl_cv_sys_dlopen_deplibs=no
10282 osf5.0|osf5.0a|osf5.1)
10283 # dlopen *does* load deplibs and with the right loader patch applied
10284 # it even uses RPATH in a shared library to search for shared objects
10285 # that the library depends on, but there's no easy way to know if that
10286 # patch is installed. Since this is the case, all we can really
10287 # say is unknown -- it depends on the patch being installed. If
10288 # it is, this changes to `yes'. Without it, it would be `no'.
10289 libltdl_cv_sys_dlopen_deplibs=unknown
10292 # the two cases above should catch all versions of osf <= 5.1. Read
10293 # the comments above for what we know about them.
10294 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10295 # is used to find them so we can finally say `yes'.
10296 libltdl_cv_sys_dlopen_deplibs=yes
10299 libltdl_cv_sys_dlopen_deplibs=yes
10301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10302 libltdl_cv_sys_dlopen_deplibs=yes
10307 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
10308 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10309 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10311 cat >>confdefs.h <<\_ACEOF
10312 #define LTDL_DLOPEN_DEPLIBS 1
10318 for ac_header in argz.h
10320 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10321 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10322 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10323 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10324 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10325 echo $ECHO_N "(cached
) $ECHO_C" >&6
10327 ac_res=`eval echo '${'$as_ac_Header'}'`
10328 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10329 echo "${ECHO_T}$ac_res" >&6; }
10331 # Is the header compilable?
10332 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10333 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10334 cat >conftest.$ac_ext <<_ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h. */
10340 $ac_includes_default
10341 #include <$ac_header>
10343 rm -f conftest.$ac_objext
10344 if { (ac_try="$ac_compile"
10345 case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10350 (eval "$ac_compile") 2>conftest.er1
10352 grep -v '^ *+' conftest.er1 >conftest.err
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10356 (exit $ac_status); } && {
10357 test -z "$ac_c_werror_flag" ||
10358 test ! -s conftest.err
10359 } && test -s conftest.$ac_objext; then
10360 ac_header_compiler=yes
10362 echo "$as_me: failed program was
:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10365 ac_header_compiler=no
10368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10369 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10370 echo "${ECHO_T}$ac_header_compiler" >&6; }
10372 # Is the header present?
10373 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10374 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
10375 cat >conftest.$ac_ext <<_ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 #include <$ac_header>
10383 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10384 case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10391 grep -v '^ *+' conftest.er1 >conftest.err
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10395 (exit $ac_status); } >/dev/null && {
10396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10397 test ! -s conftest.err
10399 ac_header_preproc=yes
10401 echo "$as_me: failed program was
:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10404 ac_header_preproc=no
10407 rm -f conftest.err conftest.$ac_ext
10408 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10409 echo "${ECHO_T}$ac_header_preproc" >&6; }
10411 # So? What about this header?
10412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10414 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10415 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10416 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10418 ac_header_preproc=yes
10421 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10422 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10423 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10424 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10425 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10426 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10427 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10428 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10429 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10431 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10432 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10434 ## ----------------------------------- ##
10435 ## Report this to llvmbugs@cs.uiuc.edu ##
10436 ## ----------------------------------- ##
10438 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
10441 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10442 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10443 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10444 echo $ECHO_N "(cached
) $ECHO_C" >&6
10446 eval "$as_ac_Header=\
$ac_header_preproc"
10448 ac_res=`eval echo '${'$as_ac_Header'}'`
10449 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10450 echo "${ECHO_T}$ac_res" >&6; }
10453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10454 cat >>confdefs.h <<_ACEOF
10455 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10463 { echo "$as_me:$LINENO: checking
for error_t
" >&5
10464 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
10465 if test "${ac_cv_type_error_t+set}" = set; then
10466 echo $ECHO_N "(cached
) $ECHO_C" >&6
10468 cat >conftest.$ac_ext <<_ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10478 typedef error_t ac__type_new_;
10482 if ((ac__type_new_ *) 0)
10484 if (sizeof (ac__type_new_))
10490 rm -f conftest.$ac_objext
10491 if { (ac_try="$ac_compile"
10492 case "(($ac_try" in
10493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10494 *) ac_try_echo=$ac_try;;
10496 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10497 (eval "$ac_compile") 2>conftest.er1
10499 grep -v '^ *+' conftest.er1 >conftest.err
10501 cat conftest.err >&5
10502 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10503 (exit $ac_status); } && {
10504 test -z "$ac_c_werror_flag" ||
10505 test ! -s conftest.err
10506 } && test -s conftest.$ac_objext; then
10507 ac_cv_type_error_t=yes
10509 echo "$as_me: failed program was
:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10512 ac_cv_type_error_t=no
10515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10517 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
10518 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10519 if test $ac_cv_type_error_t = yes; then
10521 cat >>confdefs.h <<_ACEOF
10522 #define HAVE_ERROR_T 1
10528 cat >>confdefs.h <<\_ACEOF
10529 #define error_t int
10540 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10542 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10543 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10544 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10545 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10546 echo $ECHO_N "(cached
) $ECHO_C" >&6
10548 cat >conftest.$ac_ext <<_ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10556 #define $ac_func innocuous_$ac_func
10558 /* System header to define __stub macros and hopefully few prototypes,
10559 which can conflict with char $ac_func (); below.
10560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10561 <limits.h> exists even on freestanding compilers. */
10564 # include <limits.h>
10566 # include <assert.h>
10571 /* Override any GCC internal prototype to avoid an error.
10572 Use char because int might match the return type of a GCC
10573 builtin and then its argument prototype would still apply. */
10578 /* The GNU C library defines this for functions which it implements
10579 to always fail with ENOSYS. Some functions are actually named
10580 something starting with __ and the normal name is an alias. */
10581 #if defined __stub_$ac_func || defined __stub___$ac_func
10588 return $ac_func ();
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (ac_try="$ac_link"
10595 case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10599 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_link") 2>conftest.er1
10602 grep -v '^ *+' conftest.er1 >conftest.err
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10606 (exit $ac_status); } && {
10607 test -z "$ac_c_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest$ac_exeext &&
10610 $as_test_x conftest$ac_exeext; then
10611 eval "$as_ac_var=yes"
10613 echo "$as_me: failed program was
:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 eval "$as_ac_var=no
"
10619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10620 conftest$ac_exeext conftest.$ac_ext
10622 ac_res=`eval echo '${'$as_ac_var'}'`
10623 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10624 echo "${ECHO_T}$ac_res" >&6; }
10625 if test `eval echo '${'$as_ac_var'}'` = yes; then
10626 cat >>confdefs.h <<_ACEOF
10627 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10660 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10663 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10664 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10665 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10666 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10667 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10668 echo $ECHO_N "(cached
) $ECHO_C" >&6
10670 ac_res=`eval echo '${'$as_ac_Header'}'`
10671 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10672 echo "${ECHO_T}$ac_res" >&6; }
10674 # Is the header compilable?
10675 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10676 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10677 cat >conftest.$ac_ext <<_ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 $ac_includes_default
10684 #include <$ac_header>
10686 rm -f conftest.$ac_objext
10687 if { (ac_try="$ac_compile"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10692 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_compile") 2>conftest.er1
10695 grep -v '^ *+' conftest.er1 >conftest.err
10697 cat conftest.err >&5
10698 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10699 (exit $ac_status); } && {
10700 test -z "$ac_c_werror_flag" ||
10701 test ! -s conftest.err
10702 } && test -s conftest.$ac_objext; then
10703 ac_header_compiler=yes
10705 echo "$as_me: failed program was
:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10708 ac_header_compiler=no
10711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10712 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10713 echo "${ECHO_T}$ac_header_compiler" >&6; }
10715 # Is the header present?
10716 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10717 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
10718 cat >conftest.$ac_ext <<_ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10724 #include <$ac_header>
10726 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10727 case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10731 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10734 grep -v '^ *+' conftest.er1 >conftest.err
10736 cat conftest.err >&5
10737 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10738 (exit $ac_status); } >/dev/null && {
10739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10740 test ! -s conftest.err
10742 ac_header_preproc=yes
10744 echo "$as_me: failed program was
:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10747 ac_header_preproc=no
10750 rm -f conftest.err conftest.$ac_ext
10751 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10752 echo "${ECHO_T}$ac_header_preproc" >&6; }
10754 # So? What about this header?
10755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10757 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10758 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10759 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10761 ac_header_preproc=yes
10764 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10765 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10766 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10767 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10768 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10769 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10770 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10771 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10772 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10774 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10775 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10777 ## ----------------------------------- ##
10778 ## Report this to llvmbugs@cs.uiuc.edu ##
10779 ## ----------------------------------- ##
10781 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
10784 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10785 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10786 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10787 echo $ECHO_N "(cached
) $ECHO_C" >&6
10789 eval "$as_ac_Header=\
$ac_header_preproc"
10791 ac_res=`eval echo '${'$as_ac_Header'}'`
10792 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10793 echo "${ECHO_T}$ac_res" >&6; }
10796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10797 cat >>confdefs.h <<_ACEOF
10798 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10809 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10811 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10812 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10813 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10814 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10815 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10816 echo $ECHO_N "(cached
) $ECHO_C" >&6
10818 ac_res=`eval echo '${'$as_ac_Header'}'`
10819 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10820 echo "${ECHO_T}$ac_res" >&6; }
10822 # Is the header compilable?
10823 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10824 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10825 cat >conftest.$ac_ext <<_ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10831 $ac_includes_default
10832 #include <$ac_header>
10834 rm -f conftest.$ac_objext
10835 if { (ac_try="$ac_compile"
10836 case "(($ac_try" in
10837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838 *) ac_try_echo=$ac_try;;
10840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10841 (eval "$ac_compile") 2>conftest.er1
10843 grep -v '^ *+' conftest.er1 >conftest.err
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10847 (exit $ac_status); } && {
10848 test -z "$ac_c_werror_flag" ||
10849 test ! -s conftest.err
10850 } && test -s conftest.$ac_objext; then
10851 ac_header_compiler=yes
10853 echo "$as_me: failed program was
:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10856 ac_header_compiler=no
10859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10860 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10861 echo "${ECHO_T}$ac_header_compiler" >&6; }
10863 # Is the header present?
10864 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10865 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
10866 cat >conftest.$ac_ext <<_ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10872 #include <$ac_header>
10874 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10875 case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10882 grep -v '^ *+' conftest.er1 >conftest.err
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10886 (exit $ac_status); } >/dev/null && {
10887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10888 test ! -s conftest.err
10890 ac_header_preproc=yes
10892 echo "$as_me: failed program was
:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 ac_header_preproc=no
10898 rm -f conftest.err conftest.$ac_ext
10899 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10900 echo "${ECHO_T}$ac_header_preproc" >&6; }
10902 # So? What about this header?
10903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10905 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10906 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10907 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10909 ac_header_preproc=yes
10912 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10913 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10914 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10915 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10916 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10917 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10918 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10919 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10920 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10922 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10923 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10925 ## ----------------------------------- ##
10926 ## Report this to llvmbugs@cs.uiuc.edu ##
10927 ## ----------------------------------- ##
10929 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
10932 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10933 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10934 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10935 echo $ECHO_N "(cached
) $ECHO_C" >&6
10937 eval "$as_ac_Header=\
$ac_header_preproc"
10939 ac_res=`eval echo '${'$as_ac_Header'}'`
10940 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10941 echo "${ECHO_T}$ac_res" >&6; }
10944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10945 cat >>confdefs.h <<_ACEOF
10946 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10955 for ac_header in string.h strings.h
10957 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10958 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10959 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
10960 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
10961 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10962 echo $ECHO_N "(cached
) $ECHO_C" >&6
10964 ac_res=`eval echo '${'$as_ac_Header'}'`
10965 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10966 echo "${ECHO_T}$ac_res" >&6; }
10968 # Is the header compilable?
10969 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10970 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
10971 cat >conftest.$ac_ext <<_ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 $ac_includes_default
10978 #include <$ac_header>
10980 rm -f conftest.$ac_objext
10981 if { (ac_try="$ac_compile"
10982 case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_compile") 2>conftest.er1
10989 grep -v '^ *+' conftest.er1 >conftest.err
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10993 (exit $ac_status); } && {
10994 test -z "$ac_c_werror_flag" ||
10995 test ! -s conftest.err
10996 } && test -s conftest.$ac_objext; then
10997 ac_header_compiler=yes
10999 echo "$as_me: failed program was
:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 ac_header_compiler=no
11005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11007 echo "${ECHO_T}$ac_header_compiler" >&6; }
11009 # Is the header present?
11010 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11011 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11012 cat >conftest.$ac_ext <<_ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11018 #include <$ac_header>
11020 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11021 case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11025 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11026 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11028 grep -v '^ *+' conftest.er1 >conftest.err
11030 cat conftest.err >&5
11031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11032 (exit $ac_status); } >/dev/null && {
11033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11034 test ! -s conftest.err
11036 ac_header_preproc=yes
11038 echo "$as_me: failed program was
:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 ac_header_preproc=no
11044 rm -f conftest.err conftest.$ac_ext
11045 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11046 echo "${ECHO_T}$ac_header_preproc" >&6; }
11048 # So? What about this header?
11049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11051 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11052 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11053 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11055 ac_header_preproc=yes
11058 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11059 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11060 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11061 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11062 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11063 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11064 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11065 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11066 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11068 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11069 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11071 ## ----------------------------------- ##
11072 ## Report this to llvmbugs@cs.uiuc.edu ##
11073 ## ----------------------------------- ##
11075 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11078 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11079 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11080 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11081 echo $ECHO_N "(cached
) $ECHO_C" >&6
11083 eval "$as_ac_Header=\
$ac_header_preproc"
11085 ac_res=`eval echo '${'$as_ac_Header'}'`
11086 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11087 echo "${ECHO_T}$ac_res" >&6; }
11090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11091 cat >>confdefs.h <<_ACEOF
11092 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11102 for ac_func in strchr index
11104 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11105 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11106 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11107 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11108 echo $ECHO_N "(cached
) $ECHO_C" >&6
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11118 #define $ac_func innocuous_$ac_func
11120 /* System header to define __stub macros and hopefully few prototypes,
11121 which can conflict with char $ac_func (); below.
11122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11123 <limits.h> exists even on freestanding compilers. */
11126 # include <limits.h>
11128 # include <assert.h>
11133 /* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
11140 /* The GNU C library defines this for functions which it implements
11141 to always fail with ENOSYS. Some functions are actually named
11142 something starting with __ and the normal name is an alias. */
11143 #if defined __stub_$ac_func || defined __stub___$ac_func
11150 return $ac_func ();
11155 rm -f conftest.$ac_objext conftest$ac_exeext
11156 if { (ac_try="$ac_link"
11157 case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11162 (eval "$ac_link") 2>conftest.er1
11164 grep -v '^ *+' conftest.er1 >conftest.err
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11168 (exit $ac_status); } && {
11169 test -z "$ac_c_werror_flag" ||
11170 test ! -s conftest.err
11171 } && test -s conftest$ac_exeext &&
11172 $as_test_x conftest$ac_exeext; then
11173 eval "$as_ac_var=yes"
11175 echo "$as_me: failed program was
:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 eval "$as_ac_var=no
"
11181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11182 conftest$ac_exeext conftest.$ac_ext
11184 ac_res=`eval echo '${'$as_ac_var'}'`
11185 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11186 echo "${ECHO_T}$ac_res" >&6; }
11187 if test `eval echo '${'$as_ac_var'}'` = yes; then
11188 cat >>confdefs.h <<_ACEOF
11189 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11197 for ac_func in strrchr rindex
11199 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11200 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11201 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11202 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11203 echo $ECHO_N "(cached
) $ECHO_C" >&6
11205 cat >conftest.$ac_ext <<_ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11213 #define $ac_func innocuous_$ac_func
11215 /* System header to define __stub macros and hopefully few prototypes,
11216 which can conflict with char $ac_func (); below.
11217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11218 <limits.h> exists even on freestanding compilers. */
11221 # include <limits.h>
11223 # include <assert.h>
11228 /* Override any GCC internal prototype to avoid an error.
11229 Use char because int might match the return type of a GCC
11230 builtin and then its argument prototype would still apply. */
11235 /* The GNU C library defines this for functions which it implements
11236 to always fail with ENOSYS. Some functions are actually named
11237 something starting with __ and the normal name is an alias. */
11238 #if defined __stub_$ac_func || defined __stub___$ac_func
11245 return $ac_func ();
11250 rm -f conftest.$ac_objext conftest$ac_exeext
11251 if { (ac_try="$ac_link"
11252 case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11256 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_link") 2>conftest.er1
11259 grep -v '^ *+' conftest.er1 >conftest.err
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11263 (exit $ac_status); } && {
11264 test -z "$ac_c_werror_flag" ||
11265 test ! -s conftest.err
11266 } && test -s conftest$ac_exeext &&
11267 $as_test_x conftest$ac_exeext; then
11268 eval "$as_ac_var=yes"
11270 echo "$as_me: failed program was
:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11273 eval "$as_ac_var=no
"
11276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11277 conftest$ac_exeext conftest.$ac_ext
11279 ac_res=`eval echo '${'$as_ac_var'}'`
11280 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11281 echo "${ECHO_T}$ac_res" >&6; }
11282 if test `eval echo '${'$as_ac_var'}'` = yes; then
11283 cat >>confdefs.h <<_ACEOF
11284 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11292 for ac_func in memcpy bcopy
11294 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11295 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11296 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11297 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11298 echo $ECHO_N "(cached
) $ECHO_C" >&6
11300 cat >conftest.$ac_ext <<_ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11308 #define $ac_func innocuous_$ac_func
11310 /* System header to define __stub macros and hopefully few prototypes,
11311 which can conflict with char $ac_func (); below.
11312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11313 <limits.h> exists even on freestanding compilers. */
11316 # include <limits.h>
11318 # include <assert.h>
11323 /* Override any GCC internal prototype to avoid an error.
11324 Use char because int might match the return type of a GCC
11325 builtin and then its argument prototype would still apply. */
11330 /* The GNU C library defines this for functions which it implements
11331 to always fail with ENOSYS. Some functions are actually named
11332 something starting with __ and the normal name is an alias. */
11333 #if defined __stub_$ac_func || defined __stub___$ac_func
11340 return $ac_func ();
11345 rm -f conftest.$ac_objext conftest$ac_exeext
11346 if { (ac_try="$ac_link"
11347 case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11351 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_link") 2>conftest.er1
11354 grep -v '^ *+' conftest.er1 >conftest.err
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11358 (exit $ac_status); } && {
11359 test -z "$ac_c_werror_flag" ||
11360 test ! -s conftest.err
11361 } && test -s conftest$ac_exeext &&
11362 $as_test_x conftest$ac_exeext; then
11363 eval "$as_ac_var=yes"
11365 echo "$as_me: failed program was
:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11368 eval "$as_ac_var=no
"
11371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11372 conftest$ac_exeext conftest.$ac_ext
11374 ac_res=`eval echo '${'$as_ac_var'}'`
11375 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11376 echo "${ECHO_T}$ac_res" >&6; }
11377 if test `eval echo '${'$as_ac_var'}'` = yes; then
11378 cat >>confdefs.h <<_ACEOF
11379 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11387 for ac_func in memmove strcmp
11389 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11390 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11391 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11392 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11393 echo $ECHO_N "(cached
) $ECHO_C" >&6
11395 cat >conftest.$ac_ext <<_ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11403 #define $ac_func innocuous_$ac_func
11405 /* System header to define __stub macros and hopefully few prototypes,
11406 which can conflict with char $ac_func (); below.
11407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11408 <limits.h> exists even on freestanding compilers. */
11411 # include <limits.h>
11413 # include <assert.h>
11418 /* Override any GCC internal prototype to avoid an error.
11419 Use char because int might match the return type of a GCC
11420 builtin and then its argument prototype would still apply. */
11425 /* The GNU C library defines this for functions which it implements
11426 to always fail with ENOSYS. Some functions are actually named
11427 something starting with __ and the normal name is an alias. */
11428 #if defined __stub_$ac_func || defined __stub___$ac_func
11435 return $ac_func ();
11440 rm -f conftest.$ac_objext conftest$ac_exeext
11441 if { (ac_try="$ac_link"
11442 case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_link") 2>conftest.er1
11449 grep -v '^ *+' conftest.er1 >conftest.err
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11453 (exit $ac_status); } && {
11454 test -z "$ac_c_werror_flag" ||
11455 test ! -s conftest.err
11456 } && test -s conftest$ac_exeext &&
11457 $as_test_x conftest$ac_exeext; then
11458 eval "$as_ac_var=yes"
11460 echo "$as_me: failed program was
:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11463 eval "$as_ac_var=no
"
11466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11467 conftest$ac_exeext conftest.$ac_ext
11469 ac_res=`eval echo '${'$as_ac_var'}'`
11470 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11471 echo "${ECHO_T}$ac_res" >&6; }
11472 if test `eval echo '${'$as_ac_var'}'` = yes; then
11473 cat >>confdefs.h <<_ACEOF
11474 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11483 for ac_func in closedir opendir readdir
11485 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11486 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11487 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11488 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11489 echo $ECHO_N "(cached
) $ECHO_C" >&6
11491 cat >conftest.$ac_ext <<_ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11499 #define $ac_func innocuous_$ac_func
11501 /* System header to define __stub macros and hopefully few prototypes,
11502 which can conflict with char $ac_func (); below.
11503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11504 <limits.h> exists even on freestanding compilers. */
11507 # include <limits.h>
11509 # include <assert.h>
11514 /* Override any GCC internal prototype to avoid an error.
11515 Use char because int might match the return type of a GCC
11516 builtin and then its argument prototype would still apply. */
11521 /* The GNU C library defines this for functions which it implements
11522 to always fail with ENOSYS. Some functions are actually named
11523 something starting with __ and the normal name is an alias. */
11524 #if defined __stub_$ac_func || defined __stub___$ac_func
11531 return $ac_func ();
11536 rm -f conftest.$ac_objext conftest$ac_exeext
11537 if { (ac_try="$ac_link"
11538 case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11542 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_link") 2>conftest.er1
11545 grep -v '^ *+' conftest.er1 >conftest.err
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11549 (exit $ac_status); } && {
11550 test -z "$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 } && test -s conftest$ac_exeext &&
11553 $as_test_x conftest$ac_exeext; then
11554 eval "$as_ac_var=yes"
11556 echo "$as_me: failed program was
:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11559 eval "$as_ac_var=no
"
11562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11563 conftest$ac_exeext conftest.$ac_ext
11565 ac_res=`eval echo '${'$as_ac_var'}'`
11566 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11567 echo "${ECHO_T}$ac_res" >&6; }
11568 if test `eval echo '${'$as_ac_var'}'` = yes; then
11569 cat >>confdefs.h <<_ACEOF
11570 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11577 # Check whether --enable-shared was given.
11578 if test "${enable_shared+set}" = set; then
11579 enableval=$enable_shared; p=${PACKAGE-default}
11581 yes) enable_shared=yes ;;
11582 no) enable_shared=no ;;
11585 # Look at the argument we got. We use all the common list separators.
11586 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11587 for pkg in $enableval; do
11589 if test "X
$pkg" = "X
$p"; then
11601 # Check whether --enable-static was given.
11602 if test "${enable_static+set}" = set; then
11603 enableval=$enable_static; p=${PACKAGE-default}
11605 yes) enable_static=yes ;;
11606 no) enable_static=no ;;
11609 # Look at the argument we got. We use all the common list separators.
11610 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11611 for pkg in $enableval; do
11613 if test "X
$pkg" = "X
$p"; then
11625 # Check whether --enable-fast-install was given.
11626 if test "${enable_fast_install+set}" = set; then
11627 enableval=$enable_fast_install; p=${PACKAGE-default}
11629 yes) enable_fast_install=yes ;;
11630 no) enable_fast_install=no ;;
11632 enable_fast_install=no
11633 # Look at the argument we got. We use all the common list separators.
11634 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11635 for pkg in $enableval; do
11637 if test "X
$pkg" = "X
$p"; then
11638 enable_fast_install=yes
11645 enable_fast_install=yes
11649 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
11650 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
11651 if test "${lt_cv_path_SED+set}" = set; then
11652 echo $ECHO_N "(cached
) $ECHO_C" >&6
11654 # Loop through the user's path and test for sed and gsed.
11655 # Then use that list of sed's as ones to test for truncation.
11656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657 for as_dir in $PATH
11660 test -z "$as_dir" && as_dir=.
11661 for lt_ac_prog in sed gsed; do
11662 for ac_exec_ext in '' $ac_executable_extensions; do
11663 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11664 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11671 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11672 # along with /bin/sed that truncates output.
11673 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11674 test ! -f $lt_ac_sed && continue
11675 cat /dev/null > conftest.in
11677 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11678 # Check for GNU sed and select it if it is found.
11679 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11680 lt_cv_path_SED=$lt_ac_sed
11684 cat conftest.in conftest.in >conftest.tmp
11685 mv conftest.tmp conftest.in
11686 cp conftest.in conftest.nl
11688 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11689 cmp -s conftest.out conftest.nl || break
11690 # 10000 chars as input seems more than enough
11691 test $lt_ac_count -gt 10 && break
11692 lt_ac_count=`expr $lt_ac_count + 1`
11693 if test $lt_ac_count -gt $lt_ac_max; then
11694 lt_ac_max=$lt_ac_count
11695 lt_cv_path_SED=$lt_ac_sed
11702 SED=$lt_cv_path_SED
11703 { echo "$as_me:$LINENO: result
: $SED" >&5
11704 echo "${ECHO_T}$SED" >&6; }
11707 # Check whether --with-gnu-ld was given.
11708 if test "${with_gnu_ld+set}" = set; then
11709 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11715 if test "$GCC" = yes; then
11716 # Check if gcc -print-prog-name=ld gives a path.
11717 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
11718 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
11721 # gcc leaves a trailing carriage return which upsets mingw
11722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11727 # Accept absolute paths.
11729 re_direlt='/[^/][^/]*/\.\./'
11730 # Canonicalize the pathname of ld
11731 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11732 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11733 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
11735 test -z "$LD" && LD="$ac_prog"
11738 # If it fails, then pretend we aren't using GCC.
11742 # If it is relative, then search for the first ld in PATH.
11743 with_gnu_ld=unknown
11746 elif test "$with_gnu_ld" = yes; then
11747 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
11748 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
11750 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
11751 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
11753 if test "${lt_cv_path_LD+set}" = set; then
11754 echo $ECHO_N "(cached
) $ECHO_C" >&6
11756 if test -z "$LD"; then
11757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11758 for ac_dir in $PATH; do
11760 test -z "$ac_dir" && ac_dir=.
11761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11762 lt_cv_path_LD="$ac_dir/$ac_prog"
11763 # Check to see if the program is GNU ld. I'd rather use --version,
11764 # but apparently some variants of GNU ld only accept -v.
11765 # Break only if it was the GNU/non-GNU ld that we prefer.
11766 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11767 *GNU* | *'with BFD'*)
11768 test "$with_gnu_ld" != no && break
11771 test "$with_gnu_ld" != yes && break
11778 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11782 LD="$lt_cv_path_LD"
11783 if test -n "$LD"; then
11784 { echo "$as_me:$LINENO: result
: $LD" >&5
11785 echo "${ECHO_T}$LD" >&6; }
11787 { echo "$as_me:$LINENO: result
: no
" >&5
11788 echo "${ECHO_T}no
" >&6; }
11790 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
11791 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
11792 { (exit 1); exit 1; }; }
11793 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
11794 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
11795 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11796 echo $ECHO_N "(cached
) $ECHO_C" >&6
11798 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11799 case `$LD -v 2>&1 </dev/null` in
11800 *GNU* | *'with BFD'*)
11801 lt_cv_prog_gnu_ld=yes
11804 lt_cv_prog_gnu_ld=no
11808 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
11809 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11810 with_gnu_ld=$lt_cv_prog_gnu_ld
11813 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
11814 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
11815 if test "${lt_cv_ld_reload_flag+set}" = set; then
11816 echo $ECHO_N "(cached
) $ECHO_C" >&6
11818 lt_cv_ld_reload_flag='-r'
11820 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
11821 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11822 reload_flag=$lt_cv_ld_reload_flag
11823 case $reload_flag in
11825 *) reload_flag=" $reload_flag" ;;
11827 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11830 if test "$GCC" = yes; then
11831 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
11833 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11838 { echo "$as_me:$LINENO: checking how to recognise dependent libraries
" >&5
11839 echo $ECHO_N "checking how to recognise dependent libraries...
$ECHO_C" >&6; }
11840 if test "${lt_cv_deplibs_check_method+set}" = set; then
11841 echo $ECHO_N "(cached
) $ECHO_C" >&6
11843 lt_cv_file_magic_cmd='$MAGIC_CMD'
11844 lt_cv_file_magic_test_file=
11845 lt_cv_deplibs_check_method='unknown'
11846 # Need to set the preceding variable on all platforms that support
11847 # interlibrary dependencies.
11848 # 'none' -- dependencies not supported.
11849 # `unknown' -- same as none, but documents that we really don't know.
11850 # 'pass_all' -- all dependencies passed with no checks.
11851 # 'test_compile' -- check by making test program.
11852 # 'file_magic [[regex]]' -- check by looking for files in library path
11853 # which responds to the $file_magic_cmd with a given extended regex.
11854 # If you have `file' or equivalent on your system and you're not sure
11855 # whether `pass_all' will *always* work, you probably want this one.
11859 lt_cv_deplibs_check_method=pass_all
11863 lt_cv_deplibs_check_method=pass_all
11867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11868 lt_cv_file_magic_cmd='/usr/bin/file -L'
11869 lt_cv_file_magic_test_file=/shlib/libc.so
11873 # func_win32_libid is a shell function defined in ltmain.sh
11874 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11875 lt_cv_file_magic_cmd='func_win32_libid'
11879 # Base MSYS/MinGW do not provide the 'file' command needed by
11880 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11881 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11882 lt_cv_file_magic_cmd='$OBJDUMP -f'
11885 darwin* | rhapsody*)
11886 lt_cv_deplibs_check_method=pass_all
11889 freebsd* | kfreebsd*-gnu | dragonfly*)
11890 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11893 # Not sure whether the presence of OpenBSD here was a mistake.
11894 # Let's accept both of them until this is cleared up.
11895 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11896 lt_cv_file_magic_cmd=/usr/bin/file
11897 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11901 lt_cv_deplibs_check_method=pass_all
11906 lt_cv_deplibs_check_method=pass_all
11909 hpux10.20* | hpux11*)
11910 lt_cv_file_magic_cmd=/usr/bin/file
11913 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11914 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11917 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]'
11918 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11921 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11922 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11928 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11932 irix5* | irix6* | nonstopux*)
11934 *-32|*"-32 ") libmagic=32-bit;;
11935 *-n32|*"-n32 ") libmagic=N32;;
11936 *-64|*"-64 ") libmagic=64-bit;;
11937 *) libmagic=never-match;;
11939 lt_cv_deplibs_check_method=pass_all
11942 # This must be Linux ELF.
11944 lt_cv_deplibs_check_method=pass_all
11948 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11956 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11957 lt_cv_file_magic_cmd=/usr/bin/file
11958 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11962 lt_cv_deplibs_check_method=unknown
11966 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
11967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11973 osf3* | osf4* | osf5*)
11974 lt_cv_deplibs_check_method=pass_all
11978 lt_cv_deplibs_check_method=pass_all
11982 case $host_vendor in
11984 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]'
11985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11988 lt_cv_deplibs_check_method=pass_all
11991 lt_cv_file_magic_cmd='/bin/file'
11992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11995 lt_cv_file_magic_cmd='/bin/file'
11996 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
11997 lt_cv_file_magic_test_file=/lib/libc.so
12000 lt_cv_deplibs_check_method=pass_all
12003 lt_cv_deplibs_check_method=pass_all
12008 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12009 lt_cv_deplibs_check_method=pass_all
12014 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
12015 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12016 file_magic_cmd=$lt_cv_file_magic_cmd
12017 deplibs_check_method=$lt_cv_deplibs_check_method
12018 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12022 # If no C compiler was specified, use CC.
12025 # If no C compiler flags were specified, use CFLAGS.
12026 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12028 # Allow CC to be a program name with arguments.
12031 # Check whether --enable-libtool-lock was given.
12032 if test "${enable_libtool_lock+set}" = set; then
12033 enableval=$enable_libtool_lock;
12036 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12038 # Some flags need to be propagated to the compiler or linker for good
12042 # Find out which ABI we are using.
12043 echo 'int i;' > conftest.$ac_ext
12044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12045 (eval $ac_compile) 2>&5
12047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12048 (exit $ac_status); }; then
12049 case `/usr/bin/file conftest.$ac_objext` in
12051 HPUX_IA64_MODE="32"
12054 HPUX_IA64_MODE="64"
12061 # Find out which ABI we are using.
12062 echo '#line 12062 "configure
"' > conftest.$ac_ext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064 (eval $ac_compile) 2>&5
12066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12067 (exit $ac_status); }; then
12068 if test "$lt_cv_prog_gnu_ld" = yes; then
12069 case `/usr/bin/file conftest.$ac_objext` in
12071 LD="${LD-ld} -melf32bsmip"
12074 LD="${LD-ld} -melf32bmipn32"
12077 LD="${LD-ld} -melf64bmip"
12081 case `/usr/bin/file conftest.$ac_objext` in
12097 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12098 # Find out which ABI we are using.
12099 echo 'int i;' > conftest.$ac_ext
12100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12101 (eval $ac_compile) 2>&5
12103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12104 (exit $ac_status); }; then
12105 case `/usr/bin/file conftest.o` in
12109 LD="${LD-ld} -m elf_i386
"
12111 ppc64-*linux*|powerpc64-*linux*)
12112 LD="${LD-ld} -m elf32ppclinux
"
12115 LD="${LD-ld} -m elf_s390
"
12118 LD="${LD-ld} -m elf32_sparc
"
12125 LD="${LD-ld} -m elf_x86_64
"
12127 ppc*-*linux*|powerpc*-*linux*)
12128 LD="${LD-ld} -m elf64ppc
"
12131 LD="${LD-ld} -m elf64_s390
"
12134 LD="${LD-ld} -m elf64_sparc
"
12144 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12145 SAVE_CFLAGS="$CFLAGS"
12146 CFLAGS="$CFLAGS -belf"
12147 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
12148 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
12149 if test "${lt_cv_cc_needs_belf+set}" = set; then
12150 echo $ECHO_N "(cached
) $ECHO_C" >&6
12153 ac_cpp='$CPP $CPPFLAGS'
12154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12158 cat >conftest.$ac_ext <<_ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
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 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest$ac_exeext &&
12190 $as_test_x conftest$ac_exeext; then
12191 lt_cv_cc_needs_belf=yes
12193 echo "$as_me: failed program was
:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 lt_cv_cc_needs_belf=no
12199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12200 conftest$ac_exeext conftest.$ac_ext
12202 ac_cpp='$CPP $CPPFLAGS'
12203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12208 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
12209 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12210 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12211 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12212 CFLAGS="$SAVE_CFLAGS"
12216 # Find out which ABI we are using.
12217 echo 'int i;' > conftest.$ac_ext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12219 (eval $ac_compile) 2>&5
12221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12222 (exit $ac_status); }; then
12223 case `/usr/bin/file conftest.o` in
12225 case $lt_cv_prog_gnu_ld in
12226 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
12227 *) LD="${LD-ld} -64" ;;
12238 need_locks="$enable_libtool_lock"
12243 if test -n "$CXX" && ( test "X
$CXX" != "Xno
" &&
12244 ( (test "X
$CXX" = "Xg
++" && `g++ -v >/dev/null 2>&1` ) ||
12245 (test "X
$CXX" != "Xg
++"))) ; then
12247 ac_cpp='$CXXCPP $CPPFLAGS'
12248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12251 { echo "$as_me:$LINENO: checking how to run the C
++ preprocessor
" >&5
12252 echo $ECHO_N "checking how to run the C
++ preprocessor...
$ECHO_C" >&6; }
12253 if test -z "$CXXCPP"; then
12254 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12255 echo $ECHO_N "(cached
) $ECHO_C" >&6
12257 # Double quotes because CXXCPP needs to be expanded
12258 for CXXCPP in "$CXX -E" "/lib
/cpp
"
12260 ac_preproc_ok=false
12261 for ac_cxx_preproc_warn_flag in '' yes
12263 # Use a header file that comes with gcc, so configuring glibc
12264 # with a fresh cross-compiler works.
12265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12266 # <limits.h> exists even on freestanding compilers.
12267 # On the NeXT, cc -E runs the code through the compiler's parser,
12268 # not just through cpp. "Syntax error
" is here to catch this case.
12269 cat >conftest.$ac_ext <<_ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12276 # include <limits.h>
12278 # include <assert.h>
12282 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12283 case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12290 grep -v '^ *+' conftest.er1 >conftest.err
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12294 (exit $ac_status); } >/dev/null && {
12295 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12296 test ! -s conftest.err
12300 echo "$as_me: failed program was
:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12303 # Broken: fails on valid input.
12307 rm -f conftest.err conftest.$ac_ext
12309 # OK, works on sane cases. Now check whether nonexistent headers
12310 # can be detected and how.
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 #include <ac_nonexistent.h>
12319 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12320 case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12327 grep -v '^ *+' conftest.er1 >conftest.err
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12331 (exit $ac_status); } >/dev/null && {
12332 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12333 test ! -s conftest.err
12335 # Broken: success on invalid input.
12338 echo "$as_me: failed program was
:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12341 # Passes both tests.
12346 rm -f conftest.err conftest.$ac_ext
12349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12350 rm -f conftest.err conftest.$ac_ext
12351 if $ac_preproc_ok; then
12356 ac_cv_prog_CXXCPP=$CXXCPP
12359 CXXCPP=$ac_cv_prog_CXXCPP
12361 ac_cv_prog_CXXCPP=$CXXCPP
12363 { echo "$as_me:$LINENO: result
: $CXXCPP" >&5
12364 echo "${ECHO_T}$CXXCPP" >&6; }
12365 ac_preproc_ok=false
12366 for ac_cxx_preproc_warn_flag in '' yes
12368 # Use a header file that comes with gcc, so configuring glibc
12369 # with a fresh cross-compiler works.
12370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12371 # <limits.h> exists even on freestanding compilers.
12372 # On the NeXT, cc -E runs the code through the compiler's parser,
12373 # not just through cpp. "Syntax error
" is here to catch this case.
12374 cat >conftest.$ac_ext <<_ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12381 # include <limits.h>
12383 # include <assert.h>
12387 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12388 case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12392 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12395 grep -v '^ *+' conftest.er1 >conftest.err
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12399 (exit $ac_status); } >/dev/null && {
12400 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12401 test ! -s conftest.err
12405 echo "$as_me: failed program was
:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 # Broken: fails on valid input.
12412 rm -f conftest.err conftest.$ac_ext
12414 # OK, works on sane cases. Now check whether nonexistent headers
12415 # can be detected and how.
12416 cat >conftest.$ac_ext <<_ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12422 #include <ac_nonexistent.h>
12424 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12425 case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12432 grep -v '^ *+' conftest.er1 >conftest.err
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12436 (exit $ac_status); } >/dev/null && {
12437 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12438 test ! -s conftest.err
12440 # Broken: success on invalid input.
12443 echo "$as_me: failed program was
:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 # Passes both tests.
12451 rm -f conftest.err conftest.$ac_ext
12454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12455 rm -f conftest.err conftest.$ac_ext
12456 if $ac_preproc_ok; then
12459 { { echo "$as_me:$LINENO: error
: C
++ preprocessor
\"$CXXCPP\" fails sanity check
12460 See \
`config.log' for more details." >&5
12461 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12462 See \`config.log
' for more details." >&2;}
12463 { (exit 1); exit 1; }; }
12467 ac_cpp='$CXXCPP $CPPFLAGS'
12468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
12469 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12476 ac_compile='$F77 -c $FFLAGS conftest.
$ac_ext >&5'
12477 ac_link='$F77 -o conftest
$ac_exeext $FFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12478 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12479 if test -n "$ac_tool_prefix"; then
12480 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
12482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12486 if test "${ac_cv_prog_F77+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 if test -n "$F77"; then
12490 ac_cv_prog_F77="$F77" # Let the user override the test.
12492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $PATH
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12499 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12509 F77=$ac_cv_prog_F77
12510 if test -n "$F77"; then
12511 { echo "$as_me:$LINENO: result: $F77" >&5
12512 echo "${ECHO_T}$F77" >&6; }
12514 { echo "$as_me:$LINENO: result: no" >&5
12515 echo "${ECHO_T}no" >&6; }
12519 test -n "$F77" && break
12522 if test -z "$F77"; then
12524 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
12526 # Extract the first word of "$ac_prog", so it can be a program name with args.
12527 set dummy $ac_prog; ac_word=$2
12528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12530 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 if test -n "$ac_ct_F77"; then
12534 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $PATH
12540 test -z "$as_dir" && as_dir=.
12541 for ac_exec_ext in '' $ac_executable_extensions; do
12542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12543 ac_cv_prog_ac_ct_F77="$ac_prog"
12544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12553 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12554 if test -n "$ac_ct_F77"; then
12555 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12556 echo "${ECHO_T}$ac_ct_F77" >&6; }
12558 { echo "$as_me:$LINENO: result: no" >&5
12559 echo "${ECHO_T}no" >&6; }
12563 test -n "$ac_ct_F77" && break
12566 if test "x$ac_ct_F77" = x; then
12569 case $cross_compiling:$ac_tool_warned in
12571 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12572 whose name does not start with the host triplet. If you think this
12573 configuration is useful to you, please write to autoconf@gnu.org." >&5
12574 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12575 whose name does not start with the host triplet. If you think this
12576 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12577 ac_tool_warned=yes ;;
12584 # Provide some information about the compiler.
12585 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12586 ac_compiler=`set X $ac_compile; echo $2`
12587 { (ac_try="$ac_compiler --version >&5"
12588 case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_compiler --version >&5") 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }
12597 { (ac_try="$ac_compiler -v >&5"
12598 case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_compiler -v >&5") 2>&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }
12607 { (ac_try="$ac_compiler -V >&5"
12608 case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_compiler -V >&5") 2>&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }
12619 # If we don't use
`.F' as extension, the preprocessor is not run on the
12620 # input file. (Note that this only needs to work for GNU compilers.)
12621 ac_save_ext=$ac_ext
12623 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12624 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12625 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 cat >conftest.$ac_ext <<_ACEOF
12636 rm -f conftest.$ac_objext
12637 if { (ac_try="$ac_compile"
12638 case "(($ac_try" in
12639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12640 *) ac_try_echo
=$ac_try;;
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_compile") 2>conftest.er1
12645 grep -v '^ *+' conftest.er1
>conftest.err
12647 cat conftest.err
>&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } && {
12650 test -z "$ac_f77_werror_flag" ||
12651 test ! -s conftest.err
12652 } && test -s conftest.
$ac_objext; then
12653 ac_compiler_gnu
=yes
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.
$ac_ext >&5
12661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12662 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
12665 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12666 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12667 ac_ext
=$ac_save_ext
12668 ac_test_FFLAGS
=${FFLAGS+set}
12669 ac_save_FFLAGS
=$FFLAGS
12671 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12672 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12673 if test "${ac_cv_prog_f77_g+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 cat >conftest.
$ac_ext <<_ACEOF
12682 rm -f conftest.
$ac_objext
12683 if { (ac_try
="$ac_compile"
12684 case "(($ac_try" in
12685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_compile") 2>conftest.er1
12691 grep -v '^ *+' conftest.er1 >conftest.err
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } && {
12696 test -z "$ac_f77_werror_flag" ||
12697 test ! -s conftest.err
12698 } && test -s conftest.$ac_objext; then
12699 ac_cv_prog_f77_g=yes
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12704 ac_cv_prog_f77_g=no
12707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12710 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12711 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12712 if test "$ac_test_FFLAGS" = set; then
12713 FFLAGS=$ac_save_FFLAGS
12714 elif test $ac_cv_prog_f77_g = yes; then
12715 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12721 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12728 G77=`test $ac_compiler_gnu = yes && echo yes`
12730 ac_cpp='$CPP $CPPFLAGS'
12731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12737 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12739 # find the maximum length of command line arguments
12740 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12741 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12742 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 # On DJGPP, this test can blow up pretty badly due to problems in libc
12751 # (any single argument exceeding 2000 bytes causes a buffer overrun
12752 # during glob expansion). Even if it were fixed, the result of this
12753 # check would be larger than it should be.
12754 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12758 # Under GNU Hurd, this test is not required because there is
12759 # no limit to the length of command line arguments.
12760 # Libtool will interpret -1 as no limit whatsoever
12761 lt_cv_sys_max_cmd_len=-1;
12765 # On Win9x/ME, this test blows up -- it succeeds, but takes
12766 # about 5 minutes as the teststring grows exponentially.
12767 # Worse, since 9x/ME are not pre-emptively multitasking,
12768 # you end up with a "frozen" computer, even though with patience
12769 # the test eventually succeeds (with a max line length of 256k).
12770 # Instead, let's just punt: use the minimum linelength reported by
12771 # all of the supported platforms: 8192 (on NT/2K/XP).
12772 lt_cv_sys_max_cmd_len=8192;
12776 # On AmigaOS with pdksh, this test takes hours, literally.
12777 # So we just punt and use a minimum line length of 8192.
12778 lt_cv_sys_max_cmd_len=8192;
12781 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12782 # This has been around since 386BSD, at least. Likely further.
12783 if test -x /sbin/sysctl; then
12784 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
12785 elif test -x /usr/sbin/sysctl; then
12786 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
12788 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12790 # And add a safety zone
12791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
12792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
12796 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12797 lt_cv_sys_max_cmd_len=196608
12801 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12802 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12803 # nice to cause kernel panics so lets avoid the loop below.
12804 # First set a reasonable default.
12805 lt_cv_sys_max_cmd_len=16384
12807 if test -x /sbin/sysconfig; then
12808 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
12809 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12814 lt_cv_sys_max_cmd_len=102400
12816 sysv5* | sco5v6* | sysv4.2uw2*)
12817 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
12818 if test -n "$kargmax"; then
12819 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
12821 lt_cv_sys_max_cmd_len=32768
12825 # If test is not a shell built-in, we'll probably end up computing a
12826 # maximum length that is only half of the actual maximum length, but
12828 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12829 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev
/null
` \
12830 = "XX$teststring") >/dev/null 2>&1 &&
12831 new_result=`expr "X$teststring" : ".*" 2>&1` &&
12832 lt_cv_sys_max_cmd_len=$new_result &&
12833 test $i != 17 # 1/2 MB should be enough
12836 teststring=$teststring$teststring
12839 # Add a significant safety factor because C++ compilers can tack on massive
12840 # amounts of additional arguments before passing them to the linker.
12841 # It appears as though 1/2 is a usable value.
12842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
12848 if test -n $lt_cv_sys_max_cmd_len ; then
12849 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12850 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12852 { echo "$as_me:$LINENO: result: none" >&5
12853 echo "${ECHO_T}none" >&6; }
12859 # Check for command to grab the raw symbol name followed by C symbol from nm.
12860 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12861 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12862 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 # These are sane defaults that work on at least a few old systems.
12867 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12869 # Character class describing NM global symbol codes.
12870 symcode='[BCDEGRST]'
12872 # Regexp to match symbols that can be accessed directly from C.
12873 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12875 # Transform an extracted symbol line into a proper C declaration
12876 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12878 # Transform an extracted symbol line into symbol name and symbol address
12879 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'"
12881 # Define system-specific variables.
12886 cygwin* | mingw* | pw32*)
12887 symcode='[ABCDGISTW]'
12889 hpux*) # Its linker distinguishes data from code symbols
12890 if test "$host_cpu" = ia64; then
12891 symcode='[ABCDEGRST]'
12893 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12894 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'"
12897 if test "$host_cpu" = ia64; then
12898 symcode='[ABCDGIRSTW]'
12899 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12900 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'"
12903 irix* | nonstopux*)
12904 symcode='[BCDEGRST]'
12907 symcode='[BCDEGQRST]'
12918 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12926 # Handle CRLF in mingw tool chain
12930 opt_cr=`echo 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
12934 # If we're using GNU nm, then use its standard symbol codes.
12935 case `$NM -V 2>&1` in
12936 *GNU* | *'with BFD'*)
12937 symcode='[ABCDGIRSTW]' ;;
12940 # Try without a prefix undercore, then with it.
12941 for ac_symprfx in "" "_"; do
12943 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12944 symxfrm="\\1 $ac_symprfx\\2 \\2"
12946 # Write the raw and C identifiers.
12947 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12949 # Check to see that the pipe works correctly.
12953 cat > conftest.$ac_ext <<EOF
12958 void nm_test_func(){}
12962 int main(){nm_test_var='a';nm_test_func();return(0);}
12965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12966 (eval $ac_compile) 2>&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; then
12970 # Now try to grab the symbols.
12972 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12973 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } && test -s "$nlist"; then
12977 # Try sorting and uniquifying the output.
12978 if sort "$nlist" | uniq > "$nlist"T; then
12979 mv -f "$nlist"T "$nlist"
12984 # Make sure that we snagged all the symbols we need.
12985 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12986 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12987 cat <<EOF > conftest.$ac_ext
12993 # Now generate the symbol file.
12994 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12996 cat <<EOF >> conftest.$ac_ext
12997 #if defined (__STDC__) && __STDC__
12998 # define lt_ptr_t void *
13000 # define lt_ptr_t char *
13004 /* The mapping between symbol names and symbols. */
13009 lt_preloaded_symbols[] =
13012 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13013 cat <<\EOF >> conftest.$ac_ext
13021 # Now try linking the two files.
13022 mv conftest.$ac_objext conftstm.$ac_objext
13023 lt_save_LIBS="$LIBS"
13024 lt_save_CFLAGS="$CFLAGS"
13025 LIBS="conftstm.$ac_objext"
13026 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13028 (eval $ac_link) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13034 LIBS="$lt_save_LIBS"
13035 CFLAGS="$lt_save_CFLAGS"
13037 echo "cannot find nm_test_func in $nlist" >&5
13040 echo "cannot find nm_test_var in $nlist" >&5
13043 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13046 echo "$progname: failed program was:" >&5
13047 cat conftest.$ac_ext >&5
13049 rm -f conftest* conftst*
13051 # Do not use the global_symbol_pipe unless it works.
13052 if test "$pipe_works" = yes; then
13055 lt_cv_sys_global_symbol_pipe=
13061 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13062 lt_cv_sys_global_symbol_to_cdecl=
13064 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13065 { echo "$as_me:$LINENO: result: failed" >&5
13066 echo "${ECHO_T}failed" >&6; }
13068 { echo "$as_me:$LINENO: result: ok" >&5
13069 echo "${ECHO_T}ok" >&6; }
13072 { echo "$as_me:$LINENO: checking for objdir" >&5
13073 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13074 if test "${lt_cv_objdir+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 rm -f .libs 2>/dev/null
13078 mkdir .libs 2>/dev/null
13079 if test -d .libs; then
13082 # MS-DOS does not allow filenames that begin with a dot.
13085 rmdir .libs 2>/dev/null
13087 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13088 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13089 objdir=$lt_cv_objdir
13097 # AIX sometimes has problems with the GCC collect2 program. For some
13098 # reason, if we set the COLLECT_NAMES environment variable, the problems
13099 # vanish in a puff of smoke.
13100 if test "X${COLLECT_NAMES+set}" != Xset; then
13102 export COLLECT_NAMES
13107 # Sed substitution that helps us do robust quoting. It backslashifies
13108 # metacharacters that are still active within double-quoted strings.
13109 Xsed='sed -e 1s/^X//'
13110 sed_quote_subst='s/\([\\"\\`$
\\\\]\
)/\\\
1/g
'
13112 # Same as above, but do not quote variable references.
13113 double_quote_subst='s
/\
([\\"\\`\\\\]\)/\\\1/g'
13115 # Sed substitution to delay expansion of an escaped shell variable in a
13116 # double_quote_subst'ed string.
13117 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13119 # Sed substitution to avoid accidental globbing in evaled expressions
13120 no_glob_subst='s/\*/\\\*/g'
13125 # Global variables:
13126 default_ofile=mklib
13127 can_build_shared=yes
13129 # All known linkers require a `.a' archive for static linking (except MSVC,
13130 # which needs '.lib').
13132 ltmain="$ac_aux_dir/ltmain.sh
"
13133 ofile="$default_ofile"
13134 with_gnu_ld="$lt_cv_prog_gnu_ld"
13136 if test -n "$ac_tool_prefix"; then
13137 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13138 set dummy ${ac_tool_prefix}ar; ac_word=$2
13139 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13140 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13141 if test "${ac_cv_prog_AR+set}" = set; then
13142 echo $ECHO_N "(cached
) $ECHO_C" >&6
13144 if test -n "$AR"; then
13145 ac_cv_prog_AR="$AR" # Let the user override the test.
13147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13151 test -z "$as_dir" && as_dir=.
13152 for ac_exec_ext in '' $ac_executable_extensions; do
13153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13154 ac_cv_prog_AR="${ac_tool_prefix}ar"
13155 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13165 if test -n "$AR"; then
13166 { echo "$as_me:$LINENO: result
: $AR" >&5
13167 echo "${ECHO_T}$AR" >&6; }
13169 { echo "$as_me:$LINENO: result
: no
" >&5
13170 echo "${ECHO_T}no
" >&6; }
13175 if test -z "$ac_cv_prog_AR"; then
13177 # Extract the first word of "ar", so it can be a program name with args.
13178 set dummy ar; ac_word=$2
13179 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13180 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13181 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13182 echo $ECHO_N "(cached
) $ECHO_C" >&6
13184 if test -n "$ac_ct_AR"; then
13185 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188 for as_dir in $PATH
13191 test -z "$as_dir" && as_dir=.
13192 for ac_exec_ext in '' $ac_executable_extensions; do
13193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13194 ac_cv_prog_ac_ct_AR="ar"
13195 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13204 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13205 if test -n "$ac_ct_AR"; then
13206 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
13207 echo "${ECHO_T}$ac_ct_AR" >&6; }
13209 { echo "$as_me:$LINENO: result
: no
" >&5
13210 echo "${ECHO_T}no
" >&6; }
13213 if test "x
$ac_ct_AR" = x; then
13216 case $cross_compiling:$ac_tool_warned in
13218 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
13219 whose name does not start with the
host triplet. If you think this
13220 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
13221 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
13222 whose name does not start with the
host triplet. If you think this
13223 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
13224 ac_tool_warned=yes ;;
13229 AR="$ac_cv_prog_AR"
13232 if test -n "$ac_tool_prefix"; then
13233 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13234 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13235 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13236 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13237 if test "${ac_cv_prog_RANLIB+set}" = set; then
13238 echo $ECHO_N "(cached
) $ECHO_C" >&6
13240 if test -n "$RANLIB"; then
13241 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13250 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13251 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13260 RANLIB=$ac_cv_prog_RANLIB
13261 if test -n "$RANLIB"; then
13262 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
13263 echo "${ECHO_T}$RANLIB" >&6; }
13265 { echo "$as_me:$LINENO: result
: no
" >&5
13266 echo "${ECHO_T}no
" >&6; }
13271 if test -z "$ac_cv_prog_RANLIB"; then
13272 ac_ct_RANLIB=$RANLIB
13273 # Extract the first word of "ranlib
", so it can be a program name with args.
13274 set dummy ranlib; ac_word=$2
13275 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13276 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13277 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13278 echo $ECHO_N "(cached
) $ECHO_C" >&6
13280 if test -n "$ac_ct_RANLIB"; then
13281 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in $PATH
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13290 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13291 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13300 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13301 if test -n "$ac_ct_RANLIB"; then
13302 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
13303 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13305 { echo "$as_me:$LINENO: result
: no
" >&5
13306 echo "${ECHO_T}no
" >&6; }
13309 if test "x
$ac_ct_RANLIB" = x; then
13312 case $cross_compiling:$ac_tool_warned in
13314 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
13315 whose name does not start with the
host triplet. If you think this
13316 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
13317 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
13318 whose name does not start with the
host triplet. If you think this
13319 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
13320 ac_tool_warned=yes ;;
13322 RANLIB=$ac_ct_RANLIB
13325 RANLIB="$ac_cv_prog_RANLIB"
13328 if test -n "$ac_tool_prefix"; then
13329 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13330 set dummy ${ac_tool_prefix}strip; ac_word=$2
13331 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13332 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13333 if test "${ac_cv_prog_STRIP+set}" = set; then
13334 echo $ECHO_N "(cached
) $ECHO_C" >&6
13336 if test -n "$STRIP"; then
13337 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13340 for as_dir in $PATH
13343 test -z "$as_dir" && as_dir=.
13344 for ac_exec_ext in '' $ac_executable_extensions; do
13345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13346 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13347 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13356 STRIP=$ac_cv_prog_STRIP
13357 if test -n "$STRIP"; then
13358 { echo "$as_me:$LINENO: result
: $STRIP" >&5
13359 echo "${ECHO_T}$STRIP" >&6; }
13361 { echo "$as_me:$LINENO: result
: no
" >&5
13362 echo "${ECHO_T}no
" >&6; }
13367 if test -z "$ac_cv_prog_STRIP"; then
13369 # Extract the first word of "strip
", so it can be a program name with args.
13370 set dummy strip; ac_word=$2
13371 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13372 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13373 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13374 echo $ECHO_N "(cached
) $ECHO_C" >&6
13376 if test -n "$ac_ct_STRIP"; then
13377 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13380 for as_dir in $PATH
13383 test -z "$as_dir" && as_dir=.
13384 for ac_exec_ext in '' $ac_executable_extensions; do
13385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13386 ac_cv_prog_ac_ct_STRIP="strip
"
13387 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13396 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13397 if test -n "$ac_ct_STRIP"; then
13398 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
13399 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13401 { echo "$as_me:$LINENO: result
: no
" >&5
13402 echo "${ECHO_T}no
" >&6; }
13405 if test "x
$ac_ct_STRIP" = x; then
13408 case $cross_compiling:$ac_tool_warned in
13410 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
13411 whose name does not start with the
host triplet. If you think this
13412 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
13413 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
13414 whose name does not start with the
host triplet. If you think this
13415 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
13416 ac_tool_warned=yes ;;
13421 STRIP="$ac_cv_prog_STRIP"
13426 old_CFLAGS="$CFLAGS"
13428 # Set sane defaults for various variables
13429 test -z "$AR" && AR=ar
13430 test -z "$AR_FLAGS" && AR_FLAGS=cru
13431 test -z "$AS" && AS=as
13432 test -z "$CC" && CC=cc
13433 test -z "$LTCC" && LTCC=$CC
13434 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13435 test -z "$DLLTOOL" && DLLTOOL=dlltool
13436 test -z "$LD" && LD=ld
13437 test -z "$LN_S" && LN_S="ln -s"
13438 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13439 test -z "$NM" && NM=nm
13440 test -z "$SED" && SED=sed
13441 test -z "$OBJDUMP" && OBJDUMP=objdump
13442 test -z "$RANLIB" && RANLIB=:
13443 test -z "$STRIP" && STRIP=:
13444 test -z "$ac_objext" && ac_objext=o
13446 # Determine commands to create old-style static archives.
13447 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13448 old_postinstall_cmds='chmod 644 $oldlib'
13449 old_postuninstall_cmds=
13451 if test -n "$RANLIB"; then
13454 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13457 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13460 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13463 for cc_temp in $compiler""; do
13465 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13466 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13471 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
13474 # Only perform the check for file, if the check method requires it
13475 case $deplibs_check_method in
13477 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13478 { echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
13479 echo $ECHO_N "checking
for ${ac_tool_prefix}file...
$ECHO_C" >&6; }
13480 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13481 echo $ECHO_N "(cached
) $ECHO_C" >&6
13485 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13488 lt_save_MAGIC_CMD="$MAGIC_CMD"
13489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13490 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13491 for ac_dir in $ac_dummy; do
13493 test -z "$ac_dir" && ac_dir=.
13494 if test -f $ac_dir/${ac_tool_prefix}file; then
13495 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13496 if test -n "$file_magic_test_file"; then
13497 case $deplibs_check_method in
13499 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13500 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13501 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13502 $EGREP "$file_magic_regex" > /dev/null; then
13507 *** Warning: the command libtool uses to detect shared libraries,
13508 *** $file_magic_cmd, produces output that libtool cannot recognize.
13509 *** The result is that libtool may fail to recognize shared libraries
13510 *** as such. This will affect the creation of libtool libraries that
13511 *** depend on shared libraries, but programs linked with such libtool
13512 *** libraries will work regardless of this problem. Nevertheless, you
13513 *** may want to report the problem to your system manager and/or to
13514 *** bug-libtool@gnu.org
13524 MAGIC_CMD="$lt_save_MAGIC_CMD"
13529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13530 if test -n "$MAGIC_CMD"; then
13531 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
13532 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13534 { echo "$as_me:$LINENO: result
: no
" >&5
13535 echo "${ECHO_T}no
" >&6; }
13538 if test -z "$lt_cv_path_MAGIC_CMD"; then
13539 if test -n "$ac_tool_prefix"; then
13540 { echo "$as_me:$LINENO: checking
for file" >&5
13541 echo $ECHO_N "checking
for file...
$ECHO_C" >&6; }
13542 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13543 echo $ECHO_N "(cached
) $ECHO_C" >&6
13547 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13550 lt_save_MAGIC_CMD="$MAGIC_CMD"
13551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13552 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13553 for ac_dir in $ac_dummy; do
13555 test -z "$ac_dir" && ac_dir=.
13556 if test -f $ac_dir/file; then
13557 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13558 if test -n "$file_magic_test_file"; then
13559 case $deplibs_check_method in
13561 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13563 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13564 $EGREP "$file_magic_regex" > /dev/null; then
13569 *** Warning: the command libtool uses to detect shared libraries,
13570 *** $file_magic_cmd, produces output that libtool cannot recognize.
13571 *** The result is that libtool may fail to recognize shared libraries
13572 *** as such. This will affect the creation of libtool libraries that
13573 *** depend on shared libraries, but programs linked with such libtool
13574 *** libraries will work regardless of this problem. Nevertheless, you
13575 *** may want to report the problem to your system manager and/or to
13576 *** bug-libtool@gnu.org
13586 MAGIC_CMD="$lt_save_MAGIC_CMD"
13591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13592 if test -n "$MAGIC_CMD"; then
13593 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
13594 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13596 { echo "$as_me:$LINENO: result
: no
" >&5
13597 echo "${ECHO_T}no
" >&6; }
13610 enable_win32_dll=no
13612 # Check whether --enable-libtool-lock was given.
13613 if test "${enable_libtool_lock+set}" = set; then
13614 enableval=$enable_libtool_lock;
13617 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13620 # Check whether --with-pic was given.
13621 if test "${with_pic+set}" = set; then
13622 withval=$with_pic; pic_mode="$withval"
13627 test -z "$pic_mode" && pic_mode=default
13629 # Use C for the default configuration in the libtool script
13633 ac_cpp='$CPP $CPPFLAGS'
13634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13639 # Source file extension for C test sources.
13642 # Object file extension for compiled C test sources.
13646 # Code to be used in simple compile tests
13647 lt_simple_compile_test_code="int some_variable
= 0;\n"
13649 # Code to be used in simple link tests
13650 lt_simple_link_test_code='int main(){return(0);}\n'
13653 # If no C compiler was specified, use CC.
13656 # If no C compiler flags were specified, use CFLAGS.
13657 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13659 # Allow CC to be a program name with arguments.
13663 # save warnings/boilerplate of simple test code
13664 ac_outfile=conftest.$ac_objext
13665 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13666 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13667 _lt_compiler_boilerplate=`cat conftest.err`
13670 ac_outfile=conftest.$ac_objext
13671 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13672 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13673 _lt_linker_boilerplate=`cat conftest.err`
13678 lt_prog_compiler_no_builtin_flag=
13680 if test "$GCC" = yes; then
13681 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13684 { echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
13685 echo $ECHO_N "checking
if $compiler supports
-fno-rtti -fno-exceptions...
$ECHO_C" >&6; }
13686 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13687 echo $ECHO_N "(cached
) $ECHO_C" >&6
13689 lt_cv_prog_compiler_rtti_exceptions=no
13690 ac_outfile=conftest.$ac_objext
13691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13692 lt_compiler_flag="-fno-rtti -fno-exceptions"
13693 # Insert the option either (1) after the last *FLAGS variable, or
13694 # (2) before a word containing "conftest.
", or (3) at the end.
13695 # Note that $ac_compile itself does not contain backslashes and begins
13696 # with a dollar sign (not a hyphen), so the echo should work correctly.
13697 # The option is referenced via a variable to avoid confusing sed.
13698 lt_compile=`echo "$ac_compile" | $SED \
13699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13701 -e 's:$: $lt_compiler_flag:'`
13702 (eval echo "\"\
$as_me:13702: $lt_compile\"" >&5)
13703 (eval "$lt_compile" 2>conftest.err)
13705 cat conftest.err >&5
13706 echo "$as_me:13706: \$?
= $ac_status" >&5
13707 if (exit $ac_status) && test -s "$ac_outfile"; then
13708 # The compiler can only warn and ignore the option if not recognized
13709 # So say no if there are warnings other than the usual output.
13710 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13713 lt_cv_prog_compiler_rtti_exceptions=yes
13719 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
13720 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13722 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13723 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13730 lt_prog_compiler_wl=
13731 lt_prog_compiler_pic=
13732 lt_prog_compiler_static=
13734 { echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
13735 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6; }
13737 if test "$GCC" = yes; then
13738 lt_prog_compiler_wl='-Wl,'
13739 lt_prog_compiler_static='-static'
13743 # All AIX code is PIC.
13744 if test "$host_cpu" = ia64; then
13745 # AIX 5 now supports IA64 processor
13746 lt_prog_compiler_static='-Bstatic'
13751 # FIXME: we need at least 68020 code to build shared libraries, but
13752 # adding the `-m68020' flag to GCC prevents building anything better,
13754 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13757 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13758 # PIC is the default for these OSes.
13761 mingw* | pw32* | os2*)
13762 # This hack is so that the source file can tell whether it is being
13763 # built for inclusion in a dll (and should export symbols for example).
13764 lt_prog_compiler_pic='-DDLL_EXPORT'
13767 darwin* | rhapsody*)
13768 # PIC is the default on this platform
13769 # Common symbols not allowed in MH_DYLIB files
13770 lt_prog_compiler_pic='-fno-common'
13774 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13775 # Instead, we relocate shared libraries at runtime.
13779 # Just because we use GCC doesn't mean we suddenly get shared libraries
13780 # on systems that don't support them.
13781 lt_prog_compiler_can_build_shared=no
13786 if test -d /usr/nec; then
13787 lt_prog_compiler_pic=-Kconform_pic
13792 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13793 # not for PA HP-UX.
13799 lt_prog_compiler_pic='-fPIC'
13805 lt_prog_compiler_pic='-fPIC'
13809 # PORTME Check for flag to pass linker flags through the system compiler.
13812 lt_prog_compiler_wl='-Wl,'
13813 if test "$host_cpu" = ia64; then
13814 # AIX 5 now supports IA64 processor
13815 lt_prog_compiler_static='-Bstatic'
13817 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13821 # PIC is the default on this platform
13822 # Common symbols not allowed in MH_DYLIB files
13823 case $cc_basename in
13825 lt_prog_compiler_pic='-qnocommon'
13826 lt_prog_compiler_wl='-Wl,'
13831 mingw* | pw32* | os2*)
13832 # This hack is so that the source file can tell whether it is being
13833 # built for inclusion in a dll (and should export symbols for example).
13834 lt_prog_compiler_pic='-DDLL_EXPORT'
13837 hpux9* | hpux10* | hpux11*)
13838 lt_prog_compiler_wl='-Wl,'
13839 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13840 # not for PA HP-UX.
13846 lt_prog_compiler_pic='+Z'
13849 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13850 lt_prog_compiler_static='${wl}-a ${wl}archive'
13853 irix5* | irix6* | nonstopux*)
13854 lt_prog_compiler_wl='-Wl,'
13855 # PIC (with -KPIC) is the default.
13856 lt_prog_compiler_static='-non_shared'
13860 lt_prog_compiler_pic='-KPIC'
13861 lt_prog_compiler_static='-Bstatic'
13865 case $cc_basename in
13867 lt_prog_compiler_wl='-Wl,'
13868 lt_prog_compiler_pic='-KPIC'
13869 lt_prog_compiler_static='-static'
13871 pgcc* | pgf77* | pgf90* | pgf95*)
13872 # Portland Group compilers (*not* the Pentium gcc compiler,
13873 # which looks to be a dead project)
13874 lt_prog_compiler_wl='-Wl,'
13875 lt_prog_compiler_pic='-fpic'
13876 lt_prog_compiler_static='-Bstatic'
13879 lt_prog_compiler_wl='-Wl,'
13880 # All Alpha code is PIC.
13881 lt_prog_compiler_static='-non_shared'
13886 osf3* | osf4* | osf5*)
13887 lt_prog_compiler_wl='-Wl,'
13888 # All OSF/1 code is PIC.
13889 lt_prog_compiler_static='-non_shared'
13893 lt_prog_compiler_pic='-KPIC'
13894 lt_prog_compiler_static='-Bstatic'
13895 case $cc_basename in
13896 f77* | f90* | f95*)
13897 lt_prog_compiler_wl='-Qoption ld ';;
13899 lt_prog_compiler_wl='-Wl,';;
13904 lt_prog_compiler_wl='-Qoption ld '
13905 lt_prog_compiler_pic='-PIC'
13906 lt_prog_compiler_static='-Bstatic'
13909 sysv4 | sysv4.2uw2* | sysv4.3*)
13910 lt_prog_compiler_wl='-Wl,'
13911 lt_prog_compiler_pic='-KPIC'
13912 lt_prog_compiler_static='-Bstatic'
13916 if test -d /usr/nec ;then
13917 lt_prog_compiler_pic='-Kconform_pic'
13918 lt_prog_compiler_static='-Bstatic'
13922 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13923 lt_prog_compiler_wl='-Wl,'
13924 lt_prog_compiler_pic='-KPIC'
13925 lt_prog_compiler_static='-Bstatic'
13929 lt_prog_compiler_wl='-Wl,'
13930 lt_prog_compiler_can_build_shared=no
13934 lt_prog_compiler_pic='-pic'
13935 lt_prog_compiler_static='-Bstatic'
13939 lt_prog_compiler_can_build_shared=no
13944 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
13945 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
13948 # Check to make sure the PIC flag actually works.
13950 if test -n "$lt_prog_compiler_pic"; then
13952 { echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
13953 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
$ECHO_C" >&6; }
13954 if test "${lt_prog_compiler_pic_works+set}" = set; then
13955 echo $ECHO_N "(cached
) $ECHO_C" >&6
13957 lt_prog_compiler_pic_works=no
13958 ac_outfile=conftest.$ac_objext
13959 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13960 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13961 # Insert the option either (1) after the last *FLAGS variable, or
13962 # (2) before a word containing "conftest.
", or (3) at the end.
13963 # Note that $ac_compile itself does not contain backslashes and begins
13964 # with a dollar sign (not a hyphen), so the echo should work correctly.
13965 # The option is referenced via a variable to avoid confusing sed.
13966 lt_compile=`echo "$ac_compile" | $SED \
13967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13969 -e 's:$: $lt_compiler_flag:'`
13970 (eval echo "\"\
$as_me:13970: $lt_compile\"" >&5)
13971 (eval "$lt_compile" 2>conftest.err)
13973 cat conftest.err >&5
13974 echo "$as_me:13974: \$?
= $ac_status" >&5
13975 if (exit $ac_status) && test -s "$ac_outfile"; then
13976 # The compiler can only warn and ignore the option if not recognized
13977 # So say no if there are warnings other than the usual output.
13978 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13980 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13981 lt_prog_compiler_pic_works=yes
13987 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic_works" >&5
13988 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
13990 if test x"$lt_prog_compiler_pic_works" = xyes; then
13991 case $lt_prog_compiler_pic in
13993 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13996 lt_prog_compiler_pic=
13997 lt_prog_compiler_can_build_shared=no
14002 # For platforms which do not support PIC, -DPIC is meaningless:
14004 lt_prog_compiler_pic=
14007 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14012 # Check to make sure the static flag actually works.
14014 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14015 { echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
14016 echo $ECHO_N "checking
if $compiler static flag
$lt_tmp_static_flag works...
$ECHO_C" >&6; }
14017 if test "${lt_prog_compiler_static_works+set}" = set; then
14018 echo $ECHO_N "(cached
) $ECHO_C" >&6
14020 lt_prog_compiler_static_works=no
14021 save_LDFLAGS="$LDFLAGS"
14022 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14023 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14024 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14025 # The linker can only warn and ignore the option if not recognized
14026 # So say no if there are warnings
14027 if test -s conftest.err; then
14028 # Append any errors to the config.log.
14029 cat conftest.err 1>&5
14030 $echo "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14032 if diff conftest.exp conftest.er2 >/dev/null; then
14033 lt_prog_compiler_static_works=yes
14036 lt_prog_compiler_static_works=yes
14040 LDFLAGS="$save_LDFLAGS"
14043 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_static_works" >&5
14044 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14046 if test x"$lt_prog_compiler_static_works" = xyes; then
14049 lt_prog_compiler_static=
14053 { echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14054 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6; }
14055 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14056 echo $ECHO_N "(cached
) $ECHO_C" >&6
14058 lt_cv_prog_compiler_c_o=no
14059 $rm -r conftest 2>/dev/null
14063 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14065 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14066 # Insert the option either (1) after the last *FLAGS variable, or
14067 # (2) before a word containing "conftest.
", or (3) at the end.
14068 # Note that $ac_compile itself does not contain backslashes and begins
14069 # with a dollar sign (not a hyphen), so the echo should work correctly.
14070 lt_compile=`echo "$ac_compile" | $SED \
14071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14073 -e 's:$: $lt_compiler_flag:'`
14074 (eval echo "\"\
$as_me:14074: $lt_compile\"" >&5)
14075 (eval "$lt_compile" 2>out/conftest.err)
14077 cat out/conftest.err >&5
14078 echo "$as_me:14078: \$?
= $ac_status" >&5
14079 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14081 # The compiler can only warn and ignore the option if not recognized
14082 # So say no if there are warnings
14083 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14084 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14085 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14086 lt_cv_prog_compiler_c_o=yes
14091 # SGI C++ compiler will create directory out/ii_files/ for
14092 # template instantiation
14093 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14094 $rm out/* && rmdir out
14100 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
14101 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14104 hard_links="nottested
"
14105 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14106 # do not overwrite the value of need_locks provided by the user
14107 { echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
14108 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6; }
14111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14113 ln conftest.a conftest.b 2>&5 || hard_links=no
14114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14115 { echo "$as_me:$LINENO: result
: $hard_links" >&5
14116 echo "${ECHO_T}$hard_links" >&6; }
14117 if test "$hard_links" = no; then
14118 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
14119 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
14126 { echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
14127 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6; }
14130 allow_undefined_flag=
14131 enable_shared_with_static_runtimes=no
14133 archive_expsym_cmds=
14134 old_archive_From_new_cmds=
14135 old_archive_from_expsyms_cmds=
14136 export_dynamic_flag_spec=
14137 whole_archive_flag_spec=
14138 thread_safe_flag_spec=
14139 hardcode_libdir_flag_spec=
14140 hardcode_libdir_flag_spec_ld=
14141 hardcode_libdir_separator=
14143 hardcode_minus_L=no
14144 hardcode_shlibpath_var=unsupported
14145 link_all_deplibs=unknown
14146 hardcode_automatic=no
14148 module_expsym_cmds=
14149 always_export_symbols=no
14150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14151 # include_expsyms should be a list of space-separated symbols to be *always*
14152 # included in the symbol list
14154 # exclude_expsyms can be an extended regexp of symbols to exclude
14155 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14156 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14157 # as well as any symbol that contains `d'.
14158 exclude_expsyms="_GLOBAL_OFFSET_TABLE_
"
14159 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14160 # platforms (ab)use it in PIC code, but their linkers get confused if
14161 # the symbol is explicitly referenced. Since portable code cannot
14162 # rely on this symbol name, it's probably fine to never include it in
14163 # preloaded symbol tables.
14164 extract_expsyms_cmds=
14165 # Just being paranoid about ensuring that cc_basename is set.
14166 for cc_temp in $compiler""; do
14168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14174 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
14177 cygwin* | mingw* | pw32*)
14178 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14179 # When not using gcc, we currently assume that we are using
14180 # Microsoft Visual C++.
14181 if test "$GCC" != yes; then
14186 # we just hope/assume this is gcc and not c89 (= MSVC++)
14195 if test "$with_gnu_ld" = yes; then
14196 # If archive_cmds runs LD, not CC, wlarc should be empty
14199 # Set some defaults for GNU ld with shared library support. These
14200 # are reset later if shared libraries are not supported. Putting them
14201 # here allows them to be overridden if necessary.
14202 runpath_var=LD_RUN_PATH
14203 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14204 export_dynamic_flag_spec='${wl}--export-dynamic'
14205 # ancient GNU ld didn't support --whole-archive et. al.
14206 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14207 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14209 whole_archive_flag_spec=
14211 supports_anon_versioning=no
14212 case `$LD -v 2>/dev/null` in
14213 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14214 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14215 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14216 *\ 2.11.*) ;; # other 2.11 versions
14217 *) supports_anon_versioning=yes ;;
14220 # See if GNU ld supports shared libraries.
14222 aix3* | aix4* | aix5*)
14223 # On AIX/PPC, the GNU linker is very broken
14224 if test "$host_cpu" != ia64; then
14228 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14229 *** to be unable to reliably create shared libraries on AIX.
14230 *** Therefore, libtool is disabling shared libraries support. If you
14231 *** really care for shared libraries, you may want to modify your PATH
14232 *** so that a non-GNU linker is found, and then restart.
14239 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)'
14240 hardcode_libdir_flag_spec
='-L$libdir'
14241 hardcode_minus_L
=yes
14243 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14244 # that the semantics of dynamic libraries on AmigaOS, at least up
14245 # to version 4, is to share data among multiple programs linked
14246 # with the same dynamic library. Since this doesn't match the
14247 # behavior of shared libraries on other platforms, we can't use
14253 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14254 allow_undefined_flag
=unsupported
14255 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14256 # support --undefined. This deserves some investigation. FIXME
14257 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14263 cygwin
* | mingw
* | pw32
*)
14264 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14265 # as there is no search path for DLLs.
14266 hardcode_libdir_flag_spec
='-L$libdir'
14267 allow_undefined_flag
=unsupported
14268 always_export_symbols
=no
14269 enable_shared_with_static_runtimes
=yes
14270 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14272 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14273 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14274 # If the export-symbols file already is a .def file (1st line
14275 # is EXPORTS), use it as is; otherwise, prepend...
14276 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14277 cp $export_symbols $output_objdir/$soname.def;
14279 echo EXPORTS > $output_objdir/$soname.def;
14280 cat $export_symbols >> $output_objdir/$soname.def;
14282 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14290 hardcode_shlibpath_var
=no
14291 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
14292 export_dynamic_flag_spec
='${wl}-E'
14293 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14294 # Instead, shared libraries are loaded at an image base (0x10000000 by
14295 # default) and relocated if they conflict, which is a slow very memory
14296 # consuming and fragmenting process. To avoid this, we pick a random,
14297 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14298 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14299 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14300 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'
14304 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14306 case $cc_basename,$host_cpu in
14307 pgcc
*) # Portland Group C compiler
14308 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'
14309 tmp_addflag
=' $pic_flag'
14311 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14312 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'
14313 tmp_addflag
=' $pic_flag -Mnomain' ;;
14314 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14315 tmp_addflag
=' -i_dynamic' ;;
14316 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14317 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14318 ifc
* | ifort
*) # Intel Fortran compiler
14319 tmp_addflag
=' -nofor_main' ;;
14321 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14323 if test $supports_anon_versioning = yes; then
14324 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
14325 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14326 $echo "local: *; };" >> $output_objdir/$libname.ver~
14327 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14335 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14336 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14339 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14340 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14345 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14349 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14350 *** create shared libraries on Solaris systems. Therefore, libtool
14351 *** is disabling shared libraries support. We urge you to upgrade GNU
14352 *** binutils to release 2.9.1 or newer. Another option is to modify
14353 *** your PATH or compiler configuration so that the native linker is
14354 *** used, and then restart.
14357 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14358 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14359 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14365 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14366 case `$LD -v 2>&1` in
14367 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14371 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14372 *** reliably create shared libraries on SCO systems. Therefore, libtool
14373 *** is disabling shared libraries support. We urge you to upgrade GNU
14374 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14375 *** your PATH or compiler configuration so that the native linker is
14376 *** used, and then restart.
14381 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14382 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14383 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14384 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14393 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14395 hardcode_direct
=yes
14396 hardcode_shlibpath_var
=no
14400 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14401 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14402 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14409 if test "$ld_shlibs" = no
; then
14411 hardcode_libdir_flag_spec
=
14412 export_dynamic_flag_spec
=
14413 whole_archive_flag_spec
=
14416 # PORTME fill in a description of your system's linker (not GNU ld)
14419 allow_undefined_flag
=unsupported
14420 always_export_symbols
=yes
14421 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'
14422 # Note: this linker hardcodes the directories in LIBPATH if there
14423 # are no directories specified by -L.
14424 hardcode_minus_L
=yes
14425 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14426 # Neither direct hardcoding nor static linking is supported with a
14428 hardcode_direct
=unsupported
14433 if test "$host_cpu" = ia64
; then
14434 # On IA64, the linker does run time linking by default, so we don't
14435 # have to do anything special.
14436 aix_use_runtimelinking
=no
14437 exp_sym_flag
='-Bexport'
14440 # If we're using GNU nm, then we don't want the "-C" option.
14441 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14442 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14443 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'
14445 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'
14447 aix_use_runtimelinking
=no
14449 # Test if we are trying to use run time linking or normal
14450 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14451 # need to do runtime linking.
14452 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14453 for ld_flag
in $LDFLAGS; do
14454 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14455 aix_use_runtimelinking
=yes
14462 exp_sym_flag
='-bexport'
14463 no_entry_flag
='-bnoentry'
14466 # When large executables or shared objects are built, AIX ld can
14467 # have problems creating the table of contents. If linking a library
14468 # or program results in "error TOC overflow" add -mminimal-toc to
14469 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14470 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14473 hardcode_direct
=yes
14474 hardcode_libdir_separator
=':'
14475 link_all_deplibs
=yes
14477 if test "$GCC" = yes; then
14478 case $host_os in aix4.
[012]|aix4.
[012].
*)
14479 # We only want to do this on AIX 4.2 and lower, the check
14480 # below for broken collect2 doesn't work under 4.3+
14481 collect2name
=`${CC} -print-prog-name=collect2`
14482 if test -f "$collect2name" && \
14483 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14485 # We have reworked collect2
14486 hardcode_direct
=yes
14488 # We have old collect2
14489 hardcode_direct
=unsupported
14490 # It fails to find uninstalled libraries when the uninstalled
14491 # path is not listed in the libpath. Setting hardcode_minus_L
14492 # to unsupported forces relinking
14493 hardcode_minus_L
=yes
14494 hardcode_libdir_flag_spec
='-L$libdir'
14495 hardcode_libdir_separator
=
14499 shared_flag
='-shared'
14500 if test "$aix_use_runtimelinking" = yes; then
14501 shared_flag
="$shared_flag "'${wl}-G'
14505 if test "$host_cpu" = ia64
; then
14506 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14507 # chokes on -Wl,-G. The following line is correct:
14510 if test "$aix_use_runtimelinking" = yes; then
14511 shared_flag
='${wl}-G'
14513 shared_flag
='${wl}-bM:SRE'
14518 # It seems that -bexpall does not export symbols beginning with
14519 # underscore (_), so it is better to generate a list of symbols to export.
14520 always_export_symbols
=yes
14521 if test "$aix_use_runtimelinking" = yes; then
14522 # Warning - without using the other runtime loading flags (-brtl),
14523 # -berok will link without error, but may produce a broken library.
14524 allow_undefined_flag
='-berok'
14525 # Determine the default libpath from the value encoded in an empty executable.
14526 cat >conftest.
$ac_ext <<_ACEOF
14529 cat confdefs.h
>>conftest.
$ac_ext
14530 cat >>conftest.
$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14541 rm -f conftest.
$ac_objext conftest
$ac_exeext
14542 if { (ac_try
="$ac_link"
14543 case "(($ac_try" in
14544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_link") 2>conftest.er1
14550 grep -v '^ *+' conftest.er1 >conftest.err
14552 cat conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } && {
14555 test -z "$ac_c_werror_flag" ||
14556 test ! -s conftest.err
14557 } && test -s conftest$ac_exeext &&
14558 $as_test_x conftest$ac_exeext; then
14560 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14562 # Check for a 64-bit object if we didn't find anything.
14563 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; }
14566 echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14573 conftest$ac_exeext conftest.$ac_ext
14574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14576 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14577 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"
14579 if test "$host_cpu" = ia64; then
14580 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14581 allow_undefined_flag="-z nodefs"
14582 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"
14584 # Determine the default libpath from the value encoded in an empty executable.
14585 cat >conftest.$ac_ext <<_ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14600 rm -f conftest.$ac_objext conftest$ac_exeext
14601 if { (ac_try="$ac_link"
14602 case "(($ac_try" in
14603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14604 *) ac_try_echo
=$ac_try;;
14606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14607 (eval "$ac_link") 2>conftest.er1
14609 grep -v '^ *+' conftest.er1
>conftest.err
14611 cat conftest.err
>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } && {
14614 test -z "$ac_c_werror_flag" ||
14615 test ! -s conftest.err
14616 } && test -s conftest
$ac_exeext &&
14617 $as_test_x conftest
$ac_exeext; then
14619 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14621 # Check for a 64-bit object if we didn't find anything.
14622 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; }
14625 echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.
$ac_ext >&5
14631 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14632 conftest
$ac_exeext conftest.
$ac_ext
14633 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14635 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
14636 # Warning - without using the other run time loading flags,
14637 # -berok will link without error, but may produce a broken library.
14638 no_undefined_flag
=' ${wl}-bernotok'
14639 allow_undefined_flag
=' ${wl}-berok'
14640 # Exported symbols can be pulled into shared objects from archives
14641 whole_archive_flag_spec
='$convenience'
14642 archive_cmds_need_lc
=yes
14643 # This is similar to how AIX traditionally builds its shared libraries.
14644 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'
14650 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)'
14651 hardcode_libdir_flag_spec
='-L$libdir'
14652 hardcode_minus_L
=yes
14653 # see comment about different semantics on the GNU ld section
14658 export_dynamic_flag_spec
=-rdynamic
14661 cygwin
* | mingw
* | pw32
*)
14662 # When not using gcc, we currently assume that we are using
14663 # Microsoft Visual C++.
14664 # hardcode_libdir_flag_spec is actually meaningless, as there is
14665 # no search path for DLLs.
14666 hardcode_libdir_flag_spec
=' '
14667 allow_undefined_flag
=unsupported
14668 # Tell ltmain to make .lib files, not .a files.
14670 # Tell ltmain to make .dll files, not .so files.
14672 # FIXME: Setting linknames here is a bad hack.
14673 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14674 # The linker will automatically build a .lib file if we build a DLL.
14675 old_archive_From_new_cmds
='true'
14676 # FIXME: Should let the user specify the lib program.
14677 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14678 fix_srcfile_path
='`cygpath -w "$srcfile"`'
14679 enable_shared_with_static_runtimes
=yes
14682 darwin
* | rhapsody
*)
14684 rhapsody
* | darwin1.
[012])
14685 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
14688 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14689 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14691 case ${MACOSX_DEPLOYMENT_TARGET} in
14693 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14696 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
14702 archive_cmds_need_lc
=no
14704 hardcode_automatic
=yes
14705 hardcode_shlibpath_var
=unsupported
14706 whole_archive_flag_spec
=''
14707 link_all_deplibs
=yes
14708 if test "$GCC" = yes ; then
14709 output_verbose_link_cmd
='echo'
14710 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14711 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14712 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14713 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}'
14714 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}'
14716 case $cc_basename in
14718 output_verbose_link_cmd
='echo'
14719 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14720 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14721 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14722 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}'
14723 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}'
14733 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14734 hardcode_libdir_flag_spec
='-L$libdir'
14735 hardcode_shlibpath_var
=no
14742 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14743 # support. Future versions do this automatically, but an explicit c++rt0.o
14744 # does not break anything, and helps significantly (at the cost of a little
14747 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14748 hardcode_libdir_flag_spec
='-R$libdir'
14749 hardcode_direct
=yes
14750 hardcode_shlibpath_var
=no
14753 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14755 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14756 hardcode_direct
=yes
14757 hardcode_minus_L
=yes
14758 hardcode_shlibpath_var
=no
14761 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14762 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
14763 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14764 hardcode_libdir_flag_spec
='-R$libdir'
14765 hardcode_direct
=yes
14766 hardcode_shlibpath_var
=no
14770 if test "$GCC" = yes; then
14771 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'
14773 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'
14775 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
14776 hardcode_libdir_separator
=:
14777 hardcode_direct
=yes
14779 # hardcode_minus_L: Not really in the search PATH,
14780 # but as the default location of the library.
14781 hardcode_minus_L
=yes
14782 export_dynamic_flag_spec
='${wl}-E'
14786 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14787 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14789 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14791 if test "$with_gnu_ld" = no
; then
14792 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
14793 hardcode_libdir_separator
=:
14795 hardcode_direct
=yes
14796 export_dynamic_flag_spec
='${wl}-E'
14798 # hardcode_minus_L: Not really in the search PATH,
14799 # but as the default location of the library.
14800 hardcode_minus_L
=yes
14805 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14808 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14811 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14814 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14820 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14823 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14826 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14830 if test "$with_gnu_ld" = no
; then
14831 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
14832 hardcode_libdir_separator
=:
14836 hardcode_libdir_flag_spec_ld
='+b $libdir'
14838 hardcode_shlibpath_var
=no
14841 hardcode_direct
=yes
14842 export_dynamic_flag_spec
='${wl}-E'
14844 # hardcode_minus_L: Not really in the search PATH,
14845 # but as the default location of the library.
14846 hardcode_minus_L
=yes
14852 irix5
* | irix6
* | nonstopux
*)
14853 if test "$GCC" = yes; then
14854 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'
14856 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'
14857 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
14859 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
14860 hardcode_libdir_separator
=:
14861 link_all_deplibs
=yes
14865 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14866 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14868 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14870 hardcode_libdir_flag_spec
='-R$libdir'
14871 hardcode_direct
=yes
14872 hardcode_shlibpath_var
=no
14876 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14877 hardcode_direct
=yes
14878 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
14879 hardcode_libdir_separator
=:
14880 hardcode_shlibpath_var
=no
14884 hardcode_direct
=yes
14885 hardcode_shlibpath_var
=no
14886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14887 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14888 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14889 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
14890 export_dynamic_flag_spec
='${wl}-E'
14893 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14894 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14895 hardcode_libdir_flag_spec
='-R$libdir'
14898 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14899 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
14906 hardcode_libdir_flag_spec
='-L$libdir'
14907 hardcode_minus_L
=yes
14908 allow_undefined_flag
=unsupported
14909 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'
14910 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14914 if test "$GCC" = yes; then
14915 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
14916 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'
14918 allow_undefined_flag
=' -expect_unresolved \*'
14919 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'
14921 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
14922 hardcode_libdir_separator
=:
14925 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14926 if test "$GCC" = yes; then
14927 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
14928 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'
14929 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
14931 allow_undefined_flag
=' -expect_unresolved \*'
14932 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'
14933 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14934 $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'
14936 # Both c and cxx compiler support -rpath directly
14937 hardcode_libdir_flag_spec
='-rpath $libdir'
14939 hardcode_libdir_separator
=:
14943 no_undefined_flag
=' -z text'
14944 if test "$GCC" = yes; then
14946 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14947 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14948 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14951 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14952 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14953 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14955 hardcode_libdir_flag_spec
='-R$libdir'
14956 hardcode_shlibpath_var
=no
14958 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14960 # The compiler driver will combine linker options so we
14961 # cannot just pass the convience library names through
14962 # without $wl, iff we do not link with $LD.
14963 # Luckily, gcc supports the same syntax we need for Sun Studio.
14964 # Supported since Solaris 2.6 (maybe 2.5.1?)
14967 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
14969 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' ;;
14972 link_all_deplibs
=yes
14976 if test "x$host_vendor" = xsequent
; then
14977 # Use $CC to link under sequent, because it throws in some extra .o
14978 # files that make .init and .fini sections work.
14979 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14981 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14983 hardcode_libdir_flag_spec
='-L$libdir'
14984 hardcode_direct
=yes
14985 hardcode_minus_L
=yes
14986 hardcode_shlibpath_var
=no
14990 case $host_vendor in
14992 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14993 hardcode_direct
=yes # is this really true???
14996 ## LD is ld it makes a PLAMLIB
14997 ## CC just makes a GrossModule.
14998 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14999 reload_cmds
='$CC -r -o $output$reload_objs'
15003 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15004 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
15007 runpath_var
='LD_RUN_PATH'
15008 hardcode_shlibpath_var
=no
15012 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_shlibpath_var
=no
15014 export_dynamic_flag_spec
='-Bexport'
15018 if test -d /usr
/nec
; then
15019 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15020 hardcode_shlibpath_var
=no
15021 runpath_var
=LD_RUN_PATH
15022 hardcode_runpath_var
=yes
15027 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
15028 no_undefined_flag
='${wl}-z,text'
15029 archive_cmds_need_lc
=no
15030 hardcode_shlibpath_var
=no
15031 runpath_var
='LD_RUN_PATH'
15033 if test "$GCC" = yes; then
15034 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15035 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15037 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15038 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15042 sysv5
* | sco3.2v5
* | sco5v6
*)
15043 # Note: We can NOT use -z defs as we might desire, because we do not
15044 # link with -lc, and that would cause any symbols used from libc to
15045 # always be unresolved, which means just about no library would
15046 # ever link correctly. If we're not using GNU ld we use -z text
15047 # though, which does catch some bad symbols but isn't as heavy-handed
15049 no_undefined_flag
='${wl}-z,text'
15050 allow_undefined_flag
='${wl}-z,nodefs'
15051 archive_cmds_need_lc
=no
15052 hardcode_shlibpath_var
=no
15053 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15054 hardcode_libdir_separator
=':'
15055 link_all_deplibs
=yes
15056 export_dynamic_flag_spec
='${wl}-Bexport'
15057 runpath_var
='LD_RUN_PATH'
15059 if test "$GCC" = yes; then
15060 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15061 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15063 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15064 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15069 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15070 hardcode_libdir_flag_spec
='-L$libdir'
15071 hardcode_shlibpath_var
=no
15080 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15081 echo "${ECHO_T}$ld_shlibs" >&6; }
15082 test "$ld_shlibs" = no
&& can_build_shared
=no
15085 # Do we need to explicitly link libc?
15087 case "x$archive_cmds_need_lc" in
15089 # Assume -lc should be added
15090 archive_cmds_need_lc
=yes
15092 if test "$enable_shared" = yes && test "$GCC" = yes; then
15093 case $archive_cmds in
15095 # FIXME: we may have to deal with multi-command sequences.
15098 # Test whether the compiler implicitly links with -lc since on some
15099 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15100 # to ld, don't add -lc before -lgcc.
15101 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15102 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15104 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107 (eval $ac_compile) 2>&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); } 2>conftest.err
; then
15113 libobjs
=conftest.
$ac_objext
15115 wl
=$lt_prog_compiler_wl
15116 pic_flag
=$lt_prog_compiler_pic
15122 lt_save_allow_undefined_flag
=$allow_undefined_flag
15123 allow_undefined_flag
=
15124 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15125 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }
15130 archive_cmds_need_lc
=no
15132 archive_cmds_need_lc
=yes
15134 allow_undefined_flag
=$lt_save_allow_undefined_flag
15136 cat conftest.err
1>&5
15139 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15140 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15147 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15148 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15149 library_names_spec
=
15150 libname_spec
='lib$name'
15154 postuninstall_cmds
=
15158 shlibpath_overrides_runpath
=unknown
15160 dynamic_linker
="$host_os ld.so"
15161 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15162 if test "$GCC" = yes; then
15163 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15164 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
15165 # if the path contains ";" then we assume it to be the separator
15166 # otherwise default to the standard path separator (i.e. ":") - it is
15167 # assumed that no part of a normal pathname contains ";" but that should
15168 # okay in the real world where ";" in dirpaths is itself problematic.
15169 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15171 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15174 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
15176 need_lib_prefix
=unknown
15177 hardcode_into_libs
=no
15179 # when you set need_version to no, make sure it does not cause -set_version
15180 # flags to be left without arguments
15181 need_version
=unknown
15186 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15187 shlibpath_var
=LIBPATH
15189 # AIX 3 has no versioning support, so we append a major version to the name.
15190 soname_spec
='${libname}${release}${shared_ext}$major'
15197 hardcode_into_libs
=yes
15198 if test "$host_cpu" = ia64
; then
15199 # AIX 5 supports IA64
15200 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15201 shlibpath_var
=LD_LIBRARY_PATH
15203 # With GCC up to 2.95.x, collect2 would create an import file
15204 # for dependence libraries. The import file would start with
15205 # the line `#! .'. This would cause the generated library to
15206 # depend on `.', always an invalid library. This was fixed in
15207 # development snapshots of GCC prior to 3.0.
15209 aix4 | aix4.
[01] | aix4.
[01].
*)
15210 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15212 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15215 can_build_shared
=no
15219 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15220 # soname into executable. Probably we can add versioning support to
15221 # collect2, so additional links can be useful in future.
15222 if test "$aix_use_runtimelinking" = yes; then
15223 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15224 # instead of lib<name>.a to let people know that these are not
15225 # typical AIX shared libraries.
15226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228 # We preserve .a as extension for shared libraries through AIX4.2
15229 # and later when we are not doing run time linking.
15230 library_names_spec
='${libname}${release}.a $libname.a'
15231 soname_spec
='${libname}${release}${shared_ext}$major'
15233 shlibpath_var
=LIBPATH
15238 library_names_spec
='$libname.ixlibrary $libname.a'
15239 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15240 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'
15244 library_names_spec
='${libname}${shared_ext}'
15245 dynamic_linker
="$host_os ld.so"
15246 shlibpath_var
=LIBRARY_PATH
15252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253 soname_spec
='${libname}${release}${shared_ext}$major'
15254 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15255 shlibpath_var
=LD_LIBRARY_PATH
15256 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15257 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15258 # the default ld.so.conf also contains /usr/contrib/lib and
15259 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15260 # libtool to hard-code these into programs
15263 cygwin
* | mingw
* | pw32
*)
15264 version_type
=windows
15269 case $GCC,$host_os in
15270 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15271 library_names_spec
='$libname.dll.a'
15272 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15273 postinstall_cmds
='base_file=`basename \${file}`~
15274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15275 dldir=$destdir/`dirname \$dlpath`~
15276 test -d \$dldir || mkdir -p \$dldir~
15277 $install_prog $dir/$dlname \$dldir/$dlname~
15278 chmod a+x \$dldir/$dlname'
15279 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15280 dlpath=$dir/\$dldll~
15282 shlibpath_overrides_runpath
=yes
15286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15287 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15288 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15291 # MinGW DLLs use traditional 'lib' prefix
15292 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15293 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15294 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15295 # It is most probably a Windows format PATH printed by
15296 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15297 # path with ; separators, and with drive letters. We can handle the
15298 # drive letters (cygwin fileutils understands them), so leave them,
15299 # especially as we might pass files found there to a mingw objdump,
15300 # which wouldn't understand a cygwinified path. Ahh.
15301 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15303 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15307 # pw32 DLLs use 'pw' prefix rather than 'lib'
15308 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15314 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15317 dynamic_linker
='Win32 ld.exe'
15318 # FIXME: first we should search . and the directory the executable is in
15322 darwin
* | rhapsody
*)
15323 dynamic_linker
="$host_os dyld"
15324 version_type
=darwin
15327 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15328 soname_spec
='${libname}${release}${major}$shared_ext'
15329 shlibpath_overrides_runpath
=yes
15330 shlibpath_var
=DYLD_LIBRARY_PATH
15331 shrext_cmds
='.dylib'
15332 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15333 if test "$GCC" = yes; then
15334 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"`
15336 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
15338 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15345 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15346 soname_spec
='${libname}${release}${shared_ext}$major'
15347 shlibpath_var
=LD_LIBRARY_PATH
15358 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15359 soname_spec
='${libname}${release}${shared_ext}$major'
15360 shlibpath_var
=LD_LIBRARY_PATH
15361 shlibpath_overrides_runpath
=no
15362 hardcode_into_libs
=yes
15363 dynamic_linker
='GNU ld.so'
15366 freebsd
* | dragonfly
*)
15367 # DragonFly does not have aout. When/if they implement a new
15368 # versioning mechanism, adjust this.
15369 if test -x /usr
/bin
/objformat
; then
15370 objformat
=`/usr/bin/objformat`
15373 freebsd
[123]*) objformat
=aout
;;
15374 *) objformat
=elf
;;
15377 version_type
=freebsd-
$objformat
15378 case $version_type in
15380 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15385 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15389 shlibpath_var
=LD_LIBRARY_PATH
15392 shlibpath_overrides_runpath
=yes
15394 freebsd3.
[01]* | freebsdelf3.
[01]*)
15395 shlibpath_overrides_runpath
=yes
15396 hardcode_into_libs
=yes
15398 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15399 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15400 shlibpath_overrides_runpath
=no
15401 hardcode_into_libs
=yes
15403 freebsd
*) # from 4.6 on
15404 shlibpath_overrides_runpath
=yes
15405 hardcode_into_libs
=yes
15414 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15415 soname_spec
='${libname}${release}${shared_ext}$major'
15416 shlibpath_var
=LD_LIBRARY_PATH
15417 hardcode_into_libs
=yes
15420 hpux9
* | hpux10
* | hpux11
*)
15421 # Give a soname corresponding to the major version so that dld.sl refuses to
15422 # link against other versions.
15429 hardcode_into_libs
=yes
15430 dynamic_linker
="$host_os dld.so"
15431 shlibpath_var
=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15433 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 soname_spec
='${libname}${release}${shared_ext}$major'
15435 if test "X$HPUX_IA64_MODE" = X32
; then
15436 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15438 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15440 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15444 hardcode_into_libs
=yes
15445 dynamic_linker
="$host_os dld.sl"
15446 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15447 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15448 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 soname_spec
='${libname}${release}${shared_ext}$major'
15450 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15451 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15455 dynamic_linker
="$host_os dld.sl"
15456 shlibpath_var
=SHLIB_PATH
15457 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15458 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec
='${libname}${release}${shared_ext}$major'
15462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15463 postinstall_cmds
='chmod 555 $lib'
15470 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15471 soname_spec
='${libname}${release}${shared_ext}$major'
15472 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15473 shlibpath_var
=LD_LIBRARY_PATH
15474 shlibpath_overrides_runpath
=no
15475 hardcode_into_libs
=yes
15478 irix5
* | irix6
* | nonstopux
*)
15480 nonstopux
*) version_type
=nonstopux
;;
15482 if test "$lt_cv_prog_gnu_ld" = yes; then
15490 soname_spec
='${libname}${release}${shared_ext}$major'
15491 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15493 irix5
* | nonstopux
*)
15494 libsuff
= shlibsuff
=
15497 case $LD in # libtool.m4 will add one of these switches to LD
15498 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15499 libsuff
= shlibsuff
= libmagic
=32-bit;;
15500 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15501 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15502 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15503 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15504 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15508 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15509 shlibpath_overrides_runpath
=no
15510 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15511 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15512 hardcode_into_libs
=yes
15515 # No shared lib support for Linux oldld, aout, or coff.
15516 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15520 # This must be Linux ELF.
15525 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526 soname_spec
='${libname}${release}${shared_ext}$major'
15527 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15528 shlibpath_var
=LD_LIBRARY_PATH
15529 shlibpath_overrides_runpath
=no
15530 # This implies no fast_install, which is unacceptable.
15531 # Some rework will be needed to allow for fast_install
15532 # before this can be enabled.
15533 hardcode_into_libs
=yes
15535 # Append ld.so.conf contents to the search path
15536 if test -f /etc
/ld.so.conf
; then
15537 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' ' '`
15538 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
15541 # We used to test for /lib/ld.so.1 and disable shared libraries on
15542 # powerpc, because MkLinux only supported shared libraries with the
15543 # GNU dynamic linker. Since this was broken with cross compilers,
15544 # most powerpc-linux boxes support dynamic linking these days and
15545 # people can always --disable-shared, the test was removed, and we
15546 # assume the GNU/Linux dynamic linker is in use.
15547 dynamic_linker
='GNU/Linux ld.so'
15554 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15555 soname_spec
='${libname}${release}${shared_ext}$major'
15556 shlibpath_var
=LD_LIBRARY_PATH
15557 shlibpath_overrides_runpath
=no
15558 hardcode_into_libs
=yes
15559 dynamic_linker
='GNU ld.so'
15566 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15568 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15569 dynamic_linker
='NetBSD (a.out) ld.so'
15571 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15572 soname_spec
='${libname}${release}${shared_ext}$major'
15573 dynamic_linker
='NetBSD ld.elf_so'
15575 shlibpath_var
=LD_LIBRARY_PATH
15576 shlibpath_overrides_runpath
=yes
15577 hardcode_into_libs
=yes
15582 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583 shlibpath_var
=LD_LIBRARY_PATH
15584 shlibpath_overrides_runpath
=yes
15591 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15592 soname_spec
='${libname}${release}${shared_ext}$major'
15593 shlibpath_var
=LD_LIBRARY_PATH
15594 shlibpath_overrides_runpath
=yes
15599 sys_lib_dlsearch_path_spec
="/usr/lib"
15601 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15603 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15604 *) need_version
=no
;;
15606 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15607 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15608 shlibpath_var
=LD_LIBRARY_PATH
15609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15611 openbsd2.
[89] | openbsd2.
[89].
*)
15612 shlibpath_overrides_runpath
=no
15615 shlibpath_overrides_runpath
=yes
15619 shlibpath_overrides_runpath
=yes
15624 libname_spec
='$name'
15627 library_names_spec
='$libname${shared_ext} $libname.a'
15628 dynamic_linker
='OS/2 ld.exe'
15629 shlibpath_var
=LIBPATH
15632 osf3
* | osf4
* | osf5
*)
15636 soname_spec
='${libname}${release}${shared_ext}$major'
15637 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15638 shlibpath_var
=LD_LIBRARY_PATH
15639 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15640 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15647 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648 soname_spec
='${libname}${release}${shared_ext}$major'
15649 shlibpath_var
=LD_LIBRARY_PATH
15650 shlibpath_overrides_runpath
=yes
15651 hardcode_into_libs
=yes
15652 # ldd complains unless libraries are executable
15653 postinstall_cmds
='chmod +x $lib'
15658 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15659 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15660 shlibpath_var
=LD_LIBRARY_PATH
15661 shlibpath_overrides_runpath
=yes
15662 if test "$with_gnu_ld" = yes; then
15670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671 soname_spec
='${libname}${release}${shared_ext}$major'
15672 shlibpath_var
=LD_LIBRARY_PATH
15673 case $host_vendor in
15675 shlibpath_overrides_runpath
=no
15677 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15678 runpath_var
=LD_RUN_PATH
15686 shlibpath_overrides_runpath
=no
15687 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15693 if test -d /usr
/nec
;then
15695 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15696 soname_spec
='$libname${shared_ext}.$major'
15697 shlibpath_var
=LD_LIBRARY_PATH
15701 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15702 version_type
=freebsd-elf
15705 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15706 soname_spec
='${libname}${release}${shared_ext}$major'
15707 shlibpath_var
=LD_LIBRARY_PATH
15708 hardcode_into_libs
=yes
15709 if test "$with_gnu_ld" = yes; then
15710 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15711 shlibpath_overrides_runpath
=no
15713 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15714 shlibpath_overrides_runpath
=yes
15717 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15721 sys_lib_dlsearch_path_spec
='/usr/lib'
15726 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727 soname_spec
='${libname}${release}${shared_ext}$major'
15728 shlibpath_var
=LD_LIBRARY_PATH
15735 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15736 echo "${ECHO_T}$dynamic_linker" >&6; }
15737 test "$dynamic_linker" = no
&& can_build_shared
=no
15739 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15740 if test "$GCC" = yes; then
15741 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15744 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15745 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15747 if test -n "$hardcode_libdir_flag_spec" || \
15748 test -n "$runpath_var" || \
15749 test "X$hardcode_automatic" = "Xyes" ; then
15751 # We can hardcode non-existant directories.
15752 if test "$hardcode_direct" != no
&&
15753 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15754 # have to relink, otherwise we might link with an installed library
15755 # when we should be linking with a yet-to-be-installed one
15756 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15757 test "$hardcode_minus_L" != no
; then
15758 # Linking always hardcodes the temporary library directory.
15759 hardcode_action
=relink
15761 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15762 hardcode_action
=immediate
15765 # We cannot hardcode anything, or else we can only hardcode existing
15767 hardcode_action
=unsupported
15769 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
15770 echo "${ECHO_T}$hardcode_action" >&6; }
15772 if test "$hardcode_action" = relink
; then
15773 # Fast installation is not supported
15774 enable_fast_install
=no
15775 elif test "$shlibpath_overrides_runpath" = yes ||
15776 test "$enable_shared" = no
; then
15777 # Fast installation is not necessary
15778 enable_fast_install
=needless
15783 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15784 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15785 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
15786 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
15787 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
15788 { echo "$as_me:$LINENO: result: yes" >&5
15789 echo "${ECHO_T}yes" >&6; }
15791 # FIXME - insert some real tests, host_os isn't really good enough
15794 if test -n "$STRIP" ; then
15795 striplib
="$STRIP -x"
15796 { echo "$as_me:$LINENO: result: yes" >&5
15797 echo "${ECHO_T}yes" >&6; }
15799 { echo "$as_me:$LINENO: result: no" >&5
15800 echo "${ECHO_T}no" >&6; }
15804 { echo "$as_me:$LINENO: result: no" >&5
15805 echo "${ECHO_T}no" >&6; }
15810 if test "x$enable_dlopen" != xyes
; then
15811 enable_dlopen
=unknown
15812 enable_dlopen_self
=unknown
15813 enable_dlopen_self_static
=unknown
15820 lt_cv_dlopen
="load_add_on"
15822 lt_cv_dlopen_self
=yes
15826 lt_cv_dlopen
="LoadLibrary"
15831 lt_cv_dlopen
="dlopen"
15836 # if libdl is installed we need to link against it
15837 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15838 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15839 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 ac_check_lib_save_LIBS
=$LIBS
15844 cat >conftest.
$ac_ext <<_ACEOF
15847 cat confdefs.h
>>conftest.
$ac_ext
15848 cat >>conftest.
$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15851 /* Override any GCC internal prototype to avoid an error.
15852 Use char because int might match the return type of a GCC
15853 builtin and then its argument prototype would still apply. */
15866 rm -f conftest.
$ac_objext conftest
$ac_exeext
15867 if { (ac_try
="$ac_link"
15868 case "(($ac_try" in
15869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_link") 2>conftest.er1
15875 grep -v '^ *+' conftest.er1 >conftest.err
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } && {
15880 test -z "$ac_c_werror_flag" ||
15881 test ! -s conftest.err
15882 } && test -s conftest$ac_exeext &&
15883 $as_test_x conftest$ac_exeext; then
15884 ac_cv_lib_dl_dlopen=yes
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 ac_cv_lib_dl_dlopen=no
15892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15893 conftest$ac_exeext conftest.$ac_ext
15894 LIBS=$ac_check_lib_save_LIBS
15896 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15897 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15898 if test $ac_cv_lib_dl_dlopen = yes; then
15899 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15902 lt_cv_dlopen="dyld"
15904 lt_cv_dlopen_self=yes
15911 { echo "$as_me:$LINENO: checking for shl_load" >&5
15912 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15913 if test "${ac_cv_func_shl_load+set}" = set; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 cat >conftest.$ac_ext <<_ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15924 #define shl_load innocuous_shl_load
15926 /* System header to define __stub macros and hopefully few prototypes,
15927 which can conflict with char shl_load (); below.
15928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15929 <limits.h> exists even on freestanding compilers. */
15932 # include <limits.h>
15934 # include <assert.h>
15939 /* Override any GCC internal prototype to avoid an error.
15940 Use char because int might match the return type of a GCC
15941 builtin and then its argument prototype would still apply. */
15946 /* The GNU C library defines this for functions which it implements
15947 to always fail with ENOSYS. Some functions are actually named
15948 something starting with __ and the normal name is an alias. */
15949 #if defined __stub_shl_load || defined __stub___shl_load
15956 return shl_load ();
15961 rm -f conftest.$ac_objext conftest$ac_exeext
15962 if { (ac_try="$ac_link"
15963 case "(($ac_try" in
15964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15965 *) ac_try_echo
=$ac_try;;
15967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_link") 2>conftest.er1
15970 grep -v '^ *+' conftest.er1
>conftest.err
15972 cat conftest.err
>&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } && {
15975 test -z "$ac_c_werror_flag" ||
15976 test ! -s conftest.err
15977 } && test -s conftest
$ac_exeext &&
15978 $as_test_x conftest
$ac_exeext; then
15979 ac_cv_func_shl_load
=yes
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.
$ac_ext >&5
15984 ac_cv_func_shl_load
=no
15987 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15988 conftest
$ac_exeext conftest.
$ac_ext
15990 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15991 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15992 if test $ac_cv_func_shl_load = yes; then
15993 lt_cv_dlopen
="shl_load"
15995 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15996 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15997 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15998 echo $ECHO_N "(cached) $ECHO_C" >&6
16000 ac_check_lib_save_LIBS
=$LIBS
16002 cat >conftest.
$ac_ext <<_ACEOF
16005 cat confdefs.h
>>conftest.
$ac_ext
16006 cat >>conftest.
$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16009 /* Override any GCC internal prototype to avoid an error.
16010 Use char because int might match the return type of a GCC
16011 builtin and then its argument prototype would still apply. */
16019 return shl_load ();
16024 rm -f conftest.
$ac_objext conftest
$ac_exeext
16025 if { (ac_try
="$ac_link"
16026 case "(($ac_try" in
16027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_link") 2>conftest.er1
16033 grep -v '^ *+' conftest.er1 >conftest.err
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } && {
16038 test -z "$ac_c_werror_flag" ||
16039 test ! -s conftest.err
16040 } && test -s conftest$ac_exeext &&
16041 $as_test_x conftest$ac_exeext; then
16042 ac_cv_lib_dld_shl_load=yes
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 ac_cv_lib_dld_shl_load=no
16050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16051 conftest$ac_exeext conftest.$ac_ext
16052 LIBS=$ac_check_lib_save_LIBS
16054 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16055 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16056 if test $ac_cv_lib_dld_shl_load = yes; then
16057 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16059 { echo "$as_me:$LINENO: checking for dlopen" >&5
16060 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16061 if test "${ac_cv_func_dlopen+set}" = set; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16064 cat >conftest.$ac_ext <<_ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16070 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16072 #define dlopen innocuous_dlopen
16074 /* System header to define __stub macros and hopefully few prototypes,
16075 which can conflict with char dlopen (); below.
16076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16077 <limits.h> exists even on freestanding compilers. */
16080 # include <limits.h>
16082 # include <assert.h>
16087 /* Override any GCC internal prototype to avoid an error.
16088 Use char because int might match the return type of a GCC
16089 builtin and then its argument prototype would still apply. */
16094 /* The GNU C library defines this for functions which it implements
16095 to always fail with ENOSYS. Some functions are actually named
16096 something starting with __ and the normal name is an alias. */
16097 #if defined __stub_dlopen || defined __stub___dlopen
16109 rm -f conftest.$ac_objext conftest$ac_exeext
16110 if { (ac_try="$ac_link"
16111 case "(($ac_try" in
16112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16113 *) ac_try_echo
=$ac_try;;
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_link") 2>conftest.er1
16118 grep -v '^ *+' conftest.er1
>conftest.err
16120 cat conftest.err
>&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } && {
16123 test -z "$ac_c_werror_flag" ||
16124 test ! -s conftest.err
16125 } && test -s conftest
$ac_exeext &&
16126 $as_test_x conftest
$ac_exeext; then
16127 ac_cv_func_dlopen
=yes
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.
$ac_ext >&5
16132 ac_cv_func_dlopen
=no
16135 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16136 conftest
$ac_exeext conftest.
$ac_ext
16138 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16139 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16140 if test $ac_cv_func_dlopen = yes; then
16141 lt_cv_dlopen
="dlopen"
16143 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16144 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 ac_check_lib_save_LIBS
=$LIBS
16150 cat >conftest.
$ac_ext <<_ACEOF
16153 cat confdefs.h
>>conftest.
$ac_ext
16154 cat >>conftest.
$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16157 /* Override any GCC internal prototype to avoid an error.
16158 Use char because int might match the return type of a GCC
16159 builtin and then its argument prototype would still apply. */
16172 rm -f conftest.
$ac_objext conftest
$ac_exeext
16173 if { (ac_try
="$ac_link"
16174 case "(($ac_try" in
16175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_link") 2>conftest.er1
16181 grep -v '^ *+' conftest.er1 >conftest.err
16183 cat conftest.err >&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } && {
16186 test -z "$ac_c_werror_flag" ||
16187 test ! -s conftest.err
16188 } && test -s conftest$ac_exeext &&
16189 $as_test_x conftest$ac_exeext; then
16190 ac_cv_lib_dl_dlopen=yes
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16195 ac_cv_lib_dl_dlopen=no
16198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16199 conftest$ac_exeext conftest.$ac_ext
16200 LIBS=$ac_check_lib_save_LIBS
16202 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16203 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16204 if test $ac_cv_lib_dl_dlopen = yes; then
16205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16207 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16208 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16209 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16212 ac_check_lib_save_LIBS=$LIBS
16213 LIBS="-lsvld $LIBS"
16214 cat >conftest.$ac_ext <<_ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16221 /* Override any GCC internal prototype to avoid an error.
16222 Use char because int might match the return type of a GCC
16223 builtin and then its argument prototype would still apply. */
16236 rm -f conftest.$ac_objext conftest$ac_exeext
16237 if { (ac_try="$ac_link"
16238 case "(($ac_try" in
16239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16240 *) ac_try_echo
=$ac_try;;
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_link") 2>conftest.er1
16245 grep -v '^ *+' conftest.er1
>conftest.err
16247 cat conftest.err
>&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } && {
16250 test -z "$ac_c_werror_flag" ||
16251 test ! -s conftest.err
16252 } && test -s conftest
$ac_exeext &&
16253 $as_test_x conftest
$ac_exeext; then
16254 ac_cv_lib_svld_dlopen
=yes
16256 echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.
$ac_ext >&5
16259 ac_cv_lib_svld_dlopen
=no
16262 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16263 conftest
$ac_exeext conftest.
$ac_ext
16264 LIBS
=$ac_check_lib_save_LIBS
16266 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16267 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16268 if test $ac_cv_lib_svld_dlopen = yes; then
16269 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
16271 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16272 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16273 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16276 ac_check_lib_save_LIBS
=$LIBS
16278 cat >conftest.
$ac_ext <<_ACEOF
16281 cat confdefs.h
>>conftest.
$ac_ext
16282 cat >>conftest.
$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16285 /* Override any GCC internal prototype to avoid an error.
16286 Use char because int might match the return type of a GCC
16287 builtin and then its argument prototype would still apply. */
16295 return dld_link ();
16300 rm -f conftest.
$ac_objext conftest
$ac_exeext
16301 if { (ac_try
="$ac_link"
16302 case "(($ac_try" in
16303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307 (eval "$ac_link") 2>conftest.er1
16309 grep -v '^ *+' conftest.er1 >conftest.err
16311 cat conftest.err >&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } && {
16314 test -z "$ac_c_werror_flag" ||
16315 test ! -s conftest.err
16316 } && test -s conftest$ac_exeext &&
16317 $as_test_x conftest$ac_exeext; then
16318 ac_cv_lib_dld_dld_link=yes
16320 echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16323 ac_cv_lib_dld_dld_link=no
16326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16327 conftest$ac_exeext conftest.$ac_ext
16328 LIBS=$ac_check_lib_save_LIBS
16330 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16331 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16332 if test $ac_cv_lib_dld_dld_link = yes; then
16333 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16354 if test "x$lt_cv_dlopen" != xno; then
16360 case $lt_cv_dlopen in
16362 save_CPPFLAGS="$CPPFLAGS"
16363 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16365 save_LDFLAGS="$LDFLAGS"
16366 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16369 LIBS="$lt_cv_dlopen_libs $LIBS"
16371 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16372 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16373 if test "${lt_cv_dlopen_self+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 if test "$cross_compiling" = yes; then :
16377 lt_cv_dlopen_self=cross
16379 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16380 lt_status=$lt_dlunknown
16381 cat > conftest.$ac_ext <<EOF
16382 #line 16382 "configure"
16383 #include "confdefs.h"
16392 # define LT_DLGLOBAL RTLD_GLOBAL
16395 # define LT_DLGLOBAL DL_GLOBAL
16397 # define LT_DLGLOBAL 0
16401 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16402 find out it does not work in some platform. */
16403 #ifndef LT_DLLAZY_OR_NOW
16405 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16408 # define LT_DLLAZY_OR_NOW DL_LAZY
16411 # define LT_DLLAZY_OR_NOW RTLD_NOW
16414 # define LT_DLLAZY_OR_NOW DL_NOW
16416 # define LT_DLLAZY_OR_NOW 0
16424 extern "C" void exit (int);
16427 void fnord() { int i=42;}
16430 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16431 int status = $lt_dlunknown;
16435 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16436 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16437 /* dlclose (self); */
16445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16446 (eval $ac_link) 2>&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16450 (./conftest; exit; ) >&5 2>/dev/null
16452 case x$lt_status in
16453 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16454 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16455 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16458 # compilation failed
16459 lt_cv_dlopen_self=no
16466 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16467 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16469 if test "x$lt_cv_dlopen_self" = xyes; then
16470 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16471 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16472 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16473 if test "${lt_cv_dlopen_self_static+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 if test "$cross_compiling" = yes; then :
16477 lt_cv_dlopen_self_static=cross
16479 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16480 lt_status=$lt_dlunknown
16481 cat > conftest.$ac_ext <<EOF
16482 #line 16482 "configure"
16483 #include "confdefs.h"
16492 # define LT_DLGLOBAL RTLD_GLOBAL
16495 # define LT_DLGLOBAL DL_GLOBAL
16497 # define LT_DLGLOBAL 0
16501 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16502 find out it does not work in some platform. */
16503 #ifndef LT_DLLAZY_OR_NOW
16505 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16508 # define LT_DLLAZY_OR_NOW DL_LAZY
16511 # define LT_DLLAZY_OR_NOW RTLD_NOW
16514 # define LT_DLLAZY_OR_NOW DL_NOW
16516 # define LT_DLLAZY_OR_NOW 0
16524 extern "C" void exit (int);
16527 void fnord() { int i=42;}
16530 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16531 int status = $lt_dlunknown;
16535 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16536 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16537 /* dlclose (self); */
16545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16546 (eval $ac_link) 2>&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16550 (./conftest; exit; ) >&5 2>/dev/null
16552 case x$lt_status in
16553 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16554 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16555 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16558 # compilation failed
16559 lt_cv_dlopen_self_static=no
16566 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16567 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16570 CPPFLAGS="$save_CPPFLAGS"
16571 LDFLAGS="$save_LDFLAGS"
16576 case $lt_cv_dlopen_self in
16577 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16578 *) enable_dlopen_self=unknown ;;
16581 case $lt_cv_dlopen_self_static in
16582 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16583 *) enable_dlopen_self_static=unknown ;;
16588 # Report which library types will actually be built
16589 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16590 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16591 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16592 echo "${ECHO_T}$can_build_shared" >&6; }
16594 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16595 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16596 test "$can_build_shared" = "no" && enable_shared=no
16598 # On AIX, shared libraries and static libraries use the same namespace, and
16599 # are all built from PIC.
16602 test "$enable_shared" = yes && enable_static=no
16603 if test -n "$RANLIB"; then
16604 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16605 postinstall_cmds='$RANLIB $lib'
16610 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16611 test "$enable_shared" = yes && enable_static=no
16615 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16616 echo "${ECHO_T}$enable_shared" >&6; }
16618 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16619 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16620 # Make sure either enable_shared or enable_static is yes.
16621 test "$enable_shared" = yes || enable_static=yes
16622 { echo "$as_me:$LINENO: result: $enable_static" >&5
16623 echo "${ECHO_T}$enable_static" >&6; }
16625 # The else clause should only fire when bootstrapping the
16626 # libtool distribution, otherwise you forgot to ship ltmain.sh
16627 # with your package, and you will get complaints that there are
16628 # no rules to generate ltmain.sh.
16629 if test -f "$ltmain"; then
16630 # See if we are running on zsh, and set the options which allow our commands through
16631 # without removal of \ escapes.
16632 if test -n "${ZSH_VERSION+set}" ; then
16633 setopt NO_GLOB_SUBST
16635 # Now quote all the things that may contain metacharacters while being
16636 # careful not to overquote the AC_SUBSTed values. We take copies of the
16637 # variables and quote the copies for generation of the libtool script.
16638 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16640 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16641 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16642 deplibs_check_method reload_flag reload_cmds need_locks \
16643 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16644 lt_cv_sys_global_symbol_to_c_name_address \
16645 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16646 old_postinstall_cmds old_postuninstall_cmds \
16650 lt_prog_compiler_wl \
16651 lt_prog_compiler_pic \
16652 lt_prog_compiler_static \
16653 lt_prog_compiler_no_builtin_flag \
16654 export_dynamic_flag_spec \
16655 thread_safe_flag_spec \
16656 whole_archive_flag_spec \
16657 enable_shared_with_static_runtimes \
16659 old_archive_from_new_cmds \
16664 compiler_lib_search_path \
16666 archive_expsym_cmds \
16668 postuninstall_cmds \
16669 old_archive_from_expsyms_cmds \
16670 allow_undefined_flag \
16671 no_undefined_flag \
16672 export_symbols_cmds \
16673 hardcode_libdir_flag_spec \
16674 hardcode_libdir_flag_spec_ld \
16675 hardcode_libdir_separator \
16676 hardcode_automatic \
16678 module_expsym_cmds \
16679 lt_cv_prog_compiler_c_o \
16681 include_expsyms; do
16684 old_archive_cmds | \
16685 old_archive_from_new_cmds | \
16687 archive_expsym_cmds | \
16689 module_expsym_cmds | \
16690 old_archive_from_expsyms_cmds | \
16691 export_symbols_cmds | \
16692 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16693 postinstall_cmds | postuninstall_cmds | \
16694 old_postinstall_cmds | old_postuninstall_cmds | \
16695 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16696 # Double-quote double-evaled strings.
16697 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
16700 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
16706 *'\$0 --fallback-echo"')
16707 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16711 cfgfile="${ofile}T"
16712 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16714 { echo "$as_me:$LINENO: creating $ofile" >&5
16715 echo "$as_me: creating $ofile" >&6;}
16717 cat <<__EOF__ >> "$cfgfile"
16720 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
16721 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16722 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16724 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16725 # Free Software Foundation, Inc.
16727 # This file is part of GNU Libtool:
16728 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16730 # This program is free software; you can redistribute it and/or modify
16731 # it under the terms of the GNU General Public License as published by
16732 # the Free Software Foundation; either version 2 of the License, or
16733 # (at your option) any later version.
16735 # This program is distributed in the hope that it will be useful, but
16736 # WITHOUT ANY WARRANTY; without even the implied warranty of
16737 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16738 # General Public License for more details.
16740 # You should have received a copy of the GNU General Public License
16741 # along with this program; if not, write to the Free Software
16742 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16744 # As a special exception to the GNU General Public License, if you
16745 # distribute this file as part of a program that contains a
16746 # configuration script generated by Autoconf, you may include it under
16747 # the same distribution terms that you use for the rest of that program.
16749 # A sed program that does not truncate output.
16752 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16753 Xsed="$SED -e 1s/^X//"
16755 # The HP-UX ksh and POSIX shell print the target directory to stdout
16756 # if CDPATH is set.
16757 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16759 # The names of the tagged configurations supported by this script.
16762 # ### BEGIN LIBTOOL CONFIG
16764 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
16766 # Shell to use when invoking shell scripts.
16769 # Whether or not to build shared libraries.
16770 build_libtool_libs=$enable_shared
16772 # Whether or not to build static libraries.
16773 build_old_libs=$enable_static
16775 # Whether or not to add -lc for building shared libraries.
16776 build_libtool_need_lc=$archive_cmds_need_lc
16778 # Whether or not to disallow shared libs when runtime libs are static
16779 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16781 # Whether or not to optimize for fast installation.
16782 fast_install=$enable_fast_install
16785 host_alias=$host_alias
16789 # The build system.
16790 build_alias=$build_alias
16794 # An echo program that does not interpret backslashes.
16799 AR_FLAGS=$lt_AR_FLAGS
16804 # LTCC compiler flags.
16805 LTCFLAGS=$lt_LTCFLAGS
16807 # A language-specific compiler.
16810 # Is the compiler the GNU C compiler?
16816 # The linker used to build libraries.
16819 # Whether we need hard or soft links.
16822 # A BSD-compatible nm program.
16825 # A symbol stripping program
16828 # Used to examine libraries when file_magic_cmd begins "file"
16829 MAGIC_CMD=$MAGIC_CMD
16831 # Used on cygwin: DLL creation program.
16834 # Used on cygwin: object dumper.
16837 # Used on cygwin: assembler.
16840 # The name of the directory that contains temporary libtool files.
16843 # How to create reloadable object files.
16844 reload_flag=$lt_reload_flag
16845 reload_cmds=$lt_reload_cmds
16847 # How to pass a linker flag through the compiler.
16848 wl=$lt_lt_prog_compiler_wl
16850 # Object file suffix (normally "o").
16851 objext="$ac_objext"
16853 # Old archive suffix (normally "a").
16856 # Shared library suffix (normally ".so").
16857 shrext_cmds='$shrext_cmds'
16859 # Executable file suffix (normally "").
16862 # Additional compiler flags for building library objects.
16863 pic_flag=$lt_lt_prog_compiler_pic
16866 # What is the maximum length of a command?
16867 max_cmd_len=$lt_cv_sys_max_cmd_len
16869 # Does compiler simultaneously support -c and -o options?
16870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16872 # Must we lock files when doing compilation?
16873 need_locks=$lt_need_locks
16875 # Do we need the lib prefix for modules?
16876 need_lib_prefix=$need_lib_prefix
16878 # Do we need a version for libraries?
16879 need_version=$need_version
16881 # Whether dlopen is supported.
16882 dlopen_support=$enable_dlopen
16884 # Whether dlopen of programs is supported.
16885 dlopen_self=$enable_dlopen_self
16887 # Whether dlopen of statically linked programs is supported.
16888 dlopen_self_static=$enable_dlopen_self_static
16890 # Compiler flag to prevent dynamic linking.
16891 link_static_flag=$lt_lt_prog_compiler_static
16893 # Compiler flag to turn off builtin functions.
16894 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16896 # Compiler flag to allow reflexive dlopens.
16897 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16899 # Compiler flag to generate shared objects directly from archives.
16900 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16902 # Compiler flag to generate thread-safe objects.
16903 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16905 # Library versioning type.
16906 version_type=$version_type
16908 # Format of library name prefix.
16909 libname_spec=$lt_libname_spec
16911 # List of archive names. First name is the real one, the rest are links.
16912 # The last name is the one that the linker finds with -lNAME.
16913 library_names_spec=$lt_library_names_spec
16915 # The coded name of the library, if different from the real name.
16916 soname_spec=$lt_soname_spec
16918 # Commands used to build and install an old-style archive.
16920 old_archive_cmds=$lt_old_archive_cmds
16921 old_postinstall_cmds=$lt_old_postinstall_cmds
16922 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16924 # Create an old-style archive from a shared archive.
16925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16927 # Create a temporary old-style archive to link instead of a shared archive.
16928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16930 # Commands used to build and install a shared archive.
16931 archive_cmds=$lt_archive_cmds
16932 archive_expsym_cmds=$lt_archive_expsym_cmds
16933 postinstall_cmds=$lt_postinstall_cmds
16934 postuninstall_cmds=$lt_postuninstall_cmds
16936 # Commands used to build a loadable module (assumed same as above if empty)
16937 module_cmds=$lt_module_cmds
16938 module_expsym_cmds=$lt_module_expsym_cmds
16940 # Commands to strip libraries.
16941 old_striplib=$lt_old_striplib
16942 striplib=$lt_striplib
16944 # Dependencies to place before the objects being linked to create a
16946 predep_objects=$lt_predep_objects
16948 # Dependencies to place after the objects being linked to create a
16950 postdep_objects=$lt_postdep_objects
16952 # Dependencies to place before the objects being linked to create a
16954 predeps=$lt_predeps
16956 # Dependencies to place after the objects being linked to create a
16958 postdeps=$lt_postdeps
16960 # The library search path used internally by the compiler when linking
16961 # a shared library.
16962 compiler_lib_search_path=$lt_compiler_lib_search_path
16964 # Method to check whether dependent libraries are shared objects.
16965 deplibs_check_method=$lt_deplibs_check_method
16967 # Command to use when deplibs_check_method == file_magic.
16968 file_magic_cmd=$lt_file_magic_cmd
16970 # Flag that allows shared libraries with undefined symbols to be built.
16971 allow_undefined_flag=$lt_allow_undefined_flag
16973 # Flag that forces no undefined symbols.
16974 no_undefined_flag=$lt_no_undefined_flag
16976 # Commands used to finish a libtool library installation in a directory.
16977 finish_cmds=$lt_finish_cmds
16979 # Same as above, but a single script fragment to be evaled but not shown.
16980 finish_eval=$lt_finish_eval
16982 # Take the output of nm and produce a listing of raw symbols and C names.
16983 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16985 # Transform the output of nm in a proper C declaration
16986 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16988 # Transform the output of nm in a C name address pair
16989 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16991 # This is the shared library runtime path variable.
16992 runpath_var=$runpath_var
16994 # This is the shared library path variable.
16995 shlibpath_var=$shlibpath_var
16997 # Is shlibpath searched before the hard-coded library search path?
16998 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17000 # How to hardcode a shared library path into an executable.
17001 hardcode_action=$hardcode_action
17003 # Whether we should hardcode library paths into libraries.
17004 hardcode_into_libs=$hardcode_into_libs
17006 # Flag to hardcode \$libdir into a binary during linking.
17007 # This must work even if \$libdir does not exist.
17008 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17010 # If ld is used when linking, flag to hardcode \$libdir into
17011 # a binary during linking. This must work even if \$libdir does
17013 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17015 # Whether we need a single -rpath flag with a separated argument.
17016 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17018 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17019 # resulting binary.
17020 hardcode_direct=$hardcode_direct
17022 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17023 # resulting binary.
17024 hardcode_minus_L=$hardcode_minus_L
17026 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17027 # the resulting binary.
17028 hardcode_shlibpath_var=$hardcode_shlibpath_var
17030 # Set to yes if building a shared library automatically hardcodes DIR into the library
17031 # and all subsequent libraries and executables linked against it.
17032 hardcode_automatic=$hardcode_automatic
17034 # Variables whose values should be saved in libtool wrapper scripts and
17035 # restored at relink time.
17036 variables_saved_for_relink="$variables_saved_for_relink"
17038 # Whether libtool must link a program against all its dependency libraries.
17039 link_all_deplibs=$link_all_deplibs
17041 # Compile-time system search path for libraries
17042 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17044 # Run-time system search path for libraries
17045 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17047 # Fix the shell variable \$srcfile for the compiler.
17048 fix_srcfile_path="$fix_srcfile_path"
17050 # Set to yes if exported symbols are required.
17051 always_export_symbols=$always_export_symbols
17053 # The commands to list exported symbols.
17054 export_symbols_cmds=$lt_export_symbols_cmds
17056 # The commands to extract the exported symbol list from a shared archive.
17057 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17059 # Symbols that should not be listed in the preloaded symbols.
17060 exclude_expsyms=$lt_exclude_expsyms
17062 # Symbols that must always be exported.
17063 include_expsyms=$lt_include_expsyms
17065 # ### END LIBTOOL CONFIG
17072 cat <<\EOF >> "$cfgfile"
17074 # AIX sometimes has problems with the GCC collect2 program. For some
17075 # reason, if we set the COLLECT_NAMES environment variable, the problems
17076 # vanish in a puff of smoke.
17077 if test "X${COLLECT_NAMES+set}" != Xset; then
17079 export COLLECT_NAMES
17085 # We use sed instead of cat because bash on DJGPP gets confused if
17086 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17087 # text mode, it properly converts lines to CR/LF. This bash problem
17088 # is reportedly fixed, but why not run on old versions too?
17089 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17091 mv -f "$cfgfile" "$ofile" || \
17092 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17096 # If there is no Makefile yet, we rely on a make rule to execute
17097 # `config.status
--recheck' to rerun these tests and create the
17098 # libtool script then.
17099 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
17100 if test -f "$ltmain_in"; then
17101 test -f Makefile && make "$ltmain"
17107 ac_cpp='$CPP $CPPFLAGS'
17108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
17109 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
17110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17115 # Check whether --with-tags was given.
17116 if test "${with_tags+set}" = set; then
17117 withval=$with_tags; tagnames="$withval"
17121 if test -f "$ltmain" && test -n "$tagnames"; then
17122 if test ! -f "${ofile}"; then
17123 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
17124 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
17127 if test -z "$LTCC"; then
17128 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
17129 if test -z "$LTCC"; then
17130 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17131 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
17133 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
17134 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
17137 if test -z "$LTCFLAGS"; then
17138 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
17141 # Extract list of available tagged configurations in $ofile.
17142 # Note that this assumes the entire list is on one line.
17143 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17146 for tagname in $tagnames; do
17148 # Check whether tagname contains only valid characters
17149 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17151 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17152 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17153 { (exit 1); exit 1; }; }
17157 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17159 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17160 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17161 { (exit 1); exit 1; }; }
17164 # Update the list of available tags.
17165 if test -n "$tagname"; then
17166 echo appending configuration tag \"$tagname\" to $ofile
17170 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17171 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
17172 (test "X$CXX" != "Xg++"))) ; then
17174 ac_cpp='$CXXCPP $CPPFLAGS'
17175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17182 archive_cmds_need_lc_CXX=no
17183 allow_undefined_flag_CXX=
17184 always_export_symbols_CXX=no
17185 archive_expsym_cmds_CXX=
17186 export_dynamic_flag_spec_CXX=
17187 hardcode_direct_CXX=no
17188 hardcode_libdir_flag_spec_CXX=
17189 hardcode_libdir_flag_spec_ld_CXX=
17190 hardcode_libdir_separator_CXX=
17191 hardcode_minus_L_CXX=no
17192 hardcode_shlibpath_var_CXX=unsupported
17193 hardcode_automatic_CXX=no
17195 module_expsym_cmds_CXX=
17196 link_all_deplibs_CXX=unknown
17197 old_archive_cmds_CXX=$old_archive_cmds
17198 no_undefined_flag_CXX=
17199 whole_archive_flag_spec_CXX=
17200 enable_shared_with_static_runtimes_CXX=no
17202 # Dependencies to place before and after the object being linked:
17203 predep_objects_CXX=
17204 postdep_objects_CXX=
17207 compiler_lib_search_path_CXX=
17209 # Source file extension for C++ test sources.
17212 # Object file extension for compiled C++ test sources.
17216 # Code to be used in simple compile tests
17217 lt_simple_compile_test_code="int some_variable = 0;\n"
17219 # Code to be used in simple link tests
17220 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17222 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17224 # If no C compiler was specified, use CC.
17227 # If no C compiler flags were specified, use CFLAGS.
17228 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17230 # Allow CC to be a program name with arguments.
17234 # save warnings/boilerplate of simple test code
17235 ac_outfile=conftest.$ac_objext
17236 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17237 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17238 _lt_compiler_boilerplate=`cat conftest.err
`
17241 ac_outfile=conftest.$ac_objext
17242 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17243 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17244 _lt_linker_boilerplate=`cat conftest.err
`
17248 # Allow CC to be a program name with arguments.
17253 lt_save_with_gnu_ld=$with_gnu_ld
17254 lt_save_path_LD=$lt_cv_path_LD
17255 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17256 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17258 $as_unset lt_cv_prog_gnu_ld
17260 if test -n "${lt_cv_path_LDCXX+set}"; then
17261 lt_cv_path_LD=$lt_cv_path_LDCXX
17263 $as_unset lt_cv_path_LD
17265 test -z "${LDCXX+set}" || LD=$LDCXX
17269 for cc_temp in $compiler""; do
17271 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17272 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17277 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17280 # We don't want -fno-exception wen compiling C++ code, so set the
17281 # no_builtin_flag separately
17282 if test "$GXX" = yes; then
17283 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17285 lt_prog_compiler_no_builtin_flag_CXX=
17288 if test "$GXX" = yes; then
17289 # Set up default GNU C++ configuration
17292 # Check whether --with-gnu-ld was given.
17293 if test "${with_gnu_ld+set}" = set; then
17294 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17300 if test "$GCC" = yes; then
17301 # Check if gcc -print-prog-name=ld gives a path.
17302 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17303 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17306 # gcc leaves a trailing carriage return which upsets mingw
17307 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
17309 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
17312 # Accept absolute paths.
17314 re_direlt='/[^/][^/]*/\.\./'
17315 # Canonicalize the pathname of ld
17316 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
17317 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17318 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
17320 test -z "$LD" && LD="$ac_prog"
17323 # If it fails, then pretend we aren't using GCC.
17327 # If it is relative, then search for the first ld in PATH.
17328 with_gnu_ld=unknown
17331 elif test "$with_gnu_ld" = yes; then
17332 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17333 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17335 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17336 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17338 if test "${lt_cv_path_LD+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17341 if test -z "$LD"; then
17342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17343 for ac_dir in $PATH; do
17345 test -z "$ac_dir" && ac_dir=.
17346 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17347 lt_cv_path_LD="$ac_dir/$ac_prog"
17348 # Check to see if the program is GNU ld. I'd rather use --version,
17349 # but apparently some variants of GNU ld only accept -v.
17350 # Break only if it was the GNU/non-GNU ld that we prefer.
17351 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
17352 *GNU* | *'with BFD'*)
17353 test "$with_gnu_ld" != no && break
17356 test "$with_gnu_ld" != yes && break
17363 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17367 LD="$lt_cv_path_LD"
17368 if test -n "$LD"; then
17369 { echo "$as_me:$LINENO: result: $LD" >&5
17370 echo "${ECHO_T}$LD" >&6; }
17372 { echo "$as_me:$LINENO: result: no" >&5
17373 echo "${ECHO_T}no" >&6; }
17375 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17376 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17377 { (exit 1); exit 1; }; }
17378 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17379 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17380 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17383 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17384 case `$LD -v 2>&1 </dev
/null
` in
17385 *GNU* | *'with BFD'*)
17386 lt_cv_prog_gnu_ld=yes
17389 lt_cv_prog_gnu_ld=no
17393 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17394 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17395 with_gnu_ld=$lt_cv_prog_gnu_ld
17399 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17400 # archiving commands below assume that GNU ld is being used.
17401 if test "$with_gnu_ld" = yes; then
17402 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17403 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'
17405 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17406 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17408 # If archive_cmds runs LD, not CC, wlarc should be empty
17409 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17410 # investigate it a little bit more. (MM)
17413 # ancient GNU ld didn't support --whole-archive et. al.
17414 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
17415 grep 'no-whole-archive' > /dev/null; then
17416 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17418 whole_archive_flag_spec_CXX=
17424 # A generic and very simple default shared library creation
17425 # command for GNU C++ for the case where it uses the native
17426 # linker, instead of GNU ld. If possible, this setting should
17427 # overridden to take advantage of the native linker features on
17428 # the platform it is being used on.
17429 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17432 # Commands to make compiler produce verbose output that lists
17433 # what "hidden" libraries, object files and flags are used when
17434 # linking a shared library.
17435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17443 # PORTME: fill in a description of your system's C++ link characteristics
17444 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17445 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17449 # FIXME: insert proper C++ library support
17453 if test "$host_cpu" = ia64; then
17454 # On IA64, the linker does run time linking by default, so we don't
17455 # have to do anything special.
17456 aix_use_runtimelinking=no
17457 exp_sym_flag='-Bexport'
17460 aix_use_runtimelinking=no
17462 # Test if we are trying to use run time linking or normal
17463 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17464 # need to do runtime linking.
17465 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17466 for ld_flag in $LDFLAGS; do
17469 aix_use_runtimelinking=yes
17477 exp_sym_flag='-bexport'
17478 no_entry_flag='-bnoentry'
17481 # When large executables or shared objects are built, AIX ld can
17482 # have problems creating the table of contents. If linking a library
17483 # or program results in "error TOC overflow" add -mminimal-toc to
17484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17487 archive_cmds_CXX=''
17488 hardcode_direct_CXX=yes
17489 hardcode_libdir_separator_CXX=':'
17490 link_all_deplibs_CXX=yes
17492 if test "$GXX" = yes; then
17493 case $host_os in aix4.[012]|aix4.[012].*)
17494 # We only want to do this on AIX 4.2 and lower, the check
17495 # below for broken collect2 doesn't work under 4.3+
17496 collect2name=`${CC} -print-prog-name=collect2
`
17497 if test -f "$collect2name" && \
17498 strings "$collect2name" | grep resolve_lib_name >/dev/null
17500 # We have reworked collect2
17501 hardcode_direct_CXX=yes
17503 # We have old collect2
17504 hardcode_direct_CXX=unsupported
17505 # It fails to find uninstalled libraries when the uninstalled
17506 # path is not listed in the libpath. Setting hardcode_minus_L
17507 # to unsupported forces relinking
17508 hardcode_minus_L_CXX=yes
17509 hardcode_libdir_flag_spec_CXX='-L$libdir'
17510 hardcode_libdir_separator_CXX=
17514 shared_flag='-shared'
17515 if test "$aix_use_runtimelinking" = yes; then
17516 shared_flag="$shared_flag "'${wl}-G'
17520 if test "$host_cpu" = ia64; then
17521 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17522 # chokes on -Wl,-G. The following line is correct:
17525 if test "$aix_use_runtimelinking" = yes; then
17526 shared_flag='${wl}-G'
17528 shared_flag='${wl}-bM:SRE'
17533 # It seems that -bexpall does not export symbols beginning with
17534 # underscore (_), so it is better to generate a list of symbols to export.
17535 always_export_symbols_CXX=yes
17536 if test "$aix_use_runtimelinking" = yes; then
17537 # Warning - without using the other runtime loading flags (-brtl),
17538 # -berok will link without error, but may produce a broken library.
17539 allow_undefined_flag_CXX='-berok'
17540 # Determine the default libpath from the value encoded in an empty executable.
17541 cat >conftest.$ac_ext <<_ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17556 rm -f conftest.$ac_objext conftest$ac_exeext
17557 if { (ac_try="$ac_link"
17558 case "(($ac_try" in
17559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17560 *) ac_try_echo
=$ac_try;;
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_link") 2>conftest.er1
17565 grep -v '^ *+' conftest.er1
>conftest.err
17567 cat conftest.err
>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } && {
17570 test -z "$ac_cxx_werror_flag" ||
17571 test ! -s conftest.err
17572 } && test -s conftest
$ac_exeext &&
17573 $as_test_x conftest
$ac_exeext; then
17575 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17577 # Check for a 64-bit object if we didn't find anything.
17578 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; }
17581 echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.
$ac_ext >&5
17587 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17588 conftest
$ac_exeext conftest.
$ac_ext
17589 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17591 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
17593 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"
17595 if test "$host_cpu" = ia64
; then
17596 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
17597 allow_undefined_flag_CXX
="-z nodefs"
17598 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"
17600 # Determine the default libpath from the value encoded in an empty executable.
17601 cat >conftest.
$ac_ext <<_ACEOF
17604 cat confdefs.h
>>conftest.
$ac_ext
17605 cat >>conftest.
$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17616 rm -f conftest.
$ac_objext conftest
$ac_exeext
17617 if { (ac_try
="$ac_link"
17618 case "(($ac_try" in
17619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17620 *) ac_try_echo=$ac_try;;
17622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_link") 2>conftest.er1
17625 grep -v '^ *+' conftest.er1 >conftest.err
17627 cat conftest.err >&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); } && {
17630 test -z "$ac_cxx_werror_flag" ||
17631 test ! -s conftest.err
17632 } && test -s conftest$ac_exeext &&
17633 $as_test_x conftest$ac_exeext; then
17635 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17637 # Check for a 64-bit object if we didn't find anything.
17638 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; }
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17648 conftest$ac_exeext conftest.$ac_ext
17649 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17651 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17652 # Warning - without using the other run time loading flags,
17653 # -berok will link without error, but may produce a broken library.
17654 no_undefined_flag_CXX=' ${wl}-bernotok'
17655 allow_undefined_flag_CXX=' ${wl}-berok'
17656 # Exported symbols can be pulled into shared objects from archives
17657 whole_archive_flag_spec_CXX='$convenience'
17658 archive_cmds_need_lc_CXX=yes
17659 # This is similar to how AIX traditionally builds its shared libraries.
17660 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'
17666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17667 allow_undefined_flag_CXX=unsupported
17668 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17669 # support --undefined. This deserves some investigation. FIXME
17670 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17677 case $cc_basename in
17679 # FIXME: insert proper C++ library support
17685 cygwin* | mingw* | pw32*)
17686 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17687 # as there is no search path for DLLs.
17688 hardcode_libdir_flag_spec_CXX='-L$libdir'
17689 allow_undefined_flag_CXX=unsupported
17690 always_export_symbols_CXX=no
17691 enable_shared_with_static_runtimes_CXX=yes
17693 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17694 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'
17695 # If the export-symbols file already is a .def file (1st line
17696 # is EXPORTS), use it as is; otherwise, prepend...
17697 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
17698 cp $export_symbols $output_objdir/$soname.def;
17700 echo EXPORTS > $output_objdir/$soname.def;
17701 cat $export_symbols >> $output_objdir/$soname.def;
17703 $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'
17708 darwin* | rhapsody*)
17710 rhapsody* | darwin1.[012])
17711 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17714 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17715 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17717 case ${MACOSX_DEPLOYMENT_TARGET} in
17719 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17722 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17728 archive_cmds_need_lc_CXX=no
17729 hardcode_direct_CXX=no
17730 hardcode_automatic_CXX=yes
17731 hardcode_shlibpath_var_CXX=unsupported
17732 whole_archive_flag_spec_CXX=''
17733 link_all_deplibs_CXX=yes
17735 if test "$GXX" = yes ; then
17736 lt_int_apple_cc_single_mod=no
17737 output_verbose_link_cmd='echo'
17738 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17739 lt_int_apple_cc_single_mod=yes
17741 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17742 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17744 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'
17746 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17747 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17748 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17749 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}'
17751 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}'
17753 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}'
17755 case $cc_basename in
17757 output_verbose_link_cmd='echo'
17758 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'
17759 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17760 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17761 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}'
17762 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}'
17772 case $cc_basename in
17774 # FIXME: insert proper C++ library support
17778 # Green Hills C++ Compiler
17779 # FIXME: insert proper C++ library support
17783 # FIXME: insert proper C++ library support
17789 # C++ shared libraries reported to be fairly broken before switch to ELF
17793 archive_cmds_need_lc_CXX=no
17795 freebsd* | kfreebsd*-gnu | dragonfly*)
17796 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17803 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17804 hardcode_libdir_separator_CXX=:
17805 export_dynamic_flag_spec_CXX='${wl}-E'
17806 hardcode_direct_CXX=yes
17807 hardcode_minus_L_CXX=yes # Not in the search PATH,
17808 # but as the default
17809 # location of the library.
17811 case $cc_basename in
17813 # FIXME: insert proper C++ library support
17817 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'
17818 # Commands to make compiler produce verbose output that lists
17819 # what "hidden" libraries, object files and flags are used when
17820 # linking a shared library.
17822 # There doesn't appear to be a way to prevent this compiler from
17823 # explicitly linking system object files so we need to strip them
17824 # from the output so that they don't get included in the library
17826 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'
17829 if test "$GXX" = yes; then
17830 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'
17832 # FIXME: insert proper C++ library support
17839 if test $with_gnu_ld = no; then
17840 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17841 hardcode_libdir_separator_CXX=:
17845 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17848 export_dynamic_flag_spec_CXX='${wl}-E'
17854 hardcode_direct_CXX=no
17855 hardcode_shlibpath_var_CXX=no
17858 hardcode_direct_CXX=yes
17859 hardcode_minus_L_CXX=yes # Not in the search PATH,
17860 # but as the default
17861 # location of the library.
17865 case $cc_basename in
17867 # FIXME: insert proper C++ library support
17873 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17876 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17879 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17882 # Commands to make compiler produce verbose output that lists
17883 # what "hidden" libraries, object files and flags are used when
17884 # linking a shared library.
17886 # There doesn't appear to be a way to prevent this compiler from
17887 # explicitly linking system object files so we need to strip them
17888 # from the output so that they don't get included in the library
17890 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'
17893 if test "$GXX" = yes; then
17894 if test $with_gnu_ld = no; then
17897 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17900 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17903 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'
17908 # FIXME: insert proper C++ library support
17915 hardcode_direct_CXX=no
17916 hardcode_shlibpath_var_CXX=no
17917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17918 export_dynamic_flag_spec_CXX='${wl}-E'
17919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17920 # Instead, shared libraries are loaded at an image base (0x10000000 by
17921 # default) and relocated if they conflict, which is a slow very memory
17922 # consuming and fragmenting process. To avoid this, we pick a random,
17923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17925 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'
17926 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'
17929 case $cc_basename in
17932 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'
17934 # Archives containing C++ object files must be created using
17935 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17936 # necessary to make sure instantiated templates are included
17938 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17941 if test "$GXX" = yes; then
17942 if test "$with_gnu_ld" = no; then
17943 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'
17945 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'
17948 link_all_deplibs_CXX=yes
17951 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17952 hardcode_libdir_separator_CXX=:
17955 case $cc_basename in
17957 # Kuck and Associates, Inc. (KAI) C++ Compiler
17959 # KCC will only create a shared library if the output file
17960 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17961 # to its proper name (with version) after linking.
17962 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'
17963 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'
17964 # Commands to make compiler produce verbose output that lists
17965 # what "hidden" libraries, object files and flags are used when
17966 # linking a shared library.
17968 # There doesn't appear to be a way to prevent this compiler from
17969 # explicitly linking system object files so we need to strip them
17970 # from the output so that they don't get included in the library
17972 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'
17974 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
17975 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
17977 # Archives containing C++ object files must be created using
17978 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17979 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
17984 # version 8.0 and above of icpc choke on multiply defined symbols
17985 # if we add $predep_objects and $postdep_objects, however 7.1 and
17986 # earlier do not add the objects themselves.
17987 case `$CC -V 2>&1` in
17989 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17990 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'
17992 *) # Version 8.0 or newer
17995 ia64
*) tmp_idyn
=' -i_dynamic';;
17997 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17998 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'
18001 archive_cmds_need_lc_CXX
=no
18002 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18003 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18004 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18007 # Portland Group C++ compiler
18008 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18009 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'
18011 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
18012 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18013 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'
18017 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18018 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'
18020 runpath_var
=LD_RUN_PATH
18021 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18022 hardcode_libdir_separator_CXX
=:
18024 # Commands to make compiler produce verbose output that lists
18025 # what "hidden" libraries, object files and flags are used when
18026 # linking a shared library.
18028 # There doesn't appear to be a way to prevent this compiler from
18029 # explicitly linking system object files so we need to strip them
18030 # from the output so that they don't get included in the library
18032 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'
18037 # FIXME: insert proper C++ library support
18041 # FIXME: insert proper C++ library support
18045 case $cc_basename in
18047 # FIXME: insert proper C++ library support
18051 # FIXME: insert proper C++ library support
18057 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18058 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18060 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18061 hardcode_direct_CXX
=yes
18062 hardcode_shlibpath_var_CXX
=no
18064 # Workaround some broken pre-1.5 toolchains
18065 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18068 # C++ shared libraries are fairly broken
18072 hardcode_direct_CXX
=yes
18073 hardcode_shlibpath_var_CXX
=no
18074 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18075 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18077 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18078 export_dynamic_flag_spec_CXX
='${wl}-E'
18079 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18081 output_verbose_link_cmd
='echo'
18084 case $cc_basename in
18086 # Kuck and Associates, Inc. (KAI) C++ Compiler
18088 # KCC will only create a shared library if the output file
18089 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18090 # to its proper name (with version) after linking.
18091 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'
18093 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18094 hardcode_libdir_separator_CXX
=:
18096 # Archives containing C++ object files must be created using
18097 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18098 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18102 # Rational C++ 2.4.1
18103 # FIXME: insert proper C++ library support
18107 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18108 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'
18110 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18111 hardcode_libdir_separator_CXX
=:
18113 # Commands to make compiler produce verbose output that lists
18114 # what "hidden" libraries, object files and flags are used when
18115 # linking a shared library.
18117 # There doesn't appear to be a way to prevent this compiler from
18118 # explicitly linking system object files so we need to strip them
18119 # from the output so that they don't get included in the library
18121 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'
18124 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18125 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18126 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'
18128 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18129 hardcode_libdir_separator_CXX
=:
18131 # Commands to make compiler produce verbose output that lists
18132 # what "hidden" libraries, object files and flags are used when
18133 # linking a shared library.
18134 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18137 # FIXME: insert proper C++ library support
18144 case $cc_basename in
18146 # Kuck and Associates, Inc. (KAI) C++ Compiler
18148 # KCC will only create a shared library if the output file
18149 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18150 # to its proper name (with version) after linking.
18151 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'
18153 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18154 hardcode_libdir_separator_CXX
=:
18156 # Archives containing C++ object files must be created using
18157 # the KAI C++ compiler.
18158 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
18161 # Rational C++ 2.4.1
18162 # FIXME: insert proper C++ library support
18166 allow_undefined_flag_CXX
=' -expect_unresolved \*'
18167 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'
18168 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18169 echo "-hidden">> $lib.exp~
18170 $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~
18173 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18174 hardcode_libdir_separator_CXX
=:
18176 # Commands to make compiler produce verbose output that lists
18177 # what "hidden" libraries, object files and flags are used when
18178 # linking a shared library.
18180 # There doesn't appear to be a way to prevent this compiler from
18181 # explicitly linking system object files so we need to strip them
18182 # from the output so that they don't get included in the library
18184 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'
18187 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18188 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18189 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'
18191 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18192 hardcode_libdir_separator_CXX
=:
18194 # Commands to make compiler produce verbose output that lists
18195 # what "hidden" libraries, object files and flags are used when
18196 # linking a shared library.
18197 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18200 # FIXME: insert proper C++ library support
18207 # FIXME: insert proper C++ library support
18211 case $cc_basename in
18214 # FIXME: insert proper C++ library support
18219 # FIXME: insert proper C++ library support
18223 # FIXME: insert proper C++ library support
18229 case $cc_basename in
18231 # Sun C++ 4.2, 5.x and Centerline C++
18232 archive_cmds_need_lc_CXX
=yes
18233 no_undefined_flag_CXX
=' -zdefs'
18234 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18235 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18236 $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'
18238 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18239 hardcode_shlibpath_var_CXX
=no
18241 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18243 # The C++ compiler is used as linker so we must use $wl
18244 # flag to pass the commands to the underlying system
18245 # linker. We must also pass each convience library through
18246 # to the system linker between allextract/defaultextract.
18247 # The C++ compiler will combine linker options so we
18248 # cannot just pass the convience library names through
18250 # Supported since Solaris 2.6 (maybe 2.5.1?)
18251 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'
18254 link_all_deplibs_CXX
=yes
18256 output_verbose_link_cmd
='echo'
18258 # Archives containing C++ object files must be created using
18259 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18260 # necessary to make sure instantiated templates are included
18262 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18265 # Green Hills C++ Compiler
18266 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18268 # The C++ compiler must be used to create the archive.
18269 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18272 # GNU C++ compiler with Solaris linker
18273 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18274 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
18275 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
18276 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18277 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18278 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18280 # Commands to make compiler produce verbose output that lists
18281 # what "hidden" libraries, object files and flags are used when
18282 # linking a shared library.
18283 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18285 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18287 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18288 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18289 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18291 # Commands to make compiler produce verbose output that lists
18292 # what "hidden" libraries, object files and flags are used when
18293 # linking a shared library.
18294 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18297 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
18302 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18303 no_undefined_flag_CXX
='${wl}-z,text'
18304 archive_cmds_need_lc_CXX
=no
18305 hardcode_shlibpath_var_CXX
=no
18306 runpath_var
='LD_RUN_PATH'
18308 case $cc_basename in
18310 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18311 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18314 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18315 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18319 sysv5
* | sco3.2v5
* | sco5v6
*)
18320 # Note: We can NOT use -z defs as we might desire, because we do not
18321 # link with -lc, and that would cause any symbols used from libc to
18322 # always be unresolved, which means just about no library would
18323 # ever link correctly. If we're not using GNU ld we use -z text
18324 # though, which does catch some bad symbols but isn't as heavy-handed
18326 # For security reasons, it is highly recommended that you always
18327 # use absolute paths for naming shared libraries, and exclude the
18328 # DT_RUNPATH tag from executables and libraries. But doing so
18329 # requires that you compile everything twice, which is a pain.
18330 # So that behaviour is only enabled if SCOABSPATH is set to a
18331 # non-empty value in the environment. Most likely only useful for
18332 # creating official distributions of packages.
18333 # This is a hack until libtool officially supports absolute path
18334 # names for shared libraries.
18335 no_undefined_flag_CXX
='${wl}-z,text'
18336 allow_undefined_flag_CXX
='${wl}-z,nodefs'
18337 archive_cmds_need_lc_CXX
=no
18338 hardcode_shlibpath_var_CXX
=no
18339 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18340 hardcode_libdir_separator_CXX
=':'
18341 link_all_deplibs_CXX
=yes
18342 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
18343 runpath_var
='LD_RUN_PATH'
18345 case $cc_basename in
18347 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18348 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18351 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18352 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18357 case $cc_basename in
18359 # NonStop-UX NCC 3.20
18360 # FIXME: insert proper C++ library support
18364 # FIXME: insert proper C++ library support
18370 # FIXME: insert proper C++ library support
18374 # FIXME: insert proper C++ library support
18378 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18379 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18380 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
18386 cat > conftest.
$ac_ext <<EOF
18390 Foo (void) { a = 0; }
18396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18397 (eval $ac_compile) 2>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; then
18401 # Parse the compiler output and extract the necessary
18402 # objects, libraries and library flags.
18404 # Sentinel used to keep track of whether or not we are before
18405 # the conftest object file.
18406 pre_test_object_deps_done
=no
18408 # The `*' in the case matches for architectures that use `case' in
18409 # $output_verbose_cmd can trigger glob expansion during the loop
18410 # eval without this substitution.
18411 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18413 for p
in `eval $output_verbose_link_cmd`; do
18417 # Some compilers place space between "-{L,R}" and the path.
18418 # Remove the space.
18419 if test $p = "-L" \
18420 ||
test $p = "-R"; then
18427 if test "$pre_test_object_deps_done" = no
; then
18430 # Internal compiler library paths should come after those
18431 # provided the user. The postdeps already come after the
18432 # user supplied libs so there is no need to process them.
18433 if test -z "$compiler_lib_search_path_CXX"; then
18434 compiler_lib_search_path_CXX
="${prev}${p}"
18436 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
18439 # The "-l" case would never come before the object being
18440 # linked, so don't bother handling this case.
18443 if test -z "$postdeps_CXX"; then
18444 postdeps_CXX
="${prev}${p}"
18446 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
18452 # This assumes that the test object file only shows up
18453 # once in the compiler output.
18454 if test "$p" = "conftest.$objext"; then
18455 pre_test_object_deps_done
=yes
18459 if test "$pre_test_object_deps_done" = no
; then
18460 if test -z "$predep_objects_CXX"; then
18461 predep_objects_CXX
="$p"
18463 predep_objects_CXX
="$predep_objects_CXX $p"
18466 if test -z "$postdep_objects_CXX"; then
18467 postdep_objects_CXX
="$p"
18469 postdep_objects_CXX
="$postdep_objects_CXX $p"
18474 *) ;; # Ignore the rest.
18482 echo "libtool.m4: error: problem compiling CXX test program"
18485 $rm -f confest.
$objext
18487 # PORTME: override above test on systems where it is broken
18490 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18491 # hack all around it, let's just trust "g++" to DTRT.
18492 predep_objects_CXX
=
18493 postdep_objects_CXX
=
18498 case $cc_basename in
18500 # Adding this requires a known-good setup of shared libraries for
18501 # Sun compiler versions before 5.6, else PIC objects from an old
18502 # archive will be linked into the output, leading to subtle bugs.
18503 postdeps_CXX
='-lCstd -lCrun'
18510 case " $postdeps_CXX " in
18511 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
18514 lt_prog_compiler_wl_CXX
=
18515 lt_prog_compiler_pic_CXX
=
18516 lt_prog_compiler_static_CXX
=
18518 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18519 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18521 # C++ specific cases for pic, static, wl, etc.
18522 if test "$GXX" = yes; then
18523 lt_prog_compiler_wl_CXX
='-Wl,'
18524 lt_prog_compiler_static_CXX
='-static'
18528 # All AIX code is PIC.
18529 if test "$host_cpu" = ia64
; then
18530 # AIX 5 now supports IA64 processor
18531 lt_prog_compiler_static_CXX
='-Bstatic'
18535 # FIXME: we need at least 68020 code to build shared libraries, but
18536 # adding the `-m68020' flag to GCC prevents building anything better,
18538 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
18540 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
18541 # PIC is the default for these OSes.
18543 mingw
* | os2
* | pw32
*)
18544 # This hack is so that the source file can tell whether it is being
18545 # built for inclusion in a dll (and should export symbols for example).
18546 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
18548 darwin
* | rhapsody
*)
18549 # PIC is the default on this platform
18550 # Common symbols not allowed in MH_DYLIB files
18551 lt_prog_compiler_pic_CXX
='-fno-common'
18554 # DJGPP does not support shared libraries at all
18555 lt_prog_compiler_pic_CXX
=
18558 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18559 # Instead, we relocate shared libraries at runtime.
18562 if test -d /usr
/nec
; then
18563 lt_prog_compiler_pic_CXX
=-Kconform_pic
18567 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18568 # not for PA HP-UX.
18573 lt_prog_compiler_pic_CXX
='-fPIC'
18578 lt_prog_compiler_pic_CXX
='-fPIC'
18584 # All AIX code is PIC.
18585 if test "$host_cpu" = ia64
; then
18586 # AIX 5 now supports IA64 processor
18587 lt_prog_compiler_static_CXX
='-Bstatic'
18589 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
18593 case $cc_basename in
18595 # Green Hills C++ Compiler
18596 # _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"
18601 # PIC is the default on this platform
18602 # Common symbols not allowed in MH_DYLIB files
18603 case $cc_basename in
18605 lt_prog_compiler_pic_CXX
='-qnocommon'
18606 lt_prog_compiler_wl_CXX
='-Wl,'
18611 case $cc_basename in
18613 lt_prog_compiler_pic_CXX
='-KPIC'
18616 # Green Hills C++ Compiler
18617 lt_prog_compiler_pic_CXX
='-pic'
18623 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
18624 # FreeBSD uses GNU C++
18626 hpux9
* | hpux10
* | hpux11
*)
18627 case $cc_basename in
18629 lt_prog_compiler_wl_CXX
='-Wl,'
18630 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
18631 if test "$host_cpu" != ia64
; then
18632 lt_prog_compiler_pic_CXX
='+Z'
18636 lt_prog_compiler_wl_CXX
='-Wl,'
18637 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
18643 lt_prog_compiler_pic_CXX
='+Z'
18652 # This is c89, which is MS Visual C++ (no shared libs)
18653 # Anyone wants to do a port?
18655 irix5
* | irix6
* | nonstopux
*)
18656 case $cc_basename in
18658 lt_prog_compiler_wl_CXX
='-Wl,'
18659 lt_prog_compiler_static_CXX
='-non_shared'
18660 # CC pic flag -KPIC is the default.
18667 case $cc_basename in
18670 lt_prog_compiler_wl_CXX
='--backend -Wl,'
18671 lt_prog_compiler_pic_CXX
='-fPIC'
18675 lt_prog_compiler_wl_CXX
='-Wl,'
18676 lt_prog_compiler_pic_CXX
='-KPIC'
18677 lt_prog_compiler_static_CXX
='-static'
18680 # Portland Group C++ compiler.
18681 lt_prog_compiler_wl_CXX
='-Wl,'
18682 lt_prog_compiler_pic_CXX
='-fpic'
18683 lt_prog_compiler_static_CXX
='-Bstatic'
18687 # Make sure the PIC flag is empty. It appears that all Alpha
18688 # Linux and Compaq Tru64 Unix objects are PIC.
18689 lt_prog_compiler_pic_CXX
=
18690 lt_prog_compiler_static_CXX
='-non_shared'
18701 case $cc_basename in
18703 lt_prog_compiler_pic_CXX
='-W c,exportall'
18711 osf3
* | osf4
* | osf5
*)
18712 case $cc_basename in
18714 lt_prog_compiler_wl_CXX
='--backend -Wl,'
18717 # Rational C++ 2.4.1
18718 lt_prog_compiler_pic_CXX
='-pic'
18721 # Digital/Compaq C++
18722 lt_prog_compiler_wl_CXX
='-Wl,'
18723 # Make sure the PIC flag is empty. It appears that all Alpha
18724 # Linux and Compaq Tru64 Unix objects are PIC.
18725 lt_prog_compiler_pic_CXX
=
18726 lt_prog_compiler_static_CXX
='-non_shared'
18735 case $cc_basename in
18737 # Sun C++ 4.2, 5.x and Centerline C++
18738 lt_prog_compiler_pic_CXX
='-KPIC'
18739 lt_prog_compiler_static_CXX
='-Bstatic'
18740 lt_prog_compiler_wl_CXX
='-Qoption ld '
18743 # Green Hills C++ Compiler
18744 lt_prog_compiler_pic_CXX
='-PIC'
18751 case $cc_basename in
18754 lt_prog_compiler_pic_CXX
='-pic'
18755 lt_prog_compiler_static_CXX
='-Bstatic'
18759 lt_prog_compiler_pic_CXX
='-pic'
18766 case $cc_basename in
18768 # NonStop-UX NCC 3.20
18769 lt_prog_compiler_pic_CXX
='-KPIC'
18775 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
18776 case $cc_basename in
18778 lt_prog_compiler_wl_CXX
='-Wl,'
18779 lt_prog_compiler_pic_CXX
='-KPIC'
18780 lt_prog_compiler_static_CXX
='-Bstatic'
18787 lt_prog_compiler_can_build_shared_CXX
=no
18792 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18793 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18796 # Check to make sure the PIC flag actually works.
18798 if test -n "$lt_prog_compiler_pic_CXX"; then
18800 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18801 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18802 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18805 lt_prog_compiler_pic_works_CXX
=no
18806 ac_outfile
=conftest.
$ac_objext
18807 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
18808 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
18809 # Insert the option either (1) after the last *FLAGS variable, or
18810 # (2) before a word containing "conftest.", or (3) at the end.
18811 # Note that $ac_compile itself does not contain backslashes and begins
18812 # with a dollar sign (not a hyphen), so the echo should work correctly.
18813 # The option is referenced via a variable to avoid confusing sed.
18814 lt_compile
=`echo "$ac_compile" | $SED \
18815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18817 -e 's:$: $lt_compiler_flag:'`
18818 (eval echo "\"\$as_me:18818: $lt_compile\"" >&5)
18819 (eval "$lt_compile" 2>conftest.err
)
18821 cat conftest.err
>&5
18822 echo "$as_me:18822: \$? = $ac_status" >&5
18823 if (exit $ac_status) && test -s "$ac_outfile"; then
18824 # The compiler can only warn and ignore the option if not recognized
18825 # So say no if there are warnings other than the usual output.
18826 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
18827 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18828 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
18829 lt_prog_compiler_pic_works_CXX
=yes
18835 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18836 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
18838 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
18839 case $lt_prog_compiler_pic_CXX in
18841 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
18844 lt_prog_compiler_pic_CXX
=
18845 lt_prog_compiler_can_build_shared_CXX
=no
18850 # For platforms which do not support PIC, -DPIC is meaningless:
18852 lt_prog_compiler_pic_CXX
=
18855 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
18860 # Check to make sure the static flag actually works.
18862 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
18863 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18864 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18865 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18866 echo $ECHO_N "(cached) $ECHO_C" >&6
18868 lt_prog_compiler_static_works_CXX
=no
18869 save_LDFLAGS
="$LDFLAGS"
18870 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
18871 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
18872 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18873 # The linker can only warn and ignore the option if not recognized
18874 # So say no if there are warnings
18875 if test -s conftest.err
; then
18876 # Append any errors to the config.log.
18877 cat conftest.err
1>&5
18878 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
18879 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18880 if diff conftest.exp conftest.er2
>/dev
/null
; then
18881 lt_prog_compiler_static_works_CXX
=yes
18884 lt_prog_compiler_static_works_CXX
=yes
18888 LDFLAGS
="$save_LDFLAGS"
18891 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18892 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18894 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
18897 lt_prog_compiler_static_CXX
=
18901 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18902 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18903 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18906 lt_cv_prog_compiler_c_o_CXX
=no
18907 $rm -r conftest
2>/dev
/null
18911 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
18913 lt_compiler_flag
="-o out/conftest2.$ac_objext"
18914 # Insert the option either (1) after the last *FLAGS variable, or
18915 # (2) before a word containing "conftest.", or (3) at the end.
18916 # Note that $ac_compile itself does not contain backslashes and begins
18917 # with a dollar sign (not a hyphen), so the echo should work correctly.
18918 lt_compile
=`echo "$ac_compile" | $SED \
18919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18921 -e 's:$: $lt_compiler_flag:'`
18922 (eval echo "\"\$as_me:18922: $lt_compile\"" >&5)
18923 (eval "$lt_compile" 2>out
/conftest.err
)
18925 cat out
/conftest.err
>&5
18926 echo "$as_me:18926: \$? = $ac_status" >&5
18927 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
18929 # The compiler can only warn and ignore the option if not recognized
18930 # So say no if there are warnings
18931 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
18932 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
18933 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
18934 lt_cv_prog_compiler_c_o_CXX
=yes
18939 # SGI C++ compiler will create directory out/ii_files/ for
18940 # template instantiation
18941 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
18942 $rm out
/* && rmdir out
18948 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18949 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
18952 hard_links
="nottested"
18953 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
18954 # do not overwrite the value of need_locks provided by the user
18955 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18956 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18959 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
18961 ln conftest.a conftest.b
2>&5 || hard_links
=no
18962 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
18963 { echo "$as_me:$LINENO: result: $hard_links" >&5
18964 echo "${ECHO_T}$hard_links" >&6; }
18965 if test "$hard_links" = no
; then
18966 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18967 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18974 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18975 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18977 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18980 # If we're using GNU nm, then we don't want the "-C" option.
18981 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18982 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
18983 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'
18985 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'
18989 export_symbols_cmds_CXX
="$ltdll_cmds"
18992 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'
18995 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18999 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19000 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19001 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19004 # Do we need to explicitly link libc?
19006 case "x$archive_cmds_need_lc_CXX" in
19008 # Assume -lc should be added
19009 archive_cmds_need_lc_CXX
=yes
19011 if test "$enable_shared" = yes && test "$GCC" = yes; then
19012 case $archive_cmds_CXX in
19014 # FIXME: we may have to deal with multi-command sequences.
19017 # Test whether the compiler implicitly links with -lc since on some
19018 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19019 # to ld, don't add -lc before -lgcc.
19020 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19021 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19023 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
19025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19026 (eval $ac_compile) 2>&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } 2>conftest.err
; then
19032 libobjs
=conftest.
$ac_objext
19034 wl
=$lt_prog_compiler_wl_CXX
19035 pic_flag
=$lt_prog_compiler_pic_CXX
19041 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
19042 allow_undefined_flag_CXX
=
19043 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19044 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }
19049 archive_cmds_need_lc_CXX
=no
19051 archive_cmds_need_lc_CXX
=yes
19053 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
19055 cat conftest.err
1>&5
19058 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19059 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19066 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19067 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19068 library_names_spec
=
19069 libname_spec
='lib$name'
19073 postuninstall_cmds
=
19077 shlibpath_overrides_runpath
=unknown
19079 dynamic_linker
="$host_os ld.so"
19080 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19081 if test "$GCC" = yes; then
19082 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19083 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
19084 # if the path contains ";" then we assume it to be the separator
19085 # otherwise default to the standard path separator (i.e. ":") - it is
19086 # assumed that no part of a normal pathname contains ";" but that should
19087 # okay in the real world where ";" in dirpaths is itself problematic.
19088 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19090 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19093 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
19095 need_lib_prefix
=unknown
19096 hardcode_into_libs
=no
19098 # when you set need_version to no, make sure it does not cause -set_version
19099 # flags to be left without arguments
19100 need_version
=unknown
19105 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19106 shlibpath_var
=LIBPATH
19108 # AIX 3 has no versioning support, so we append a major version to the name.
19109 soname_spec
='${libname}${release}${shared_ext}$major'
19116 hardcode_into_libs
=yes
19117 if test "$host_cpu" = ia64
; then
19118 # AIX 5 supports IA64
19119 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19120 shlibpath_var
=LD_LIBRARY_PATH
19122 # With GCC up to 2.95.x, collect2 would create an import file
19123 # for dependence libraries. The import file would start with
19124 # the line `#! .'. This would cause the generated library to
19125 # depend on `.', always an invalid library. This was fixed in
19126 # development snapshots of GCC prior to 3.0.
19128 aix4 | aix4.
[01] | aix4.
[01].
*)
19129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19131 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
19134 can_build_shared
=no
19138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19139 # soname into executable. Probably we can add versioning support to
19140 # collect2, so additional links can be useful in future.
19141 if test "$aix_use_runtimelinking" = yes; then
19142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19143 # instead of lib<name>.a to let people know that these are not
19144 # typical AIX shared libraries.
19145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19147 # We preserve .a as extension for shared libraries through AIX4.2
19148 # and later when we are not doing run time linking.
19149 library_names_spec
='${libname}${release}.a $libname.a'
19150 soname_spec
='${libname}${release}${shared_ext}$major'
19152 shlibpath_var
=LIBPATH
19157 library_names_spec
='$libname.ixlibrary $libname.a'
19158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19159 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'
19163 library_names_spec
='${libname}${shared_ext}'
19164 dynamic_linker
="$host_os ld.so"
19165 shlibpath_var
=LIBRARY_PATH
19171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19172 soname_spec
='${libname}${release}${shared_ext}$major'
19173 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19174 shlibpath_var
=LD_LIBRARY_PATH
19175 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19176 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19177 # the default ld.so.conf also contains /usr/contrib/lib and
19178 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19179 # libtool to hard-code these into programs
19182 cygwin
* | mingw
* | pw32
*)
19183 version_type
=windows
19188 case $GCC,$host_os in
19189 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
19190 library_names_spec
='$libname.dll.a'
19191 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19192 postinstall_cmds
='base_file=`basename \${file}`~
19193 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19194 dldir=$destdir/`dirname \$dlpath`~
19195 test -d \$dldir || mkdir -p \$dldir~
19196 $install_prog $dir/$dlname \$dldir/$dlname~
19197 chmod a+x \$dldir/$dlname'
19198 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19199 dlpath=$dir/\$dldll~
19201 shlibpath_overrides_runpath
=yes
19205 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19206 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19207 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
19210 # MinGW DLLs use traditional 'lib' prefix
19211 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19212 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19213 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
19214 # It is most probably a Windows format PATH printed by
19215 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19216 # path with ; separators, and with drive letters. We can handle the
19217 # drive letters (cygwin fileutils understands them), so leave them,
19218 # especially as we might pass files found there to a mingw objdump,
19219 # which wouldn't understand a cygwinified path. Ahh.
19220 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19222 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19226 # pw32 DLLs use 'pw' prefix rather than 'lib'
19227 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19233 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19236 dynamic_linker
='Win32 ld.exe'
19237 # FIXME: first we should search . and the directory the executable is in
19241 darwin
* | rhapsody
*)
19242 dynamic_linker
="$host_os dyld"
19243 version_type
=darwin
19246 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19247 soname_spec
='${libname}${release}${major}$shared_ext'
19248 shlibpath_overrides_runpath
=yes
19249 shlibpath_var
=DYLD_LIBRARY_PATH
19250 shrext_cmds
='.dylib'
19251 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19252 if test "$GCC" = yes; then
19253 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"`
19255 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
19257 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19265 soname_spec
='${libname}${release}${shared_ext}$major'
19266 shlibpath_var
=LD_LIBRARY_PATH
19277 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19278 soname_spec
='${libname}${release}${shared_ext}$major'
19279 shlibpath_var
=LD_LIBRARY_PATH
19280 shlibpath_overrides_runpath
=no
19281 hardcode_into_libs
=yes
19282 dynamic_linker
='GNU ld.so'
19285 freebsd
* | dragonfly
*)
19286 # DragonFly does not have aout. When/if they implement a new
19287 # versioning mechanism, adjust this.
19288 if test -x /usr
/bin
/objformat
; then
19289 objformat
=`/usr/bin/objformat`
19292 freebsd
[123]*) objformat
=aout
;;
19293 *) objformat
=elf
;;
19296 version_type
=freebsd-
$objformat
19297 case $version_type in
19299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19304 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19308 shlibpath_var
=LD_LIBRARY_PATH
19311 shlibpath_overrides_runpath
=yes
19313 freebsd3.
[01]* | freebsdelf3.
[01]*)
19314 shlibpath_overrides_runpath
=yes
19315 hardcode_into_libs
=yes
19317 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19318 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19319 shlibpath_overrides_runpath
=no
19320 hardcode_into_libs
=yes
19322 freebsd
*) # from 4.6 on
19323 shlibpath_overrides_runpath
=yes
19324 hardcode_into_libs
=yes
19333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19334 soname_spec
='${libname}${release}${shared_ext}$major'
19335 shlibpath_var
=LD_LIBRARY_PATH
19336 hardcode_into_libs
=yes
19339 hpux9
* | hpux10
* | hpux11
*)
19340 # Give a soname corresponding to the major version so that dld.sl refuses to
19341 # link against other versions.
19348 hardcode_into_libs
=yes
19349 dynamic_linker
="$host_os dld.so"
19350 shlibpath_var
=LD_LIBRARY_PATH
19351 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19353 soname_spec
='${libname}${release}${shared_ext}$major'
19354 if test "X$HPUX_IA64_MODE" = X32
; then
19355 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19357 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19359 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19363 hardcode_into_libs
=yes
19364 dynamic_linker
="$host_os dld.sl"
19365 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19366 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19367 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19368 soname_spec
='${libname}${release}${shared_ext}$major'
19369 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19370 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19374 dynamic_linker
="$host_os dld.sl"
19375 shlibpath_var
=SHLIB_PATH
19376 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19377 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19378 soname_spec
='${libname}${release}${shared_ext}$major'
19381 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19382 postinstall_cmds
='chmod 555 $lib'
19389 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19390 soname_spec
='${libname}${release}${shared_ext}$major'
19391 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19392 shlibpath_var
=LD_LIBRARY_PATH
19393 shlibpath_overrides_runpath
=no
19394 hardcode_into_libs
=yes
19397 irix5
* | irix6
* | nonstopux
*)
19399 nonstopux
*) version_type
=nonstopux
;;
19401 if test "$lt_cv_prog_gnu_ld" = yes; then
19409 soname_spec
='${libname}${release}${shared_ext}$major'
19410 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19412 irix5
* | nonstopux
*)
19413 libsuff
= shlibsuff
=
19416 case $LD in # libtool.m4 will add one of these switches to LD
19417 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
19418 libsuff
= shlibsuff
= libmagic
=32-bit;;
19419 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19420 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19421 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19422 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19423 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
19427 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19428 shlibpath_overrides_runpath
=no
19429 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19430 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19431 hardcode_into_libs
=yes
19434 # No shared lib support for Linux oldld, aout, or coff.
19435 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19439 # This must be Linux ELF.
19444 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19445 soname_spec
='${libname}${release}${shared_ext}$major'
19446 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19447 shlibpath_var
=LD_LIBRARY_PATH
19448 shlibpath_overrides_runpath
=no
19449 # This implies no fast_install, which is unacceptable.
19450 # Some rework will be needed to allow for fast_install
19451 # before this can be enabled.
19452 hardcode_into_libs
=yes
19454 # Append ld.so.conf contents to the search path
19455 if test -f /etc
/ld.so.conf
; then
19456 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' ' '`
19457 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19460 # We used to test for /lib/ld.so.1 and disable shared libraries on
19461 # powerpc, because MkLinux only supported shared libraries with the
19462 # GNU dynamic linker. Since this was broken with cross compilers,
19463 # most powerpc-linux boxes support dynamic linking these days and
19464 # people can always --disable-shared, the test was removed, and we
19465 # assume the GNU/Linux dynamic linker is in use.
19466 dynamic_linker
='GNU/Linux ld.so'
19473 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19474 soname_spec
='${libname}${release}${shared_ext}$major'
19475 shlibpath_var
=LD_LIBRARY_PATH
19476 shlibpath_overrides_runpath
=no
19477 hardcode_into_libs
=yes
19478 dynamic_linker
='GNU ld.so'
19485 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
19486 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19487 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19488 dynamic_linker
='NetBSD (a.out) ld.so'
19490 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19491 soname_spec
='${libname}${release}${shared_ext}$major'
19492 dynamic_linker
='NetBSD ld.elf_so'
19494 shlibpath_var
=LD_LIBRARY_PATH
19495 shlibpath_overrides_runpath
=yes
19496 hardcode_into_libs
=yes
19501 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19502 shlibpath_var
=LD_LIBRARY_PATH
19503 shlibpath_overrides_runpath
=yes
19510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19511 soname_spec
='${libname}${release}${shared_ext}$major'
19512 shlibpath_var
=LD_LIBRARY_PATH
19513 shlibpath_overrides_runpath
=yes
19518 sys_lib_dlsearch_path_spec
="/usr/lib"
19520 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19522 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19523 *) need_version
=no
;;
19525 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19526 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19527 shlibpath_var
=LD_LIBRARY_PATH
19528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19530 openbsd2.
[89] | openbsd2.
[89].
*)
19531 shlibpath_overrides_runpath
=no
19534 shlibpath_overrides_runpath
=yes
19538 shlibpath_overrides_runpath
=yes
19543 libname_spec
='$name'
19546 library_names_spec
='$libname${shared_ext} $libname.a'
19547 dynamic_linker
='OS/2 ld.exe'
19548 shlibpath_var
=LIBPATH
19551 osf3
* | osf4
* | osf5
*)
19555 soname_spec
='${libname}${release}${shared_ext}$major'
19556 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19557 shlibpath_var
=LD_LIBRARY_PATH
19558 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19559 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19567 soname_spec
='${libname}${release}${shared_ext}$major'
19568 shlibpath_var
=LD_LIBRARY_PATH
19569 shlibpath_overrides_runpath
=yes
19570 hardcode_into_libs
=yes
19571 # ldd complains unless libraries are executable
19572 postinstall_cmds
='chmod +x $lib'
19577 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19578 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19579 shlibpath_var
=LD_LIBRARY_PATH
19580 shlibpath_overrides_runpath
=yes
19581 if test "$with_gnu_ld" = yes; then
19589 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19590 soname_spec
='${libname}${release}${shared_ext}$major'
19591 shlibpath_var
=LD_LIBRARY_PATH
19592 case $host_vendor in
19594 shlibpath_overrides_runpath
=no
19596 export_dynamic_flag_spec
='${wl}-Blargedynsym'
19597 runpath_var
=LD_RUN_PATH
19605 shlibpath_overrides_runpath
=no
19606 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19612 if test -d /usr
/nec
;then
19614 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19615 soname_spec
='$libname${shared_ext}.$major'
19616 shlibpath_var
=LD_LIBRARY_PATH
19620 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19621 version_type
=freebsd-elf
19624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19625 soname_spec
='${libname}${release}${shared_ext}$major'
19626 shlibpath_var
=LD_LIBRARY_PATH
19627 hardcode_into_libs
=yes
19628 if test "$with_gnu_ld" = yes; then
19629 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19630 shlibpath_overrides_runpath
=no
19632 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19633 shlibpath_overrides_runpath
=yes
19636 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19640 sys_lib_dlsearch_path_spec
='/usr/lib'
19645 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19646 soname_spec
='${libname}${release}${shared_ext}$major'
19647 shlibpath_var
=LD_LIBRARY_PATH
19654 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19655 echo "${ECHO_T}$dynamic_linker" >&6; }
19656 test "$dynamic_linker" = no
&& can_build_shared
=no
19658 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19659 if test "$GCC" = yes; then
19660 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19663 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19664 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19665 hardcode_action_CXX
=
19666 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19667 test -n "$runpath_var_CXX" || \
19668 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19670 # We can hardcode non-existant directories.
19671 if test "$hardcode_direct_CXX" != no
&&
19672 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19673 # have to relink, otherwise we might link with an installed library
19674 # when we should be linking with a yet-to-be-installed one
19675 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19676 test "$hardcode_minus_L_CXX" != no
; then
19677 # Linking always hardcodes the temporary library directory.
19678 hardcode_action_CXX
=relink
19680 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19681 hardcode_action_CXX
=immediate
19684 # We cannot hardcode anything, or else we can only hardcode existing
19686 hardcode_action_CXX
=unsupported
19688 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19689 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19691 if test "$hardcode_action_CXX" = relink
; then
19692 # Fast installation is not supported
19693 enable_fast_install
=no
19694 elif test "$shlibpath_overrides_runpath" = yes ||
19695 test "$enable_shared" = no
; then
19696 # Fast installation is not necessary
19697 enable_fast_install
=needless
19701 # The else clause should only fire when bootstrapping the
19702 # libtool distribution, otherwise you forgot to ship ltmain.sh
19703 # with your package, and you will get complaints that there are
19704 # no rules to generate ltmain.sh.
19705 if test -f "$ltmain"; then
19706 # See if we are running on zsh, and set the options which allow our commands through
19707 # without removal of \ escapes.
19708 if test -n "${ZSH_VERSION+set}" ; then
19709 setopt NO_GLOB_SUBST
19711 # Now quote all the things that may contain metacharacters while being
19712 # careful not to overquote the AC_SUBSTed values. We take copies of the
19713 # variables and quote the copies for generation of the libtool script.
19714 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19716 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19717 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19718 deplibs_check_method reload_flag reload_cmds need_locks \
19719 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19720 lt_cv_sys_global_symbol_to_c_name_address \
19721 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19722 old_postinstall_cmds old_postuninstall_cmds \
19726 lt_prog_compiler_wl_CXX \
19727 lt_prog_compiler_pic_CXX \
19728 lt_prog_compiler_static_CXX \
19729 lt_prog_compiler_no_builtin_flag_CXX \
19730 export_dynamic_flag_spec_CXX \
19731 thread_safe_flag_spec_CXX \
19732 whole_archive_flag_spec_CXX \
19733 enable_shared_with_static_runtimes_CXX \
19734 old_archive_cmds_CXX \
19735 old_archive_from_new_cmds_CXX \
19736 predep_objects_CXX \
19737 postdep_objects_CXX \
19740 compiler_lib_search_path_CXX \
19742 archive_expsym_cmds_CXX \
19743 postinstall_cmds_CXX \
19744 postuninstall_cmds_CXX \
19745 old_archive_from_expsyms_cmds_CXX \
19746 allow_undefined_flag_CXX \
19747 no_undefined_flag_CXX \
19748 export_symbols_cmds_CXX \
19749 hardcode_libdir_flag_spec_CXX \
19750 hardcode_libdir_flag_spec_ld_CXX \
19751 hardcode_libdir_separator_CXX \
19752 hardcode_automatic_CXX \
19754 module_expsym_cmds_CXX \
19755 lt_cv_prog_compiler_c_o_CXX \
19756 exclude_expsyms_CXX \
19757 include_expsyms_CXX
; do
19760 old_archive_cmds_CXX | \
19761 old_archive_from_new_cmds_CXX | \
19762 archive_cmds_CXX | \
19763 archive_expsym_cmds_CXX | \
19764 module_cmds_CXX | \
19765 module_expsym_cmds_CXX | \
19766 old_archive_from_expsyms_cmds_CXX | \
19767 export_symbols_cmds_CXX | \
19768 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19769 postinstall_cmds | postuninstall_cmds | \
19770 old_postinstall_cmds | old_postuninstall_cmds | \
19771 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19772 # Double-quote double-evaled strings.
19773 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19776 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19782 *'\$0 --fallback-echo"')
19783 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19789 cat <<__EOF__ >> "$cfgfile"
19790 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19792 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19794 # Shell to use when invoking shell scripts.
19797 # Whether or not to build shared libraries.
19798 build_libtool_libs=$enable_shared
19800 # Whether or not to build static libraries.
19801 build_old_libs=$enable_static
19803 # Whether or not to add -lc for building shared libraries.
19804 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19806 # Whether or not to disallow shared libs when runtime libs are static
19807 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19809 # Whether or not to optimize for fast installation.
19810 fast_install=$enable_fast_install
19813 host_alias=$host_alias
19817 # The build system.
19818 build_alias=$build_alias
19822 # An echo program that does not interpret backslashes.
19827 AR_FLAGS=$lt_AR_FLAGS
19832 # LTCC compiler flags.
19833 LTCFLAGS=$lt_LTCFLAGS
19835 # A language-specific compiler.
19836 CC=$lt_compiler_CXX
19838 # Is the compiler the GNU C compiler?
19844 # The linker used to build libraries.
19847 # Whether we need hard or soft links.
19850 # A BSD-compatible nm program.
19853 # A symbol stripping program
19856 # Used to examine libraries when file_magic_cmd begins "file"
19857 MAGIC_CMD=$MAGIC_CMD
19859 # Used on cygwin: DLL creation program.
19862 # Used on cygwin: object dumper.
19865 # Used on cygwin: assembler.
19868 # The name of the directory that contains temporary libtool files.
19871 # How to create reloadable object files.
19872 reload_flag=$lt_reload_flag
19873 reload_cmds=$lt_reload_cmds
19875 # How to pass a linker flag through the compiler.
19876 wl=$lt_lt_prog_compiler_wl_CXX
19878 # Object file suffix (normally "o").
19879 objext="$ac_objext"
19881 # Old archive suffix (normally "a").
19884 # Shared library suffix (normally ".so").
19885 shrext_cmds='$shrext_cmds'
19887 # Executable file suffix (normally "").
19890 # Additional compiler flags for building library objects.
19891 pic_flag=$lt_lt_prog_compiler_pic_CXX
19894 # What is the maximum length of a command?
19895 max_cmd_len=$lt_cv_sys_max_cmd_len
19897 # Does compiler simultaneously support -c and -o options?
19898 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19900 # Must we lock files when doing compilation?
19901 need_locks=$lt_need_locks
19903 # Do we need the lib prefix for modules?
19904 need_lib_prefix=$need_lib_prefix
19906 # Do we need a version for libraries?
19907 need_version=$need_version
19909 # Whether dlopen is supported.
19910 dlopen_support=$enable_dlopen
19912 # Whether dlopen of programs is supported.
19913 dlopen_self=$enable_dlopen_self
19915 # Whether dlopen of statically linked programs is supported.
19916 dlopen_self_static=$enable_dlopen_self_static
19918 # Compiler flag to prevent dynamic linking.
19919 link_static_flag=$lt_lt_prog_compiler_static_CXX
19921 # Compiler flag to turn off builtin functions.
19922 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19924 # Compiler flag to allow reflexive dlopens.
19925 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19927 # Compiler flag to generate shared objects directly from archives.
19928 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19930 # Compiler flag to generate thread-safe objects.
19931 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19933 # Library versioning type.
19934 version_type=$version_type
19936 # Format of library name prefix.
19937 libname_spec=$lt_libname_spec
19939 # List of archive names. First name is the real one, the rest are links.
19940 # The last name is the one that the linker finds with -lNAME.
19941 library_names_spec=$lt_library_names_spec
19943 # The coded name of the library, if different from the real name.
19944 soname_spec=$lt_soname_spec
19946 # Commands used to build and install an old-style archive.
19948 old_archive_cmds=$lt_old_archive_cmds_CXX
19949 old_postinstall_cmds=$lt_old_postinstall_cmds
19950 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19952 # Create an old-style archive from a shared archive.
19953 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19955 # Create a temporary old-style archive to link instead of a shared archive.
19956 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19958 # Commands used to build and install a shared archive.
19959 archive_cmds=$lt_archive_cmds_CXX
19960 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19961 postinstall_cmds=$lt_postinstall_cmds
19962 postuninstall_cmds=$lt_postuninstall_cmds
19964 # Commands used to build a loadable module (assumed same as above if empty)
19965 module_cmds=$lt_module_cmds_CXX
19966 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19968 # Commands to strip libraries.
19969 old_striplib=$lt_old_striplib
19970 striplib=$lt_striplib
19972 # Dependencies to place before the objects being linked to create a
19974 predep_objects=$lt_predep_objects_CXX
19976 # Dependencies to place after the objects being linked to create a
19978 postdep_objects=$lt_postdep_objects_CXX
19980 # Dependencies to place before the objects being linked to create a
19982 predeps=$lt_predeps_CXX
19984 # Dependencies to place after the objects being linked to create a
19986 postdeps=$lt_postdeps_CXX
19988 # The library search path used internally by the compiler when linking
19989 # a shared library.
19990 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19992 # Method to check whether dependent libraries are shared objects.
19993 deplibs_check_method=$lt_deplibs_check_method
19995 # Command to use when deplibs_check_method == file_magic.
19996 file_magic_cmd=$lt_file_magic_cmd
19998 # Flag that allows shared libraries with undefined symbols to be built.
19999 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20001 # Flag that forces no undefined symbols.
20002 no_undefined_flag=$lt_no_undefined_flag_CXX
20004 # Commands used to finish a libtool library installation in a directory.
20005 finish_cmds=$lt_finish_cmds
20007 # Same as above, but a single script fragment to be evaled but not shown.
20008 finish_eval=$lt_finish_eval
20010 # Take the output of nm and produce a listing of raw symbols and C names.
20011 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20013 # Transform the output of nm in a proper C declaration
20014 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20016 # Transform the output of nm in a C name address pair
20017 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20019 # This is the shared library runtime path variable.
20020 runpath_var=$runpath_var
20022 # This is the shared library path variable.
20023 shlibpath_var=$shlibpath_var
20025 # Is shlibpath searched before the hard-coded library search path?
20026 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20028 # How to hardcode a shared library path into an executable.
20029 hardcode_action=$hardcode_action_CXX
20031 # Whether we should hardcode library paths into libraries.
20032 hardcode_into_libs=$hardcode_into_libs
20034 # Flag to hardcode \$libdir into a binary during linking.
20035 # This must work even if \$libdir does not exist.
20036 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20038 # If ld is used when linking, flag to hardcode \$libdir into
20039 # a binary during linking. This must work even if \$libdir does
20041 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20043 # Whether we need a single -rpath flag with a separated argument.
20044 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20046 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20047 # resulting binary.
20048 hardcode_direct=$hardcode_direct_CXX
20050 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20051 # resulting binary.
20052 hardcode_minus_L=$hardcode_minus_L_CXX
20054 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20055 # the resulting binary.
20056 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20058 # Set to yes if building a shared library automatically hardcodes DIR into the library
20059 # and all subsequent libraries and executables linked against it.
20060 hardcode_automatic=$hardcode_automatic_CXX
20062 # Variables whose values should be saved in libtool wrapper scripts and
20063 # restored at relink time.
20064 variables_saved_for_relink="$variables_saved_for_relink"
20066 # Whether libtool must link a program against all its dependency libraries.
20067 link_all_deplibs=$link_all_deplibs_CXX
20069 # Compile-time system search path for libraries
20070 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20072 # Run-time system search path for libraries
20073 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20075 # Fix the shell variable \$srcfile for the compiler.
20076 fix_srcfile_path="$fix_srcfile_path_CXX"
20078 # Set to yes if exported symbols are required.
20079 always_export_symbols=$always_export_symbols_CXX
20081 # The commands to list exported symbols.
20082 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20084 # The commands to extract the exported symbol list from a shared archive.
20085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20087 # Symbols that should not be listed in the preloaded symbols.
20088 exclude_expsyms=$lt_exclude_expsyms_CXX
20090 # Symbols that must always be exported.
20091 include_expsyms=$lt_include_expsyms_CXX
20093 # ### END LIBTOOL TAG CONFIG: $tagname
20099 # If there is no Makefile yet, we rely on a make rule to execute
20100 # `config.status --recheck' to rerun these tests and create the
20101 # libtool script then.
20102 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20103 if test -f "$ltmain_in"; then
20104 test -f Makefile
&& make "$ltmain"
20110 ac_cpp
='$CPP $CPPFLAGS'
20111 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20112 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20113 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20119 with_gnu_ldcxx
=$with_gnu_ld
20120 with_gnu_ld
=$lt_save_with_gnu_ld
20121 lt_cv_path_LDCXX
=$lt_cv_path_LD
20122 lt_cv_path_LD
=$lt_save_path_LD
20123 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
20124 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
20132 if test -n "$F77" && test "X$F77" != "Xno"; then
20135 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20136 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20137 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
20140 archive_cmds_need_lc_F77
=no
20141 allow_undefined_flag_F77
=
20142 always_export_symbols_F77
=no
20143 archive_expsym_cmds_F77
=
20144 export_dynamic_flag_spec_F77
=
20145 hardcode_direct_F77
=no
20146 hardcode_libdir_flag_spec_F77
=
20147 hardcode_libdir_flag_spec_ld_F77
=
20148 hardcode_libdir_separator_F77
=
20149 hardcode_minus_L_F77
=no
20150 hardcode_automatic_F77
=no
20152 module_expsym_cmds_F77
=
20153 link_all_deplibs_F77
=unknown
20154 old_archive_cmds_F77
=$old_archive_cmds
20155 no_undefined_flag_F77
=
20156 whole_archive_flag_spec_F77
=
20157 enable_shared_with_static_runtimes_F77
=no
20159 # Source file extension for f77 test sources.
20162 # Object file extension for compiled f77 test sources.
20166 # Code to be used in simple compile tests
20167 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
20169 # Code to be used in simple link tests
20170 lt_simple_link_test_code
=" program t\n end\n"
20172 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20174 # If no C compiler was specified, use CC.
20177 # If no C compiler flags were specified, use CFLAGS.
20178 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20180 # Allow CC to be a program name with arguments.
20184 # save warnings/boilerplate of simple test code
20185 ac_outfile
=conftest.
$ac_objext
20186 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
20187 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20188 _lt_compiler_boilerplate
=`cat conftest.err`
20191 ac_outfile
=conftest.
$ac_objext
20192 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
20193 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20194 _lt_linker_boilerplate
=`cat conftest.err`
20198 # Allow CC to be a program name with arguments.
20203 for cc_temp
in $compiler""; do
20205 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20206 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20211 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20214 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20215 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20216 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20217 echo "${ECHO_T}$can_build_shared" >&6; }
20219 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20220 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20221 test "$can_build_shared" = "no" && enable_shared
=no
20223 # On AIX, shared libraries and static libraries use the same namespace, and
20224 # are all built from PIC.
20227 test "$enable_shared" = yes && enable_static
=no
20228 if test -n "$RANLIB"; then
20229 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
20230 postinstall_cmds
='$RANLIB $lib'
20234 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
20235 test "$enable_shared" = yes && enable_static
=no
20239 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20240 echo "${ECHO_T}$enable_shared" >&6; }
20242 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20243 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20244 # Make sure either enable_shared or enable_static is yes.
20245 test "$enable_shared" = yes || enable_static
=yes
20246 { echo "$as_me:$LINENO: result: $enable_static" >&5
20247 echo "${ECHO_T}$enable_static" >&6; }
20252 lt_prog_compiler_wl_F77
=
20253 lt_prog_compiler_pic_F77
=
20254 lt_prog_compiler_static_F77
=
20256 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20257 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20259 if test "$GCC" = yes; then
20260 lt_prog_compiler_wl_F77
='-Wl,'
20261 lt_prog_compiler_static_F77
='-static'
20265 # All AIX code is PIC.
20266 if test "$host_cpu" = ia64
; then
20267 # AIX 5 now supports IA64 processor
20268 lt_prog_compiler_static_F77
='-Bstatic'
20273 # FIXME: we need at least 68020 code to build shared libraries, but
20274 # adding the `-m68020' flag to GCC prevents building anything better,
20276 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
20279 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20280 # PIC is the default for these OSes.
20283 mingw
* | pw32
* | os2
*)
20284 # This hack is so that the source file can tell whether it is being
20285 # built for inclusion in a dll (and should export symbols for example).
20286 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
20289 darwin
* | rhapsody
*)
20290 # PIC is the default on this platform
20291 # Common symbols not allowed in MH_DYLIB files
20292 lt_prog_compiler_pic_F77
='-fno-common'
20296 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20297 # Instead, we relocate shared libraries at runtime.
20301 # Just because we use GCC doesn't mean we suddenly get shared libraries
20302 # on systems that don't support them.
20303 lt_prog_compiler_can_build_shared_F77
=no
20308 if test -d /usr
/nec
; then
20309 lt_prog_compiler_pic_F77
=-Kconform_pic
20314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20315 # not for PA HP-UX.
20321 lt_prog_compiler_pic_F77
='-fPIC'
20327 lt_prog_compiler_pic_F77
='-fPIC'
20331 # PORTME Check for flag to pass linker flags through the system compiler.
20334 lt_prog_compiler_wl_F77
='-Wl,'
20335 if test "$host_cpu" = ia64
; then
20336 # AIX 5 now supports IA64 processor
20337 lt_prog_compiler_static_F77
='-Bstatic'
20339 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
20343 # PIC is the default on this platform
20344 # Common symbols not allowed in MH_DYLIB files
20345 case $cc_basename in
20347 lt_prog_compiler_pic_F77
='-qnocommon'
20348 lt_prog_compiler_wl_F77
='-Wl,'
20353 mingw
* | pw32
* | os2
*)
20354 # This hack is so that the source file can tell whether it is being
20355 # built for inclusion in a dll (and should export symbols for example).
20356 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
20359 hpux9
* | hpux10
* | hpux11
*)
20360 lt_prog_compiler_wl_F77
='-Wl,'
20361 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20362 # not for PA HP-UX.
20368 lt_prog_compiler_pic_F77
='+Z'
20371 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20372 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
20375 irix5
* | irix6
* | nonstopux
*)
20376 lt_prog_compiler_wl_F77
='-Wl,'
20377 # PIC (with -KPIC) is the default.
20378 lt_prog_compiler_static_F77
='-non_shared'
20382 lt_prog_compiler_pic_F77
='-KPIC'
20383 lt_prog_compiler_static_F77
='-Bstatic'
20387 case $cc_basename in
20389 lt_prog_compiler_wl_F77
='-Wl,'
20390 lt_prog_compiler_pic_F77
='-KPIC'
20391 lt_prog_compiler_static_F77
='-static'
20393 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
20394 # Portland Group compilers (*not* the Pentium gcc compiler,
20395 # which looks to be a dead project)
20396 lt_prog_compiler_wl_F77
='-Wl,'
20397 lt_prog_compiler_pic_F77
='-fpic'
20398 lt_prog_compiler_static_F77
='-Bstatic'
20401 lt_prog_compiler_wl_F77
='-Wl,'
20402 # All Alpha code is PIC.
20403 lt_prog_compiler_static_F77
='-non_shared'
20408 osf3
* | osf4
* | osf5
*)
20409 lt_prog_compiler_wl_F77
='-Wl,'
20410 # All OSF/1 code is PIC.
20411 lt_prog_compiler_static_F77
='-non_shared'
20415 lt_prog_compiler_pic_F77
='-KPIC'
20416 lt_prog_compiler_static_F77
='-Bstatic'
20417 case $cc_basename in
20418 f77
* | f90
* | f95
*)
20419 lt_prog_compiler_wl_F77
='-Qoption ld ';;
20421 lt_prog_compiler_wl_F77
='-Wl,';;
20426 lt_prog_compiler_wl_F77
='-Qoption ld '
20427 lt_prog_compiler_pic_F77
='-PIC'
20428 lt_prog_compiler_static_F77
='-Bstatic'
20431 sysv4 | sysv4.2uw2
* | sysv4.3
*)
20432 lt_prog_compiler_wl_F77
='-Wl,'
20433 lt_prog_compiler_pic_F77
='-KPIC'
20434 lt_prog_compiler_static_F77
='-Bstatic'
20438 if test -d /usr
/nec
;then
20439 lt_prog_compiler_pic_F77
='-Kconform_pic'
20440 lt_prog_compiler_static_F77
='-Bstatic'
20444 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20445 lt_prog_compiler_wl_F77
='-Wl,'
20446 lt_prog_compiler_pic_F77
='-KPIC'
20447 lt_prog_compiler_static_F77
='-Bstatic'
20451 lt_prog_compiler_wl_F77
='-Wl,'
20452 lt_prog_compiler_can_build_shared_F77
=no
20456 lt_prog_compiler_pic_F77
='-pic'
20457 lt_prog_compiler_static_F77
='-Bstatic'
20461 lt_prog_compiler_can_build_shared_F77
=no
20466 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20467 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20470 # Check to make sure the PIC flag actually works.
20472 if test -n "$lt_prog_compiler_pic_F77"; then
20474 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20475 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20476 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20479 lt_prog_compiler_pic_works_F77
=no
20480 ac_outfile
=conftest.
$ac_objext
20481 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20482 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
20483 # Insert the option either (1) after the last *FLAGS variable, or
20484 # (2) before a word containing "conftest.", or (3) at the end.
20485 # Note that $ac_compile itself does not contain backslashes and begins
20486 # with a dollar sign (not a hyphen), so the echo should work correctly.
20487 # The option is referenced via a variable to avoid confusing sed.
20488 lt_compile
=`echo "$ac_compile" | $SED \
20489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20491 -e 's:$: $lt_compiler_flag:'`
20492 (eval echo "\"\$as_me:20492: $lt_compile\"" >&5)
20493 (eval "$lt_compile" 2>conftest.err
)
20495 cat conftest.err
>&5
20496 echo "$as_me:20496: \$? = $ac_status" >&5
20497 if (exit $ac_status) && test -s "$ac_outfile"; then
20498 # The compiler can only warn and ignore the option if not recognized
20499 # So say no if there are warnings other than the usual output.
20500 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
20501 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20502 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20503 lt_prog_compiler_pic_works_F77
=yes
20509 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20510 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
20512 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
20513 case $lt_prog_compiler_pic_F77 in
20515 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
20518 lt_prog_compiler_pic_F77
=
20519 lt_prog_compiler_can_build_shared_F77
=no
20524 # For platforms which do not support PIC, -DPIC is meaningless:
20526 lt_prog_compiler_pic_F77
=
20529 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
20534 # Check to make sure the static flag actually works.
20536 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
20537 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20538 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20539 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20540 echo $ECHO_N "(cached) $ECHO_C" >&6
20542 lt_prog_compiler_static_works_F77
=no
20543 save_LDFLAGS
="$LDFLAGS"
20544 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20545 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
20546 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20547 # The linker can only warn and ignore the option if not recognized
20548 # So say no if there are warnings
20549 if test -s conftest.err
; then
20550 # Append any errors to the config.log.
20551 cat conftest.err
1>&5
20552 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
20553 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20554 if diff conftest.exp conftest.er2
>/dev
/null
; then
20555 lt_prog_compiler_static_works_F77
=yes
20558 lt_prog_compiler_static_works_F77
=yes
20562 LDFLAGS
="$save_LDFLAGS"
20565 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20566 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20568 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
20571 lt_prog_compiler_static_F77
=
20575 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20576 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20577 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 lt_cv_prog_compiler_c_o_F77
=no
20581 $rm -r conftest
2>/dev
/null
20585 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
20587 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20588 # Insert the option either (1) after the last *FLAGS variable, or
20589 # (2) before a word containing "conftest.", or (3) at the end.
20590 # Note that $ac_compile itself does not contain backslashes and begins
20591 # with a dollar sign (not a hyphen), so the echo should work correctly.
20592 lt_compile
=`echo "$ac_compile" | $SED \
20593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20595 -e 's:$: $lt_compiler_flag:'`
20596 (eval echo "\"\$as_me:20596: $lt_compile\"" >&5)
20597 (eval "$lt_compile" 2>out
/conftest.err
)
20599 cat out
/conftest.err
>&5
20600 echo "$as_me:20600: \$? = $ac_status" >&5
20601 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20603 # The compiler can only warn and ignore the option if not recognized
20604 # So say no if there are warnings
20605 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
20606 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20607 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20608 lt_cv_prog_compiler_c_o_F77
=yes
20613 # SGI C++ compiler will create directory out/ii_files/ for
20614 # template instantiation
20615 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
20616 $rm out
/* && rmdir out
20622 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20623 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20626 hard_links
="nottested"
20627 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
20628 # do not overwrite the value of need_locks provided by the user
20629 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20630 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20633 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20635 ln conftest.a conftest.b
2>&5 || hard_links
=no
20636 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20637 { echo "$as_me:$LINENO: result: $hard_links" >&5
20638 echo "${ECHO_T}$hard_links" >&6; }
20639 if test "$hard_links" = no
; then
20640 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20641 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20648 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20649 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20652 allow_undefined_flag_F77
=
20653 enable_shared_with_static_runtimes_F77
=no
20655 archive_expsym_cmds_F77
=
20656 old_archive_From_new_cmds_F77
=
20657 old_archive_from_expsyms_cmds_F77
=
20658 export_dynamic_flag_spec_F77
=
20659 whole_archive_flag_spec_F77
=
20660 thread_safe_flag_spec_F77
=
20661 hardcode_libdir_flag_spec_F77
=
20662 hardcode_libdir_flag_spec_ld_F77
=
20663 hardcode_libdir_separator_F77
=
20664 hardcode_direct_F77
=no
20665 hardcode_minus_L_F77
=no
20666 hardcode_shlibpath_var_F77
=unsupported
20667 link_all_deplibs_F77
=unknown
20668 hardcode_automatic_F77
=no
20670 module_expsym_cmds_F77
=
20671 always_export_symbols_F77
=no
20672 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20673 # include_expsyms should be a list of space-separated symbols to be *always*
20674 # included in the symbol list
20675 include_expsyms_F77
=
20676 # exclude_expsyms can be an extended regexp of symbols to exclude
20677 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20678 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20679 # as well as any symbol that contains `d'.
20680 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
20681 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20682 # platforms (ab)use it in PIC code, but their linkers get confused if
20683 # the symbol is explicitly referenced. Since portable code cannot
20684 # rely on this symbol name, it's probably fine to never include it in
20685 # preloaded symbol tables.
20686 extract_expsyms_cmds
=
20687 # Just being paranoid about ensuring that cc_basename is set.
20688 for cc_temp
in $compiler""; do
20690 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20691 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20696 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20699 cygwin
* | mingw
* | pw32
*)
20700 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20701 # When not using gcc, we currently assume that we are using
20702 # Microsoft Visual C++.
20703 if test "$GCC" != yes; then
20708 # we just hope/assume this is gcc and not c89 (= MSVC++)
20717 if test "$with_gnu_ld" = yes; then
20718 # If archive_cmds runs LD, not CC, wlarc should be empty
20721 # Set some defaults for GNU ld with shared library support. These
20722 # are reset later if shared libraries are not supported. Putting them
20723 # here allows them to be overridden if necessary.
20724 runpath_var
=LD_RUN_PATH
20725 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
20726 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
20727 # ancient GNU ld didn't support --whole-archive et. al.
20728 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
20729 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20731 whole_archive_flag_spec_F77
=
20733 supports_anon_versioning
=no
20734 case `$LD -v 2>/dev/null` in
20735 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
20736 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
20737 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
20738 *\
2.11.
*) ;; # other 2.11 versions
20739 *) supports_anon_versioning
=yes ;;
20742 # See if GNU ld supports shared libraries.
20744 aix3
* | aix4
* | aix5
*)
20745 # On AIX/PPC, the GNU linker is very broken
20746 if test "$host_cpu" != ia64
; then
20750 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20751 *** to be unable to reliably create shared libraries on AIX.
20752 *** Therefore, libtool is disabling shared libraries support. If you
20753 *** really care for shared libraries, you may want to modify your PATH
20754 *** so that a non-GNU linker is found, and then restart.
20761 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)'
20762 hardcode_libdir_flag_spec_F77
='-L$libdir'
20763 hardcode_minus_L_F77
=yes
20765 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20766 # that the semantics of dynamic libraries on AmigaOS, at least up
20767 # to version 4, is to share data among multiple programs linked
20768 # with the same dynamic library. Since this doesn't match the
20769 # behavior of shared libraries on other platforms, we can't use
20775 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
20776 allow_undefined_flag_F77
=unsupported
20777 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20778 # support --undefined. This deserves some investigation. FIXME
20779 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20785 cygwin
* | mingw
* | pw32
*)
20786 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20787 # as there is no search path for DLLs.
20788 hardcode_libdir_flag_spec_F77
='-L$libdir'
20789 allow_undefined_flag_F77
=unsupported
20790 always_export_symbols_F77
=no
20791 enable_shared_with_static_runtimes_F77
=yes
20792 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20794 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
20795 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20796 # If the export-symbols file already is a .def file (1st line
20797 # is EXPORTS), use it as is; otherwise, prepend...
20798 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20799 cp $export_symbols $output_objdir/$soname.def;
20801 echo EXPORTS > $output_objdir/$soname.def;
20802 cat $export_symbols >> $output_objdir/$soname.def;
20804 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20811 hardcode_direct_F77
=no
20812 hardcode_shlibpath_var_F77
=no
20813 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
20814 export_dynamic_flag_spec_F77
='${wl}-E'
20815 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20816 # Instead, shared libraries are loaded at an image base (0x10000000 by
20817 # default) and relocated if they conflict, which is a slow very memory
20818 # consuming and fragmenting process. To avoid this, we pick a random,
20819 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20820 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20821 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'
20822 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'
20826 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
20828 case $cc_basename,$host_cpu in
20829 pgcc
*) # Portland Group C compiler
20830 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'
20831 tmp_addflag
=' $pic_flag'
20833 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
20834 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'
20835 tmp_addflag
=' $pic_flag -Mnomain' ;;
20836 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
20837 tmp_addflag
=' -i_dynamic' ;;
20838 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
20839 tmp_addflag
=' -i_dynamic -nofor_main' ;;
20840 ifc
* | ifort
*) # Intel Fortran compiler
20841 tmp_addflag
=' -nofor_main' ;;
20843 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20845 if test $supports_anon_versioning = yes; then
20846 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
20847 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20848 $echo "local: *; };" >> $output_objdir/$libname.ver~
20849 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20857 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
20858 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20861 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20862 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20867 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
20871 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20872 *** create shared libraries on Solaris systems. Therefore, libtool
20873 *** is disabling shared libraries support. We urge you to upgrade GNU
20874 *** binutils to release 2.9.1 or newer. Another option is to modify
20875 *** your PATH or compiler configuration so that the native linker is
20876 *** used, and then restart.
20879 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
20880 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20881 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20887 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
20888 case `$LD -v 2>&1` in
20889 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
20893 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20894 *** reliably create shared libraries on SCO systems. Therefore, libtool
20895 *** is disabling shared libraries support. We urge you to upgrade GNU
20896 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20897 *** your PATH or compiler configuration so that the native linker is
20898 *** used, and then restart.
20903 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
20904 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20905 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20906 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20915 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20917 hardcode_direct_F77
=yes
20918 hardcode_shlibpath_var_F77
=no
20922 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
20923 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20924 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20931 if test "$ld_shlibs_F77" = no
; then
20933 hardcode_libdir_flag_spec_F77
=
20934 export_dynamic_flag_spec_F77
=
20935 whole_archive_flag_spec_F77
=
20938 # PORTME fill in a description of your system's linker (not GNU ld)
20941 allow_undefined_flag_F77
=unsupported
20942 always_export_symbols_F77
=yes
20943 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'
20944 # Note: this linker hardcodes the directories in LIBPATH if there
20945 # are no directories specified by -L.
20946 hardcode_minus_L_F77
=yes
20947 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20948 # Neither direct hardcoding nor static linking is supported with a
20950 hardcode_direct_F77
=unsupported
20955 if test "$host_cpu" = ia64
; then
20956 # On IA64, the linker does run time linking by default, so we don't
20957 # have to do anything special.
20958 aix_use_runtimelinking
=no
20959 exp_sym_flag
='-Bexport'
20962 # If we're using GNU nm, then we don't want the "-C" option.
20963 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20964 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
20965 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'
20967 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'
20969 aix_use_runtimelinking
=no
20971 # Test if we are trying to use run time linking or normal
20972 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20973 # need to do runtime linking.
20974 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
20975 for ld_flag
in $LDFLAGS; do
20976 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
20977 aix_use_runtimelinking
=yes
20984 exp_sym_flag
='-bexport'
20985 no_entry_flag
='-bnoentry'
20988 # When large executables or shared objects are built, AIX ld can
20989 # have problems creating the table of contents. If linking a library
20990 # or program results in "error TOC overflow" add -mminimal-toc to
20991 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20992 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20994 archive_cmds_F77
=''
20995 hardcode_direct_F77
=yes
20996 hardcode_libdir_separator_F77
=':'
20997 link_all_deplibs_F77
=yes
20999 if test "$GCC" = yes; then
21000 case $host_os in aix4.
[012]|aix4.
[012].
*)
21001 # We only want to do this on AIX 4.2 and lower, the check
21002 # below for broken collect2 doesn't work under 4.3+
21003 collect2name
=`${CC} -print-prog-name=collect2`
21004 if test -f "$collect2name" && \
21005 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
21007 # We have reworked collect2
21008 hardcode_direct_F77
=yes
21010 # We have old collect2
21011 hardcode_direct_F77
=unsupported
21012 # It fails to find uninstalled libraries when the uninstalled
21013 # path is not listed in the libpath. Setting hardcode_minus_L
21014 # to unsupported forces relinking
21015 hardcode_minus_L_F77
=yes
21016 hardcode_libdir_flag_spec_F77
='-L$libdir'
21017 hardcode_libdir_separator_F77
=
21021 shared_flag
='-shared'
21022 if test "$aix_use_runtimelinking" = yes; then
21023 shared_flag
="$shared_flag "'${wl}-G'
21027 if test "$host_cpu" = ia64
; then
21028 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21029 # chokes on -Wl,-G. The following line is correct:
21032 if test "$aix_use_runtimelinking" = yes; then
21033 shared_flag
='${wl}-G'
21035 shared_flag
='${wl}-bM:SRE'
21040 # It seems that -bexpall does not export symbols beginning with
21041 # underscore (_), so it is better to generate a list of symbols to export.
21042 always_export_symbols_F77
=yes
21043 if test "$aix_use_runtimelinking" = yes; then
21044 # Warning - without using the other runtime loading flags (-brtl),
21045 # -berok will link without error, but may produce a broken library.
21046 allow_undefined_flag_F77
='-berok'
21047 # Determine the default libpath from the value encoded in an empty executable.
21048 cat >conftest.
$ac_ext <<_ACEOF
21053 rm -f conftest.
$ac_objext conftest
$ac_exeext
21054 if { (ac_try
="$ac_link"
21055 case "(($ac_try" in
21056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_link") 2>conftest.er1
21062 grep -v '^ *+' conftest.er1 >conftest.err
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } && {
21067 test -z "$ac_f77_werror_flag" ||
21068 test ! -s conftest.err
21069 } && test -s conftest$ac_exeext &&
21070 $as_test_x conftest$ac_exeext; then
21072 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21074 # Check for a 64-bit object if we didn't find anything.
21075 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; }
21078 echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21085 conftest$ac_exeext conftest.$ac_ext
21086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21088 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21089 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"
21091 if test "$host_cpu" = ia64; then
21092 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21093 allow_undefined_flag_F77="-z nodefs"
21094 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"
21096 # Determine the default libpath from the value encoded in an empty executable.
21097 cat >conftest.$ac_ext <<_ACEOF
21102 rm -f conftest.$ac_objext conftest$ac_exeext
21103 if { (ac_try="$ac_link"
21104 case "(($ac_try" in
21105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21106 *) ac_try_echo
=$ac_try;;
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109 (eval "$ac_link") 2>conftest.er1
21111 grep -v '^ *+' conftest.er1
>conftest.err
21113 cat conftest.err
>&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); } && {
21116 test -z "$ac_f77_werror_flag" ||
21117 test ! -s conftest.err
21118 } && test -s conftest
$ac_exeext &&
21119 $as_test_x conftest
$ac_exeext; then
21121 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21123 # Check for a 64-bit object if we didn't find anything.
21124 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; }
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.
$ac_ext >&5
21133 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21134 conftest
$ac_exeext conftest.
$ac_ext
21135 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
21137 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
21138 # Warning - without using the other run time loading flags,
21139 # -berok will link without error, but may produce a broken library.
21140 no_undefined_flag_F77
=' ${wl}-bernotok'
21141 allow_undefined_flag_F77
=' ${wl}-berok'
21142 # Exported symbols can be pulled into shared objects from archives
21143 whole_archive_flag_spec_F77
='$convenience'
21144 archive_cmds_need_lc_F77
=yes
21145 # This is similar to how AIX traditionally builds its shared libraries.
21146 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'
21152 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)'
21153 hardcode_libdir_flag_spec_F77
='-L$libdir'
21154 hardcode_minus_L_F77
=yes
21155 # see comment about different semantics on the GNU ld section
21160 export_dynamic_flag_spec_F77
=-rdynamic
21163 cygwin
* | mingw
* | pw32
*)
21164 # When not using gcc, we currently assume that we are using
21165 # Microsoft Visual C++.
21166 # hardcode_libdir_flag_spec is actually meaningless, as there is
21167 # no search path for DLLs.
21168 hardcode_libdir_flag_spec_F77
=' '
21169 allow_undefined_flag_F77
=unsupported
21170 # Tell ltmain to make .lib files, not .a files.
21172 # Tell ltmain to make .dll files, not .so files.
21174 # FIXME: Setting linknames here is a bad hack.
21175 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21176 # The linker will automatically build a .lib file if we build a DLL.
21177 old_archive_From_new_cmds_F77
='true'
21178 # FIXME: Should let the user specify the lib program.
21179 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
21180 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
21181 enable_shared_with_static_runtimes_F77
=yes
21184 darwin
* | rhapsody
*)
21186 rhapsody
* | darwin1.
[012])
21187 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
21190 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21191 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21193 case ${MACOSX_DEPLOYMENT_TARGET} in
21195 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21198 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
21204 archive_cmds_need_lc_F77
=no
21205 hardcode_direct_F77
=no
21206 hardcode_automatic_F77
=yes
21207 hardcode_shlibpath_var_F77
=unsupported
21208 whole_archive_flag_spec_F77
=''
21209 link_all_deplibs_F77
=yes
21210 if test "$GCC" = yes ; then
21211 output_verbose_link_cmd
='echo'
21212 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21213 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21214 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21215 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}'
21216 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}'
21218 case $cc_basename in
21220 output_verbose_link_cmd
='echo'
21221 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21222 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21223 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21224 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}'
21225 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}'
21235 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21236 hardcode_libdir_flag_spec_F77
='-L$libdir'
21237 hardcode_shlibpath_var_F77
=no
21244 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21245 # support. Future versions do this automatically, but an explicit c++rt0.o
21246 # does not break anything, and helps significantly (at the cost of a little
21249 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21250 hardcode_libdir_flag_spec_F77
='-R$libdir'
21251 hardcode_direct_F77
=yes
21252 hardcode_shlibpath_var_F77
=no
21255 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21257 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21258 hardcode_direct_F77
=yes
21259 hardcode_minus_L_F77
=yes
21260 hardcode_shlibpath_var_F77
=no
21263 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21264 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
21265 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21266 hardcode_libdir_flag_spec_F77
='-R$libdir'
21267 hardcode_direct_F77
=yes
21268 hardcode_shlibpath_var_F77
=no
21272 if test "$GCC" = yes; then
21273 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'
21275 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'
21277 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
21278 hardcode_libdir_separator_F77
=:
21279 hardcode_direct_F77
=yes
21281 # hardcode_minus_L: Not really in the search PATH,
21282 # but as the default location of the library.
21283 hardcode_minus_L_F77
=yes
21284 export_dynamic_flag_spec_F77
='${wl}-E'
21288 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
21289 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21291 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21293 if test "$with_gnu_ld" = no
; then
21294 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
21295 hardcode_libdir_separator_F77
=:
21297 hardcode_direct_F77
=yes
21298 export_dynamic_flag_spec_F77
='${wl}-E'
21300 # hardcode_minus_L: Not really in the search PATH,
21301 # but as the default location of the library.
21302 hardcode_minus_L_F77
=yes
21307 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
21310 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21313 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21316 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21322 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21325 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21328 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21332 if test "$with_gnu_ld" = no
; then
21333 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
21334 hardcode_libdir_separator_F77
=:
21338 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
21339 hardcode_direct_F77
=no
21340 hardcode_shlibpath_var_F77
=no
21343 hardcode_direct_F77
=yes
21344 export_dynamic_flag_spec_F77
='${wl}-E'
21346 # hardcode_minus_L: Not really in the search PATH,
21347 # but as the default location of the library.
21348 hardcode_minus_L_F77
=yes
21354 irix5
* | irix6
* | nonstopux
*)
21355 if test "$GCC" = yes; then
21356 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'
21358 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'
21359 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
21361 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
21362 hardcode_libdir_separator_F77
=:
21363 link_all_deplibs_F77
=yes
21367 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
21368 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21370 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21372 hardcode_libdir_flag_spec_F77
='-R$libdir'
21373 hardcode_direct_F77
=yes
21374 hardcode_shlibpath_var_F77
=no
21378 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21379 hardcode_direct_F77
=yes
21380 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
21381 hardcode_libdir_separator_F77
=:
21382 hardcode_shlibpath_var_F77
=no
21386 hardcode_direct_F77
=yes
21387 hardcode_shlibpath_var_F77
=no
21388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21389 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21390 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21391 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
21392 export_dynamic_flag_spec_F77
='${wl}-E'
21395 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
21396 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21397 hardcode_libdir_flag_spec_F77
='-R$libdir'
21400 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21401 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
21408 hardcode_libdir_flag_spec_F77
='-L$libdir'
21409 hardcode_minus_L_F77
=yes
21410 allow_undefined_flag_F77
=unsupported
21411 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'
21412 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21416 if test "$GCC" = yes; then
21417 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
21418 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'
21420 allow_undefined_flag_F77
=' -expect_unresolved \*'
21421 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'
21423 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
21424 hardcode_libdir_separator_F77
=:
21427 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
21428 if test "$GCC" = yes; then
21429 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
21430 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'
21431 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
21433 allow_undefined_flag_F77
=' -expect_unresolved \*'
21434 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'
21435 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~
21436 $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'
21438 # Both c and cxx compiler support -rpath directly
21439 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
21441 hardcode_libdir_separator_F77
=:
21445 no_undefined_flag_F77
=' -z text'
21446 if test "$GCC" = yes; then
21448 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21449 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21450 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21453 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21454 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21455 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21457 hardcode_libdir_flag_spec_F77
='-R$libdir'
21458 hardcode_shlibpath_var_F77
=no
21460 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21462 # The compiler driver will combine linker options so we
21463 # cannot just pass the convience library names through
21464 # without $wl, iff we do not link with $LD.
21465 # Luckily, gcc supports the same syntax we need for Sun Studio.
21466 # Supported since Solaris 2.6 (maybe 2.5.1?)
21469 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
21471 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' ;;
21474 link_all_deplibs_F77
=yes
21478 if test "x$host_vendor" = xsequent
; then
21479 # Use $CC to link under sequent, because it throws in some extra .o
21480 # files that make .init and .fini sections work.
21481 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21483 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21485 hardcode_libdir_flag_spec_F77
='-L$libdir'
21486 hardcode_direct_F77
=yes
21487 hardcode_minus_L_F77
=yes
21488 hardcode_shlibpath_var_F77
=no
21492 case $host_vendor in
21494 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21495 hardcode_direct_F77
=yes # is this really true???
21498 ## LD is ld it makes a PLAMLIB
21499 ## CC just makes a GrossModule.
21500 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21501 reload_cmds_F77
='$CC -r -o $output$reload_objs'
21502 hardcode_direct_F77
=no
21505 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21506 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
21509 runpath_var
='LD_RUN_PATH'
21510 hardcode_shlibpath_var_F77
=no
21514 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21515 hardcode_shlibpath_var_F77
=no
21516 export_dynamic_flag_spec_F77
='-Bexport'
21520 if test -d /usr
/nec
; then
21521 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21522 hardcode_shlibpath_var_F77
=no
21523 runpath_var
=LD_RUN_PATH
21524 hardcode_runpath_var
=yes
21529 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
21530 no_undefined_flag_F77
='${wl}-z,text'
21531 archive_cmds_need_lc_F77
=no
21532 hardcode_shlibpath_var_F77
=no
21533 runpath_var
='LD_RUN_PATH'
21535 if test "$GCC" = yes; then
21536 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21537 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21539 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21540 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21544 sysv5
* | sco3.2v5
* | sco5v6
*)
21545 # Note: We can NOT use -z defs as we might desire, because we do not
21546 # link with -lc, and that would cause any symbols used from libc to
21547 # always be unresolved, which means just about no library would
21548 # ever link correctly. If we're not using GNU ld we use -z text
21549 # though, which does catch some bad symbols but isn't as heavy-handed
21551 no_undefined_flag_F77
='${wl}-z,text'
21552 allow_undefined_flag_F77
='${wl}-z,nodefs'
21553 archive_cmds_need_lc_F77
=no
21554 hardcode_shlibpath_var_F77
=no
21555 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21556 hardcode_libdir_separator_F77
=':'
21557 link_all_deplibs_F77
=yes
21558 export_dynamic_flag_spec_F77
='${wl}-Bexport'
21559 runpath_var
='LD_RUN_PATH'
21561 if test "$GCC" = yes; then
21562 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21563 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21565 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21566 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21571 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21572 hardcode_libdir_flag_spec_F77
='-L$libdir'
21573 hardcode_shlibpath_var_F77
=no
21582 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21583 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21584 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
21587 # Do we need to explicitly link libc?
21589 case "x$archive_cmds_need_lc_F77" in
21591 # Assume -lc should be added
21592 archive_cmds_need_lc_F77
=yes
21594 if test "$enable_shared" = yes && test "$GCC" = yes; then
21595 case $archive_cmds_F77 in
21597 # FIXME: we may have to deal with multi-command sequences.
21600 # Test whether the compiler implicitly links with -lc since on some
21601 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21602 # to ld, don't add -lc before -lgcc.
21603 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21604 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21606 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
21608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609 (eval $ac_compile) 2>&5
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); } 2>conftest.err
; then
21615 libobjs
=conftest.
$ac_objext
21617 wl
=$lt_prog_compiler_wl_F77
21618 pic_flag
=$lt_prog_compiler_pic_F77
21624 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
21625 allow_undefined_flag_F77
=
21626 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21627 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); }
21632 archive_cmds_need_lc_F77
=no
21634 archive_cmds_need_lc_F77
=yes
21636 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
21638 cat conftest.err
1>&5
21641 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21642 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21649 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21650 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21651 library_names_spec
=
21652 libname_spec
='lib$name'
21656 postuninstall_cmds
=
21660 shlibpath_overrides_runpath
=unknown
21662 dynamic_linker
="$host_os ld.so"
21663 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21664 if test "$GCC" = yes; then
21665 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21666 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
21667 # if the path contains ";" then we assume it to be the separator
21668 # otherwise default to the standard path separator (i.e. ":") - it is
21669 # assumed that no part of a normal pathname contains ";" but that should
21670 # okay in the real world where ";" in dirpaths is itself problematic.
21671 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21673 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21676 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
21678 need_lib_prefix
=unknown
21679 hardcode_into_libs
=no
21681 # when you set need_version to no, make sure it does not cause -set_version
21682 # flags to be left without arguments
21683 need_version
=unknown
21688 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21689 shlibpath_var
=LIBPATH
21691 # AIX 3 has no versioning support, so we append a major version to the name.
21692 soname_spec
='${libname}${release}${shared_ext}$major'
21699 hardcode_into_libs
=yes
21700 if test "$host_cpu" = ia64
; then
21701 # AIX 5 supports IA64
21702 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21703 shlibpath_var
=LD_LIBRARY_PATH
21705 # With GCC up to 2.95.x, collect2 would create an import file
21706 # for dependence libraries. The import file would start with
21707 # the line `#! .'. This would cause the generated library to
21708 # depend on `.', always an invalid library. This was fixed in
21709 # development snapshots of GCC prior to 3.0.
21711 aix4 | aix4.
[01] | aix4.
[01].
*)
21712 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21714 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
21717 can_build_shared
=no
21721 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21722 # soname into executable. Probably we can add versioning support to
21723 # collect2, so additional links can be useful in future.
21724 if test "$aix_use_runtimelinking" = yes; then
21725 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21726 # instead of lib<name>.a to let people know that these are not
21727 # typical AIX shared libraries.
21728 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21730 # We preserve .a as extension for shared libraries through AIX4.2
21731 # and later when we are not doing run time linking.
21732 library_names_spec
='${libname}${release}.a $libname.a'
21733 soname_spec
='${libname}${release}${shared_ext}$major'
21735 shlibpath_var
=LIBPATH
21740 library_names_spec
='$libname.ixlibrary $libname.a'
21741 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21742 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'
21746 library_names_spec
='${libname}${shared_ext}'
21747 dynamic_linker
="$host_os ld.so"
21748 shlibpath_var
=LIBRARY_PATH
21754 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21755 soname_spec
='${libname}${release}${shared_ext}$major'
21756 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21757 shlibpath_var
=LD_LIBRARY_PATH
21758 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21759 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21760 # the default ld.so.conf also contains /usr/contrib/lib and
21761 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21762 # libtool to hard-code these into programs
21765 cygwin
* | mingw
* | pw32
*)
21766 version_type
=windows
21771 case $GCC,$host_os in
21772 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
21773 library_names_spec
='$libname.dll.a'
21774 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21775 postinstall_cmds
='base_file=`basename \${file}`~
21776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21777 dldir=$destdir/`dirname \$dlpath`~
21778 test -d \$dldir || mkdir -p \$dldir~
21779 $install_prog $dir/$dlname \$dldir/$dlname~
21780 chmod a+x \$dldir/$dlname'
21781 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21782 dlpath=$dir/\$dldll~
21784 shlibpath_overrides_runpath
=yes
21788 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21789 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21790 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
21793 # MinGW DLLs use traditional 'lib' prefix
21794 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21795 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21796 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
21797 # It is most probably a Windows format PATH printed by
21798 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21799 # path with ; separators, and with drive letters. We can handle the
21800 # drive letters (cygwin fileutils understands them), so leave them,
21801 # especially as we might pass files found there to a mingw objdump,
21802 # which wouldn't understand a cygwinified path. Ahh.
21803 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21805 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21809 # pw32 DLLs use 'pw' prefix rather than 'lib'
21810 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21816 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21819 dynamic_linker
='Win32 ld.exe'
21820 # FIXME: first we should search . and the directory the executable is in
21824 darwin
* | rhapsody
*)
21825 dynamic_linker
="$host_os dyld"
21826 version_type
=darwin
21829 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21830 soname_spec
='${libname}${release}${major}$shared_ext'
21831 shlibpath_overrides_runpath
=yes
21832 shlibpath_var
=DYLD_LIBRARY_PATH
21833 shrext_cmds
='.dylib'
21834 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21835 if test "$GCC" = yes; then
21836 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"`
21838 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
21840 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21847 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21848 soname_spec
='${libname}${release}${shared_ext}$major'
21849 shlibpath_var
=LD_LIBRARY_PATH
21860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21861 soname_spec
='${libname}${release}${shared_ext}$major'
21862 shlibpath_var
=LD_LIBRARY_PATH
21863 shlibpath_overrides_runpath
=no
21864 hardcode_into_libs
=yes
21865 dynamic_linker
='GNU ld.so'
21868 freebsd
* | dragonfly
*)
21869 # DragonFly does not have aout. When/if they implement a new
21870 # versioning mechanism, adjust this.
21871 if test -x /usr
/bin
/objformat
; then
21872 objformat
=`/usr/bin/objformat`
21875 freebsd
[123]*) objformat
=aout
;;
21876 *) objformat
=elf
;;
21879 version_type
=freebsd-
$objformat
21880 case $version_type in
21882 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21887 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21891 shlibpath_var
=LD_LIBRARY_PATH
21894 shlibpath_overrides_runpath
=yes
21896 freebsd3.
[01]* | freebsdelf3.
[01]*)
21897 shlibpath_overrides_runpath
=yes
21898 hardcode_into_libs
=yes
21900 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21901 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21902 shlibpath_overrides_runpath
=no
21903 hardcode_into_libs
=yes
21905 freebsd
*) # from 4.6 on
21906 shlibpath_overrides_runpath
=yes
21907 hardcode_into_libs
=yes
21916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21917 soname_spec
='${libname}${release}${shared_ext}$major'
21918 shlibpath_var
=LD_LIBRARY_PATH
21919 hardcode_into_libs
=yes
21922 hpux9
* | hpux10
* | hpux11
*)
21923 # Give a soname corresponding to the major version so that dld.sl refuses to
21924 # link against other versions.
21931 hardcode_into_libs
=yes
21932 dynamic_linker
="$host_os dld.so"
21933 shlibpath_var
=LD_LIBRARY_PATH
21934 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21935 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21936 soname_spec
='${libname}${release}${shared_ext}$major'
21937 if test "X$HPUX_IA64_MODE" = X32
; then
21938 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21940 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21942 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21946 hardcode_into_libs
=yes
21947 dynamic_linker
="$host_os dld.sl"
21948 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21949 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21951 soname_spec
='${libname}${release}${shared_ext}$major'
21952 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21953 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21957 dynamic_linker
="$host_os dld.sl"
21958 shlibpath_var
=SHLIB_PATH
21959 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21961 soname_spec
='${libname}${release}${shared_ext}$major'
21964 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21965 postinstall_cmds
='chmod 555 $lib'
21972 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21973 soname_spec
='${libname}${release}${shared_ext}$major'
21974 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21975 shlibpath_var
=LD_LIBRARY_PATH
21976 shlibpath_overrides_runpath
=no
21977 hardcode_into_libs
=yes
21980 irix5
* | irix6
* | nonstopux
*)
21982 nonstopux
*) version_type
=nonstopux
;;
21984 if test "$lt_cv_prog_gnu_ld" = yes; then
21992 soname_spec
='${libname}${release}${shared_ext}$major'
21993 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21995 irix5
* | nonstopux
*)
21996 libsuff
= shlibsuff
=
21999 case $LD in # libtool.m4 will add one of these switches to LD
22000 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22001 libsuff
= shlibsuff
= libmagic
=32-bit;;
22002 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22003 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22004 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22005 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22006 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22010 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22011 shlibpath_overrides_runpath
=no
22012 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22013 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22014 hardcode_into_libs
=yes
22017 # No shared lib support for Linux oldld, aout, or coff.
22018 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22022 # This must be Linux ELF.
22027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22028 soname_spec
='${libname}${release}${shared_ext}$major'
22029 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22030 shlibpath_var
=LD_LIBRARY_PATH
22031 shlibpath_overrides_runpath
=no
22032 # This implies no fast_install, which is unacceptable.
22033 # Some rework will be needed to allow for fast_install
22034 # before this can be enabled.
22035 hardcode_into_libs
=yes
22037 # Append ld.so.conf contents to the search path
22038 if test -f /etc
/ld.so.conf
; then
22039 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' ' '`
22040 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22043 # We used to test for /lib/ld.so.1 and disable shared libraries on
22044 # powerpc, because MkLinux only supported shared libraries with the
22045 # GNU dynamic linker. Since this was broken with cross compilers,
22046 # most powerpc-linux boxes support dynamic linking these days and
22047 # people can always --disable-shared, the test was removed, and we
22048 # assume the GNU/Linux dynamic linker is in use.
22049 dynamic_linker
='GNU/Linux ld.so'
22056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22057 soname_spec
='${libname}${release}${shared_ext}$major'
22058 shlibpath_var
=LD_LIBRARY_PATH
22059 shlibpath_overrides_runpath
=no
22060 hardcode_into_libs
=yes
22061 dynamic_linker
='GNU ld.so'
22068 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22069 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22070 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22071 dynamic_linker
='NetBSD (a.out) ld.so'
22073 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22074 soname_spec
='${libname}${release}${shared_ext}$major'
22075 dynamic_linker
='NetBSD ld.elf_so'
22077 shlibpath_var
=LD_LIBRARY_PATH
22078 shlibpath_overrides_runpath
=yes
22079 hardcode_into_libs
=yes
22084 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22085 shlibpath_var
=LD_LIBRARY_PATH
22086 shlibpath_overrides_runpath
=yes
22093 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22094 soname_spec
='${libname}${release}${shared_ext}$major'
22095 shlibpath_var
=LD_LIBRARY_PATH
22096 shlibpath_overrides_runpath
=yes
22101 sys_lib_dlsearch_path_spec
="/usr/lib"
22103 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22105 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22106 *) need_version
=no
;;
22108 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22109 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22110 shlibpath_var
=LD_LIBRARY_PATH
22111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22113 openbsd2.
[89] | openbsd2.
[89].
*)
22114 shlibpath_overrides_runpath
=no
22117 shlibpath_overrides_runpath
=yes
22121 shlibpath_overrides_runpath
=yes
22126 libname_spec
='$name'
22129 library_names_spec
='$libname${shared_ext} $libname.a'
22130 dynamic_linker
='OS/2 ld.exe'
22131 shlibpath_var
=LIBPATH
22134 osf3
* | osf4
* | osf5
*)
22138 soname_spec
='${libname}${release}${shared_ext}$major'
22139 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22140 shlibpath_var
=LD_LIBRARY_PATH
22141 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22142 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22150 soname_spec
='${libname}${release}${shared_ext}$major'
22151 shlibpath_var
=LD_LIBRARY_PATH
22152 shlibpath_overrides_runpath
=yes
22153 hardcode_into_libs
=yes
22154 # ldd complains unless libraries are executable
22155 postinstall_cmds
='chmod +x $lib'
22160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22161 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22162 shlibpath_var
=LD_LIBRARY_PATH
22163 shlibpath_overrides_runpath
=yes
22164 if test "$with_gnu_ld" = yes; then
22172 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22173 soname_spec
='${libname}${release}${shared_ext}$major'
22174 shlibpath_var
=LD_LIBRARY_PATH
22175 case $host_vendor in
22177 shlibpath_overrides_runpath
=no
22179 export_dynamic_flag_spec
='${wl}-Blargedynsym'
22180 runpath_var
=LD_RUN_PATH
22188 shlibpath_overrides_runpath
=no
22189 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22195 if test -d /usr
/nec
;then
22197 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22198 soname_spec
='$libname${shared_ext}.$major'
22199 shlibpath_var
=LD_LIBRARY_PATH
22203 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22204 version_type
=freebsd-elf
22207 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22208 soname_spec
='${libname}${release}${shared_ext}$major'
22209 shlibpath_var
=LD_LIBRARY_PATH
22210 hardcode_into_libs
=yes
22211 if test "$with_gnu_ld" = yes; then
22212 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22213 shlibpath_overrides_runpath
=no
22215 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22216 shlibpath_overrides_runpath
=yes
22219 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22223 sys_lib_dlsearch_path_spec
='/usr/lib'
22228 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22229 soname_spec
='${libname}${release}${shared_ext}$major'
22230 shlibpath_var
=LD_LIBRARY_PATH
22237 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22238 echo "${ECHO_T}$dynamic_linker" >&6; }
22239 test "$dynamic_linker" = no
&& can_build_shared
=no
22241 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22242 if test "$GCC" = yes; then
22243 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22246 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22247 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22248 hardcode_action_F77
=
22249 if test -n "$hardcode_libdir_flag_spec_F77" || \
22250 test -n "$runpath_var_F77" || \
22251 test "X$hardcode_automatic_F77" = "Xyes" ; then
22253 # We can hardcode non-existant directories.
22254 if test "$hardcode_direct_F77" != no
&&
22255 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22256 # have to relink, otherwise we might link with an installed library
22257 # when we should be linking with a yet-to-be-installed one
22258 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22259 test "$hardcode_minus_L_F77" != no
; then
22260 # Linking always hardcodes the temporary library directory.
22261 hardcode_action_F77
=relink
22263 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22264 hardcode_action_F77
=immediate
22267 # We cannot hardcode anything, or else we can only hardcode existing
22269 hardcode_action_F77
=unsupported
22271 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22272 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22274 if test "$hardcode_action_F77" = relink
; then
22275 # Fast installation is not supported
22276 enable_fast_install
=no
22277 elif test "$shlibpath_overrides_runpath" = yes ||
22278 test "$enable_shared" = no
; then
22279 # Fast installation is not necessary
22280 enable_fast_install
=needless
22284 # The else clause should only fire when bootstrapping the
22285 # libtool distribution, otherwise you forgot to ship ltmain.sh
22286 # with your package, and you will get complaints that there are
22287 # no rules to generate ltmain.sh.
22288 if test -f "$ltmain"; then
22289 # See if we are running on zsh, and set the options which allow our commands through
22290 # without removal of \ escapes.
22291 if test -n "${ZSH_VERSION+set}" ; then
22292 setopt NO_GLOB_SUBST
22294 # Now quote all the things that may contain metacharacters while being
22295 # careful not to overquote the AC_SUBSTed values. We take copies of the
22296 # variables and quote the copies for generation of the libtool script.
22297 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22299 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22300 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22301 deplibs_check_method reload_flag reload_cmds need_locks \
22302 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22303 lt_cv_sys_global_symbol_to_c_name_address \
22304 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22305 old_postinstall_cmds old_postuninstall_cmds \
22309 lt_prog_compiler_wl_F77 \
22310 lt_prog_compiler_pic_F77 \
22311 lt_prog_compiler_static_F77 \
22312 lt_prog_compiler_no_builtin_flag_F77 \
22313 export_dynamic_flag_spec_F77 \
22314 thread_safe_flag_spec_F77 \
22315 whole_archive_flag_spec_F77 \
22316 enable_shared_with_static_runtimes_F77 \
22317 old_archive_cmds_F77 \
22318 old_archive_from_new_cmds_F77 \
22319 predep_objects_F77 \
22320 postdep_objects_F77 \
22323 compiler_lib_search_path_F77 \
22325 archive_expsym_cmds_F77 \
22326 postinstall_cmds_F77 \
22327 postuninstall_cmds_F77 \
22328 old_archive_from_expsyms_cmds_F77 \
22329 allow_undefined_flag_F77 \
22330 no_undefined_flag_F77 \
22331 export_symbols_cmds_F77 \
22332 hardcode_libdir_flag_spec_F77 \
22333 hardcode_libdir_flag_spec_ld_F77 \
22334 hardcode_libdir_separator_F77 \
22335 hardcode_automatic_F77 \
22337 module_expsym_cmds_F77 \
22338 lt_cv_prog_compiler_c_o_F77 \
22339 exclude_expsyms_F77 \
22340 include_expsyms_F77
; do
22343 old_archive_cmds_F77 | \
22344 old_archive_from_new_cmds_F77 | \
22345 archive_cmds_F77 | \
22346 archive_expsym_cmds_F77 | \
22347 module_cmds_F77 | \
22348 module_expsym_cmds_F77 | \
22349 old_archive_from_expsyms_cmds_F77 | \
22350 export_symbols_cmds_F77 | \
22351 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22352 postinstall_cmds | postuninstall_cmds | \
22353 old_postinstall_cmds | old_postuninstall_cmds | \
22354 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
22355 # Double-quote double-evaled strings.
22356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22359 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22365 *'\$0 --fallback-echo"')
22366 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22372 cat <<__EOF__ >> "$cfgfile"
22373 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22375 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22377 # Shell to use when invoking shell scripts.
22380 # Whether or not to build shared libraries.
22381 build_libtool_libs=$enable_shared
22383 # Whether or not to build static libraries.
22384 build_old_libs=$enable_static
22386 # Whether or not to add -lc for building shared libraries.
22387 build_libtool_need_lc=$archive_cmds_need_lc_F77
22389 # Whether or not to disallow shared libs when runtime libs are static
22390 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22392 # Whether or not to optimize for fast installation.
22393 fast_install=$enable_fast_install
22396 host_alias=$host_alias
22400 # The build system.
22401 build_alias=$build_alias
22405 # An echo program that does not interpret backslashes.
22410 AR_FLAGS=$lt_AR_FLAGS
22415 # LTCC compiler flags.
22416 LTCFLAGS=$lt_LTCFLAGS
22418 # A language-specific compiler.
22419 CC=$lt_compiler_F77
22421 # Is the compiler the GNU C compiler?
22427 # The linker used to build libraries.
22430 # Whether we need hard or soft links.
22433 # A BSD-compatible nm program.
22436 # A symbol stripping program
22439 # Used to examine libraries when file_magic_cmd begins "file"
22440 MAGIC_CMD=$MAGIC_CMD
22442 # Used on cygwin: DLL creation program.
22445 # Used on cygwin: object dumper.
22448 # Used on cygwin: assembler.
22451 # The name of the directory that contains temporary libtool files.
22454 # How to create reloadable object files.
22455 reload_flag=$lt_reload_flag
22456 reload_cmds=$lt_reload_cmds
22458 # How to pass a linker flag through the compiler.
22459 wl=$lt_lt_prog_compiler_wl_F77
22461 # Object file suffix (normally "o").
22462 objext="$ac_objext"
22464 # Old archive suffix (normally "a").
22467 # Shared library suffix (normally ".so").
22468 shrext_cmds='$shrext_cmds'
22470 # Executable file suffix (normally "").
22473 # Additional compiler flags for building library objects.
22474 pic_flag=$lt_lt_prog_compiler_pic_F77
22477 # What is the maximum length of a command?
22478 max_cmd_len=$lt_cv_sys_max_cmd_len
22480 # Does compiler simultaneously support -c and -o options?
22481 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22483 # Must we lock files when doing compilation?
22484 need_locks=$lt_need_locks
22486 # Do we need the lib prefix for modules?
22487 need_lib_prefix=$need_lib_prefix
22489 # Do we need a version for libraries?
22490 need_version=$need_version
22492 # Whether dlopen is supported.
22493 dlopen_support=$enable_dlopen
22495 # Whether dlopen of programs is supported.
22496 dlopen_self=$enable_dlopen_self
22498 # Whether dlopen of statically linked programs is supported.
22499 dlopen_self_static=$enable_dlopen_self_static
22501 # Compiler flag to prevent dynamic linking.
22502 link_static_flag=$lt_lt_prog_compiler_static_F77
22504 # Compiler flag to turn off builtin functions.
22505 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22507 # Compiler flag to allow reflexive dlopens.
22508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22510 # Compiler flag to generate shared objects directly from archives.
22511 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22513 # Compiler flag to generate thread-safe objects.
22514 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22516 # Library versioning type.
22517 version_type=$version_type
22519 # Format of library name prefix.
22520 libname_spec=$lt_libname_spec
22522 # List of archive names. First name is the real one, the rest are links.
22523 # The last name is the one that the linker finds with -lNAME.
22524 library_names_spec=$lt_library_names_spec
22526 # The coded name of the library, if different from the real name.
22527 soname_spec=$lt_soname_spec
22529 # Commands used to build and install an old-style archive.
22531 old_archive_cmds=$lt_old_archive_cmds_F77
22532 old_postinstall_cmds=$lt_old_postinstall_cmds
22533 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22535 # Create an old-style archive from a shared archive.
22536 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22538 # Create a temporary old-style archive to link instead of a shared archive.
22539 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22541 # Commands used to build and install a shared archive.
22542 archive_cmds=$lt_archive_cmds_F77
22543 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22544 postinstall_cmds=$lt_postinstall_cmds
22545 postuninstall_cmds=$lt_postuninstall_cmds
22547 # Commands used to build a loadable module (assumed same as above if empty)
22548 module_cmds=$lt_module_cmds_F77
22549 module_expsym_cmds=$lt_module_expsym_cmds_F77
22551 # Commands to strip libraries.
22552 old_striplib=$lt_old_striplib
22553 striplib=$lt_striplib
22555 # Dependencies to place before the objects being linked to create a
22557 predep_objects=$lt_predep_objects_F77
22559 # Dependencies to place after the objects being linked to create a
22561 postdep_objects=$lt_postdep_objects_F77
22563 # Dependencies to place before the objects being linked to create a
22565 predeps=$lt_predeps_F77
22567 # Dependencies to place after the objects being linked to create a
22569 postdeps=$lt_postdeps_F77
22571 # The library search path used internally by the compiler when linking
22572 # a shared library.
22573 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22575 # Method to check whether dependent libraries are shared objects.
22576 deplibs_check_method=$lt_deplibs_check_method
22578 # Command to use when deplibs_check_method == file_magic.
22579 file_magic_cmd=$lt_file_magic_cmd
22581 # Flag that allows shared libraries with undefined symbols to be built.
22582 allow_undefined_flag=$lt_allow_undefined_flag_F77
22584 # Flag that forces no undefined symbols.
22585 no_undefined_flag=$lt_no_undefined_flag_F77
22587 # Commands used to finish a libtool library installation in a directory.
22588 finish_cmds=$lt_finish_cmds
22590 # Same as above, but a single script fragment to be evaled but not shown.
22591 finish_eval=$lt_finish_eval
22593 # Take the output of nm and produce a listing of raw symbols and C names.
22594 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22596 # Transform the output of nm in a proper C declaration
22597 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22599 # Transform the output of nm in a C name address pair
22600 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22602 # This is the shared library runtime path variable.
22603 runpath_var=$runpath_var
22605 # This is the shared library path variable.
22606 shlibpath_var=$shlibpath_var
22608 # Is shlibpath searched before the hard-coded library search path?
22609 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22611 # How to hardcode a shared library path into an executable.
22612 hardcode_action=$hardcode_action_F77
22614 # Whether we should hardcode library paths into libraries.
22615 hardcode_into_libs=$hardcode_into_libs
22617 # Flag to hardcode \$libdir into a binary during linking.
22618 # This must work even if \$libdir does not exist.
22619 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22621 # If ld is used when linking, flag to hardcode \$libdir into
22622 # a binary during linking. This must work even if \$libdir does
22624 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22626 # Whether we need a single -rpath flag with a separated argument.
22627 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22629 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22630 # resulting binary.
22631 hardcode_direct=$hardcode_direct_F77
22633 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22634 # resulting binary.
22635 hardcode_minus_L=$hardcode_minus_L_F77
22637 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22638 # the resulting binary.
22639 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22641 # Set to yes if building a shared library automatically hardcodes DIR into the library
22642 # and all subsequent libraries and executables linked against it.
22643 hardcode_automatic=$hardcode_automatic_F77
22645 # Variables whose values should be saved in libtool wrapper scripts and
22646 # restored at relink time.
22647 variables_saved_for_relink="$variables_saved_for_relink"
22649 # Whether libtool must link a program against all its dependency libraries.
22650 link_all_deplibs=$link_all_deplibs_F77
22652 # Compile-time system search path for libraries
22653 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22655 # Run-time system search path for libraries
22656 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22658 # Fix the shell variable \$srcfile for the compiler.
22659 fix_srcfile_path="$fix_srcfile_path_F77"
22661 # Set to yes if exported symbols are required.
22662 always_export_symbols=$always_export_symbols_F77
22664 # The commands to list exported symbols.
22665 export_symbols_cmds=$lt_export_symbols_cmds_F77
22667 # The commands to extract the exported symbol list from a shared archive.
22668 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22670 # Symbols that should not be listed in the preloaded symbols.
22671 exclude_expsyms=$lt_exclude_expsyms_F77
22673 # Symbols that must always be exported.
22674 include_expsyms=$lt_include_expsyms_F77
22676 # ### END LIBTOOL TAG CONFIG: $tagname
22682 # If there is no Makefile yet, we rely on a make rule to execute
22683 # `config.status --recheck' to rerun these tests and create the
22684 # libtool script then.
22685 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22686 if test -f "$ltmain_in"; then
22687 test -f Makefile
&& make "$ltmain"
22693 ac_cpp
='$CPP $CPPFLAGS'
22694 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22695 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22696 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
22706 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22708 ac_cpp
='$CPP $CPPFLAGS'
22709 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22710 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22711 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
22714 # Source file extension for Java test sources.
22717 # Object file extension for compiled Java test sources.
22721 # Code to be used in simple compile tests
22722 lt_simple_compile_test_code
="class foo {}\n"
22724 # Code to be used in simple link tests
22725 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
22727 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22729 # If no C compiler was specified, use CC.
22732 # If no C compiler flags were specified, use CFLAGS.
22733 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
22735 # Allow CC to be a program name with arguments.
22739 # save warnings/boilerplate of simple test code
22740 ac_outfile
=conftest.
$ac_objext
22741 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
22742 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
22743 _lt_compiler_boilerplate
=`cat conftest.err`
22746 ac_outfile
=conftest.
$ac_objext
22747 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
22748 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
22749 _lt_linker_boilerplate
=`cat conftest.err`
22753 # Allow CC to be a program name with arguments.
22758 for cc_temp
in $compiler""; do
22760 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
22761 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
22766 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22769 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22770 archive_cmds_need_lc_GCJ
=no
22772 old_archive_cmds_GCJ
=$old_archive_cmds
22775 lt_prog_compiler_no_builtin_flag_GCJ
=
22777 if test "$GCC" = yes; then
22778 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
22781 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22782 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
22783 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22784 echo $ECHO_N "(cached) $ECHO_C" >&6
22786 lt_cv_prog_compiler_rtti_exceptions
=no
22787 ac_outfile
=conftest.
$ac_objext
22788 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
22789 lt_compiler_flag
="-fno-rtti -fno-exceptions"
22790 # Insert the option either (1) after the last *FLAGS variable, or
22791 # (2) before a word containing "conftest.", or (3) at the end.
22792 # Note that $ac_compile itself does not contain backslashes and begins
22793 # with a dollar sign (not a hyphen), so the echo should work correctly.
22794 # The option is referenced via a variable to avoid confusing sed.
22795 lt_compile
=`echo "$ac_compile" | $SED \
22796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22798 -e 's:$: $lt_compiler_flag:'`
22799 (eval echo "\"\$as_me:22799: $lt_compile\"" >&5)
22800 (eval "$lt_compile" 2>conftest.err
)
22802 cat conftest.err
>&5
22803 echo "$as_me:22803: \$? = $ac_status" >&5
22804 if (exit $ac_status) && test -s "$ac_outfile"; then
22805 # The compiler can only warn and ignore the option if not recognized
22806 # So say no if there are warnings other than the usual output.
22807 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
22808 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22809 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
22810 lt_cv_prog_compiler_rtti_exceptions
=yes
22816 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22817 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22819 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
22820 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22827 lt_prog_compiler_wl_GCJ
=
22828 lt_prog_compiler_pic_GCJ
=
22829 lt_prog_compiler_static_GCJ
=
22831 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22832 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22834 if test "$GCC" = yes; then
22835 lt_prog_compiler_wl_GCJ
='-Wl,'
22836 lt_prog_compiler_static_GCJ
='-static'
22840 # All AIX code is PIC.
22841 if test "$host_cpu" = ia64
; then
22842 # AIX 5 now supports IA64 processor
22843 lt_prog_compiler_static_GCJ
='-Bstatic'
22848 # FIXME: we need at least 68020 code to build shared libraries, but
22849 # adding the `-m68020' flag to GCC prevents building anything better,
22851 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
22854 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
22855 # PIC is the default for these OSes.
22858 mingw
* | pw32
* | os2
*)
22859 # This hack is so that the source file can tell whether it is being
22860 # built for inclusion in a dll (and should export symbols for example).
22861 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
22864 darwin
* | rhapsody
*)
22865 # PIC is the default on this platform
22866 # Common symbols not allowed in MH_DYLIB files
22867 lt_prog_compiler_pic_GCJ
='-fno-common'
22871 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22872 # Instead, we relocate shared libraries at runtime.
22876 # Just because we use GCC doesn't mean we suddenly get shared libraries
22877 # on systems that don't support them.
22878 lt_prog_compiler_can_build_shared_GCJ
=no
22883 if test -d /usr
/nec
; then
22884 lt_prog_compiler_pic_GCJ
=-Kconform_pic
22889 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22890 # not for PA HP-UX.
22896 lt_prog_compiler_pic_GCJ
='-fPIC'
22902 lt_prog_compiler_pic_GCJ
='-fPIC'
22906 # PORTME Check for flag to pass linker flags through the system compiler.
22909 lt_prog_compiler_wl_GCJ
='-Wl,'
22910 if test "$host_cpu" = ia64
; then
22911 # AIX 5 now supports IA64 processor
22912 lt_prog_compiler_static_GCJ
='-Bstatic'
22914 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
22918 # PIC is the default on this platform
22919 # Common symbols not allowed in MH_DYLIB files
22920 case $cc_basename in
22922 lt_prog_compiler_pic_GCJ
='-qnocommon'
22923 lt_prog_compiler_wl_GCJ
='-Wl,'
22928 mingw
* | pw32
* | os2
*)
22929 # This hack is so that the source file can tell whether it is being
22930 # built for inclusion in a dll (and should export symbols for example).
22931 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
22934 hpux9
* | hpux10
* | hpux11
*)
22935 lt_prog_compiler_wl_GCJ
='-Wl,'
22936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22937 # not for PA HP-UX.
22943 lt_prog_compiler_pic_GCJ
='+Z'
22946 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22947 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
22950 irix5
* | irix6
* | nonstopux
*)
22951 lt_prog_compiler_wl_GCJ
='-Wl,'
22952 # PIC (with -KPIC) is the default.
22953 lt_prog_compiler_static_GCJ
='-non_shared'
22957 lt_prog_compiler_pic_GCJ
='-KPIC'
22958 lt_prog_compiler_static_GCJ
='-Bstatic'
22962 case $cc_basename in
22964 lt_prog_compiler_wl_GCJ
='-Wl,'
22965 lt_prog_compiler_pic_GCJ
='-KPIC'
22966 lt_prog_compiler_static_GCJ
='-static'
22968 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
22969 # Portland Group compilers (*not* the Pentium gcc compiler,
22970 # which looks to be a dead project)
22971 lt_prog_compiler_wl_GCJ
='-Wl,'
22972 lt_prog_compiler_pic_GCJ
='-fpic'
22973 lt_prog_compiler_static_GCJ
='-Bstatic'
22976 lt_prog_compiler_wl_GCJ
='-Wl,'
22977 # All Alpha code is PIC.
22978 lt_prog_compiler_static_GCJ
='-non_shared'
22983 osf3
* | osf4
* | osf5
*)
22984 lt_prog_compiler_wl_GCJ
='-Wl,'
22985 # All OSF/1 code is PIC.
22986 lt_prog_compiler_static_GCJ
='-non_shared'
22990 lt_prog_compiler_pic_GCJ
='-KPIC'
22991 lt_prog_compiler_static_GCJ
='-Bstatic'
22992 case $cc_basename in
22993 f77
* | f90
* | f95
*)
22994 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
22996 lt_prog_compiler_wl_GCJ
='-Wl,';;
23001 lt_prog_compiler_wl_GCJ
='-Qoption ld '
23002 lt_prog_compiler_pic_GCJ
='-PIC'
23003 lt_prog_compiler_static_GCJ
='-Bstatic'
23006 sysv4 | sysv4.2uw2
* | sysv4.3
*)
23007 lt_prog_compiler_wl_GCJ
='-Wl,'
23008 lt_prog_compiler_pic_GCJ
='-KPIC'
23009 lt_prog_compiler_static_GCJ
='-Bstatic'
23013 if test -d /usr
/nec
;then
23014 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
23015 lt_prog_compiler_static_GCJ
='-Bstatic'
23019 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
23020 lt_prog_compiler_wl_GCJ
='-Wl,'
23021 lt_prog_compiler_pic_GCJ
='-KPIC'
23022 lt_prog_compiler_static_GCJ
='-Bstatic'
23026 lt_prog_compiler_wl_GCJ
='-Wl,'
23027 lt_prog_compiler_can_build_shared_GCJ
=no
23031 lt_prog_compiler_pic_GCJ
='-pic'
23032 lt_prog_compiler_static_GCJ
='-Bstatic'
23036 lt_prog_compiler_can_build_shared_GCJ
=no
23041 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23042 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23045 # Check to make sure the PIC flag actually works.
23047 if test -n "$lt_prog_compiler_pic_GCJ"; then
23049 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23050 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23051 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23052 echo $ECHO_N "(cached) $ECHO_C" >&6
23054 lt_prog_compiler_pic_works_GCJ
=no
23055 ac_outfile
=conftest.
$ac_objext
23056 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
23057 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
23058 # Insert the option either (1) after the last *FLAGS variable, or
23059 # (2) before a word containing "conftest.", or (3) at the end.
23060 # Note that $ac_compile itself does not contain backslashes and begins
23061 # with a dollar sign (not a hyphen), so the echo should work correctly.
23062 # The option is referenced via a variable to avoid confusing sed.
23063 lt_compile
=`echo "$ac_compile" | $SED \
23064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23066 -e 's:$: $lt_compiler_flag:'`
23067 (eval echo "\"\$as_me:23067: $lt_compile\"" >&5)
23068 (eval "$lt_compile" 2>conftest.err
)
23070 cat conftest.err
>&5
23071 echo "$as_me:23071: \$? = $ac_status" >&5
23072 if (exit $ac_status) && test -s "$ac_outfile"; then
23073 # The compiler can only warn and ignore the option if not recognized
23074 # So say no if there are warnings other than the usual output.
23075 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
23076 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23077 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
23078 lt_prog_compiler_pic_works_GCJ
=yes
23084 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23085 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23087 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
23088 case $lt_prog_compiler_pic_GCJ in
23090 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
23093 lt_prog_compiler_pic_GCJ
=
23094 lt_prog_compiler_can_build_shared_GCJ
=no
23099 # For platforms which do not support PIC, -DPIC is meaningless:
23101 lt_prog_compiler_pic_GCJ
=
23104 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
23109 # Check to make sure the static flag actually works.
23111 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
23112 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23113 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23114 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23115 echo $ECHO_N "(cached) $ECHO_C" >&6
23117 lt_prog_compiler_static_works_GCJ
=no
23118 save_LDFLAGS
="$LDFLAGS"
23119 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
23120 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
23121 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
23122 # The linker can only warn and ignore the option if not recognized
23123 # So say no if there are warnings
23124 if test -s conftest.err
; then
23125 # Append any errors to the config.log.
23126 cat conftest.err
1>&5
23127 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
23128 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
23129 if diff conftest.exp conftest.er2
>/dev
/null
; then
23130 lt_prog_compiler_static_works_GCJ
=yes
23133 lt_prog_compiler_static_works_GCJ
=yes
23137 LDFLAGS
="$save_LDFLAGS"
23140 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23141 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23143 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
23146 lt_prog_compiler_static_GCJ
=
23150 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23151 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23152 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23155 lt_cv_prog_compiler_c_o_GCJ
=no
23156 $rm -r conftest
2>/dev
/null
23160 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
23162 lt_compiler_flag
="-o out/conftest2.$ac_objext"
23163 # Insert the option either (1) after the last *FLAGS variable, or
23164 # (2) before a word containing "conftest.", or (3) at the end.
23165 # Note that $ac_compile itself does not contain backslashes and begins
23166 # with a dollar sign (not a hyphen), so the echo should work correctly.
23167 lt_compile
=`echo "$ac_compile" | $SED \
23168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23170 -e 's:$: $lt_compiler_flag:'`
23171 (eval echo "\"\$as_me:23171: $lt_compile\"" >&5)
23172 (eval "$lt_compile" 2>out
/conftest.err
)
23174 cat out
/conftest.err
>&5
23175 echo "$as_me:23175: \$? = $ac_status" >&5
23176 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
23178 # The compiler can only warn and ignore the option if not recognized
23179 # So say no if there are warnings
23180 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
23181 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
23182 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
23183 lt_cv_prog_compiler_c_o_GCJ
=yes
23188 # SGI C++ compiler will create directory out/ii_files/ for
23189 # template instantiation
23190 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
23191 $rm out
/* && rmdir out
23197 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23198 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23201 hard_links
="nottested"
23202 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
23203 # do not overwrite the value of need_locks provided by the user
23204 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23205 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23208 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
23210 ln conftest.a conftest.b
2>&5 || hard_links
=no
23211 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
23212 { echo "$as_me:$LINENO: result: $hard_links" >&5
23213 echo "${ECHO_T}$hard_links" >&6; }
23214 if test "$hard_links" = no
; then
23215 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23216 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23223 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23224 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23227 allow_undefined_flag_GCJ
=
23228 enable_shared_with_static_runtimes_GCJ
=no
23230 archive_expsym_cmds_GCJ
=
23231 old_archive_From_new_cmds_GCJ
=
23232 old_archive_from_expsyms_cmds_GCJ
=
23233 export_dynamic_flag_spec_GCJ
=
23234 whole_archive_flag_spec_GCJ
=
23235 thread_safe_flag_spec_GCJ
=
23236 hardcode_libdir_flag_spec_GCJ
=
23237 hardcode_libdir_flag_spec_ld_GCJ
=
23238 hardcode_libdir_separator_GCJ
=
23239 hardcode_direct_GCJ
=no
23240 hardcode_minus_L_GCJ
=no
23241 hardcode_shlibpath_var_GCJ
=unsupported
23242 link_all_deplibs_GCJ
=unknown
23243 hardcode_automatic_GCJ
=no
23245 module_expsym_cmds_GCJ
=
23246 always_export_symbols_GCJ
=no
23247 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23248 # include_expsyms should be a list of space-separated symbols to be *always*
23249 # included in the symbol list
23250 include_expsyms_GCJ
=
23251 # exclude_expsyms can be an extended regexp of symbols to exclude
23252 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23253 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23254 # as well as any symbol that contains `d'.
23255 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
23256 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23257 # platforms (ab)use it in PIC code, but their linkers get confused if
23258 # the symbol is explicitly referenced. Since portable code cannot
23259 # rely on this symbol name, it's probably fine to never include it in
23260 # preloaded symbol tables.
23261 extract_expsyms_cmds
=
23262 # Just being paranoid about ensuring that cc_basename is set.
23263 for cc_temp
in $compiler""; do
23265 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
23266 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
23271 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23274 cygwin
* | mingw
* | pw32
*)
23275 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23276 # When not using gcc, we currently assume that we are using
23277 # Microsoft Visual C++.
23278 if test "$GCC" != yes; then
23283 # we just hope/assume this is gcc and not c89 (= MSVC++)
23292 if test "$with_gnu_ld" = yes; then
23293 # If archive_cmds runs LD, not CC, wlarc should be empty
23296 # Set some defaults for GNU ld with shared library support. These
23297 # are reset later if shared libraries are not supported. Putting them
23298 # here allows them to be overridden if necessary.
23299 runpath_var
=LD_RUN_PATH
23300 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
23301 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
23302 # ancient GNU ld didn't support --whole-archive et. al.
23303 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
23304 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23306 whole_archive_flag_spec_GCJ
=
23308 supports_anon_versioning
=no
23309 case `$LD -v 2>/dev/null` in
23310 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
23311 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
23312 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
23313 *\
2.11.
*) ;; # other 2.11 versions
23314 *) supports_anon_versioning
=yes ;;
23317 # See if GNU ld supports shared libraries.
23319 aix3
* | aix4
* | aix5
*)
23320 # On AIX/PPC, the GNU linker is very broken
23321 if test "$host_cpu" != ia64
; then
23325 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23326 *** to be unable to reliably create shared libraries on AIX.
23327 *** Therefore, libtool is disabling shared libraries support. If you
23328 *** really care for shared libraries, you may want to modify your PATH
23329 *** so that a non-GNU linker is found, and then restart.
23336 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)'
23337 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
23338 hardcode_minus_L_GCJ
=yes
23340 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23341 # that the semantics of dynamic libraries on AmigaOS, at least up
23342 # to version 4, is to share data among multiple programs linked
23343 # with the same dynamic library. Since this doesn't match the
23344 # behavior of shared libraries on other platforms, we can't use
23350 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
23351 allow_undefined_flag_GCJ
=unsupported
23352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23353 # support --undefined. This deserves some investigation. FIXME
23354 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23360 cygwin
* | mingw
* | pw32
*)
23361 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23362 # as there is no search path for DLLs.
23363 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
23364 allow_undefined_flag_GCJ
=unsupported
23365 always_export_symbols_GCJ
=no
23366 enable_shared_with_static_runtimes_GCJ
=yes
23367 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23369 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
23370 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23371 # If the export-symbols file already is a .def file (1st line
23372 # is EXPORTS), use it as is; otherwise, prepend...
23373 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23374 cp $export_symbols $output_objdir/$soname.def;
23376 echo EXPORTS > $output_objdir/$soname.def;
23377 cat $export_symbols >> $output_objdir/$soname.def;
23379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23386 hardcode_direct_GCJ
=no
23387 hardcode_shlibpath_var_GCJ
=no
23388 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
23389 export_dynamic_flag_spec_GCJ
='${wl}-E'
23390 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23391 # Instead, shared libraries are loaded at an image base (0x10000000 by
23392 # default) and relocated if they conflict, which is a slow very memory
23393 # consuming and fragmenting process. To avoid this, we pick a random,
23394 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23395 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23396 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'
23397 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'
23401 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
23403 case $cc_basename,$host_cpu in
23404 pgcc
*) # Portland Group C compiler
23405 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'
23406 tmp_addflag
=' $pic_flag'
23408 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
23409 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'
23410 tmp_addflag
=' $pic_flag -Mnomain' ;;
23411 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
23412 tmp_addflag
=' -i_dynamic' ;;
23413 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
23414 tmp_addflag
=' -i_dynamic -nofor_main' ;;
23415 ifc
* | ifort
*) # Intel Fortran compiler
23416 tmp_addflag
=' -nofor_main' ;;
23418 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23420 if test $supports_anon_versioning = yes; then
23421 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
23422 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23423 $echo "local: *; };" >> $output_objdir/$libname.ver~
23424 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23432 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
23433 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23436 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23437 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23442 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
23446 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23447 *** create shared libraries on Solaris systems. Therefore, libtool
23448 *** is disabling shared libraries support. We urge you to upgrade GNU
23449 *** binutils to release 2.9.1 or newer. Another option is to modify
23450 *** your PATH or compiler configuration so that the native linker is
23451 *** used, and then restart.
23454 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
23455 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23456 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23462 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
23463 case `$LD -v 2>&1` in
23464 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
23468 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23469 *** reliably create shared libraries on SCO systems. Therefore, libtool
23470 *** is disabling shared libraries support. We urge you to upgrade GNU
23471 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23472 *** your PATH or compiler configuration so that the native linker is
23473 *** used, and then restart.
23478 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
23479 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23480 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23481 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23490 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23492 hardcode_direct_GCJ
=yes
23493 hardcode_shlibpath_var_GCJ
=no
23497 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
23498 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23499 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23506 if test "$ld_shlibs_GCJ" = no
; then
23508 hardcode_libdir_flag_spec_GCJ
=
23509 export_dynamic_flag_spec_GCJ
=
23510 whole_archive_flag_spec_GCJ
=
23513 # PORTME fill in a description of your system's linker (not GNU ld)
23516 allow_undefined_flag_GCJ
=unsupported
23517 always_export_symbols_GCJ
=yes
23518 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'
23519 # Note: this linker hardcodes the directories in LIBPATH if there
23520 # are no directories specified by -L.
23521 hardcode_minus_L_GCJ
=yes
23522 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23523 # Neither direct hardcoding nor static linking is supported with a
23525 hardcode_direct_GCJ
=unsupported
23530 if test "$host_cpu" = ia64
; then
23531 # On IA64, the linker does run time linking by default, so we don't
23532 # have to do anything special.
23533 aix_use_runtimelinking
=no
23534 exp_sym_flag
='-Bexport'
23537 # If we're using GNU nm, then we don't want the "-C" option.
23538 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23539 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
23540 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'
23542 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'
23544 aix_use_runtimelinking
=no
23546 # Test if we are trying to use run time linking or normal
23547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23548 # need to do runtime linking.
23549 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
23550 for ld_flag
in $LDFLAGS; do
23551 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
23552 aix_use_runtimelinking
=yes
23559 exp_sym_flag
='-bexport'
23560 no_entry_flag
='-bnoentry'
23563 # When large executables or shared objects are built, AIX ld can
23564 # have problems creating the table of contents. If linking a library
23565 # or program results in "error TOC overflow" add -mminimal-toc to
23566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23569 archive_cmds_GCJ
=''
23570 hardcode_direct_GCJ
=yes
23571 hardcode_libdir_separator_GCJ
=':'
23572 link_all_deplibs_GCJ
=yes
23574 if test "$GCC" = yes; then
23575 case $host_os in aix4.
[012]|aix4.
[012].
*)
23576 # We only want to do this on AIX 4.2 and lower, the check
23577 # below for broken collect2 doesn't work under 4.3+
23578 collect2name
=`${CC} -print-prog-name=collect2`
23579 if test -f "$collect2name" && \
23580 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
23582 # We have reworked collect2
23583 hardcode_direct_GCJ
=yes
23585 # We have old collect2
23586 hardcode_direct_GCJ
=unsupported
23587 # It fails to find uninstalled libraries when the uninstalled
23588 # path is not listed in the libpath. Setting hardcode_minus_L
23589 # to unsupported forces relinking
23590 hardcode_minus_L_GCJ
=yes
23591 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
23592 hardcode_libdir_separator_GCJ
=
23596 shared_flag
='-shared'
23597 if test "$aix_use_runtimelinking" = yes; then
23598 shared_flag
="$shared_flag "'${wl}-G'
23602 if test "$host_cpu" = ia64
; then
23603 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23604 # chokes on -Wl,-G. The following line is correct:
23607 if test "$aix_use_runtimelinking" = yes; then
23608 shared_flag
='${wl}-G'
23610 shared_flag
='${wl}-bM:SRE'
23615 # It seems that -bexpall does not export symbols beginning with
23616 # underscore (_), so it is better to generate a list of symbols to export.
23617 always_export_symbols_GCJ
=yes
23618 if test "$aix_use_runtimelinking" = yes; then
23619 # Warning - without using the other runtime loading flags (-brtl),
23620 # -berok will link without error, but may produce a broken library.
23621 allow_undefined_flag_GCJ
='-berok'
23622 # Determine the default libpath from the value encoded in an empty executable.
23623 cat >conftest.
$ac_ext <<_ACEOF
23626 cat confdefs.h
>>conftest.
$ac_ext
23627 cat >>conftest.
$ac_ext <<_ACEOF
23628 /* end confdefs.h. */
23638 rm -f conftest.
$ac_objext conftest
$ac_exeext
23639 if { (ac_try
="$ac_link"
23640 case "(($ac_try" in
23641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23642 *) ac_try_echo=$ac_try;;
23644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23645 (eval "$ac_link") 2>conftest.er1
23647 grep -v '^ *+' conftest.er1 >conftest.err
23649 cat conftest.err >&5
23650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); } && {
23652 test -z "$ac_c_werror_flag" ||
23653 test ! -s conftest.err
23654 } && test -s conftest$ac_exeext &&
23655 $as_test_x conftest$ac_exeext; then
23657 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23659 # Check for a 64-bit object if we didn't find anything.
23660 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; }
23663 echo "$as_me: failed program was:" >&5
23664 sed 's/^/| /' conftest.$ac_ext >&5
23669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23670 conftest$ac_exeext conftest.$ac_ext
23671 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23673 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23674 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"
23676 if test "$host_cpu" = ia64; then
23677 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23678 allow_undefined_flag_GCJ="-z nodefs"
23679 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"
23681 # Determine the default libpath from the value encoded in an empty executable.
23682 cat >conftest.$ac_ext <<_ACEOF
23685 cat confdefs.h >>conftest.$ac_ext
23686 cat >>conftest.$ac_ext <<_ACEOF
23687 /* end confdefs.h. */
23697 rm -f conftest.$ac_objext conftest$ac_exeext
23698 if { (ac_try="$ac_link"
23699 case "(($ac_try" in
23700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23701 *) ac_try_echo
=$ac_try;;
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704 (eval "$ac_link") 2>conftest.er1
23706 grep -v '^ *+' conftest.er1
>conftest.err
23708 cat conftest.err
>&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); } && {
23711 test -z "$ac_c_werror_flag" ||
23712 test ! -s conftest.err
23713 } && test -s conftest
$ac_exeext &&
23714 $as_test_x conftest
$ac_exeext; then
23716 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23718 # Check for a 64-bit object if we didn't find anything.
23719 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; }
23722 echo "$as_me: failed program was:" >&5
23723 sed 's/^/| /' conftest.
$ac_ext >&5
23728 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23729 conftest
$ac_exeext conftest.
$ac_ext
23730 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
23732 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
23733 # Warning - without using the other run time loading flags,
23734 # -berok will link without error, but may produce a broken library.
23735 no_undefined_flag_GCJ
=' ${wl}-bernotok'
23736 allow_undefined_flag_GCJ
=' ${wl}-berok'
23737 # Exported symbols can be pulled into shared objects from archives
23738 whole_archive_flag_spec_GCJ
='$convenience'
23739 archive_cmds_need_lc_GCJ
=yes
23740 # This is similar to how AIX traditionally builds its shared libraries.
23741 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'
23747 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)'
23748 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
23749 hardcode_minus_L_GCJ
=yes
23750 # see comment about different semantics on the GNU ld section
23755 export_dynamic_flag_spec_GCJ
=-rdynamic
23758 cygwin
* | mingw
* | pw32
*)
23759 # When not using gcc, we currently assume that we are using
23760 # Microsoft Visual C++.
23761 # hardcode_libdir_flag_spec is actually meaningless, as there is
23762 # no search path for DLLs.
23763 hardcode_libdir_flag_spec_GCJ
=' '
23764 allow_undefined_flag_GCJ
=unsupported
23765 # Tell ltmain to make .lib files, not .a files.
23767 # Tell ltmain to make .dll files, not .so files.
23769 # FIXME: Setting linknames here is a bad hack.
23770 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23771 # The linker will automatically build a .lib file if we build a DLL.
23772 old_archive_From_new_cmds_GCJ
='true'
23773 # FIXME: Should let the user specify the lib program.
23774 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
23775 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
23776 enable_shared_with_static_runtimes_GCJ
=yes
23779 darwin
* | rhapsody
*)
23781 rhapsody
* | darwin1.
[012])
23782 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
23785 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23786 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23788 case ${MACOSX_DEPLOYMENT_TARGET} in
23790 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23793 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
23799 archive_cmds_need_lc_GCJ
=no
23800 hardcode_direct_GCJ
=no
23801 hardcode_automatic_GCJ
=yes
23802 hardcode_shlibpath_var_GCJ
=unsupported
23803 whole_archive_flag_spec_GCJ
=''
23804 link_all_deplibs_GCJ
=yes
23805 if test "$GCC" = yes ; then
23806 output_verbose_link_cmd
='echo'
23807 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23808 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23809 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23810 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}'
23811 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}'
23813 case $cc_basename in
23815 output_verbose_link_cmd
='echo'
23816 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23817 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23818 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23819 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}'
23820 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}'
23830 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23831 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
23832 hardcode_shlibpath_var_GCJ
=no
23839 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23840 # support. Future versions do this automatically, but an explicit c++rt0.o
23841 # does not break anything, and helps significantly (at the cost of a little
23844 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23845 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
23846 hardcode_direct_GCJ
=yes
23847 hardcode_shlibpath_var_GCJ
=no
23850 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23852 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23853 hardcode_direct_GCJ
=yes
23854 hardcode_minus_L_GCJ
=yes
23855 hardcode_shlibpath_var_GCJ
=no
23858 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23859 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
23860 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23861 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
23862 hardcode_direct_GCJ
=yes
23863 hardcode_shlibpath_var_GCJ
=no
23867 if test "$GCC" = yes; then
23868 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'
23870 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'
23872 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
23873 hardcode_libdir_separator_GCJ
=:
23874 hardcode_direct_GCJ
=yes
23876 # hardcode_minus_L: Not really in the search PATH,
23877 # but as the default location of the library.
23878 hardcode_minus_L_GCJ
=yes
23879 export_dynamic_flag_spec_GCJ
='${wl}-E'
23883 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
23884 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23886 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23888 if test "$with_gnu_ld" = no
; then
23889 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
23890 hardcode_libdir_separator_GCJ
=:
23892 hardcode_direct_GCJ
=yes
23893 export_dynamic_flag_spec_GCJ
='${wl}-E'
23895 # hardcode_minus_L: Not really in the search PATH,
23896 # but as the default location of the library.
23897 hardcode_minus_L_GCJ
=yes
23902 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
23905 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23908 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23911 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23917 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23920 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23923 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23927 if test "$with_gnu_ld" = no
; then
23928 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
23929 hardcode_libdir_separator_GCJ
=:
23933 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
23934 hardcode_direct_GCJ
=no
23935 hardcode_shlibpath_var_GCJ
=no
23938 hardcode_direct_GCJ
=yes
23939 export_dynamic_flag_spec_GCJ
='${wl}-E'
23941 # hardcode_minus_L: Not really in the search PATH,
23942 # but as the default location of the library.
23943 hardcode_minus_L_GCJ
=yes
23949 irix5
* | irix6
* | nonstopux
*)
23950 if test "$GCC" = yes; then
23951 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'
23953 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'
23954 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
23956 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
23957 hardcode_libdir_separator_GCJ
=:
23958 link_all_deplibs_GCJ
=yes
23962 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
23963 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23965 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23967 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
23968 hardcode_direct_GCJ
=yes
23969 hardcode_shlibpath_var_GCJ
=no
23973 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23974 hardcode_direct_GCJ
=yes
23975 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
23976 hardcode_libdir_separator_GCJ
=:
23977 hardcode_shlibpath_var_GCJ
=no
23981 hardcode_direct_GCJ
=yes
23982 hardcode_shlibpath_var_GCJ
=no
23983 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23984 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23985 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23986 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
23987 export_dynamic_flag_spec_GCJ
='${wl}-E'
23990 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
23991 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23992 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
23995 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23996 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
24003 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24004 hardcode_minus_L_GCJ
=yes
24005 allow_undefined_flag_GCJ
=unsupported
24006 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'
24007 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24011 if test "$GCC" = yes; then
24012 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
24013 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'
24015 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
24016 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'
24018 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
24019 hardcode_libdir_separator_GCJ
=:
24022 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
24023 if test "$GCC" = yes; then
24024 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
24025 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'
24026 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
24028 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
24029 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'
24030 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~
24031 $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'
24033 # Both c and cxx compiler support -rpath directly
24034 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
24036 hardcode_libdir_separator_GCJ
=:
24040 no_undefined_flag_GCJ
=' -z text'
24041 if test "$GCC" = yes; then
24043 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24044 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24045 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24048 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24049 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24050 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24052 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
24053 hardcode_shlibpath_var_GCJ
=no
24055 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
24057 # The compiler driver will combine linker options so we
24058 # cannot just pass the convience library names through
24059 # without $wl, iff we do not link with $LD.
24060 # Luckily, gcc supports the same syntax we need for Sun Studio.
24061 # Supported since Solaris 2.6 (maybe 2.5.1?)
24064 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
24066 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' ;;
24069 link_all_deplibs_GCJ
=yes
24073 if test "x$host_vendor" = xsequent
; then
24074 # Use $CC to link under sequent, because it throws in some extra .o
24075 # files that make .init and .fini sections work.
24076 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24078 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24080 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24081 hardcode_direct_GCJ
=yes
24082 hardcode_minus_L_GCJ
=yes
24083 hardcode_shlibpath_var_GCJ
=no
24087 case $host_vendor in
24089 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24090 hardcode_direct_GCJ
=yes # is this really true???
24093 ## LD is ld it makes a PLAMLIB
24094 ## CC just makes a GrossModule.
24095 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24096 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
24097 hardcode_direct_GCJ
=no
24100 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24101 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
24104 runpath_var
='LD_RUN_PATH'
24105 hardcode_shlibpath_var_GCJ
=no
24109 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24110 hardcode_shlibpath_var_GCJ
=no
24111 export_dynamic_flag_spec_GCJ
='-Bexport'
24115 if test -d /usr
/nec
; then
24116 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24117 hardcode_shlibpath_var_GCJ
=no
24118 runpath_var
=LD_RUN_PATH
24119 hardcode_runpath_var
=yes
24124 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
24125 no_undefined_flag_GCJ
='${wl}-z,text'
24126 archive_cmds_need_lc_GCJ
=no
24127 hardcode_shlibpath_var_GCJ
=no
24128 runpath_var
='LD_RUN_PATH'
24130 if test "$GCC" = yes; then
24131 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24132 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24134 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24135 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24139 sysv5
* | sco3.2v5
* | sco5v6
*)
24140 # Note: We can NOT use -z defs as we might desire, because we do not
24141 # link with -lc, and that would cause any symbols used from libc to
24142 # always be unresolved, which means just about no library would
24143 # ever link correctly. If we're not using GNU ld we use -z text
24144 # though, which does catch some bad symbols but isn't as heavy-handed
24146 no_undefined_flag_GCJ
='${wl}-z,text'
24147 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
24148 archive_cmds_need_lc_GCJ
=no
24149 hardcode_shlibpath_var_GCJ
=no
24150 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24151 hardcode_libdir_separator_GCJ
=':'
24152 link_all_deplibs_GCJ
=yes
24153 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
24154 runpath_var
='LD_RUN_PATH'
24156 if test "$GCC" = yes; then
24157 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24158 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24160 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24161 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24166 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24167 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
24168 hardcode_shlibpath_var_GCJ
=no
24177 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24178 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24179 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
24182 # Do we need to explicitly link libc?
24184 case "x$archive_cmds_need_lc_GCJ" in
24186 # Assume -lc should be added
24187 archive_cmds_need_lc_GCJ
=yes
24189 if test "$enable_shared" = yes && test "$GCC" = yes; then
24190 case $archive_cmds_GCJ in
24192 # FIXME: we may have to deal with multi-command sequences.
24195 # Test whether the compiler implicitly links with -lc since on some
24196 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24197 # to ld, don't add -lc before -lgcc.
24198 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24199 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24201 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
24203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24204 (eval $ac_compile) 2>&5
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); } 2>conftest.err
; then
24210 libobjs
=conftest.
$ac_objext
24212 wl
=$lt_prog_compiler_wl_GCJ
24213 pic_flag
=$lt_prog_compiler_pic_GCJ
24219 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
24220 allow_undefined_flag_GCJ
=
24221 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24222 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); }
24227 archive_cmds_need_lc_GCJ
=no
24229 archive_cmds_need_lc_GCJ
=yes
24231 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
24233 cat conftest.err
1>&5
24236 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24237 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24244 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24245 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24246 library_names_spec
=
24247 libname_spec
='lib$name'
24251 postuninstall_cmds
=
24255 shlibpath_overrides_runpath
=unknown
24257 dynamic_linker
="$host_os ld.so"
24258 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
24259 if test "$GCC" = yes; then
24260 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24261 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
24262 # if the path contains ";" then we assume it to be the separator
24263 # otherwise default to the standard path separator (i.e. ":") - it is
24264 # assumed that no part of a normal pathname contains ";" but that should
24265 # okay in the real world where ";" in dirpaths is itself problematic.
24266 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24268 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24271 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
24273 need_lib_prefix
=unknown
24274 hardcode_into_libs
=no
24276 # when you set need_version to no, make sure it does not cause -set_version
24277 # flags to be left without arguments
24278 need_version
=unknown
24283 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
24284 shlibpath_var
=LIBPATH
24286 # AIX 3 has no versioning support, so we append a major version to the name.
24287 soname_spec
='${libname}${release}${shared_ext}$major'
24294 hardcode_into_libs
=yes
24295 if test "$host_cpu" = ia64
; then
24296 # AIX 5 supports IA64
24297 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24298 shlibpath_var
=LD_LIBRARY_PATH
24300 # With GCC up to 2.95.x, collect2 would create an import file
24301 # for dependence libraries. The import file would start with
24302 # the line `#! .'. This would cause the generated library to
24303 # depend on `.', always an invalid library. This was fixed in
24304 # development snapshots of GCC prior to 3.0.
24306 aix4 | aix4.
[01] | aix4.
[01].
*)
24307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24309 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
24312 can_build_shared
=no
24316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24317 # soname into executable. Probably we can add versioning support to
24318 # collect2, so additional links can be useful in future.
24319 if test "$aix_use_runtimelinking" = yes; then
24320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24321 # instead of lib<name>.a to let people know that these are not
24322 # typical AIX shared libraries.
24323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24325 # We preserve .a as extension for shared libraries through AIX4.2
24326 # and later when we are not doing run time linking.
24327 library_names_spec
='${libname}${release}.a $libname.a'
24328 soname_spec
='${libname}${release}${shared_ext}$major'
24330 shlibpath_var
=LIBPATH
24335 library_names_spec
='$libname.ixlibrary $libname.a'
24336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24337 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'
24341 library_names_spec
='${libname}${shared_ext}'
24342 dynamic_linker
="$host_os ld.so"
24343 shlibpath_var
=LIBRARY_PATH
24349 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24350 soname_spec
='${libname}${release}${shared_ext}$major'
24351 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
24352 shlibpath_var
=LD_LIBRARY_PATH
24353 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24354 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
24355 # the default ld.so.conf also contains /usr/contrib/lib and
24356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24357 # libtool to hard-code these into programs
24360 cygwin
* | mingw
* | pw32
*)
24361 version_type
=windows
24366 case $GCC,$host_os in
24367 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
24368 library_names_spec
='$libname.dll.a'
24369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24370 postinstall_cmds
='base_file=`basename \${file}`~
24371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24372 dldir=$destdir/`dirname \$dlpath`~
24373 test -d \$dldir || mkdir -p \$dldir~
24374 $install_prog $dir/$dlname \$dldir/$dlname~
24375 chmod a+x \$dldir/$dlname'
24376 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24377 dlpath=$dir/\$dldll~
24379 shlibpath_overrides_runpath
=yes
24383 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24384 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24385 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
24388 # MinGW DLLs use traditional 'lib' prefix
24389 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24390 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24391 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
24392 # It is most probably a Windows format PATH printed by
24393 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24394 # path with ; separators, and with drive letters. We can handle the
24395 # drive letters (cygwin fileutils understands them), so leave them,
24396 # especially as we might pass files found there to a mingw objdump,
24397 # which wouldn't understand a cygwinified path. Ahh.
24398 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24400 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24404 # pw32 DLLs use 'pw' prefix rather than 'lib'
24405 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24411 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24414 dynamic_linker
='Win32 ld.exe'
24415 # FIXME: first we should search . and the directory the executable is in
24419 darwin
* | rhapsody
*)
24420 dynamic_linker
="$host_os dyld"
24421 version_type
=darwin
24424 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24425 soname_spec
='${libname}${release}${major}$shared_ext'
24426 shlibpath_overrides_runpath
=yes
24427 shlibpath_var
=DYLD_LIBRARY_PATH
24428 shrext_cmds
='.dylib'
24429 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24430 if test "$GCC" = yes; then
24431 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"`
24433 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
24435 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
24442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24443 soname_spec
='${libname}${release}${shared_ext}$major'
24444 shlibpath_var
=LD_LIBRARY_PATH
24455 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24456 soname_spec
='${libname}${release}${shared_ext}$major'
24457 shlibpath_var
=LD_LIBRARY_PATH
24458 shlibpath_overrides_runpath
=no
24459 hardcode_into_libs
=yes
24460 dynamic_linker
='GNU ld.so'
24463 freebsd
* | dragonfly
*)
24464 # DragonFly does not have aout. When/if they implement a new
24465 # versioning mechanism, adjust this.
24466 if test -x /usr
/bin
/objformat
; then
24467 objformat
=`/usr/bin/objformat`
24470 freebsd
[123]*) objformat
=aout
;;
24471 *) objformat
=elf
;;
24474 version_type
=freebsd-
$objformat
24475 case $version_type in
24477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24482 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24486 shlibpath_var
=LD_LIBRARY_PATH
24489 shlibpath_overrides_runpath
=yes
24491 freebsd3.
[01]* | freebsdelf3.
[01]*)
24492 shlibpath_overrides_runpath
=yes
24493 hardcode_into_libs
=yes
24495 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
24496 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
24497 shlibpath_overrides_runpath
=no
24498 hardcode_into_libs
=yes
24500 freebsd
*) # from 4.6 on
24501 shlibpath_overrides_runpath
=yes
24502 hardcode_into_libs
=yes
24511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24512 soname_spec
='${libname}${release}${shared_ext}$major'
24513 shlibpath_var
=LD_LIBRARY_PATH
24514 hardcode_into_libs
=yes
24517 hpux9
* | hpux10
* | hpux11
*)
24518 # Give a soname corresponding to the major version so that dld.sl refuses to
24519 # link against other versions.
24526 hardcode_into_libs
=yes
24527 dynamic_linker
="$host_os dld.so"
24528 shlibpath_var
=LD_LIBRARY_PATH
24529 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
24530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24531 soname_spec
='${libname}${release}${shared_ext}$major'
24532 if test "X$HPUX_IA64_MODE" = X32
; then
24533 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24535 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
24537 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
24541 hardcode_into_libs
=yes
24542 dynamic_linker
="$host_os dld.sl"
24543 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
24544 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
24545 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24546 soname_spec
='${libname}${release}${shared_ext}$major'
24547 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24548 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
24552 dynamic_linker
="$host_os dld.sl"
24553 shlibpath_var
=SHLIB_PATH
24554 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
24555 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24556 soname_spec
='${libname}${release}${shared_ext}$major'
24559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24560 postinstall_cmds
='chmod 555 $lib'
24567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24568 soname_spec
='${libname}${release}${shared_ext}$major'
24569 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
24570 shlibpath_var
=LD_LIBRARY_PATH
24571 shlibpath_overrides_runpath
=no
24572 hardcode_into_libs
=yes
24575 irix5
* | irix6
* | nonstopux
*)
24577 nonstopux
*) version_type
=nonstopux
;;
24579 if test "$lt_cv_prog_gnu_ld" = yes; then
24587 soname_spec
='${libname}${release}${shared_ext}$major'
24588 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24590 irix5
* | nonstopux
*)
24591 libsuff
= shlibsuff
=
24594 case $LD in # libtool.m4 will add one of these switches to LD
24595 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
24596 libsuff
= shlibsuff
= libmagic
=32-bit;;
24597 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
24598 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
24599 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
24600 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
24601 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
24605 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
24606 shlibpath_overrides_runpath
=no
24607 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24608 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
24609 hardcode_into_libs
=yes
24612 # No shared lib support for Linux oldld, aout, or coff.
24613 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
24617 # This must be Linux ELF.
24622 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24623 soname_spec
='${libname}${release}${shared_ext}$major'
24624 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24625 shlibpath_var
=LD_LIBRARY_PATH
24626 shlibpath_overrides_runpath
=no
24627 # This implies no fast_install, which is unacceptable.
24628 # Some rework will be needed to allow for fast_install
24629 # before this can be enabled.
24630 hardcode_into_libs
=yes
24632 # Append ld.so.conf contents to the search path
24633 if test -f /etc
/ld.so.conf
; then
24634 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' ' '`
24635 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
24638 # We used to test for /lib/ld.so.1 and disable shared libraries on
24639 # powerpc, because MkLinux only supported shared libraries with the
24640 # GNU dynamic linker. Since this was broken with cross compilers,
24641 # most powerpc-linux boxes support dynamic linking these days and
24642 # people can always --disable-shared, the test was removed, and we
24643 # assume the GNU/Linux dynamic linker is in use.
24644 dynamic_linker
='GNU/Linux ld.so'
24651 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24652 soname_spec
='${libname}${release}${shared_ext}$major'
24653 shlibpath_var
=LD_LIBRARY_PATH
24654 shlibpath_overrides_runpath
=no
24655 hardcode_into_libs
=yes
24656 dynamic_linker
='GNU ld.so'
24663 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
24664 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24665 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24666 dynamic_linker
='NetBSD (a.out) ld.so'
24668 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24669 soname_spec
='${libname}${release}${shared_ext}$major'
24670 dynamic_linker
='NetBSD ld.elf_so'
24672 shlibpath_var
=LD_LIBRARY_PATH
24673 shlibpath_overrides_runpath
=yes
24674 hardcode_into_libs
=yes
24679 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24680 shlibpath_var
=LD_LIBRARY_PATH
24681 shlibpath_overrides_runpath
=yes
24688 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24689 soname_spec
='${libname}${release}${shared_ext}$major'
24690 shlibpath_var
=LD_LIBRARY_PATH
24691 shlibpath_overrides_runpath
=yes
24696 sys_lib_dlsearch_path_spec
="/usr/lib"
24698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24700 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
24701 *) need_version
=no
;;
24703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24704 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24705 shlibpath_var
=LD_LIBRARY_PATH
24706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24708 openbsd2.
[89] | openbsd2.
[89].
*)
24709 shlibpath_overrides_runpath
=no
24712 shlibpath_overrides_runpath
=yes
24716 shlibpath_overrides_runpath
=yes
24721 libname_spec
='$name'
24724 library_names_spec
='$libname${shared_ext} $libname.a'
24725 dynamic_linker
='OS/2 ld.exe'
24726 shlibpath_var
=LIBPATH
24729 osf3
* | osf4
* | osf5
*)
24733 soname_spec
='${libname}${release}${shared_ext}$major'
24734 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24735 shlibpath_var
=LD_LIBRARY_PATH
24736 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24737 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
24744 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24745 soname_spec
='${libname}${release}${shared_ext}$major'
24746 shlibpath_var
=LD_LIBRARY_PATH
24747 shlibpath_overrides_runpath
=yes
24748 hardcode_into_libs
=yes
24749 # ldd complains unless libraries are executable
24750 postinstall_cmds
='chmod +x $lib'
24755 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24756 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24757 shlibpath_var
=LD_LIBRARY_PATH
24758 shlibpath_overrides_runpath
=yes
24759 if test "$with_gnu_ld" = yes; then
24767 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24768 soname_spec
='${libname}${release}${shared_ext}$major'
24769 shlibpath_var
=LD_LIBRARY_PATH
24770 case $host_vendor in
24772 shlibpath_overrides_runpath
=no
24774 export_dynamic_flag_spec
='${wl}-Blargedynsym'
24775 runpath_var
=LD_RUN_PATH
24783 shlibpath_overrides_runpath
=no
24784 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
24790 if test -d /usr
/nec
;then
24792 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24793 soname_spec
='$libname${shared_ext}.$major'
24794 shlibpath_var
=LD_LIBRARY_PATH
24798 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
24799 version_type
=freebsd-elf
24802 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24803 soname_spec
='${libname}${release}${shared_ext}$major'
24804 shlibpath_var
=LD_LIBRARY_PATH
24805 hardcode_into_libs
=yes
24806 if test "$with_gnu_ld" = yes; then
24807 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24808 shlibpath_overrides_runpath
=no
24810 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
24811 shlibpath_overrides_runpath
=yes
24814 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
24818 sys_lib_dlsearch_path_spec
='/usr/lib'
24823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24824 soname_spec
='${libname}${release}${shared_ext}$major'
24825 shlibpath_var
=LD_LIBRARY_PATH
24832 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24833 echo "${ECHO_T}$dynamic_linker" >&6; }
24834 test "$dynamic_linker" = no
&& can_build_shared
=no
24836 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
24837 if test "$GCC" = yes; then
24838 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24841 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24842 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24843 hardcode_action_GCJ
=
24844 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24845 test -n "$runpath_var_GCJ" || \
24846 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24848 # We can hardcode non-existant directories.
24849 if test "$hardcode_direct_GCJ" != no
&&
24850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24851 # have to relink, otherwise we might link with an installed library
24852 # when we should be linking with a yet-to-be-installed one
24853 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24854 test "$hardcode_minus_L_GCJ" != no
; then
24855 # Linking always hardcodes the temporary library directory.
24856 hardcode_action_GCJ
=relink
24858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24859 hardcode_action_GCJ
=immediate
24862 # We cannot hardcode anything, or else we can only hardcode existing
24864 hardcode_action_GCJ
=unsupported
24866 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24867 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
24869 if test "$hardcode_action_GCJ" = relink
; then
24870 # Fast installation is not supported
24871 enable_fast_install
=no
24872 elif test "$shlibpath_overrides_runpath" = yes ||
24873 test "$enable_shared" = no
; then
24874 # Fast installation is not necessary
24875 enable_fast_install
=needless
24879 # The else clause should only fire when bootstrapping the
24880 # libtool distribution, otherwise you forgot to ship ltmain.sh
24881 # with your package, and you will get complaints that there are
24882 # no rules to generate ltmain.sh.
24883 if test -f "$ltmain"; then
24884 # See if we are running on zsh, and set the options which allow our commands through
24885 # without removal of \ escapes.
24886 if test -n "${ZSH_VERSION+set}" ; then
24887 setopt NO_GLOB_SUBST
24889 # Now quote all the things that may contain metacharacters while being
24890 # careful not to overquote the AC_SUBSTed values. We take copies of the
24891 # variables and quote the copies for generation of the libtool script.
24892 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24894 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24895 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24896 deplibs_check_method reload_flag reload_cmds need_locks \
24897 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24898 lt_cv_sys_global_symbol_to_c_name_address \
24899 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24900 old_postinstall_cmds old_postuninstall_cmds \
24904 lt_prog_compiler_wl_GCJ \
24905 lt_prog_compiler_pic_GCJ \
24906 lt_prog_compiler_static_GCJ \
24907 lt_prog_compiler_no_builtin_flag_GCJ \
24908 export_dynamic_flag_spec_GCJ \
24909 thread_safe_flag_spec_GCJ \
24910 whole_archive_flag_spec_GCJ \
24911 enable_shared_with_static_runtimes_GCJ \
24912 old_archive_cmds_GCJ \
24913 old_archive_from_new_cmds_GCJ \
24914 predep_objects_GCJ \
24915 postdep_objects_GCJ \
24918 compiler_lib_search_path_GCJ \
24920 archive_expsym_cmds_GCJ \
24921 postinstall_cmds_GCJ \
24922 postuninstall_cmds_GCJ \
24923 old_archive_from_expsyms_cmds_GCJ \
24924 allow_undefined_flag_GCJ \
24925 no_undefined_flag_GCJ \
24926 export_symbols_cmds_GCJ \
24927 hardcode_libdir_flag_spec_GCJ \
24928 hardcode_libdir_flag_spec_ld_GCJ \
24929 hardcode_libdir_separator_GCJ \
24930 hardcode_automatic_GCJ \
24932 module_expsym_cmds_GCJ \
24933 lt_cv_prog_compiler_c_o_GCJ \
24934 exclude_expsyms_GCJ \
24935 include_expsyms_GCJ
; do
24938 old_archive_cmds_GCJ | \
24939 old_archive_from_new_cmds_GCJ | \
24940 archive_cmds_GCJ | \
24941 archive_expsym_cmds_GCJ | \
24942 module_cmds_GCJ | \
24943 module_expsym_cmds_GCJ | \
24944 old_archive_from_expsyms_cmds_GCJ | \
24945 export_symbols_cmds_GCJ | \
24946 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24947 postinstall_cmds | postuninstall_cmds | \
24948 old_postinstall_cmds | old_postuninstall_cmds | \
24949 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
24950 # Double-quote double-evaled strings.
24951 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24954 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24960 *'\$0 --fallback-echo"')
24961 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24967 cat <<__EOF__ >> "$cfgfile"
24968 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24970 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24972 # Shell to use when invoking shell scripts.
24975 # Whether or not to build shared libraries.
24976 build_libtool_libs=$enable_shared
24978 # Whether or not to build static libraries.
24979 build_old_libs=$enable_static
24981 # Whether or not to add -lc for building shared libraries.
24982 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24984 # Whether or not to disallow shared libs when runtime libs are static
24985 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24987 # Whether or not to optimize for fast installation.
24988 fast_install=$enable_fast_install
24991 host_alias=$host_alias
24995 # The build system.
24996 build_alias=$build_alias
25000 # An echo program that does not interpret backslashes.
25005 AR_FLAGS=$lt_AR_FLAGS
25010 # LTCC compiler flags.
25011 LTCFLAGS=$lt_LTCFLAGS
25013 # A language-specific compiler.
25014 CC=$lt_compiler_GCJ
25016 # Is the compiler the GNU C compiler?
25022 # The linker used to build libraries.
25025 # Whether we need hard or soft links.
25028 # A BSD-compatible nm program.
25031 # A symbol stripping program
25034 # Used to examine libraries when file_magic_cmd begins "file"
25035 MAGIC_CMD=$MAGIC_CMD
25037 # Used on cygwin: DLL creation program.
25040 # Used on cygwin: object dumper.
25043 # Used on cygwin: assembler.
25046 # The name of the directory that contains temporary libtool files.
25049 # How to create reloadable object files.
25050 reload_flag=$lt_reload_flag
25051 reload_cmds=$lt_reload_cmds
25053 # How to pass a linker flag through the compiler.
25054 wl=$lt_lt_prog_compiler_wl_GCJ
25056 # Object file suffix (normally "o").
25057 objext="$ac_objext"
25059 # Old archive suffix (normally "a").
25062 # Shared library suffix (normally ".so").
25063 shrext_cmds='$shrext_cmds'
25065 # Executable file suffix (normally "").
25068 # Additional compiler flags for building library objects.
25069 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25072 # What is the maximum length of a command?
25073 max_cmd_len=$lt_cv_sys_max_cmd_len
25075 # Does compiler simultaneously support -c and -o options?
25076 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25078 # Must we lock files when doing compilation?
25079 need_locks=$lt_need_locks
25081 # Do we need the lib prefix for modules?
25082 need_lib_prefix=$need_lib_prefix
25084 # Do we need a version for libraries?
25085 need_version=$need_version
25087 # Whether dlopen is supported.
25088 dlopen_support=$enable_dlopen
25090 # Whether dlopen of programs is supported.
25091 dlopen_self=$enable_dlopen_self
25093 # Whether dlopen of statically linked programs is supported.
25094 dlopen_self_static=$enable_dlopen_self_static
25096 # Compiler flag to prevent dynamic linking.
25097 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25099 # Compiler flag to turn off builtin functions.
25100 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25102 # Compiler flag to allow reflexive dlopens.
25103 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25105 # Compiler flag to generate shared objects directly from archives.
25106 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25108 # Compiler flag to generate thread-safe objects.
25109 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25111 # Library versioning type.
25112 version_type=$version_type
25114 # Format of library name prefix.
25115 libname_spec=$lt_libname_spec
25117 # List of archive names. First name is the real one, the rest are links.
25118 # The last name is the one that the linker finds with -lNAME.
25119 library_names_spec=$lt_library_names_spec
25121 # The coded name of the library, if different from the real name.
25122 soname_spec=$lt_soname_spec
25124 # Commands used to build and install an old-style archive.
25126 old_archive_cmds=$lt_old_archive_cmds_GCJ
25127 old_postinstall_cmds=$lt_old_postinstall_cmds
25128 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25130 # Create an old-style archive from a shared archive.
25131 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25133 # Create a temporary old-style archive to link instead of a shared archive.
25134 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25136 # Commands used to build and install a shared archive.
25137 archive_cmds=$lt_archive_cmds_GCJ
25138 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25139 postinstall_cmds=$lt_postinstall_cmds
25140 postuninstall_cmds=$lt_postuninstall_cmds
25142 # Commands used to build a loadable module (assumed same as above if empty)
25143 module_cmds=$lt_module_cmds_GCJ
25144 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25146 # Commands to strip libraries.
25147 old_striplib=$lt_old_striplib
25148 striplib=$lt_striplib
25150 # Dependencies to place before the objects being linked to create a
25152 predep_objects=$lt_predep_objects_GCJ
25154 # Dependencies to place after the objects being linked to create a
25156 postdep_objects=$lt_postdep_objects_GCJ
25158 # Dependencies to place before the objects being linked to create a
25160 predeps=$lt_predeps_GCJ
25162 # Dependencies to place after the objects being linked to create a
25164 postdeps=$lt_postdeps_GCJ
25166 # The library search path used internally by the compiler when linking
25167 # a shared library.
25168 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25170 # Method to check whether dependent libraries are shared objects.
25171 deplibs_check_method=$lt_deplibs_check_method
25173 # Command to use when deplibs_check_method == file_magic.
25174 file_magic_cmd=$lt_file_magic_cmd
25176 # Flag that allows shared libraries with undefined symbols to be built.
25177 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25179 # Flag that forces no undefined symbols.
25180 no_undefined_flag=$lt_no_undefined_flag_GCJ
25182 # Commands used to finish a libtool library installation in a directory.
25183 finish_cmds=$lt_finish_cmds
25185 # Same as above, but a single script fragment to be evaled but not shown.
25186 finish_eval=$lt_finish_eval
25188 # Take the output of nm and produce a listing of raw symbols and C names.
25189 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25191 # Transform the output of nm in a proper C declaration
25192 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25194 # Transform the output of nm in a C name address pair
25195 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25197 # This is the shared library runtime path variable.
25198 runpath_var=$runpath_var
25200 # This is the shared library path variable.
25201 shlibpath_var=$shlibpath_var
25203 # Is shlibpath searched before the hard-coded library search path?
25204 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25206 # How to hardcode a shared library path into an executable.
25207 hardcode_action=$hardcode_action_GCJ
25209 # Whether we should hardcode library paths into libraries.
25210 hardcode_into_libs=$hardcode_into_libs
25212 # Flag to hardcode \$libdir into a binary during linking.
25213 # This must work even if \$libdir does not exist.
25214 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25216 # If ld is used when linking, flag to hardcode \$libdir into
25217 # a binary during linking. This must work even if \$libdir does
25219 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25221 # Whether we need a single -rpath flag with a separated argument.
25222 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25224 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25225 # resulting binary.
25226 hardcode_direct=$hardcode_direct_GCJ
25228 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25229 # resulting binary.
25230 hardcode_minus_L=$hardcode_minus_L_GCJ
25232 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25233 # the resulting binary.
25234 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25236 # Set to yes if building a shared library automatically hardcodes DIR into the library
25237 # and all subsequent libraries and executables linked against it.
25238 hardcode_automatic=$hardcode_automatic_GCJ
25240 # Variables whose values should be saved in libtool wrapper scripts and
25241 # restored at relink time.
25242 variables_saved_for_relink="$variables_saved_for_relink"
25244 # Whether libtool must link a program against all its dependency libraries.
25245 link_all_deplibs=$link_all_deplibs_GCJ
25247 # Compile-time system search path for libraries
25248 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25250 # Run-time system search path for libraries
25251 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25253 # Fix the shell variable \$srcfile for the compiler.
25254 fix_srcfile_path="$fix_srcfile_path_GCJ"
25256 # Set to yes if exported symbols are required.
25257 always_export_symbols=$always_export_symbols_GCJ
25259 # The commands to list exported symbols.
25260 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25262 # The commands to extract the exported symbol list from a shared archive.
25263 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25265 # Symbols that should not be listed in the preloaded symbols.
25266 exclude_expsyms=$lt_exclude_expsyms_GCJ
25268 # Symbols that must always be exported.
25269 include_expsyms=$lt_include_expsyms_GCJ
25271 # ### END LIBTOOL TAG CONFIG: $tagname
25277 # If there is no Makefile yet, we rely on a make rule to execute
25278 # `config.status --recheck' to rerun these tests and create the
25279 # libtool script then.
25280 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25281 if test -f "$ltmain_in"; then
25282 test -f Makefile
&& make "$ltmain"
25288 ac_cpp
='$CPP $CPPFLAGS'
25289 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25290 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25291 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
25302 ac_cpp
='$CPP $CPPFLAGS'
25303 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25304 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25305 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
25308 # Source file extension for RC test sources.
25311 # Object file extension for compiled RC test sources.
25315 # Code to be used in simple compile tests
25316 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25318 # Code to be used in simple link tests
25319 lt_simple_link_test_code
="$lt_simple_compile_test_code"
25321 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25323 # If no C compiler was specified, use CC.
25326 # If no C compiler flags were specified, use CFLAGS.
25327 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
25329 # Allow CC to be a program name with arguments.
25333 # save warnings/boilerplate of simple test code
25334 ac_outfile
=conftest.
$ac_objext
25335 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
25336 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
25337 _lt_compiler_boilerplate
=`cat conftest.err`
25340 ac_outfile
=conftest.
$ac_objext
25341 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
25342 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
25343 _lt_linker_boilerplate
=`cat conftest.err`
25347 # Allow CC to be a program name with arguments.
25352 for cc_temp
in $compiler""; do
25354 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
25355 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
25360 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25362 lt_cv_prog_compiler_c_o_RC
=yes
25364 # The else clause should only fire when bootstrapping the
25365 # libtool distribution, otherwise you forgot to ship ltmain.sh
25366 # with your package, and you will get complaints that there are
25367 # no rules to generate ltmain.sh.
25368 if test -f "$ltmain"; then
25369 # See if we are running on zsh, and set the options which allow our commands through
25370 # without removal of \ escapes.
25371 if test -n "${ZSH_VERSION+set}" ; then
25372 setopt NO_GLOB_SUBST
25374 # Now quote all the things that may contain metacharacters while being
25375 # careful not to overquote the AC_SUBSTed values. We take copies of the
25376 # variables and quote the copies for generation of the libtool script.
25377 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25379 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25380 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25381 deplibs_check_method reload_flag reload_cmds need_locks \
25382 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25383 lt_cv_sys_global_symbol_to_c_name_address \
25384 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25385 old_postinstall_cmds old_postuninstall_cmds \
25389 lt_prog_compiler_wl_RC \
25390 lt_prog_compiler_pic_RC \
25391 lt_prog_compiler_static_RC \
25392 lt_prog_compiler_no_builtin_flag_RC \
25393 export_dynamic_flag_spec_RC \
25394 thread_safe_flag_spec_RC \
25395 whole_archive_flag_spec_RC \
25396 enable_shared_with_static_runtimes_RC \
25397 old_archive_cmds_RC \
25398 old_archive_from_new_cmds_RC \
25399 predep_objects_RC \
25400 postdep_objects_RC \
25403 compiler_lib_search_path_RC \
25405 archive_expsym_cmds_RC \
25406 postinstall_cmds_RC \
25407 postuninstall_cmds_RC \
25408 old_archive_from_expsyms_cmds_RC \
25409 allow_undefined_flag_RC \
25410 no_undefined_flag_RC \
25411 export_symbols_cmds_RC \
25412 hardcode_libdir_flag_spec_RC \
25413 hardcode_libdir_flag_spec_ld_RC \
25414 hardcode_libdir_separator_RC \
25415 hardcode_automatic_RC \
25417 module_expsym_cmds_RC \
25418 lt_cv_prog_compiler_c_o_RC \
25419 exclude_expsyms_RC \
25420 include_expsyms_RC
; do
25423 old_archive_cmds_RC | \
25424 old_archive_from_new_cmds_RC | \
25425 archive_cmds_RC | \
25426 archive_expsym_cmds_RC | \
25428 module_expsym_cmds_RC | \
25429 old_archive_from_expsyms_cmds_RC | \
25430 export_symbols_cmds_RC | \
25431 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25432 postinstall_cmds | postuninstall_cmds | \
25433 old_postinstall_cmds | old_postuninstall_cmds | \
25434 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
25435 # Double-quote double-evaled strings.
25436 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25439 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25445 *'\$0 --fallback-echo"')
25446 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25452 cat <<__EOF__ >> "$cfgfile"
25453 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25455 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25457 # Shell to use when invoking shell scripts.
25460 # Whether or not to build shared libraries.
25461 build_libtool_libs=$enable_shared
25463 # Whether or not to build static libraries.
25464 build_old_libs=$enable_static
25466 # Whether or not to add -lc for building shared libraries.
25467 build_libtool_need_lc=$archive_cmds_need_lc_RC
25469 # Whether or not to disallow shared libs when runtime libs are static
25470 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25472 # Whether or not to optimize for fast installation.
25473 fast_install=$enable_fast_install
25476 host_alias=$host_alias
25480 # The build system.
25481 build_alias=$build_alias
25485 # An echo program that does not interpret backslashes.
25490 AR_FLAGS=$lt_AR_FLAGS
25495 # LTCC compiler flags.
25496 LTCFLAGS=$lt_LTCFLAGS
25498 # A language-specific compiler.
25501 # Is the compiler the GNU C compiler?
25507 # The linker used to build libraries.
25510 # Whether we need hard or soft links.
25513 # A BSD-compatible nm program.
25516 # A symbol stripping program
25519 # Used to examine libraries when file_magic_cmd begins "file"
25520 MAGIC_CMD=$MAGIC_CMD
25522 # Used on cygwin: DLL creation program.
25525 # Used on cygwin: object dumper.
25528 # Used on cygwin: assembler.
25531 # The name of the directory that contains temporary libtool files.
25534 # How to create reloadable object files.
25535 reload_flag=$lt_reload_flag
25536 reload_cmds=$lt_reload_cmds
25538 # How to pass a linker flag through the compiler.
25539 wl=$lt_lt_prog_compiler_wl_RC
25541 # Object file suffix (normally "o").
25542 objext="$ac_objext"
25544 # Old archive suffix (normally "a").
25547 # Shared library suffix (normally ".so").
25548 shrext_cmds='$shrext_cmds'
25550 # Executable file suffix (normally "").
25553 # Additional compiler flags for building library objects.
25554 pic_flag=$lt_lt_prog_compiler_pic_RC
25557 # What is the maximum length of a command?
25558 max_cmd_len=$lt_cv_sys_max_cmd_len
25560 # Does compiler simultaneously support -c and -o options?
25561 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25563 # Must we lock files when doing compilation?
25564 need_locks=$lt_need_locks
25566 # Do we need the lib prefix for modules?
25567 need_lib_prefix=$need_lib_prefix
25569 # Do we need a version for libraries?
25570 need_version=$need_version
25572 # Whether dlopen is supported.
25573 dlopen_support=$enable_dlopen
25575 # Whether dlopen of programs is supported.
25576 dlopen_self=$enable_dlopen_self
25578 # Whether dlopen of statically linked programs is supported.
25579 dlopen_self_static=$enable_dlopen_self_static
25581 # Compiler flag to prevent dynamic linking.
25582 link_static_flag=$lt_lt_prog_compiler_static_RC
25584 # Compiler flag to turn off builtin functions.
25585 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25587 # Compiler flag to allow reflexive dlopens.
25588 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25590 # Compiler flag to generate shared objects directly from archives.
25591 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25593 # Compiler flag to generate thread-safe objects.
25594 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25596 # Library versioning type.
25597 version_type=$version_type
25599 # Format of library name prefix.
25600 libname_spec=$lt_libname_spec
25602 # List of archive names. First name is the real one, the rest are links.
25603 # The last name is the one that the linker finds with -lNAME.
25604 library_names_spec=$lt_library_names_spec
25606 # The coded name of the library, if different from the real name.
25607 soname_spec=$lt_soname_spec
25609 # Commands used to build and install an old-style archive.
25611 old_archive_cmds=$lt_old_archive_cmds_RC
25612 old_postinstall_cmds=$lt_old_postinstall_cmds
25613 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25615 # Create an old-style archive from a shared archive.
25616 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25618 # Create a temporary old-style archive to link instead of a shared archive.
25619 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25621 # Commands used to build and install a shared archive.
25622 archive_cmds=$lt_archive_cmds_RC
25623 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25624 postinstall_cmds=$lt_postinstall_cmds
25625 postuninstall_cmds=$lt_postuninstall_cmds
25627 # Commands used to build a loadable module (assumed same as above if empty)
25628 module_cmds=$lt_module_cmds_RC
25629 module_expsym_cmds=$lt_module_expsym_cmds_RC
25631 # Commands to strip libraries.
25632 old_striplib=$lt_old_striplib
25633 striplib=$lt_striplib
25635 # Dependencies to place before the objects being linked to create a
25637 predep_objects=$lt_predep_objects_RC
25639 # Dependencies to place after the objects being linked to create a
25641 postdep_objects=$lt_postdep_objects_RC
25643 # Dependencies to place before the objects being linked to create a
25645 predeps=$lt_predeps_RC
25647 # Dependencies to place after the objects being linked to create a
25649 postdeps=$lt_postdeps_RC
25651 # The library search path used internally by the compiler when linking
25652 # a shared library.
25653 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25655 # Method to check whether dependent libraries are shared objects.
25656 deplibs_check_method=$lt_deplibs_check_method
25658 # Command to use when deplibs_check_method == file_magic.
25659 file_magic_cmd=$lt_file_magic_cmd
25661 # Flag that allows shared libraries with undefined symbols to be built.
25662 allow_undefined_flag=$lt_allow_undefined_flag_RC
25664 # Flag that forces no undefined symbols.
25665 no_undefined_flag=$lt_no_undefined_flag_RC
25667 # Commands used to finish a libtool library installation in a directory.
25668 finish_cmds=$lt_finish_cmds
25670 # Same as above, but a single script fragment to be evaled but not shown.
25671 finish_eval=$lt_finish_eval
25673 # Take the output of nm and produce a listing of raw symbols and C names.
25674 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25676 # Transform the output of nm in a proper C declaration
25677 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25679 # Transform the output of nm in a C name address pair
25680 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25682 # This is the shared library runtime path variable.
25683 runpath_var=$runpath_var
25685 # This is the shared library path variable.
25686 shlibpath_var=$shlibpath_var
25688 # Is shlibpath searched before the hard-coded library search path?
25689 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25691 # How to hardcode a shared library path into an executable.
25692 hardcode_action=$hardcode_action_RC
25694 # Whether we should hardcode library paths into libraries.
25695 hardcode_into_libs=$hardcode_into_libs
25697 # Flag to hardcode \$libdir into a binary during linking.
25698 # This must work even if \$libdir does not exist.
25699 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25701 # If ld is used when linking, flag to hardcode \$libdir into
25702 # a binary during linking. This must work even if \$libdir does
25704 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25706 # Whether we need a single -rpath flag with a separated argument.
25707 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25709 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25710 # resulting binary.
25711 hardcode_direct=$hardcode_direct_RC
25713 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25714 # resulting binary.
25715 hardcode_minus_L=$hardcode_minus_L_RC
25717 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25718 # the resulting binary.
25719 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25721 # Set to yes if building a shared library automatically hardcodes DIR into the library
25722 # and all subsequent libraries and executables linked against it.
25723 hardcode_automatic=$hardcode_automatic_RC
25725 # Variables whose values should be saved in libtool wrapper scripts and
25726 # restored at relink time.
25727 variables_saved_for_relink="$variables_saved_for_relink"
25729 # Whether libtool must link a program against all its dependency libraries.
25730 link_all_deplibs=$link_all_deplibs_RC
25732 # Compile-time system search path for libraries
25733 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25735 # Run-time system search path for libraries
25736 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25738 # Fix the shell variable \$srcfile for the compiler.
25739 fix_srcfile_path="$fix_srcfile_path_RC"
25741 # Set to yes if exported symbols are required.
25742 always_export_symbols=$always_export_symbols_RC
25744 # The commands to list exported symbols.
25745 export_symbols_cmds=$lt_export_symbols_cmds_RC
25747 # The commands to extract the exported symbol list from a shared archive.
25748 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25750 # Symbols that should not be listed in the preloaded symbols.
25751 exclude_expsyms=$lt_exclude_expsyms_RC
25753 # Symbols that must always be exported.
25754 include_expsyms=$lt_include_expsyms_RC
25756 # ### END LIBTOOL TAG CONFIG: $tagname
25762 # If there is no Makefile yet, we rely on a make rule to execute
25763 # `config.status --recheck' to rerun these tests and create the
25764 # libtool script then.
25765 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25766 if test -f "$ltmain_in"; then
25767 test -f Makefile
&& make "$ltmain"
25773 ac_cpp
='$CPP $CPPFLAGS'
25774 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25775 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25776 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
25783 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25784 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25785 { (exit 1); exit 1; }; }
25789 # Append the new tag name to the list of available tags.
25790 if test -n "$tagname" ; then
25791 available_tags
="$available_tags $tagname"
25797 # Now substitute the updated list of available tags.
25798 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25799 mv "${ofile}T" "$ofile"
25803 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25804 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25805 { (exit 1); exit 1; }; }
25811 # This can be used to rebuild libtool when needed
25812 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
25814 # Always use our own libtool.
25815 LIBTOOL
='$(SHELL) $(top_builddir)/mklib'
25817 # Prevent multiple expansion
25839 if test "$lt_cv_dlopen_self" = "yes" ; then
25841 cat >>confdefs.h
<<\_ACEOF
25842 #define CAN_DLOPEN_SELF 1
25847 if test "$WITH_LLVMGCCDIR" = "default" ; then
25848 LLVMGCC
="llvm-gcc${EXEEXT}"
25849 LLVMGXX
="llvm-g++${EXEEXT}"
25850 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25851 set dummy
$LLVMGCC; ac_word
=$2
25852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25854 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25855 echo $ECHO_N "(cached) $ECHO_C" >&6
25859 ac_cv_path_LLVMGCC
="$LLVMGCC" # Let the user override the test with a path.
25862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25863 for as_dir
in $PATH
25866 test -z "$as_dir" && as_dir
=.
25867 for ac_exec_ext
in '' $ac_executable_extensions; do
25868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25869 ac_cv_path_LLVMGCC
="$as_dir/$ac_word$ac_exec_ext"
25870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25880 LLVMGCC
=$ac_cv_path_LLVMGCC
25881 if test -n "$LLVMGCC"; then
25882 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25883 echo "${ECHO_T}$LLVMGCC" >&6; }
25885 { echo "$as_me:$LINENO: result: no" >&5
25886 echo "${ECHO_T}no" >&6; }
25890 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25891 set dummy
$LLVMGXX; ac_word
=$2
25892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25894 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25895 echo $ECHO_N "(cached) $ECHO_C" >&6
25899 ac_cv_path_LLVMGXX
="$LLVMGXX" # Let the user override the test with a path.
25902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25903 for as_dir
in $PATH
25906 test -z "$as_dir" && as_dir
=.
25907 for ac_exec_ext
in '' $ac_executable_extensions; do
25908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25909 ac_cv_path_LLVMGXX
="$as_dir/$ac_word$ac_exec_ext"
25910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25920 LLVMGXX
=$ac_cv_path_LLVMGXX
25921 if test -n "$LLVMGXX"; then
25922 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25923 echo "${ECHO_T}$LLVMGXX" >&6; }
25925 { echo "$as_me:$LINENO: result: no" >&5
25926 echo "${ECHO_T}no" >&6; }
25931 if test -z "$LLVMGCC"; then
25932 LLVMGCC
="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25934 if test -z "$LLVMGXX"; then
25935 LLVMGXX
="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25943 { echo "$as_me:$LINENO: checking tool compatibility" >&5
25944 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
25957 if test "$GCC" != "yes" && test "$ICC" != "yes"
25959 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25960 echo "$as_me: error: gcc|icc required but not found" >&2;}
25961 { (exit 1); exit 1; }; }
25964 if test "$GXX" != "yes" && test "$IXX" != "yes"
25966 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25967 echo "$as_me: error: g++|icc required but not found" >&2;}
25968 { (exit 1); exit 1; }; }
25971 if test "$GCC" = "yes"
25973 cat >conftest.
$ac_ext <<_ACEOF
25974 #if !defined(__GNUC__) || __GNUC__ < 3
25975 #error Unsupported GCC version
25979 rm -f conftest.
$ac_objext
25980 if { (ac_try
="$ac_compile"
25981 case "(($ac_try" in
25982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25983 *) ac_try_echo=$ac_try;;
25985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25986 (eval "$ac_compile") 2>conftest.er1
25988 grep -v '^ *+' conftest.er1 >conftest.err
25990 cat conftest.err >&5
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); } && {
25993 test -z "$ac_c_werror_flag" ||
25994 test ! -s conftest.err
25995 } && test -s conftest.$ac_objext; then
25998 echo "$as_me: failed program was:" >&5
25999 sed 's/^/| /' conftest.$ac_ext >&5
26001 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26002 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26003 { (exit 1); exit 1; }; }
26006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26009 if test -z "$llvm_cv_gnu_make_command"
26011 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26012 echo "$as_me: error: GNU Make required but not found" >&2;}
26013 { (exit 1); exit 1; }; }
26016 { echo "$as_me:$LINENO: result: ok" >&5
26017 echo "${ECHO_T}ok" >&6; }
26021 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26022 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26023 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26024 echo $ECHO_N "(cached) $ECHO_C" >&6
26026 ac_check_lib_save_LIBS=$LIBS
26028 cat >conftest.$ac_ext <<_ACEOF
26031 cat confdefs.h >>conftest.$ac_ext
26032 cat >>conftest.$ac_ext <<_ACEOF
26033 /* end confdefs.h. */
26035 /* Override any GCC internal prototype to avoid an error.
26036 Use char because int might match the return type of a GCC
26037 builtin and then its argument prototype would still apply. */
26045 return elf_begin ();
26050 rm -f conftest.$ac_objext conftest$ac_exeext
26051 if { (ac_try="$ac_link"
26052 case "(($ac_try" in
26053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26054 *) ac_try_echo
=$ac_try;;
26056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26057 (eval "$ac_link") 2>conftest.er1
26059 grep -v '^ *+' conftest.er1
>conftest.err
26061 cat conftest.err
>&5
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); } && {
26064 test -z "$ac_c_werror_flag" ||
26065 test ! -s conftest.err
26066 } && test -s conftest
$ac_exeext &&
26067 $as_test_x conftest
$ac_exeext; then
26068 ac_cv_lib_elf_elf_begin
=yes
26070 echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.
$ac_ext >&5
26073 ac_cv_lib_elf_elf_begin
=no
26076 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26077 conftest
$ac_exeext conftest.
$ac_ext
26078 LIBS
=$ac_check_lib_save_LIBS
26080 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26081 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26082 if test $ac_cv_lib_elf_elf_begin = yes; then
26083 cat >>confdefs.h
<<_ACEOF
26084 #define HAVE_LIBELF 1
26092 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26093 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26094 if test "${ac_cv_lib_m_sin+set}" = set; then
26095 echo $ECHO_N "(cached) $ECHO_C" >&6
26097 ac_check_lib_save_LIBS
=$LIBS
26099 cat >conftest.
$ac_ext <<_ACEOF
26102 cat confdefs.h
>>conftest.
$ac_ext
26103 cat >>conftest.
$ac_ext <<_ACEOF
26104 /* end confdefs.h. */
26106 /* Override any GCC internal prototype to avoid an error.
26107 Use char because int might match the return type of a GCC
26108 builtin and then its argument prototype would still apply. */
26121 rm -f conftest.
$ac_objext conftest
$ac_exeext
26122 if { (ac_try
="$ac_link"
26123 case "(($ac_try" in
26124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26125 *) ac_try_echo=$ac_try;;
26127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26128 (eval "$ac_link") 2>conftest.er1
26130 grep -v '^ *+' conftest.er1 >conftest.err
26132 cat conftest.err >&5
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); } && {
26135 test -z "$ac_c_werror_flag" ||
26136 test ! -s conftest.err
26137 } && test -s conftest$ac_exeext &&
26138 $as_test_x conftest$ac_exeext; then
26139 ac_cv_lib_m_sin=yes
26141 echo "$as_me: failed program was:" >&5
26142 sed 's/^/| /' conftest.$ac_ext >&5
26147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26148 conftest$ac_exeext conftest.$ac_ext
26149 LIBS=$ac_check_lib_save_LIBS
26151 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26152 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26153 if test $ac_cv_lib_m_sin = yes; then
26154 cat >>confdefs.h <<_ACEOF
26155 #define HAVE_LIBM 1
26162 if test "$llvm_cv_os_type" = "MingW" ; then
26164 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26165 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26166 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26167 echo $ECHO_N "(cached) $ECHO_C" >&6
26169 ac_check_lib_save_LIBS=$LIBS
26170 LIBS="-limagehlp $LIBS"
26171 cat >conftest.$ac_ext <<_ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h. */
26187 rm -f conftest.$ac_objext conftest$ac_exeext
26188 if { (ac_try="$ac_link"
26189 case "(($ac_try" in
26190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26191 *) ac_try_echo
=$ac_try;;
26193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26194 (eval "$ac_link") 2>conftest.er1
26196 grep -v '^ *+' conftest.er1
>conftest.err
26198 cat conftest.err
>&5
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); } && {
26201 test -z "$ac_c_werror_flag" ||
26202 test ! -s conftest.err
26203 } && test -s conftest
$ac_exeext &&
26204 $as_test_x conftest
$ac_exeext; then
26205 ac_cv_lib_imagehlp_main
=yes
26207 echo "$as_me: failed program was:" >&5
26208 sed 's/^/| /' conftest.
$ac_ext >&5
26210 ac_cv_lib_imagehlp_main
=no
26213 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26214 conftest
$ac_exeext conftest.
$ac_ext
26215 LIBS
=$ac_check_lib_save_LIBS
26217 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26218 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26219 if test $ac_cv_lib_imagehlp_main = yes; then
26220 cat >>confdefs.h
<<_ACEOF
26221 #define HAVE_LIBIMAGEHLP 1
26224 LIBS
="-limagehlp $LIBS"
26229 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26230 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26231 if test "${ac_cv_lib_psapi_main+set}" = set; then
26232 echo $ECHO_N "(cached) $ECHO_C" >&6
26234 ac_check_lib_save_LIBS
=$LIBS
26235 LIBS
="-lpsapi $LIBS"
26236 cat >conftest.
$ac_ext <<_ACEOF
26239 cat confdefs.h
>>conftest.
$ac_ext
26240 cat >>conftest.
$ac_ext <<_ACEOF
26241 /* end confdefs.h. */
26252 rm -f conftest.
$ac_objext conftest
$ac_exeext
26253 if { (ac_try
="$ac_link"
26254 case "(($ac_try" in
26255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26256 *) ac_try_echo=$ac_try;;
26258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26259 (eval "$ac_link") 2>conftest.er1
26261 grep -v '^ *+' conftest.er1 >conftest.err
26263 cat conftest.err >&5
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); } && {
26266 test -z "$ac_c_werror_flag" ||
26267 test ! -s conftest.err
26268 } && test -s conftest$ac_exeext &&
26269 $as_test_x conftest$ac_exeext; then
26270 ac_cv_lib_psapi_main=yes
26272 echo "$as_me: failed program was:" >&5
26273 sed 's/^/| /' conftest.$ac_ext >&5
26275 ac_cv_lib_psapi_main=no
26278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26279 conftest$ac_exeext conftest.$ac_ext
26280 LIBS=$ac_check_lib_save_LIBS
26282 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26283 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26284 if test $ac_cv_lib_psapi_main = yes; then
26285 cat >>confdefs.h <<_ACEOF
26286 #define HAVE_LIBPSAPI 1
26289 LIBS="-lpsapi $LIBS"
26295 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26296 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
26297 if test "${ac_cv_search_dlopen+set}" = set; then
26298 echo $ECHO_N "(cached) $ECHO_C" >&6
26300 ac_func_search_save_LIBS=$LIBS
26301 cat >conftest.$ac_ext <<_ACEOF
26304 cat confdefs.h >>conftest.$ac_ext
26305 cat >>conftest.$ac_ext <<_ACEOF
26306 /* end confdefs.h. */
26308 /* Override any GCC internal prototype to avoid an error.
26309 Use char because int might match the return type of a GCC
26310 builtin and then its argument prototype would still apply. */
26323 for ac_lib in '' dl; do
26324 if test -z "$ac_lib"; then
26325 ac_res="none required"
26328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26330 rm -f conftest.$ac_objext conftest$ac_exeext
26331 if { (ac_try="$ac_link"
26332 case "(($ac_try" in
26333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26334 *) ac_try_echo
=$ac_try;;
26336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26337 (eval "$ac_link") 2>conftest.er1
26339 grep -v '^ *+' conftest.er1
>conftest.err
26341 cat conftest.err
>&5
26342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343 (exit $ac_status); } && {
26344 test -z "$ac_c_werror_flag" ||
26345 test ! -s conftest.err
26346 } && test -s conftest
$ac_exeext &&
26347 $as_test_x conftest
$ac_exeext; then
26348 ac_cv_search_dlopen
=$ac_res
26350 echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.
$ac_ext >&5
26356 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26358 if test "${ac_cv_search_dlopen+set}" = set; then
26362 if test "${ac_cv_search_dlopen+set}" = set; then
26365 ac_cv_search_dlopen
=no
26367 rm conftest.
$ac_ext
26368 LIBS
=$ac_func_search_save_LIBS
26370 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26371 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26372 ac_res
=$ac_cv_search_dlopen
26373 if test "$ac_res" != no
; then
26374 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26376 cat >>confdefs.h
<<\_ACEOF
26377 #define HAVE_DLOPEN 1
26381 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26382 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
26386 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
26387 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
26388 if test "${ac_cv_search_ffi_call+set}" = set; then
26389 echo $ECHO_N "(cached) $ECHO_C" >&6
26391 ac_func_search_save_LIBS
=$LIBS
26392 cat >conftest.
$ac_ext <<_ACEOF
26395 cat confdefs.h
>>conftest.
$ac_ext
26396 cat >>conftest.
$ac_ext <<_ACEOF
26397 /* end confdefs.h. */
26399 /* Override any GCC internal prototype to avoid an error.
26400 Use char because int might match the return type of a GCC
26401 builtin and then its argument prototype would still apply. */
26409 return ffi_call ();
26414 for ac_lib
in '' ffi
; do
26415 if test -z "$ac_lib"; then
26416 ac_res
="none required"
26419 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26421 rm -f conftest.
$ac_objext conftest
$ac_exeext
26422 if { (ac_try
="$ac_link"
26423 case "(($ac_try" in
26424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26425 *) ac_try_echo=$ac_try;;
26427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26428 (eval "$ac_link") 2>conftest.er1
26430 grep -v '^ *+' conftest.er1 >conftest.err
26432 cat conftest.err >&5
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); } && {
26435 test -z "$ac_c_werror_flag" ||
26436 test ! -s conftest.err
26437 } && test -s conftest$ac_exeext &&
26438 $as_test_x conftest$ac_exeext; then
26439 ac_cv_search_ffi_call=$ac_res
26441 echo "$as_me: failed program was:" >&5
26442 sed 's/^/| /' conftest.$ac_ext >&5
26447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26449 if test "${ac_cv_search_ffi_call+set}" = set; then
26453 if test "${ac_cv_search_ffi_call+set}" = set; then
26456 ac_cv_search_ffi_call=no
26458 rm conftest.$ac_ext
26459 LIBS=$ac_func_search_save_LIBS
26461 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
26462 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
26463 ac_res=$ac_cv_search_ffi_call
26464 if test "$ac_res" != no; then
26465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26467 cat >>confdefs.h <<\_ACEOF
26468 #define HAVE_LIBFFI 1
26472 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
26473 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
26477 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26478 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
26479 if test "${ac_cv_search_mallinfo+set}" = set; then
26480 echo $ECHO_N "(cached) $ECHO_C" >&6
26482 ac_func_search_save_LIBS=$LIBS
26483 cat >conftest.$ac_ext <<_ACEOF
26486 cat confdefs.h >>conftest.$ac_ext
26487 cat >>conftest.$ac_ext <<_ACEOF
26488 /* end confdefs.h. */
26490 /* Override any GCC internal prototype to avoid an error.
26491 Use char because int might match the return type of a GCC
26492 builtin and then its argument prototype would still apply. */
26500 return mallinfo ();
26505 for ac_lib in '' malloc; do
26506 if test -z "$ac_lib"; then
26507 ac_res="none required"
26510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26512 rm -f conftest.$ac_objext conftest$ac_exeext
26513 if { (ac_try="$ac_link"
26514 case "(($ac_try" in
26515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26516 *) ac_try_echo
=$ac_try;;
26518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26519 (eval "$ac_link") 2>conftest.er1
26521 grep -v '^ *+' conftest.er1
>conftest.err
26523 cat conftest.err
>&5
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); } && {
26526 test -z "$ac_c_werror_flag" ||
26527 test ! -s conftest.err
26528 } && test -s conftest
$ac_exeext &&
26529 $as_test_x conftest
$ac_exeext; then
26530 ac_cv_search_mallinfo
=$ac_res
26532 echo "$as_me: failed program was:" >&5
26533 sed 's/^/| /' conftest.
$ac_ext >&5
26538 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26540 if test "${ac_cv_search_mallinfo+set}" = set; then
26544 if test "${ac_cv_search_mallinfo+set}" = set; then
26547 ac_cv_search_mallinfo
=no
26549 rm conftest.
$ac_ext
26550 LIBS
=$ac_func_search_save_LIBS
26552 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26553 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26554 ac_res
=$ac_cv_search_mallinfo
26555 if test "$ac_res" != no
; then
26556 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26558 cat >>confdefs.h
<<\_ACEOF
26559 #define HAVE_MALLINFO 1
26565 if test "$ENABLE_THREADS" -eq 1 ; then
26567 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26568 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
26569 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26570 echo $ECHO_N "(cached) $ECHO_C" >&6
26572 ac_check_lib_save_LIBS
=$LIBS
26573 LIBS
="-lpthread $LIBS"
26574 cat >conftest.
$ac_ext <<_ACEOF
26577 cat confdefs.h
>>conftest.
$ac_ext
26578 cat >>conftest.
$ac_ext <<_ACEOF
26579 /* end confdefs.h. */
26581 /* Override any GCC internal prototype to avoid an error.
26582 Use char because int might match the return type of a GCC
26583 builtin and then its argument prototype would still apply. */
26587 char pthread_mutex_init ();
26591 return pthread_mutex_init ();
26596 rm -f conftest.
$ac_objext conftest
$ac_exeext
26597 if { (ac_try
="$ac_link"
26598 case "(($ac_try" in
26599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26600 *) ac_try_echo=$ac_try;;
26602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26603 (eval "$ac_link") 2>conftest.er1
26605 grep -v '^ *+' conftest.er1 >conftest.err
26607 cat conftest.err >&5
26608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609 (exit $ac_status); } && {
26610 test -z "$ac_c_werror_flag" ||
26611 test ! -s conftest.err
26612 } && test -s conftest$ac_exeext &&
26613 $as_test_x conftest$ac_exeext; then
26614 ac_cv_lib_pthread_pthread_mutex_init=yes
26616 echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26619 ac_cv_lib_pthread_pthread_mutex_init=no
26622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26623 conftest$ac_exeext conftest.$ac_ext
26624 LIBS=$ac_check_lib_save_LIBS
26626 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26627 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
26628 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26629 cat >>confdefs.h <<_ACEOF
26630 #define HAVE_LIBPTHREAD 1
26633 LIBS="-lpthread $LIBS"
26637 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26638 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
26639 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26640 echo $ECHO_N "(cached) $ECHO_C" >&6
26642 ac_func_search_save_LIBS=$LIBS
26643 cat >conftest.$ac_ext <<_ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h. */
26650 /* Override any GCC internal prototype to avoid an error.
26651 Use char because int might match the return type of a GCC
26652 builtin and then its argument prototype would still apply. */
26656 char pthread_mutex_lock ();
26660 return pthread_mutex_lock ();
26665 for ac_lib in '' pthread; do
26666 if test -z "$ac_lib"; then
26667 ac_res="none required"
26670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26672 rm -f conftest.$ac_objext conftest$ac_exeext
26673 if { (ac_try="$ac_link"
26674 case "(($ac_try" in
26675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26676 *) ac_try_echo
=$ac_try;;
26678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26679 (eval "$ac_link") 2>conftest.er1
26681 grep -v '^ *+' conftest.er1
>conftest.err
26683 cat conftest.err
>&5
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); } && {
26686 test -z "$ac_c_werror_flag" ||
26687 test ! -s conftest.err
26688 } && test -s conftest
$ac_exeext &&
26689 $as_test_x conftest
$ac_exeext; then
26690 ac_cv_search_pthread_mutex_lock
=$ac_res
26692 echo "$as_me: failed program was:" >&5
26693 sed 's/^/| /' conftest.
$ac_ext >&5
26698 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26700 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26704 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26707 ac_cv_search_pthread_mutex_lock
=no
26709 rm conftest.
$ac_ext
26710 LIBS
=$ac_func_search_save_LIBS
26712 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26713 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26714 ac_res
=$ac_cv_search_pthread_mutex_lock
26715 if test "$ac_res" != no
; then
26716 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26718 cat >>confdefs.h
<<\_ACEOF
26719 #define HAVE_PTHREAD_MUTEX_LOCK 1
26727 # Check whether --with-udis86 was given.
26728 if test "${with_udis86+set}" = set; then
26729 withval
=$with_udis86;
26734 *) LDFLAGS
="$LDFLAGS -L${withval}" ;;
26737 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26738 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26739 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26740 echo $ECHO_N "(cached) $ECHO_C" >&6
26742 ac_check_lib_save_LIBS
=$LIBS
26743 LIBS
="-ludis86 $LIBS"
26744 cat >conftest.
$ac_ext <<_ACEOF
26747 cat confdefs.h
>>conftest.
$ac_ext
26748 cat >>conftest.
$ac_ext <<_ACEOF
26749 /* end confdefs.h. */
26751 /* Override any GCC internal prototype to avoid an error.
26752 Use char because int might match the return type of a GCC
26753 builtin and then its argument prototype would still apply. */
26766 rm -f conftest.
$ac_objext conftest
$ac_exeext
26767 if { (ac_try
="$ac_link"
26768 case "(($ac_try" in
26769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26770 *) ac_try_echo=$ac_try;;
26772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26773 (eval "$ac_link") 2>conftest.er1
26775 grep -v '^ *+' conftest.er1 >conftest.err
26777 cat conftest.err >&5
26778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779 (exit $ac_status); } && {
26780 test -z "$ac_c_werror_flag" ||
26781 test ! -s conftest.err
26782 } && test -s conftest$ac_exeext &&
26783 $as_test_x conftest$ac_exeext; then
26784 ac_cv_lib_udis86_ud_init=yes
26786 echo "$as_me: failed program was:" >&5
26787 sed 's/^/| /' conftest.$ac_ext >&5
26789 ac_cv_lib_udis86_ud_init=no
26792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26793 conftest$ac_exeext conftest.$ac_ext
26794 LIBS=$ac_check_lib_save_LIBS
26796 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26797 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26798 if test $ac_cv_lib_udis86_ud_init = yes; then
26799 cat >>confdefs.h <<_ACEOF
26800 #define HAVE_LIBUDIS86 1
26803 LIBS="-ludis86 $LIBS"
26807 echo "Error! You need to have libudis86 around."
26819 cat >>confdefs.h <<_ACEOF
26820 #define USE_UDIS86 $USE_UDIS86
26830 ac_header_dirent=no
26831 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26832 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
26833 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26834 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26836 echo $ECHO_N "(cached) $ECHO_C" >&6
26838 cat >conftest.$ac_ext <<_ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h. */
26844 #include <sys/types.h>
26856 rm -f conftest.$ac_objext
26857 if { (ac_try="$ac_compile"
26858 case "(($ac_try" in
26859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26860 *) ac_try_echo
=$ac_try;;
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863 (eval "$ac_compile") 2>conftest.er1
26865 grep -v '^ *+' conftest.er1
>conftest.err
26867 cat conftest.err
>&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } && {
26870 test -z "$ac_c_werror_flag" ||
26871 test ! -s conftest.err
26872 } && test -s conftest.
$ac_objext; then
26873 eval "$as_ac_Header=yes"
26875 echo "$as_me: failed program was:" >&5
26876 sed 's/^/| /' conftest.
$ac_ext >&5
26878 eval "$as_ac_Header=no"
26881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26883 ac_res
=`eval echo '${'$as_ac_Header'}'`
26884 { echo "$as_me:$LINENO: result: $ac_res" >&5
26885 echo "${ECHO_T}$ac_res" >&6; }
26886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26887 cat >>confdefs.h
<<_ACEOF
26888 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26891 ac_header_dirent
=$ac_hdr; break
26895 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26896 if test $ac_header_dirent = dirent.h
; then
26897 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26898 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26899 if test "${ac_cv_search_opendir+set}" = set; then
26900 echo $ECHO_N "(cached) $ECHO_C" >&6
26902 ac_func_search_save_LIBS
=$LIBS
26903 cat >conftest.
$ac_ext <<_ACEOF
26906 cat confdefs.h
>>conftest.
$ac_ext
26907 cat >>conftest.
$ac_ext <<_ACEOF
26908 /* end confdefs.h. */
26910 /* Override any GCC internal prototype to avoid an error.
26911 Use char because int might match the return type of a GCC
26912 builtin and then its argument prototype would still apply. */
26925 for ac_lib
in '' dir
; do
26926 if test -z "$ac_lib"; then
26927 ac_res
="none required"
26930 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26932 rm -f conftest.
$ac_objext conftest
$ac_exeext
26933 if { (ac_try
="$ac_link"
26934 case "(($ac_try" in
26935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26936 *) ac_try_echo=$ac_try;;
26938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26939 (eval "$ac_link") 2>conftest.er1
26941 grep -v '^ *+' conftest.er1 >conftest.err
26943 cat conftest.err >&5
26944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945 (exit $ac_status); } && {
26946 test -z "$ac_c_werror_flag" ||
26947 test ! -s conftest.err
26948 } && test -s conftest$ac_exeext &&
26949 $as_test_x conftest$ac_exeext; then
26950 ac_cv_search_opendir=$ac_res
26952 echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26960 if test "${ac_cv_search_opendir+set}" = set; then
26964 if test "${ac_cv_search_opendir+set}" = set; then
26967 ac_cv_search_opendir=no
26969 rm conftest.$ac_ext
26970 LIBS=$ac_func_search_save_LIBS
26972 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26973 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26974 ac_res=$ac_cv_search_opendir
26975 if test "$ac_res" != no; then
26976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26981 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26982 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26983 if test "${ac_cv_search_opendir+set}" = set; then
26984 echo $ECHO_N "(cached) $ECHO_C" >&6
26986 ac_func_search_save_LIBS=$LIBS
26987 cat >conftest.$ac_ext <<_ACEOF
26990 cat confdefs.h >>conftest.$ac_ext
26991 cat >>conftest.$ac_ext <<_ACEOF
26992 /* end confdefs.h. */
26994 /* Override any GCC internal prototype to avoid an error.
26995 Use char because int might match the return type of a GCC
26996 builtin and then its argument prototype would still apply. */
27009 for ac_lib in '' x; do
27010 if test -z "$ac_lib"; then
27011 ac_res="none required"
27014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27016 rm -f conftest.$ac_objext conftest$ac_exeext
27017 if { (ac_try="$ac_link"
27018 case "(($ac_try" in
27019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27020 *) ac_try_echo
=$ac_try;;
27022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27023 (eval "$ac_link") 2>conftest.er1
27025 grep -v '^ *+' conftest.er1
>conftest.err
27027 cat conftest.err
>&5
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); } && {
27030 test -z "$ac_c_werror_flag" ||
27031 test ! -s conftest.err
27032 } && test -s conftest
$ac_exeext &&
27033 $as_test_x conftest
$ac_exeext; then
27034 ac_cv_search_opendir
=$ac_res
27036 echo "$as_me: failed program was:" >&5
27037 sed 's/^/| /' conftest.
$ac_ext >&5
27042 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27044 if test "${ac_cv_search_opendir+set}" = set; then
27048 if test "${ac_cv_search_opendir+set}" = set; then
27051 ac_cv_search_opendir
=no
27053 rm conftest.
$ac_ext
27054 LIBS
=$ac_func_search_save_LIBS
27056 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27057 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27058 ac_res
=$ac_cv_search_opendir
27059 if test "$ac_res" != no
; then
27060 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27066 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27067 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27068 if test "${ac_cv_header_mmap_anon+set}" = set; then
27069 echo $ECHO_N "(cached) $ECHO_C" >&6
27072 ac_cpp
='$CPP $CPPFLAGS'
27073 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27074 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27075 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
27077 cat >conftest.
$ac_ext <<_ACEOF
27080 cat confdefs.h
>>conftest.
$ac_ext
27081 cat >>conftest.
$ac_ext <<_ACEOF
27082 /* end confdefs.h. */
27083 #include <sys/mman.h>
27084 #include <unistd.h>
27089 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27094 rm -f conftest.
$ac_objext
27095 if { (ac_try
="$ac_compile"
27096 case "(($ac_try" in
27097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27098 *) ac_try_echo=$ac_try;;
27100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27101 (eval "$ac_compile") 2>conftest.er1
27103 grep -v '^ *+' conftest.er1 >conftest.err
27105 cat conftest.err >&5
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); } && {
27108 test -z "$ac_c_werror_flag" ||
27109 test ! -s conftest.err
27110 } && test -s conftest.$ac_objext; then
27111 ac_cv_header_mmap_anon=yes
27113 echo "$as_me: failed program was:" >&5
27114 sed 's/^/| /' conftest.$ac_ext >&5
27116 ac_cv_header_mmap_anon=no
27119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27121 ac_cpp='$CPP $CPPFLAGS'
27122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27128 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27129 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27130 if test "$ac_cv_header_mmap_anon" = yes; then
27132 cat >>confdefs.h <<\_ACEOF
27133 #define HAVE_MMAP_ANONYMOUS 1
27138 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27139 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27140 if test "${ac_cv_header_stat_broken+set}" = set; then
27141 echo $ECHO_N "(cached) $ECHO_C" >&6
27143 cat >conftest.$ac_ext <<_ACEOF
27146 cat confdefs.h >>conftest.$ac_ext
27147 cat >>conftest.$ac_ext <<_ACEOF
27148 /* end confdefs.h. */
27149 #include <sys/types.h>
27150 #include <sys/stat.h>
27152 #if defined S_ISBLK && defined S_IFDIR
27153 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
27156 #if defined S_ISBLK && defined S_IFCHR
27157 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
27160 #if defined S_ISLNK && defined S_IFREG
27161 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
27164 #if defined S_ISSOCK && defined S_IFREG
27165 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
27169 rm -f conftest.$ac_objext
27170 if { (ac_try="$ac_compile"
27171 case "(($ac_try" in
27172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27173 *) ac_try_echo
=$ac_try;;
27175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176 (eval "$ac_compile") 2>conftest.er1
27178 grep -v '^ *+' conftest.er1
>conftest.err
27180 cat conftest.err
>&5
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); } && {
27183 test -z "$ac_c_werror_flag" ||
27184 test ! -s conftest.err
27185 } && test -s conftest.
$ac_objext; then
27186 ac_cv_header_stat_broken
=no
27188 echo "$as_me: failed program was:" >&5
27189 sed 's/^/| /' conftest.
$ac_ext >&5
27191 ac_cv_header_stat_broken
=yes
27194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27196 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27197 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27198 if test $ac_cv_header_stat_broken = yes; then
27200 cat >>confdefs.h
<<\_ACEOF
27201 #define STAT_MACROS_BROKEN 1
27206 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27207 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27208 if test "${ac_cv_header_stdc+set}" = set; then
27209 echo $ECHO_N "(cached) $ECHO_C" >&6
27211 cat >conftest.
$ac_ext <<_ACEOF
27214 cat confdefs.h
>>conftest.
$ac_ext
27215 cat >>conftest.
$ac_ext <<_ACEOF
27216 /* end confdefs.h. */
27217 #include <stdlib.h>
27218 #include <stdarg.h>
27219 #include <string.h>
27230 rm -f conftest.
$ac_objext
27231 if { (ac_try
="$ac_compile"
27232 case "(($ac_try" in
27233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27234 *) ac_try_echo=$ac_try;;
27236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27237 (eval "$ac_compile") 2>conftest.er1
27239 grep -v '^ *+' conftest.er1 >conftest.err
27241 cat conftest.err >&5
27242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243 (exit $ac_status); } && {
27244 test -z "$ac_c_werror_flag" ||
27245 test ! -s conftest.err
27246 } && test -s conftest.$ac_objext; then
27247 ac_cv_header_stdc=yes
27249 echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27252 ac_cv_header_stdc=no
27255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27257 if test $ac_cv_header_stdc = yes; then
27258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27259 cat >conftest.$ac_ext <<_ACEOF
27262 cat confdefs.h >>conftest.$ac_ext
27263 cat >>conftest.$ac_ext <<_ACEOF
27264 /* end confdefs.h. */
27265 #include <string.h>
27268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27269 $EGREP "memchr" >/dev/null 2>&1; then
27272 ac_cv_header_stdc=no
27278 if test $ac_cv_header_stdc = yes; then
27279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27280 cat >conftest.$ac_ext <<_ACEOF
27283 cat confdefs.h >>conftest.$ac_ext
27284 cat >>conftest.$ac_ext <<_ACEOF
27285 /* end confdefs.h. */
27286 #include <stdlib.h>
27289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27290 $EGREP "free" >/dev/null 2>&1; then
27293 ac_cv_header_stdc=no
27299 if test $ac_cv_header_stdc = yes; then
27300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27301 if test "$cross_compiling" = yes; then
27304 cat >conftest.$ac_ext <<_ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h. */
27311 #include <stdlib.h>
27312 #if ((' ' & 0x0FF) == 0x020)
27313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27316 # define ISLOWER(c) \
27317 (('a' <= (c) && (c) <= 'i') \
27318 || ('j' <= (c) && (c) <= 'r') \
27319 || ('s' <= (c) && (c) <= 'z'))
27320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27328 for (i = 0; i < 256; i++)
27329 if (XOR (islower (i), ISLOWER (i))
27330 || toupper (i) != TOUPPER (i))
27335 rm -f conftest$ac_exeext
27336 if { (ac_try="$ac_link"
27337 case "(($ac_try" in
27338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27339 *) ac_try_echo
=$ac_try;;
27341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27342 (eval "$ac_link") 2>&5
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27346 { (case "(($ac_try" in
27347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27348 *) ac_try_echo=$ac_try;;
27350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27351 (eval "$ac_try") 2>&5
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); }; }; then
27357 echo "$as_me: program exited with status $ac_status" >&5
27358 echo "$as_me: failed program was:" >&5
27359 sed 's/^/| /' conftest.$ac_ext >&5
27361 ( exit $ac_status )
27362 ac_cv_header_stdc=no
27364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27370 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27371 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
27372 if test $ac_cv_header_stdc = yes; then
27374 cat >>confdefs.h <<\_ACEOF
27375 #define STDC_HEADERS 1
27380 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27381 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
27382 if test "${ac_cv_header_sys_wait_h+set}" = set; then
27383 echo $ECHO_N "(cached) $ECHO_C" >&6
27385 cat >conftest.$ac_ext <<_ACEOF
27388 cat confdefs.h >>conftest.$ac_ext
27389 cat >>conftest.$ac_ext <<_ACEOF
27390 /* end confdefs.h. */
27391 #include <sys/types.h>
27392 #include <sys/wait.h>
27393 #ifndef WEXITSTATUS
27394 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
27397 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27405 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27410 rm -f conftest.$ac_objext
27411 if { (ac_try="$ac_compile"
27412 case "(($ac_try" in
27413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27414 *) ac_try_echo
=$ac_try;;
27416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27417 (eval "$ac_compile") 2>conftest.er1
27419 grep -v '^ *+' conftest.er1
>conftest.err
27421 cat conftest.err
>&5
27422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423 (exit $ac_status); } && {
27424 test -z "$ac_c_werror_flag" ||
27425 test ! -s conftest.err
27426 } && test -s conftest.
$ac_objext; then
27427 ac_cv_header_sys_wait_h
=yes
27429 echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.
$ac_ext >&5
27432 ac_cv_header_sys_wait_h
=no
27435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27437 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27438 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
27439 if test $ac_cv_header_sys_wait_h = yes; then
27441 cat >>confdefs.h
<<\_ACEOF
27442 #define HAVE_SYS_WAIT_H 1
27447 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27448 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
27449 if test "${ac_cv_header_time+set}" = set; then
27450 echo $ECHO_N "(cached) $ECHO_C" >&6
27452 cat >conftest.
$ac_ext <<_ACEOF
27455 cat confdefs.h
>>conftest.
$ac_ext
27456 cat >>conftest.
$ac_ext <<_ACEOF
27457 /* end confdefs.h. */
27458 #include <sys/types.h>
27459 #include <sys/time.h>
27465 if ((struct tm *) 0)
27471 rm -f conftest.
$ac_objext
27472 if { (ac_try
="$ac_compile"
27473 case "(($ac_try" in
27474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27475 *) ac_try_echo=$ac_try;;
27477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478 (eval "$ac_compile") 2>conftest.er1
27480 grep -v '^ *+' conftest.er1 >conftest.err
27482 cat conftest.err >&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); } && {
27485 test -z "$ac_c_werror_flag" ||
27486 test ! -s conftest.err
27487 } && test -s conftest.$ac_objext; then
27488 ac_cv_header_time=yes
27490 echo "$as_me: failed program was:" >&5
27491 sed 's/^/| /' conftest.$ac_ext >&5
27493 ac_cv_header_time=no
27496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27498 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27499 echo "${ECHO_T}$ac_cv_header_time" >&6; }
27500 if test $ac_cv_header_time = yes; then
27502 cat >>confdefs.h <<\_ACEOF
27503 #define TIME_WITH_SYS_TIME 1
27515 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27517 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
27518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27522 echo $ECHO_N "(cached) $ECHO_C" >&6
27524 ac_res=`eval echo '${'$as_ac_Header'}'`
27525 { echo "$as_me:$LINENO: result: $ac_res" >&5
27526 echo "${ECHO_T}$ac_res" >&6; }
27528 # Is the header compilable?
27529 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27531 cat >conftest.$ac_ext <<_ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h. */
27537 $ac_includes_default
27538 #include <$ac_header>
27540 rm -f conftest.$ac_objext
27541 if { (ac_try="$ac_compile"
27542 case "(($ac_try" in
27543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27544 *) ac_try_echo
=$ac_try;;
27546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27547 (eval "$ac_compile") 2>conftest.er1
27549 grep -v '^ *+' conftest.er1
>conftest.err
27551 cat conftest.err
>&5
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); } && {
27554 test -z "$ac_c_werror_flag" ||
27555 test ! -s conftest.err
27556 } && test -s conftest.
$ac_objext; then
27557 ac_header_compiler
=yes
27559 echo "$as_me: failed program was:" >&5
27560 sed 's/^/| /' conftest.
$ac_ext >&5
27562 ac_header_compiler
=no
27565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27567 echo "${ECHO_T}$ac_header_compiler" >&6; }
27569 # Is the header present?
27570 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27572 cat >conftest.
$ac_ext <<_ACEOF
27575 cat confdefs.h
>>conftest.
$ac_ext
27576 cat >>conftest.
$ac_ext <<_ACEOF
27577 /* end confdefs.h. */
27578 #include <$ac_header>
27580 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27581 case "(($ac_try" in
27582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27583 *) ac_try_echo=$ac_try;;
27585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27588 grep -v '^ *+' conftest.er1 >conftest.err
27590 cat conftest.err >&5
27591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592 (exit $ac_status); } >/dev/null && {
27593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27594 test ! -s conftest.err
27596 ac_header_preproc=yes
27598 echo "$as_me: failed program was:" >&5
27599 sed 's/^/| /' conftest.$ac_ext >&5
27601 ac_header_preproc=no
27604 rm -f conftest.err conftest.$ac_ext
27605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27606 echo "${ECHO_T}$ac_header_preproc" >&6; }
27608 # So? What about this header?
27609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27615 ac_header_preproc=yes
27618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27631 ## ----------------------------------- ##
27632 ## Report this to llvmbugs@cs.uiuc.edu ##
27633 ## ----------------------------------- ##
27635 ) | sed "s/^/$as_me: WARNING: /" >&2
27638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27643 eval "$as_ac_Header=\$ac_header_preproc"
27645 ac_res=`eval echo '${'$as_ac_Header'}'`
27646 { echo "$as_me:$LINENO: result: $ac_res" >&5
27647 echo "${ECHO_T}$ac_res" >&6; }
27650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27651 cat >>confdefs.h <<_ACEOF
27652 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
27665 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27667 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
27668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27672 echo $ECHO_N "(cached) $ECHO_C" >&6
27674 ac_res=`eval echo '${'$as_ac_Header'}'`
27675 { echo "$as_me:$LINENO: result: $ac_res" >&5
27676 echo "${ECHO_T}$ac_res" >&6; }
27678 # Is the header compilable?
27679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27681 cat >conftest.$ac_ext <<_ACEOF
27684 cat confdefs.h >>conftest.$ac_ext
27685 cat >>conftest.$ac_ext <<_ACEOF
27686 /* end confdefs.h. */
27687 $ac_includes_default
27688 #include <$ac_header>
27690 rm -f conftest.$ac_objext
27691 if { (ac_try="$ac_compile"
27692 case "(($ac_try" in
27693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27694 *) ac_try_echo
=$ac_try;;
27696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697 (eval "$ac_compile") 2>conftest.er1
27699 grep -v '^ *+' conftest.er1
>conftest.err
27701 cat conftest.err
>&5
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); } && {
27704 test -z "$ac_c_werror_flag" ||
27705 test ! -s conftest.err
27706 } && test -s conftest.
$ac_objext; then
27707 ac_header_compiler
=yes
27709 echo "$as_me: failed program was:" >&5
27710 sed 's/^/| /' conftest.
$ac_ext >&5
27712 ac_header_compiler
=no
27715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27717 echo "${ECHO_T}$ac_header_compiler" >&6; }
27719 # Is the header present?
27720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27722 cat >conftest.
$ac_ext <<_ACEOF
27725 cat confdefs.h
>>conftest.
$ac_ext
27726 cat >>conftest.
$ac_ext <<_ACEOF
27727 /* end confdefs.h. */
27728 #include <$ac_header>
27730 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27731 case "(($ac_try" in
27732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27733 *) ac_try_echo=$ac_try;;
27735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27738 grep -v '^ *+' conftest.er1 >conftest.err
27740 cat conftest.err >&5
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); } >/dev/null && {
27743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27744 test ! -s conftest.err
27746 ac_header_preproc=yes
27748 echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27751 ac_header_preproc=no
27754 rm -f conftest.err conftest.$ac_ext
27755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27756 echo "${ECHO_T}$ac_header_preproc" >&6; }
27758 # So? What about this header?
27759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27765 ac_header_preproc=yes
27768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27781 ## ----------------------------------- ##
27782 ## Report this to llvmbugs@cs.uiuc.edu ##
27783 ## ----------------------------------- ##
27785 ) | sed "s/^/$as_me: WARNING: /" >&2
27788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27791 echo $ECHO_N "(cached) $ECHO_C" >&6
27793 eval "$as_ac_Header=\$ac_header_preproc"
27795 ac_res=`eval echo '${'$as_ac_Header'}'`
27796 { echo "$as_me:$LINENO: result: $ac_res" >&5
27797 echo "${ECHO_T}$ac_res" >&6; }
27800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27801 cat >>confdefs.h <<_ACEOF
27802 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
27810 for ac_header in windows.h
27812 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
27813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27817 echo $ECHO_N "(cached) $ECHO_C" >&6
27819 ac_res=`eval echo '${'$as_ac_Header'}'`
27820 { echo "$as_me:$LINENO: result: $ac_res" >&5
27821 echo "${ECHO_T}$ac_res" >&6; }
27823 # Is the header compilable?
27824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27826 cat >conftest.$ac_ext <<_ACEOF
27829 cat confdefs.h >>conftest.$ac_ext
27830 cat >>conftest.$ac_ext <<_ACEOF
27831 /* end confdefs.h. */
27832 $ac_includes_default
27833 #include <$ac_header>
27835 rm -f conftest.$ac_objext
27836 if { (ac_try="$ac_compile"
27837 case "(($ac_try" in
27838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27839 *) ac_try_echo
=$ac_try;;
27841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842 (eval "$ac_compile") 2>conftest.er1
27844 grep -v '^ *+' conftest.er1
>conftest.err
27846 cat conftest.err
>&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); } && {
27849 test -z "$ac_c_werror_flag" ||
27850 test ! -s conftest.err
27851 } && test -s conftest.
$ac_objext; then
27852 ac_header_compiler
=yes
27854 echo "$as_me: failed program was:" >&5
27855 sed 's/^/| /' conftest.
$ac_ext >&5
27857 ac_header_compiler
=no
27860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27862 echo "${ECHO_T}$ac_header_compiler" >&6; }
27864 # Is the header present?
27865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27867 cat >conftest.
$ac_ext <<_ACEOF
27870 cat confdefs.h
>>conftest.
$ac_ext
27871 cat >>conftest.
$ac_ext <<_ACEOF
27872 /* end confdefs.h. */
27873 #include <$ac_header>
27875 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27876 case "(($ac_try" in
27877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27878 *) ac_try_echo=$ac_try;;
27880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27883 grep -v '^ *+' conftest.er1 >conftest.err
27885 cat conftest.err >&5
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); } >/dev/null && {
27888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27889 test ! -s conftest.err
27891 ac_header_preproc=yes
27893 echo "$as_me: failed program was:" >&5
27894 sed 's/^/| /' conftest.$ac_ext >&5
27896 ac_header_preproc=no
27899 rm -f conftest.err conftest.$ac_ext
27900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27901 echo "${ECHO_T}$ac_header_preproc" >&6; }
27903 # So? What about this header?
27904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27910 ac_header_preproc=yes
27913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27926 ## ----------------------------------- ##
27927 ## Report this to llvmbugs@cs.uiuc.edu ##
27928 ## ----------------------------------- ##
27930 ) | sed "s/^/$as_me: WARNING: /" >&2
27933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27936 echo $ECHO_N "(cached) $ECHO_C" >&6
27938 eval "$as_ac_Header=\$ac_header_preproc"
27940 ac_res=`eval echo '${'$as_ac_Header'}'`
27941 { echo "$as_me:$LINENO: result: $ac_res" >&5
27942 echo "${ECHO_T}$ac_res" >&6; }
27945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27946 cat >>confdefs.h <<_ACEOF
27947 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
27958 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
27960 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
27961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27965 echo $ECHO_N "(cached) $ECHO_C" >&6
27967 ac_res=`eval echo '${'$as_ac_Header'}'`
27968 { echo "$as_me:$LINENO: result: $ac_res" >&5
27969 echo "${ECHO_T}$ac_res" >&6; }
27971 # Is the header compilable?
27972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27974 cat >conftest.$ac_ext <<_ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h. */
27980 $ac_includes_default
27981 #include <$ac_header>
27983 rm -f conftest.$ac_objext
27984 if { (ac_try="$ac_compile"
27985 case "(($ac_try" in
27986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27987 *) ac_try_echo
=$ac_try;;
27989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27990 (eval "$ac_compile") 2>conftest.er1
27992 grep -v '^ *+' conftest.er1
>conftest.err
27994 cat conftest.err
>&5
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); } && {
27997 test -z "$ac_c_werror_flag" ||
27998 test ! -s conftest.err
27999 } && test -s conftest.
$ac_objext; then
28000 ac_header_compiler
=yes
28002 echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.
$ac_ext >&5
28005 ac_header_compiler
=no
28008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28010 echo "${ECHO_T}$ac_header_compiler" >&6; }
28012 # Is the header present?
28013 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28015 cat >conftest.
$ac_ext <<_ACEOF
28018 cat confdefs.h
>>conftest.
$ac_ext
28019 cat >>conftest.
$ac_ext <<_ACEOF
28020 /* end confdefs.h. */
28021 #include <$ac_header>
28023 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28024 case "(($ac_try" in
28025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28026 *) ac_try_echo=$ac_try;;
28028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28031 grep -v '^ *+' conftest.er1 >conftest.err
28033 cat conftest.err >&5
28034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); } >/dev/null && {
28036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28037 test ! -s conftest.err
28039 ac_header_preproc=yes
28041 echo "$as_me: failed program was:" >&5
28042 sed 's/^/| /' conftest.$ac_ext >&5
28044 ac_header_preproc=no
28047 rm -f conftest.err conftest.$ac_ext
28048 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28049 echo "${ECHO_T}$ac_header_preproc" >&6; }
28051 # So? What about this header?
28052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28058 ac_header_preproc=yes
28061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28074 ## ----------------------------------- ##
28075 ## Report this to llvmbugs@cs.uiuc.edu ##
28076 ## ----------------------------------- ##
28078 ) | sed "s/^/$as_me: WARNING: /" >&2
28081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28084 echo $ECHO_N "(cached) $ECHO_C" >&6
28086 eval "$as_ac_Header=\$ac_header_preproc"
28088 ac_res=`eval echo '${'$as_ac_Header'}'`
28089 { echo "$as_me:$LINENO: result: $ac_res" >&5
28090 echo "${ECHO_T}$ac_res" >&6; }
28093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28094 cat >>confdefs.h <<_ACEOF
28095 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
28105 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28107 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
28108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28112 echo $ECHO_N "(cached) $ECHO_C" >&6
28114 ac_res=`eval echo '${'$as_ac_Header'}'`
28115 { echo "$as_me:$LINENO: result: $ac_res" >&5
28116 echo "${ECHO_T}$ac_res" >&6; }
28118 # Is the header compilable?
28119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28121 cat >conftest.$ac_ext <<_ACEOF
28124 cat confdefs.h >>conftest.$ac_ext
28125 cat >>conftest.$ac_ext <<_ACEOF
28126 /* end confdefs.h. */
28127 $ac_includes_default
28128 #include <$ac_header>
28130 rm -f conftest.$ac_objext
28131 if { (ac_try="$ac_compile"
28132 case "(($ac_try" in
28133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28134 *) ac_try_echo
=$ac_try;;
28136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28137 (eval "$ac_compile") 2>conftest.er1
28139 grep -v '^ *+' conftest.er1
>conftest.err
28141 cat conftest.err
>&5
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); } && {
28144 test -z "$ac_c_werror_flag" ||
28145 test ! -s conftest.err
28146 } && test -s conftest.
$ac_objext; then
28147 ac_header_compiler
=yes
28149 echo "$as_me: failed program was:" >&5
28150 sed 's/^/| /' conftest.
$ac_ext >&5
28152 ac_header_compiler
=no
28155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28157 echo "${ECHO_T}$ac_header_compiler" >&6; }
28159 # Is the header present?
28160 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28162 cat >conftest.
$ac_ext <<_ACEOF
28165 cat confdefs.h
>>conftest.
$ac_ext
28166 cat >>conftest.
$ac_ext <<_ACEOF
28167 /* end confdefs.h. */
28168 #include <$ac_header>
28170 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28171 case "(($ac_try" in
28172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28178 grep -v '^ *+' conftest.er1 >conftest.err
28180 cat conftest.err >&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); } >/dev/null && {
28183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28184 test ! -s conftest.err
28186 ac_header_preproc=yes
28188 echo "$as_me: failed program was:" >&5
28189 sed 's/^/| /' conftest.$ac_ext >&5
28191 ac_header_preproc=no
28194 rm -f conftest.err conftest.$ac_ext
28195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28196 echo "${ECHO_T}$ac_header_preproc" >&6; }
28198 # So? What about this header?
28199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28205 ac_header_preproc=yes
28208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28212 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28214 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28215 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28218 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28221 ## ----------------------------------- ##
28222 ## Report this to llvmbugs@cs.uiuc.edu ##
28223 ## ----------------------------------- ##
28225 ) | sed "s/^/$as_me: WARNING: /" >&2
28228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28231 echo $ECHO_N "(cached) $ECHO_C" >&6
28233 eval "$as_ac_Header=\$ac_header_preproc"
28235 ac_res=`eval echo '${'$as_ac_Header'}'`
28236 { echo "$as_me:$LINENO: result: $ac_res" >&5
28237 echo "${ECHO_T}$ac_res" >&6; }
28240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28241 cat >>confdefs.h <<_ACEOF
28242 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
28249 if test "$ENABLE_THREADS" -eq 1 ; then
28251 for ac_header in pthread.h
28253 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
28254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28258 echo $ECHO_N "(cached) $ECHO_C" >&6
28260 ac_res=`eval echo '${'$as_ac_Header'}'`
28261 { echo "$as_me:$LINENO: result: $ac_res" >&5
28262 echo "${ECHO_T}$ac_res" >&6; }
28264 # Is the header compilable?
28265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28267 cat >conftest.$ac_ext <<_ACEOF
28270 cat confdefs.h >>conftest.$ac_ext
28271 cat >>conftest.$ac_ext <<_ACEOF
28272 /* end confdefs.h. */
28273 $ac_includes_default
28274 #include <$ac_header>
28276 rm -f conftest.$ac_objext
28277 if { (ac_try="$ac_compile"
28278 case "(($ac_try" in
28279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28280 *) ac_try_echo
=$ac_try;;
28282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283 (eval "$ac_compile") 2>conftest.er1
28285 grep -v '^ *+' conftest.er1
>conftest.err
28287 cat conftest.err
>&5
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); } && {
28290 test -z "$ac_c_werror_flag" ||
28291 test ! -s conftest.err
28292 } && test -s conftest.
$ac_objext; then
28293 ac_header_compiler
=yes
28295 echo "$as_me: failed program was:" >&5
28296 sed 's/^/| /' conftest.
$ac_ext >&5
28298 ac_header_compiler
=no
28301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28303 echo "${ECHO_T}$ac_header_compiler" >&6; }
28305 # Is the header present?
28306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28308 cat >conftest.
$ac_ext <<_ACEOF
28311 cat confdefs.h
>>conftest.
$ac_ext
28312 cat >>conftest.
$ac_ext <<_ACEOF
28313 /* end confdefs.h. */
28314 #include <$ac_header>
28316 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28317 case "(($ac_try" in
28318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28319 *) ac_try_echo=$ac_try;;
28321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28324 grep -v '^ *+' conftest.er1 >conftest.err
28326 cat conftest.err >&5
28327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328 (exit $ac_status); } >/dev/null && {
28329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28330 test ! -s conftest.err
28332 ac_header_preproc=yes
28334 echo "$as_me: failed program was:" >&5
28335 sed 's/^/| /' conftest.$ac_ext >&5
28337 ac_header_preproc=no
28340 rm -f conftest.err conftest.$ac_ext
28341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28342 echo "${ECHO_T}$ac_header_preproc" >&6; }
28344 # So? What about this header?
28345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28351 ac_header_preproc=yes
28354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28367 ## ----------------------------------- ##
28368 ## Report this to llvmbugs@cs.uiuc.edu ##
28369 ## ----------------------------------- ##
28371 ) | sed "s/^/$as_me: WARNING: /" >&2
28374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28377 echo $ECHO_N "(cached) $ECHO_C" >&6
28379 eval "$as_ac_Header=\$ac_header_preproc"
28381 ac_res=`eval echo '${'$as_ac_Header'}'`
28382 { echo "$as_me:$LINENO: result: $ac_res" >&5
28383 echo "${ECHO_T}$ac_res" >&6; }
28386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28387 cat >>confdefs.h <<_ACEOF
28388 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
28404 if test "${ac_cv_header_ffi_ffi_h+set}" = set; then
28405 { echo "$as_me:$LINENO: checking for ffi/ffi.h" >&5
28406 echo $ECHO_N "checking for ffi/ffi.h... $ECHO_C" >&6; }
28407 if test "${ac_cv_header_ffi_ffi_h+set}" = set; then
28408 echo $ECHO_N "(cached) $ECHO_C" >&6
28410 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_ffi_h" >&5
28411 echo "${ECHO_T}$ac_cv_header_ffi_ffi_h" >&6; }
28413 # Is the header compilable?
28414 { echo "$as_me:$LINENO: checking ffi/ffi.h usability" >&5
28415 echo $ECHO_N "checking ffi/ffi.h usability... $ECHO_C" >&6; }
28416 cat >conftest.$ac_ext <<_ACEOF
28419 cat confdefs.h >>conftest.$ac_ext
28420 cat >>conftest.$ac_ext <<_ACEOF
28421 /* end confdefs.h. */
28422 $ac_includes_default
28423 #include <ffi/ffi.h>
28425 rm -f conftest.$ac_objext
28426 if { (ac_try="$ac_compile"
28427 case "(($ac_try" in
28428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28429 *) ac_try_echo
=$ac_try;;
28431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432 (eval "$ac_compile") 2>conftest.er1
28434 grep -v '^ *+' conftest.er1
>conftest.err
28436 cat conftest.err
>&5
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); } && {
28439 test -z "$ac_c_werror_flag" ||
28440 test ! -s conftest.err
28441 } && test -s conftest.
$ac_objext; then
28442 ac_header_compiler
=yes
28444 echo "$as_me: failed program was:" >&5
28445 sed 's/^/| /' conftest.
$ac_ext >&5
28447 ac_header_compiler
=no
28450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28452 echo "${ECHO_T}$ac_header_compiler" >&6; }
28454 # Is the header present?
28455 { echo "$as_me:$LINENO: checking ffi/ffi.h presence" >&5
28456 echo $ECHO_N "checking ffi/ffi.h presence... $ECHO_C" >&6; }
28457 cat >conftest.
$ac_ext <<_ACEOF
28460 cat confdefs.h
>>conftest.
$ac_ext
28461 cat >>conftest.
$ac_ext <<_ACEOF
28462 /* end confdefs.h. */
28463 #include <ffi/ffi.h>
28465 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28466 case "(($ac_try" in
28467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28468 *) ac_try_echo=$ac_try;;
28470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28473 grep -v '^ *+' conftest.er1 >conftest.err
28475 cat conftest.err >&5
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); } >/dev/null && {
28478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28479 test ! -s conftest.err
28481 ac_header_preproc=yes
28483 echo "$as_me: failed program was:" >&5
28484 sed 's/^/| /' conftest.$ac_ext >&5
28486 ac_header_preproc=no
28489 rm -f conftest.err conftest.$ac_ext
28490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28491 echo "${ECHO_T}$ac_header_preproc" >&6; }
28493 # So? What about this header?
28494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28496 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
28497 echo "$as_me: WARNING: ffi/ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28498 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: proceeding with the compiler's result" >&5
28499 echo "$as_me: WARNING: ffi/ffi.h: proceeding with the compiler's result" >&2;}
28500 ac_header_preproc=yes
28503 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: present but cannot be compiled" >&5
28504 echo "$as_me: WARNING: ffi/ffi.h: present but cannot be compiled" >&2;}
28505 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: check for missing prerequisite headers?" >&5
28506 echo "$as_me: WARNING: ffi/ffi.h: check for missing prerequisite headers?" >&2;}
28507 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: see the Autoconf documentation" >&5
28508 echo "$as_me: WARNING: ffi/ffi.h: see the Autoconf documentation" >&2;}
28509 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: section \"Present But Cannot Be Compiled\"" >&5
28510 echo "$as_me: WARNING: ffi/ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
28511 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: proceeding with the preprocessor's result" >&5
28512 echo "$as_me: WARNING: ffi/ffi.h: proceeding with the preprocessor's result" >&2;}
28513 { echo "$as_me:$LINENO: WARNING: ffi/ffi.h: in the future, the compiler will take precedence" >&5
28514 echo "$as_me: WARNING: ffi/ffi.h: in the future, the compiler will take precedence" >&2;}
28516 ## ----------------------------------- ##
28517 ## Report this to llvmbugs@cs.uiuc.edu ##
28518 ## ----------------------------------- ##
28520 ) | sed "s/^/$as_me: WARNING: /" >&2
28523 { echo "$as_me:$LINENO: checking for ffi/ffi.h" >&5
28524 echo $ECHO_N "checking for ffi/ffi.h... $ECHO_C" >&6; }
28525 if test "${ac_cv_header_ffi_ffi_h+set}" = set; then
28526 echo $ECHO_N "(cached) $ECHO_C" >&6
28528 ac_cv_header_ffi_ffi_h=$ac_header_preproc
28530 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_ffi_h" >&5
28531 echo "${ECHO_T}$ac_cv_header_ffi_ffi_h" >&6; }
28534 if test $ac_cv_header_ffi_ffi_h = yes; then
28536 cat >>confdefs.h <<\_ACEOF
28537 #define FFI_HEADER "ffi/ffi.h"
28543 if test "${ac_cv_header_ffi_h+set}" = set; then
28544 { echo "$as_me:$LINENO: checking for ffi.h" >&5
28545 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
28546 if test "${ac_cv_header_ffi_h+set}" = set; then
28547 echo $ECHO_N "(cached) $ECHO_C" >&6
28549 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
28550 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
28552 # Is the header compilable?
28553 { echo "$as_me:$LINENO: checking ffi.h usability" >&5
28554 echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6; }
28555 cat >conftest.$ac_ext <<_ACEOF
28558 cat confdefs.h >>conftest.$ac_ext
28559 cat >>conftest.$ac_ext <<_ACEOF
28560 /* end confdefs.h. */
28561 $ac_includes_default
28564 rm -f conftest.$ac_objext
28565 if { (ac_try="$ac_compile"
28566 case "(($ac_try" in
28567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28568 *) ac_try_echo
=$ac_try;;
28570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28571 (eval "$ac_compile") 2>conftest.er1
28573 grep -v '^ *+' conftest.er1
>conftest.err
28575 cat conftest.err
>&5
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); } && {
28578 test -z "$ac_c_werror_flag" ||
28579 test ! -s conftest.err
28580 } && test -s conftest.
$ac_objext; then
28581 ac_header_compiler
=yes
28583 echo "$as_me: failed program was:" >&5
28584 sed 's/^/| /' conftest.
$ac_ext >&5
28586 ac_header_compiler
=no
28589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28591 echo "${ECHO_T}$ac_header_compiler" >&6; }
28593 # Is the header present?
28594 { echo "$as_me:$LINENO: checking ffi.h presence" >&5
28595 echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6; }
28596 cat >conftest.
$ac_ext <<_ACEOF
28599 cat confdefs.h
>>conftest.
$ac_ext
28600 cat >>conftest.
$ac_ext <<_ACEOF
28601 /* end confdefs.h. */
28604 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28605 case "(($ac_try" in
28606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28607 *) ac_try_echo=$ac_try;;
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28612 grep -v '^ *+' conftest.er1 >conftest.err
28614 cat conftest.err >&5
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); } >/dev/null && {
28617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28618 test ! -s conftest.err
28620 ac_header_preproc=yes
28622 echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28625 ac_header_preproc=no
28628 rm -f conftest.err conftest.$ac_ext
28629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28630 echo "${ECHO_T}$ac_header_preproc" >&6; }
28632 # So? What about this header?
28633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28635 { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
28636 echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28637 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
28638 echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
28639 ac_header_preproc=yes
28642 { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
28643 echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
28644 { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
28645 echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
28646 { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
28647 echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
28648 { echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
28649 echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
28650 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
28651 echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
28652 { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
28653 echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
28655 ## ----------------------------------- ##
28656 ## Report this to llvmbugs@cs.uiuc.edu ##
28657 ## ----------------------------------- ##
28659 ) | sed "s/^/$as_me: WARNING: /" >&2
28662 { echo "$as_me:$LINENO: checking for ffi.h" >&5
28663 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
28664 if test "${ac_cv_header_ffi_h+set}" = set; then
28665 echo $ECHO_N "(cached) $ECHO_C" >&6
28667 ac_cv_header_ffi_h=$ac_header_preproc
28669 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
28670 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
28673 if test $ac_cv_header_ffi_h = yes; then
28675 cat >>confdefs.h <<\_ACEOF
28676 #define FFI_HEADER "ffi.h"
28686 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28687 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28688 if test "${ac_cv_huge_val_sanity+set}" = set; then
28689 echo $ECHO_N "(cached) $ECHO_C" >&6
28693 ac_cpp='$CXXCPP $CPPFLAGS'
28694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28699 if test "$cross_compiling" = yes; then
28700 ac_cv_huge_val_sanity=yes
28702 cat >conftest.$ac_ext <<_ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h. */
28712 double x = HUGE_VAL; return x != x;
28717 rm -f conftest$ac_exeext
28718 if { (ac_try="$ac_link"
28719 case "(($ac_try" in
28720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28721 *) ac_try_echo
=$ac_try;;
28723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724 (eval "$ac_link") 2>&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28728 { (case "(($ac_try" in
28729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_try") 2>&5
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); }; }; then
28737 ac_cv_huge_val_sanity=yes
28739 echo "$as_me: program exited with status $ac_status" >&5
28740 echo "$as_me: failed program was:" >&5
28741 sed 's/^/| /' conftest.$ac_ext >&5
28743 ( exit $ac_status )
28744 ac_cv_huge_val_sanity=no
28746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28751 ac_cpp='$CPP $CPPFLAGS'
28752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28758 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28759 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28760 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28763 { echo "$as_me:$LINENO: checking for pid_t" >&5
28764 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28765 if test "${ac_cv_type_pid_t+set}" = set; then
28766 echo $ECHO_N "(cached) $ECHO_C" >&6
28768 cat >conftest.$ac_ext <<_ACEOF
28771 cat confdefs.h >>conftest.$ac_ext
28772 cat >>conftest.$ac_ext <<_ACEOF
28773 /* end confdefs.h. */
28774 $ac_includes_default
28775 typedef pid_t ac__type_new_;
28779 if ((ac__type_new_ *) 0)
28781 if (sizeof (ac__type_new_))
28787 rm -f conftest.$ac_objext
28788 if { (ac_try="$ac_compile"
28789 case "(($ac_try" in
28790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28791 *) ac_try_echo
=$ac_try;;
28793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28794 (eval "$ac_compile") 2>conftest.er1
28796 grep -v '^ *+' conftest.er1
>conftest.err
28798 cat conftest.err
>&5
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); } && {
28801 test -z "$ac_c_werror_flag" ||
28802 test ! -s conftest.err
28803 } && test -s conftest.
$ac_objext; then
28804 ac_cv_type_pid_t
=yes
28806 echo "$as_me: failed program was:" >&5
28807 sed 's/^/| /' conftest.
$ac_ext >&5
28809 ac_cv_type_pid_t
=no
28812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28814 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28815 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28816 if test $ac_cv_type_pid_t = yes; then
28820 cat >>confdefs.h
<<_ACEOF
28826 { echo "$as_me:$LINENO: checking for size_t" >&5
28827 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28828 if test "${ac_cv_type_size_t+set}" = set; then
28829 echo $ECHO_N "(cached) $ECHO_C" >&6
28831 cat >conftest.
$ac_ext <<_ACEOF
28834 cat confdefs.h
>>conftest.
$ac_ext
28835 cat >>conftest.
$ac_ext <<_ACEOF
28836 /* end confdefs.h. */
28837 $ac_includes_default
28838 typedef size_t ac__type_new_;
28842 if ((ac__type_new_ *) 0)
28844 if (sizeof (ac__type_new_))
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 test -z "$ac_c_werror_flag" ||
28865 test ! -s conftest.err
28866 } && test -s conftest.$ac_objext; then
28867 ac_cv_type_size_t=yes
28869 echo "$as_me: failed program was:" >&5
28870 sed 's/^/| /' conftest.$ac_ext >&5
28872 ac_cv_type_size_t=no
28875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28877 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28878 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28879 if test $ac_cv_type_size_t = yes; then
28883 cat >>confdefs.h <<_ACEOF
28884 #define size_t unsigned int
28889 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28890 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28891 if test "${ac_cv_type_signal+set}" = set; then
28892 echo $ECHO_N "(cached) $ECHO_C" >&6
28894 cat >conftest.$ac_ext <<_ACEOF
28897 cat confdefs.h >>conftest.$ac_ext
28898 cat >>conftest.$ac_ext <<_ACEOF
28899 /* end confdefs.h. */
28900 #include <sys/types.h>
28901 #include <signal.h>
28906 return *(signal (0, 0)) (0) == 1;
28911 rm -f conftest.$ac_objext
28912 if { (ac_try="$ac_compile"
28913 case "(($ac_try" in
28914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28915 *) ac_try_echo
=$ac_try;;
28917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28918 (eval "$ac_compile") 2>conftest.er1
28920 grep -v '^ *+' conftest.er1
>conftest.err
28922 cat conftest.err
>&5
28923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924 (exit $ac_status); } && {
28925 test -z "$ac_c_werror_flag" ||
28926 test ! -s conftest.err
28927 } && test -s conftest.
$ac_objext; then
28928 ac_cv_type_signal
=int
28930 echo "$as_me: failed program was:" >&5
28931 sed 's/^/| /' conftest.
$ac_ext >&5
28933 ac_cv_type_signal
=void
28936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28938 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28939 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28941 cat >>confdefs.h
<<_ACEOF
28942 #define RETSIGTYPE $ac_cv_type_signal
28946 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28947 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28948 if test "${ac_cv_struct_tm+set}" = set; then
28949 echo $ECHO_N "(cached) $ECHO_C" >&6
28951 cat >conftest.
$ac_ext <<_ACEOF
28954 cat confdefs.h
>>conftest.
$ac_ext
28955 cat >>conftest.
$ac_ext <<_ACEOF
28956 /* end confdefs.h. */
28957 #include <sys/types.h>
28964 int *p = &tm.tm_sec;
28970 rm -f conftest.
$ac_objext
28971 if { (ac_try
="$ac_compile"
28972 case "(($ac_try" in
28973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28974 *) ac_try_echo=$ac_try;;
28976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977 (eval "$ac_compile") 2>conftest.er1
28979 grep -v '^ *+' conftest.er1 >conftest.err
28981 cat conftest.err >&5
28982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983 (exit $ac_status); } && {
28984 test -z "$ac_c_werror_flag" ||
28985 test ! -s conftest.err
28986 } && test -s conftest.$ac_objext; then
28987 ac_cv_struct_tm=time.h
28989 echo "$as_me: failed program was:" >&5
28990 sed 's/^/| /' conftest.$ac_ext >&5
28992 ac_cv_struct_tm=sys/time.h
28995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28997 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28998 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28999 if test $ac_cv_struct_tm = sys/time.h; then
29001 cat >>confdefs.h <<\_ACEOF
29002 #define TM_IN_SYS_TIME 1
29007 { echo "$as_me:$LINENO: checking for int64_t" >&5
29008 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29009 if test "${ac_cv_type_int64_t+set}" = set; then
29010 echo $ECHO_N "(cached) $ECHO_C" >&6
29012 cat >conftest.$ac_ext <<_ACEOF
29015 cat confdefs.h >>conftest.$ac_ext
29016 cat >>conftest.$ac_ext <<_ACEOF
29017 /* end confdefs.h. */
29018 $ac_includes_default
29019 typedef int64_t ac__type_new_;
29023 if ((ac__type_new_ *) 0)
29025 if (sizeof (ac__type_new_))
29031 rm -f conftest.$ac_objext
29032 if { (ac_try="$ac_compile"
29033 case "(($ac_try" in
29034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29035 *) ac_try_echo
=$ac_try;;
29037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29038 (eval "$ac_compile") 2>conftest.er1
29040 grep -v '^ *+' conftest.er1
>conftest.err
29042 cat conftest.err
>&5
29043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044 (exit $ac_status); } && {
29045 test -z "$ac_c_werror_flag" ||
29046 test ! -s conftest.err
29047 } && test -s conftest.
$ac_objext; then
29048 ac_cv_type_int64_t
=yes
29050 echo "$as_me: failed program was:" >&5
29051 sed 's/^/| /' conftest.
$ac_ext >&5
29053 ac_cv_type_int64_t
=no
29056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29058 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29059 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29060 if test $ac_cv_type_int64_t = yes; then
29062 cat >>confdefs.h
<<_ACEOF
29063 #define HAVE_INT64_T 1
29068 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29069 echo "$as_me: error: Type int64_t required but not found" >&2;}
29070 { (exit 1); exit 1; }; }
29073 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29074 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29075 if test "${ac_cv_type_uint64_t+set}" = set; then
29076 echo $ECHO_N "(cached) $ECHO_C" >&6
29078 cat >conftest.
$ac_ext <<_ACEOF
29081 cat confdefs.h
>>conftest.
$ac_ext
29082 cat >>conftest.
$ac_ext <<_ACEOF
29083 /* end confdefs.h. */
29084 $ac_includes_default
29085 typedef uint64_t ac__type_new_;
29089 if ((ac__type_new_ *) 0)
29091 if (sizeof (ac__type_new_))
29097 rm -f conftest.
$ac_objext
29098 if { (ac_try
="$ac_compile"
29099 case "(($ac_try" in
29100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29101 *) ac_try_echo=$ac_try;;
29103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29104 (eval "$ac_compile") 2>conftest.er1
29106 grep -v '^ *+' conftest.er1 >conftest.err
29108 cat conftest.err >&5
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); } && {
29111 test -z "$ac_c_werror_flag" ||
29112 test ! -s conftest.err
29113 } && test -s conftest.$ac_objext; then
29114 ac_cv_type_uint64_t=yes
29116 echo "$as_me: failed program was:" >&5
29117 sed 's/^/| /' conftest.$ac_ext >&5
29119 ac_cv_type_uint64_t=no
29122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29124 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29125 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29126 if test $ac_cv_type_uint64_t = yes; then
29128 cat >>confdefs.h <<_ACEOF
29129 #define HAVE_UINT64_T 1
29134 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29135 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29136 if test "${ac_cv_type_u_int64_t+set}" = set; then
29137 echo $ECHO_N "(cached) $ECHO_C" >&6
29139 cat >conftest.$ac_ext <<_ACEOF
29142 cat confdefs.h >>conftest.$ac_ext
29143 cat >>conftest.$ac_ext <<_ACEOF
29144 /* end confdefs.h. */
29145 $ac_includes_default
29146 typedef u_int64_t ac__type_new_;
29150 if ((ac__type_new_ *) 0)
29152 if (sizeof (ac__type_new_))
29158 rm -f conftest.$ac_objext
29159 if { (ac_try="$ac_compile"
29160 case "(($ac_try" in
29161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29162 *) ac_try_echo
=$ac_try;;
29164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165 (eval "$ac_compile") 2>conftest.er1
29167 grep -v '^ *+' conftest.er1
>conftest.err
29169 cat conftest.err
>&5
29170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171 (exit $ac_status); } && {
29172 test -z "$ac_c_werror_flag" ||
29173 test ! -s conftest.err
29174 } && test -s conftest.
$ac_objext; then
29175 ac_cv_type_u_int64_t
=yes
29177 echo "$as_me: failed program was:" >&5
29178 sed 's/^/| /' conftest.
$ac_ext >&5
29180 ac_cv_type_u_int64_t
=no
29183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29185 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29186 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29187 if test $ac_cv_type_u_int64_t = yes; then
29189 cat >>confdefs.h
<<_ACEOF
29190 #define HAVE_U_INT64_T 1
29195 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29196 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29197 { (exit 1); exit 1; }; }
29211 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29213 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29216 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29217 echo $ECHO_N "(cached) $ECHO_C" >&6
29219 cat >conftest.
$ac_ext <<_ACEOF
29222 cat confdefs.h
>>conftest.
$ac_ext
29223 cat >>conftest.
$ac_ext <<_ACEOF
29224 /* end confdefs.h. */
29225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29227 #define $ac_func innocuous_$ac_func
29229 /* System header to define __stub macros and hopefully few prototypes,
29230 which can conflict with char $ac_func (); below.
29231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29232 <limits.h> exists even on freestanding compilers. */
29235 # include <limits.h>
29237 # include <assert.h>
29242 /* Override any GCC internal prototype to avoid an error.
29243 Use char because int might match the return type of a GCC
29244 builtin and then its argument prototype would still apply. */
29249 /* The GNU C library defines this for functions which it implements
29250 to always fail with ENOSYS. Some functions are actually named
29251 something starting with __ and the normal name is an alias. */
29252 #if defined __stub_$ac_func || defined __stub___$ac_func
29259 return $ac_func ();
29264 rm -f conftest.
$ac_objext conftest
$ac_exeext
29265 if { (ac_try
="$ac_link"
29266 case "(($ac_try" in
29267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29268 *) ac_try_echo=$ac_try;;
29270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271 (eval "$ac_link") 2>conftest.er1
29273 grep -v '^ *+' conftest.er1 >conftest.err
29275 cat conftest.err >&5
29276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277 (exit $ac_status); } && {
29278 test -z "$ac_c_werror_flag" ||
29279 test ! -s conftest.err
29280 } && test -s conftest$ac_exeext &&
29281 $as_test_x conftest$ac_exeext; then
29282 eval "$as_ac_var=yes"
29284 echo "$as_me: failed program was:" >&5
29285 sed 's/^/| /' conftest.$ac_ext >&5
29287 eval "$as_ac_var=no"
29290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29291 conftest$ac_exeext conftest.$ac_ext
29293 ac_res=`eval echo '${'$as_ac_var'}'`
29294 { echo "$as_me:$LINENO: result: $ac_res" >&5
29295 echo "${ECHO_T}$ac_res" >&6; }
29296 if test `eval echo '${'$as_ac_var'}'` = yes; then
29297 cat >>confdefs.h <<_ACEOF
29298 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
29308 for ac_func in powf fmodf strtof round
29310 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
29311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29314 echo $ECHO_N "(cached) $ECHO_C" >&6
29316 cat >conftest.$ac_ext <<_ACEOF
29319 cat confdefs.h >>conftest.$ac_ext
29320 cat >>conftest.$ac_ext <<_ACEOF
29321 /* end confdefs.h. */
29322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29324 #define $ac_func innocuous_$ac_func
29326 /* System header to define __stub macros and hopefully few prototypes,
29327 which can conflict with char $ac_func (); below.
29328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29329 <limits.h> exists even on freestanding compilers. */
29332 # include <limits.h>
29334 # include <assert.h>
29339 /* Override any GCC internal prototype to avoid an error.
29340 Use char because int might match the return type of a GCC
29341 builtin and then its argument prototype would still apply. */
29346 /* The GNU C library defines this for functions which it implements
29347 to always fail with ENOSYS. Some functions are actually named
29348 something starting with __ and the normal name is an alias. */
29349 #if defined __stub_$ac_func || defined __stub___$ac_func
29356 return $ac_func ();
29361 rm -f conftest.$ac_objext conftest$ac_exeext
29362 if { (ac_try="$ac_link"
29363 case "(($ac_try" in
29364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29365 *) ac_try_echo
=$ac_try;;
29367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29368 (eval "$ac_link") 2>conftest.er1
29370 grep -v '^ *+' conftest.er1
>conftest.err
29372 cat conftest.err
>&5
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); } && {
29375 test -z "$ac_c_werror_flag" ||
29376 test ! -s conftest.err
29377 } && test -s conftest
$ac_exeext &&
29378 $as_test_x conftest
$ac_exeext; then
29379 eval "$as_ac_var=yes"
29381 echo "$as_me: failed program was:" >&5
29382 sed 's/^/| /' conftest.
$ac_ext >&5
29384 eval "$as_ac_var=no"
29387 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29388 conftest
$ac_exeext conftest.
$ac_ext
29390 ac_res
=`eval echo '${'$as_ac_var'}'`
29391 { echo "$as_me:$LINENO: result: $ac_res" >&5
29392 echo "${ECHO_T}$ac_res" >&6; }
29393 if test `eval echo '${'$as_ac_var'}'` = yes; then
29394 cat >>confdefs.h
<<_ACEOF
29395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29406 for ac_func
in getpagesize getrusage getrlimit setrlimit gettimeofday
29408 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29411 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29412 echo $ECHO_N "(cached) $ECHO_C" >&6
29414 cat >conftest.
$ac_ext <<_ACEOF
29417 cat confdefs.h
>>conftest.
$ac_ext
29418 cat >>conftest.
$ac_ext <<_ACEOF
29419 /* end confdefs.h. */
29420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29422 #define $ac_func innocuous_$ac_func
29424 /* System header to define __stub macros and hopefully few prototypes,
29425 which can conflict with char $ac_func (); below.
29426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29427 <limits.h> exists even on freestanding compilers. */
29430 # include <limits.h>
29432 # include <assert.h>
29437 /* Override any GCC internal prototype to avoid an error.
29438 Use char because int might match the return type of a GCC
29439 builtin and then its argument prototype would still apply. */
29444 /* The GNU C library defines this for functions which it implements
29445 to always fail with ENOSYS. Some functions are actually named
29446 something starting with __ and the normal name is an alias. */
29447 #if defined __stub_$ac_func || defined __stub___$ac_func
29454 return $ac_func ();
29459 rm -f conftest.
$ac_objext conftest
$ac_exeext
29460 if { (ac_try
="$ac_link"
29461 case "(($ac_try" in
29462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29463 *) ac_try_echo=$ac_try;;
29465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29466 (eval "$ac_link") 2>conftest.er1
29468 grep -v '^ *+' conftest.er1 >conftest.err
29470 cat conftest.err >&5
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); } && {
29473 test -z "$ac_c_werror_flag" ||
29474 test ! -s conftest.err
29475 } && test -s conftest$ac_exeext &&
29476 $as_test_x conftest$ac_exeext; then
29477 eval "$as_ac_var=yes"
29479 echo "$as_me: failed program was:" >&5
29480 sed 's/^/| /' conftest.$ac_ext >&5
29482 eval "$as_ac_var=no"
29485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29486 conftest$ac_exeext conftest.$ac_ext
29488 ac_res=`eval echo '${'$as_ac_var'}'`
29489 { echo "$as_me:$LINENO: result: $ac_res" >&5
29490 echo "${ECHO_T}$ac_res" >&6; }
29491 if test `eval echo '${'$as_ac_var'}'` = yes; then
29492 cat >>confdefs.h <<_ACEOF
29493 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
29502 for ac_func in isatty mkdtemp mkstemp
29504 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
29505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29508 echo $ECHO_N "(cached) $ECHO_C" >&6
29510 cat >conftest.$ac_ext <<_ACEOF
29513 cat confdefs.h >>conftest.$ac_ext
29514 cat >>conftest.$ac_ext <<_ACEOF
29515 /* end confdefs.h. */
29516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29518 #define $ac_func innocuous_$ac_func
29520 /* System header to define __stub macros and hopefully few prototypes,
29521 which can conflict with char $ac_func (); below.
29522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29523 <limits.h> exists even on freestanding compilers. */
29526 # include <limits.h>
29528 # include <assert.h>
29533 /* Override any GCC internal prototype to avoid an error.
29534 Use char because int might match the return type of a GCC
29535 builtin and then its argument prototype would still apply. */
29540 /* The GNU C library defines this for functions which it implements
29541 to always fail with ENOSYS. Some functions are actually named
29542 something starting with __ and the normal name is an alias. */
29543 #if defined __stub_$ac_func || defined __stub___$ac_func
29550 return $ac_func ();
29555 rm -f conftest.$ac_objext conftest$ac_exeext
29556 if { (ac_try="$ac_link"
29557 case "(($ac_try" in
29558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29559 *) ac_try_echo
=$ac_try;;
29561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_link") 2>conftest.er1
29564 grep -v '^ *+' conftest.er1
>conftest.err
29566 cat conftest.err
>&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); } && {
29569 test -z "$ac_c_werror_flag" ||
29570 test ! -s conftest.err
29571 } && test -s conftest
$ac_exeext &&
29572 $as_test_x conftest
$ac_exeext; then
29573 eval "$as_ac_var=yes"
29575 echo "$as_me: failed program was:" >&5
29576 sed 's/^/| /' conftest.
$ac_ext >&5
29578 eval "$as_ac_var=no"
29581 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29582 conftest
$ac_exeext conftest.
$ac_ext
29584 ac_res
=`eval echo '${'$as_ac_var'}'`
29585 { echo "$as_me:$LINENO: result: $ac_res" >&5
29586 echo "${ECHO_T}$ac_res" >&6; }
29587 if test `eval echo '${'$as_ac_var'}'` = yes; then
29588 cat >>confdefs.h
<<_ACEOF
29589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29602 for ac_func
in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29604 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29607 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29608 echo $ECHO_N "(cached) $ECHO_C" >&6
29610 cat >conftest.
$ac_ext <<_ACEOF
29613 cat confdefs.h
>>conftest.
$ac_ext
29614 cat >>conftest.
$ac_ext <<_ACEOF
29615 /* end confdefs.h. */
29616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29618 #define $ac_func innocuous_$ac_func
29620 /* System header to define __stub macros and hopefully few prototypes,
29621 which can conflict with char $ac_func (); below.
29622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29623 <limits.h> exists even on freestanding compilers. */
29626 # include <limits.h>
29628 # include <assert.h>
29633 /* Override any GCC internal prototype to avoid an error.
29634 Use char because int might match the return type of a GCC
29635 builtin and then its argument prototype would still apply. */
29640 /* The GNU C library defines this for functions which it implements
29641 to always fail with ENOSYS. Some functions are actually named
29642 something starting with __ and the normal name is an alias. */
29643 #if defined __stub_$ac_func || defined __stub___$ac_func
29650 return $ac_func ();
29655 rm -f conftest.
$ac_objext conftest
$ac_exeext
29656 if { (ac_try
="$ac_link"
29657 case "(($ac_try" in
29658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29659 *) ac_try_echo=$ac_try;;
29661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29662 (eval "$ac_link") 2>conftest.er1
29664 grep -v '^ *+' conftest.er1 >conftest.err
29666 cat conftest.err >&5
29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); } && {
29669 test -z "$ac_c_werror_flag" ||
29670 test ! -s conftest.err
29671 } && test -s conftest$ac_exeext &&
29672 $as_test_x conftest$ac_exeext; then
29673 eval "$as_ac_var=yes"
29675 echo "$as_me: failed program was:" >&5
29676 sed 's/^/| /' conftest.$ac_ext >&5
29678 eval "$as_ac_var=no"
29681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29682 conftest$ac_exeext conftest.$ac_ext
29684 ac_res=`eval echo '${'$as_ac_var'}'`
29685 { echo "$as_me:$LINENO: result: $ac_res" >&5
29686 echo "${ECHO_T}$ac_res" >&6; }
29687 if test `eval echo '${'$as_ac_var'}'` = yes; then
29688 cat >>confdefs.h <<_ACEOF
29689 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
29699 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
29701 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
29702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29705 echo $ECHO_N "(cached) $ECHO_C" >&6
29707 cat >conftest.$ac_ext <<_ACEOF
29710 cat confdefs.h >>conftest.$ac_ext
29711 cat >>conftest.$ac_ext <<_ACEOF
29712 /* end confdefs.h. */
29713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29715 #define $ac_func innocuous_$ac_func
29717 /* System header to define __stub macros and hopefully few prototypes,
29718 which can conflict with char $ac_func (); below.
29719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29720 <limits.h> exists even on freestanding compilers. */
29723 # include <limits.h>
29725 # include <assert.h>
29730 /* Override any GCC internal prototype to avoid an error.
29731 Use char because int might match the return type of a GCC
29732 builtin and then its argument prototype would still apply. */
29737 /* The GNU C library defines this for functions which it implements
29738 to always fail with ENOSYS. Some functions are actually named
29739 something starting with __ and the normal name is an alias. */
29740 #if defined __stub_$ac_func || defined __stub___$ac_func
29747 return $ac_func ();
29752 rm -f conftest.$ac_objext conftest$ac_exeext
29753 if { (ac_try="$ac_link"
29754 case "(($ac_try" in
29755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29756 *) ac_try_echo
=$ac_try;;
29758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29759 (eval "$ac_link") 2>conftest.er1
29761 grep -v '^ *+' conftest.er1
>conftest.err
29763 cat conftest.err
>&5
29764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); } && {
29766 test -z "$ac_c_werror_flag" ||
29767 test ! -s conftest.err
29768 } && test -s conftest
$ac_exeext &&
29769 $as_test_x conftest
$ac_exeext; then
29770 eval "$as_ac_var=yes"
29772 echo "$as_me: failed program was:" >&5
29773 sed 's/^/| /' conftest.
$ac_ext >&5
29775 eval "$as_ac_var=no"
29778 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29779 conftest
$ac_exeext conftest.
$ac_ext
29781 ac_res
=`eval echo '${'$as_ac_var'}'`
29782 { echo "$as_me:$LINENO: result: $ac_res" >&5
29783 echo "${ECHO_T}$ac_res" >&6; }
29784 if test `eval echo '${'$as_ac_var'}'` = yes; then
29785 cat >>confdefs.h
<<_ACEOF
29786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29796 for ac_func
in setjmp longjmp sigsetjmp siglongjmp
29798 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29801 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29802 echo $ECHO_N "(cached) $ECHO_C" >&6
29804 cat >conftest.
$ac_ext <<_ACEOF
29807 cat confdefs.h
>>conftest.
$ac_ext
29808 cat >>conftest.
$ac_ext <<_ACEOF
29809 /* end confdefs.h. */
29810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29812 #define $ac_func innocuous_$ac_func
29814 /* System header to define __stub macros and hopefully few prototypes,
29815 which can conflict with char $ac_func (); below.
29816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29817 <limits.h> exists even on freestanding compilers. */
29820 # include <limits.h>
29822 # include <assert.h>
29827 /* Override any GCC internal prototype to avoid an error.
29828 Use char because int might match the return type of a GCC
29829 builtin and then its argument prototype would still apply. */
29834 /* The GNU C library defines this for functions which it implements
29835 to always fail with ENOSYS. Some functions are actually named
29836 something starting with __ and the normal name is an alias. */
29837 #if defined __stub_$ac_func || defined __stub___$ac_func
29844 return $ac_func ();
29849 rm -f conftest.
$ac_objext conftest
$ac_exeext
29850 if { (ac_try
="$ac_link"
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_link") 2>conftest.er1
29858 grep -v '^ *+' conftest.er1 >conftest.err
29860 cat conftest.err >&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); } && {
29863 test -z "$ac_c_werror_flag" ||
29864 test ! -s conftest.err
29865 } && test -s conftest$ac_exeext &&
29866 $as_test_x conftest$ac_exeext; then
29867 eval "$as_ac_var=yes"
29869 echo "$as_me: failed program was:" >&5
29870 sed 's/^/| /' conftest.$ac_ext >&5
29872 eval "$as_ac_var=no"
29875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29876 conftest$ac_exeext conftest.$ac_ext
29878 ac_res=`eval echo '${'$as_ac_var'}'`
29879 { echo "$as_me:$LINENO: result: $ac_res" >&5
29880 echo "${ECHO_T}$ac_res" >&6; }
29881 if test `eval echo '${'$as_ac_var'}'` = yes; then
29882 cat >>confdefs.h <<_ACEOF
29883 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
29889 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29890 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
29891 if test "${llvm_cv_c_printf_a+set}" = set; then
29892 echo $ECHO_N "(cached) $ECHO_C" >&6
29895 ac_cpp='$CPP $CPPFLAGS'
29896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29900 if test "$cross_compiling" = yes; then
29901 llvmac_cv_c_printf_a=no
29903 cat >conftest.$ac_ext <<_ACEOF
29907 cat confdefs.h >>conftest.$ac_ext
29908 cat >>conftest.$ac_ext <<_ACEOF
29909 /* end confdefs.h. */
29912 #include <stdlib.h>
29918 volatile double A, B;
29922 sprintf(Buffer, "%a", A);
29926 if (A != 0x1.999999999999ap-4)
29933 rm -f conftest$ac_exeext
29934 if { (ac_try="$ac_link"
29935 case "(($ac_try" in
29936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29937 *) ac_try_echo
=$ac_try;;
29939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29940 (eval "$ac_link") 2>&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
29944 { (case "(($ac_try" in
29945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29946 *) ac_try_echo=$ac_try;;
29948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949 (eval "$ac_try") 2>&5
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); }; }; then
29953 llvm_cv_c_printf_a=yes
29955 echo "$as_me: program exited with status $ac_status" >&5
29956 echo "$as_me: failed program was:" >&5
29957 sed 's/^/| /' conftest.$ac_ext >&5
29959 ( exit $ac_status )
29960 llvmac_cv_c_printf_a=no
29962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29967 ac_cpp='$CPP $CPPFLAGS'
29968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29973 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29974 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
29975 if test "$llvm_cv_c_printf_a" = "yes"; then
29977 cat >>confdefs.h <<\_ACEOF
29978 #define HAVE_PRINTF_A 1
29983 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29984 # for constant arguments. Useless!
29985 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
29986 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
29987 if test "${ac_cv_working_alloca_h+set}" = set; then
29988 echo $ECHO_N "(cached) $ECHO_C" >&6
29990 cat >conftest.$ac_ext <<_ACEOF
29993 cat confdefs.h >>conftest.$ac_ext
29994 cat >>conftest.$ac_ext <<_ACEOF
29995 /* end confdefs.h. */
29996 #include <alloca.h>
30000 char *p = (char *) alloca (2 * sizeof (int));
30006 rm -f conftest.$ac_objext conftest$ac_exeext
30007 if { (ac_try="$ac_link"
30008 case "(($ac_try" in
30009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30010 *) ac_try_echo
=$ac_try;;
30012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30013 (eval "$ac_link") 2>conftest.er1
30015 grep -v '^ *+' conftest.er1
>conftest.err
30017 cat conftest.err
>&5
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); } && {
30020 test -z "$ac_c_werror_flag" ||
30021 test ! -s conftest.err
30022 } && test -s conftest
$ac_exeext &&
30023 $as_test_x conftest
$ac_exeext; then
30024 ac_cv_working_alloca_h
=yes
30026 echo "$as_me: failed program was:" >&5
30027 sed 's/^/| /' conftest.
$ac_ext >&5
30029 ac_cv_working_alloca_h
=no
30032 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30033 conftest
$ac_exeext conftest.
$ac_ext
30035 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30036 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30037 if test $ac_cv_working_alloca_h = yes; then
30039 cat >>confdefs.h
<<\_ACEOF
30040 #define HAVE_ALLOCA_H 1
30045 { echo "$as_me:$LINENO: checking for alloca" >&5
30046 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30047 if test "${ac_cv_func_alloca_works+set}" = set; then
30048 echo $ECHO_N "(cached) $ECHO_C" >&6
30050 cat >conftest.
$ac_ext <<_ACEOF
30053 cat confdefs.h
>>conftest.
$ac_ext
30054 cat >>conftest.
$ac_ext <<_ACEOF
30055 /* end confdefs.h. */
30057 # define alloca __builtin_alloca
30060 # include <malloc.h>
30061 # define alloca _alloca
30063 # ifdef HAVE_ALLOCA_H
30064 # include <alloca.h>
30069 # ifndef alloca /* predefined by HP cc +Olibcalls */
30080 char *p = (char *) alloca (1);
30086 rm -f conftest.
$ac_objext conftest
$ac_exeext
30087 if { (ac_try
="$ac_link"
30088 case "(($ac_try" in
30089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30090 *) ac_try_echo=$ac_try;;
30092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30093 (eval "$ac_link") 2>conftest.er1
30095 grep -v '^ *+' conftest.er1 >conftest.err
30097 cat conftest.err >&5
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); } && {
30100 test -z "$ac_c_werror_flag" ||
30101 test ! -s conftest.err
30102 } && test -s conftest$ac_exeext &&
30103 $as_test_x conftest$ac_exeext; then
30104 ac_cv_func_alloca_works=yes
30106 echo "$as_me: failed program was:" >&5
30107 sed 's/^/| /' conftest.$ac_ext >&5
30109 ac_cv_func_alloca_works=no
30112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30113 conftest$ac_exeext conftest.$ac_ext
30115 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30116 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30118 if test $ac_cv_func_alloca_works = yes; then
30120 cat >>confdefs.h <<\_ACEOF
30121 #define HAVE_ALLOCA 1
30125 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30126 # that cause trouble. Some versions do not even contain alloca or
30127 # contain a buggy version. If you still want to use their alloca,
30128 # use ar to extract alloca.o from them instead of compiling alloca.c.
30130 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30132 cat >>confdefs.h <<\_ACEOF
30137 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
30138 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
30139 if test "${ac_cv_os_cray+set}" = set; then
30140 echo $ECHO_N "(cached
) $ECHO_C" >&6
30142 cat >conftest.$ac_ext <<_ACEOF
30145 cat confdefs.h >>conftest.$ac_ext
30146 cat >>conftest.$ac_ext <<_ACEOF
30147 /* end confdefs.h. */
30148 #if defined CRAY && ! defined CRAY2
30155 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
30156 $EGREP "webecray
" >/dev/null 2>&1; then
30164 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
30165 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30166 if test $ac_cv_os_cray = yes; then
30167 for ac_func in _getb67 GETB67 getb67; do
30168 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
30169 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
30170 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
30171 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
30172 echo $ECHO_N "(cached
) $ECHO_C" >&6
30174 cat >conftest.$ac_ext <<_ACEOF
30177 cat confdefs.h >>conftest.$ac_ext
30178 cat >>conftest.$ac_ext <<_ACEOF
30179 /* end confdefs.h. */
30180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30182 #define $ac_func innocuous_$ac_func
30184 /* System header to define __stub macros and hopefully few prototypes,
30185 which can conflict with char $ac_func (); below.
30186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30187 <limits.h> exists even on freestanding compilers. */
30190 # include <limits.h>
30192 # include <assert.h>
30197 /* Override any GCC internal prototype to avoid an error.
30198 Use char because int might match the return type of a GCC
30199 builtin and then its argument prototype would still apply. */
30204 /* The GNU C library defines this for functions which it implements
30205 to always fail with ENOSYS. Some functions are actually named
30206 something starting with __ and the normal name is an alias. */
30207 #if defined __stub_$ac_func || defined __stub___$ac_func
30214 return $ac_func ();
30219 rm -f conftest.$ac_objext conftest$ac_exeext
30220 if { (ac_try="$ac_link"
30221 case "(($ac_try" in
30222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30223 *) ac_try_echo=$ac_try;;
30225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30226 (eval "$ac_link") 2>conftest.er1
30228 grep -v '^ *+' conftest.er1 >conftest.err
30230 cat conftest.err >&5
30231 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30232 (exit $ac_status); } && {
30233 test -z "$ac_c_werror_flag" ||
30234 test ! -s conftest.err
30235 } && test -s conftest$ac_exeext &&
30236 $as_test_x conftest$ac_exeext; then
30237 eval "$as_ac_var=yes"
30239 echo "$as_me: failed program was
:" >&5
30240 sed 's/^/| /' conftest.$ac_ext >&5
30242 eval "$as_ac_var=no
"
30245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30246 conftest$ac_exeext conftest.$ac_ext
30248 ac_res=`eval echo '${'$as_ac_var'}'`
30249 { echo "$as_me:$LINENO: result
: $ac_res" >&5
30250 echo "${ECHO_T}$ac_res" >&6; }
30251 if test `eval echo '${'$as_ac_var'}'` = yes; then
30253 cat >>confdefs.h <<_ACEOF
30254 #define CRAY_STACKSEG_END $ac_func
30263 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
30264 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
30265 if test "${ac_cv_c_stack_direction+set}" = set; then
30266 echo $ECHO_N "(cached
) $ECHO_C" >&6
30268 if test "$cross_compiling" = yes; then
30269 ac_cv_c_stack_direction=0
30271 cat >conftest.$ac_ext <<_ACEOF
30274 cat confdefs.h >>conftest.$ac_ext
30275 cat >>conftest.$ac_ext <<_ACEOF
30276 /* end confdefs.h. */
30277 $ac_includes_default
30279 find_stack_direction ()
30281 static char *addr = 0;
30286 return find_stack_direction ();
30289 return (&dummy > addr) ? 1 : -1;
30295 return find_stack_direction () < 0;
30298 rm -f conftest$ac_exeext
30299 if { (ac_try="$ac_link"
30300 case "(($ac_try" in
30301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30302 *) ac_try_echo=$ac_try;;
30304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30305 (eval "$ac_link") 2>&5
30307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30309 { (case "(($ac_try" in
30310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311 *) ac_try_echo=$ac_try;;
30313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30314 (eval "$ac_try") 2>&5
30316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30317 (exit $ac_status); }; }; then
30318 ac_cv_c_stack_direction=1
30320 echo "$as_me: program exited with status
$ac_status" >&5
30321 echo "$as_me: failed program was
:" >&5
30322 sed 's/^/| /' conftest.$ac_ext >&5
30324 ( exit $ac_status )
30325 ac_cv_c_stack_direction=-1
30327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30332 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
30333 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30335 cat >>confdefs.h <<_ACEOF
30336 #define STACK_DIRECTION $ac_cv_c_stack_direction
30343 { echo "$as_me:$LINENO: checking
for srand48
/lrand48
/drand48
in <stdlib.h
>" >&5
30344 echo $ECHO_N "checking
for srand48
/lrand48
/drand48
in <stdlib.h
>...
$ECHO_C" >&6; }
30345 if test "${ac_cv_func_rand48+set}" = set; then
30346 echo $ECHO_N "(cached
) $ECHO_C" >&6
30349 ac_cpp='$CXXCPP $CPPFLAGS'
30350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30354 cat >conftest.$ac_ext <<_ACEOF
30357 cat confdefs.h >>conftest.$ac_ext
30358 cat >>conftest.$ac_ext <<_ACEOF
30359 /* end confdefs.h. */
30360 #include <stdlib.h>
30364 srand48(0);lrand48();drand48();
30369 rm -f conftest.$ac_objext
30370 if { (ac_try="$ac_compile"
30371 case "(($ac_try" in
30372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30373 *) ac_try_echo=$ac_try;;
30375 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30376 (eval "$ac_compile") 2>conftest.er1
30378 grep -v '^ *+' conftest.er1 >conftest.err
30380 cat conftest.err >&5
30381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30382 (exit $ac_status); } && {
30383 test -z "$ac_cxx_werror_flag" ||
30384 test ! -s conftest.err
30385 } && test -s conftest.$ac_objext; then
30386 ac_cv_func_rand48=yes
30388 echo "$as_me: failed program was
:" >&5
30389 sed 's/^/| /' conftest.$ac_ext >&5
30391 ac_cv_func_rand48=no
30394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30396 ac_cpp='$CPP $CPPFLAGS'
30397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30402 { echo "$as_me:$LINENO: result
: $ac_cv_func_rand48" >&5
30403 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30405 if test "$ac_cv_func_rand48" = "yes" ; then
30407 cat >>confdefs.h <<\_ACEOF
30408 #define HAVE_RAND48 1
30414 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces
" >&5
30415 echo $ECHO_N "checking whether the compiler implements namespaces...
$ECHO_C" >&6; }
30416 if test "${ac_cv_cxx_namespaces+set}" = set; then
30417 echo $ECHO_N "(cached
) $ECHO_C" >&6
30420 ac_cpp='$CXXCPP $CPPFLAGS'
30421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30425 cat >conftest.$ac_ext <<_ACEOF
30428 cat confdefs.h >>conftest.$ac_ext
30429 cat >>conftest.$ac_ext <<_ACEOF
30430 /* end confdefs.h. */
30431 namespace Outer { namespace Inner { int i = 0; }}
30435 using namespace Outer::Inner; return i;
30440 rm -f conftest.$ac_objext
30441 if { (ac_try="$ac_compile"
30442 case "(($ac_try" in
30443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444 *) ac_try_echo=$ac_try;;
30446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30447 (eval "$ac_compile") 2>conftest.er1
30449 grep -v '^ *+' conftest.er1 >conftest.err
30451 cat conftest.err >&5
30452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30453 (exit $ac_status); } && {
30454 test -z "$ac_cxx_werror_flag" ||
30455 test ! -s conftest.err
30456 } && test -s conftest.$ac_objext; then
30457 ac_cv_cxx_namespaces=yes
30459 echo "$as_me: failed program was
:" >&5
30460 sed 's/^/| /' conftest.$ac_ext >&5
30462 ac_cv_cxx_namespaces=no
30465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30467 ac_cpp='$CPP $CPPFLAGS'
30468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30474 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_namespaces" >&5
30475 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
30476 if test "$ac_cv_cxx_namespaces" = yes; then
30478 cat >>confdefs.h <<\_ACEOF
30479 #define HAVE_NAMESPACES
30484 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_map
> defining template class std
::hash_map
" >&5
30485 echo $ECHO_N "checking whether the compiler has
<ext
/hash_map
> defining template class std
::hash_map...
$ECHO_C" >&6; }
30486 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
30487 echo $ECHO_N "(cached
) $ECHO_C" >&6
30491 ac_cpp='$CXXCPP $CPPFLAGS'
30492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30496 cat >conftest.$ac_ext <<_ACEOF
30499 cat confdefs.h >>conftest.$ac_ext
30500 cat >>conftest.$ac_ext <<_ACEOF
30501 /* end confdefs.h. */
30502 #include <ext/hash_map>
30503 #ifdef HAVE_NAMESPACES
30504 using namespace std;
30509 hash_map<int, int> t;
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 test -z "$ac_cxx_werror_flag" ||
30529 test ! -s conftest.err
30530 } && test -s conftest.$ac_objext; then
30531 ac_cv_cxx_have_std_ext_hash_map=yes
30533 echo "$as_me: failed program was
:" >&5
30534 sed 's/^/| /' conftest.$ac_ext >&5
30536 ac_cv_cxx_have_std_ext_hash_map=no
30539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30541 ac_cpp='$CPP $CPPFLAGS'
30542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30547 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_std_ext_hash_map" >&5
30548 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
30549 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
30552 cat >>confdefs.h <<\_ACEOF
30553 #define HAVE_STD_EXT_HASH_MAP 1
30558 cat >>confdefs.h <<\_ACEOF
30559 #define HAVE_STD_EXT_HASH_MAP 0
30564 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_map
> defining template class __gnu_cxx
::hash_map
" >&5
30565 echo $ECHO_N "checking whether the compiler has
<ext
/hash_map
> defining template class __gnu_cxx
::hash_map...
$ECHO_C" >&6; }
30566 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30567 echo $ECHO_N "(cached
) $ECHO_C" >&6
30571 ac_cpp='$CXXCPP $CPPFLAGS'
30572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30576 cat >conftest.$ac_ext <<_ACEOF
30579 cat confdefs.h >>conftest.$ac_ext
30580 cat >>conftest.$ac_ext <<_ACEOF
30581 /* end confdefs.h. */
30582 #include <ext/hash_map>
30583 #ifdef HAVE_NAMESPACES
30584 using namespace __gnu_cxx;
30589 hash_map<int,int> t;
30594 rm -f conftest.$ac_objext
30595 if { (ac_try="$ac_compile"
30596 case "(($ac_try" in
30597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30598 *) ac_try_echo=$ac_try;;
30600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30601 (eval "$ac_compile") 2>conftest.er1
30603 grep -v '^ *+' conftest.er1 >conftest.err
30605 cat conftest.err >&5
30606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30607 (exit $ac_status); } && {
30608 test -z "$ac_cxx_werror_flag" ||
30609 test ! -s conftest.err
30610 } && test -s conftest.$ac_objext; then
30611 ac_cv_cxx_have_gnu_ext_hash_map=yes
30613 echo "$as_me: failed program was
:" >&5
30614 sed 's/^/| /' conftest.$ac_ext >&5
30616 ac_cv_cxx_have_gnu_ext_hash_map=no
30619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30621 ac_cpp='$CPP $CPPFLAGS'
30622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30627 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30628 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
30629 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30632 cat >>confdefs.h <<\_ACEOF
30633 #define HAVE_GNU_EXT_HASH_MAP 1
30638 cat >>confdefs.h <<\_ACEOF
30639 #define HAVE_GNU_EXT_HASH_MAP 0
30644 { echo "$as_me:$LINENO: checking whether the compiler has
<hash_map
> defining template class
::hash_map
" >&5
30645 echo $ECHO_N "checking whether the compiler has
<hash_map
> defining template class
::hash_map...
$ECHO_C" >&6; }
30646 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30647 echo $ECHO_N "(cached
) $ECHO_C" >&6
30651 ac_cpp='$CXXCPP $CPPFLAGS'
30652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30656 cat >conftest.$ac_ext <<_ACEOF
30659 cat confdefs.h >>conftest.$ac_ext
30660 cat >>conftest.$ac_ext <<_ACEOF
30661 /* end confdefs.h. */
30662 #include <hash_map>
30666 hash_map<int,int> t;
30671 rm -f conftest.$ac_objext
30672 if { (ac_try="$ac_compile"
30673 case "(($ac_try" in
30674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675 *) ac_try_echo=$ac_try;;
30677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30678 (eval "$ac_compile") 2>conftest.er1
30680 grep -v '^ *+' conftest.er1 >conftest.err
30682 cat conftest.err >&5
30683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30684 (exit $ac_status); } && {
30685 test -z "$ac_cxx_werror_flag" ||
30686 test ! -s conftest.err
30687 } && test -s conftest.$ac_objext; then
30688 ac_cv_cxx_have_global_hash_map=yes
30690 echo "$as_me: failed program was
:" >&5
30691 sed 's/^/| /' conftest.$ac_ext >&5
30693 ac_cv_cxx_have_global_hash_map=no
30696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30698 ac_cpp='$CPP $CPPFLAGS'
30699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30704 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_global_hash_map" >&5
30705 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
30706 if test "$ac_cv_cxx_have_global_hash_map" = yes
30709 cat >>confdefs.h <<\_ACEOF
30710 #define HAVE_GLOBAL_HASH_MAP 1
30715 cat >>confdefs.h <<\_ACEOF
30716 #define HAVE_GLOBAL_HASH_MAP 0
30721 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_set
> defining template class std
::hash_set
" >&5
30722 echo $ECHO_N "checking whether the compiler has
<ext
/hash_set
> defining template class std
::hash_set...
$ECHO_C" >&6; }
30723 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
30724 echo $ECHO_N "(cached
) $ECHO_C" >&6
30728 ac_cpp='$CXXCPP $CPPFLAGS'
30729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
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 <ext/hash_set>
30740 #ifdef HAVE_NAMESPACES
30741 using namespace std;
30751 rm -f conftest.$ac_objext
30752 if { (ac_try="$ac_compile"
30753 case "(($ac_try" in
30754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30755 *) ac_try_echo=$ac_try;;
30757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30758 (eval "$ac_compile") 2>conftest.er1
30760 grep -v '^ *+' conftest.er1 >conftest.err
30762 cat conftest.err >&5
30763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30764 (exit $ac_status); } && {
30765 test -z "$ac_cxx_werror_flag" ||
30766 test ! -s conftest.err
30767 } && test -s conftest.$ac_objext; then
30768 ac_cv_cxx_have_std_ext_hash_set=yes
30770 echo "$as_me: failed program was
:" >&5
30771 sed 's/^/| /' conftest.$ac_ext >&5
30773 ac_cv_cxx_have_std_ext_hash_set=no
30776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30778 ac_cpp='$CPP $CPPFLAGS'
30779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30784 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_std_ext_hash_set" >&5
30785 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
30786 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30789 cat >>confdefs.h <<\_ACEOF
30790 #define HAVE_STD_EXT_HASH_SET 1
30795 cat >>confdefs.h <<\_ACEOF
30796 #define HAVE_STD_EXT_HASH_SET 0
30801 { echo "$as_me:$LINENO: checking whether the compiler has
<ext
/hash_set
> defining template class __gnu_cxx
::hash_set
" >&5
30802 echo $ECHO_N "checking whether the compiler has
<ext
/hash_set
> defining template class __gnu_cxx
::hash_set...
$ECHO_C" >&6; }
30803 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30804 echo $ECHO_N "(cached
) $ECHO_C" >&6
30808 ac_cpp='$CXXCPP $CPPFLAGS'
30809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30813 cat >conftest.$ac_ext <<_ACEOF
30816 cat confdefs.h >>conftest.$ac_ext
30817 cat >>conftest.$ac_ext <<_ACEOF
30818 /* end confdefs.h. */
30819 #include <ext/hash_set>
30820 #ifdef HAVE_NAMESPACES
30821 using namespace __gnu_cxx;
30831 rm -f conftest.$ac_objext
30832 if { (ac_try="$ac_compile"
30833 case "(($ac_try" in
30834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30835 *) ac_try_echo=$ac_try;;
30837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30838 (eval "$ac_compile") 2>conftest.er1
30840 grep -v '^ *+' conftest.er1 >conftest.err
30842 cat conftest.err >&5
30843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30844 (exit $ac_status); } && {
30845 test -z "$ac_cxx_werror_flag" ||
30846 test ! -s conftest.err
30847 } && test -s conftest.$ac_objext; then
30848 ac_cv_cxx_have_gnu_ext_hash_set=yes
30850 echo "$as_me: failed program was
:" >&5
30851 sed 's/^/| /' conftest.$ac_ext >&5
30853 ac_cv_cxx_have_gnu_ext_hash_set=no
30856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30858 ac_cpp='$CPP $CPPFLAGS'
30859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30864 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30865 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
30866 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30869 cat >>confdefs.h <<\_ACEOF
30870 #define HAVE_GNU_EXT_HASH_SET 1
30875 cat >>confdefs.h <<\_ACEOF
30876 #define HAVE_GNU_EXT_HASH_SET 0
30881 { echo "$as_me:$LINENO: checking whether the compiler has
<hash_set
> defining template class
::hash_set
" >&5
30882 echo $ECHO_N "checking whether the compiler has
<hash_set
> defining template class
::hash_set...
$ECHO_C" >&6; }
30883 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30884 echo $ECHO_N "(cached
) $ECHO_C" >&6
30888 ac_cpp='$CXXCPP $CPPFLAGS'
30889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30893 cat >conftest.$ac_ext <<_ACEOF
30896 cat confdefs.h >>conftest.$ac_ext
30897 cat >>conftest.$ac_ext <<_ACEOF
30898 /* end confdefs.h. */
30899 #include <hash_set>
30903 hash_set<int> t; return 0;
30908 rm -f conftest.$ac_objext
30909 if { (ac_try="$ac_compile"
30910 case "(($ac_try" in
30911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30912 *) ac_try_echo=$ac_try;;
30914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30915 (eval "$ac_compile") 2>conftest.er1
30917 grep -v '^ *+' conftest.er1 >conftest.err
30919 cat conftest.err >&5
30920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30921 (exit $ac_status); } && {
30922 test -z "$ac_cxx_werror_flag" ||
30923 test ! -s conftest.err
30924 } && test -s conftest.$ac_objext; then
30925 ac_cv_cxx_have_global_hash_set=yes
30927 echo "$as_me: failed program was
:" >&5
30928 sed 's/^/| /' conftest.$ac_ext >&5
30930 ac_cv_cxx_have_global_hash_set=no
30933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30935 ac_cpp='$CPP $CPPFLAGS'
30936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30941 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_global_hash_set" >&5
30942 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
30943 if test "$ac_cv_cxx_have_global_hash_set" = yes
30946 cat >>confdefs.h <<\_ACEOF
30947 #define HAVE_GLOBAL_HASH_SET 1
30952 cat >>confdefs.h <<\_ACEOF
30953 #define HAVE_GLOBAL_HASH_SET 0
30958 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator
" >&5
30959 echo $ECHO_N "checking whether the compiler has the standard iterator...
$ECHO_C" >&6; }
30960 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30961 echo $ECHO_N "(cached
) $ECHO_C" >&6
30965 ac_cpp='$CXXCPP $CPPFLAGS'
30966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30970 cat >conftest.$ac_ext <<_ACEOF
30973 cat confdefs.h >>conftest.$ac_ext
30974 cat >>conftest.$ac_ext <<_ACEOF
30975 /* end confdefs.h. */
30976 #include <iterator>
30977 #ifdef HAVE_NAMESPACES
30978 using namespace std;
30983 iterator<int,int,int> t; return 0;
30988 rm -f conftest.$ac_objext
30989 if { (ac_try="$ac_compile"
30990 case "(($ac_try" in
30991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30992 *) ac_try_echo=$ac_try;;
30994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
30995 (eval "$ac_compile") 2>conftest.er1
30997 grep -v '^ *+' conftest.er1 >conftest.err
30999 cat conftest.err >&5
31000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31001 (exit $ac_status); } && {
31002 test -z "$ac_cxx_werror_flag" ||
31003 test ! -s conftest.err
31004 } && test -s conftest.$ac_objext; then
31005 ac_cv_cxx_have_std_iterator=yes
31007 echo "$as_me: failed program was
:" >&5
31008 sed 's/^/| /' conftest.$ac_ext >&5
31010 ac_cv_cxx_have_std_iterator=no
31013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31015 ac_cpp='$CPP $CPPFLAGS'
31016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31022 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_std_iterator" >&5
31023 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31024 if test "$ac_cv_cxx_have_std_iterator" = yes
31027 cat >>confdefs.h <<\_ACEOF
31028 #define HAVE_STD_ITERATOR 1
31033 cat >>confdefs.h <<\_ACEOF
31034 #define HAVE_STD_ITERATOR 0
31039 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator
" >&5
31040 echo $ECHO_N "checking whether the compiler has the bidirectional iterator...
$ECHO_C" >&6; }
31041 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31042 echo $ECHO_N "(cached
) $ECHO_C" >&6
31046 ac_cpp='$CXXCPP $CPPFLAGS'
31047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31051 cat >conftest.$ac_ext <<_ACEOF
31054 cat confdefs.h >>conftest.$ac_ext
31055 cat >>conftest.$ac_ext <<_ACEOF
31056 /* end confdefs.h. */
31057 #include <iterator>
31058 #ifdef HAVE_NAMESPACES
31059 using namespace std;
31064 bidirectional_iterator<int,int> t; return 0;
31069 rm -f conftest.$ac_objext
31070 if { (ac_try="$ac_compile"
31071 case "(($ac_try" in
31072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31073 *) ac_try_echo=$ac_try;;
31075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31076 (eval "$ac_compile") 2>conftest.er1
31078 grep -v '^ *+' conftest.er1 >conftest.err
31080 cat conftest.err >&5
31081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31082 (exit $ac_status); } && {
31083 test -z "$ac_cxx_werror_flag" ||
31084 test ! -s conftest.err
31085 } && test -s conftest.$ac_objext; then
31086 ac_cv_cxx_have_bi_iterator=yes
31088 echo "$as_me: failed program was
:" >&5
31089 sed 's/^/| /' conftest.$ac_ext >&5
31091 ac_cv_cxx_have_bi_iterator=no
31094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31096 ac_cpp='$CPP $CPPFLAGS'
31097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31103 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_bi_iterator" >&5
31104 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31105 if test "$ac_cv_cxx_have_bi_iterator" = yes
31108 cat >>confdefs.h <<\_ACEOF
31109 #define HAVE_BI_ITERATOR 1
31114 cat >>confdefs.h <<\_ACEOF
31115 #define HAVE_BI_ITERATOR 0
31120 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators
" >&5
31121 echo $ECHO_N "checking whether the compiler has forward iterators...
$ECHO_C" >&6; }
31122 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31123 echo $ECHO_N "(cached
) $ECHO_C" >&6
31127 ac_cpp='$CXXCPP $CPPFLAGS'
31128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31132 cat >conftest.$ac_ext <<_ACEOF
31135 cat confdefs.h >>conftest.$ac_ext
31136 cat >>conftest.$ac_ext <<_ACEOF
31137 /* end confdefs.h. */
31138 #include <iterator>
31139 #ifdef HAVE_NAMESPACES
31140 using namespace std;
31145 forward_iterator<int,int> t; return 0;
31150 rm -f conftest.$ac_objext
31151 if { (ac_try="$ac_compile"
31152 case "(($ac_try" in
31153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154 *) ac_try_echo=$ac_try;;
31156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31157 (eval "$ac_compile") 2>conftest.er1
31159 grep -v '^ *+' conftest.er1 >conftest.err
31161 cat conftest.err >&5
31162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31163 (exit $ac_status); } && {
31164 test -z "$ac_cxx_werror_flag" ||
31165 test ! -s conftest.err
31166 } && test -s conftest.$ac_objext; then
31167 ac_cv_cxx_have_fwd_iterator=yes
31169 echo "$as_me: failed program was
:" >&5
31170 sed 's/^/| /' conftest.$ac_ext >&5
31172 ac_cv_cxx_have_fwd_iterator=no
31175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31177 ac_cpp='$CPP $CPPFLAGS'
31178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31184 { echo "$as_me:$LINENO: result
: $ac_cv_cxx_have_fwd_iterator" >&5
31185 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31186 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31189 cat >>confdefs.h <<\_ACEOF
31190 #define HAVE_FWD_ITERATOR 1
31195 cat >>confdefs.h <<\_ACEOF
31196 #define HAVE_FWD_ITERATOR 0
31202 { echo "$as_me:$LINENO: checking
for isnan
in <math.h
>" >&5
31203 echo $ECHO_N "checking
for isnan
in <math.h
>...
$ECHO_C" >&6; }
31204 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31205 echo $ECHO_N "(cached
) $ECHO_C" >&6
31208 ac_cpp='$CXXCPP $CPPFLAGS'
31209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31213 cat >conftest.$ac_ext <<_ACEOF
31216 cat confdefs.h >>conftest.$ac_ext
31217 cat >>conftest.$ac_ext <<_ACEOF
31218 /* end confdefs.h. */
31228 rm -f conftest.$ac_objext
31229 if { (ac_try="$ac_compile"
31230 case "(($ac_try" in
31231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232 *) ac_try_echo=$ac_try;;
31234 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31235 (eval "$ac_compile") 2>conftest.er1
31237 grep -v '^ *+' conftest.er1 >conftest.err
31239 cat conftest.err >&5
31240 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31241 (exit $ac_status); } && {
31242 test -z "$ac_cxx_werror_flag" ||
31243 test ! -s conftest.err
31244 } && test -s conftest.$ac_objext; then
31245 ac_cv_func_isnan_in_math_h=yes
31247 echo "$as_me: failed program was
:" >&5
31248 sed 's/^/| /' conftest.$ac_ext >&5
31250 ac_cv_func_isnan_in_math_h=no
31253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31255 ac_cpp='$CPP $CPPFLAGS'
31256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31261 { echo "$as_me:$LINENO: result
: $ac_cv_func_isnan_in_math_h" >&5
31262 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
31265 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
31267 cat >>confdefs.h <<\_ACEOF
31268 #define HAVE_ISNAN_IN_MATH_H 1
31273 { echo "$as_me:$LINENO: checking
for isnan
in <cmath
>" >&5
31274 echo $ECHO_N "checking
for isnan
in <cmath
>...
$ECHO_C" >&6; }
31275 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
31276 echo $ECHO_N "(cached
) $ECHO_C" >&6
31279 ac_cpp='$CXXCPP $CPPFLAGS'
31280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31284 cat >conftest.$ac_ext <<_ACEOF
31287 cat confdefs.h >>conftest.$ac_ext
31288 cat >>conftest.$ac_ext <<_ACEOF
31289 /* end confdefs.h. */
31299 rm -f conftest.$ac_objext
31300 if { (ac_try="$ac_compile"
31301 case "(($ac_try" in
31302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31303 *) ac_try_echo=$ac_try;;
31305 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31306 (eval "$ac_compile") 2>conftest.er1
31308 grep -v '^ *+' conftest.er1 >conftest.err
31310 cat conftest.err >&5
31311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31312 (exit $ac_status); } && {
31313 test -z "$ac_cxx_werror_flag" ||
31314 test ! -s conftest.err
31315 } && test -s conftest.$ac_objext; then
31316 ac_cv_func_isnan_in_cmath=yes
31318 echo "$as_me: failed program was
:" >&5
31319 sed 's/^/| /' conftest.$ac_ext >&5
31321 ac_cv_func_isnan_in_cmath=no
31324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31326 ac_cpp='$CPP $CPPFLAGS'
31327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31332 { echo "$as_me:$LINENO: result
: $ac_cv_func_isnan_in_cmath" >&5
31333 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
31335 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
31337 cat >>confdefs.h <<\_ACEOF
31338 #define HAVE_ISNAN_IN_CMATH 1
31343 { echo "$as_me:$LINENO: checking
for std
::isnan
in <cmath
>" >&5
31344 echo $ECHO_N "checking
for std
::isnan
in <cmath
>...
$ECHO_C" >&6; }
31345 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
31346 echo $ECHO_N "(cached
) $ECHO_C" >&6
31349 ac_cpp='$CXXCPP $CPPFLAGS'
31350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31354 cat >conftest.$ac_ext <<_ACEOF
31357 cat confdefs.h >>conftest.$ac_ext
31358 cat >>conftest.$ac_ext <<_ACEOF
31359 /* end confdefs.h. */
31364 float f; std::isnan(f);
31369 rm -f conftest.$ac_objext
31370 if { (ac_try="$ac_compile"
31371 case "(($ac_try" in
31372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31373 *) ac_try_echo=$ac_try;;
31375 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31376 (eval "$ac_compile") 2>conftest.er1
31378 grep -v '^ *+' conftest.er1 >conftest.err
31380 cat conftest.err >&5
31381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31382 (exit $ac_status); } && {
31383 test -z "$ac_cxx_werror_flag" ||
31384 test ! -s conftest.err
31385 } && test -s conftest.$ac_objext; then
31386 ac_cv_func_std_isnan_in_cmath=yes
31388 echo "$as_me: failed program was
:" >&5
31389 sed 's/^/| /' conftest.$ac_ext >&5
31391 ac_cv_func_std_isnan_in_cmath=no
31394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31396 ac_cpp='$CPP $CPPFLAGS'
31397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31402 { echo "$as_me:$LINENO: result
: $ac_cv_func_std_isnan_in_cmath" >&5
31403 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
31405 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
31407 cat >>confdefs.h <<\_ACEOF
31408 #define HAVE_STD_ISNAN_IN_CMATH 1
31414 { echo "$as_me:$LINENO: checking
for isinf
in <math.h
>" >&5
31415 echo $ECHO_N "checking
for isinf
in <math.h
>...
$ECHO_C" >&6; }
31416 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
31417 echo $ECHO_N "(cached
) $ECHO_C" >&6
31420 ac_cpp='$CXXCPP $CPPFLAGS'
31421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31425 cat >conftest.$ac_ext <<_ACEOF
31428 cat confdefs.h >>conftest.$ac_ext
31429 cat >>conftest.$ac_ext <<_ACEOF
31430 /* end confdefs.h. */
31440 rm -f conftest.$ac_objext
31441 if { (ac_try="$ac_compile"
31442 case "(($ac_try" in
31443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31444 *) ac_try_echo=$ac_try;;
31446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31447 (eval "$ac_compile") 2>conftest.er1
31449 grep -v '^ *+' conftest.er1 >conftest.err
31451 cat conftest.err >&5
31452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31453 (exit $ac_status); } && {
31454 test -z "$ac_cxx_werror_flag" ||
31455 test ! -s conftest.err
31456 } && test -s conftest.$ac_objext; then
31457 ac_cv_func_isinf_in_math_h=yes
31459 echo "$as_me: failed program was
:" >&5
31460 sed 's/^/| /' conftest.$ac_ext >&5
31462 ac_cv_func_isinf_in_math_h=no
31465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31467 ac_cpp='$CPP $CPPFLAGS'
31468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31473 { echo "$as_me:$LINENO: result
: $ac_cv_func_isinf_in_math_h" >&5
31474 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
31476 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
31478 cat >>confdefs.h <<\_ACEOF
31479 #define HAVE_ISINF_IN_MATH_H 1
31484 { echo "$as_me:$LINENO: checking
for isinf
in <cmath
>" >&5
31485 echo $ECHO_N "checking
for isinf
in <cmath
>...
$ECHO_C" >&6; }
31486 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
31487 echo $ECHO_N "(cached
) $ECHO_C" >&6
31490 ac_cpp='$CXXCPP $CPPFLAGS'
31491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31495 cat >conftest.$ac_ext <<_ACEOF
31498 cat confdefs.h >>conftest.$ac_ext
31499 cat >>conftest.$ac_ext <<_ACEOF
31500 /* end confdefs.h. */
31510 rm -f conftest.$ac_objext
31511 if { (ac_try="$ac_compile"
31512 case "(($ac_try" in
31513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31514 *) ac_try_echo=$ac_try;;
31516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31517 (eval "$ac_compile") 2>conftest.er1
31519 grep -v '^ *+' conftest.er1 >conftest.err
31521 cat conftest.err >&5
31522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31523 (exit $ac_status); } && {
31524 test -z "$ac_cxx_werror_flag" ||
31525 test ! -s conftest.err
31526 } && test -s conftest.$ac_objext; then
31527 ac_cv_func_isinf_in_cmath=yes
31529 echo "$as_me: failed program was
:" >&5
31530 sed 's/^/| /' conftest.$ac_ext >&5
31532 ac_cv_func_isinf_in_cmath=no
31535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31537 ac_cpp='$CPP $CPPFLAGS'
31538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31543 { echo "$as_me:$LINENO: result
: $ac_cv_func_isinf_in_cmath" >&5
31544 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
31546 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
31548 cat >>confdefs.h <<\_ACEOF
31549 #define HAVE_ISINF_IN_CMATH 1
31554 { echo "$as_me:$LINENO: checking
for std
::isinf
in <cmath
>" >&5
31555 echo $ECHO_N "checking
for std
::isinf
in <cmath
>...
$ECHO_C" >&6; }
31556 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
31557 echo $ECHO_N "(cached
) $ECHO_C" >&6
31560 ac_cpp='$CXXCPP $CPPFLAGS'
31561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31565 cat >conftest.$ac_ext <<_ACEOF
31568 cat confdefs.h >>conftest.$ac_ext
31569 cat >>conftest.$ac_ext <<_ACEOF
31570 /* end confdefs.h. */
31575 float f; std::isinf(f)}
31580 rm -f conftest.$ac_objext
31581 if { (ac_try="$ac_compile"
31582 case "(($ac_try" in
31583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31584 *) ac_try_echo=$ac_try;;
31586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31587 (eval "$ac_compile") 2>conftest.er1
31589 grep -v '^ *+' conftest.er1 >conftest.err
31591 cat conftest.err >&5
31592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31593 (exit $ac_status); } && {
31594 test -z "$ac_cxx_werror_flag" ||
31595 test ! -s conftest.err
31596 } && test -s conftest.$ac_objext; then
31597 ac_cv_func_std_isinf_in_cmath=yes
31599 echo "$as_me: failed program was
:" >&5
31600 sed 's/^/| /' conftest.$ac_ext >&5
31602 ac_cv_func_std_isinf_in_cmath=no
31605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31607 ac_cpp='$CPP $CPPFLAGS'
31608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31613 { echo "$as_me:$LINENO: result
: $ac_cv_func_std_isinf_in_cmath" >&5
31614 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
31616 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
31618 cat >>confdefs.h <<\_ACEOF
31619 #define HAVE_STD_ISINF_IN_CMATH 1
31624 { echo "$as_me:$LINENO: checking
for finite
in <ieeefp.h
>" >&5
31625 echo $ECHO_N "checking
for finite
in <ieeefp.h
>...
$ECHO_C" >&6; }
31626 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31627 echo $ECHO_N "(cached
) $ECHO_C" >&6
31630 ac_cpp='$CXXCPP $CPPFLAGS'
31631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31635 cat >conftest.$ac_ext <<_ACEOF
31638 cat confdefs.h >>conftest.$ac_ext
31639 cat >>conftest.$ac_ext <<_ACEOF
31640 /* end confdefs.h. */
31641 #include <ieeefp.h>
31645 float f; finite(f);
31650 rm -f conftest.$ac_objext
31651 if { (ac_try="$ac_compile"
31652 case "(($ac_try" in
31653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654 *) ac_try_echo=$ac_try;;
31656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31657 (eval "$ac_compile") 2>conftest.er1
31659 grep -v '^ *+' conftest.er1 >conftest.err
31661 cat conftest.err >&5
31662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31663 (exit $ac_status); } && {
31664 test -z "$ac_cxx_werror_flag" ||
31665 test ! -s conftest.err
31666 } && test -s conftest.$ac_objext; then
31667 ac_cv_func_finite_in_ieeefp_h=yes
31669 echo "$as_me: failed program was
:" >&5
31670 sed 's/^/| /' conftest.$ac_ext >&5
31672 ac_cv_func_finite_in_ieeefp_h=no
31675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31677 ac_cpp='$CPP $CPPFLAGS'
31678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31683 { echo "$as_me:$LINENO: result
: $ac_cv_func_finite_in_ieeefp_h" >&5
31684 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
31686 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
31688 cat >>confdefs.h <<\_ACEOF
31689 #define HAVE_FINITE_IN_IEEEFP_H 1
31696 if test "$llvm_cv_platform_type" = "Unix
" ; then
31699 for ac_header in stdlib.h unistd.h
31701 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
31702 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31703 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
31704 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
31705 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31706 echo $ECHO_N "(cached
) $ECHO_C" >&6
31708 ac_res=`eval echo '${'$as_ac_Header'}'`
31709 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31710 echo "${ECHO_T}$ac_res" >&6; }
31712 # Is the header compilable?
31713 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
31714 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
31715 cat >conftest.$ac_ext <<_ACEOF
31718 cat confdefs.h >>conftest.$ac_ext
31719 cat >>conftest.$ac_ext <<_ACEOF
31720 /* end confdefs.h. */
31721 $ac_includes_default
31722 #include <$ac_header>
31724 rm -f conftest.$ac_objext
31725 if { (ac_try="$ac_compile"
31726 case "(($ac_try" in
31727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31728 *) ac_try_echo=$ac_try;;
31730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31731 (eval "$ac_compile") 2>conftest.er1
31733 grep -v '^ *+' conftest.er1 >conftest.err
31735 cat conftest.err >&5
31736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31737 (exit $ac_status); } && {
31738 test -z "$ac_c_werror_flag" ||
31739 test ! -s conftest.err
31740 } && test -s conftest.$ac_objext; then
31741 ac_header_compiler=yes
31743 echo "$as_me: failed program was
:" >&5
31744 sed 's/^/| /' conftest.$ac_ext >&5
31746 ac_header_compiler=no
31749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31750 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
31751 echo "${ECHO_T}$ac_header_compiler" >&6; }
31753 # Is the header present?
31754 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
31755 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
31756 cat >conftest.$ac_ext <<_ACEOF
31759 cat confdefs.h >>conftest.$ac_ext
31760 cat >>conftest.$ac_ext <<_ACEOF
31761 /* end confdefs.h. */
31762 #include <$ac_header>
31764 if { (ac_try="$ac_cpp conftest.
$ac_ext"
31765 case "(($ac_try" in
31766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31767 *) ac_try_echo=$ac_try;;
31769 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31770 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
31772 grep -v '^ *+' conftest.er1 >conftest.err
31774 cat conftest.err >&5
31775 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31776 (exit $ac_status); } >/dev/null && {
31777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31778 test ! -s conftest.err
31780 ac_header_preproc=yes
31782 echo "$as_me: failed program was
:" >&5
31783 sed 's/^/| /' conftest.$ac_ext >&5
31785 ac_header_preproc=no
31788 rm -f conftest.err conftest.$ac_ext
31789 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
31790 echo "${ECHO_T}$ac_header_preproc" >&6; }
31792 # So? What about this header?
31793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31795 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
31796 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
31797 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
31798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
31799 ac_header_preproc=yes
31802 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
31803 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
31804 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
31805 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
31806 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
31807 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
31808 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
31809 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
31810 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
31811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
31812 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
31813 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
31815 ## ----------------------------------- ##
31816 ## Report this to llvmbugs@cs.uiuc.edu ##
31817 ## ----------------------------------- ##
31819 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
31822 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
31823 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
31824 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
31825 echo $ECHO_N "(cached
) $ECHO_C" >&6
31827 eval "$as_ac_Header=\
$ac_header_preproc"
31829 ac_res=`eval echo '${'$as_ac_Header'}'`
31830 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31831 echo "${ECHO_T}$ac_res" >&6; }
31834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31835 cat >>confdefs.h <<_ACEOF
31836 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
31844 for ac_func in getpagesize
31846 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
31847 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
31848 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
31849 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
31850 echo $ECHO_N "(cached
) $ECHO_C" >&6
31852 cat >conftest.$ac_ext <<_ACEOF
31855 cat confdefs.h >>conftest.$ac_ext
31856 cat >>conftest.$ac_ext <<_ACEOF
31857 /* end confdefs.h. */
31858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31860 #define $ac_func innocuous_$ac_func
31862 /* System header to define __stub macros and hopefully few prototypes,
31863 which can conflict with char $ac_func (); below.
31864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31865 <limits.h> exists even on freestanding compilers. */
31868 # include <limits.h>
31870 # include <assert.h>
31875 /* Override any GCC internal prototype to avoid an error.
31876 Use char because int might match the return type of a GCC
31877 builtin and then its argument prototype would still apply. */
31882 /* The GNU C library defines this for functions which it implements
31883 to always fail with ENOSYS. Some functions are actually named
31884 something starting with __ and the normal name is an alias. */
31885 #if defined __stub_$ac_func || defined __stub___$ac_func
31892 return $ac_func ();
31897 rm -f conftest.$ac_objext conftest$ac_exeext
31898 if { (ac_try="$ac_link"
31899 case "(($ac_try" in
31900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31901 *) ac_try_echo=$ac_try;;
31903 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
31904 (eval "$ac_link") 2>conftest.er1
31906 grep -v '^ *+' conftest.er1 >conftest.err
31908 cat conftest.err >&5
31909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31910 (exit $ac_status); } && {
31911 test -z "$ac_c_werror_flag" ||
31912 test ! -s conftest.err
31913 } && test -s conftest$ac_exeext &&
31914 $as_test_x conftest$ac_exeext; then
31915 eval "$as_ac_var=yes"
31917 echo "$as_me: failed program was
:" >&5
31918 sed 's/^/| /' conftest.$ac_ext >&5
31920 eval "$as_ac_var=no
"
31923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31924 conftest$ac_exeext conftest.$ac_ext
31926 ac_res=`eval echo '${'$as_ac_var'}'`
31927 { echo "$as_me:$LINENO: result
: $ac_res" >&5
31928 echo "${ECHO_T}$ac_res" >&6; }
31929 if test `eval echo '${'$as_ac_var'}'` = yes; then
31930 cat >>confdefs.h <<_ACEOF
31931 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
31937 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
31938 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
31939 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31940 echo $ECHO_N "(cached
) $ECHO_C" >&6
31942 if test "$cross_compiling" = yes; then
31943 ac_cv_func_mmap_fixed_mapped=no
31945 cat >conftest.$ac_ext <<_ACEOF
31948 cat confdefs.h >>conftest.$ac_ext
31949 cat >>conftest.$ac_ext <<_ACEOF
31950 /* end confdefs.h. */
31951 $ac_includes_default
31952 /* malloc might have been renamed as rpl_malloc. */
31955 /* Thanks to Mike Haertel and Jim Avera for this test.
31956 Here is a matrix of mmap possibilities:
31957 mmap private not fixed
31958 mmap private fixed at somewhere currently unmapped
31959 mmap private fixed at somewhere already mapped
31960 mmap shared not fixed
31961 mmap shared fixed at somewhere currently unmapped
31962 mmap shared fixed at somewhere already mapped
31963 For private mappings, we should verify that changes cannot be read()
31964 back from the file, nor mmap's back from the file at a different
31965 address. (There have been systems where private was not correctly
31966 implemented like the infamous i386 svr4.0, and systems where the
31967 VM page cache was not coherent with the file system buffer cache
31968 like early versions of FreeBSD and possibly contemporary NetBSD.)
31969 For shared mappings, we should conversely verify that changes get
31970 propagated back to all the places they're supposed to be.
31972 Grep wants private fixed already mapped.
31973 The main things grep needs to know about mmap are:
31974 * does it exist and is it safe to write into the mmap'd area
31975 * how to use it (BSD variants) */
31978 #include <sys/mman.h>
31980 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
31984 /* This mess was copied from the GNU getpagesize.h. */
31985 #ifndef HAVE_GETPAGESIZE
31986 /* Assume that all systems that can run configure have sys/param.h. */
31987 # ifndef HAVE_SYS_PARAM_H
31988 # define HAVE_SYS_PARAM_H 1
31991 # ifdef _SC_PAGESIZE
31992 # define getpagesize() sysconf(_SC_PAGESIZE)
31993 # else /* no _SC_PAGESIZE */
31994 # ifdef HAVE_SYS_PARAM_H
31995 # include <sys/param.h>
31996 # ifdef EXEC_PAGESIZE
31997 # define getpagesize() EXEC_PAGESIZE
31998 # else /* no EXEC_PAGESIZE */
32000 # define getpagesize() NBPG * CLSIZE
32003 # endif /* no CLSIZE */
32004 # else /* no NBPG */
32006 # define getpagesize() NBPC
32007 # else /* no NBPC */
32009 # define getpagesize() PAGESIZE
32010 # endif /* PAGESIZE */
32011 # endif /* no NBPC */
32012 # endif /* no NBPG */
32013 # endif /* no EXEC_PAGESIZE */
32014 # else /* no HAVE_SYS_PARAM_H */
32015 # define getpagesize() 8192 /* punt totally */
32016 # endif /* no HAVE_SYS_PARAM_H */
32017 # endif /* no _SC_PAGESIZE */
32019 #endif /* no HAVE_GETPAGESIZE */
32024 char *data, *data2, *data3;
32028 pagesize = getpagesize ();
32030 /* First, make a file with some known garbage in it. */
32031 data = (char *) malloc (pagesize);
32034 for (i = 0; i < pagesize; ++i)
32035 *(data + i) = rand ();
32037 fd = creat ("conftest.mmap
", 0600);
32040 if (write (fd, data, pagesize) != pagesize)
32044 /* Next, try to mmap the file at a fixed address which already has
32045 something else allocated at it. If we can, also make sure that
32046 we see the same garbage. */
32047 fd = open ("conftest.mmap
", O_RDWR);
32050 data2 = (char *) malloc (2 * pagesize);
32053 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
32054 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
32055 MAP_PRIVATE | MAP_FIXED, fd, 0L))
32057 for (i = 0; i < pagesize; ++i)
32058 if (*(data + i) != *(data2 + i))
32061 /* Finally, make sure that changes to the mapped area do not
32062 percolate back to the file as seen by read(). (This is a bug on
32063 some variants of i386 svr4.0.) */
32064 for (i = 0; i < pagesize; ++i)
32065 *(data2 + i) = *(data2 + i) + 1;
32066 data3 = (char *) malloc (pagesize);
32069 if (read (fd, data3, pagesize) != pagesize)
32071 for (i = 0; i < pagesize; ++i)
32072 if (*(data + i) != *(data3 + i))
32078 rm -f conftest$ac_exeext
32079 if { (ac_try="$ac_link"
32080 case "(($ac_try" in
32081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32082 *) ac_try_echo=$ac_try;;
32084 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32085 (eval "$ac_link") 2>&5
32087 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32089 { (case "(($ac_try" in
32090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32091 *) ac_try_echo=$ac_try;;
32093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32094 (eval "$ac_try") 2>&5
32096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32097 (exit $ac_status); }; }; then
32098 ac_cv_func_mmap_fixed_mapped=yes
32100 echo "$as_me: program exited with status
$ac_status" >&5
32101 echo "$as_me: failed program was
:" >&5
32102 sed 's/^/| /' conftest.$ac_ext >&5
32104 ( exit $ac_status )
32105 ac_cv_func_mmap_fixed_mapped=no
32107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32112 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
32113 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
32114 if test $ac_cv_func_mmap_fixed_mapped = yes; then
32116 cat >>confdefs.h <<\_ACEOF
32117 #define HAVE_MMAP 1
32121 rm -f conftest.mmap
32123 { echo "$as_me:$LINENO: checking
for mmap of files
" >&5
32124 echo $ECHO_N "checking
for mmap of files...
$ECHO_C" >&6; }
32125 if test "${ac_cv_func_mmap_file+set}" = set; then
32126 echo $ECHO_N "(cached
) $ECHO_C" >&6
32129 ac_cpp='$CPP $CPPFLAGS'
32130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32134 if test "$cross_compiling" = yes; then
32135 ac_cv_func_mmap_file=no
32137 cat >conftest.$ac_ext <<_ACEOF
32141 cat confdefs.h >>conftest.$ac_ext
32142 cat >>conftest.$ac_ext <<_ACEOF
32143 /* end confdefs.h. */
32145 #include <sys/types.h>
32146 #include <sys/mman.h>
32154 fd = creat ("foo
",0777);
32155 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
32157 return (fd != (int) MAP_FAILED);
32162 rm -f conftest$ac_exeext
32163 if { (ac_try="$ac_link"
32164 case "(($ac_try" in
32165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32166 *) ac_try_echo=$ac_try;;
32168 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32169 (eval "$ac_link") 2>&5
32171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32173 { (case "(($ac_try" in
32174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32175 *) ac_try_echo=$ac_try;;
32177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32178 (eval "$ac_try") 2>&5
32180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32181 (exit $ac_status); }; }; then
32182 ac_cv_func_mmap_file=yes
32184 echo "$as_me: program exited with status
$ac_status" >&5
32185 echo "$as_me: failed program was
:" >&5
32186 sed 's/^/| /' conftest.$ac_ext >&5
32188 ( exit $ac_status )
32189 ac_cv_func_mmap_file=no
32191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32196 ac_cpp='$CPP $CPPFLAGS'
32197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32203 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_file" >&5
32204 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
32205 if test "$ac_cv_func_mmap_file" = yes; then
32207 cat >>confdefs.h <<\_ACEOF
32208 #define HAVE_MMAP_FILE
32215 { echo "$as_me:$LINENO: checking
if /dev
/zero is needed
for mmap
" >&5
32216 echo $ECHO_N "checking
if /dev
/zero is needed
for mmap...
$ECHO_C" >&6; }
32217 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
32218 echo $ECHO_N "(cached
) $ECHO_C" >&6
32220 if test "$llvm_cv_os_type" = "Interix
" ; then
32221 ac_cv_need_dev_zero_for_mmap=yes
32223 ac_cv_need_dev_zero_for_mmap=no
32227 { echo "$as_me:$LINENO: result
: $ac_cv_need_dev_zero_for_mmap" >&5
32228 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
32229 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
32231 cat >>confdefs.h <<\_ACEOF
32232 #define NEED_DEV_ZERO_FOR_MMAP 1
32237 if test "$ac_cv_func_mmap_fixed_mapped" = "no
"
32239 { echo "$as_me:$LINENO: WARNING
: mmap
() of a fixed address required but not supported
" >&5
32240 echo "$as_me: WARNING
: mmap
() of a fixed address required but not supported
" >&2;}
32242 if test "$ac_cv_func_mmap_file" = "no
"
32244 { echo "$as_me:$LINENO: WARNING
: mmap
() of files required but not found
" >&5
32245 echo "$as_me: WARNING
: mmap
() of files required but not found
" >&2;}
32251 for ac_func in __dso_handle
32253 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
32254 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
32255 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
32256 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
32257 echo $ECHO_N "(cached
) $ECHO_C" >&6
32259 cat >conftest.$ac_ext <<_ACEOF
32262 cat confdefs.h >>conftest.$ac_ext
32263 cat >>conftest.$ac_ext <<_ACEOF
32264 /* end confdefs.h. */
32265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32267 #define $ac_func innocuous_$ac_func
32269 /* System header to define __stub macros and hopefully few prototypes,
32270 which can conflict with char $ac_func (); below.
32271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32272 <limits.h> exists even on freestanding compilers. */
32275 # include <limits.h>
32277 # include <assert.h>
32282 /* Override any GCC internal prototype to avoid an error.
32283 Use char because int might match the return type of a GCC
32284 builtin and then its argument prototype would still apply. */
32289 /* The GNU C library defines this for functions which it implements
32290 to always fail with ENOSYS. Some functions are actually named
32291 something starting with __ and the normal name is an alias. */
32292 #if defined __stub_$ac_func || defined __stub___$ac_func
32299 return $ac_func ();
32304 rm -f conftest.$ac_objext conftest$ac_exeext
32305 if { (ac_try="$ac_link"
32306 case "(($ac_try" in
32307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32308 *) ac_try_echo=$ac_try;;
32310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32311 (eval "$ac_link") 2>conftest.er1
32313 grep -v '^ *+' conftest.er1 >conftest.err
32315 cat conftest.err >&5
32316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32317 (exit $ac_status); } && {
32318 test -z "$ac_c_werror_flag" ||
32319 test ! -s conftest.err
32320 } && test -s conftest$ac_exeext &&
32321 $as_test_x conftest$ac_exeext; then
32322 eval "$as_ac_var=yes"
32324 echo "$as_me: failed program was
:" >&5
32325 sed 's/^/| /' conftest.$ac_ext >&5
32327 eval "$as_ac_var=no
"
32330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32331 conftest$ac_exeext conftest.$ac_ext
32333 ac_res=`eval echo '${'$as_ac_var'}'`
32334 { echo "$as_me:$LINENO: result
: $ac_res" >&5
32335 echo "${ECHO_T}$ac_res" >&6; }
32336 if test `eval echo '${'$as_ac_var'}'` = yes; then
32337 cat >>confdefs.h <<_ACEOF
32338 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
32345 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane
" >&5
32346 echo $ECHO_N "checking whether llvm-gcc is sane...
$ECHO_C" >&6; }
32347 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
32348 echo $ECHO_N "(cached
) $ECHO_C" >&6
32350 llvm_cv_llvmgcc_sanity="no
"
32351 if test -x "$LLVMGCC" ; then
32352 cp /dev/null conftest.c
32353 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
32354 grep 'target datalayout =' > /dev/null 2>&1
32355 if test $? -eq 0 ; then
32356 llvm_cv_llvmgcc_sanity="yes"
32361 { echo "$as_me:$LINENO: result
: $llvm_cv_llvmgcc_sanity" >&5
32362 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
32364 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
32365 { echo "$as_me:$LINENO: checking llvm-gcc component support
" >&5
32366 echo $ECHO_N "checking llvm-gcc component support...
$ECHO_C" >&6; }
32367 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
32368 LLVMCC1=$llvmcc1path
32370 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
32371 LLVMCC1PLUS=$llvmcc1pluspath
32373 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
32374 LLVMGCCDIR=$llvmgccdir
32376 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
32377 LLVMGCCLIBEXEC=$llvmgcclibexec
32379 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
32380 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
32381 LLVMGCC_VERSION=$llvmgccversion
32383 LLVMGCC_MAJVERS=$llvmgccmajvers
32385 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
32386 LLVMGCC_LANGS=$llvmgcclangs
32388 { echo "$as_me:$LINENO: result
: ok
" >&5
32389 echo "${ECHO_T}ok
" >&6; }
32392 SHLIBEXT=$libltdl_cv_shlibext
32395 # Translate the various configuration directories and other basic
32396 # information into substitutions that will end up in Makefile.config.in
32397 # that these configured values can be used by the makefiles
32398 if test "${prefix}" = "NONE
" ; then
32399 prefix="/usr
/local"
32401 eval LLVM_PREFIX="${prefix}";
32402 eval LLVM_BINDIR="${prefix}/bin
";
32403 eval LLVM_LIBDIR="${prefix}/lib
";
32404 eval LLVM_DATADIR="${prefix}/share
/llvm
";
32405 eval LLVM_DOCSDIR="${prefix}/docs
/llvm
";
32406 eval LLVM_ETCDIR="${prefix}/etc
/llvm
";
32407 eval LLVM_INCLUDEDIR="${prefix}/include
";
32408 eval LLVM_INFODIR="${prefix}/info
";
32409 eval LLVM_MANDIR="${prefix}/man
";
32410 LLVM_CONFIGTIME=`date`
32422 # Place the various directores into the config.h file as #defines so that we
32423 # can know about the installation paths within LLVM.
32425 cat >>confdefs.h <<_ACEOF
32426 #define LLVM_PREFIX "$LLVM_PREFIX"
32430 cat >>confdefs.h <<_ACEOF
32431 #define LLVM_BINDIR "$LLVM_BINDIR"
32435 cat >>confdefs.h <<_ACEOF
32436 #define LLVM_LIBDIR "$LLVM_LIBDIR"
32440 cat >>confdefs.h <<_ACEOF
32441 #define LLVM_DATADIR "$LLVM_DATADIR"
32445 cat >>confdefs.h <<_ACEOF
32446 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
32450 cat >>confdefs.h <<_ACEOF
32451 #define LLVM_ETCDIR "$LLVM_ETCDIR"
32455 cat >>confdefs.h <<_ACEOF
32456 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
32460 cat >>confdefs.h <<_ACEOF
32461 #define LLVM_INFODIR "$LLVM_INFODIR"
32465 cat >>confdefs.h <<_ACEOF
32466 #define LLVM_MANDIR "$LLVM_MANDIR"
32470 cat >>confdefs.h <<_ACEOF
32471 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
32475 cat >>confdefs.h <<_ACEOF
32476 #define LLVM_HOSTTRIPLE "$host"
32480 # Determine which bindings to build.
32481 if test "$BINDINGS_TO_BUILD" = auto ; then
32482 BINDINGS_TO_BUILD=""
32483 if test "x
$OCAMLC" != x -a "x
$OCAMLDEP" != x ; then
32484 BINDINGS_TO_BUILD="ocaml
$BINDINGS_TO_BUILD"
32487 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
32490 # This isn't really configurey, but it avoids having to repeat the list in
32495 # Do any work necessary to ensure that bindings have what they need.
32496 binding_prereqs_failed=0
32497 for a_binding in $BINDINGS_TO_BUILD ; do
32498 case "$a_binding" in
32500 if test "x
$OCAMLC" = x ; then
32501 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamlc not found. Try configure OCAMLC
=/path
/to
/ocamlc
" >&5
32502 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamlc not found. Try configure OCAMLC
=/path
/to
/ocamlc
" >&2;}
32503 binding_prereqs_failed=1
32505 if test "x
$OCAMLDEP" = x ; then
32506 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamldep not found. Try configure OCAMLDEP
=/path
/to
/ocamldep
" >&5
32507 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamldep not found. Try configure OCAMLDEP
=/path
/to
/ocamldep
" >&2;}
32508 binding_prereqs_failed=1
32510 if test "x
$OCAMLOPT" = x ; then
32511 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamlopt not found. Try configure OCAMLOPT
=/path
/to
/ocamlopt
" >&5
32512 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamlopt not found. Try configure OCAMLOPT
=/path
/to
/ocamlopt
" >&2;}
32514 if test "x
$with_ocaml_libdir" != xauto ; then
32515 OCAML_LIBDIR=$with_ocaml_libdir
32518 ocaml_stdlib="`"$OCAMLC" -where`"
32519 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~
"
32521 # ocaml stdlib is beneath our prefix; use stdlib
32522 OCAML_LIBDIR=$ocaml_stdlib
32525 # ocaml stdlib is outside our prefix; use libdir/ocaml
32526 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
32533 if test "$binding_prereqs_failed" = 1 ; then
32534 { { echo "$as_me:$LINENO: error
: Prequisites
for bindings not satisfied. Fix them or use configure
--disable-bindings.
" >&5
32535 echo "$as_me: error
: Prequisites
for bindings not satisfied. Fix them or use configure
--disable-bindings.
" >&2;}
32536 { (exit 1); exit 1; }; }
32539 { echo "$as_me:$LINENO: checking
for compiler
-fvisibility-inlines-hidden option
" >&5
32540 echo $ECHO_N "checking
for compiler
-fvisibility-inlines-hidden option...
$ECHO_C" >&6; }
32541 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
32542 echo $ECHO_N "(cached
) $ECHO_C" >&6
32545 ac_cpp='$CXXCPP $CPPFLAGS'
32546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32550 oldcxxflags="$CXXFLAGS"
32551 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
32552 cat >conftest.$ac_ext <<_ACEOF
32555 cat confdefs.h >>conftest.$ac_ext
32556 cat >>conftest.$ac_ext <<_ACEOF
32557 /* end confdefs.h. */
32567 rm -f conftest.$ac_objext
32568 if { (ac_try="$ac_compile"
32569 case "(($ac_try" in
32570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32571 *) ac_try_echo=$ac_try;;
32573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
32574 (eval "$ac_compile") 2>conftest.er1
32576 grep -v '^ *+' conftest.er1 >conftest.err
32578 cat conftest.err >&5
32579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
32580 (exit $ac_status); } && {
32581 test -z "$ac_cxx_werror_flag" ||
32582 test ! -s conftest.err
32583 } && test -s conftest.$ac_objext; then
32584 llvm_cv_cxx_visibility_inlines_hidden=yes
32586 echo "$as_me: failed program was
:" >&5
32587 sed 's/^/| /' conftest.$ac_ext >&5
32589 llvm_cv_cxx_visibility_inlines_hidden=no
32592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32593 CXXFLAGS="$oldcxxflags"
32595 ac_cpp='$CPP $CPPFLAGS'
32596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32602 { echo "$as_me:$LINENO: result
: $llvm_cv_cxx_visibility_inlines_hidden" >&5
32603 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
32604 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
32605 ENABLE_VISIBILITY_INLINES_HIDDEN=1
32608 ENABLE_VISIBILITY_INLINES_HIDDEN=0
32614 ac_config_headers="$ac_config_headers include
/llvm
/Config
/config.h
"
32616 ac_config_headers="$ac_config_headers include
/llvm
/Support
/DataTypes.h
"
32618 ac_config_headers="$ac_config_headers include
/llvm
/ADT
/hash_map.h
"
32620 ac_config_headers="$ac_config_headers include
/llvm
/ADT
/hash_set.h
"
32622 ac_config_headers="$ac_config_headers include
/llvm
/ADT
/iterator.h
"
32625 ac_config_files="$ac_config_files Makefile.config
"
32628 ac_config_files="$ac_config_files llvm.spec
"
32631 ac_config_files="$ac_config_files docs
/doxygen.cfg
"
32634 ac_config_files="$ac_config_files tools
/llvm-config
/llvm-config.
in"
32637 ac_config_commands="$ac_config_commands setup
"
32639 ac_config_commands="$ac_config_commands Makefile
"
32642 ac_config_commands="$ac_config_commands Makefile.common
"
32645 ac_config_commands="$ac_config_commands examples
/Makefile
"
32648 ac_config_commands="$ac_config_commands lib
/Makefile
"
32651 ac_config_commands="$ac_config_commands runtime
/Makefile
"
32654 ac_config_commands="$ac_config_commands test
/Makefile
"
32657 ac_config_commands="$ac_config_commands test
/Makefile.tests
"
32660 ac_config_commands="$ac_config_commands unittests
/Makefile
"
32663 ac_config_commands="$ac_config_commands tools
/Makefile
"
32666 ac_config_commands="$ac_config_commands utils
/Makefile
"
32669 ac_config_commands="$ac_config_commands projects
/Makefile
"
32672 ac_config_commands="$ac_config_commands bindings
/Makefile
"
32675 ac_config_commands="$ac_config_commands bindings
/ocaml
/Makefile.ocaml
"
32679 cat >confcache <<\_ACEOF
32680 # This file is a shell script that caches the results of configure
32681 # tests run on this system so they can be shared between configure
32682 # scripts and configure runs, see configure's option --config-cache.
32683 # It is not useful on other systems. If it contains results you don't
32684 # want to keep, you may remove or edit it.
32686 # config.status only pays attention to the cache file if you give it
32687 # the --recheck option to rerun configure.
32689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32691 # following values.
32695 # The following way of writing the cache mishandles newlines in values,
32696 # but we know of no workaround that is simple, portable, and efficient.
32697 # So, we kill variables containing newlines.
32698 # Ultrix sh set writes to stderr and can't be redirected directly,
32699 # and sets the high bit in the cache file unless we assign to the vars.
32701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32702 eval ac_val=\$$ac_var
32706 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
32707 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
32710 _ | IFS | as_nl) ;; #(
32711 *) $as_unset $ac_var ;;
32717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32718 *${as_nl}ac_space=\ *)
32719 # `set' does not quote correctly, so add quotes (double-quote
32720 # substitution turns \\\\ into \\, and sed turns \\ into \).
32723 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
32726 # `set' quotes correctly as required by POSIX, so do not add quotes.
32727 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
32736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32740 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32741 if test -w "$cache_file"; then
32742 test "x
$cache_file" != "x
/dev
/null
" &&
32743 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
32744 echo "$as_me: updating cache
$cache_file" >&6;}
32745 cat confcache >$cache_file
32747 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
32748 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
32753 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
32754 # Let make expand exec_prefix.
32755 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
32757 DEFS=-DHAVE_CONFIG_H
32761 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
32762 # 1. Remove the extension, and $U if already installed.
32763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32764 ac_i=`echo "$ac_i" | sed "$ac_script"`
32765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32766 # will be set to the directory where LIBOBJS objects are built.
32767 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
32768 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
32770 LIBOBJS=$ac_libobjs
32772 LTLIBOBJS=$ac_ltlibobjs
32775 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32776 { { echo "$as_me:$LINENO: error
: conditional
\"INSTALL_LTDL
\" was never defined.
32777 Usually this means the macro was only invoked conditionally.
" >&5
32778 echo "$as_me: error
: conditional
\"INSTALL_LTDL
\" was never defined.
32779 Usually this means the macro was only invoked conditionally.
" >&2;}
32780 { (exit 1); exit 1; }; }
32782 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32783 { { echo "$as_me:$LINENO: error
: conditional
\"CONVENIENCE_LTDL
\" was never defined.
32784 Usually this means the macro was only invoked conditionally.
" >&5
32785 echo "$as_me: error
: conditional
\"CONVENIENCE_LTDL
\" was never defined.
32786 Usually this means the macro was only invoked conditionally.
" >&2;}
32787 { (exit 1); exit 1; }; }
32790 : ${CONFIG_STATUS=./config.status}
32791 ac_clean_files_save=$ac_clean_files
32792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32793 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
32794 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
32795 cat >$CONFIG_STATUS <<_ACEOF
32797 # Generated by $as_me.
32798 # Run this file to recreate the current configuration.
32799 # Compiler output produced by configure, useful for debugging
32800 # configure, is in config.log if it exists.
32803 ac_cs_recheck=false
32805 SHELL=\${CONFIG_SHELL-$SHELL}
32808 cat >>$CONFIG_STATUS <<\_ACEOF
32809 ## --------------------- ##
32810 ## M4sh Initialization. ##
32811 ## --------------------- ##
32813 # Be more Bourne compatible
32814 DUALCASE=1; export DUALCASE # for MKS sh
32815 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32818 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32819 # is contrary to our usage. Disable this feature.
32820 alias -g '${1+"$@"}'='"$@
"'
32821 setopt NO_GLOB_SUBST
32823 case `(set -o) 2>/dev/null` in
32824 *posix*) set -o posix ;;
32833 # Avoid depending upon Character Ranges.
32834 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32835 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32836 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32837 as_cr_digits='0123456789'
32838 as_cr_alnum=$as_cr_Letters$as_cr_digits
32840 # The user is always right.
32841 if test "${PATH_SEPARATOR+set}" != set; then
32842 echo "#! /bin/sh" >conf$$.sh
32843 echo "exit 0" >>conf$$.sh
32845 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
32853 # Support unset when possible.
32854 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32862 # We need space, tab and new line, in precisely that order. Quoting is
32863 # there to prevent editors from complaining about space-tab.
32864 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32865 # splitting by setting IFS to empty value.)
32870 # Find who we are. Look in the path if we contain no directory separator.
32872 *[\\/]* ) as_myself
=$0 ;;
32873 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
32874 for as_dir
in $PATH
32877 test -z "$as_dir" && as_dir
=.
32878 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
32884 # We did not find ourselves, most probably we were run as `sh COMMAND'
32885 # in which case we are not to be found in the path.
32886 if test "x$as_myself" = x
; then
32889 if test ! -f "$as_myself"; then
32890 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32891 { (exit 1); exit 1; }
32894 # Work around bugs in pre-3.0 UWIN ksh.
32895 for as_var
in ENV MAIL MAILPATH
32896 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
32904 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32905 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32906 LC_TELEPHONE LC_TIME
32908 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32909 eval $as_var=C
; export $as_var
32911 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
32915 # Required to use basename.
32916 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
32917 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
32923 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32924 as_basename
=basename
32930 # Name of the executable.
32931 as_me
=`$as_basename -- "$0" ||
32932 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32933 X"$0" : 'X\(//\)$' \| \
32934 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32936 sed '/^.*\/\([^/][^/]*\)\/*$/{
32955 as_lineno_1
=$LINENO
32956 as_lineno_2
=$LINENO
32957 test "x$as_lineno_1" != "x$as_lineno_2" &&
32958 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
32960 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32961 # uniformly replaced by the line number. The first 'sed' inserts a
32962 # line-number line after each line using $LINENO; the second 'sed'
32963 # does the real work. The second script uses 'N' to pair each
32964 # line-number line with the line containing $LINENO, and appends
32965 # trailing '-' during substitution so that $LINENO is not a special
32966 # case at line end.
32967 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32968 # scripts with optimization help from Paolo Bonzini. Blame Lee
32969 # E. McMahon (1931-1989) for sed's syntax. :-)
32981 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32984 ' >$as_me.lineno
&&
32985 chmod +x
"$as_me.lineno" ||
32986 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32987 { (exit 1); exit 1; }; }
32989 # Don't try to exec as it changes $[0], causing all sort of problems
32990 # (the dirname of $[0] is not the place where we might find the
32991 # original and so on. Autoconf is especially sensitive to this).
32992 .
"./$as_me.lineno"
32993 # Exit status is that of the last command.
32998 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
33004 ECHO_C
= ECHO_N
= ECHO_T
=
33005 case `echo -n x` in
33007 case `echo 'x\c'` in
33008 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
33015 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33016 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33022 rm -f conf$$ conf$$.exe conf$$.
file
33023 if test -d conf$$.dir
; then
33024 rm -f conf$$.dir
/conf$$.
file
33030 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33032 # ... but there are two gotchas:
33033 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33034 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33035 # In both cases, we have to default to `cp -p'.
33036 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33038 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33043 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33044 rmdir conf$$.dir
2>/dev
/null
33046 if mkdir
-p .
2>/dev
/null
; then
33049 test -d .
/-p && rmdir .
/-p
33053 if test -x / >/dev
/null
2>&1; then
33054 as_test_x
='test -x'
33056 if ls -dL / >/dev
/null
2>&1; then
33063 if test -d "$1"; then
33069 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33070 ???[sx]*):;;*)false;;esac;fi
33074 as_executable_p
=$as_test_x
33076 # Sed expression to map a string onto a valid CPP name.
33077 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33079 # Sed expression to map a string onto a valid variable name.
33080 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33085 # Save the log message, to keep $[0] and so on meaningful, and to
33086 # report actual input values of CONFIG_FILES etc. instead of their
33087 # values after options handling.
33089 This file was extended by llvm $as_me 2.5svn, which was
33090 generated by GNU Autoconf 2.61. Invocation command line was
33092 CONFIG_FILES = $CONFIG_FILES
33093 CONFIG_HEADERS = $CONFIG_HEADERS
33094 CONFIG_LINKS = $CONFIG_LINKS
33095 CONFIG_COMMANDS = $CONFIG_COMMANDS
33098 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33103 cat >>$CONFIG_STATUS <<_ACEOF
33104 # Files that config.status was made for.
33105 config_files="$ac_config_files"
33106 config_headers="$ac_config_headers"
33107 config_commands="$ac_config_commands"
33111 cat >>$CONFIG_STATUS <<\_ACEOF
33113 \`$as_me' instantiates files from templates according to the
33114 current configuration.
33116 Usage: $0 [OPTIONS] [FILE]...
33118 -h, --help print this help, then exit
33119 -V, --version print version number and configuration settings, then exit
33120 -q, --quiet do not print progress messages
33121 -d, --debug don't remove temporary files
33122 --recheck update $as_me by reconfiguring in the same conditions
33123 --file=FILE[:TEMPLATE]
33124 instantiate the configuration file FILE
33125 --header=FILE[:TEMPLATE]
33126 instantiate the configuration header FILE
33128 Configuration files:
33131 Configuration headers:
33134 Configuration commands:
33137 Report bugs to <bug-autoconf@gnu.org>."
33140 cat >>$CONFIG_STATUS <<_ACEOF
33142 llvm config.status 2.5svn
33143 configured by $0, generated by GNU Autoconf 2.61,
33144 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33146 Copyright (C) 2006 Free Software Foundation, Inc.
33147 This config.status script is free software; the Free Software Foundation
33148 gives unlimited permission to copy, distribute and modify it."
33155 cat >>$CONFIG_STATUS <<\_ACEOF
33156 # If no file are specified by the user, then we need to provide default
33157 # value. By we need to know if files were specified by the user.
33163 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33164 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33175 # Handling of the options.
33176 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33178 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33179 echo "$ac_cs_version"; exit ;;
33180 --debug |
--debu |
--deb |
--de |
--d |
-d )
33182 --file |
--fil |
--fi |
--f )
33184 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
33185 ac_need_defaults
=false
;;
33186 --header |
--heade |
--head |
--hea )
33188 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
33189 ac_need_defaults
=false
;;
33191 # Conflict between --help and --header
33192 { echo "$as_me: error: ambiguous option: $1
33193 Try \`$0 --help' for more information." >&2
33194 { (exit 1); exit 1; }; };;
33195 --help |
--hel |
-h )
33196 echo "$ac_cs_usage"; exit ;;
33197 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33198 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33201 # This is an error.
33202 -*) { echo "$as_me: error: unrecognized option: $1
33203 Try \`$0 --help' for more information." >&2
33204 { (exit 1); exit 1; }; } ;;
33206 *) ac_config_targets
="$ac_config_targets $1"
33207 ac_need_defaults
=false
;;
33213 ac_configure_extra_args
=
33215 if $ac_cs_silent; then
33217 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33221 cat >>$CONFIG_STATUS <<_ACEOF
33222 if \$ac_cs_recheck; then
33223 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33224 CONFIG_SHELL=$SHELL
33225 export CONFIG_SHELL
33226 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33230 cat >>$CONFIG_STATUS <<\_ACEOF
33234 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33235 ## Running $as_me. ##
33241 cat >>$CONFIG_STATUS <<_ACEOF
33245 llvm_src="${srcdir}"
33249 cat >>$CONFIG_STATUS <<\_ACEOF
33251 # Handling of arguments.
33252 for ac_config_target
in $ac_config_targets
33254 case $ac_config_target in
33255 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
33256 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
33257 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
33258 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
33259 "include/llvm/ADT/iterator.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
33260 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
33261 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
33262 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
33263 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
33264 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
33265 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
33266 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
33267 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
33268 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
33269 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
33270 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
33271 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
33272 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
33273 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
33274 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
33275 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
33276 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
33277 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
33279 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33280 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33281 { (exit 1); exit 1; }; };;
33286 # If the user did not use the arguments to specify the items to instantiate,
33287 # then the envvar interface is used. Set only those that are not.
33288 # We use the long form for the default assignment because of an extremely
33289 # bizarre bug on SunOS 4.1.3.
33290 if $ac_need_defaults; then
33291 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33292 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33293 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33296 # Have a temporary directory for convenience. Make it in the build tree
33297 # simply because there is no reason against having it here, and in addition,
33298 # creating and moving files from /tmp can sometimes cause problems.
33299 # Hook for its removal unless debugging.
33300 # Note that there is a small window in which the directory will not be cleaned:
33301 # after its creation but before its name has been assigned to `$tmp'.
33305 trap 'exit_status=$?
33306 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33308 trap '{ (exit 1); exit 1; }' 1 2 13 15
33310 # Create a (secure) tmp directory for tmp files.
33313 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33314 test -n "$tmp" && test -d "$tmp"
33317 tmp
=.
/conf$$
-$RANDOM
33318 (umask 077 && mkdir
"$tmp")
33321 echo "$me: cannot create a temporary directory in ." >&2
33322 { (exit 1); exit 1; }
33326 # Set up the sed scripts for CONFIG_FILES section.
33329 # No need to generate the scripts if there are no CONFIG_FILES.
33330 # This happens for instance when ./config.status config.h
33331 if test -n "$CONFIG_FILES"; then
33338 for ac_last_try
in false false false false false
:; do
33339 cat >conf$
$subs.
sed <<_ACEOF
33340 SHELL!$SHELL$ac_delim
33341 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
33342 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
33343 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
33344 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
33345 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
33346 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
33347 exec_prefix!$exec_prefix$ac_delim
33348 prefix!$prefix$ac_delim
33349 program_transform_name!$program_transform_name$ac_delim
33350 bindir!$bindir$ac_delim
33351 sbindir!$sbindir$ac_delim
33352 libexecdir!$libexecdir$ac_delim
33353 datarootdir!$datarootdir$ac_delim
33354 datadir!$datadir$ac_delim
33355 sysconfdir!$sysconfdir$ac_delim
33356 sharedstatedir!$sharedstatedir$ac_delim
33357 localstatedir!$localstatedir$ac_delim
33358 includedir!$includedir$ac_delim
33359 oldincludedir!$oldincludedir$ac_delim
33360 docdir!$docdir$ac_delim
33361 infodir!$infodir$ac_delim
33362 htmldir!$htmldir$ac_delim
33363 dvidir!$dvidir$ac_delim
33364 pdfdir!$pdfdir$ac_delim
33365 psdir!$psdir$ac_delim
33366 libdir!$libdir$ac_delim
33367 localedir!$localedir$ac_delim
33368 mandir!$mandir$ac_delim
33369 DEFS!$DEFS$ac_delim
33370 ECHO_C!$ECHO_C$ac_delim
33371 ECHO_N!$ECHO_N$ac_delim
33372 ECHO_T!$ECHO_T$ac_delim
33373 LIBS!$LIBS$ac_delim
33374 build_alias!$build_alias$ac_delim
33375 host_alias!$host_alias$ac_delim
33376 target_alias!$target_alias$ac_delim
33377 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
33378 subdirs!$subdirs$ac_delim
33379 build!$build$ac_delim
33380 build_cpu!$build_cpu$ac_delim
33381 build_vendor!$build_vendor$ac_delim
33382 build_os!$build_os$ac_delim
33383 host!$host$ac_delim
33384 host_cpu!$host_cpu$ac_delim
33385 host_vendor!$host_vendor$ac_delim
33386 host_os!$host_os$ac_delim
33387 target!$target$ac_delim
33388 target_cpu!$target_cpu$ac_delim
33389 target_vendor!$target_vendor$ac_delim
33390 target_os!$target_os$ac_delim
33392 LINKALL!$LINKALL$ac_delim
33393 NOLINKALL!$NOLINKALL$ac_delim
33394 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
33395 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
33396 ARCH!$ARCH$ac_delim
33397 ENDIAN!$ENDIAN$ac_delim
33399 CFLAGS!$CFLAGS$ac_delim
33400 LDFLAGS!$LDFLAGS$ac_delim
33401 CPPFLAGS!$CPPFLAGS$ac_delim
33402 ac_ct_CC!$ac_ct_CC$ac_delim
33403 EXEEXT!$EXEEXT$ac_delim
33404 OBJEXT!$OBJEXT$ac_delim
33406 GREP!$GREP$ac_delim
33407 EGREP!$EGREP$ac_delim
33408 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
33409 BUILD_CC!$BUILD_CC$ac_delim
33410 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
33411 BUILD_CXX!$BUILD_CXX$ac_delim
33412 CVSBUILD!$CVSBUILD$ac_delim
33413 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
33414 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
33415 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
33416 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
33417 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
33419 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
33420 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
33421 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
33422 ENABLE_PIC!$ENABLE_PIC$ac_delim
33423 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
33424 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
33425 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
33427 CXXFLAGS!$CXXFLAGS$ac_delim
33428 ac_ct_CXX!$ac_ct_CXX$ac_delim
33430 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
33431 LEXLIB!$LEXLIB$ac_delim
33432 FLEX!$FLEX$ac_delim
33433 YACC!$YACC$ac_delim
33434 YFLAGS!$YFLAGS$ac_delim
33435 BISON!$BISON$ac_delim
33439 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33441 elif $ac_last_try; then
33442 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33443 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33444 { (exit 1); exit 1; }; }
33446 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
33450 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33451 if test -n "$ac_eof"; then
33452 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
33453 ac_eof
=`expr $ac_eof + 1`
33456 cat >>$CONFIG_STATUS <<_ACEOF
33457 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33461 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33462 s/^/s,@/; s/!/@,|#_!!_#|/
33465 s/'"$ac_delim"'$/,g/; t
33467 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33468 ' >>$CONFIG_STATUS <conf$
$subs.
sed
33469 rm -f conf$
$subs.
sed
33470 cat >>$CONFIG_STATUS <<_ACEOF
33476 for ac_last_try
in false false false false false
:; do
33477 cat >conf$
$subs.
sed <<_ACEOF
33478 ifGNUmake!$ifGNUmake$ac_delim
33479 LN_S!$LN_S$ac_delim
33482 DATE!$DATE$ac_delim
33483 FIND!$FIND$ac_delim
33484 MKDIR!$MKDIR$ac_delim
33486 RANLIB!$RANLIB$ac_delim
33490 BINPWD!$BINPWD$ac_delim
33491 GRAPHVIZ!$GRAPHVIZ$ac_delim
33494 DOTTY!$DOTTY$ac_delim
33495 PERL!$PERL$ac_delim
33496 HAVE_PERL!$HAVE_PERL$ac_delim
33497 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
33498 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
33499 INSTALL_DATA!$INSTALL_DATA$ac_delim
33500 BZIP2!$BZIP2$ac_delim
33501 DOXYGEN!$DOXYGEN$ac_delim
33502 GROFF!$GROFF$ac_delim
33503 GZIP!$GZIP$ac_delim
33504 POD2HTML!$POD2HTML$ac_delim
33505 POD2MAN!$POD2MAN$ac_delim
33506 RUNTEST!$RUNTEST$ac_delim
33507 TCLSH!$TCLSH$ac_delim
33509 OCAMLC!$OCAMLC$ac_delim
33510 OCAMLOPT!$OCAMLOPT$ac_delim
33511 OCAMLDEP!$OCAMLDEP$ac_delim
33512 OCAMLDOC!$OCAMLDOC$ac_delim
33514 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
33515 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
33516 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
33517 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
33518 LIBADD_DL!$LIBADD_DL$ac_delim
33519 ECHO!$ECHO$ac_delim
33521 STRIP!$STRIP$ac_delim
33522 CXXCPP!$CXXCPP$ac_delim
33524 FFLAGS!$FFLAGS$ac_delim
33525 ac_ct_F77!$ac_ct_F77$ac_delim
33526 LIBTOOL!$LIBTOOL$ac_delim
33527 LLVMGCC!$LLVMGCC$ac_delim
33528 LLVMGXX!$LLVMGXX$ac_delim
33529 USE_UDIS86!$USE_UDIS86$ac_delim
33530 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
33531 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
33532 ALLOCA!$ALLOCA$ac_delim
33533 MMAP_FILE!$MMAP_FILE$ac_delim
33534 LLVMCC1!$LLVMCC1$ac_delim
33535 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
33536 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
33537 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
33538 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
33539 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
33540 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
33541 SHLIBEXT!$SHLIBEXT$ac_delim
33542 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
33543 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
33544 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
33545 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
33546 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
33547 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
33548 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
33549 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
33550 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
33551 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
33552 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
33553 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
33554 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
33555 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
33556 LIBOBJS!$LIBOBJS$ac_delim
33557 LTLIBOBJS!$LTLIBOBJS$ac_delim
33560 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
33562 elif $ac_last_try; then
33563 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33564 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33565 { (exit 1); exit 1; }; }
33567 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
33571 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33572 if test -n "$ac_eof"; then
33573 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
33574 ac_eof
=`expr $ac_eof + 1`
33577 cat >>$CONFIG_STATUS <<_ACEOF
33578 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
33579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
33582 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33583 s/^/s,@/; s/!/@,|#_!!_#|/
33586 s/'"$ac_delim"'$/,g/; t
33588 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33589 ' >>$CONFIG_STATUS <conf$
$subs.
sed
33590 rm -f conf$
$subs.
sed
33591 cat >>$CONFIG_STATUS <<_ACEOF
33598 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33599 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33600 # trailing colons and then remove the whole line if VPATH becomes empty
33601 # (actually we leave an empty line to preserve line numbers).
33602 if test "x$srcdir" = x.
; then
33603 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
33604 s/:*\$(srcdir):*/:/
33605 s/:*\${srcdir}:*/:/
33607 s/^\([^=]*=[ ]*\):*/\1/
33613 cat >>$CONFIG_STATUS <<\_ACEOF
33614 fi # test -n "$CONFIG_FILES"
33617 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
33620 :[FHLC
]) ac_mode
=$ac_tag; continue;;
33622 case $ac_mode$ac_tag in
33624 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33625 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33626 { (exit 1); exit 1; }; };;
33627 :[FH
]-) ac_tag
=-:-;;
33628 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
33645 -) ac_f
="$tmp/stdin";;
33646 *) # Look for the file first in the build tree, then in the source tree
33647 # (if the path is not absolute). The absolute path cannot be DOS-style,
33648 # because $ac_f cannot contain `:'.
33652 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
33654 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33655 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33656 { (exit 1); exit 1; }; };;
33658 ac_file_inputs
="$ac_file_inputs $ac_f"
33661 # Let's still pretend it is `configure' which instantiates (i.e., don't
33662 # use $as_me), people would be surprised to read:
33663 # /* config.h. Generated by config.status. */
33664 configure_input
="Generated from "`IFS=:
33665 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33666 if test x
"$ac_file" != x-
; then
33667 configure_input
="$ac_file. $configure_input"
33668 { echo "$as_me:$LINENO: creating $ac_file" >&5
33669 echo "$as_me: creating $ac_file" >&6;}
33673 *:-:* |
*:-) cat >"$tmp/stdin";;
33678 ac_dir
=`$as_dirname -- "$ac_file" ||
33679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33680 X"$ac_file" : 'X\(//\)[^/]' \| \
33681 X"$ac_file" : 'X\(//\)$' \| \
33682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33688 /^X\(\/\/\)[^/].*/{
33703 -*) as_dir
=.
/$as_dir;;
33705 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
33709 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33710 *) as_qdir
=$as_dir;;
33712 as_dirs
="'$as_qdir' $as_dirs"
33713 as_dir
=`$as_dirname -- "$as_dir" ||
33714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33715 X"$as_dir" : 'X\(//\)[^/]' \| \
33716 X"$as_dir" : 'X\(//\)$' \| \
33717 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33723 /^X\(\/\/\)[^/].*/{
33736 test -d "$as_dir" && break
33738 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
33739 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33740 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33741 { (exit 1); exit 1; }; }; }
33745 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33747 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33748 # A ".." for each directory in $ac_dir_suffix.
33749 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33750 case $ac_top_builddir_sub in
33751 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33752 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
33755 ac_abs_top_builddir
=$ac_pwd
33756 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
33757 # for backward compatibility:
33758 ac_top_builddir
=$ac_top_build_prefix
33761 .
) # We are building in place.
33763 ac_top_srcdir
=$ac_top_builddir_sub
33764 ac_abs_top_srcdir
=$ac_pwd ;;
33765 [\\/]* | ?
:[\\/]* ) # Absolute name.
33766 ac_srcdir
=$srcdir$ac_dir_suffix;
33767 ac_top_srcdir
=$srcdir
33768 ac_abs_top_srcdir
=$srcdir ;;
33769 *) # Relative name.
33770 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
33771 ac_top_srcdir
=$ac_top_build_prefix$srcdir
33772 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
33774 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
33784 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
33785 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
33789 cat >>$CONFIG_STATUS <<\_ACEOF
33790 # If the template does not know about datarootdir, expand it.
33791 # FIXME: This hack should be removed a few years after 2.60.
33792 ac_datarootdir_hack
=; ac_datarootdir_seen
=
33794 case `sed -n '/datarootdir/ {
33803 ' $ac_file_inputs` in
33804 *datarootdir
*) ac_datarootdir_seen
=yes;;
33805 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
33806 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33807 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33809 cat >>$CONFIG_STATUS <<_ACEOF
33810 ac_datarootdir_hack='
33811 s&@datadir@&$datadir&g
33812 s&@docdir@&$docdir&g
33813 s&@infodir@&$infodir&g
33814 s&@localedir@&$localedir&g
33815 s&@mandir@&$mandir&g
33816 s&\\\${datarootdir}&$datarootdir&g' ;;
33820 # Neutralize VPATH when `$srcdir' = `.'.
33821 # Shell code in configure.ac might set extrasub.
33822 # FIXME: do we really want to maintain this feature?
33823 cat >>$CONFIG_STATUS <<_ACEOF
33827 cat >>$CONFIG_STATUS <<\_ACEOF
33829 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
33830 s
&@configure_input@
&$configure_input&;t t
33831 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
33832 s
&@srcdir@
&$ac_srcdir&;t t
33833 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
33834 s
&@top_srcdir@
&$ac_top_srcdir&;t t
33835 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
33836 s
&@builddir@
&$ac_builddir&;t t
33837 s
&@abs_builddir@
&$ac_abs_builddir&;t t
33838 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
33839 s
&@INSTALL@
&$ac_INSTALL&;t t
33840 $ac_datarootdir_hack
33841 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
33843 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33844 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
33845 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
33846 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
33847 which seems to be undefined. Please make sure it is defined." >&5
33848 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
33849 which seems to be undefined. Please make sure it is defined." >&2;}
33853 -) cat "$tmp/out"; rm -f "$tmp/out";;
33854 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33863 # Transform confdefs.h into a sed script `conftest.defines', that
33864 # substitutes the proper values into config.h.in to produce config.h.
33865 rm -f conftest.defines conftest.
tail
33866 # First, append a space to every undef/define line, to ease matching.
33867 echo 's/$/ /' >conftest.defines
33868 # Then, protect against being on the right side of a sed subst, or in
33869 # an unquoted here document, in config.status. If some macros were
33870 # called several times there might be several #defines for the same
33871 # symbol, which is useless. But do not sort them, since the last
33872 # AC_DEFINE must be honored.
33873 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
33874 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33875 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33876 # PARAMS is the parameter list in the macro definition--in most cases, it's
33877 # just an empty string.
33878 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33879 ac_dB
='\\)[ (].*,\\1define\\2'
33887 s/^[ ]*#[ ]*define[ ][ ]*//
33892 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33893 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33894 ' >>conftest.defines
33896 # Remove the space that was appended to ease matching.
33897 # Then replace #undef with comments. This is necessary, for
33898 # example, in the case of _POSIX_SOURCE, which is predefined and required
33899 # on some systems where configure will not decide to define it.
33900 # (The regexp can be short, since the line contains either #define or #undef.)
33902 s,^[ #]*u.*,/* & */,' >>conftest.defines
33904 # Break up conftest.defines:
33905 ac_max_sed_lines
=50
33907 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33908 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33909 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33911 ac_in
='$ac_file_inputs'
33912 ac_out
='"$tmp/out1"'
33913 ac_nxt
='"$tmp/out2"'
33917 # Write a here document:
33918 cat >>$CONFIG_STATUS <<_ACEOF
33919 # First, check the format of the line:
33920 cat >"\$tmp/defines.sed" <<\\CEOF
33921 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33922 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33926 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
33928 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33929 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
33930 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
33931 grep . conftest.
tail >/dev
/null ||
break
33932 rm -f conftest.defines
33933 mv conftest.
tail conftest.defines
33935 rm -f conftest.defines conftest.
tail
33937 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33938 cat >>$CONFIG_STATUS <<\_ACEOF
33939 if test x
"$ac_file" != x-
; then
33940 echo "/* $configure_input */" >"$tmp/config.h"
33941 cat "$ac_result" >>"$tmp/config.h"
33942 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
33943 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33944 echo "$as_me: $ac_file is unchanged" >&6;}
33947 mv "$tmp/config.h" $ac_file
33950 echo "/* $configure_input */"
33956 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33957 echo "$as_me: executing $ac_file commands" >&6;}
33962 case $ac_file$ac_mode in
33963 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
33964 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile
;;
33965 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
33966 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common
;;
33967 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
33968 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
33969 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
33970 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
33971 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
33972 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
33973 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
33974 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile test
/Makefile
;;
33975 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
33976 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
33977 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
33978 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
33979 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
33980 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
33981 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
33982 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
33983 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
33984 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
33985 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
33986 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
33987 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
33988 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
33994 { (exit 0); exit 0; }
33996 chmod +x
$CONFIG_STATUS
33997 ac_clean_files
=$ac_clean_files_save
34000 # configure is writing to config.log, and then calls config.status.
34001 # config.status does its own redirection, appending to config.log.
34002 # Unfortunately, on DOS this fails, as config.log is still kept open
34003 # by configure, so config.status won't be able to write to it; its
34004 # output is simply discarded. So we exec the FD to /dev/null,
34005 # effectively closing config.log, so it can be properly (re)opened and
34006 # appended to by config.status. When coming back to configure, we
34007 # need to make the FD available again.
34008 if test "$no_create" != yes; then
34010 ac_config_status_args
=
34011 test "$silent" = yes &&
34012 ac_config_status_args
="$ac_config_status_args --quiet"
34014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34017 # would make configure fail if this is the last instruction.
34018 $ac_cs_success ||
{ (exit 1); exit 1; }
34022 # CONFIG_SUBDIRS section.
34024 if test "$no_recursion" != yes; then
34026 # Remove --cache-file and --srcdir arguments so they do not pile up.
34027 ac_sub_configure_args
=
34029 eval "set x $ac_configure_args"
34033 if test -n "$ac_prev"; then
34038 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
34039 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
34040 ac_prev
=cache_file
;;
34041 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
34042 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
34045 --config-cache |
-C)
34047 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
34049 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
34051 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
34053 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
34057 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34059 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
34063 # Always prepend --prefix to ensure using the same prefix
34064 # in subdir configurations.
34065 ac_arg
="--prefix=$prefix"
34067 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34069 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
34072 if test "$silent" = yes; then
34073 ac_sub_configure_args
="--silent $ac_sub_configure_args"
34077 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
34079 # Do not complain, so a configure script can configure whichever
34080 # parts of a large source tree are present.
34081 test -d "$srcdir/$ac_dir" ||
continue
34083 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34084 echo "$as_me:$LINENO: $ac_msg" >&5
34088 -*) as_dir
=.
/$as_dir;;
34090 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
34094 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34095 *) as_qdir
=$as_dir;;
34097 as_dirs
="'$as_qdir' $as_dirs"
34098 as_dir
=`$as_dirname -- "$as_dir" ||
34099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34100 X"$as_dir" : 'X\(//\)[^/]' \| \
34101 X"$as_dir" : 'X\(//\)$' \| \
34102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34108 /^X\(\/\/\)[^/].*/{
34121 test -d "$as_dir" && break
34123 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
34124 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34125 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34126 { (exit 1); exit 1; }; }; }
34130 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34132 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34133 # A ".." for each directory in $ac_dir_suffix.
34134 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34135 case $ac_top_builddir_sub in
34136 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34137 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
34140 ac_abs_top_builddir
=$ac_pwd
34141 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
34142 # for backward compatibility:
34143 ac_top_builddir
=$ac_top_build_prefix
34146 .
) # We are building in place.
34148 ac_top_srcdir
=$ac_top_builddir_sub
34149 ac_abs_top_srcdir
=$ac_pwd ;;
34150 [\\/]* | ?
:[\\/]* ) # Absolute name.
34151 ac_srcdir
=$srcdir$ac_dir_suffix;
34152 ac_top_srcdir
=$srcdir
34153 ac_abs_top_srcdir
=$srcdir ;;
34154 *) # Relative name.
34155 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
34156 ac_top_srcdir
=$ac_top_build_prefix$srcdir
34157 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
34159 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
34164 # Check for guested configure; otherwise get Cygnus style configure.
34165 if test -f "$ac_srcdir/configure.gnu"; then
34166 ac_sub_configure
=$ac_srcdir/configure.gnu
34167 elif test -f "$ac_srcdir/configure"; then
34168 ac_sub_configure
=$ac_srcdir/configure
34169 elif test -f "$ac_srcdir/configure.in"; then
34170 # This should be Cygnus configure.
34171 ac_sub_configure
=$ac_aux_dir/configure
34173 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34174 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34178 # The recursion is here.
34179 if test -n "$ac_sub_configure"; then
34180 # Make the cache file name correct relative to the subdirectory.
34181 case $cache_file in
34182 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
34183 *) # Relative name.
34184 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
34187 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34188 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34189 # The eval makes quoting arguments work.
34190 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34191 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34192 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34193 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34194 { (exit 1); exit 1; }; }