2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.8svn.
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-2010 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
28 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
29 DUALCASE
=1; export DUALCASE
# for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /usr
/bin
/posix
$PATH_SEPARATOR/bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
251 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
252 DUALCASE
=1; export DUALCASE
# for MKS sh
257 CONFIG_SHELL
=$as_shell
259 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
271 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
272 DUALCASE
=1; export DUALCASE
# for MKS sh
284 as_func_ret_success
() {
287 as_func_ret_failure
() {
292 if as_func_success
; then
296 echo as_func_success failed.
299 if as_func_failure
; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success
; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure
; then
313 echo as_func_ret_failure succeeded.
316 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) ||
{ (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x
; then
341 for as_var
in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no
; then
350 echo This
script requires a shell
more modern than all the
351 echo shells that I found on your system. Please
install a
352 echo modern shell
, or manually run the
script under such a
353 echo shell
if you
do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") ||
{
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system
,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x
"$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
470 ECHO_C
= ECHO_N
= ECHO_T
=
474 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
481 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
488 rm -f conf$$ conf$$.exe conf$$.
file
489 if test -d conf$$.dir
; then
490 rm -f conf$$.dir
/conf$$.
file
496 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
504 elif ln conf$$.
file conf$$
2>/dev
/null
; then
509 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
510 rmdir conf$$.dir
2>/dev
/null
512 if mkdir
-p .
2>/dev
/null
; then
515 test -d .
/-p && rmdir .
/-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.
file <<_ASEOF
526 if test -x conf$$.
file >/dev
/null
2>&1; then
527 as_executable_p
="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev
/null
6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix
=/usr
/local
553 ac_config_libobj_dir
=.
559 SHELL
=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME
='-llvm-'
564 PACKAGE_VERSION
='2.8svn'
565 PACKAGE_STRING
='llvm 2.8svn'
566 PACKAGE_BUGREPORT
='llvmbugs@cs.uiuc.edu'
568 ac_unique_file
="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default
="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
683 ENABLE_EXPENSIVE_CHECKS
695 LLVM_ENUM_ASM_PRINTERS
696 LLVM_ENUM_ASM_PARSERS
697 LLVM_ENUM_DISASSEMBLERS
706 ENABLE_LLVMC_DYNAMIC_PLUGINS
754 CONVENIENCE_LTDL_TRUE
755 CONVENIENCE_LTDL_FALSE
763 NO_MISSING_FIELD_INITIALIZERS
788 ENABLE_VISIBILITY_INLINES_HIDDEN
794 ac_precious_vars
='build_alias
805 ac_subdirs_all
='projects/llvm-gcc
809 projects/llvm-poolalloc
812 projects/llvm-stacker
817 projects/llvm-kernel'
819 # Initialize some variables set by options.
821 ac_init_version
=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
831 program_transform_name
=s
,x
,x
,
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir
='${exec_prefix}/bin'
846 sbindir
='${exec_prefix}/sbin'
847 libexecdir
='${exec_prefix}/libexec'
848 datarootdir
='${prefix}/share'
849 datadir
='${datarootdir}'
850 sysconfdir
='${prefix}/etc'
851 sharedstatedir
='${prefix}/com'
852 localstatedir
='${prefix}/var'
853 includedir
='${prefix}/include'
854 oldincludedir
='/usr/include'
855 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir
='${datarootdir}/info'
861 libdir
='${exec_prefix}/lib'
862 localedir
='${datarootdir}/locale'
863 mandir
='${datarootdir}/man'
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\
$ac_option
877 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
887 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
889 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
892 -build |
--build |
--buil |
--bui |
--bu)
893 ac_prev
=build_alias
;;
894 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
895 build_alias
=$ac_optarg ;;
897 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
898 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
899 ac_prev
=cache_file
;;
900 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
901 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
902 cache_file
=$ac_optarg ;;
905 cache_file
=config.cache
;;
907 -datadir |
--datadir |
--datadi |
--datad)
909 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
910 datadir
=$ac_optarg ;;
912 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
913 |
--dataroo |
--dataro |
--datar)
914 ac_prev
=datarootdir
;;
915 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
916 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
917 datarootdir
=$ac_optarg ;;
919 -disable-* |
--disable-*)
920 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_
$ac_feature=no
;;
928 -docdir |
--docdir |
--docdi |
--doc |
--do)
930 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
933 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
935 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
938 -enable-* |
--enable-*)
939 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_
$ac_feature=\
$ac_optarg ;;
947 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
948 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
949 |
--exec |
--exe |
--ex)
950 ac_prev
=exec_prefix
;;
951 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
952 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
953 |
--exec=* |
--exe=* |
--ex=*)
954 exec_prefix
=$ac_optarg ;;
956 -gas |
--gas |
--ga |
--g)
957 # Obsolete; use --with-gas.
960 -help |
--help |
--hel |
--he |
-h)
962 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
963 ac_init_help
=recursive
;;
964 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
965 ac_init_help
=short
;;
967 -host |
--host |
--hos |
--ho)
968 ac_prev
=host_alias
;;
969 -host=* |
--host=* |
--hos=* |
--ho=*)
970 host_alias
=$ac_optarg ;;
972 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
974 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
976 htmldir
=$ac_optarg ;;
978 -includedir |
--includedir |
--includedi |
--included |
--include \
979 |
--includ |
--inclu |
--incl |
--inc)
980 ac_prev
=includedir
;;
981 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
982 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
983 includedir
=$ac_optarg ;;
985 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
987 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
988 infodir
=$ac_optarg ;;
990 -libdir |
--libdir |
--libdi |
--libd)
992 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
995 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
996 |
--libexe |
--libex |
--libe)
997 ac_prev
=libexecdir
;;
998 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
999 |
--libexe=* |
--libex=* |
--libe=*)
1000 libexecdir
=$ac_optarg ;;
1002 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1003 ac_prev
=localedir
;;
1004 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1005 localedir
=$ac_optarg ;;
1007 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1008 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1009 ac_prev
=localstatedir
;;
1010 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1011 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1012 localstatedir
=$ac_optarg ;;
1014 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1016 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1017 mandir
=$ac_optarg ;;
1019 -nfp |
--nfp |
--nf)
1020 # Obsolete; use --without-fp.
1023 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1024 |
--no-cr |
--no-c |
-n)
1027 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1028 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1031 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1032 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1033 |
--oldin |
--oldi |
--old |
--ol |
--o)
1034 ac_prev
=oldincludedir
;;
1035 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1036 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1037 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1038 oldincludedir
=$ac_optarg ;;
1040 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1042 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1043 prefix
=$ac_optarg ;;
1045 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1046 |
--program-pre |
--program-pr |
--program-p)
1047 ac_prev
=program_prefix
;;
1048 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1049 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1050 program_prefix
=$ac_optarg ;;
1052 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1053 |
--program-suf |
--program-su |
--program-s)
1054 ac_prev
=program_suffix
;;
1055 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1056 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1057 program_suffix
=$ac_optarg ;;
1059 -program-transform-name |
--program-transform-name \
1060 |
--program-transform-nam |
--program-transform-na \
1061 |
--program-transform-n |
--program-transform- \
1062 |
--program-transform |
--program-transfor \
1063 |
--program-transfo |
--program-transf \
1064 |
--program-trans |
--program-tran \
1065 |
--progr-tra |
--program-tr |
--program-t)
1066 ac_prev
=program_transform_name
;;
1067 -program-transform-name=* |
--program-transform-name=* \
1068 |
--program-transform-nam=* |
--program-transform-na=* \
1069 |
--program-transform-n=* |
--program-transform-=* \
1070 |
--program-transform=* |
--program-transfor=* \
1071 |
--program-transfo=* |
--program-transf=* \
1072 |
--program-trans=* |
--program-tran=* \
1073 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1074 program_transform_name
=$ac_optarg ;;
1076 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1078 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1079 pdfdir
=$ac_optarg ;;
1081 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1083 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1086 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1087 |
-silent |
--silent |
--silen |
--sile |
--sil)
1090 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1092 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1094 sbindir
=$ac_optarg ;;
1096 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1097 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1098 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1100 ac_prev
=sharedstatedir
;;
1101 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1102 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1103 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1105 sharedstatedir
=$ac_optarg ;;
1107 -site |
--site |
--sit)
1109 -site=* |
--site=* |
--sit=*)
1112 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1114 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1115 srcdir
=$ac_optarg ;;
1117 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1118 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1119 ac_prev
=sysconfdir
;;
1120 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1121 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1122 sysconfdir
=$ac_optarg ;;
1124 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1125 ac_prev
=target_alias
;;
1126 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1127 target_alias
=$ac_optarg ;;
1129 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1132 -version |
--version |
--versio |
--versi |
--vers |
-V)
1133 ac_init_version
=: ;;
1136 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_
$ac_package=\
$ac_optarg ;;
1144 -without-* |
--without-*)
1145 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_
$ac_package=no
;;
1154 # Obsolete; use --with-x.
1157 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1158 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1159 ac_prev
=x_includes
;;
1160 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1161 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1162 x_includes
=$ac_optarg ;;
1164 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1165 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1166 ac_prev
=x_libraries
;;
1167 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1168 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1169 x_libraries
=$ac_optarg ;;
1171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
1177 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
1182 eval $ac_envvar=\
$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 if test -n "$ac_prev"; then
1197 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
1202 # Be sure to have absolute directory names.
1203 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val
=\$
$ac_var
1210 [\\/$
]* | ?
:[\\/]* ) continue;;
1211 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1222 target
=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x
; then
1226 if test "x$build_alias" = x
; then
1227 cross_compiling
=maybe
1228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1236 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1238 test "$silent" = yes && exec 6>/dev
/null
1241 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di
=`ls -di .` &&
1243 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted
=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir
=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted
=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
1290 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var
in $ac_precious_vars; do
1306 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1308 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --build=BUILD configure
for building on BUILD
[guessed
]
1378 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1379 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive
) echo "Configuration of llvm 2.8svn:";;
1390 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1391 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1392 --enable-optimized Compile with optimizations enabled
(default is NO
)
1393 --enable-profiling Compile with profiling enabled
(default is NO
)
1394 --enable-assertions Compile with assertion checks enabled
(default is
1396 --enable-expensive-checks
1397 Compile with expensive debug checks enabled
(default
1399 --enable-debug-runtime Build runtime libs with debug symbols
(default is
1401 --enable-debug-symbols Build compiler with debug symbols
(default is NO
if
1402 optimization is on and YES
if it
's off)
1403 --enable-jit Enable Just In Time Compiling (default is YES)
1404 --enable-doxygen Build doxygen documentation (default is NO)
1405 --enable-threads Use threads if available (default is YES)
1406 --enable-pic Build LLVM with Position Independent Code (default
1408 --enable-shared Build a shared library and link tools against it
1410 --enable-targets Build specific host targets: all or
1411 target1,target2,... Valid targets are: host, x86,
1412 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1413 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1414 and cpp (default=all)
1415 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1417 --enable-bindings Build specific language bindings:
1418 all,auto,none,{binding-name} (default=auto)
1419 --enable-libffi Check for the presence of libffi (default is NO)
1420 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1422 --enable-llvmc-dynamic-plugins
1423 Enable dynamic LLVMC plugins (default is YES)
1424 --enable-ltdl-install install libltdl
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1431 --with-llvmgcc Specify location of llvm-gcc driver (default
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1435 --with-clang Specify location of clang compiler (default is
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1439 --with-optimize-option Select the compiler options to use for optimized
1441 --with-extra-options Specify additional options to compile LLVM with
1442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 --with-c-include-dirs Colon separated list of directories clang will
1446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
1452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
1454 --with-tclinclude directory where tcl headers are
1455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
1457 --with-udis86=<path> Use udis86 external x86 disassembler library
1458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to
help
1473 it to
find libraries and programs with nonstandard names
/locations.
1475 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1483 test -d "$ac_dir" ||
continue
1487 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1489 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1494 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir
=$ac_pwd
1498 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir
=$ac_top_build_prefix
1503 .
) # We are building in place.
1505 ac_top_srcdir
=$ac_top_builddir_sub
1506 ac_abs_top_srcdir
=$ac_pwd ;;
1507 [\\/]* | ?
:[\\/]* ) # Absolute name.
1508 ac_srcdir
=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir
=$srcdir
1510 ac_abs_top_srcdir
=$srcdir ;;
1512 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 llvm configure
2.8svn
1537 generated by GNU Autoconf
2.60
1539 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1541 This configure
script is free software
; the Free Software Foundation
1542 gives unlimited permission to copy
, distribute and modify it.
1544 Copyright
(c
) 2003-2010 University of Illinois
at Urbana-Champaign.
1548 cat >config.log
<<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by llvm $as_me 2.8svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir
=.
1589 echo "PATH: $as_dir"
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_must_keep_next
=false
1619 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1620 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1621 |
-silent |
--silent |
--silen |
--sile |
--sil)
1624 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true
; then
1631 ac_must_keep_next
=false
# Got value, back to normal.
1634 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1635 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1636 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1637 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 -* ) ac_must_keep_next
=true
;;
1645 ac_configure_args
="$ac_configure_args '$ac_arg'"
1650 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1651 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 echo "$ac_var='\''$ac_val'\''"
1716 if test -n "$ac_subst_files"; then
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1723 for ac_var
in $ac_subst_files
1725 eval ac_val
=\$
$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1734 if test -s confdefs.h; then
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752 for ac_signal
in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest
* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h
<<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 cat >>confdefs.h
<<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 cat >>confdefs.h
<<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 cat >>confdefs.h
<<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 cat >>confdefs.h
<<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x
"$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE
; then
1792 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1794 set x
"$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1815 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1816 *) .
"./$cache_file";;
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1825 # Check that the precious variables saved in the cache have kept the same
1827 ac_cache_corrupted
=false
1828 for ac_var
in $ac_precious_vars; do
1829 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1830 eval ac_new_set
=\
$ac_env_${ac_var}_set
1831 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1832 eval ac_new_val
=\
$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted
=: ;;
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted
=: ;;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted
=:
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1857 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg
=$ac_var=$ac_new_val ;;
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1899 ac_cpp
='$CPP $CPPFLAGS'
1900 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1906 LLVM_COPYRIGHT
="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1915 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
1916 if test -f "$ac_dir/install-sh"; then
1918 ac_install_sh
="$ac_aux_dir/install-sh -c"
1920 elif test -f "$ac_dir/install.sh"; then
1922 ac_install_sh
="$ac_aux_dir/install.sh -c"
1924 elif test -f "$ac_dir/shtool"; then
1926 ac_install_sh
="$ac_aux_dir/shtool install -c"
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
1948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
1956 if test -d ${srcdir}/projects
/llvm-gcc
; then
1957 subdirs
="$subdirs projects/llvm-gcc"
1961 if test -d ${srcdir}/projects
/test-suite
; then
1962 subdirs
="$subdirs projects/test-suite"
1966 if test -d ${srcdir}/projects
/llvm-test
; then
1967 subdirs
="$subdirs projects/llvm-test"
1971 if test -d ${srcdir}/projects
/poolalloc
; then
1972 subdirs
="$subdirs projects/poolalloc"
1976 if test -d ${srcdir}/projects
/llvm-poolalloc
; then
1977 subdirs
="$subdirs projects/llvm-poolalloc"
1981 for i
in `ls ${srcdir}/projects`
1983 if test -d ${srcdir}/projects
/${i} ; then
1986 sample
) subdirs
="$subdirs projects/sample"
1988 privbracket
) subdirs
="$subdirs projects/privbracket"
1990 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
1992 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
1994 llvm-java
) subdirs
="$subdirs projects/llvm-java"
1996 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
1998 safecode
) subdirs
="$subdirs projects/safecode"
2000 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2008 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2009 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2016 # Make sure we can run config.sub.
2017 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2018 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020 { (exit 1); exit 1; }; }
2022 { echo "$as_me:$LINENO: checking build system type" >&5
2023 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2024 if test "${ac_cv_build+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 ac_build_alias
=$build_alias
2028 test "x$ac_build_alias" = x
&&
2029 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2030 test "x$ac_build_alias" = x
&&
2031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033 { (exit 1); exit 1; }; }
2034 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041 echo "${ECHO_T}$ac_cv_build" >&6; }
2042 case $ac_cv_build in
2044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045 echo "$as_me: error: invalid value of canonical build" >&2;}
2046 { (exit 1); exit 1; }; };;
2049 ac_save_IFS
=$IFS; IFS
='-'
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2059 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2062 { echo "$as_me:$LINENO: checking host system type" >&5
2063 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_host+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 if test "x$host_alias" = x
; then
2068 ac_cv_host
=$ac_cv_build
2070 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
2077 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078 echo "${ECHO_T}$ac_cv_host" >&6; }
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082 echo "$as_me: error: invalid value of canonical host" >&2;}
2083 { (exit 1); exit 1; }; };;
2086 ac_save_IFS
=$IFS; IFS
='-'
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2096 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2099 { echo "$as_me:$LINENO: checking target system type" >&5
2100 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_target+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 if test "x$target_alias" = x
; then
2105 ac_cv_target
=$ac_cv_host
2107 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2114 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2115 echo "${ECHO_T}$ac_cv_target" >&6; }
2116 case $ac_cv_target in
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2119 echo "$as_me: error: invalid value of canonical target" >&2;}
2120 { (exit 1); exit 1; }; };;
2122 target
=$ac_cv_target
2123 ac_save_IFS
=$IFS; IFS
='-'
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2133 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2136 # The aliases save the names the user supplied, while $host etc.
2137 # will get canonicalized.
2138 test -n "$target_alias" &&
2139 test "$program_prefix$program_suffix$program_transform_name" = \
2141 program_prefix
=${target_alias}-
2143 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2144 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2145 if test "${llvm_cv_os_type+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 llvm_cv_link_all_option
="-Wl,--whole-archive"
2151 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2152 llvm_cv_os_type
="AIX"
2153 llvm_cv_platform_type
="Unix" ;;
2155 llvm_cv_link_all_option
="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2157 llvm_cv_os_type
="IRIX"
2158 llvm_cv_platform_type
="Unix" ;;
2160 llvm_cv_link_all_option
="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2162 llvm_cv_os_type
="Cygwin"
2163 llvm_cv_platform_type
="Unix" ;;
2165 llvm_cv_link_all_option
="-Wl,-all_load"
2166 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2167 llvm_cv_os_type
="Darwin"
2168 llvm_cv_platform_type
="Unix" ;;
2170 llvm_cv_link_all_option
="-Wl,--whole-archive"
2171 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2172 llvm_cv_os_type
="FreeBSD"
2173 llvm_cv_platform_type
="Unix" ;;
2175 llvm_cv_link_all_option
="-Wl,--whole-archive"
2176 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2177 llvm_cv_os_type
="OpenBSD"
2178 llvm_cv_platform_type
="Unix" ;;
2180 llvm_cv_link_all_option
="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2182 llvm_cv_os_type
="NetBSD"
2183 llvm_cv_platform_type
="Unix" ;;
2185 llvm_cv_link_all_option
="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2187 llvm_cv_os_type
="DragonFly"
2188 llvm_cv_platform_type
="Unix" ;;
2190 llvm_cv_link_all_option
="-Wl,--whole-archive"
2191 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2192 llvm_cv_os_type
="HP-UX"
2193 llvm_cv_platform_type
="Unix" ;;
2195 llvm_cv_link_all_option
="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2197 llvm_cv_os_type
="Interix"
2198 llvm_cv_platform_type
="Unix" ;;
2200 llvm_cv_link_all_option
="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2202 llvm_cv_os_type
="Linux"
2203 llvm_cv_platform_type
="Unix" ;;
2205 llvm_cv_link_all_option
="-Wl,-z,allextract"
2206 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2207 llvm_cv_os_type
="SunOS"
2208 llvm_cv_platform_type
="Unix" ;;
2210 llvm_cv_link_all_option
="-Wl,-z,allextract"
2211 llvm_cv_link_all_option
="-Wl,-z,defaultextract"
2212 llvm_cv_os_type
="AuroraUX"
2213 llvm_cv_platform_type
="Unix" ;;
2215 llvm_cv_link_all_option
="-Wl,--whole-archive"
2216 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2217 llvm_cv_os_type
="Win32"
2218 llvm_cv_platform_type
="Win32" ;;
2220 llvm_cv_link_all_option
="-Wl,--whole-archive"
2221 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2222 llvm_cv_os_type
="MingW"
2223 llvm_cv_platform_type
="Win32" ;;
2225 llvm_cv_link_all_option
="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2227 llvm_cv_os_type
="Haiku"
2228 llvm_cv_platform_type
="Unix" ;;
2230 llvm_cv_link_all_option
="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2232 llvm_cv_os_type
="Freestanding"
2233 llvm_cv_platform_type
="Unix" ;;
2235 llvm_cv_link_all_option
="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2237 llvm_cv_os_type
="Freestanding"
2238 llvm_cv_platform_type
="Unix" ;;
2240 llvm_cv_link_all_option
=""
2241 llvm_cv_no_link_all_option
=""
2242 llvm_cv_os_type
="Unknown"
2243 llvm_cv_platform_type
="Unknown" ;;
2246 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2247 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2249 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2250 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2251 if test "${llvm_cv_target_os_type+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 llvm_cv_target_os_type
="AIX" ;;
2258 llvm_cv_target_os_type
="IRIX" ;;
2260 llvm_cv_target_os_type
="Cygwin" ;;
2262 llvm_cv_target_os_type
="Darwin" ;;
2264 llvm_cv_target_os_type
="FreeBSD" ;;
2266 llvm_cv_target_os_type
="OpenBSD" ;;
2268 llvm_cv_target_os_type
="NetBSD" ;;
2270 llvm_cv_target_os_type
="DragonFly" ;;
2272 llvm_cv_target_os_type
="HP-UX" ;;
2274 llvm_cv_target_os_type
="Interix" ;;
2276 llvm_cv_target_os_type
="Linux" ;;
2278 llvm_cv_target_os_type
="SunOS" ;;
2280 llvm_cv_target_os_type
="AuroraUX" ;;
2282 llvm_cv_target_os_type
="Win32" ;;
2284 llvm_cv_target_os_type
="MingW" ;;
2286 llvm_cv_target_os_type
="Haiku" ;;
2288 llvm_cv_target_os_type
="Freestanding" ;;
2290 llvm_cv_target_os_type
="Unknown" ;;
2293 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2294 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2296 if test "$llvm_cv_os_type" = "Unknown" ; then
2297 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2298 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2299 { (exit 1); exit 1; }; }
2304 HOST_OS
=$llvm_cv_os_type
2306 TARGET_OS
=$llvm_cv_target_os_type
2309 LINKALL
=$llvm_cv_link_all_option
2311 NOLINKALL
=$llvm_cv_no_link_all_option
2314 case $llvm_cv_platform_type in
2317 cat >>confdefs.h
<<\_ACEOF
2318 #define LLVM_ON_UNIX 1
2328 cat >>confdefs.h
<<\_ACEOF
2329 #define LLVM_ON_WIN32 1
2339 { echo "$as_me:$LINENO: checking target architecture" >&5
2340 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2341 if test "${llvm_cv_target_arch+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 i?
86-*) llvm_cv_target_arch
="x86" ;;
2346 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2347 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2348 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2349 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2350 arm
*-*) llvm_cv_target_arch
="ARM" ;;
2351 mips-
*) llvm_cv_target_arch
="Mips" ;;
2352 pic16-
*) llvm_cv_target_arch
="PIC16" ;;
2353 xcore-
*) llvm_cv_target_arch
="XCore" ;;
2354 msp430-
*) llvm_cv_target_arch
="MSP430" ;;
2355 s390x-
*) llvm_cv_target_arch
="SystemZ" ;;
2356 bfin-
*) llvm_cv_target_arch
="Blackfin" ;;
2357 mblaze-
*) llvm_cv_target_arch
="MBlaze" ;;
2358 *) llvm_cv_target_arch
="Unknown" ;;
2361 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2362 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2364 if test "$llvm_cv_target_arch" = "Unknown" ; then
2365 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2366 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2369 # Determine the LLVM native architecture for the target
2370 case "$llvm_cv_target_arch" in
2371 x86
) LLVM_NATIVE_ARCH
="X86" ;;
2372 x86_64
) LLVM_NATIVE_ARCH
="X86" ;;
2373 *) LLVM_NATIVE_ARCH
="$llvm_cv_target_arch" ;;
2376 ARCH
=$llvm_cv_target_arch
2380 ac_cpp
='$CPP $CPPFLAGS'
2381 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2384 if test -n "$ac_tool_prefix"; then
2385 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2386 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_CC+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 if test -n "$CC"; then
2393 ac_cv_prog_CC
="$CC" # Let the user override the test.
2395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir
=.
2400 for ac_exec_ext
in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 if test -n "$CC"; then
2414 { echo "$as_me:$LINENO: result: $CC" >&5
2415 echo "${ECHO_T}$CC" >&6; }
2417 { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2423 if test -z "$ac_cv_prog_CC"; then
2425 # Extract the first word of "gcc", so it can be a program name with args.
2426 set dummy gcc
; ac_word
=$2
2427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 if test -n "$ac_ct_CC"; then
2433 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2439 test -z "$as_dir" && as_dir
=.
2440 for ac_exec_ext
in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_prog_ac_ct_CC
="gcc"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2453 if test -n "$ac_ct_CC"; then
2454 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2455 echo "${ECHO_T}$ac_ct_CC" >&6; }
2457 { echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6; }
2461 if test "x$ac_ct_CC" = x
; then
2464 case $cross_compiling:$ac_tool_warned in
2466 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2467 whose name does not start with the host triplet. If you think this
2468 configuration is useful to you, please write to autoconf@gnu.org." >&5
2469 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2470 whose name does not start with the host triplet. If you think this
2471 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2472 ac_tool_warned
=yes ;;
2480 if test -z "$CC"; then
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2483 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC
="$CC" # Let the user override the test.
2492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir
=.
2497 for ac_exec_ext
in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 if test -n "$CC"; then
2511 { echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6; }
2514 { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2521 if test -z "$CC"; then
2522 # Extract the first word of "cc", so it can be a program name with args.
2523 set dummy cc
; ac_word
=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC
="$CC" # Let the user override the test.
2533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2537 test -z "$as_dir" && as_dir
=.
2538 for ac_exec_ext
in '' $ac_executable_extensions; do
2539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2540 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2541 ac_prog_rejected
=yes
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 if test $ac_prog_rejected = yes; then
2553 # We found a bogon in the path, so make sure we never use it.
2554 set dummy
$ac_cv_prog_CC
2556 if test $# != 0; then
2557 # We chose a different compiler from the bogus one.
2558 # However, it has the same basename, so the bogon will be chosen
2559 # first if we set CC to just the basename; use the full file name.
2561 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2567 if test -n "$CC"; then
2568 { echo "$as_me:$LINENO: result: $CC" >&5
2569 echo "${ECHO_T}$CC" >&6; }
2571 { echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6; }
2577 if test -z "$CC"; then
2578 if test -n "$ac_tool_prefix"; then
2579 for ac_prog
in cl.exe
2581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2582 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_CC+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 if test -n "$CC"; then
2589 ac_cv_prog_CC
="$CC" # Let the user override the test.
2591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2595 test -z "$as_dir" && as_dir
=.
2596 for ac_exec_ext
in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 if test -n "$CC"; then
2610 { echo "$as_me:$LINENO: result: $CC" >&5
2611 echo "${ECHO_T}$CC" >&6; }
2613 { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2618 test -n "$CC" && break
2621 if test -z "$CC"; then
2623 for ac_prog
in cl.exe
2625 # Extract the first word of "$ac_prog", so it can be a program name with args.
2626 set dummy
$ac_prog; ac_word
=$2
2627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 if test -n "$ac_ct_CC"; then
2633 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2639 test -z "$as_dir" && as_dir
=.
2640 for ac_exec_ext
in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2642 ac_cv_prog_ac_ct_CC
="$ac_prog"
2643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2653 if test -n "$ac_ct_CC"; then
2654 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2655 echo "${ECHO_T}$ac_ct_CC" >&6; }
2657 { echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6; }
2662 test -n "$ac_ct_CC" && break
2665 if test "x$ac_ct_CC" = x
; then
2668 case $cross_compiling:$ac_tool_warned in
2670 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2671 whose name does not start with the host triplet. If you think this
2672 configuration is useful to you, please write to autoconf@gnu.org." >&5
2673 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2674 whose name does not start with the host triplet. If you think this
2675 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2676 ac_tool_warned
=yes ;;
2685 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2686 See \`config.log' for more details." >&5
2687 echo "$as_me: error: no acceptable C compiler found in \$PATH
2688 See \`config.log' for more details." >&2;}
2689 { (exit 1); exit 1; }; }
2691 # Provide some information about the compiler.
2692 echo "$as_me:$LINENO: checking for C compiler version" >&5
2693 ac_compiler
=`set X $ac_compile; echo $2`
2694 { (ac_try
="$ac_compiler --version >&5"
2696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compiler --version >&5") 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }
2704 { (ac_try="$ac_compiler -v >&5"
2706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2707 *) ac_try_echo
=$ac_try;;
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compiler -v >&5") 2>&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }
2714 { (ac_try
="$ac_compiler -V >&5"
2716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compiler -V >&5") 2>&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }
2725 cat >conftest.$ac_ext <<_ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2740 ac_clean_files_save=$ac_clean_files
2741 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2742 # Try to create an executable without -o first, disregard a.out.
2743 # It will help us diagnose broken compilers, and finding out an intuition
2745 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2746 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2747 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2749 # List of possible output files, starting from the most likely.
2750 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2751 # only as a last resort. b.out is created by i960 compilers.
2752 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2754 # The IRIX 6 linker writes into existing files which may not be
2755 # executable, retaining their permissions. Remove them first so a
2756 # subsequent execution test works.
2758 for ac_file in $ac_files
2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2762 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2767 if { (ac_try="$ac_link_default"
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_link_default") 2>&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; then
2777 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2778 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2779 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2780 # so that the user can short-circuit this test for compilers unknown to
2782 for ac_file
in $ac_files
2784 test -f "$ac_file" ||
continue
2786 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2789 # We found the default executable, but exeext='' is most
2793 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2795 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2797 # We set ac_cv_exeext here because the later test for it is not
2798 # safe: cross compilers may not add the suffix if given an `-o'
2799 # argument, so we may need to know it at that point already.
2800 # Even if this section looks crufty: it has the advantage of
2807 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.
$ac_ext >&5
2813 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2814 See \`config.log' for more details." >&5
2815 echo "$as_me: error: C compiler cannot create executables
2816 See \`config.log' for more details." >&2;}
2817 { (exit 77); exit 77; }; }
2820 ac_exeext
=$ac_cv_exeext
2821 { echo "$as_me:$LINENO: result: $ac_file" >&5
2822 echo "${ECHO_T}$ac_file" >&6; }
2824 # Check that the compiler produces executables we can run. If not, either
2825 # the compiler is broken, or we cross compile.
2826 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2827 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2828 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2829 # If not cross compiling, check that we can run a simple program.
2830 if test "$cross_compiling" != yes; then
2831 if { ac_try
='./$ac_file'
2832 { (case "(($ac_try" in
2833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_try") 2>&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2843 if test "$cross_compiling" = maybe; then
2846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2847 If you meant to cross compile, use \`--host'.
2848 See \`config.log' for more details.
" >&5
2849 echo "$as_me: error
: cannot run C compiled programs.
2850 If you meant to cross compile
, use \
`--host'.
2851 See \`config.log
' for more details." >&2;}
2852 { (exit 1); exit 1; }; }
2856 { echo "$as_me:$LINENO: result: yes" >&5
2857 echo "${ECHO_T}yes" >&6; }
2859 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2860 ac_clean_files=$ac_clean_files_save
2861 # Check that the compiler produces executables we can run. If not, either
2862 # the compiler is broken, or we cross compile.
2863 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2864 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2865 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2866 echo "${ECHO_T}$cross_compiling" >&6; }
2868 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2869 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2870 if { (ac_try="$ac_link"
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_link") 2>&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
2880 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2881 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2882 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2884 for ac_file
in conftest.exe conftest conftest.
*; do
2885 test -f "$ac_file" ||
continue
2887 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2888 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2894 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2897 See \`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }
2901 rm -f conftest
$ac_cv_exeext
2902 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2903 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2905 rm -f conftest.
$ac_ext
2906 EXEEXT
=$ac_cv_exeext
2908 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2909 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2910 if test "${ac_cv_objext+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 cat >conftest.
$ac_ext <<_ACEOF
2916 cat confdefs.h
>>conftest.
$ac_ext
2917 cat >>conftest.
$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2928 rm -f conftest.o conftest.obj
2929 if { (ac_try
="$ac_compile"
2931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; then
2939 for ac_file in conftest.o conftest.obj conftest.*; do
2940 test -f "$ac_file" || continue;
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2952 See \`config.log
' for more details." >&5
2953 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2954 See \`config.log' for more details.
" >&2;}
2955 { (exit 1); exit 1; }; }
2958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2960 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2961 echo "${ECHO_T}$ac_cv_objext" >&6; }
2962 OBJEXT=$ac_cv_objext
2964 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2965 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2967 echo $ECHO_N "(cached
) $ECHO_C" >&6
2969 cat >conftest.$ac_ext <<_ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2987 rm -f conftest.$ac_objext
2988 if { (ac_try="$ac_compile"
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compile") 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3002 { (case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_try") 2>&5
3009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_try") 2>&5
3019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3020 (exit $ac_status); }; }; then
3023 echo "$as_me: failed program was
:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3033 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3034 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3035 GCC=`test $ac_compiler_gnu = yes && echo yes`
3036 ac_test_CFLAGS=${CFLAGS+set}
3037 ac_save_CFLAGS=$CFLAGS
3038 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3039 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3040 if test "${ac_cv_prog_cc_g+set}" = set; then
3041 echo $ECHO_N "(cached
) $ECHO_C" >&6
3043 ac_save_c_werror_flag=$ac_c_werror_flag
3044 ac_c_werror_flag=yes
3047 cat >conftest.$ac_ext <<_ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3062 rm -f conftest.$ac_objext
3063 if { (ac_try="$ac_compile"
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_compile") 2>conftest.er1
3071 grep -v '^ *+' conftest.er1 >conftest.err
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3077 { (case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_try") 2>&5
3084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3085 (exit $ac_status); }; } &&
3086 { ac_try='test -s conftest.$ac_objext'
3087 { (case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_try") 2>&5
3094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3095 (exit $ac_status); }; }; then
3098 echo "$as_me: failed program was
:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3102 cat >conftest.$ac_ext <<_ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3117 rm -f conftest.$ac_objext
3118 if { (ac_try="$ac_compile"
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compile") 2>conftest.er1
3126 grep -v '^ *+' conftest.er1 >conftest.err
3128 cat conftest.err >&5
3129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3132 { (case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_try") 2>&5
3139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3140 (exit $ac_status); }; } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3150 (exit $ac_status); }; }; then
3153 echo "$as_me: failed program was
:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 ac_c_werror_flag=$ac_save_c_werror_flag
3158 cat >conftest.$ac_ext <<_ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compile") 2>conftest.er1
3182 grep -v '^ *+' conftest.er1 >conftest.err
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3188 { (case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_try") 2>&5
3195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3196 (exit $ac_status); }; } &&
3197 { ac_try='test -s conftest.$ac_objext'
3198 { (case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_try") 2>&5
3205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3206 (exit $ac_status); }; }; then
3209 echo "$as_me: failed program was
:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 ac_c_werror_flag=$ac_save_c_werror_flag
3224 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3226 if test "$ac_test_CFLAGS" = set; then
3227 CFLAGS=$ac_save_CFLAGS
3228 elif test $ac_cv_prog_cc_g = yes; then
3229 if test "$GCC" = yes; then
3235 if test "$GCC" = yes; then
3241 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3242 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3243 if test "${ac_cv_prog_cc_c89+set}" = set; then
3244 echo $ECHO_N "(cached
) $ECHO_C" >&6
3246 ac_cv_prog_cc_c89=no
3248 cat >conftest.$ac_ext <<_ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h. */
3256 #include <sys/types.h>
3257 #include <sys/stat.h>
3258 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3259 struct buf { int x; };
3260 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3261 static char *e (p, i)
3267 static char *f (char * (*g) (char **, int), char **p, ...)
3272 s = g (p, va_arg (v,int));
3277 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3278 function prototypes and stuff, but not '\xHH' hex character constants.
3279 These don't provoke an error unfortunately, instead are silently treated
3280 as 'x'. The following induces an error, until -std is added to get
3281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3282 array size at least. It's necessary to write '\x00'==0 to get something
3283 that's true only with -std. */
3284 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3286 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3287 inside strings and character constants. */
3289 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3291 int test (int i, double x);
3292 struct s1 {int (*f) (int a);};
3293 struct s2 {int (*f) (double a);};
3294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3300 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3305 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3308 CC="$ac_save_CC $ac_arg"
3309 rm -f conftest.$ac_objext
3310 if { (ac_try="$ac_compile"
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_compile") 2>conftest.er1
3318 grep -v '^ *+' conftest.er1 >conftest.err
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3324 { (case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_try") 2>&5
3331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3332 (exit $ac_status); }; } &&
3333 { ac_try='test -s conftest.$ac_objext'
3334 { (case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_try") 2>&5
3341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3342 (exit $ac_status); }; }; then
3343 ac_cv_prog_cc_c89=$ac_arg
3345 echo "$as_me: failed program was
:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3351 rm -f core conftest.err conftest.$ac_objext
3352 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3354 rm -f conftest.$ac_ext
3359 case "x
$ac_cv_prog_cc_c89" in
3361 { echo "$as_me:$LINENO: result
: none needed
" >&5
3362 echo "${ECHO_T}none needed
" >&6; } ;;
3364 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3365 echo "${ECHO_T}unsupported
" >&6; } ;;
3367 CC="$CC $ac_cv_prog_cc_c89"
3368 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3369 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3386 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3387 # On Suns, sometimes $CPP names a directory.
3388 if test -n "$CPP" && test -d "$CPP"; then
3391 if test -z "$CPP"; then
3392 if test "${ac_cv_prog_CPP+set}" = set; then
3393 echo $ECHO_N "(cached
) $ECHO_C" >&6
3395 # Double quotes because CPP needs to be expanded
3396 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3399 for ac_c_preproc_warn_flag in '' yes
3401 # Use a header file that comes with gcc, so configuring glibc
3402 # with a fresh cross-compiler works.
3403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3404 # <limits.h> exists even on freestanding compilers.
3405 # On the NeXT, cc -E runs the code through the compiler's parser,
3406 # not just through cpp. "Syntax error
" is here to catch this case.
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3414 # include <limits.h>
3416 # include <assert.h>
3420 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3428 grep -v '^ *+' conftest.er1 >conftest.err
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3432 (exit $ac_status); } >/dev/null; then
3433 if test -s conftest.err; then
3434 ac_cpp_err=$ac_c_preproc_warn_flag
3435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3442 if test -z "$ac_cpp_err"; then
3445 echo "$as_me: failed program was
:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3448 # Broken: fails on valid input.
3452 rm -f conftest.err conftest.$ac_ext
3454 # OK, works on sane cases. Now check whether nonexistent headers
3455 # can be detected and how.
3456 cat >conftest.$ac_ext <<_ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3462 #include <ac_nonexistent.h>
3464 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3472 grep -v '^ *+' conftest.er1 >conftest.err
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3476 (exit $ac_status); } >/dev/null; then
3477 if test -s conftest.err; then
3478 ac_cpp_err=$ac_c_preproc_warn_flag
3479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3486 if test -z "$ac_cpp_err"; then
3487 # Broken: success on invalid input.
3490 echo "$as_me: failed program was
:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3493 # Passes both tests.
3498 rm -f conftest.err conftest.$ac_ext
3501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3502 rm -f conftest.err conftest.$ac_ext
3503 if $ac_preproc_ok; then
3515 { echo "$as_me:$LINENO: result
: $CPP" >&5
3516 echo "${ECHO_T}$CPP" >&6; }
3518 for ac_c_preproc_warn_flag in '' yes
3520 # Use a header file that comes with gcc, so configuring glibc
3521 # with a fresh cross-compiler works.
3522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3523 # <limits.h> exists even on freestanding compilers.
3524 # On the NeXT, cc -E runs the code through the compiler's parser,
3525 # not just through cpp. "Syntax error
" is here to catch this case.
3526 cat >conftest.$ac_ext <<_ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3533 # include <limits.h>
3535 # include <assert.h>
3539 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3545 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3547 grep -v '^ *+' conftest.er1 >conftest.err
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3551 (exit $ac_status); } >/dev/null; then
3552 if test -s conftest.err; then
3553 ac_cpp_err=$ac_c_preproc_warn_flag
3554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561 if test -z "$ac_cpp_err"; then
3564 echo "$as_me: failed program was
:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3567 # Broken: fails on valid input.
3571 rm -f conftest.err conftest.$ac_ext
3573 # OK, works on sane cases. Now check whether nonexistent headers
3574 # can be detected and how.
3575 cat >conftest.$ac_ext <<_ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3581 #include <ac_nonexistent.h>
3583 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3591 grep -v '^ *+' conftest.er1 >conftest.err
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3595 (exit $ac_status); } >/dev/null; then
3596 if test -s conftest.err; then
3597 ac_cpp_err=$ac_c_preproc_warn_flag
3598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3605 if test -z "$ac_cpp_err"; then
3606 # Broken: success on invalid input.
3609 echo "$as_me: failed program was
:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3612 # Passes both tests.
3617 rm -f conftest.err conftest.$ac_ext
3620 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3621 rm -f conftest.err conftest.$ac_ext
3622 if $ac_preproc_ok; then
3625 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3626 See \
`config.log' for more details." >&5
3627 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3628 See \`config.log
' for more details." >&2;}
3629 { (exit 1); exit 1; }; }
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3635 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3640 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3641 if test "${ac_cv_path_GREP+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 # Extract the first word of "grep ggrep" to use in msg output
3645 if test -z "$GREP"; then
3646 set dummy grep ggrep; ac_prog_name=$2
3647 if test "${ac_cv_path_GREP+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 ac_path_GREP_found=false
3651 # Loop through the user's path and
test for each of PROGNAME-LIST
3652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3653 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3656 test -z "$as_dir" && as_dir
=.
3657 for ac_prog
in grep ggrep
; do
3658 for ac_exec_ext
in '' $ac_executable_extensions; do
3659 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3660 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3661 # Check for GNU ac_path_GREP and select it if it is found.
3662 # Check for GNU $ac_path_GREP
3663 case `"$ac_path_GREP" --version 2>&1` in
3665 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3668 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3671 cat "conftest.in" "conftest.in" >"conftest.tmp"
3672 mv "conftest.tmp" "conftest.in"
3673 cp "conftest.in" "conftest.nl"
3674 echo 'GREP' >> "conftest.nl"
3675 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3676 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3677 ac_count
=`expr $ac_count + 1`
3678 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3679 # Best one so far, save it but keep looking for a better one
3680 ac_cv_path_GREP
="$ac_path_GREP"
3681 ac_path_GREP_max
=$ac_count
3683 # 10*(2^10) chars as input seems more than enough
3684 test $ac_count -gt 10 && break
3686 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3690 $ac_path_GREP_found && break 3
3700 GREP
="$ac_cv_path_GREP"
3701 if test -z "$GREP"; then
3702 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3703 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3704 { (exit 1); exit 1; }; }
3708 ac_cv_path_GREP
=$GREP
3713 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3714 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3715 GREP
="$ac_cv_path_GREP"
3718 { echo "$as_me:$LINENO: checking for egrep" >&5
3719 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3720 if test "${ac_cv_path_EGREP+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3724 then ac_cv_path_EGREP
="$GREP -E"
3726 # Extract the first word of "egrep" to use in msg output
3727 if test -z "$EGREP"; then
3728 set dummy
egrep; ac_prog_name
=$2
3729 if test "${ac_cv_path_EGREP+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 ac_path_EGREP_found
=false
3733 # Loop through the user's path and test for each of PROGNAME-LIST
3734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3735 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3738 test -z "$as_dir" && as_dir
=.
3739 for ac_prog
in egrep; do
3740 for ac_exec_ext
in '' $ac_executable_extensions; do
3741 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3742 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3743 # Check for GNU ac_path_EGREP and select it if it is found.
3744 # Check for GNU $ac_path_EGREP
3745 case `"$ac_path_EGREP" --version 2>&1` in
3747 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3750 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3753 cat "conftest.in" "conftest.in" >"conftest.tmp"
3754 mv "conftest.tmp" "conftest.in"
3755 cp "conftest.in" "conftest.nl"
3756 echo 'EGREP' >> "conftest.nl"
3757 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3758 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3759 ac_count
=`expr $ac_count + 1`
3760 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3761 # Best one so far, save it but keep looking for a better one
3762 ac_cv_path_EGREP
="$ac_path_EGREP"
3763 ac_path_EGREP_max
=$ac_count
3765 # 10*(2^10) chars as input seems more than enough
3766 test $ac_count -gt 10 && break
3768 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3772 $ac_path_EGREP_found && break 3
3782 EGREP
="$ac_cv_path_EGREP"
3783 if test -z "$EGREP"; then
3784 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3785 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3786 { (exit 1); exit 1; }; }
3790 ac_cv_path_EGREP
=$EGREP
3796 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3797 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3798 EGREP
="$ac_cv_path_EGREP"
3801 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3802 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3803 if test "${ac_cv_header_stdc+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 cat >conftest.
$ac_ext <<_ACEOF
3809 cat confdefs.h
>>conftest.
$ac_ext
3810 cat >>conftest.
$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3825 rm -f conftest.
$ac_objext
3826 if { (ac_try
="$ac_compile"
3828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832 (eval "$ac_compile") 2>conftest.er1
3834 grep -v '^ *+' conftest.er1 >conftest.err
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3840 { (case "(($ac_try" in
3841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3842 *) ac_try_echo
=$ac_try;;
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_try") 2>&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; } &&
3849 { ac_try
='test -s conftest.$ac_objext'
3850 { (case "(($ac_try" in
3851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_try") 2>&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3859 ac_cv_header_stdc=yes
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 ac_cv_header_stdc=no
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 if test $ac_cv_header_stdc = yes; then
3870 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3871 cat >conftest.$ac_ext <<_ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3881 $EGREP "memchr" >/dev/null 2>&1; then
3884 ac_cv_header_stdc=no
3890 if test $ac_cv_header_stdc = yes; then
3891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3892 cat >conftest.$ac_ext <<_ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3902 $EGREP "free" >/dev/null 2>&1; then
3905 ac_cv_header_stdc=no
3911 if test $ac_cv_header_stdc = yes; then
3912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3913 if test "$cross_compiling" = yes; then
3916 cat >conftest.$ac_ext <<_ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3924 #if ((' ' & 0x0FF) == 0x020)
3925 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3926 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3928 # define ISLOWER(c) \
3929 (('a' <= (c) && (c) <= 'i') \
3930 || ('j' <= (c) && (c) <= 'r') \
3931 || ('s' <= (c) && (c) <= 'z'))
3932 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3940 for (i = 0; i < 256; i++)
3941 if (XOR (islower (i), ISLOWER (i))
3942 || toupper (i) != TOUPPER (i))
3947 rm -f conftest$ac_exeext
3948 if { (ac_try="$ac_link"
3950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3951 *) ac_try_echo
=$ac_try;;
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_link") 2>&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3958 { (case "(($ac_try" in
3959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_try") 2>&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then
3969 echo "$as_me: program exited with status $ac_status" >&5
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3974 ac_cv_header_stdc=no
3976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3982 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3983 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3984 if test $ac_cv_header_stdc = yes; then
3986 cat >>confdefs.h <<\_ACEOF
3987 #define STDC_HEADERS 1
3992 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4002 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4003 inttypes.h stdint.h unistd.h
4005 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 cat >conftest.$ac_ext <<_ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4017 $ac_includes_default
4019 #include <$ac_header>
4021 rm -f conftest.$ac_objext
4022 if { (ac_try="$ac_compile"
4024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4025 *) ac_try_echo
=$ac_try;;
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_compile") 2>conftest.er1
4030 grep -v '^ *+' conftest.er1
>conftest.err
4032 cat conftest.err
>&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4036 { (case "(($ac_try" in
4037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_try") 2>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; } &&
4045 { ac_try='test -s conftest.$ac_objext'
4046 { (case "(($ac_try" in
4047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4048 *) ac_try_echo
=$ac_try;;
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_try") 2>&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 eval "$as_ac_Header=yes"
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.
$ac_ext >&5
4060 eval "$as_ac_Header=no"
4063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4065 ac_res
=`eval echo '${'$as_ac_Header'}'`
4066 { echo "$as_me:$LINENO: result: $ac_res" >&5
4067 echo "${ECHO_T}$ac_res" >&6; }
4068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4069 cat >>confdefs.h
<<_ACEOF
4070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4078 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4079 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4080 if test "${ac_cv_c_bigendian+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 # See if sys/param.h defines the BYTE_ORDER macro.
4084 cat >conftest.
$ac_ext <<_ACEOF
4087 cat confdefs.h
>>conftest.
$ac_ext
4088 cat >>conftest.
$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4090 #include <sys/types.h>
4091 #include <sys/param.h>
4096 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4104 rm -f conftest.
$ac_objext
4105 if { (ac_try
="$ac_compile"
4107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_compile") 2>conftest.er1
4113 grep -v '^ *+' conftest.er1 >conftest.err
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4121 *) ac_try_echo
=$ac_try;;
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; } &&
4128 { ac_try
='test -s conftest.$ac_objext'
4129 { (case "(($ac_try" in
4130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_try") 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then
4138 # It does; now see whether it defined to BIG_ENDIAN or not.
4139 cat >conftest.$ac_ext <<_ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 #include <sys/types.h>
4146 #include <sys/param.h>
4151 #if BYTE_ORDER != BIG_ENDIAN
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4163 *) ac_try_echo
=$ac_try;;
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_compile") 2>conftest.er1
4168 grep -v '^ *+' conftest.er1
>conftest.err
4170 cat conftest.err
>&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4174 { (case "(($ac_try" in
4175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_try") 2>&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4186 *) ac_try_echo
=$ac_try;;
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_c_bigendian
=yes
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.
$ac_ext >&5
4198 ac_cv_c_bigendian
=no
4201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.
$ac_ext >&5
4206 # It does not; compile a test program.
4207 if test "$cross_compiling" = yes; then
4208 # try to guess the endianness by grepping values into an object file
4209 ac_cv_c_bigendian
=unknown
4210 cat >conftest.
$ac_ext <<_ACEOF
4213 cat confdefs.h
>>conftest.
$ac_ext
4214 cat >>conftest.
$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4217 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4218 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4219 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4220 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4221 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4225 _ascii (); _ebcdic ();
4230 rm -f conftest.
$ac_objext
4231 if { (ac_try
="$ac_compile"
4233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_compile") 2>conftest.er1
4239 grep -v '^ *+' conftest.er1 >conftest.err
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } &&
4244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4245 { (case "(($ac_try" in
4246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4247 *) ac_try_echo
=$ac_try;;
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_try") 2>&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; } &&
4254 { ac_try
='test -s conftest.$ac_objext'
4255 { (case "(($ac_try" in
4256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260 (eval "$ac_try") 2>&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4265 ac_cv_c_bigendian=yes
4267 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4268 if test "$ac_cv_c_bigendian" = unknown; then
4269 ac_cv_c_bigendian=no
4271 # finding both strings is unlikely to happen, but who knows?
4272 ac_cv_c_bigendian=unknown
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 cat >conftest.$ac_ext <<_ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4290 $ac_includes_default
4295 /* Are we little or big endian? From Harbison&Steele. */
4299 char c[sizeof (long int)];
4302 return u.c[sizeof (long int) - 1] == 1;
4308 rm -f conftest$ac_exeext
4309 if { (ac_try="$ac_link"
4311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4312 *) ac_try_echo
=$ac_try;;
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_link") 2>&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4319 { (case "(($ac_try" in
4320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_try") 2>&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 ac_cv_c_bigendian=no
4330 echo "$as_me: program exited with status $ac_status" >&5
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4335 ac_cv_c_bigendian=yes
4337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4346 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4347 case $ac_cv_c_bigendian in
4355 { { echo "$as_me:$LINENO: error: unknown endianness
4356 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4357 echo "$as_me: error: unknown endianness
4358 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4359 { (exit 1); exit 1; }; } ;;
4363 if test "$cross_compiling" = yes; then
4364 LLVM_CROSS_COMPILING=1
4367 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4368 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4369 if test "${ac_cv_build_exeext+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4373 ac_cv_build_exeext=.exe
4375 ac_build_prefix=${build_alias}-
4377 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4378 set dummy ${ac_build_prefix}gcc; ac_word=$2
4379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4381 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 if test -n "$BUILD_CC"; then
4385 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 BUILD_CC=$ac_cv_prog_BUILD_CC
4405 if test -n "$BUILD_CC"; then
4406 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4407 echo "${ECHO_T}$BUILD_CC" >&6; }
4409 { echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6; }
4414 if test -z "$BUILD_CC"; then
4415 # Extract the first word of "gcc", so it can be a program name with args.
4416 set dummy gcc; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 if test -n "$BUILD_CC"; then
4423 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4432 ac_cv_prog_BUILD_CC="gcc"
4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 BUILD_CC=$ac_cv_prog_BUILD_CC
4443 if test -n "$BUILD_CC"; then
4444 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4445 echo "${ECHO_T}$BUILD_CC" >&6; }
4447 { echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6; }
4452 if test -z "$BUILD_CC"; then
4453 # Extract the first word of "cc", so it can be a program name with args.
4454 set dummy cc; ac_word=$2
4455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4457 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 if test -n "$BUILD_CC"; then
4461 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4472 ac_prog_rejected=yes
4475 ac_cv_prog_BUILD_CC="cc"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 if test $ac_prog_rejected = yes; then
4484 # We found a bogon in the path, so make sure we never use it.
4485 set dummy $ac_cv_prog_BUILD_CC
4487 if test $# != 0; then
4488 # We chose a different compiler from the bogus one.
4489 # However, it has the same basename, so the bogon will be chosen
4490 # first if we set BUILD_CC to just the basename; use the full file name.
4492 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4497 BUILD_CC=$ac_cv_prog_BUILD_CC
4498 if test -n "$BUILD_CC"; then
4499 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4500 echo "${ECHO_T}$BUILD_CC" >&6; }
4502 { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4509 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4510 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4511 { (exit 1); exit 1; }; }
4512 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4514 echo 'int main () { return 0; }' > conftest.$ac_ext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4517 (eval $ac_build_link) 2>&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; then
4521 for file in conftest.*; do
4523 *.c | *.o | *.obj | *.dSYM) ;;
4524 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4528 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4529 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4530 { (exit 1); exit 1; }; }
4533 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4538 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4539 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4540 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4541 ac_build_exeext=$BUILD_EXEEXT
4543 ac_build_prefix=${build_alias}-
4544 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4545 set dummy ${ac_build_prefix}g++; ac_word=$2
4546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4548 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 if test -n "$BUILD_CXX"; then
4552 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4572 if test -n "$BUILD_CXX"; then
4573 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4574 echo "${ECHO_T}$BUILD_CXX" >&6; }
4576 { echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6; }
4581 if test -z "$BUILD_CXX"; then
4582 # Extract the first word of "g++", so it can be a program name with args.
4583 set dummy g++; ac_word=$2
4584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4586 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 if test -n "$BUILD_CXX"; then
4590 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_prog_BUILD_CXX="g++"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4610 if test -n "$BUILD_CXX"; then
4611 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4612 echo "${ECHO_T}$BUILD_CXX" >&6; }
4614 { echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6; }
4619 if test -z "$BUILD_CXX"; then
4620 # Extract the first word of "c++", so it can be a program name with args.
4621 set dummy c++; ac_word=$2
4622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 if test -n "$BUILD_CXX"; then
4628 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4639 ac_prog_rejected=yes
4642 ac_cv_prog_BUILD_CXX="c++"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 if test $ac_prog_rejected = yes; then
4651 # We found a bogon in the path, so make sure we never use it.
4652 set dummy $ac_cv_prog_BUILD_CXX
4654 if test $# != 0; then
4655 # We chose a different compiler from the bogus one.
4656 # However, it has the same basename, so the bogon will be chosen
4657 # first if we set BUILD_CXX to just the basename; use the full file name.
4659 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4664 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4665 if test -n "$BUILD_CXX"; then
4666 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4667 echo "${ECHO_T}$BUILD_CXX" >&6; }
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4677 LLVM_CROSS_COMPILING=0
4681 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4692 # Check whether --enable-optimized was given.
4693 if test "${enable_optimized+set}" = set; then
4694 enableval=$enable_optimized;
4699 if test ${enableval} = "no" ; then
4703 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4707 # Check whether --enable-profiling was given.
4708 if test "${enable_profiling+set}" = set; then
4709 enableval=$enable_profiling;
4714 if test ${enableval} = "no" ; then
4718 ENABLE_PROFILING=ENABLE_PROFILING=1
4722 # Check whether --enable-assertions was given.
4723 if test "${enable_assertions+set}" = set; then
4724 enableval=$enable_assertions;
4729 if test ${enableval} = "yes" ; then
4733 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4737 # Check whether --enable-expensive-checks was given.
4738 if test "${enable_expensive_checks+set}" = set; then
4739 enableval=$enable_expensive_checks;
4744 if test ${enableval} = "yes" ; then
4745 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4747 EXPENSIVE_CHECKS=yes
4750 ENABLE_EXPENSIVE_CHECKS=
4756 # Check whether --enable-debug-runtime was given.
4757 if test "${enable_debug_runtime+set}" = set; then
4758 enableval=$enable_debug_runtime;
4763 if test ${enableval} = "no" ; then
4767 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4771 # Check whether --enable-debug-symbols was given.
4772 if test "${enable_debug_symbols+set}" = set; then
4773 enableval=$enable_debug_symbols;
4778 if test ${enableval} = "no" ; then
4782 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4786 # Check whether --enable-jit was given.
4787 if test "${enable_jit+set}" = set; then
4788 enableval=$enable_jit;
4793 if test ${enableval} = "no"
4798 case "$llvm_cv_target_arch" in
4799 x86) TARGET_HAS_JIT=1
4801 Sparc) TARGET_HAS_JIT=0
4803 PowerPC) TARGET_HAS_JIT=1
4805 x86_64) TARGET_HAS_JIT=1
4807 Alpha) TARGET_HAS_JIT=1
4809 ARM) TARGET_HAS_JIT=1
4811 Mips) TARGET_HAS_JIT=0
4813 PIC16) TARGET_HAS_JIT=0
4815 XCore) TARGET_HAS_JIT=0
4817 MSP430) TARGET_HAS_JIT=0
4819 SystemZ) TARGET_HAS_JIT=0
4821 Blackfin) TARGET_HAS_JIT=0
4823 MBlaze) TARGET_HAS_JIT=0
4830 # Check whether --enable-doxygen was given.
4831 if test "${enable_doxygen+set}" = set; then
4832 enableval=$enable_doxygen;
4837 case "$enableval" in
4838 yes) ENABLE_DOXYGEN=1
4840 no) ENABLE_DOXYGEN=0
4842 default) ENABLE_DOXYGEN=0
4844 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4845 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4846 { (exit 1); exit 1; }; } ;;
4849 # Check whether --enable-threads was given.
4850 if test "${enable_threads+set}" = set; then
4851 enableval=$enable_threads;
4856 case "$enableval" in
4857 yes) ENABLE_THREADS=1
4859 no) ENABLE_THREADS=0
4861 default) ENABLE_THREADS=1
4863 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4864 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4865 { (exit 1); exit 1; }; } ;;
4868 cat >>confdefs.h <<_ACEOF
4869 #define ENABLE_THREADS $ENABLE_THREADS
4873 # Check whether --enable-pic was given.
4874 if test "${enable_pic+set}" = set; then
4875 enableval=$enable_pic;
4880 case "$enableval" in
4885 default) ENABLE_PIC=1
4887 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4888 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4889 { (exit 1); exit 1; }; } ;;
4892 cat >>confdefs.h <<_ACEOF
4893 #define ENABLE_PIC $ENABLE_PIC
4897 # Check whether --enable-shared was given.
4898 if test "${enable_shared+set}" = set; then
4899 enableval=$enable_shared;
4904 case "$enableval" in
4905 yes) ENABLE_SHARED=1
4909 default) ENABLE_SHARED=0
4911 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4912 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4913 { (exit 1); exit 1; }; } ;;
4917 # Check whether --enable-targets was given.
4918 if test "${enable_targets+set}" = set; then
4919 enableval=$enable_targets;
4924 if test "$enableval" = host-only ; then
4927 case "$enableval" in
4928 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4929 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4931 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4932 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4933 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4934 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4935 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4936 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4937 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4938 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4939 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4940 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4941 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4942 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4943 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4944 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4945 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4946 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4947 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4948 host) case "$llvm_cv_target_arch" in
4949 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4950 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4951 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4952 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4953 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4954 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4955 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4956 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4957 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4958 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4959 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4960 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4961 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4962 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4963 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4964 echo "$as_me: error: Can not set target to build" >&2;}
4965 { (exit 1); exit 1; }; } ;;
4967 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4968 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4969 { (exit 1); exit 1; }; } ;;
4974 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4977 # Determine whether we are building LLVM support for the native architecture.
4978 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4979 for a_target in $TARGETS_TO_BUILD; do
4980 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4981 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4983 cat >>confdefs.h <<_ACEOF
4984 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4990 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4991 # target feature def files.
4992 LLVM_ENUM_TARGETS=""
4993 LLVM_ENUM_ASM_PRINTERS=""
4994 LLVM_ENUM_ASM_PARSERS=""
4995 LLVM_ENUM_DISASSEMBLERS=""
4996 for target_to_build in $TARGETS_TO_BUILD; do
4997 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4998 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4999 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5001 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5002 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5004 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5005 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5013 # Check whether --enable-cbe-printf-a was given.
5014 if test "${enable_cbe_printf_a+set}" = set; then
5015 enableval=$enable_cbe_printf_a;
5020 case "$enableval" in
5021 yes) ENABLE_CBE_PRINTF_A=1
5023 no) ENABLE_CBE_PRINTF_A=0
5025 default) ENABLE_CBE_PRINTF_A=1
5027 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5028 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5029 { (exit 1); exit 1; }; } ;;
5032 cat >>confdefs.h <<_ACEOF
5033 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5038 # Check whether --with-llvmgccdir was given.
5039 if test "${with_llvmgccdir+set}" = set; then
5040 withval=$with_llvmgccdir;
5046 default) WITH_LLVMGCCDIR=default ;;
5047 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5048 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5049 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5050 { (exit 1); exit 1; }; } ;;
5054 # Check whether --with-llvmgcc was given.
5055 if test "${with_llvmgcc+set}" = set; then
5056 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5062 # Check whether --with-llvmgxx was given.
5063 if test "${with_llvmgxx+set}" = set; then
5064 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5069 if test -n "$LLVMGCC"; then
5070 LLVMGCCCOMMAND="$LLVMGCC"
5073 if test -n "$LLVMGXX"; then
5074 LLVMGXXCOMMAND="$LLVMGXX"
5077 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5078 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5079 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5080 { (exit 1); exit 1; }; };
5083 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5084 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5085 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5086 { (exit 1); exit 1; }; };
5090 # Check whether --with-clang was given.
5091 if test "${with_clang+set}" = set; then
5092 withval=$with_clang;
5099 # Check whether --with-built-clang was given.
5100 if test "${with_built_clang+set}" = set; then
5101 withval=$with_built_clang;
5103 with_built_clang=check
5107 { echo "$as_me:$LINENO: checking clang compiler" >&5
5108 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5111 if test "$with_clang" != "default"; then
5112 WITH_CLANGPATH="$with_clang"
5113 if ! test -x "$WITH_CLANGPATH"; then
5114 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5115 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5116 { (exit 1); exit 1; }; }
5118 elif test "$with_built_clang" = "yes"; then
5120 elif test "$with_built_clang" = "no"; then
5123 if test "$with_built_clang" != "check"; then
5124 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5125 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5126 { (exit 1); exit 1; }; }
5129 if test -f ${srcdir}/tools/clang/README.txt; then
5134 if ! test -z "$WITH_CLANGPATH"; then
5135 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5136 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5137 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang
++`
5138 elif test "$WITH_BUILT_CLANG" = "1"; then
5139 { echo "$as_me:$LINENO: result: built" >&5
5140 echo "${ECHO_T}built" >&6; }
5142 { echo "$as_me:$LINENO: result: none" >&5
5143 echo "${ECHO_T}none" >&6; }
5145 CLANGPATH=$WITH_CLANGPATH
5147 CLANGXXPATH=$WITH_CLANGXXPATH
5149 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5153 # Check whether --with-optimize-option was given.
5154 if test "${with_optimize_option+set}" = set; then
5155 withval=$with_optimize_option;
5160 { echo "$as_me:$LINENO: checking optimization flags" >&5
5161 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5164 case "$llvm_cv_os_type" in
5165 MingW) optimize_option=-O3 ;;
5166 *) optimize_option=-O2 ;;
5168 *) optimize_option="$withval" ;;
5170 OPTIMIZE_OPTION=$optimize_option
5172 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5173 echo "${ECHO_T}$optimize_option" >&6; }
5176 # Check whether --with-extra-options was given.
5177 if test "${with_extra_options+set}" = set; then
5178 withval=$with_extra_options;
5184 default) EXTRA_OPTIONS= ;;
5185 *) EXTRA_OPTIONS=$withval ;;
5187 EXTRA_OPTIONS=$EXTRA_OPTIONS
5190 # Check whether --enable-bindings was given.
5191 if test "${enable_bindings+set}" = set; then
5192 enableval=$enable_bindings;
5197 BINDINGS_TO_BUILD=""
5198 case "$enableval" in
5199 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5200 all ) BINDINGS_TO_BUILD="ocaml" ;;
5201 none | no) BINDINGS_TO_BUILD="" ;;
5202 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5203 case "$a_binding" in
5204 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5205 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5206 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5207 { (exit 1); exit 1; }; } ;;
5214 # Check whether --with-ocaml-libdir was given.
5215 if test "${with_ocaml_libdir+set}" = set; then
5216 withval=$with_ocaml_libdir;
5222 auto) with_ocaml_libdir="$withval" ;;
5223 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5224 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5225 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5226 { (exit 1); exit 1; }; } ;;
5230 # Check whether --with-c-include-dirs was given.
5231 if test "${with_c_include_dirs+set}" = set; then
5232 withval=$with_c_include_dirs;
5238 cat >>confdefs.h <<_ACEOF
5239 #define C_INCLUDE_DIRS "$withval"
5244 # Check whether --with-cxx-include-root was given.
5245 if test "${with_cxx_include_root+set}" = set; then
5246 withval=$with_cxx_include_root;
5252 cat >>confdefs.h <<_ACEOF
5253 #define CXX_INCLUDE_ROOT "$withval"
5258 # Check whether --with-cxx-include-arch was given.
5259 if test "${with_cxx_include_arch+set}" = set; then
5260 withval=$with_cxx_include_arch;
5266 cat >>confdefs.h <<_ACEOF
5267 #define CXX_INCLUDE_ARCH "$withval"
5272 # Check whether --with-cxx-include-32bit-dir was given.
5273 if test "${with_cxx_include_32bit_dir+set}" = set; then
5274 withval=$with_cxx_include_32bit_dir;
5280 cat >>confdefs.h <<_ACEOF
5281 #define CXX_INCLUDE_32BIT_DIR "$withval"
5286 # Check whether --with-cxx-include-64bit-dir was given.
5287 if test "${with_cxx_include_64bit_dir+set}" = set; then
5288 withval=$with_cxx_include_64bit_dir;
5294 cat >>confdefs.h <<_ACEOF
5295 #define CXX_INCLUDE_64BIT_DIR "$withval"
5300 # Check whether --with-binutils-include was given.
5301 if test "${with_binutils_include+set}" = set; then
5302 withval=$with_binutils_include;
5308 default) WITH_BINUTILS_INCDIR=default ;;
5309 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5310 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5311 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5312 { (exit 1); exit 1; }; } ;;
5314 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5315 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5317 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5318 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5319 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5320 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5321 { (exit 1); exit 1; }; };
5325 # Check whether --enable-libffi was given.
5326 if test "${enable_libffi+set}" = set; then
5327 enableval=$enable_libffi; case "$enableval" in
5328 yes) llvm_cv_enable_libffi="yes" ;;
5329 no) llvm_cv_enable_libffi="no" ;;
5330 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5331 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5332 { (exit 1); exit 1; }; } ;;
5335 llvm_cv_enable_libffi=no
5339 if test "$llvm_cv_os_type" = "Win32" ; then
5345 # Check whether --enable-llvmc-dynamic was given.
5346 if test "${enable_llvmc_dynamic+set}" = set; then
5347 enableval=$enable_llvmc_dynamic;
5349 enableval=$llvmc_dynamic
5352 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5353 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5356 ENABLE_LLVMC_DYNAMIC=
5360 # Check whether --enable-llvmc-dynamic-plugins was given.
5361 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5362 enableval=$enable_llvmc_dynamic_plugins;
5367 if test ${enableval} = "yes" ; then
5368 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5371 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5377 ac_cpp='$CPP $CPPFLAGS'
5378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5381 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5382 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5383 # On Suns, sometimes $CPP names a directory.
5384 if test -n "$CPP" && test -d "$CPP"; then
5387 if test -z "$CPP"; then
5388 if test "${ac_cv_prog_CPP+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 # Double quotes because CPP needs to be expanded
5392 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5395 for ac_c_preproc_warn_flag in '' yes
5397 # Use a header file that comes with gcc, so configuring glibc
5398 # with a fresh cross-compiler works.
5399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5400 # <limits.h> exists even on freestanding compilers.
5401 # On the NeXT, cc -E runs the code through the compiler's parser,
5402 # not just through cpp. "Syntax error" is here to catch this case.
5403 cat >conftest.$ac_ext <<_ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5410 # include <limits.h>
5412 # include <assert.h>
5416 if { (ac_try="$ac_cpp conftest.$ac_ext"
5418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5419 *) ac_try_echo
=$ac_try;;
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5424 grep -v '^ *+' conftest.er1
>conftest.err
5426 cat conftest.err
>&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } >/dev
/null
; then
5429 if test -s conftest.err
; then
5430 ac_cpp_err
=$ac_c_preproc_warn_flag
5431 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5438 if test -z "$ac_cpp_err"; then
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.
$ac_ext >&5
5444 # Broken: fails on valid input.
5448 rm -f conftest.err conftest.
$ac_ext
5450 # OK, works on sane cases. Now check whether nonexistent headers
5451 # can be detected and how.
5452 cat >conftest.
$ac_ext <<_ACEOF
5455 cat confdefs.h
>>conftest.
$ac_ext
5456 cat >>conftest.
$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <ac_nonexistent.h>
5460 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5468 grep -v '^ *+' conftest.er1 >conftest.err
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } >/dev/null; then
5473 if test -s conftest.err; then
5474 ac_cpp_err=$ac_c_preproc_warn_flag
5475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5482 if test -z "$ac_cpp_err"; then
5483 # Broken: success on invalid input.
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 # Passes both tests.
5494 rm -f conftest.err conftest.$ac_ext
5497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5498 rm -f conftest.err conftest.
$ac_ext
5499 if $ac_preproc_ok; then
5511 { echo "$as_me:$LINENO: result: $CPP" >&5
5512 echo "${ECHO_T}$CPP" >&6; }
5514 for ac_c_preproc_warn_flag
in '' yes
5516 # Use a header file that comes with gcc, so configuring glibc
5517 # with a fresh cross-compiler works.
5518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5519 # <limits.h> exists even on freestanding compilers.
5520 # On the NeXT, cc -E runs the code through the compiler's parser,
5521 # not just through cpp. "Syntax error" is here to catch this case.
5522 cat >conftest.
$ac_ext <<_ACEOF
5525 cat confdefs.h
>>conftest.
$ac_ext
5526 cat >>conftest.
$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5529 # include <limits.h>
5531 # include <assert.h>
5535 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5543 grep -v '^ *+' conftest.er1 >conftest.err
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } >/dev/null; then
5548 if test -s conftest.err; then
5549 ac_cpp_err=$ac_c_preproc_warn_flag
5550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5557 if test -z "$ac_cpp_err"; then
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 # Broken: fails on valid input.
5567 rm -f conftest.err conftest.$ac_ext
5569 # OK, works on sane cases. Now check whether nonexistent headers
5570 # can be detected and how.
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5577 #include <ac_nonexistent.h>
5579 if { (ac_try="$ac_cpp conftest.$ac_ext"
5581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5582 *) ac_try_echo
=$ac_try;;
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5587 grep -v '^ *+' conftest.er1
>conftest.err
5589 cat conftest.err
>&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } >/dev
/null
; then
5592 if test -s conftest.err
; then
5593 ac_cpp_err
=$ac_c_preproc_warn_flag
5594 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5601 if test -z "$ac_cpp_err"; then
5602 # Broken: success on invalid input.
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.
$ac_ext >&5
5608 # Passes both tests.
5613 rm -f conftest.err conftest.
$ac_ext
5616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5617 rm -f conftest.err conftest.
$ac_ext
5618 if $ac_preproc_ok; then
5621 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5622 See \`config.log' for more details." >&5
5623 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5624 See \`config.log' for more details." >&2;}
5625 { (exit 1); exit 1; }; }
5629 ac_cpp
='$CPP $CPPFLAGS'
5630 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5635 ac_cpp
='$CPP $CPPFLAGS'
5636 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5639 if test -n "$ac_tool_prefix"; then
5642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5643 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5646 if test "${ac_cv_prog_CC+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 if test -n "$CC"; then
5650 ac_cv_prog_CC
="$CC" # Let the user override the test.
5652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5656 test -z "$as_dir" && as_dir
=.
5657 for ac_exec_ext
in '' $ac_executable_extensions; do
5658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5659 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 if test -n "$CC"; then
5671 { echo "$as_me:$LINENO: result: $CC" >&5
5672 echo "${ECHO_T}$CC" >&6; }
5674 { echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6; }
5679 test -n "$CC" && break
5682 if test -z "$CC"; then
5686 # Extract the first word of "$ac_prog", so it can be a program name with args.
5687 set dummy
$ac_prog; ac_word
=$2
5688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 if test -n "$ac_ct_CC"; then
5694 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5700 test -z "$as_dir" && as_dir
=.
5701 for ac_exec_ext
in '' $ac_executable_extensions; do
5702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5703 ac_cv_prog_ac_ct_CC
="$ac_prog"
5704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5714 if test -n "$ac_ct_CC"; then
5715 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5716 echo "${ECHO_T}$ac_ct_CC" >&6; }
5718 { echo "$as_me:$LINENO: result: no" >&5
5719 echo "${ECHO_T}no" >&6; }
5723 test -n "$ac_ct_CC" && break
5726 if test "x$ac_ct_CC" = x
; then
5729 case $cross_compiling:$ac_tool_warned in
5731 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5732 whose name does not start with the host triplet. If you think this
5733 configuration is useful to you, please write to autoconf@gnu.org." >&5
5734 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5735 whose name does not start with the host triplet. If you think this
5736 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5737 ac_tool_warned
=yes ;;
5744 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5745 See \`config.log' for more details." >&5
5746 echo "$as_me: error: no acceptable C compiler found in \$PATH
5747 See \`config.log' for more details." >&2;}
5748 { (exit 1); exit 1; }; }
5750 # Provide some information about the compiler.
5751 echo "$as_me:$LINENO: checking for C compiler version" >&5
5752 ac_compiler
=`set X $ac_compile; echo $2`
5753 { (ac_try
="$ac_compiler --version >&5"
5755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_compiler --version >&5") 2>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }
5763 { (ac_try="$ac_compiler -v >&5"
5765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5766 *) ac_try_echo
=$ac_try;;
5768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769 (eval "$ac_compiler -v >&5") 2>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }
5773 { (ac_try
="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }
5784 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5785 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5786 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 cat >conftest.$ac_ext <<_ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5807 rm -f conftest.$ac_objext
5808 if { (ac_try="$ac_compile"
5810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5811 *) ac_try_echo
=$ac_try;;
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_compile") 2>conftest.er1
5816 grep -v '^ *+' conftest.er1
>conftest.err
5818 cat conftest.err
>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5822 { (case "(($ac_try" in
5823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_try") 2>&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (case "(($ac_try" in
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_try") 2>&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.
$ac_ext >&5
5849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5850 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5853 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5854 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5855 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5856 ac_test_CFLAGS
=${CFLAGS+set}
5857 ac_save_CFLAGS
=$CFLAGS
5858 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5859 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5860 if test "${ac_cv_prog_cc_g+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 ac_save_c_werror_flag
=$ac_c_werror_flag
5864 ac_c_werror_flag
=yes
5867 cat >conftest.
$ac_ext <<_ACEOF
5870 cat confdefs.h
>>conftest.
$ac_ext
5871 cat >>conftest.
$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5882 rm -f conftest.
$ac_objext
5883 if { (ac_try
="$ac_compile"
5885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_compile") 2>conftest.er1
5891 grep -v '^ *+' conftest.er1 >conftest.err
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5897 { (case "(($ac_try" in
5898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5899 *) ac_try_echo
=$ac_try;;
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_try") 2>&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; } &&
5906 { ac_try
='test -s conftest.$ac_objext'
5907 { (case "(($ac_try" in
5908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_try") 2>&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; }; then
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5922 cat >conftest.$ac_ext <<_ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5937 rm -f conftest.$ac_objext
5938 if { (ac_try="$ac_compile"
5940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5941 *) ac_try_echo
=$ac_try;;
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_compile") 2>conftest.er1
5946 grep -v '^ *+' conftest.er1
>conftest.err
5948 cat conftest.err
>&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } &&
5951 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5952 { (case "(($ac_try" in
5953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_try") 2>&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest.$ac_objext'
5962 { (case "(($ac_try" in
5963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5964 *) ac_try_echo
=$ac_try;;
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_try") 2>&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.
$ac_ext >&5
5976 ac_c_werror_flag
=$ac_save_c_werror_flag
5978 cat >conftest.
$ac_ext <<_ACEOF
5981 cat confdefs.h
>>conftest.
$ac_ext
5982 cat >>conftest.
$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5993 rm -f conftest.
$ac_objext
5994 if { (ac_try
="$ac_compile"
5996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_compile") 2>conftest.er1
6002 grep -v '^ *+' conftest.er1 >conftest.err
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6008 { (case "(($ac_try" in
6009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6010 *) ac_try_echo
=$ac_try;;
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_try") 2>&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; } &&
6017 { ac_try
='test -s conftest.$ac_objext'
6018 { (case "(($ac_try" in
6019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023 (eval "$ac_try") 2>&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 ac_c_werror_flag=$ac_save_c_werror_flag
6044 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6045 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6046 if test "$ac_test_CFLAGS" = set; then
6047 CFLAGS=$ac_save_CFLAGS
6048 elif test $ac_cv_prog_cc_g = yes; then
6049 if test "$GCC" = yes; then
6055 if test "$GCC" = yes; then
6061 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6062 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6063 if test "${ac_cv_prog_cc_c89+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 ac_cv_prog_cc_c89=no
6068 cat >conftest.$ac_ext <<_ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6076 #include <sys/types.h>
6077 #include <sys/stat.h>
6078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6079 struct buf { int x; };
6080 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6081 static char *e (p, i)
6087 static char *f (char * (*g) (char **, int), char **p, ...)
6092 s = g (p, va_arg (v,int));
6097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6098 function prototypes and stuff, but not '\xHH' hex character constants.
6099 These don't provoke an error unfortunately, instead are silently treated
6100 as 'x'. The following induces an error, until -std is added to get
6101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6102 array size at least. It's necessary to write '\x00'==0 to get something
6103 that's true only with -std. */
6104 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6106 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6107 inside strings and character constants. */
6109 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6111 int test (int i, double x);
6112 struct s1 {int (*f) (int a);};
6113 struct s2 {int (*f) (double a);};
6114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6125 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6126 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6128 CC="$ac_save_CC $ac_arg"
6129 rm -f conftest.$ac_objext
6130 if { (ac_try="$ac_compile"
6132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6133 *) ac_try_echo
=$ac_try;;
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_compile") 2>conftest.er1
6138 grep -v '^ *+' conftest.er1
>conftest.err
6140 cat conftest.err
>&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6144 { (case "(($ac_try" in
6145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_try") 2>&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (case "(($ac_try" in
6155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6156 *) ac_try_echo
=$ac_try;;
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_try") 2>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 ac_cv_prog_cc_c89
=$ac_arg
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.
$ac_ext >&5
6171 rm -f core conftest.err conftest.
$ac_objext
6172 test "x$ac_cv_prog_cc_c89" != "xno" && break
6174 rm -f conftest.
$ac_ext
6179 case "x$ac_cv_prog_cc_c89" in
6181 { echo "$as_me:$LINENO: result: none needed" >&5
6182 echo "${ECHO_T}none needed" >&6; } ;;
6184 { echo "$as_me:$LINENO: result: unsupported" >&5
6185 echo "${ECHO_T}unsupported" >&6; } ;;
6187 CC
="$CC $ac_cv_prog_cc_c89"
6188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6189 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6194 ac_cpp
='$CPP $CPPFLAGS'
6195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6200 ac_cpp
='$CXXCPP $CPPFLAGS'
6201 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6204 if test -z "$CXX"; then
6205 if test -n "$CCC"; then
6208 if test -n "$ac_tool_prefix"; then
6211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6212 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215 if test "${ac_cv_prog_CXX+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 if test -n "$CXX"; then
6219 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6225 test -z "$as_dir" && as_dir
=.
6226 for ac_exec_ext
in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 if test -n "$CXX"; then
6240 { echo "$as_me:$LINENO: result: $CXX" >&5
6241 echo "${ECHO_T}$CXX" >&6; }
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6248 test -n "$CXX" && break
6251 if test -z "$CXX"; then
6255 # Extract the first word of "$ac_prog", so it can be a program name with args.
6256 set dummy
$ac_prog; ac_word
=$2
6257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 if test -n "$ac_ct_CXX"; then
6263 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6269 test -z "$as_dir" && as_dir
=.
6270 for ac_exec_ext
in '' $ac_executable_extensions; do
6271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6272 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6283 if test -n "$ac_ct_CXX"; then
6284 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6285 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6287 { echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6; }
6292 test -n "$ac_ct_CXX" && break
6295 if test "x$ac_ct_CXX" = x
; then
6298 case $cross_compiling:$ac_tool_warned in
6300 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6301 whose name does not start with the host triplet. If you think this
6302 configuration is useful to you, please write to autoconf@gnu.org." >&5
6303 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6304 whose name does not start with the host triplet. If you think this
6305 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6306 ac_tool_warned
=yes ;;
6314 # Provide some information about the compiler.
6315 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6316 ac_compiler
=`set X $ac_compile; echo $2`
6317 { (ac_try
="$ac_compiler --version >&5"
6319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_compiler --version >&5") 2>&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }
6327 { (ac_try="$ac_compiler -v >&5"
6329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6330 *) ac_try_echo
=$ac_try;;
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_compiler -v >&5") 2>&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }
6337 { (ac_try
="$ac_compiler -V >&5"
6339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compiler -V >&5") 2>&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }
6348 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6349 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6350 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 cat >conftest.$ac_ext <<_ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6371 rm -f conftest.$ac_objext
6372 if { (ac_try="$ac_compile"
6374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6375 *) ac_try_echo
=$ac_try;;
6377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_compile") 2>conftest.er1
6380 grep -v '^ *+' conftest.er1
>conftest.err
6382 cat conftest.err
>&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6386 { (case "(($ac_try" in
6387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_try") 2>&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (case "(($ac_try" in
6397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6398 *) ac_try_echo
=$ac_try;;
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_try") 2>&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.
$ac_ext >&5
6413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6414 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6417 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6418 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6419 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6420 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6421 ac_save_CXXFLAGS
=$CXXFLAGS
6422 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6423 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6424 if test "${ac_cv_prog_cxx_g+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6428 ac_cxx_werror_flag
=yes
6431 cat >conftest.
$ac_ext <<_ACEOF
6434 cat confdefs.h
>>conftest.
$ac_ext
6435 cat >>conftest.
$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6446 rm -f conftest.
$ac_objext
6447 if { (ac_try
="$ac_compile"
6449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_compile") 2>conftest.er1
6455 grep -v '^ *+' conftest.er1 >conftest.err
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } &&
6460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6461 { (case "(($ac_try" in
6462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6463 *) ac_try_echo
=$ac_try;;
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_try") 2>&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; } &&
6470 { ac_try
='test -s conftest.$ac_objext'
6471 { (case "(($ac_try" in
6472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_try") 2>&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6480 ac_cv_prog_cxx_g=yes
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6486 cat >conftest.$ac_ext <<_ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6501 rm -f conftest.$ac_objext
6502 if { (ac_try="$ac_compile"
6504 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6505 *) ac_try_echo
=$ac_try;;
6507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_compile") 2>conftest.er1
6510 grep -v '^ *+' conftest.er1
>conftest.err
6512 cat conftest.err
>&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6516 { (case "(($ac_try" in
6517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_try") 2>&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest.$ac_objext'
6526 { (case "(($ac_try" in
6527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6528 *) ac_try_echo
=$ac_try;;
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_try") 2>&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.
$ac_ext >&5
6540 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6542 cat >conftest.
$ac_ext <<_ACEOF
6545 cat confdefs.h
>>conftest.
$ac_ext
6546 cat >>conftest.
$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6557 rm -f conftest.
$ac_objext
6558 if { (ac_try
="$ac_compile"
6560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_compile") 2>conftest.er1
6566 grep -v '^ *+' conftest.er1 >conftest.err
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } &&
6571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6572 { (case "(($ac_try" in
6573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6574 *) ac_try_echo
=$ac_try;;
6576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_try") 2>&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try
='test -s conftest.$ac_objext'
6582 { (case "(($ac_try" in
6583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_try") 2>&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 ac_cv_prog_cxx_g=yes
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6609 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6610 if test "$ac_test_CXXFLAGS" = set; then
6611 CXXFLAGS=$ac_save_CXXFLAGS
6612 elif test $ac_cv_prog_cxx_g = yes; then
6613 if test "$GXX" = yes; then
6619 if test "$GXX" = yes; then
6626 ac_cpp='$CPP $CPPFLAGS'
6627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6632 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6633 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6634 if test "${lt_cv_path_NM+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 if test -n "$NM"; then
6638 # Let the user override the test.
6641 lt_nm_to_check="${ac_tool_prefix}nm"
6642 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6643 lt_nm_to_check="$lt_nm_to_check nm"
6645 for lt_tmp_nm in $lt_nm_to_check; do
6646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6647 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6649 test -z "$ac_dir" && ac_dir=.
6650 tmp_nm="$ac_dir/$lt_tmp_nm"
6651 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6652 # Check to see if the nm accepts a BSD-compat flag.
6653 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6654 # nm: unknown option "B" ignored
6655 # Tru64's nm complains that
/dev
/null is an invalid object
file
6656 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6657 */dev
/null
* |
*'Invalid file or object type'*)
6658 lt_cv_path_NM
="$tmp_nm -B"
6662 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6664 lt_cv_path_NM
="$tmp_nm -p"
6668 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6669 continue # so that we can try to find one that supports BSD flags
6678 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6681 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6682 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6687 { echo "$as_me:$LINENO: checking for GNU make" >&5
6688 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6689 if test "${llvm_cv_gnu_make_command+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 llvm_cv_gnu_make_command
=''
6693 for a
in "$MAKE" make gmake gnumake
; do
6694 if test -z "$a" ; then continue ; fi ;
6695 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6697 llvm_cv_gnu_make_command
=$a ;
6702 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6703 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6704 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6708 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6709 echo "${ECHO_T}\"Not found\"" >&6; };
6713 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6714 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6716 if test "$LN_S" = "ln -s"; then
6717 { echo "$as_me:$LINENO: result: yes" >&5
6718 echo "${ECHO_T}yes" >&6; }
6720 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6721 echo "${ECHO_T}no, using $LN_S" >&6; }
6724 # Extract the first word of "cmp", so it can be a program name with args.
6725 set dummy
cmp; ac_word
=$2
6726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728 if test "${ac_cv_path_CMP+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6740 test -z "$as_dir" && as_dir
=.
6741 for ac_exec_ext
in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6756 if test -n "$CMP"; then
6757 { echo "$as_me:$LINENO: result: $CMP" >&5
6758 echo "${ECHO_T}$CMP" >&6; }
6760 { echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6; }
6765 # Extract the first word of "cp", so it can be a program name with args.
6766 set dummy
cp; ac_word
=$2
6767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769 if test "${ac_cv_path_CP+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6781 test -z "$as_dir" && as_dir
=.
6782 for ac_exec_ext
in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6797 if test -n "$CP"; then
6798 { echo "$as_me:$LINENO: result: $CP" >&5
6799 echo "${ECHO_T}$CP" >&6; }
6801 { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6806 # Extract the first word of "date", so it can be a program name with args.
6807 set dummy
date; ac_word
=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_path_DATE+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir
=.
6823 for ac_exec_ext
in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6825 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6837 DATE
=$ac_cv_path_DATE
6838 if test -n "$DATE"; then
6839 { echo "$as_me:$LINENO: result: $DATE" >&5
6840 echo "${ECHO_T}$DATE" >&6; }
6842 { echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6; }
6847 # Extract the first word of "find", so it can be a program name with args.
6848 set dummy
find; ac_word
=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_FIND+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir
=.
6864 for ac_exec_ext
in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6878 FIND
=$ac_cv_path_FIND
6879 if test -n "$FIND"; then
6880 { echo "$as_me:$LINENO: result: $FIND" >&5
6881 echo "${ECHO_T}$FIND" >&6; }
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6888 # Extract the first word of "grep", so it can be a program name with args.
6889 set dummy
grep; ac_word
=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_path_GREP+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6904 test -z "$as_dir" && as_dir
=.
6905 for ac_exec_ext
in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6919 GREP
=$ac_cv_path_GREP
6920 if test -n "$GREP"; then
6921 { echo "$as_me:$LINENO: result: $GREP" >&5
6922 echo "${ECHO_T}$GREP" >&6; }
6924 { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6929 # Extract the first word of "mkdir", so it can be a program name with args.
6930 set dummy mkdir
; ac_word
=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_path_MKDIR+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6945 test -z "$as_dir" && as_dir
=.
6946 for ac_exec_ext
in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6960 MKDIR
=$ac_cv_path_MKDIR
6961 if test -n "$MKDIR"; then
6962 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6963 echo "${ECHO_T}$MKDIR" >&6; }
6965 { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6970 # Extract the first word of "mv", so it can be a program name with args.
6971 set dummy
mv; ac_word
=$2
6972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974 if test "${ac_cv_path_MV+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
6982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6986 test -z "$as_dir" && as_dir
=.
6987 for ac_exec_ext
in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
7002 if test -n "$MV"; then
7003 { echo "$as_me:$LINENO: result: $MV" >&5
7004 echo "${ECHO_T}$MV" >&6; }
7006 { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7011 if test -n "$ac_tool_prefix"; then
7012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7013 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_prog_RANLIB+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 if test -n "$RANLIB"; then
7020 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir
=.
7027 for ac_exec_ext
in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 RANLIB
=$ac_cv_prog_RANLIB
7040 if test -n "$RANLIB"; then
7041 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7042 echo "${ECHO_T}$RANLIB" >&6; }
7044 { echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6; }
7050 if test -z "$ac_cv_prog_RANLIB"; then
7051 ac_ct_RANLIB
=$RANLIB
7052 # Extract the first word of "ranlib", so it can be a program name with args.
7053 set dummy ranlib
; ac_word
=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 if test -n "$ac_ct_RANLIB"; then
7060 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7066 test -z "$as_dir" && as_dir
=.
7067 for ac_exec_ext
in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7069 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7080 if test -n "$ac_ct_RANLIB"; then
7081 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7082 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7084 { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7088 if test "x$ac_ct_RANLIB" = x
; then
7091 case $cross_compiling:$ac_tool_warned in
7093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7094 whose name does not start with the host triplet. If you think this
7095 configuration is useful to you, please write to autoconf@gnu.org." >&5
7096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7097 whose name does not start with the host triplet. If you think this
7098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7099 ac_tool_warned
=yes ;;
7101 RANLIB
=$ac_ct_RANLIB
7104 RANLIB
="$ac_cv_prog_RANLIB"
7107 if test -n "$ac_tool_prefix"; then
7108 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7109 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7112 if test "${ac_cv_prog_AR+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 if test -n "$AR"; then
7116 ac_cv_prog_AR
="$AR" # Let the user override the test.
7118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7122 test -z "$as_dir" && as_dir
=.
7123 for ac_exec_ext
in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 if test -n "$AR"; then
7137 { echo "$as_me:$LINENO: result: $AR" >&5
7138 echo "${ECHO_T}$AR" >&6; }
7140 { echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6; }
7146 if test -z "$ac_cv_prog_AR"; then
7148 # Extract the first word of "ar", so it can be a program name with args.
7149 set dummy
ar; ac_word
=$2
7150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 if test -n "$ac_ct_AR"; then
7156 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7162 test -z "$as_dir" && as_dir
=.
7163 for ac_exec_ext
in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7165 ac_cv_prog_ac_ct_AR
="ar"
7166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7176 if test -n "$ac_ct_AR"; then
7177 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7178 echo "${ECHO_T}$ac_ct_AR" >&6; }
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7184 if test "x$ac_ct_AR" = x
; then
7187 case $cross_compiling:$ac_tool_warned in
7189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7190 whose name does not start with the host triplet. If you think this
7191 configuration is useful to you, please write to autoconf@gnu.org." >&5
7192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7193 whose name does not start with the host triplet. If you think this
7194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7195 ac_tool_warned
=yes ;;
7203 # Extract the first word of "rm", so it can be a program name with args.
7204 set dummy
rm; ac_word
=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_RM+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
7215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7219 test -z "$as_dir" && as_dir
=.
7220 for ac_exec_ext
in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
7235 if test -n "$RM"; then
7236 { echo "$as_me:$LINENO: result: $RM" >&5
7237 echo "${ECHO_T}$RM" >&6; }
7239 { echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6; }
7244 # Extract the first word of "sed", so it can be a program name with args.
7245 set dummy
sed; ac_word
=$2
7246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248 if test "${ac_cv_path_SED+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7260 test -z "$as_dir" && as_dir
=.
7261 for ac_exec_ext
in '' $ac_executable_extensions; do
7262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7263 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7276 if test -n "$SED"; then
7277 { echo "$as_me:$LINENO: result: $SED" >&5
7278 echo "${ECHO_T}$SED" >&6; }
7280 { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7285 # Extract the first word of "tar", so it can be a program name with args.
7286 set dummy
tar; ac_word
=$2
7287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289 if test "${ac_cv_path_TAR+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir
=.
7302 for ac_exec_ext
in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7317 if test -n "$TAR"; then
7318 { echo "$as_me:$LINENO: result: $TAR" >&5
7319 echo "${ECHO_T}$TAR" >&6; }
7321 { echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6; }
7326 # Extract the first word of "pwd", so it can be a program name with args.
7327 set dummy
pwd; ac_word
=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_path_BINPWD+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir
=.
7343 for ac_exec_ext
in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7357 BINPWD
=$ac_cv_path_BINPWD
7358 if test -n "$BINPWD"; then
7359 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7360 echo "${ECHO_T}$BINPWD" >&6; }
7362 { echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6; }
7368 # Extract the first word of "Graphviz", so it can be a program name with args.
7369 set dummy Graphviz
; ac_word
=$2
7370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7384 test -z "$as_dir" && as_dir
=.
7385 for ac_exec_ext
in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7399 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7400 if test -n "$GRAPHVIZ"; then
7401 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7402 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7404 { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7409 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7411 cat >>confdefs.h
<<\_ACEOF
7412 #define HAVE_GRAPHVIZ 1
7415 if test "$llvm_cv_os_type" = "MingW" ; then
7416 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7419 cat >>confdefs.h
<<_ACEOF
7420 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7424 # Extract the first word of "dot", so it can be a program name with args.
7425 set dummy dot
; 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_DOT+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 ac_cv_path_DOT
="$DOT" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7456 if test -n "$DOT"; then
7457 { echo "$as_me:$LINENO: result: $DOT" >&5
7458 echo "${ECHO_T}$DOT" >&6; }
7460 { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7465 if test "$DOT" != "echo dot" ; then
7467 cat >>confdefs.h
<<\_ACEOF
7471 if test "$llvm_cv_os_type" = "MingW" ; then
7472 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7475 cat >>confdefs.h
<<_ACEOF
7476 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7480 # Extract the first word of "fdp", so it can be a program name with args.
7481 set dummy fdp
; ac_word
=$2
7482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484 if test "${ac_cv_path_FDP+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
7492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7496 test -z "$as_dir" && as_dir
=.
7497 for ac_exec_ext
in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7499 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
7500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
7512 if test -n "$FDP"; then
7513 { echo "$as_me:$LINENO: result: $FDP" >&5
7514 echo "${ECHO_T}$FDP" >&6; }
7516 { echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6; }
7521 if test "$FDP" != "echo fdp" ; then
7523 cat >>confdefs.h
<<\_ACEOF
7527 if test "$llvm_cv_os_type" = "MingW" ; then
7528 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7531 cat >>confdefs.h
<<_ACEOF
7532 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7536 # Extract the first word of "neato", so it can be a program name with args.
7537 set dummy neato
; ac_word
=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_path_NEATO+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir
=.
7553 for ac_exec_ext
in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7567 NEATO
=$ac_cv_path_NEATO
7568 if test -n "$NEATO"; then
7569 { echo "$as_me:$LINENO: result: $NEATO" >&5
7570 echo "${ECHO_T}$NEATO" >&6; }
7572 { echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6; }
7577 if test "$NEATO" != "echo neato" ; then
7579 cat >>confdefs.h
<<\_ACEOF
7580 #define HAVE_NEATO 1
7583 if test "$llvm_cv_os_type" = "MingW" ; then
7584 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7587 cat >>confdefs.h
<<_ACEOF
7588 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7592 # Extract the first word of "twopi", so it can be a program name with args.
7593 set dummy twopi
; ac_word
=$2
7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596 if test "${ac_cv_path_TWOPI+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7608 test -z "$as_dir" && as_dir
=.
7609 for ac_exec_ext
in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7623 TWOPI
=$ac_cv_path_TWOPI
7624 if test -n "$TWOPI"; then
7625 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7626 echo "${ECHO_T}$TWOPI" >&6; }
7628 { echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6; }
7633 if test "$TWOPI" != "echo twopi" ; then
7635 cat >>confdefs.h
<<\_ACEOF
7636 #define HAVE_TWOPI 1
7639 if test "$llvm_cv_os_type" = "MingW" ; then
7640 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7643 cat >>confdefs.h
<<_ACEOF
7644 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7648 # Extract the first word of "circo", so it can be a program name with args.
7649 set dummy circo
; ac_word
=$2
7650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652 if test "${ac_cv_path_CIRCO+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir
=.
7665 for ac_exec_ext
in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7679 CIRCO
=$ac_cv_path_CIRCO
7680 if test -n "$CIRCO"; then
7681 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7682 echo "${ECHO_T}$CIRCO" >&6; }
7684 { echo "$as_me:$LINENO: result: no" >&5
7685 echo "${ECHO_T}no" >&6; }
7689 if test "$CIRCO" != "echo circo" ; then
7691 cat >>confdefs.h
<<\_ACEOF
7692 #define HAVE_CIRCO 1
7695 if test "$llvm_cv_os_type" = "MingW" ; then
7696 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7699 cat >>confdefs.h
<<_ACEOF
7700 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7704 for ac_prog
in gv gsview32
7706 # Extract the first word of "$ac_prog", so it can be a program name with args.
7707 set dummy
$ac_prog; ac_word
=$2
7708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7710 if test "${ac_cv_path_GV+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7722 test -z "$as_dir" && as_dir
=.
7723 for ac_exec_ext
in '' $ac_executable_extensions; do
7724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7725 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 if test -n "$GV"; then
7738 { echo "$as_me:$LINENO: result: $GV" >&5
7739 echo "${ECHO_T}$GV" >&6; }
7741 { echo "$as_me:$LINENO: result: no" >&5
7742 echo "${ECHO_T}no" >&6; }
7746 test -n "$GV" && break
7748 test -n "$GV" || GV
="echo gv"
7750 if test "$GV" != "echo gv" ; then
7752 cat >>confdefs.h
<<\_ACEOF
7756 if test "$llvm_cv_os_type" = "MingW" ; then
7757 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7760 cat >>confdefs.h
<<_ACEOF
7761 #define LLVM_PATH_GV "$GV${EXEEXT}"
7765 # Extract the first word of "dotty", so it can be a program name with args.
7766 set dummy dotty
; ac_word
=$2
7767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769 if test "${ac_cv_path_DOTTY+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir
=.
7782 for ac_exec_ext
in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7796 DOTTY
=$ac_cv_path_DOTTY
7797 if test -n "$DOTTY"; then
7798 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7799 echo "${ECHO_T}$DOTTY" >&6; }
7801 { echo "$as_me:$LINENO: result: no" >&5
7802 echo "${ECHO_T}no" >&6; }
7806 if test "$DOTTY" != "echo dotty" ; then
7808 cat >>confdefs.h
<<\_ACEOF
7809 #define HAVE_DOTTY 1
7812 if test "$llvm_cv_os_type" = "MingW" ; then
7813 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7816 cat >>confdefs.h
<<_ACEOF
7817 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7823 # Extract the first word of "perl", so it can be a program name with args.
7824 set dummy perl
; ac_word
=$2
7825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827 if test "${ac_cv_path_PERL+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7839 test -z "$as_dir" && as_dir
=.
7840 for ac_exec_ext
in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7854 PERL
=$ac_cv_path_PERL
7855 if test -n "$PERL"; then
7856 { echo "$as_me:$LINENO: result: $PERL" >&5
7857 echo "${ECHO_T}$PERL" >&6; }
7859 { echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6; }
7864 if test "$PERL" != "none"; then
7865 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7866 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7867 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7868 { echo "$as_me:$LINENO: result: yes" >&5
7869 echo "${ECHO_T}yes" >&6; }
7872 { echo "$as_me:$LINENO: result: not found" >&5
7873 echo "${ECHO_T}not found" >&6; }
7878 if test x
"$PERL" = xnone
; then
7881 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7882 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7883 { (exit 1); exit 1; }; }
7889 # Find a good install program. We prefer a C program (faster),
7890 # so one script is as good as another. But avoid the broken or
7891 # incompatible versions:
7892 # SysV /etc/install, /usr/sbin/install
7893 # SunOS /usr/etc/install
7894 # IRIX /sbin/install
7896 # AmigaOS /C/install, which installs bootblocks on floppy discs
7897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7900 # OS/2's system install, which has a completely different semantic
7901 # ./install, which can be erroneously created by make from ./install.sh.
7902 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7903 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7904 if test -z "$INSTALL"; then
7905 if test "${ac_cv_path_install+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7912 test -z "$as_dir" && as_dir
=.
7913 # Account for people who put trailing slashes in PATH elements.
7915 .
/ | .
// |
/cC
/* | \
7916 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7917 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7920 # OSF1 and SCO ODT 3.0 have their own names for install.
7921 # Don't use installbsd from OSF since it installs stuff as root
7923 for ac_prog
in ginstall scoinst
install; do
7924 for ac_exec_ext
in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7926 if test $ac_prog = install &&
7927 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7928 # AIX install. It has an incompatible calling convention.
7930 elif test $ac_prog = install &&
7931 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7932 # program-specific install script used by HP pwplus--don't use.
7935 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7948 if test "${ac_cv_path_install+set}" = set; then
7949 INSTALL
=$ac_cv_path_install
7951 # As a last resort, use the slow shell script. Don't cache a
7952 # value for INSTALL within a source directory, because that will
7953 # break other packages using the cache if that directory is
7954 # removed, or if the value is a relative name.
7955 INSTALL
=$ac_install_sh
7958 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7959 echo "${ECHO_T}$INSTALL" >&6; }
7961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7962 # It thinks the first close brace ends the variable substitution.
7963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7967 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7970 # Extract the first word of "bzip2", so it can be a program name with args.
7971 set dummy
bzip2; ac_word
=$2
7972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7974 if test "${ac_cv_path_BZIP2+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7986 test -z "$as_dir" && as_dir
=.
7987 for ac_exec_ext
in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 BZIP2
=$ac_cv_path_BZIP2
8001 if test -n "$BZIP2"; then
8002 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8003 echo "${ECHO_T}$BZIP2" >&6; }
8005 { echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6; }
8010 # Extract the first word of "doxygen", so it can be a program name with args.
8011 set dummy doxygen
; ac_word
=$2
8012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8014 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
8022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8026 test -z "$as_dir" && as_dir
=.
8027 for ac_exec_ext
in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8029 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
8030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 DOXYGEN
=$ac_cv_path_DOXYGEN
8041 if test -n "$DOXYGEN"; then
8042 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8043 echo "${ECHO_T}$DOXYGEN" >&6; }
8045 { echo "$as_me:$LINENO: result: no" >&5
8046 echo "${ECHO_T}no" >&6; }
8050 # Extract the first word of "groff", so it can be a program name with args.
8051 set dummy
groff; ac_word
=$2
8052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8054 if test "${ac_cv_path_GROFF+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
8062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8066 test -z "$as_dir" && as_dir
=.
8067 for ac_exec_ext
in '' $ac_executable_extensions; do
8068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8069 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
8070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8080 GROFF
=$ac_cv_path_GROFF
8081 if test -n "$GROFF"; then
8082 { echo "$as_me:$LINENO: result: $GROFF" >&5
8083 echo "${ECHO_T}$GROFF" >&6; }
8085 { echo "$as_me:$LINENO: result: no" >&5
8086 echo "${ECHO_T}no" >&6; }
8090 # Extract the first word of "gzip", so it can be a program name with args.
8091 set dummy
gzip; ac_word
=$2
8092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8094 if test "${ac_cv_path_GZIP+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
8102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8106 test -z "$as_dir" && as_dir
=.
8107 for ac_exec_ext
in '' $ac_executable_extensions; do
8108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8109 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
8110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 GZIP
=$ac_cv_path_GZIP
8121 if test -n "$GZIP"; then
8122 { echo "$as_me:$LINENO: result: $GZIP" >&5
8123 echo "${ECHO_T}$GZIP" >&6; }
8125 { echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6; }
8130 # Extract the first word of "pod2html", so it can be a program name with args.
8131 set dummy pod2html
; ac_word
=$2
8132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8134 if test "${ac_cv_path_POD2HTML+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
8142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8146 test -z "$as_dir" && as_dir
=.
8147 for ac_exec_ext
in '' $ac_executable_extensions; do
8148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8149 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
8150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 POD2HTML
=$ac_cv_path_POD2HTML
8161 if test -n "$POD2HTML"; then
8162 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8163 echo "${ECHO_T}$POD2HTML" >&6; }
8165 { echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6; }
8170 # Extract the first word of "pod2man", so it can be a program name with args.
8171 set dummy pod2man
; ac_word
=$2
8172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8174 if test "${ac_cv_path_POD2MAN+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8186 test -z "$as_dir" && as_dir
=.
8187 for ac_exec_ext
in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8189 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 POD2MAN
=$ac_cv_path_POD2MAN
8201 if test -n "$POD2MAN"; then
8202 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8203 echo "${ECHO_T}$POD2MAN" >&6; }
8205 { echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6; }
8210 # Extract the first word of "runtest", so it can be a program name with args.
8211 set dummy runtest
; ac_word
=$2
8212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8214 if test "${ac_cv_path_RUNTEST+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
8222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8226 test -z "$as_dir" && as_dir
=.
8227 for ac_exec_ext
in '' $ac_executable_extensions; do
8228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8229 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
8230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 RUNTEST
=$ac_cv_path_RUNTEST
8241 if test -n "$RUNTEST"; then
8242 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8243 echo "${ECHO_T}$RUNTEST" >&6; }
8245 { echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6; }
8252 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8253 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8255 # Check whether --with-tclinclude was given.
8256 if test "${with_tclinclude+set}" = set; then
8257 withval
=$with_tclinclude; with_tclinclude
=${withval}
8262 if test "${ac_cv_path_tclsh+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 if test x
"${with_tclinclude}" != x
; then
8267 if test -f ${with_tclinclude}/tclsh
; then
8268 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8269 elif test -f ${with_tclinclude}/src
/tclsh
; then
8270 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8272 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8273 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8274 { (exit 1); exit 1; }; }
8280 if test x
"${ac_cv_path_tclsh}" = x
; then
8281 { echo "$as_me:$LINENO: result: none" >&5
8282 echo "${ECHO_T}none" >&6; }
8283 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
8285 # Extract the first word of "$ac_prog", so it can be a program name with args.
8286 set dummy
$ac_prog; ac_word
=$2
8287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8289 if test "${ac_cv_path_TCLSH+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8301 test -z "$as_dir" && as_dir
=.
8302 for ac_exec_ext
in '' $ac_executable_extensions; do
8303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8304 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 TCLSH
=$ac_cv_path_TCLSH
8316 if test -n "$TCLSH"; then
8317 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8318 echo "${ECHO_T}$TCLSH" >&6; }
8320 { echo "$as_me:$LINENO: result: no" >&5
8321 echo "${ECHO_T}no" >&6; }
8325 test -n "$TCLSH" && break
8328 if test x
"${TCLSH}" = x
; then
8329 ac_cv_path_tclsh
='';
8331 ac_cv_path_tclsh
="${TCLSH}";
8334 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8335 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8336 TCLSH="${ac_cv_path_tclsh}"
8340 # Extract the first word of "zip", so it can be a program name with args.
8341 set dummy zip; ac_word=$2
8342 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8343 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8344 if test "${ac_cv_path_ZIP+set}" = set; then
8345 echo $ECHO_N "(cached
) $ECHO_C" >&6
8349 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8360 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8371 if test -n "$ZIP"; then
8372 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8373 echo "${ECHO_T}$ZIP" >&6; }
8375 { echo "$as_me:$LINENO: result
: no
" >&5
8376 echo "${ECHO_T}no
" >&6; }
8380 for ac_prog in ocamlc
8382 # Extract the first word of "$ac_prog", so it can be a program name with args.
8383 set dummy $ac_prog; ac_word=$2
8384 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8385 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8386 if test "${ac_cv_path_OCAMLC+set}" = set; then
8387 echo $ECHO_N "(cached
) $ECHO_C" >&6
8391 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8401 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8402 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8412 OCAMLC=$ac_cv_path_OCAMLC
8413 if test -n "$OCAMLC"; then
8414 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8415 echo "${ECHO_T}$OCAMLC" >&6; }
8417 { echo "$as_me:$LINENO: result
: no
" >&5
8418 echo "${ECHO_T}no
" >&6; }
8422 test -n "$OCAMLC" && break
8425 for ac_prog in ocamlopt
8427 # Extract the first word of "$ac_prog", so it can be a program name with args.
8428 set dummy $ac_prog; ac_word=$2
8429 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8430 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8431 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8432 echo $ECHO_N "(cached
) $ECHO_C" >&6
8436 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8446 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8447 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8457 OCAMLOPT=$ac_cv_path_OCAMLOPT
8458 if test -n "$OCAMLOPT"; then
8459 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8460 echo "${ECHO_T}$OCAMLOPT" >&6; }
8462 { echo "$as_me:$LINENO: result
: no
" >&5
8463 echo "${ECHO_T}no
" >&6; }
8467 test -n "$OCAMLOPT" && break
8470 for ac_prog in ocamldep
8472 # Extract the first word of "$ac_prog", so it can be a program name with args.
8473 set dummy $ac_prog; ac_word=$2
8474 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8475 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8476 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8477 echo $ECHO_N "(cached
) $ECHO_C" >&6
8481 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8491 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8492 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8502 OCAMLDEP=$ac_cv_path_OCAMLDEP
8503 if test -n "$OCAMLDEP"; then
8504 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8505 echo "${ECHO_T}$OCAMLDEP" >&6; }
8507 { echo "$as_me:$LINENO: result
: no
" >&5
8508 echo "${ECHO_T}no
" >&6; }
8512 test -n "$OCAMLDEP" && break
8515 for ac_prog in ocamldoc
8517 # Extract the first word of "$ac_prog", so it can be a program name with args.
8518 set dummy $ac_prog; ac_word=$2
8519 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8520 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8521 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8522 echo $ECHO_N "(cached
) $ECHO_C" >&6
8526 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 test -z "$as_dir" && as_dir=.
8534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8536 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8537 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8547 OCAMLDOC=$ac_cv_path_OCAMLDOC
8548 if test -n "$OCAMLDOC"; then
8549 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8550 echo "${ECHO_T}$OCAMLDOC" >&6; }
8552 { echo "$as_me:$LINENO: result
: no
" >&5
8553 echo "${ECHO_T}no
" >&6; }
8557 test -n "$OCAMLDOC" && break
8560 for ac_prog in gas as
8562 # Extract the first word of "$ac_prog", so it can be a program name with args.
8563 set dummy $ac_prog; ac_word=$2
8564 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8565 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8566 if test "${ac_cv_path_GAS+set}" = set; then
8567 echo $ECHO_N "(cached
) $ECHO_C" >&6
8571 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8581 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8582 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8593 if test -n "$GAS"; then
8594 { echo "$as_me:$LINENO: result
: $GAS" >&5
8595 echo "${ECHO_T}$GAS" >&6; }
8597 { echo "$as_me:$LINENO: result
: no
" >&5
8598 echo "${ECHO_T}no
" >&6; }
8602 test -n "$GAS" && break
8606 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-R<path
> option
" >&5
8607 echo $ECHO_N "checking
for compiler
-Wl,-R<path
> option...
$ECHO_C" >&6; }
8608 if test "${llvm_cv_link_use_r+set}" = set; then
8609 echo $ECHO_N "(cached
) $ECHO_C" >&6
8612 ac_cpp='$CPP $CPPFLAGS'
8613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8618 CFLAGS="$CFLAGS -Wl,-R.
"
8619 cat >conftest.$ac_ext <<_ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8629 int main() { return 0; }
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (ac_try="$ac_link"
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_link") 2>conftest.er1
8643 grep -v '^ *+' conftest.er1 >conftest.err
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8649 { (case "(($ac_try" in
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8653 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_try") 2>&5
8656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try='test -s conftest$ac_exeext'
8659 { (case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_try") 2>&5
8666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668 llvm_cv_link_use_r=yes
8670 echo "$as_me: failed program was
:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8673 llvm_cv_link_use_r=no
8676 rm -f core conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
8680 ac_cpp='$CPP $CPPFLAGS'
8681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8687 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_r" >&5
8688 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8689 if test "$llvm_cv_link_use_r" = yes ; then
8691 cat >>confdefs.h <<\_ACEOF
8692 #define HAVE_LINK_R 1
8698 { echo "$as_me:$LINENO: checking
for compiler
-Wl,-export-dynamic option
" >&5
8699 echo $ECHO_N "checking
for compiler
-Wl,-export-dynamic option...
$ECHO_C" >&6; }
8700 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8701 echo $ECHO_N "(cached
) $ECHO_C" >&6
8704 ac_cpp='$CPP $CPPFLAGS'
8705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8710 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8711 cat >conftest.$ac_ext <<_ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8721 int main() { return 0; }
8726 rm -f conftest.$ac_objext conftest$ac_exeext
8727 if { (ac_try="$ac_link"
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_link") 2>conftest.er1
8735 grep -v '^ *+' conftest.er1 >conftest.err
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8739 (exit $ac_status); } &&
8740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8741 { (case "(($ac_try" in
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_try") 2>&5
8748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8749 (exit $ac_status); }; } &&
8750 { ac_try='test -s conftest$ac_exeext'
8751 { (case "(($ac_try" in
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8755 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_try") 2>&5
8758 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 llvm_cv_link_use_export_dynamic=yes
8762 echo "$as_me: failed program was
:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8765 llvm_cv_link_use_export_dynamic=no
8768 rm -f core conftest.err conftest.$ac_objext \
8769 conftest$ac_exeext conftest.$ac_ext
8772 ac_cpp='$CPP $CPPFLAGS'
8773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8779 { echo "$as_me:$LINENO: result
: $llvm_cv_link_use_export_dynamic" >&5
8780 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8781 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8783 cat >>confdefs.h <<\_ACEOF
8784 #define HAVE_LINK_EXPORT_DYNAMIC 1
8792 { echo "$as_me:$LINENO: checking
for an ANSI C-conforming const
" >&5
8793 echo $ECHO_N "checking
for an ANSI C-conforming const...
$ECHO_C" >&6; }
8794 if test "${ac_cv_c_const+set}" = set; then
8795 echo $ECHO_N "(cached
) $ECHO_C" >&6
8797 cat >conftest.$ac_ext <<_ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8807 /* FIXME: Include the comments suggested by Paul. */
8809 /* Ultrix mips cc rejects this. */
8810 typedef int charset[2];
8812 /* SunOS 4.1.1 cc rejects this. */
8813 char const *const *ccp;
8815 /* NEC SVR4.0.2 mips cc rejects this. */
8816 struct point {int x, y;};
8817 static struct point const zero = {0,0};
8818 /* AIX XL C 1.02.0.0 rejects this.
8819 It does not let you subtract one const X* pointer from another in
8820 an arm of an if-expression whose if-part is not a constant
8822 const char *g = "string
";
8823 ccp = &g + (g ? g-g : 0);
8824 /* HPUX 7.0 cc rejects these. */
8827 ccp = (char const *const *) p;
8828 { /* SCO 3.2v4 cc rejects this. */
8830 char const *s = 0 ? (char *) 0 : (char const *) 0;
8835 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8837 const int *foo = &x[0];
8840 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8841 typedef const int *iptr;
8845 { /* AIX XL C 1.02.0.0 rejects this saying
8846 "k.c
", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8847 struct s { int j; const int *ap[3]; };
8848 struct s *b; b->j = 5;
8850 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8854 return !x[0] && !zero.x;
8861 rm -f conftest.$ac_objext
8862 if { (ac_try="$ac_compile"
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_compile") 2>conftest.er1
8870 grep -v '^ *+' conftest.er1 >conftest.err
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8876 { (case "(($ac_try" in
8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878 *) ac_try_echo=$ac_try;;
8880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8881 (eval "$ac_try") 2>&5
8883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8884 (exit $ac_status); }; } &&
8885 { ac_try='test -s conftest.$ac_objext'
8886 { (case "(($ac_try" in
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_try") 2>&5
8893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8894 (exit $ac_status); }; }; then
8897 echo "$as_me: failed program was
:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 { echo "$as_me:$LINENO: result
: $ac_cv_c_const" >&5
8906 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8907 if test $ac_cv_c_const = no; then
8909 cat >>confdefs.h <<\_ACEOF
8921 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8922 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8923 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
8924 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
8925 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8926 echo $ECHO_N "(cached
) $ECHO_C" >&6
8928 cat >conftest.$ac_ext <<_ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8934 #include <sys/types.h>
8946 rm -f conftest.$ac_objext
8947 if { (ac_try="$ac_compile"
8949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8952 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8953 (eval "$ac_compile") 2>conftest.er1
8955 grep -v '^ *+' conftest.er1 >conftest.err
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8961 { (case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8965 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_try") 2>&5
8968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8969 (exit $ac_status); }; } &&
8970 { ac_try='test -s conftest.$ac_objext'
8971 { (case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_try") 2>&5
8978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8979 (exit $ac_status); }; }; then
8980 eval "$as_ac_Header=yes"
8982 echo "$as_me: failed program was
:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8985 eval "$as_ac_Header=no
"
8988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990 ac_res=`eval echo '${'$as_ac_Header'}'`
8991 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8992 echo "${ECHO_T}$ac_res" >&6; }
8993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8994 cat >>confdefs.h <<_ACEOF
8995 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8998 ac_header_dirent=$ac_hdr; break
9002 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9003 if test $ac_header_dirent = dirent.h; then
9004 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9005 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9006 if test "${ac_cv_search_opendir+set}" = set; then
9007 echo $ECHO_N "(cached
) $ECHO_C" >&6
9009 ac_func_search_save_LIBS=$LIBS
9010 cat >conftest.$ac_ext <<_ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9017 /* Override any GCC internal prototype to avoid an error.
9018 Use char because int might match the return type of a GCC
9019 builtin and then its argument prototype would still apply. */
9032 for ac_lib in '' dir; do
9033 if test -z "$ac_lib"; then
9034 ac_res="none required
"
9037 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9039 rm -f conftest.$ac_objext conftest$ac_exeext
9040 if { (ac_try="$ac_link"
9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043 *) ac_try_echo=$ac_try;;
9045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9046 (eval "$ac_link") 2>conftest.er1
9048 grep -v '^ *+' conftest.er1 >conftest.err
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9054 { (case "(($ac_try" in
9055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9059 (eval "$ac_try") 2>&5
9061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9062 (exit $ac_status); }; } &&
9063 { ac_try='test -s conftest$ac_exeext'
9064 { (case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_try") 2>&5
9071 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_search_opendir=$ac_res
9075 echo "$as_me: failed program was
:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9081 rm -f core conftest.err conftest.$ac_objext \
9083 if test "${ac_cv_search_opendir+set}" = set; then
9087 if test "${ac_cv_search_opendir+set}" = set; then
9090 ac_cv_search_opendir=no
9093 LIBS=$ac_func_search_save_LIBS
9095 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9096 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9097 ac_res=$ac_cv_search_opendir
9098 if test "$ac_res" != no; then
9099 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9104 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
9105 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
9106 if test "${ac_cv_search_opendir+set}" = set; then
9107 echo $ECHO_N "(cached
) $ECHO_C" >&6
9109 ac_func_search_save_LIBS=$LIBS
9110 cat >conftest.$ac_ext <<_ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9117 /* Override any GCC internal prototype to avoid an error.
9118 Use char because int might match the return type of a GCC
9119 builtin and then its argument prototype would still apply. */
9132 for ac_lib in '' x; do
9133 if test -z "$ac_lib"; then
9134 ac_res="none required
"
9137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9139 rm -f conftest.$ac_objext conftest$ac_exeext
9140 if { (ac_try="$ac_link"
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9146 (eval "$ac_link") 2>conftest.er1
9148 grep -v '^ *+' conftest.er1 >conftest.err
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9154 { (case "(($ac_try" in
9155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156 *) ac_try_echo=$ac_try;;
9158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9159 (eval "$ac_try") 2>&5
9161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try='test -s conftest$ac_exeext'
9164 { (case "(($ac_try" in
9165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166 *) ac_try_echo=$ac_try;;
9168 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9169 (eval "$ac_try") 2>&5
9171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173 ac_cv_search_opendir=$ac_res
9175 echo "$as_me: failed program was
:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9181 rm -f core conftest.err conftest.$ac_objext \
9183 if test "${ac_cv_search_opendir+set}" = set; then
9187 if test "${ac_cv_search_opendir+set}" = set; then
9190 ac_cv_search_opendir=no
9193 LIBS=$ac_func_search_save_LIBS
9195 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
9196 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9197 ac_res=$ac_cv_search_opendir
9198 if test "$ac_res" != no; then
9199 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
9206 for ac_header in dlfcn.h
9208 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9209 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9210 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9211 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9212 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9213 echo $ECHO_N "(cached
) $ECHO_C" >&6
9215 ac_res=`eval echo '${'$as_ac_Header'}'`
9216 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9217 echo "${ECHO_T}$ac_res" >&6; }
9219 # Is the header compilable?
9220 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9221 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9222 cat >conftest.$ac_ext <<_ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 $ac_includes_default
9229 #include <$ac_header>
9231 rm -f conftest.$ac_objext
9232 if { (ac_try="$ac_compile"
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_compile") 2>conftest.er1
9240 grep -v '^ *+' conftest.er1 >conftest.err
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9244 (exit $ac_status); } &&
9245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9246 { (case "(($ac_try" in
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9251 (eval "$ac_try") 2>&5
9253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest.$ac_objext'
9256 { (case "(($ac_try" in
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9261 (eval "$ac_try") 2>&5
9263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 ac_header_compiler=yes
9267 echo "$as_me: failed program was
:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9270 ac_header_compiler=no
9273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9274 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9275 echo "${ECHO_T}$ac_header_compiler" >&6; }
9277 # Is the header present?
9278 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9279 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9280 cat >conftest.$ac_ext <<_ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286 #include <$ac_header>
9288 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291 *) ac_try_echo=$ac_try;;
9293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9294 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9296 grep -v '^ *+' conftest.er1 >conftest.err
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9300 (exit $ac_status); } >/dev/null; then
9301 if test -s conftest.err; then
9302 ac_cpp_err=$ac_c_preproc_warn_flag
9303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9310 if test -z "$ac_cpp_err"; then
9311 ac_header_preproc=yes
9313 echo "$as_me: failed program was
:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9316 ac_header_preproc=no
9319 rm -f conftest.err conftest.$ac_ext
9320 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9321 echo "${ECHO_T}$ac_header_preproc" >&6; }
9323 # So? What about this header?
9324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9326 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9327 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9328 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9330 ac_header_preproc=yes
9333 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9334 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9335 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9336 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9337 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9338 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9339 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9340 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9341 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9343 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9344 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9346 ## ----------------------------------- ##
9347 ## Report this to llvmbugs@cs.uiuc.edu ##
9348 ## ----------------------------------- ##
9350 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
9353 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9354 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9355 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9356 echo $ECHO_N "(cached
) $ECHO_C" >&6
9358 eval "$as_ac_Header=\
$ac_header_preproc"
9360 ac_res=`eval echo '${'$as_ac_Header'}'`
9361 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9362 echo "${ECHO_T}$ac_res" >&6; }
9365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9366 cat >>confdefs.h <<_ACEOF
9367 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9374 # Check whether --enable-ltdl-install was given.
9375 if test "${enable_ltdl_install+set}" = set; then
9376 enableval=$enable_ltdl_install;
9382 if test x"${enable_ltdl_install-no}" != xno; then
9384 INSTALL_LTDL_FALSE='#'
9386 INSTALL_LTDL_TRUE='#'
9392 if test x"${enable_ltdl_convenience-no}" != xno; then
9393 CONVENIENCE_LTDL_TRUE=
9394 CONVENIENCE_LTDL_FALSE='#'
9396 CONVENIENCE_LTDL_TRUE='#'
9397 CONVENIENCE_LTDL_FALSE=
9401 { echo "$as_me:$LINENO: checking dynamic linker characteristics
" >&5
9402 echo $ECHO_N "checking dynamic linker characteristics...
$ECHO_C" >&6; }
9404 libname_spec='lib$name'
9412 shlibpath_overrides_runpath=unknown
9414 dynamic_linker="$host_os ld.so
"
9415 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
"
9416 if test "$GCC" = yes; then
9417 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9418 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9419 # if the path contains ";" then we assume it to be the separator
9420 # otherwise default to the standard path separator (i.e. ":") - it is
9421 # assumed that no part of a normal pathname contains ";" but that should
9422 # okay in the real world where ";" in dirpaths is itself problematic.
9423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9425 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9428 sys_lib_search_path_spec="/lib
/usr
/lib
/usr
/local
/lib
"
9430 need_lib_prefix=unknown
9431 hardcode_into_libs=no
9433 # when you set need_version to no, make sure it does not cause -set_version
9434 # flags to be left without arguments
9435 need_version=unknown
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9441 shlibpath_var=LIBPATH
9443 # AIX 3 has no versioning support, so we append a major version to the name.
9444 soname_spec='${libname}${release}${shared_ext}$major'
9451 hardcode_into_libs=yes
9452 if test "$host_cpu" = ia64; then
9453 # AIX 5 supports IA64
9454 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9455 shlibpath_var=LD_LIBRARY_PATH
9457 # With GCC up to 2.95.x, collect2 would create an import file
9458 # for dependence libraries. The import file would start with
9459 # the line `#! .'. This would cause the generated library to
9460 # depend on `.', always an invalid library. This was fixed in
9461 # development snapshots of GCC prior to 3.0.
9463 aix4 | aix4.[01] | aix4.[01].*)
9464 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9466 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9473 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9474 # soname into executable. Probably we can add versioning support to
9475 # collect2, so additional links can be useful in future.
9476 if test "$aix_use_runtimelinking" = yes; then
9477 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9478 # instead of lib<name>.a to let people know that these are not
9479 # typical AIX shared libraries.
9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482 # We preserve .a as extension for shared libraries through AIX4.2
9483 # and later when we are not doing run time linking.
9484 library_names_spec='${libname}${release}.a $libname.a'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9487 shlibpath_var=LIBPATH
9492 library_names_spec='$libname.ixlibrary $libname.a'
9493 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9494 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'
9498 library_names_spec='${libname}${shared_ext}'
9499 dynamic_linker="$host_os ld.so
"
9500 shlibpath_var=LIBRARY_PATH
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig $libdir'
9509 shlibpath_var=LD_LIBRARY_PATH
9510 sys_lib_search_path_spec="/shlib
/usr
/lib
/usr
/X11
/lib
/usr
/contrib
/lib
/lib
/usr
/local
/lib
"
9511 sys_lib_dlsearch_path_spec="/shlib
/usr
/lib
/usr
/local
/lib
"
9512 # the default ld.so.conf also contains /usr/contrib/lib and
9513 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9514 # libtool to hard-code these into programs
9517 cygwin* | mingw* | pw32*)
9518 version_type=windows
9523 case $GCC,$host_os in
9524 yes,cygwin* | yes,mingw* | yes,pw32*)
9525 library_names_spec='$libname.dll.a'
9526 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9527 postinstall_cmds='base_file=`basename \${file}`~
9528 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9529 dldir=$destdir/`dirname \$dlpath`~
9530 test -d \$dldir || mkdir -p \$dldir~
9531 $install_prog $dir/$dlname \$dldir/$dlname~
9532 chmod a+x \$dldir/$dlname'
9533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9534 dlpath=$dir/\$dldll~
9536 shlibpath_overrides_runpath=yes
9540 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9541 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9542 sys_lib_search_path_spec="/usr
/lib
/lib
/w32api
/lib
/usr
/local
/lib
"
9545 # MinGW DLLs use traditional 'lib' prefix
9546 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9547 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries
:" | $SED -e "s
/^libraries
://" -e "s
,=/,/,g
"`
9548 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9549 # It is most probably a Windows format PATH printed by
9550 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9551 # path with ; separators, and with drive letters. We can handle the
9552 # drive letters (cygwin fileutils understands them), so leave them,
9553 # especially as we might pass files found there to a mingw objdump,
9554 # which wouldn't understand a cygwinified path. Ahh.
9555 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g
"`
9561 # pw32 DLLs use 'pw' prefix rather than 'lib'
9562 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9568 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9571 dynamic_linker='Win32 ld.exe'
9572 # FIXME: first we should search . and the directory the executable is in
9576 darwin* | rhapsody*)
9577 dynamic_linker="$host_os dyld
"
9581 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9582 soname_spec='${libname}${release}${major}$shared_ext'
9583 shlibpath_overrides_runpath=yes
9584 shlibpath_var=DYLD_LIBRARY_PATH
9585 shrext_cmds='.dylib'
9586 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9587 if test "$GCC" = yes; then
9588 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
"`
9590 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9592 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9600 soname_spec='${libname}${release}${shared_ext}$major'
9601 shlibpath_var=LD_LIBRARY_PATH
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9613 soname_spec='${libname}${release}${shared_ext}$major'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 shlibpath_overrides_runpath=no
9616 hardcode_into_libs=yes
9617 dynamic_linker='GNU ld.so'
9620 freebsd* | dragonfly*)
9621 # DragonFly does not have aout. When/if they implement a new
9622 # versioning mechanism, adjust this.
9623 if test -x /usr/bin/objformat; then
9624 objformat=`/usr/bin/objformat`
9627 freebsd[123]*) objformat=aout ;;
9631 version_type=freebsd-$objformat
9632 case $version_type in
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9643 shlibpath_var=LD_LIBRARY_PATH
9646 shlibpath_overrides_runpath=yes
9648 freebsd3.[01]* | freebsdelf3.[01]*)
9649 shlibpath_overrides_runpath=yes
9650 hardcode_into_libs=yes
9652 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9653 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9654 shlibpath_overrides_runpath=no
9655 hardcode_into_libs=yes
9657 freebsd*) # from 4.6 on
9658 shlibpath_overrides_runpath=yes
9659 hardcode_into_libs=yes
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9669 soname_spec='${libname}${release}${shared_ext}$major'
9670 shlibpath_var=LD_LIBRARY_PATH
9671 hardcode_into_libs=yes
9674 hpux9* | hpux10* | hpux11*)
9675 # Give a soname corresponding to the major version so that dld.sl refuses to
9676 # link against other versions.
9683 hardcode_into_libs=yes
9684 dynamic_linker="$host_os dld.so
"
9685 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 if test "X
$HPUX_IA64_MODE" = X32; then
9690 sys_lib_search_path_spec="/usr
/lib
/hpux32
/usr
/local
/lib
/hpux32
/usr
/local
/lib
"
9692 sys_lib_search_path_spec="/usr
/lib
/hpux64
/usr
/local
/lib
/hpux64
"
9694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9698 hardcode_into_libs=yes
9699 dynamic_linker="$host_os dld.sl
"
9700 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 sys_lib_search_path_spec="/usr
/lib
/pa20_64
/usr
/ccs
/lib
/pa20_64
"
9705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9709 dynamic_linker="$host_os dld.sl
"
9710 shlibpath_var=SHLIB_PATH
9711 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713 soname_spec='${libname}${release}${shared_ext}$major'
9716 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9717 postinstall_cmds='chmod 555 $lib'
9724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9725 soname_spec='${libname}${release}${shared_ext}$major'
9726 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9727 shlibpath_var=LD_LIBRARY_PATH
9728 shlibpath_overrides_runpath=no
9729 hardcode_into_libs=yes
9732 irix5* | irix6* | nonstopux*)
9734 nonstopux*) version_type=nonstopux ;;
9736 if test "$lt_cv_prog_gnu_ld" = yes; then
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9747 irix5* | nonstopux*)
9751 case $LD in # libtool.m4 will add one of these switches to LD
9752 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9753 libsuff= shlibsuff= libmagic=32-bit;;
9754 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9755 libsuff=32 shlibsuff=N32 libmagic=N32;;
9756 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9757 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9758 *) libsuff= shlibsuff= libmagic=never-match;;
9762 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9763 shlibpath_overrides_runpath=no
9764 sys_lib_search_path_spec="/usr
/lib
${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9765 sys_lib_dlsearch_path_spec="/usr
/lib
${libsuff} /lib
${libsuff}"
9766 hardcode_into_libs=yes
9769 # No shared lib support for Linux oldld, aout, or coff.
9770 linux*oldld* | linux*aout* | linux*coff*)
9774 # This must be Linux ELF.
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -n $libdir'
9782 shlibpath_var=LD_LIBRARY_PATH
9783 shlibpath_overrides_runpath=no
9784 # This implies no fast_install, which is unacceptable.
9785 # Some rework will be needed to allow for fast_install
9786 # before this can be enabled.
9787 hardcode_into_libs=yes
9789 # Append ld.so.conf contents to the search path
9790 if test -f /etc/ld.so.conf; then
9791 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' ' '`
9792 sys_lib_dlsearch_path_spec="/lib
/usr
/lib
$lt_ld_extra"
9795 # We used to test for /lib/ld.so.1 and disable shared libraries on
9796 # powerpc, because MkLinux only supported shared libraries with the
9797 # GNU dynamic linker. Since this was broken with cross compilers,
9798 # most powerpc-linux boxes support dynamic linking these days and
9799 # people can always --disable-shared, the test was removed, and we
9800 # assume the GNU/Linux dynamic linker is in use.
9801 dynamic_linker='GNU/Linux ld.so'
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9809 soname_spec='${libname}${release}${shared_ext}$major'
9810 shlibpath_var=LD_LIBRARY_PATH
9811 shlibpath_overrides_runpath=no
9812 hardcode_into_libs=yes
9813 dynamic_linker='GNU ld.so'
9820 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9822 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9823 dynamic_linker='NetBSD (a.out) ld.so'
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 dynamic_linker='NetBSD ld.elf_so'
9829 shlibpath_var=LD_LIBRARY_PATH
9830 shlibpath_overrides_runpath=yes
9831 hardcode_into_libs=yes
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837 shlibpath_var=LD_LIBRARY_PATH
9838 shlibpath_overrides_runpath=yes
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=yes
9853 sys_lib_dlsearch_path_spec="/usr
/lib
"
9855 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9857 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9858 *) need_version=no ;;
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9861 finish_cmds='PATH="\
$PATH:/sbin
" ldconfig -m $libdir'
9862 shlibpath_var=LD_LIBRARY_PATH
9863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
9865 openbsd2.[89] | openbsd2.[89].*)
9866 shlibpath_overrides_runpath=no
9869 shlibpath_overrides_runpath=yes
9873 shlibpath_overrides_runpath=yes
9878 libname_spec='$name'
9881 library_names_spec='$libname${shared_ext} $libname.a'
9882 dynamic_linker='OS/2 ld.exe'
9883 shlibpath_var=LIBPATH
9886 osf3* | osf4* | osf5*)
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892 shlibpath_var=LD_LIBRARY_PATH
9893 sys_lib_search_path_spec="/usr
/shlib
/usr
/ccs
/lib
/usr
/lib
/cmplrs
/cc
/usr
/lib
/usr
/local
/lib
/var
/shlib
"
9894 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 shlibpath_var=LD_LIBRARY_PATH
9904 shlibpath_overrides_runpath=yes
9905 hardcode_into_libs=yes
9906 # ldd complains unless libraries are executable
9907 postinstall_cmds='chmod +x $lib'
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9913 finish_cmds='PATH="\
$PATH:/usr
/etc
" ldconfig $libdir'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 shlibpath_overrides_runpath=yes
9916 if test "$with_gnu_ld" = yes; then
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 case $host_vendor in
9929 shlibpath_overrides_runpath=no
9931 export_dynamic_flag_spec='${wl}-Blargedynsym'
9932 runpath_var=LD_RUN_PATH
9940 shlibpath_overrides_runpath=no
9941 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9947 if test -d /usr/nec ;then
9949 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9950 soname_spec='$libname${shared_ext}.$major'
9951 shlibpath_var=LD_LIBRARY_PATH
9955 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9956 version_type=freebsd-elf
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9960 soname_spec='${libname}${release}${shared_ext}$major'
9961 shlibpath_var=LD_LIBRARY_PATH
9962 hardcode_into_libs=yes
9963 if test "$with_gnu_ld" = yes; then
9964 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9965 shlibpath_overrides_runpath=no
9967 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9968 shlibpath_overrides_runpath=yes
9971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib
"
9975 sys_lib_dlsearch_path_spec='/usr/lib'
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 soname_spec='${libname}${release}${shared_ext}$major'
9982 shlibpath_var=LD_LIBRARY_PATH
9989 { echo "$as_me:$LINENO: result
: $dynamic_linker" >&5
9990 echo "${ECHO_T}$dynamic_linker" >&6; }
9991 test "$dynamic_linker" = no && can_build_shared=no
9993 variables_saved_for_relink="PATH
$shlibpath_var $runpath_var"
9994 if test "$GCC" = yes; then
9995 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH
"
9999 { echo "$as_me:$LINENO: checking
which extension is used
for loadable modules
" >&5
10000 echo $ECHO_N "checking
which extension is used
for loadable modules...
$ECHO_C" >&6; }
10001 if test "${libltdl_cv_shlibext+set}" = set; then
10002 echo $ECHO_N "(cached
) $ECHO_C" >&6
10006 eval libltdl_cv_shlibext=$shrext_cmds
10009 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibext" >&5
10010 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10011 if test -n "$libltdl_cv_shlibext"; then
10013 cat >>confdefs.h <<_ACEOF
10014 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10020 { echo "$as_me:$LINENO: checking
which variable specifies run-time library path
" >&5
10021 echo $ECHO_N "checking
which variable specifies run-time library path...
$ECHO_C" >&6; }
10022 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10023 echo $ECHO_N "(cached
) $ECHO_C" >&6
10025 libltdl_cv_shlibpath_var="$shlibpath_var"
10027 { echo "$as_me:$LINENO: result
: $libltdl_cv_shlibpath_var" >&5
10028 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10029 if test -n "$libltdl_cv_shlibpath_var"; then
10031 cat >>confdefs.h <<_ACEOF
10032 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10038 { echo "$as_me:$LINENO: checking
for the default library search path
" >&5
10039 echo $ECHO_N "checking
for the default library search path...
$ECHO_C" >&6; }
10040 if test "${libltdl_cv_sys_search_path+set}" = set; then
10041 echo $ECHO_N "(cached
) $ECHO_C" >&6
10043 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10045 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_search_path" >&5
10046 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10047 if test -n "$libltdl_cv_sys_search_path"; then
10049 for dir in $libltdl_cv_sys_search_path; do
10050 if test -z "$sys_search_path"; then
10051 sys_search_path="$dir"
10053 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10057 cat >>confdefs.h <<_ACEOF
10058 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10063 { echo "$as_me:$LINENO: checking
for objdir
" >&5
10064 echo $ECHO_N "checking
for objdir...
$ECHO_C" >&6; }
10065 if test "${libltdl_cv_objdir+set}" = set; then
10066 echo $ECHO_N "(cached
) $ECHO_C" >&6
10068 libltdl_cv_objdir="$objdir"
10069 if test -n "$objdir"; then
10072 rm -f .libs 2>/dev/null
10073 mkdir .libs 2>/dev/null
10074 if test -d .libs; then
10075 libltdl_cv_objdir=.libs
10077 # MS-DOS does not allow filenames that begin with a dot.
10078 libltdl_cv_objdir=_libs
10080 rmdir .libs 2>/dev/null
10084 { echo "$as_me:$LINENO: result
: $libltdl_cv_objdir" >&5
10085 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10087 cat >>confdefs.h <<_ACEOF
10088 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10096 # Check for command to grab the raw symbol name followed by C symbol from nm.
10097 { echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
10098 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6; }
10099 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10100 echo $ECHO_N "(cached
) $ECHO_C" >&6
10103 # These are sane defaults that work on at least a few old systems.
10104 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10106 # Character class describing NM global symbol codes.
10107 symcode='[BCDEGRST]'
10109 # Regexp to match symbols that can be accessed directly from C.
10110 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10112 # Transform an extracted symbol line into a proper C declaration
10113 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10115 # Transform an extracted symbol line into symbol name and symbol address
10116 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'"
10118 # Define system-specific variables.
10123 cygwin* | mingw* | pw32*)
10124 symcode='[ABCDGISTW]'
10126 hpux*) # Its linker distinguishes data from code symbols
10127 if test "$host_cpu" = ia64; then
10128 symcode='[ABCDEGRST]'
10130 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10131 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'"
10134 if test "$host_cpu" = ia64; then
10135 symcode='[ABCDGIRSTW]'
10136 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10137 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'"
10140 irix* | nonstopux*)
10141 symcode='[BCDEGRST]'
10144 symcode='[BCDEGQRST]'
10155 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10163 # Handle CRLF in mingw tool chain
10167 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10171 # If we're using GNU nm, then use its standard symbol codes.
10172 case `$NM -V 2>&1` in
10173 *GNU* | *'with BFD'*)
10174 symcode='[ABCDGIRSTW]' ;;
10177 # Try without a prefix undercore, then with it.
10178 for ac_symprfx in "" "_
"; do
10180 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10181 symxfrm="\\1 $ac_symprfx\\2 \\2"
10183 # Write the raw and C identifiers.
10184 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10186 # Check to see that the pipe works correctly.
10190 cat > conftest.$ac_ext <<EOF
10195 void nm_test_func(){}
10199 int main(){nm_test_var='a';nm_test_func();return(0);}
10202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10203 (eval $ac_compile) 2>&5
10205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10206 (exit $ac_status); }; then
10207 # Now try to grab the symbols.
10209 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
10210 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10213 (exit $ac_status); } && test -s "$nlist"; then
10214 # Try sorting and uniquifying the output.
10215 if sort "$nlist" | uniq > "$nlist"T; then
10216 mv -f "$nlist"T "$nlist"
10221 # Make sure that we snagged all the symbols we need.
10222 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10223 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10224 cat <<EOF > conftest.$ac_ext
10230 # Now generate the symbol file.
10231 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10233 cat <<EOF >> conftest.$ac_ext
10234 #if defined (__STDC__) && __STDC__
10235 # define lt_ptr_t void *
10237 # define lt_ptr_t char *
10241 /* The mapping between symbol names and symbols. */
10246 lt_preloaded_symbols[] =
10249 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (lt_ptr_t
) \
&\
2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10250 cat <<\EOF >> conftest.$ac_ext
10258 # Now try linking the two files.
10259 mv conftest.$ac_objext conftstm.$ac_objext
10260 lt_save_LIBS="$LIBS"
10261 lt_save_CFLAGS="$CFLAGS"
10262 LIBS="conftstm.
$ac_objext"
10263 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10265 (eval $ac_link) 2>&5
10267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10268 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10271 LIBS="$lt_save_LIBS"
10272 CFLAGS="$lt_save_CFLAGS"
10274 echo "cannot
find nm_test_func
in $nlist" >&5
10277 echo "cannot
find nm_test_var
in $nlist" >&5
10280 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
10283 echo "$progname: failed program was
:" >&5
10284 cat conftest.$ac_ext >&5
10286 rm -f conftest* conftst*
10288 # Do not use the global_symbol_pipe unless it works.
10289 if test "$pipe_works" = yes; then
10292 lt_cv_sys_global_symbol_pipe=
10298 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10299 lt_cv_sys_global_symbol_to_cdecl=
10301 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10302 { echo "$as_me:$LINENO: result
: failed
" >&5
10303 echo "${ECHO_T}failed
" >&6; }
10305 { echo "$as_me:$LINENO: result
: ok
" >&5
10306 echo "${ECHO_T}ok
" >&6; }
10310 { echo "$as_me:$LINENO: checking whether libtool supports
-dlopen/-dlpreopen" >&5
10311 echo $ECHO_N "checking whether libtool supports
-dlopen/-dlpreopen...
$ECHO_C" >&6; }
10312 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10313 echo $ECHO_N "(cached
) $ECHO_C" >&6
10315 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10316 libltdl_cv_preloaded_symbols=yes
10318 libltdl_cv_preloaded_symbols=no
10322 { echo "$as_me:$LINENO: result
: $libltdl_cv_preloaded_symbols" >&5
10323 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10324 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10326 cat >>confdefs.h <<\_ACEOF
10327 #define HAVE_PRELOADED_SYMBOLS 1
10335 ac_cpp='$CPP $CPPFLAGS'
10336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10341 { echo "$as_me:$LINENO: checking
for shl_load
" >&5
10342 echo $ECHO_N "checking
for shl_load...
$ECHO_C" >&6; }
10343 if test "${ac_cv_func_shl_load+set}" = set; then
10344 echo $ECHO_N "(cached
) $ECHO_C" >&6
10346 cat >conftest.$ac_ext <<_ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10352 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10354 #define shl_load innocuous_shl_load
10356 /* System header to define __stub macros and hopefully few prototypes,
10357 which can conflict with char shl_load (); below.
10358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10359 <limits.h> exists even on freestanding compilers. */
10362 # include <limits.h>
10364 # include <assert.h>
10369 /* Override any GCC internal prototype to avoid an error.
10370 Use char because int might match the return type of a GCC
10371 builtin and then its argument prototype would still apply. */
10376 /* The GNU C library defines this for functions which it implements
10377 to always fail with ENOSYS. Some functions are actually named
10378 something starting with __ and the normal name is an alias. */
10379 #if defined __stub_shl_load || defined __stub___shl_load
10386 return shl_load ();
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_link") 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10404 (exit $ac_status); } &&
10405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10406 { (case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_try") 2>&5
10413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10414 (exit $ac_status); }; } &&
10415 { ac_try='test -s conftest$ac_exeext'
10416 { (case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10421 (eval "$ac_try") 2>&5
10423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10424 (exit $ac_status); }; }; then
10425 ac_cv_func_shl_load=yes
10427 echo "$as_me: failed program was
:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10430 ac_cv_func_shl_load=no
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10436 { echo "$as_me:$LINENO: result
: $ac_cv_func_shl_load" >&5
10437 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10438 if test $ac_cv_func_shl_load = yes; then
10440 cat >>confdefs.h <<\_ACEOF
10441 #define HAVE_SHL_LOAD 1
10445 { echo "$as_me:$LINENO: checking
for shl_load
in -ldld" >&5
10446 echo $ECHO_N "checking
for shl_load
in -ldld...
$ECHO_C" >&6; }
10447 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10448 echo $ECHO_N "(cached
) $ECHO_C" >&6
10450 ac_check_lib_save_LIBS=$LIBS
10452 cat >conftest.$ac_ext <<_ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10459 /* Override any GCC internal prototype to avoid an error.
10460 Use char because int might match the return type of a GCC
10461 builtin and then its argument prototype would still apply. */
10469 return shl_load ();
10474 rm -f conftest.$ac_objext conftest$ac_exeext
10475 if { (ac_try="$ac_link"
10476 case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_link") 2>conftest.er1
10483 grep -v '^ *+' conftest.er1 >conftest.err
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10489 { (case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10493 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_try") 2>&5
10496 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10497 (exit $ac_status); }; } &&
10498 { ac_try='test -s conftest$ac_exeext'
10499 { (case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10503 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_try") 2>&5
10506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10507 (exit $ac_status); }; }; then
10508 ac_cv_lib_dld_shl_load=yes
10510 echo "$as_me: failed program was
:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10513 ac_cv_lib_dld_shl_load=no
10516 rm -f core conftest.err conftest.$ac_objext \
10517 conftest$ac_exeext conftest.$ac_ext
10518 LIBS=$ac_check_lib_save_LIBS
10520 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_shl_load" >&5
10521 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10522 if test $ac_cv_lib_dld_shl_load = yes; then
10524 cat >>confdefs.h <<\_ACEOF
10525 #define HAVE_SHL_LOAD 1
10528 LIBADD_DL="$LIBADD_DL -ldld"
10530 { echo "$as_me:$LINENO: checking
for dlopen
in -ldl" >&5
10531 echo $ECHO_N "checking
for dlopen
in -ldl...
$ECHO_C" >&6; }
10532 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10533 echo $ECHO_N "(cached
) $ECHO_C" >&6
10535 ac_check_lib_save_LIBS=$LIBS
10537 cat >conftest.$ac_ext <<_ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10544 /* Override any GCC internal prototype to avoid an error.
10545 Use char because int might match the return type of a GCC
10546 builtin and then its argument prototype would still apply. */
10559 rm -f conftest.$ac_objext conftest$ac_exeext
10560 if { (ac_try="$ac_link"
10561 case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_link") 2>conftest.er1
10568 grep -v '^ *+' conftest.er1 >conftest.err
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10574 { (case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_try") 2>&5
10581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10582 (exit $ac_status); }; } &&
10583 { ac_try='test -s conftest$ac_exeext'
10584 { (case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_try") 2>&5
10591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 ac_cv_lib_dl_dlopen=yes
10595 echo "$as_me: failed program was
:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_cv_lib_dl_dlopen=no
10601 rm -f core conftest.err conftest.$ac_objext \
10602 conftest$ac_exeext conftest.$ac_ext
10603 LIBS=$ac_check_lib_save_LIBS
10605 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dl_dlopen" >&5
10606 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10607 if test $ac_cv_lib_dl_dlopen = yes; then
10609 cat >>confdefs.h <<\_ACEOF
10610 #define HAVE_LIBDL 1
10613 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10615 cat >conftest.$ac_ext <<_ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10622 # include <dlfcn.h>
10633 rm -f conftest.$ac_objext conftest$ac_exeext
10634 if { (ac_try="$ac_link"
10635 case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_link") 2>conftest.er1
10642 grep -v '^ *+' conftest.er1 >conftest.err
10644 cat conftest.err >&5
10645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10646 (exit $ac_status); } &&
10647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10648 { (case "(($ac_try" in
10649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650 *) ac_try_echo=$ac_try;;
10652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10653 (eval "$ac_try") 2>&5
10655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10656 (exit $ac_status); }; } &&
10657 { ac_try='test -s conftest$ac_exeext'
10658 { (case "(($ac_try" in
10659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10660 *) ac_try_echo=$ac_try;;
10662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10663 (eval "$ac_try") 2>&5
10665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10666 (exit $ac_status); }; }; then
10668 cat >>confdefs.h <<\_ACEOF
10669 #define HAVE_LIBDL 1
10671 libltdl_cv_func_dlopen="yes"
10673 echo "$as_me: failed program was
:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10676 { echo "$as_me:$LINENO: checking
for dlopen
in -lsvld" >&5
10677 echo $ECHO_N "checking
for dlopen
in -lsvld...
$ECHO_C" >&6; }
10678 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10679 echo $ECHO_N "(cached
) $ECHO_C" >&6
10681 ac_check_lib_save_LIBS=$LIBS
10682 LIBS="-lsvld $LIBS"
10683 cat >conftest.$ac_ext <<_ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10690 /* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
10705 rm -f conftest.$ac_objext conftest$ac_exeext
10706 if { (ac_try="$ac_link"
10707 case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10711 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_link") 2>conftest.er1
10714 grep -v '^ *+' conftest.er1 >conftest.err
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10720 { (case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_try") 2>&5
10727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10728 (exit $ac_status); }; } &&
10729 { ac_try='test -s conftest$ac_exeext'
10730 { (case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_try") 2>&5
10737 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10738 (exit $ac_status); }; }; then
10739 ac_cv_lib_svld_dlopen=yes
10741 echo "$as_me: failed program was
:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10744 ac_cv_lib_svld_dlopen=no
10747 rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS
10751 { echo "$as_me:$LINENO: result
: $ac_cv_lib_svld_dlopen" >&5
10752 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10753 if test $ac_cv_lib_svld_dlopen = yes; then
10755 cat >>confdefs.h <<\_ACEOF
10756 #define HAVE_LIBDL 1
10759 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10761 { echo "$as_me:$LINENO: checking
for dld_link
in -ldld" >&5
10762 echo $ECHO_N "checking
for dld_link
in -ldld...
$ECHO_C" >&6; }
10763 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10764 echo $ECHO_N "(cached
) $ECHO_C" >&6
10766 ac_check_lib_save_LIBS=$LIBS
10768 cat >conftest.$ac_ext <<_ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10775 /* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
10785 return dld_link ();
10790 rm -f conftest.$ac_objext conftest$ac_exeext
10791 if { (ac_try="$ac_link"
10792 case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10796 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_link") 2>conftest.er1
10799 grep -v '^ *+' conftest.er1 >conftest.err
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10803 (exit $ac_status); } &&
10804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10805 { (case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_try") 2>&5
10812 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10813 (exit $ac_status); }; } &&
10814 { ac_try='test -s conftest$ac_exeext'
10815 { (case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10819 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10820 (eval "$ac_try") 2>&5
10822 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10823 (exit $ac_status); }; }; then
10824 ac_cv_lib_dld_dld_link=yes
10826 echo "$as_me: failed program was
:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10829 ac_cv_lib_dld_dld_link=no
10832 rm -f core conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10834 LIBS=$ac_check_lib_save_LIBS
10836 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dld_dld_link" >&5
10837 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10838 if test $ac_cv_lib_dld_dld_link = yes; then
10840 cat >>confdefs.h <<\_ACEOF
10844 LIBADD_DL="$LIBADD_DL -ldld"
10846 { echo "$as_me:$LINENO: checking
for _dyld_func_lookup
" >&5
10847 echo $ECHO_N "checking
for _dyld_func_lookup...
$ECHO_C" >&6; }
10848 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10849 echo $ECHO_N "(cached
) $ECHO_C" >&6
10851 cat >conftest.$ac_ext <<_ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10857 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10859 #define _dyld_func_lookup innocuous__dyld_func_lookup
10861 /* System header to define __stub macros and hopefully few prototypes,
10862 which can conflict with char _dyld_func_lookup (); below.
10863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10864 <limits.h> exists even on freestanding compilers. */
10867 # include <limits.h>
10869 # include <assert.h>
10872 #undef _dyld_func_lookup
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10880 char _dyld_func_lookup ();
10881 /* The GNU C library defines this for functions which it implements
10882 to always fail with ENOSYS. Some functions are actually named
10883 something starting with __ and the normal name is an alias. */
10884 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10891 return _dyld_func_lookup ();
10896 rm -f conftest.$ac_objext conftest$ac_exeext
10897 if { (ac_try="$ac_link"
10898 case "(($ac_try" in
10899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900 *) ac_try_echo=$ac_try;;
10902 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_link") 2>conftest.er1
10905 grep -v '^ *+' conftest.er1 >conftest.err
10907 cat conftest.err >&5
10908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10909 (exit $ac_status); } &&
10910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10911 { (case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10915 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_try") 2>&5
10918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10919 (exit $ac_status); }; } &&
10920 { ac_try='test -s conftest$ac_exeext'
10921 { (case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_try") 2>&5
10928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10929 (exit $ac_status); }; }; then
10930 ac_cv_func__dyld_func_lookup=yes
10932 echo "$as_me: failed program was
:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10935 ac_cv_func__dyld_func_lookup=no
10938 rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10941 { echo "$as_me:$LINENO: result
: $ac_cv_func__dyld_func_lookup" >&5
10942 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10943 if test $ac_cv_func__dyld_func_lookup = yes; then
10945 cat >>confdefs.h <<\_ACEOF
10946 #define HAVE_DYLD 1
10960 rm -f core conftest.err conftest.$ac_objext \
10961 conftest$ac_exeext conftest.$ac_ext
10972 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10974 lt_save_LIBS="$LIBS"
10975 LIBS="$LIBS $LIBADD_DL"
10977 for ac_func in dlerror
10979 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10980 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10981 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10982 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10983 echo $ECHO_N "(cached
) $ECHO_C" >&6
10985 cat >conftest.$ac_ext <<_ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h. */
10991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10993 #define $ac_func innocuous_$ac_func
10995 /* System header to define __stub macros and hopefully few prototypes,
10996 which can conflict with char $ac_func (); below.
10997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10998 <limits.h> exists even on freestanding compilers. */
11001 # include <limits.h>
11003 # include <assert.h>
11008 /* Override any GCC internal prototype to avoid an error.
11009 Use char because int might match the return type of a GCC
11010 builtin and then its argument prototype would still apply. */
11015 /* The GNU C library defines this for functions which it implements
11016 to always fail with ENOSYS. Some functions are actually named
11017 something starting with __ and the normal name is an alias. */
11018 #if defined __stub_$ac_func || defined __stub___$ac_func
11025 return $ac_func ();
11030 rm -f conftest.$ac_objext conftest$ac_exeext
11031 if { (ac_try="$ac_link"
11032 case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11036 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_link") 2>conftest.er1
11039 grep -v '^ *+' conftest.er1 >conftest.err
11041 cat conftest.err >&5
11042 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11043 (exit $ac_status); } &&
11044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11045 { (case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_try") 2>&5
11052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11053 (exit $ac_status); }; } &&
11054 { ac_try='test -s conftest$ac_exeext'
11055 { (case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11060 (eval "$ac_try") 2>&5
11062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 eval "$as_ac_var=yes"
11066 echo "$as_me: failed program was
:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 eval "$as_ac_var=no
"
11072 rm -f core conftest.err conftest.$ac_objext \
11073 conftest$ac_exeext conftest.$ac_ext
11075 ac_res=`eval echo '${'$as_ac_var'}'`
11076 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11077 echo "${ECHO_T}$ac_res" >&6; }
11078 if test `eval echo '${'$as_ac_var'}'` = yes; then
11079 cat >>confdefs.h <<_ACEOF
11080 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11086 LIBS="$lt_save_LIBS"
11089 ac_cpp='$CPP $CPPFLAGS'
11090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11096 { echo "$as_me:$LINENO: checking
for _ prefix
in compiled symbols
" >&5
11097 echo $ECHO_N "checking
for _ prefix
in compiled symbols...
$ECHO_C" >&6; }
11098 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11099 echo $ECHO_N "(cached
) $ECHO_C" >&6
11101 ac_cv_sys_symbol_underscore=no
11102 cat > conftest.$ac_ext <<EOF
11103 void nm_test_func(){}
11104 int main(){nm_test_func;return 0;}
11106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11107 (eval $ac_compile) 2>&5
11109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11110 (exit $ac_status); }; then
11111 # Now try to grab the symbols.
11112 ac_nlist=conftest.nm
11113 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist\"") >&5
11114 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11117 (exit $ac_status); } && test -s "$ac_nlist"; then
11118 # See whether the symbols have a leading underscore.
11119 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11120 ac_cv_sys_symbol_underscore=yes
11122 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11125 echo "configure
: cannot
find nm_test_func
in $ac_nlist" >&5
11129 echo "configure
: cannot run
$lt_cv_sys_global_symbol_pipe" >&5
11132 echo "configure
: failed program was
:" >&5
11138 { echo "$as_me:$LINENO: result
: $ac_cv_sys_symbol_underscore" >&5
11139 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11142 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11143 if test x"$libltdl_cv_func_dlopen" = xyes ||
11144 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11145 { echo "$as_me:$LINENO: checking whether we have to add an underscore
for dlsym
" >&5
11146 echo $ECHO_N "checking whether we have to add an underscore
for dlsym...
$ECHO_C" >&6; }
11147 if test "${libltdl_cv_need_uscore+set}" = set; then
11148 echo $ECHO_N "(cached
) $ECHO_C" >&6
11150 libltdl_cv_need_uscore=unknown
11152 LIBS="$LIBS $LIBADD_DL"
11153 if test "$cross_compiling" = yes; then :
11154 libltdl_cv_need_uscore=cross
11156 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11157 lt_status=$lt_dlunknown
11158 cat > conftest.$ac_ext <<EOF
11159 #line 11159 "configure
"
11160 #include "confdefs.h
"
11169 # define LT_DLGLOBAL RTLD_GLOBAL
11172 # define LT_DLGLOBAL DL_GLOBAL
11174 # define LT_DLGLOBAL 0
11178 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11179 find out it does not work in some platform. */
11180 #ifndef LT_DLLAZY_OR_NOW
11182 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11185 # define LT_DLLAZY_OR_NOW DL_LAZY
11188 # define LT_DLLAZY_OR_NOW RTLD_NOW
11191 # define LT_DLLAZY_OR_NOW DL_NOW
11193 # define LT_DLLAZY_OR_NOW 0
11201 extern "C
" void exit (int);
11204 void fnord() { int i=42;}
11207 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11208 int status = $lt_dlunknown;
11212 if (dlsym (self,"fnord
")) status = $lt_dlno_uscore;
11213 else if (dlsym( self,"_fnord
")) status = $lt_dlneed_uscore;
11214 /* dlclose (self); */
11222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11223 (eval $ac_link) 2>&5
11225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11226 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11227 (./conftest; exit; ) >&5 2>/dev/null
11229 case x$lt_status in
11230 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11231 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11232 x$lt_dlunknown|x*) ;;
11235 # compilation failed
11244 { echo "$as_me:$LINENO: result
: $libltdl_cv_need_uscore" >&5
11245 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11249 if test x"$libltdl_cv_need_uscore" = xyes; then
11251 cat >>confdefs.h <<\_ACEOF
11252 #define NEED_USCORE 1
11258 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen
" >&5
11259 echo $ECHO_N "checking whether deplibs are loaded by dlopen...
$ECHO_C" >&6; }
11260 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11261 echo $ECHO_N "(cached
) $ECHO_C" >&6
11263 # PORTME does your system automatically load deplibs for dlopen?
11264 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11265 # For now, we just catch OSes we know something about -- in the
11266 # future, we'll try test this programmatically.
11267 libltdl_cv_sys_dlopen_deplibs=unknown
11269 aix3*|aix4.1.*|aix4.2.*)
11270 # Unknown whether this is true for these versions of AIX, but
11271 # we want this `case' here to explicitly catch those versions.
11272 libltdl_cv_sys_dlopen_deplibs=unknown
11275 libltdl_cv_sys_dlopen_deplibs=yes
11278 # Assuming the user has installed a libdl from somewhere, this is true
11279 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11280 libltdl_cv_sys_dlopen_deplibs=yes
11282 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11283 # GNU and its variants, using gnu ld.so (Glibc)
11284 libltdl_cv_sys_dlopen_deplibs=yes
11287 libltdl_cv_sys_dlopen_deplibs=yes
11290 libltdl_cv_sys_dlopen_deplibs=yes
11292 irix[12345]*|irix6.[01]*)
11293 # Catch all versions of IRIX before 6.2, and indicate that we don't
11294 # know how it worked for any of those versions.
11295 libltdl_cv_sys_dlopen_deplibs=unknown
11298 # The case above catches anything before 6.2, and it's known that
11299 # at 6.2 and later dlopen does load deplibs.
11300 libltdl_cv_sys_dlopen_deplibs=yes
11303 libltdl_cv_sys_dlopen_deplibs=yes
11306 libltdl_cv_sys_dlopen_deplibs=yes
11309 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11310 # it did *not* use an RPATH in a shared library to find objects the
11311 # library depends on, so we explictly say `no'.
11312 libltdl_cv_sys_dlopen_deplibs=no
11314 osf5.0|osf5.0a|osf5.1)
11315 # dlopen *does* load deplibs and with the right loader patch applied
11316 # it even uses RPATH in a shared library to search for shared objects
11317 # that the library depends on, but there's no easy way to know if that
11318 # patch is installed. Since this is the case, all we can really
11319 # say is unknown -- it depends on the patch being installed. If
11320 # it is, this changes to `yes'. Without it, it would be `no'.
11321 libltdl_cv_sys_dlopen_deplibs=unknown
11324 # the two cases above should catch all versions of osf <= 5.1. Read
11325 # the comments above for what we know about them.
11326 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11327 # is used to find them so we can finally say `yes'.
11328 libltdl_cv_sys_dlopen_deplibs=yes
11331 libltdl_cv_sys_dlopen_deplibs=yes
11333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11334 libltdl_cv_sys_dlopen_deplibs=yes
11339 { echo "$as_me:$LINENO: result
: $libltdl_cv_sys_dlopen_deplibs" >&5
11340 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11341 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11343 cat >>confdefs.h <<\_ACEOF
11344 #define LTDL_DLOPEN_DEPLIBS 1
11350 for ac_header in argz.h
11352 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11353 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11354 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11355 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11356 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11357 echo $ECHO_N "(cached
) $ECHO_C" >&6
11359 ac_res=`eval echo '${'$as_ac_Header'}'`
11360 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11363 # Is the header compilable?
11364 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11365 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 $ac_includes_default
11373 #include <$ac_header>
11375 rm -f conftest.$ac_objext
11376 if { (ac_try="$ac_compile"
11377 case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_compile") 2>conftest.er1
11384 grep -v '^ *+' conftest.er1 >conftest.err
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11390 { (case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_try") 2>&5
11397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11398 (exit $ac_status); }; } &&
11399 { ac_try='test -s conftest.$ac_objext'
11400 { (case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_try") 2>&5
11407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 ac_header_compiler=yes
11411 echo "$as_me: failed program was
:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11414 ac_header_compiler=no
11417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11419 echo "${ECHO_T}$ac_header_compiler" >&6; }
11421 # Is the header present?
11422 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11423 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11424 cat >conftest.$ac_ext <<_ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 #include <$ac_header>
11432 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11433 case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11440 grep -v '^ *+' conftest.er1 >conftest.err
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11444 (exit $ac_status); } >/dev/null; then
11445 if test -s conftest.err; then
11446 ac_cpp_err=$ac_c_preproc_warn_flag
11447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11454 if test -z "$ac_cpp_err"; then
11455 ac_header_preproc=yes
11457 echo "$as_me: failed program was
:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 ac_header_preproc=no
11463 rm -f conftest.err conftest.$ac_ext
11464 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11465 echo "${ECHO_T}$ac_header_preproc" >&6; }
11467 # So? What about this header?
11468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11470 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11471 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11472 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11474 ac_header_preproc=yes
11477 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11478 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11479 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11480 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11481 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11482 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11483 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11484 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11485 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11487 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11488 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11490 ## ----------------------------------- ##
11491 ## Report this to llvmbugs@cs.uiuc.edu ##
11492 ## ----------------------------------- ##
11494 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11497 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11498 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11500 echo $ECHO_N "(cached
) $ECHO_C" >&6
11502 eval "$as_ac_Header=\
$ac_header_preproc"
11504 ac_res=`eval echo '${'$as_ac_Header'}'`
11505 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11506 echo "${ECHO_T}$ac_res" >&6; }
11509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11510 cat >>confdefs.h <<_ACEOF
11511 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11519 { echo "$as_me:$LINENO: checking
for error_t
" >&5
11520 echo $ECHO_N "checking
for error_t...
$ECHO_C" >&6; }
11521 if test "${ac_cv_type_error_t+set}" = set; then
11522 echo $ECHO_N "(cached
) $ECHO_C" >&6
11524 cat >conftest.$ac_ext <<_ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h. */
11534 typedef error_t ac__type_new_;
11538 if ((ac__type_new_ *) 0)
11540 if (sizeof (ac__type_new_))
11546 rm -f conftest.$ac_objext
11547 if { (ac_try="$ac_compile"
11548 case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_compile") 2>conftest.er1
11555 grep -v '^ *+' conftest.er1 >conftest.err
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11561 { (case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11566 (eval "$ac_try") 2>&5
11568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest.$ac_objext'
11571 { (case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_try") 2>&5
11578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_cv_type_error_t=yes
11582 echo "$as_me: failed program was
:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11585 ac_cv_type_error_t=no
11588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11590 { echo "$as_me:$LINENO: result
: $ac_cv_type_error_t" >&5
11591 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11592 if test $ac_cv_type_error_t = yes; then
11594 cat >>confdefs.h <<_ACEOF
11595 #define HAVE_ERROR_T 1
11601 cat >>confdefs.h <<\_ACEOF
11602 #define error_t int
11613 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11615 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11616 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11617 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11618 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11619 echo $ECHO_N "(cached
) $ECHO_C" >&6
11621 cat >conftest.$ac_ext <<_ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11629 #define $ac_func innocuous_$ac_func
11631 /* System header to define __stub macros and hopefully few prototypes,
11632 which can conflict with char $ac_func (); below.
11633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11634 <limits.h> exists even on freestanding compilers. */
11637 # include <limits.h>
11639 # include <assert.h>
11644 /* Override any GCC internal prototype to avoid an error.
11645 Use char because int might match the return type of a GCC
11646 builtin and then its argument prototype would still apply. */
11651 /* The GNU C library defines this for functions which it implements
11652 to always fail with ENOSYS. Some functions are actually named
11653 something starting with __ and the normal name is an alias. */
11654 #if defined __stub_$ac_func || defined __stub___$ac_func
11661 return $ac_func ();
11666 rm -f conftest.$ac_objext conftest$ac_exeext
11667 if { (ac_try="$ac_link"
11668 case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11672 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_link") 2>conftest.er1
11675 grep -v '^ *+' conftest.er1 >conftest.err
11677 cat conftest.err >&5
11678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11679 (exit $ac_status); } &&
11680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11681 { (case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_try") 2>&5
11688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11689 (exit $ac_status); }; } &&
11690 { ac_try='test -s conftest$ac_exeext'
11691 { (case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_try") 2>&5
11698 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 eval "$as_ac_var=yes"
11702 echo "$as_me: failed program was
:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11705 eval "$as_ac_var=no
"
11708 rm -f core conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11711 ac_res=`eval echo '${'$as_ac_var'}'`
11712 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11713 echo "${ECHO_T}$ac_res" >&6; }
11714 if test `eval echo '${'$as_ac_var'}'` = yes; then
11715 cat >>confdefs.h <<_ACEOF
11716 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11749 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11752 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11753 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11754 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11755 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11756 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11757 echo $ECHO_N "(cached
) $ECHO_C" >&6
11759 ac_res=`eval echo '${'$as_ac_Header'}'`
11760 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11761 echo "${ECHO_T}$ac_res" >&6; }
11763 # Is the header compilable?
11764 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11765 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11766 cat >conftest.$ac_ext <<_ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 $ac_includes_default
11773 #include <$ac_header>
11775 rm -f conftest.$ac_objext
11776 if { (ac_try="$ac_compile"
11777 case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_compile") 2>conftest.er1
11784 grep -v '^ *+' conftest.er1 >conftest.err
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11790 { (case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11794 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_try") 2>&5
11797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest.$ac_objext'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_header_compiler=yes
11811 echo "$as_me: failed program was
:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 ac_header_compiler=no
11817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11818 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11819 echo "${ECHO_T}$ac_header_compiler" >&6; }
11821 # Is the header present?
11822 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11823 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11824 cat >conftest.$ac_ext <<_ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 #include <$ac_header>
11832 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11833 case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11840 grep -v '^ *+' conftest.er1 >conftest.err
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11844 (exit $ac_status); } >/dev/null; then
11845 if test -s conftest.err; then
11846 ac_cpp_err=$ac_c_preproc_warn_flag
11847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11854 if test -z "$ac_cpp_err"; then
11855 ac_header_preproc=yes
11857 echo "$as_me: failed program was
:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_header_preproc=no
11863 rm -f conftest.err conftest.$ac_ext
11864 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11865 echo "${ECHO_T}$ac_header_preproc" >&6; }
11867 # So? What about this header?
11868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11870 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11871 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11872 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11874 ac_header_preproc=yes
11877 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11878 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11879 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11880 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11881 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11882 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11883 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11884 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11885 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11887 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11888 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11890 ## ----------------------------------- ##
11891 ## Report this to llvmbugs@cs.uiuc.edu ##
11892 ## ----------------------------------- ##
11894 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
11897 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11898 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11899 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11900 echo $ECHO_N "(cached
) $ECHO_C" >&6
11902 eval "$as_ac_Header=\
$ac_header_preproc"
11904 ac_res=`eval echo '${'$as_ac_Header'}'`
11905 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11906 echo "${ECHO_T}$ac_res" >&6; }
11909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11910 cat >>confdefs.h <<_ACEOF
11911 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11922 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11924 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11925 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11926 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11927 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11928 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11929 echo $ECHO_N "(cached
) $ECHO_C" >&6
11931 ac_res=`eval echo '${'$as_ac_Header'}'`
11932 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11933 echo "${ECHO_T}$ac_res" >&6; }
11935 # Is the header compilable?
11936 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11937 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11938 cat >conftest.$ac_ext <<_ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11944 $ac_includes_default
11945 #include <$ac_header>
11947 rm -f conftest.$ac_objext
11948 if { (ac_try="$ac_compile"
11949 case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11953 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_compile") 2>conftest.er1
11956 grep -v '^ *+' conftest.er1 >conftest.err
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11960 (exit $ac_status); } &&
11961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11962 { (case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11966 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_try") 2>&5
11969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest.$ac_objext'
11972 { (case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_try") 2>&5
11979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 ac_header_compiler=yes
11983 echo "$as_me: failed program was
:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_header_compiler=no
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11991 echo "${ECHO_T}$ac_header_compiler" >&6; }
11993 # Is the header present?
11994 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11995 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11996 cat >conftest.$ac_ext <<_ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h. */
12002 #include <$ac_header>
12004 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12005 case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12012 grep -v '^ *+' conftest.er1 >conftest.err
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12016 (exit $ac_status); } >/dev/null; then
12017 if test -s conftest.err; then
12018 ac_cpp_err=$ac_c_preproc_warn_flag
12019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12026 if test -z "$ac_cpp_err"; then
12027 ac_header_preproc=yes
12029 echo "$as_me: failed program was
:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12032 ac_header_preproc=no
12035 rm -f conftest.err conftest.$ac_ext
12036 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12037 echo "${ECHO_T}$ac_header_preproc" >&6; }
12039 # So? What about this header?
12040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12042 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12043 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12044 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12046 ac_header_preproc=yes
12049 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12050 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12051 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12052 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12053 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12054 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12055 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12056 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12057 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12059 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12060 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12062 ## ----------------------------------- ##
12063 ## Report this to llvmbugs@cs.uiuc.edu ##
12064 ## ----------------------------------- ##
12066 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12069 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12070 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12071 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12072 echo $ECHO_N "(cached
) $ECHO_C" >&6
12074 eval "$as_ac_Header=\
$ac_header_preproc"
12076 ac_res=`eval echo '${'$as_ac_Header'}'`
12077 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12078 echo "${ECHO_T}$ac_res" >&6; }
12081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12082 cat >>confdefs.h <<_ACEOF
12083 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12092 for ac_header in string.h strings.h
12094 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12095 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12096 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12097 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12098 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12099 echo $ECHO_N "(cached
) $ECHO_C" >&6
12101 ac_res=`eval echo '${'$as_ac_Header'}'`
12102 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12103 echo "${ECHO_T}$ac_res" >&6; }
12105 # Is the header compilable?
12106 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12107 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
12108 cat >conftest.$ac_ext <<_ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 $ac_includes_default
12115 #include <$ac_header>
12117 rm -f conftest.$ac_objext
12118 if { (ac_try="$ac_compile"
12119 case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12123 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_compile") 2>conftest.er1
12126 grep -v '^ *+' conftest.er1 >conftest.err
12128 cat conftest.err >&5
12129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12130 (exit $ac_status); } &&
12131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12132 { (case "(($ac_try" in
12133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134 *) ac_try_echo=$ac_try;;
12136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12137 (eval "$ac_try") 2>&5
12139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest.$ac_objext'
12142 { (case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_try") 2>&5
12149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12150 (exit $ac_status); }; }; then
12151 ac_header_compiler=yes
12153 echo "$as_me: failed program was
:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12156 ac_header_compiler=no
12159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12160 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12161 echo "${ECHO_T}$ac_header_compiler" >&6; }
12163 # Is the header present?
12164 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12165 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
12166 cat >conftest.$ac_ext <<_ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12172 #include <$ac_header>
12174 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 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); } >/dev/null; then
12187 if test -s conftest.err; then
12188 ac_cpp_err=$ac_c_preproc_warn_flag
12189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12196 if test -z "$ac_cpp_err"; then
12197 ac_header_preproc=yes
12199 echo "$as_me: failed program was
:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 ac_header_preproc=no
12205 rm -f conftest.err conftest.$ac_ext
12206 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12207 echo "${ECHO_T}$ac_header_preproc" >&6; }
12209 # So? What about this header?
12210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12212 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12213 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12214 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12216 ac_header_preproc=yes
12219 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12220 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12221 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12222 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12223 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12224 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12225 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12226 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12227 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12229 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12230 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12232 ## ----------------------------------- ##
12233 ## Report this to llvmbugs@cs.uiuc.edu ##
12234 ## ----------------------------------- ##
12236 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
12239 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
12240 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
12241 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12242 echo $ECHO_N "(cached
) $ECHO_C" >&6
12244 eval "$as_ac_Header=\
$ac_header_preproc"
12246 ac_res=`eval echo '${'$as_ac_Header'}'`
12247 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12248 echo "${ECHO_T}$ac_res" >&6; }
12251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12252 cat >>confdefs.h <<_ACEOF
12253 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12263 for ac_func in strchr index
12265 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12266 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12267 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12268 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12269 echo $ECHO_N "(cached
) $ECHO_C" >&6
12271 cat >conftest.$ac_ext <<_ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12279 #define $ac_func innocuous_$ac_func
12281 /* System header to define __stub macros and hopefully few prototypes,
12282 which can conflict with char $ac_func (); below.
12283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12284 <limits.h> exists even on freestanding compilers. */
12287 # include <limits.h>
12289 # include <assert.h>
12294 /* Override any GCC internal prototype to avoid an error.
12295 Use char because int might match the return type of a GCC
12296 builtin and then its argument prototype would still apply. */
12301 /* The GNU C library defines this for functions which it implements
12302 to always fail with ENOSYS. Some functions are actually named
12303 something starting with __ and the normal name is an alias. */
12304 #if defined __stub_$ac_func || defined __stub___$ac_func
12311 return $ac_func ();
12316 rm -f conftest.$ac_objext conftest$ac_exeext
12317 if { (ac_try="$ac_link"
12318 case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_link") 2>conftest.er1
12325 grep -v '^ *+' conftest.er1 >conftest.err
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12329 (exit $ac_status); } &&
12330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12331 { (case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_try") 2>&5
12338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12339 (exit $ac_status); }; } &&
12340 { ac_try='test -s conftest$ac_exeext'
12341 { (case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12345 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12346 (eval "$ac_try") 2>&5
12348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 eval "$as_ac_var=yes"
12352 echo "$as_me: failed program was
:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 eval "$as_ac_var=no
"
12358 rm -f core conftest.err conftest.$ac_objext \
12359 conftest$ac_exeext conftest.$ac_ext
12361 ac_res=`eval echo '${'$as_ac_var'}'`
12362 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12363 echo "${ECHO_T}$ac_res" >&6; }
12364 if test `eval echo '${'$as_ac_var'}'` = yes; then
12365 cat >>confdefs.h <<_ACEOF
12366 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12374 for ac_func in strrchr rindex
12376 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12377 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12378 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12379 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12380 echo $ECHO_N "(cached
) $ECHO_C" >&6
12382 cat >conftest.$ac_ext <<_ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12390 #define $ac_func innocuous_$ac_func
12392 /* System header to define __stub macros and hopefully few prototypes,
12393 which can conflict with char $ac_func (); below.
12394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12395 <limits.h> exists even on freestanding compilers. */
12398 # include <limits.h>
12400 # include <assert.h>
12405 /* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12412 /* The GNU C library defines this for functions which it implements
12413 to always fail with ENOSYS. Some functions are actually named
12414 something starting with __ and the normal name is an alias. */
12415 #if defined __stub_$ac_func || defined __stub___$ac_func
12422 return $ac_func ();
12427 rm -f conftest.$ac_objext conftest$ac_exeext
12428 if { (ac_try="$ac_link"
12429 case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12433 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_link") 2>conftest.er1
12436 grep -v '^ *+' conftest.er1 >conftest.err
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12440 (exit $ac_status); } &&
12441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12442 { (case "(($ac_try" in
12443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_try") 2>&5
12449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12450 (exit $ac_status); }; } &&
12451 { ac_try='test -s conftest$ac_exeext'
12452 { (case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_try") 2>&5
12459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 eval "$as_ac_var=yes"
12463 echo "$as_me: failed program was
:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12466 eval "$as_ac_var=no
"
12469 rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12472 ac_res=`eval echo '${'$as_ac_var'}'`
12473 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12474 echo "${ECHO_T}$ac_res" >&6; }
12475 if test `eval echo '${'$as_ac_var'}'` = yes; then
12476 cat >>confdefs.h <<_ACEOF
12477 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12485 for ac_func in memcpy bcopy
12487 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12488 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12489 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12490 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12491 echo $ECHO_N "(cached
) $ECHO_C" >&6
12493 cat >conftest.$ac_ext <<_ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h. */
12499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12501 #define $ac_func innocuous_$ac_func
12503 /* System header to define __stub macros and hopefully few prototypes,
12504 which can conflict with char $ac_func (); below.
12505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12506 <limits.h> exists even on freestanding compilers. */
12509 # include <limits.h>
12511 # include <assert.h>
12516 /* Override any GCC internal prototype to avoid an error.
12517 Use char because int might match the return type of a GCC
12518 builtin and then its argument prototype would still apply. */
12523 /* The GNU C library defines this for functions which it implements
12524 to always fail with ENOSYS. Some functions are actually named
12525 something starting with __ and the normal name is an alias. */
12526 #if defined __stub_$ac_func || defined __stub___$ac_func
12533 return $ac_func ();
12538 rm -f conftest.$ac_objext conftest$ac_exeext
12539 if { (ac_try="$ac_link"
12540 case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_link") 2>conftest.er1
12547 grep -v '^ *+' conftest.er1 >conftest.err
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12553 { (case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12557 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_try") 2>&5
12560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12561 (exit $ac_status); }; } &&
12562 { ac_try='test -s conftest$ac_exeext'
12563 { (case "(($ac_try" in
12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565 *) ac_try_echo=$ac_try;;
12567 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_try") 2>&5
12570 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12571 (exit $ac_status); }; }; then
12572 eval "$as_ac_var=yes"
12574 echo "$as_me: failed program was
:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12577 eval "$as_ac_var=no
"
12580 rm -f core conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12583 ac_res=`eval echo '${'$as_ac_var'}'`
12584 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12585 echo "${ECHO_T}$ac_res" >&6; }
12586 if test `eval echo '${'$as_ac_var'}'` = yes; then
12587 cat >>confdefs.h <<_ACEOF
12588 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12596 for ac_func in memmove strcmp
12598 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12599 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12600 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12601 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12602 echo $ECHO_N "(cached
) $ECHO_C" >&6
12604 cat >conftest.$ac_ext <<_ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12612 #define $ac_func innocuous_$ac_func
12614 /* System header to define __stub macros and hopefully few prototypes,
12615 which can conflict with char $ac_func (); below.
12616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12617 <limits.h> exists even on freestanding compilers. */
12620 # include <limits.h>
12622 # include <assert.h>
12627 /* Override any GCC internal prototype to avoid an error.
12628 Use char because int might match the return type of a GCC
12629 builtin and then its argument prototype would still apply. */
12634 /* The GNU C library defines this for functions which it implements
12635 to always fail with ENOSYS. Some functions are actually named
12636 something starting with __ and the normal name is an alias. */
12637 #if defined __stub_$ac_func || defined __stub___$ac_func
12644 return $ac_func ();
12649 rm -f conftest.$ac_objext conftest$ac_exeext
12650 if { (ac_try="$ac_link"
12651 case "(($ac_try" in
12652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12656 (eval "$ac_link") 2>conftest.er1
12658 grep -v '^ *+' conftest.er1 >conftest.err
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12662 (exit $ac_status); } &&
12663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12664 { (case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12668 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_try") 2>&5
12671 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12672 (exit $ac_status); }; } &&
12673 { ac_try='test -s conftest$ac_exeext'
12674 { (case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_try") 2>&5
12681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 eval "$as_ac_var=yes"
12685 echo "$as_me: failed program was
:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12688 eval "$as_ac_var=no
"
12691 rm -f core conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12694 ac_res=`eval echo '${'$as_ac_var'}'`
12695 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12696 echo "${ECHO_T}$ac_res" >&6; }
12697 if test `eval echo '${'$as_ac_var'}'` = yes; then
12698 cat >>confdefs.h <<_ACEOF
12699 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12708 for ac_func in closedir opendir readdir
12710 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12711 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
12712 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
12713 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12714 echo $ECHO_N "(cached
) $ECHO_C" >&6
12716 cat >conftest.$ac_ext <<_ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12724 #define $ac_func innocuous_$ac_func
12726 /* System header to define __stub macros and hopefully few prototypes,
12727 which can conflict with char $ac_func (); below.
12728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12729 <limits.h> exists even on freestanding compilers. */
12732 # include <limits.h>
12734 # include <assert.h>
12739 /* Override any GCC internal prototype to avoid an error.
12740 Use char because int might match the return type of a GCC
12741 builtin and then its argument prototype would still apply. */
12746 /* The GNU C library defines this for functions which it implements
12747 to always fail with ENOSYS. Some functions are actually named
12748 something starting with __ and the normal name is an alias. */
12749 #if defined __stub_$ac_func || defined __stub___$ac_func
12756 return $ac_func ();
12761 rm -f conftest.$ac_objext conftest$ac_exeext
12762 if { (ac_try="$ac_link"
12763 case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12767 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_link") 2>conftest.er1
12770 grep -v '^ *+' conftest.er1 >conftest.err
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12776 { (case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_try") 2>&5
12783 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try='test -s conftest$ac_exeext'
12786 { (case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_try") 2>&5
12793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12794 (exit $ac_status); }; }; then
12795 eval "$as_ac_var=yes"
12797 echo "$as_me: failed program was
:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12800 eval "$as_ac_var=no
"
12803 rm -f core conftest.err conftest.$ac_objext \
12804 conftest$ac_exeext conftest.$ac_ext
12806 ac_res=`eval echo '${'$as_ac_var'}'`
12807 { echo "$as_me:$LINENO: result
: $ac_res" >&5
12808 echo "${ECHO_T}$ac_res" >&6; }
12809 if test `eval echo '${'$as_ac_var'}'` = yes; then
12810 cat >>confdefs.h <<_ACEOF
12811 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12819 if test "$WITH_LLVMGCCDIR" = "default
" ; then
12820 LLVMGCC="llvm-gcc
${EXEEXT}"
12821 LLVMGXX="llvm-g
++${EXEEXT}"
12822 LLVMGCCCOMMAND="$LLVMGCC"
12823 LLVMGXXCOMMAND="$LLVMGXX"
12824 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12826 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12828 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12829 set dummy $LLVMGCC; ac_word=$2
12830 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
12831 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
12832 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12833 echo $ECHO_N "(cached
) $ECHO_C" >&6
12837 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841 for as_dir in $PATH
12844 test -z "$as_dir" && as_dir=.
12845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12847 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12848 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12858 LLVMGCC=$ac_cv_path_LLVMGCC
12859 if test -n "$LLVMGCC"; then
12860 { echo "$as_me:$LINENO: result
: $LLVMGCC" >&5
12861 echo "${ECHO_T}$LLVMGCC" >&6; }
12863 { echo "$as_me:$LINENO: result
: no
" >&5
12864 echo "${ECHO_T}no
" >&6; }
12868 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12869 set dummy $LLVMGXX; ac_word=$2
12870 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
12871 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
12872 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12873 echo $ECHO_N "(cached
) $ECHO_C" >&6
12877 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12887 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12888 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12898 LLVMGXX=$ac_cv_path_LLVMGXX
12899 if test -n "$LLVMGXX"; then
12900 { echo "$as_me:$LINENO: result
: $LLVMGXX" >&5
12901 echo "${ECHO_T}$LLVMGXX" >&6; }
12903 { echo "$as_me:$LINENO: result
: no
" >&5
12904 echo "${ECHO_T}no
" >&6; }
12909 if test -z "$LLVMGCC"; then
12910 LLVMGCC="$WITH_LLVMGCCDIR/bin
/llvm-gcc
${EXEEXT}"
12911 LLVMGCCCOMMAND="$LLVMGCC"
12913 if test -z "$LLVMGXX"; then
12914 LLVMGXX="$WITH_LLVMGCCDIR/bin
/llvm-g
++${EXEEXT}"
12915 LLVMGXXCOMMAND="$LLVMGXX"
12922 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12924 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12929 # Check whether --with-llvmcc was given.
12930 if test "${with_llvmcc+set}" = set; then
12931 withval=$with_llvmcc;
12936 { echo "$as_me:$LINENO: checking LLVM capable compiler
" >&5
12937 echo $ECHO_N "checking LLVM capable compiler...
$ECHO_C" >&6; }
12938 if test "$with_llvmcc" != "check
"; then
12939 if (test "$with_llvmcc" != "llvm-gcc
" &&
12940 test "$with_llvmcc" != "clang
" &&
12941 test "$with_llvmcc" != "none
"); then
12942 { { echo "$as_me:$LINENO: error
: invalid value
for --with-llvmcc, expected
'llvm-gcc', 'clang', or
'none'.
" >&5
12943 echo "$as_me: error
: invalid value
for --with-llvmcc, expected
'llvm-gcc', 'clang', or
'none'.
" >&2;}
12944 { (exit 1); exit 1; }; }
12946 WITH_LLVMCC="$with_llvmcc"
12947 elif test -n "$LLVMGCC"; then
12948 WITH_LLVMCC=llvm-gcc
12949 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12954 { echo "$as_me:$LINENO: result
: $WITH_LLVMCC" >&5
12955 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12956 LLVMCC_OPTION=$WITH_LLVMCC
12959 { echo "$as_me:$LINENO: checking tool compatibility
" >&5
12960 echo $ECHO_N "checking tool compatibility...
$ECHO_C" >&6; }
12973 if test "$GCC" != "yes" && test "$ICC" != "yes"
12975 { { echo "$as_me:$LINENO: error
: gcc|icc required but not found
" >&5
12976 echo "$as_me: error
: gcc|icc required but not found
" >&2;}
12977 { (exit 1); exit 1; }; }
12980 if test "$GXX" != "yes" && test "$IXX" != "yes"
12982 { { echo "$as_me:$LINENO: error
: g
++|icc required but not found
" >&5
12983 echo "$as_me: error
: g
++|icc required but not found
" >&2;}
12984 { (exit 1); exit 1; }; }
12987 if test "$GCC" = "yes"
12989 cat >conftest.$ac_ext <<_ACEOF
12990 #if !defined(__GNUC__) || __GNUC__ < 3
12991 #error Unsupported GCC version
12995 rm -f conftest.$ac_objext
12996 if { (ac_try="$ac_compile"
12997 case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_compile") 2>conftest.er1
13004 grep -v '^ *+' conftest.er1 >conftest.err
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13008 (exit $ac_status); } &&
13009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13010 { (case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_try") 2>&5
13017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13018 (exit $ac_status); }; } &&
13019 { ac_try='test -s conftest.$ac_objext'
13020 { (case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13024 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_try") 2>&5
13027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13028 (exit $ac_status); }; }; then
13031 echo "$as_me: failed program was
:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13034 { { echo "$as_me:$LINENO: error
: gcc
3.x required
, but you have a lower version
" >&5
13035 echo "$as_me: error
: gcc
3.x required
, but you have a lower version
" >&2;}
13036 { (exit 1); exit 1; }; }
13039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13042 if test -z "$llvm_cv_gnu_make_command"
13044 { { echo "$as_me:$LINENO: error
: GNU Make required but not found
" >&5
13045 echo "$as_me: error
: GNU Make required but not found
" >&2;}
13046 { (exit 1); exit 1; }; }
13049 { echo "$as_me:$LINENO: result
: ok
" >&5
13050 echo "${ECHO_T}ok
" >&6; }
13052 { echo "$as_me:$LINENO: checking optional compiler flags
" >&5
13053 echo $ECHO_N "checking optional compiler flags...
$ECHO_C" >&6; }
13054 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13056 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13058 { echo "$as_me:$LINENO: result
: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13059 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13063 { echo "$as_me:$LINENO: checking
for sin
in -lm" >&5
13064 echo $ECHO_N "checking
for sin
in -lm...
$ECHO_C" >&6; }
13065 if test "${ac_cv_lib_m_sin+set}" = set; then
13066 echo $ECHO_N "(cached
) $ECHO_C" >&6
13068 ac_check_lib_save_LIBS=$LIBS
13070 cat >conftest.$ac_ext <<_ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13077 /* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13092 rm -f conftest.$ac_objext conftest$ac_exeext
13093 if { (ac_try="$ac_link"
13094 case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13098 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_link") 2>conftest.er1
13101 grep -v '^ *+' conftest.er1 >conftest.err
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13107 { (case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_try") 2>&5
13114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13115 (exit $ac_status); }; } &&
13116 { ac_try='test -s conftest$ac_exeext'
13117 { (case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_try") 2>&5
13124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 ac_cv_lib_m_sin=yes
13128 echo "$as_me: failed program was
:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13134 rm -f core conftest.err conftest.$ac_objext \
13135 conftest$ac_exeext conftest.$ac_ext
13136 LIBS=$ac_check_lib_save_LIBS
13138 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sin" >&5
13139 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13140 if test $ac_cv_lib_m_sin = yes; then
13141 cat >>confdefs.h <<_ACEOF
13142 #define HAVE_LIBM 1
13149 if test "$llvm_cv_os_type" = "MingW
" ; then
13151 { echo "$as_me:$LINENO: checking
for main
in -limagehlp" >&5
13152 echo $ECHO_N "checking
for main
in -limagehlp...
$ECHO_C" >&6; }
13153 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13154 echo $ECHO_N "(cached
) $ECHO_C" >&6
13156 ac_check_lib_save_LIBS=$LIBS
13157 LIBS="-limagehlp $LIBS"
13158 cat >conftest.$ac_ext <<_ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13174 rm -f conftest.$ac_objext conftest$ac_exeext
13175 if { (ac_try="$ac_link"
13176 case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13180 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_link") 2>conftest.er1
13183 grep -v '^ *+' conftest.er1 >conftest.err
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13189 { (case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13194 (eval "$ac_try") 2>&5
13196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest$ac_exeext'
13199 { (case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_try") 2>&5
13206 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 ac_cv_lib_imagehlp_main=yes
13210 echo "$as_me: failed program was
:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13213 ac_cv_lib_imagehlp_main=no
13216 rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218 LIBS=$ac_check_lib_save_LIBS
13220 { echo "$as_me:$LINENO: result
: $ac_cv_lib_imagehlp_main" >&5
13221 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13222 if test $ac_cv_lib_imagehlp_main = yes; then
13223 cat >>confdefs.h <<_ACEOF
13224 #define HAVE_LIBIMAGEHLP 1
13227 LIBS="-limagehlp $LIBS"
13232 { echo "$as_me:$LINENO: checking
for main
in -lpsapi" >&5
13233 echo $ECHO_N "checking
for main
in -lpsapi...
$ECHO_C" >&6; }
13234 if test "${ac_cv_lib_psapi_main+set}" = set; then
13235 echo $ECHO_N "(cached
) $ECHO_C" >&6
13237 ac_check_lib_save_LIBS=$LIBS
13238 LIBS="-lpsapi $LIBS"
13239 cat >conftest.$ac_ext <<_ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13255 rm -f conftest.$ac_objext conftest$ac_exeext
13256 if { (ac_try="$ac_link"
13257 case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_link") 2>conftest.er1
13264 grep -v '^ *+' conftest.er1 >conftest.err
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13268 (exit $ac_status); } &&
13269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13270 { (case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13274 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_try") 2>&5
13277 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest$ac_exeext'
13280 { (case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_try") 2>&5
13287 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_cv_lib_psapi_main=yes
13291 echo "$as_me: failed program was
:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13294 ac_cv_lib_psapi_main=no
13297 rm -f core conftest.err conftest.$ac_objext \
13298 conftest$ac_exeext conftest.$ac_ext
13299 LIBS=$ac_check_lib_save_LIBS
13301 { echo "$as_me:$LINENO: result
: $ac_cv_lib_psapi_main" >&5
13302 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13303 if test $ac_cv_lib_psapi_main = yes; then
13304 cat >>confdefs.h <<_ACEOF
13305 #define HAVE_LIBPSAPI 1
13308 LIBS="-lpsapi $LIBS"
13314 { echo "$as_me:$LINENO: checking
for library containing dlopen
" >&5
13315 echo $ECHO_N "checking
for library containing dlopen...
$ECHO_C" >&6; }
13316 if test "${ac_cv_search_dlopen+set}" = set; then
13317 echo $ECHO_N "(cached
) $ECHO_C" >&6
13319 ac_func_search_save_LIBS=$LIBS
13320 cat >conftest.$ac_ext <<_ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13327 /* Override any GCC internal prototype to avoid an error.
13328 Use char because int might match the return type of a GCC
13329 builtin and then its argument prototype would still apply. */
13342 for ac_lib in '' dl; do
13343 if test -z "$ac_lib"; then
13344 ac_res="none required
"
13347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13349 rm -f conftest.$ac_objext conftest$ac_exeext
13350 if { (ac_try="$ac_link"
13351 case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_link") 2>conftest.er1
13358 grep -v '^ *+' conftest.er1 >conftest.err
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13364 { (case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_try") 2>&5
13371 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13372 (exit $ac_status); }; } &&
13373 { ac_try='test -s conftest$ac_exeext'
13374 { (case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_try") 2>&5
13381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13382 (exit $ac_status); }; }; then
13383 ac_cv_search_dlopen=$ac_res
13385 echo "$as_me: failed program was
:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13391 rm -f core conftest.err conftest.$ac_objext \
13393 if test "${ac_cv_search_dlopen+set}" = set; then
13397 if test "${ac_cv_search_dlopen+set}" = set; then
13400 ac_cv_search_dlopen=no
13402 rm conftest.$ac_ext
13403 LIBS=$ac_func_search_save_LIBS
13405 { echo "$as_me:$LINENO: result
: $ac_cv_search_dlopen" >&5
13406 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13407 ac_res=$ac_cv_search_dlopen
13408 if test "$ac_res" != no; then
13409 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
13411 cat >>confdefs.h <<\_ACEOF
13412 #define HAVE_DLOPEN 1
13416 { echo "$as_me:$LINENO: WARNING
: dlopen
() not found
- disabling plugin support
" >&5
13417 echo "$as_me: WARNING
: dlopen
() not found
- disabling plugin support
" >&2;}
13421 if test "$llvm_cv_enable_libffi" = "yes" ; then
13422 { echo "$as_me:$LINENO: checking
for library containing ffi_call
" >&5
13423 echo $ECHO_N "checking
for library containing ffi_call...
$ECHO_C" >&6; }
13424 if test "${ac_cv_search_ffi_call+set}" = set; then
13425 echo $ECHO_N "(cached
) $ECHO_C" >&6
13427 ac_func_search_save_LIBS=$LIBS
13428 cat >conftest.$ac_ext <<_ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13435 /* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply. */
13445 return ffi_call ();
13450 for ac_lib in '' ffi; do
13451 if test -z "$ac_lib"; then
13452 ac_res="none required
"
13455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13457 rm -f conftest.$ac_objext conftest$ac_exeext
13458 if { (ac_try="$ac_link"
13459 case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_link") 2>conftest.er1
13466 grep -v '^ *+' conftest.er1 >conftest.err
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13472 { (case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13476 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_try") 2>&5
13479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13480 (exit $ac_status); }; } &&
13481 { ac_try='test -s conftest$ac_exeext'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 ac_cv_search_ffi_call=$ac_res
13493 echo "$as_me: failed program was
:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13499 rm -f core conftest.err conftest.$ac_objext \
13501 if test "${ac_cv_search_ffi_call+set}" = set; then
13505 if test "${ac_cv_search_ffi_call+set}" = set; then
13508 ac_cv_search_ffi_call=no
13510 rm conftest.$ac_ext
13511 LIBS=$ac_func_search_save_LIBS
13513 { echo "$as_me:$LINENO: result
: $ac_cv_search_ffi_call" >&5
13514 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13515 ac_res=$ac_cv_search_ffi_call
13516 if test "$ac_res" != no; then
13517 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
13519 cat >>confdefs.h <<\_ACEOF
13520 #define HAVE_FFI_CALL 1
13524 { { echo "$as_me:$LINENO: error
: libffi not found
- configure without
--enable-libffi to compile without it
" >&5
13525 echo "$as_me: error
: libffi not found
- configure without
--enable-libffi to compile without it
" >&2;}
13526 { (exit 1); exit 1; }; }
13531 { echo "$as_me:$LINENO: checking
for library containing mallinfo
" >&5
13532 echo $ECHO_N "checking
for library containing mallinfo...
$ECHO_C" >&6; }
13533 if test "${ac_cv_search_mallinfo+set}" = set; then
13534 echo $ECHO_N "(cached
) $ECHO_C" >&6
13536 ac_func_search_save_LIBS=$LIBS
13537 cat >conftest.$ac_ext <<_ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13544 /* Override any GCC internal prototype to avoid an error.
13545 Use char because int might match the return type of a GCC
13546 builtin and then its argument prototype would still apply. */
13554 return mallinfo ();
13559 for ac_lib in '' malloc; do
13560 if test -z "$ac_lib"; then
13561 ac_res="none required
"
13564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13566 rm -f conftest.$ac_objext conftest$ac_exeext
13567 if { (ac_try="$ac_link"
13568 case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_link") 2>conftest.er1
13575 grep -v '^ *+' conftest.er1 >conftest.err
13577 cat conftest.err >&5
13578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13581 { (case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13585 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_try") 2>&5
13588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try='test -s conftest$ac_exeext'
13591 { (case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_try") 2>&5
13598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13599 (exit $ac_status); }; }; then
13600 ac_cv_search_mallinfo=$ac_res
13602 echo "$as_me: failed program was
:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13608 rm -f core conftest.err conftest.$ac_objext \
13610 if test "${ac_cv_search_mallinfo+set}" = set; then
13614 if test "${ac_cv_search_mallinfo+set}" = set; then
13617 ac_cv_search_mallinfo=no
13619 rm conftest.$ac_ext
13620 LIBS=$ac_func_search_save_LIBS
13622 { echo "$as_me:$LINENO: result
: $ac_cv_search_mallinfo" >&5
13623 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13624 ac_res=$ac_cv_search_mallinfo
13625 if test "$ac_res" != no; then
13626 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
13628 cat >>confdefs.h <<\_ACEOF
13629 #define HAVE_MALLINFO 1
13635 if test "$ENABLE_THREADS" -eq 1 ; then
13637 { echo "$as_me:$LINENO: checking
for pthread_mutex_init
in -lpthread" >&5
13638 echo $ECHO_N "checking
for pthread_mutex_init
in -lpthread...
$ECHO_C" >&6; }
13639 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13640 echo $ECHO_N "(cached
) $ECHO_C" >&6
13642 ac_check_lib_save_LIBS=$LIBS
13643 LIBS="-lpthread $LIBS"
13644 cat >conftest.$ac_ext <<_ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13651 /* Override any GCC internal prototype to avoid an error.
13652 Use char because int might match the return type of a GCC
13653 builtin and then its argument prototype would still apply. */
13657 char pthread_mutex_init ();
13661 return pthread_mutex_init ();
13666 rm -f conftest.$ac_objext conftest$ac_exeext
13667 if { (ac_try="$ac_link"
13668 case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13672 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_link") 2>conftest.er1
13675 grep -v '^ *+' conftest.er1 >conftest.err
13677 cat conftest.err >&5
13678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13679 (exit $ac_status); } &&
13680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13681 { (case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_try") 2>&5
13688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13689 (exit $ac_status); }; } &&
13690 { ac_try='test -s conftest$ac_exeext'
13691 { (case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_try") 2>&5
13698 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13699 (exit $ac_status); }; }; then
13700 ac_cv_lib_pthread_pthread_mutex_init=yes
13702 echo "$as_me: failed program was
:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13705 ac_cv_lib_pthread_pthread_mutex_init=no
13708 rm -f core conftest.err conftest.$ac_objext \
13709 conftest$ac_exeext conftest.$ac_ext
13710 LIBS=$ac_check_lib_save_LIBS
13712 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13713 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13714 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13715 cat >>confdefs.h <<_ACEOF
13716 #define HAVE_LIBPTHREAD 1
13719 LIBS="-lpthread $LIBS"
13723 { echo "$as_me:$LINENO: checking
for library containing pthread_mutex_lock
" >&5
13724 echo $ECHO_N "checking
for library containing pthread_mutex_lock...
$ECHO_C" >&6; }
13725 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13726 echo $ECHO_N "(cached
) $ECHO_C" >&6
13728 ac_func_search_save_LIBS=$LIBS
13729 cat >conftest.$ac_ext <<_ACEOF
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h. */
13736 /* Override any GCC internal prototype to avoid an error.
13737 Use char because int might match the return type of a GCC
13738 builtin and then its argument prototype would still apply. */
13742 char pthread_mutex_lock ();
13746 return pthread_mutex_lock ();
13751 for ac_lib in '' pthread; do
13752 if test -z "$ac_lib"; then
13753 ac_res="none required
"
13756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13758 rm -f conftest.$ac_objext conftest$ac_exeext
13759 if { (ac_try="$ac_link"
13760 case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13764 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_link") 2>conftest.er1
13767 grep -v '^ *+' conftest.er1 >conftest.err
13769 cat conftest.err >&5
13770 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13773 { (case "(($ac_try" in
13774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775 *) ac_try_echo=$ac_try;;
13777 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13778 (eval "$ac_try") 2>&5
13780 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13781 (exit $ac_status); }; } &&
13782 { ac_try='test -s conftest$ac_exeext'
13783 { (case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_try") 2>&5
13790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 ac_cv_search_pthread_mutex_lock=$ac_res
13794 echo "$as_me: failed program was
:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13800 rm -f core conftest.err conftest.$ac_objext \
13802 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13806 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13809 ac_cv_search_pthread_mutex_lock=no
13811 rm conftest.$ac_ext
13812 LIBS=$ac_func_search_save_LIBS
13814 { echo "$as_me:$LINENO: result
: $ac_cv_search_pthread_mutex_lock" >&5
13815 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13816 ac_res=$ac_cv_search_pthread_mutex_lock
13817 if test "$ac_res" != no; then
13818 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
13820 cat >>confdefs.h <<\_ACEOF
13821 #define HAVE_PTHREAD_MUTEX_LOCK 1
13826 { echo "$as_me:$LINENO: checking
for library containing pthread_rwlock_init
" >&5
13827 echo $ECHO_N "checking
for library containing pthread_rwlock_init...
$ECHO_C" >&6; }
13828 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13829 echo $ECHO_N "(cached
) $ECHO_C" >&6
13831 ac_func_search_save_LIBS=$LIBS
13832 cat >conftest.$ac_ext <<_ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13839 /* Override any GCC internal prototype to avoid an error.
13840 Use char because int might match the return type of a GCC
13841 builtin and then its argument prototype would still apply. */
13845 char pthread_rwlock_init ();
13849 return pthread_rwlock_init ();
13854 for ac_lib in '' pthread; do
13855 if test -z "$ac_lib"; then
13856 ac_res="none required
"
13859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13861 rm -f conftest.$ac_objext conftest$ac_exeext
13862 if { (ac_try="$ac_link"
13863 case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_link") 2>conftest.er1
13870 grep -v '^ *+' conftest.er1 >conftest.err
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13876 { (case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_try") 2>&5
13883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13884 (exit $ac_status); }; } &&
13885 { ac_try='test -s conftest$ac_exeext'
13886 { (case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_try") 2>&5
13893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13894 (exit $ac_status); }; }; then
13895 ac_cv_search_pthread_rwlock_init=$ac_res
13897 echo "$as_me: failed program was
:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13903 rm -f core conftest.err conftest.$ac_objext \
13905 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13909 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13912 ac_cv_search_pthread_rwlock_init=no
13914 rm conftest.$ac_ext
13915 LIBS=$ac_func_search_save_LIBS
13917 { echo "$as_me:$LINENO: result
: $ac_cv_search_pthread_rwlock_init" >&5
13918 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13919 ac_res=$ac_cv_search_pthread_rwlock_init
13920 if test "$ac_res" != no; then
13921 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
13923 cat >>confdefs.h <<\_ACEOF
13924 #define HAVE_PTHREAD_RWLOCK_INIT 1
13929 { echo "$as_me:$LINENO: checking
for library containing pthread_getspecific
" >&5
13930 echo $ECHO_N "checking
for library containing pthread_getspecific...
$ECHO_C" >&6; }
13931 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13932 echo $ECHO_N "(cached
) $ECHO_C" >&6
13934 ac_func_search_save_LIBS=$LIBS
13935 cat >conftest.$ac_ext <<_ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13942 /* Override any GCC internal prototype to avoid an error.
13943 Use char because int might match the return type of a GCC
13944 builtin and then its argument prototype would still apply. */
13948 char pthread_getspecific ();
13952 return pthread_getspecific ();
13957 for ac_lib in '' pthread; do
13958 if test -z "$ac_lib"; then
13959 ac_res="none required
"
13962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13964 rm -f conftest.$ac_objext conftest$ac_exeext
13965 if { (ac_try="$ac_link"
13966 case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_link") 2>conftest.er1
13973 grep -v '^ *+' conftest.er1 >conftest.err
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13979 { (case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_try") 2>&5
13986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13987 (exit $ac_status); }; } &&
13988 { ac_try='test -s conftest$ac_exeext'
13989 { (case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_try") 2>&5
13996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13997 (exit $ac_status); }; }; then
13998 ac_cv_search_pthread_getspecific=$ac_res
14000 echo "$as_me: failed program was
:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14006 rm -f core conftest.err conftest.$ac_objext \
14008 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14012 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14015 ac_cv_search_pthread_getspecific=no
14017 rm conftest.$ac_ext
14018 LIBS=$ac_func_search_save_LIBS
14020 { echo "$as_me:$LINENO: result
: $ac_cv_search_pthread_getspecific" >&5
14021 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14022 ac_res=$ac_cv_search_pthread_getspecific
14023 if test "$ac_res" != no; then
14024 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14026 cat >>confdefs.h <<\_ACEOF
14027 #define HAVE_PTHREAD_GETSPECIFIC 1
14035 # Check whether --with-udis86 was given.
14036 if test "${with_udis86+set}" = set; then
14037 withval=$with_udis86;
14042 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14045 { echo "$as_me:$LINENO: checking
for ud_init
in -ludis86" >&5
14046 echo $ECHO_N "checking
for ud_init
in -ludis86...
$ECHO_C" >&6; }
14047 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14048 echo $ECHO_N "(cached
) $ECHO_C" >&6
14050 ac_check_lib_save_LIBS=$LIBS
14051 LIBS="-ludis86 $LIBS"
14052 cat >conftest.$ac_ext <<_ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14059 /* Override any GCC internal prototype to avoid an error.
14060 Use char because int might match the return type of a GCC
14061 builtin and then its argument prototype would still apply. */
14074 rm -f conftest.$ac_objext conftest$ac_exeext
14075 if { (ac_try="$ac_link"
14076 case "(($ac_try" in
14077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14078 *) ac_try_echo=$ac_try;;
14080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14081 (eval "$ac_link") 2>conftest.er1
14083 grep -v '^ *+' conftest.er1 >conftest.err
14085 cat conftest.err >&5
14086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14087 (exit $ac_status); } &&
14088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14089 { (case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_try") 2>&5
14096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14097 (exit $ac_status); }; } &&
14098 { ac_try='test -s conftest$ac_exeext'
14099 { (case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14103 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14104 (eval "$ac_try") 2>&5
14106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 ac_cv_lib_udis86_ud_init=yes
14110 echo "$as_me: failed program was
:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_cv_lib_udis86_ud_init=no
14116 rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14118 LIBS=$ac_check_lib_save_LIBS
14120 { echo "$as_me:$LINENO: result
: $ac_cv_lib_udis86_ud_init" >&5
14121 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14122 if test $ac_cv_lib_udis86_ud_init = yes; then
14123 cat >>confdefs.h <<_ACEOF
14124 #define HAVE_LIBUDIS86 1
14127 LIBS="-ludis86 $LIBS"
14131 echo "Error
! You need to have libudis86 around.
"
14143 cat >>confdefs.h <<_ACEOF
14144 #define USE_UDIS86 $USE_UDIS86
14149 # Check whether --with-oprofile was given.
14150 if test "${with_oprofile+set}" = set; then
14151 withval=$with_oprofile;
14155 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14156 no) llvm_cv_oppath=
14159 *) llvm_cv_oppath="${withval}/lib
/oprofile
"
14160 CPPFLAGS="-I${withval}/include
";;
14162 if test -n "$llvm_cv_oppath" ; then
14163 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14164 { echo "$as_me:$LINENO: checking
for library containing bfd_init
" >&5
14165 echo $ECHO_N "checking
for library containing bfd_init...
$ECHO_C" >&6; }
14166 if test "${ac_cv_search_bfd_init+set}" = set; then
14167 echo $ECHO_N "(cached
) $ECHO_C" >&6
14169 ac_func_search_save_LIBS=$LIBS
14170 cat >conftest.$ac_ext <<_ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14187 return bfd_init ();
14192 for ac_lib in '' bfd; do
14193 if test -z "$ac_lib"; then
14194 ac_res="none required
"
14197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14199 rm -f conftest.$ac_objext conftest$ac_exeext
14200 if { (ac_try="$ac_link"
14201 case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14205 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14206 (eval "$ac_link") 2>conftest.er1
14208 grep -v '^ *+' conftest.er1 >conftest.err
14210 cat conftest.err >&5
14211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14212 (exit $ac_status); } &&
14213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14214 { (case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14218 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_try") 2>&5
14221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14222 (exit $ac_status); }; } &&
14223 { ac_try='test -s conftest$ac_exeext'
14224 { (case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14228 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_try") 2>&5
14231 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14232 (exit $ac_status); }; }; then
14233 ac_cv_search_bfd_init=$ac_res
14235 echo "$as_me: failed program was
:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14241 rm -f core conftest.err conftest.$ac_objext \
14243 if test "${ac_cv_search_bfd_init+set}" = set; then
14247 if test "${ac_cv_search_bfd_init+set}" = set; then
14250 ac_cv_search_bfd_init=no
14252 rm conftest.$ac_ext
14253 LIBS=$ac_func_search_save_LIBS
14255 { echo "$as_me:$LINENO: result
: $ac_cv_search_bfd_init" >&5
14256 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14257 ac_res=$ac_cv_search_bfd_init
14258 if test "$ac_res" != no; then
14259 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14263 { echo "$as_me:$LINENO: checking
for library containing op_open_agent
" >&5
14264 echo $ECHO_N "checking
for library containing op_open_agent...
$ECHO_C" >&6; }
14265 if test "${ac_cv_search_op_open_agent+set}" = set; then
14266 echo $ECHO_N "(cached
) $ECHO_C" >&6
14268 ac_func_search_save_LIBS=$LIBS
14269 cat >conftest.$ac_ext <<_ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14276 /* Override any GCC internal prototype to avoid an error.
14277 Use char because int might match the return type of a GCC
14278 builtin and then its argument prototype would still apply. */
14282 char op_open_agent ();
14286 return op_open_agent ();
14291 for ac_lib in '' opagent; do
14292 if test -z "$ac_lib"; then
14293 ac_res="none required
"
14296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14298 rm -f conftest.$ac_objext conftest$ac_exeext
14299 if { (ac_try="$ac_link"
14300 case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_link") 2>conftest.er1
14307 grep -v '^ *+' conftest.er1 >conftest.err
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14311 (exit $ac_status); } &&
14312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14313 { (case "(($ac_try" in
14314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315 *) ac_try_echo=$ac_try;;
14317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14318 (eval "$ac_try") 2>&5
14320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14321 (exit $ac_status); }; } &&
14322 { ac_try='test -s conftest$ac_exeext'
14323 { (case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_try") 2>&5
14330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 ac_cv_search_op_open_agent=$ac_res
14334 echo "$as_me: failed program was
:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14340 rm -f core conftest.err conftest.$ac_objext \
14342 if test "${ac_cv_search_op_open_agent+set}" = set; then
14346 if test "${ac_cv_search_op_open_agent+set}" = set; then
14349 ac_cv_search_op_open_agent=no
14351 rm conftest.$ac_ext
14352 LIBS=$ac_func_search_save_LIBS
14354 { echo "$as_me:$LINENO: result
: $ac_cv_search_op_open_agent" >&5
14355 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14356 ac_res=$ac_cv_search_op_open_agent
14357 if test "$ac_res" != no; then
14358 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14362 echo "Error
! You need to have libopagent around.
"
14367 if test "${ac_cv_header_opagent_h+set}" = set; then
14368 { echo "$as_me:$LINENO: checking
for opagent.h
" >&5
14369 echo $ECHO_N "checking
for opagent.h...
$ECHO_C" >&6; }
14370 if test "${ac_cv_header_opagent_h+set}" = set; then
14371 echo $ECHO_N "(cached
) $ECHO_C" >&6
14373 { echo "$as_me:$LINENO: result
: $ac_cv_header_opagent_h" >&5
14374 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14376 # Is the header compilable?
14377 { echo "$as_me:$LINENO: checking opagent.h usability
" >&5
14378 echo $ECHO_N "checking opagent.h usability...
$ECHO_C" >&6; }
14379 cat >conftest.$ac_ext <<_ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 $ac_includes_default
14386 #include <opagent.h>
14388 rm -f conftest.$ac_objext
14389 if { (ac_try="$ac_compile"
14390 case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_compile") 2>conftest.er1
14397 grep -v '^ *+' conftest.er1 >conftest.err
14399 cat conftest.err >&5
14400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14401 (exit $ac_status); } &&
14402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14403 { (case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_try") 2>&5
14410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14418 (eval "$ac_try") 2>&5
14420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 ac_header_compiler=yes
14424 echo "$as_me: failed program was
:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14427 ac_header_compiler=no
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14432 echo "${ECHO_T}$ac_header_compiler" >&6; }
14434 # Is the header present?
14435 { echo "$as_me:$LINENO: checking opagent.h presence
" >&5
14436 echo $ECHO_N "checking opagent.h presence...
$ECHO_C" >&6; }
14437 cat >conftest.$ac_ext <<_ACEOF
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h. */
14443 #include <opagent.h>
14445 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14446 case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14453 grep -v '^ *+' conftest.er1 >conftest.err
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14457 (exit $ac_status); } >/dev/null; then
14458 if test -s conftest.err; then
14459 ac_cpp_err=$ac_c_preproc_warn_flag
14460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14467 if test -z "$ac_cpp_err"; then
14468 ac_header_preproc=yes
14470 echo "$as_me: failed program was
:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 ac_header_preproc=no
14476 rm -f conftest.err conftest.$ac_ext
14477 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14478 echo "${ECHO_T}$ac_header_preproc" >&6; }
14480 # So? What about this header?
14481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14483 { echo "$as_me:$LINENO: WARNING
: opagent.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14484 echo "$as_me: WARNING
: opagent.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14485 { echo "$as_me:$LINENO: WARNING
: opagent.h
: proceeding with the compiler
's result" >&5
14486 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result
" >&2;}
14487 ac_header_preproc=yes
14490 { echo "$as_me:$LINENO: WARNING
: opagent.h
: present but cannot be compiled
" >&5
14491 echo "$as_me: WARNING
: opagent.h
: present but cannot be compiled
" >&2;}
14492 { echo "$as_me:$LINENO: WARNING
: opagent.h
: check
for missing prerequisite headers?
" >&5
14493 echo "$as_me: WARNING
: opagent.h
: check
for missing prerequisite headers?
" >&2;}
14494 { echo "$as_me:$LINENO: WARNING
: opagent.h
: see the Autoconf documentation
" >&5
14495 echo "$as_me: WARNING
: opagent.h
: see the Autoconf documentation
" >&2;}
14496 { echo "$as_me:$LINENO: WARNING
: opagent.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14497 echo "$as_me: WARNING
: opagent.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14498 { echo "$as_me:$LINENO: WARNING
: opagent.h
: proceeding with the preprocessor
's result" >&5
14499 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result
" >&2;}
14500 { echo "$as_me:$LINENO: WARNING
: opagent.h
: in the future
, the compiler will take precedence
" >&5
14501 echo "$as_me: WARNING
: opagent.h
: in the future
, the compiler will take precedence
" >&2;}
14503 ## ----------------------------------- ##
14504 ## Report this to llvmbugs@cs.uiuc.edu ##
14505 ## ----------------------------------- ##
14507 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
14510 { echo "$as_me:$LINENO: checking
for opagent.h
" >&5
14511 echo $ECHO_N "checking
for opagent.h...
$ECHO_C" >&6; }
14512 if test "${ac_cv_header_opagent_h+set}" = set; then
14513 echo $ECHO_N "(cached
) $ECHO_C" >&6
14515 ac_cv_header_opagent_h=$ac_header_preproc
14517 { echo "$as_me:$LINENO: result
: $ac_cv_header_opagent_h" >&5
14518 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14521 if test $ac_cv_header_opagent_h = yes; then
14525 echo "Error
! You need to have opagent.h around.
"
14541 cat >>confdefs.h <<_ACEOF
14542 #define USE_OPROFILE $USE_OPROFILE
14552 ac_header_dirent=no
14553 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14554 as_ac_Header=`echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
14555 { echo "$as_me:$LINENO: checking
for $ac_hdr that defines DIR
" >&5
14556 echo $ECHO_N "checking
for $ac_hdr that defines DIR...
$ECHO_C" >&6; }
14557 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14558 echo $ECHO_N "(cached
) $ECHO_C" >&6
14560 cat >conftest.$ac_ext <<_ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 #include <sys/types.h>
14578 rm -f conftest.$ac_objext
14579 if { (ac_try="$ac_compile"
14580 case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_compile") 2>conftest.er1
14587 grep -v '^ *+' conftest.er1 >conftest.err
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14591 (exit $ac_status); } &&
14592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14593 { (case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14597 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14598 (eval "$ac_try") 2>&5
14600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14601 (exit $ac_status); }; } &&
14602 { ac_try='test -s conftest.$ac_objext'
14603 { (case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14607 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14608 (eval "$ac_try") 2>&5
14610 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14611 (exit $ac_status); }; }; then
14612 eval "$as_ac_Header=yes"
14614 echo "$as_me: failed program was
:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14617 eval "$as_ac_Header=no
"
14620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622 ac_res=`eval echo '${'$as_ac_Header'}'`
14623 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14624 echo "${ECHO_T}$ac_res" >&6; }
14625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14626 cat >>confdefs.h <<_ACEOF
14627 #define `echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
14630 ac_header_dirent=$ac_hdr; break
14634 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14635 if test $ac_header_dirent = dirent.h; then
14636 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
14637 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
14638 if test "${ac_cv_search_opendir+set}" = set; then
14639 echo $ECHO_N "(cached
) $ECHO_C" >&6
14641 ac_func_search_save_LIBS=$LIBS
14642 cat >conftest.$ac_ext <<_ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h. */
14649 /* Override any GCC internal prototype to avoid an error.
14650 Use char because int might match the return type of a GCC
14651 builtin and then its argument prototype would still apply. */
14664 for ac_lib in '' dir; do
14665 if test -z "$ac_lib"; then
14666 ac_res="none required
"
14669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14671 rm -f conftest.$ac_objext conftest$ac_exeext
14672 if { (ac_try="$ac_link"
14673 case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14678 (eval "$ac_link") 2>conftest.er1
14680 grep -v '^ *+' conftest.er1 >conftest.err
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14684 (exit $ac_status); } &&
14685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14686 { (case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_try") 2>&5
14693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14694 (exit $ac_status); }; } &&
14695 { ac_try='test -s conftest$ac_exeext'
14696 { (case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_try") 2>&5
14703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14704 (exit $ac_status); }; }; then
14705 ac_cv_search_opendir=$ac_res
14707 echo "$as_me: failed program was
:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14713 rm -f core conftest.err conftest.$ac_objext \
14715 if test "${ac_cv_search_opendir+set}" = set; then
14719 if test "${ac_cv_search_opendir+set}" = set; then
14722 ac_cv_search_opendir=no
14724 rm conftest.$ac_ext
14725 LIBS=$ac_func_search_save_LIBS
14727 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
14728 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14729 ac_res=$ac_cv_search_opendir
14730 if test "$ac_res" != no; then
14731 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14736 { echo "$as_me:$LINENO: checking
for library containing opendir
" >&5
14737 echo $ECHO_N "checking
for library containing opendir...
$ECHO_C" >&6; }
14738 if test "${ac_cv_search_opendir+set}" = set; then
14739 echo $ECHO_N "(cached
) $ECHO_C" >&6
14741 ac_func_search_save_LIBS=$LIBS
14742 cat >conftest.$ac_ext <<_ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14749 /* Override any GCC internal prototype to avoid an error.
14750 Use char because int might match the return type of a GCC
14751 builtin and then its argument prototype would still apply. */
14764 for ac_lib in '' x; do
14765 if test -z "$ac_lib"; then
14766 ac_res="none required
"
14769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14771 rm -f conftest.$ac_objext conftest$ac_exeext
14772 if { (ac_try="$ac_link"
14773 case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14777 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_link") 2>conftest.er1
14780 grep -v '^ *+' conftest.er1 >conftest.err
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14784 (exit $ac_status); } &&
14785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14786 { (case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14791 (eval "$ac_try") 2>&5
14793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14794 (exit $ac_status); }; } &&
14795 { ac_try='test -s conftest$ac_exeext'
14796 { (case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_try") 2>&5
14803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 ac_cv_search_opendir=$ac_res
14807 echo "$as_me: failed program was
:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14813 rm -f core conftest.err conftest.$ac_objext \
14815 if test "${ac_cv_search_opendir+set}" = set; then
14819 if test "${ac_cv_search_opendir+set}" = set; then
14822 ac_cv_search_opendir=no
14824 rm conftest.$ac_ext
14825 LIBS=$ac_func_search_save_LIBS
14827 { echo "$as_me:$LINENO: result
: $ac_cv_search_opendir" >&5
14828 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14829 ac_res=$ac_cv_search_opendir
14830 if test "$ac_res" != no; then
14831 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
14837 { echo "$as_me:$LINENO: checking
for MAP_ANONYMOUS vs. MAP_ANON
" >&5
14838 echo $ECHO_N "checking
for MAP_ANONYMOUS vs. MAP_ANON...
$ECHO_C" >&6; }
14839 if test "${ac_cv_header_mmap_anon+set}" = set; then
14840 echo $ECHO_N "(cached
) $ECHO_C" >&6
14843 ac_cpp='$CPP $CPPFLAGS'
14844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14848 cat >conftest.$ac_ext <<_ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h. */
14854 #include <sys/mman.h>
14855 #include <unistd.h>
14860 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14865 rm -f conftest.$ac_objext
14866 if { (ac_try="$ac_compile"
14867 case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_compile") 2>conftest.er1
14874 grep -v '^ *+' conftest.er1 >conftest.err
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14880 { (case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_try") 2>&5
14887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14888 (exit $ac_status); }; } &&
14889 { ac_try='test -s conftest.$ac_objext'
14890 { (case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_try") 2>&5
14897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 ac_cv_header_mmap_anon=yes
14901 echo "$as_me: failed program was
:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 ac_cv_header_mmap_anon=no
14907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909 ac_cpp='$CPP $CPPFLAGS'
14910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14916 { echo "$as_me:$LINENO: result
: $ac_cv_header_mmap_anon" >&5
14917 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14918 if test "$ac_cv_header_mmap_anon" = yes; then
14920 cat >>confdefs.h <<\_ACEOF
14921 #define HAVE_MMAP_ANONYMOUS 1
14926 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken
" >&5
14927 echo $ECHO_N "checking whether stat file-mode macros are broken...
$ECHO_C" >&6; }
14928 if test "${ac_cv_header_stat_broken+set}" = set; then
14929 echo $ECHO_N "(cached
) $ECHO_C" >&6
14931 cat >conftest.$ac_ext <<_ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 #include <sys/types.h>
14938 #include <sys/stat.h>
14940 #if defined S_ISBLK && defined S_IFDIR
14941 # if S_ISBLK (S_IFDIR)
14946 #if defined S_ISBLK && defined S_IFCHR
14947 # if S_ISBLK (S_IFCHR)
14952 #if defined S_ISLNK && defined S_IFREG
14953 # if S_ISLNK (S_IFREG)
14958 #if defined S_ISSOCK && defined S_IFREG
14959 # if S_ISSOCK (S_IFREG)
14965 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14966 $EGREP "You lose
" >/dev/null 2>&1; then
14967 ac_cv_header_stat_broken=yes
14969 ac_cv_header_stat_broken=no
14974 { echo "$as_me:$LINENO: result
: $ac_cv_header_stat_broken" >&5
14975 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14976 if test $ac_cv_header_stat_broken = yes; then
14978 cat >>confdefs.h <<\_ACEOF
14979 #define STAT_MACROS_BROKEN 1
14984 { echo "$as_me:$LINENO: checking
for ANSI C header files
" >&5
14985 echo $ECHO_N "checking
for ANSI C header files...
$ECHO_C" >&6; }
14986 if test "${ac_cv_header_stdc+set}" = set; then
14987 echo $ECHO_N "(cached
) $ECHO_C" >&6
14989 cat >conftest.$ac_ext <<_ACEOF
14992 cat confdefs.h >>conftest.$ac_ext
14993 cat >>conftest.$ac_ext <<_ACEOF
14994 /* end confdefs.h. */
14995 #include <stdlib.h>
14996 #include <stdarg.h>
14997 #include <string.h>
15008 rm -f conftest.$ac_objext
15009 if { (ac_try="$ac_compile"
15010 case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_compile") 2>conftest.er1
15017 grep -v '^ *+' conftest.er1 >conftest.err
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15021 (exit $ac_status); } &&
15022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15023 { (case "(($ac_try" in
15024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15025 *) ac_try_echo=$ac_try;;
15027 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15028 (eval "$ac_try") 2>&5
15030 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15031 (exit $ac_status); }; } &&
15032 { ac_try='test -s conftest.$ac_objext'
15033 { (case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_try") 2>&5
15040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_cv_header_stdc=yes
15044 echo "$as_me: failed program was
:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15047 ac_cv_header_stdc=no
15050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 if test $ac_cv_header_stdc = yes; then
15053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15054 cat >conftest.$ac_ext <<_ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h. */
15060 #include <string.h>
15063 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15064 $EGREP "memchr
" >/dev/null 2>&1; then
15067 ac_cv_header_stdc=no
15073 if test $ac_cv_header_stdc = yes; then
15074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15075 cat >conftest.$ac_ext <<_ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15081 #include <stdlib.h>
15084 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15085 $EGREP "free
" >/dev/null 2>&1; then
15088 ac_cv_header_stdc=no
15094 if test $ac_cv_header_stdc = yes; then
15095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15096 if test "$cross_compiling" = yes; then
15099 cat >conftest.$ac_ext <<_ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15106 #include <stdlib.h>
15107 #if ((' ' & 0x0FF) == 0x020)
15108 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15109 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15111 # define ISLOWER(c) \
15112 (('a' <= (c) && (c) <= 'i') \
15113 || ('j' <= (c) && (c) <= 'r') \
15114 || ('s' <= (c) && (c) <= 'z'))
15115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15123 for (i = 0; i < 256; i++)
15124 if (XOR (islower (i), ISLOWER (i))
15125 || toupper (i) != TOUPPER (i))
15130 rm -f conftest$ac_exeext
15131 if { (ac_try="$ac_link"
15132 case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_link") 2>&5
15139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15141 { (case "(($ac_try" in
15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_try") 2>&5
15148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15149 (exit $ac_status); }; }; then
15152 echo "$as_me: program exited with status
$ac_status" >&5
15153 echo "$as_me: failed program was
:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15156 ( exit $ac_status )
15157 ac_cv_header_stdc=no
15159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15165 { echo "$as_me:$LINENO: result
: $ac_cv_header_stdc" >&5
15166 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15167 if test $ac_cv_header_stdc = yes; then
15169 cat >>confdefs.h <<\_ACEOF
15170 #define STDC_HEADERS 1
15175 { echo "$as_me:$LINENO: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
15176 echo $ECHO_N "checking
for sys
/wait.h that is POSIX
.1 compatible...
$ECHO_C" >&6; }
15177 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15178 echo $ECHO_N "(cached
) $ECHO_C" >&6
15180 cat >conftest.$ac_ext <<_ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15186 #include <sys/types.h>
15187 #include <sys/wait.h>
15188 #ifndef WEXITSTATUS
15189 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15192 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15200 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15205 rm -f conftest.$ac_objext
15206 if { (ac_try="$ac_compile"
15207 case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_compile") 2>conftest.er1
15214 grep -v '^ *+' conftest.er1 >conftest.err
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15220 { (case "(($ac_try" in
15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222 *) ac_try_echo=$ac_try;;
15224 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15225 (eval "$ac_try") 2>&5
15227 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15228 (exit $ac_status); }; } &&
15229 { ac_try='test -s conftest.$ac_objext'
15230 { (case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15234 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_try") 2>&5
15237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15238 (exit $ac_status); }; }; then
15239 ac_cv_header_sys_wait_h=yes
15241 echo "$as_me: failed program was
:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15244 ac_cv_header_sys_wait_h=no
15247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_wait_h" >&5
15250 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15251 if test $ac_cv_header_sys_wait_h = yes; then
15253 cat >>confdefs.h <<\_ACEOF
15254 #define HAVE_SYS_WAIT_H 1
15259 { echo "$as_me:$LINENO: checking whether
time.h and sys
/time.h may both be included
" >&5
15260 echo $ECHO_N "checking whether
time.h and sys
/time.h may both be included...
$ECHO_C" >&6; }
15261 if test "${ac_cv_header_time+set}" = set; then
15262 echo $ECHO_N "(cached
) $ECHO_C" >&6
15264 cat >conftest.$ac_ext <<_ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h. */
15270 #include <sys/types.h>
15271 #include <sys/time.h>
15277 if ((struct tm *) 0)
15283 rm -f conftest.$ac_objext
15284 if { (ac_try="$ac_compile"
15285 case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_compile") 2>conftest.er1
15292 grep -v '^ *+' conftest.er1 >conftest.err
15294 cat conftest.err >&5
15295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15296 (exit $ac_status); } &&
15297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15298 { (case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_try") 2>&5
15305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15306 (exit $ac_status); }; } &&
15307 { ac_try='test -s conftest.$ac_objext'
15308 { (case "(($ac_try" in
15309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310 *) ac_try_echo=$ac_try;;
15312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15313 (eval "$ac_try") 2>&5
15315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15316 (exit $ac_status); }; }; then
15317 ac_cv_header_time=yes
15319 echo "$as_me: failed program was
:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ac_cv_header_time=no
15325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15327 { echo "$as_me:$LINENO: result
: $ac_cv_header_time" >&5
15328 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15329 if test $ac_cv_header_time = yes; then
15331 cat >>confdefs.h <<\_ACEOF
15332 #define TIME_WITH_SYS_TIME 1
15344 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15346 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15347 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15348 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15349 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15350 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15351 echo $ECHO_N "(cached
) $ECHO_C" >&6
15353 ac_res=`eval echo '${'$as_ac_Header'}'`
15354 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15355 echo "${ECHO_T}$ac_res" >&6; }
15357 # Is the header compilable?
15358 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15359 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15360 cat >conftest.$ac_ext <<_ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15366 $ac_includes_default
15367 #include <$ac_header>
15369 rm -f conftest.$ac_objext
15370 if { (ac_try="$ac_compile"
15371 case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15375 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_compile") 2>conftest.er1
15378 grep -v '^ *+' conftest.er1 >conftest.err
15380 cat conftest.err >&5
15381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15382 (exit $ac_status); } &&
15383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15384 { (case "(($ac_try" in
15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386 *) ac_try_echo=$ac_try;;
15388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15389 (eval "$ac_try") 2>&5
15391 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15392 (exit $ac_status); }; } &&
15393 { ac_try='test -s conftest.$ac_objext'
15394 { (case "(($ac_try" in
15395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396 *) ac_try_echo=$ac_try;;
15398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15399 (eval "$ac_try") 2>&5
15401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15402 (exit $ac_status); }; }; then
15403 ac_header_compiler=yes
15405 echo "$as_me: failed program was
:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15408 ac_header_compiler=no
15411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15413 echo "${ECHO_T}$ac_header_compiler" >&6; }
15415 # Is the header present?
15416 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15417 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15418 cat >conftest.$ac_ext <<_ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15424 #include <$ac_header>
15426 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15427 case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15434 grep -v '^ *+' conftest.er1 >conftest.err
15436 cat conftest.err >&5
15437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15438 (exit $ac_status); } >/dev/null; then
15439 if test -s conftest.err; then
15440 ac_cpp_err=$ac_c_preproc_warn_flag
15441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15448 if test -z "$ac_cpp_err"; then
15449 ac_header_preproc=yes
15451 echo "$as_me: failed program was
:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15454 ac_header_preproc=no
15457 rm -f conftest.err conftest.$ac_ext
15458 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15459 echo "${ECHO_T}$ac_header_preproc" >&6; }
15461 # So? What about this header?
15462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15464 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15465 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15466 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15468 ac_header_preproc=yes
15471 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15472 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15473 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15474 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15475 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15476 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15477 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15478 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15479 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15481 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15482 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15484 ## ----------------------------------- ##
15485 ## Report this to llvmbugs@cs.uiuc.edu ##
15486 ## ----------------------------------- ##
15488 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
15491 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15492 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15493 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15494 echo $ECHO_N "(cached
) $ECHO_C" >&6
15496 eval "$as_ac_Header=\
$ac_header_preproc"
15498 ac_res=`eval echo '${'$as_ac_Header'}'`
15499 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15500 echo "${ECHO_T}$ac_res" >&6; }
15503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15504 cat >>confdefs.h <<_ACEOF
15505 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15518 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15520 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15521 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15522 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15523 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15524 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15525 echo $ECHO_N "(cached
) $ECHO_C" >&6
15527 ac_res=`eval echo '${'$as_ac_Header'}'`
15528 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15529 echo "${ECHO_T}$ac_res" >&6; }
15531 # Is the header compilable?
15532 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15533 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15534 cat >conftest.$ac_ext <<_ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15540 $ac_includes_default
15541 #include <$ac_header>
15543 rm -f conftest.$ac_objext
15544 if { (ac_try="$ac_compile"
15545 case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_compile") 2>conftest.er1
15552 grep -v '^ *+' conftest.er1 >conftest.err
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15556 (exit $ac_status); } &&
15557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15558 { (case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_try") 2>&5
15565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15566 (exit $ac_status); }; } &&
15567 { ac_try='test -s conftest.$ac_objext'
15568 { (case "(($ac_try" in
15569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570 *) ac_try_echo=$ac_try;;
15572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15573 (eval "$ac_try") 2>&5
15575 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_header_compiler=yes
15579 echo "$as_me: failed program was
:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_header_compiler=no
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15587 echo "${ECHO_T}$ac_header_compiler" >&6; }
15589 # Is the header present?
15590 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15591 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15592 cat >conftest.$ac_ext <<_ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 #include <$ac_header>
15600 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15601 case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15608 grep -v '^ *+' conftest.er1 >conftest.err
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15612 (exit $ac_status); } >/dev/null; then
15613 if test -s conftest.err; then
15614 ac_cpp_err=$ac_c_preproc_warn_flag
15615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15622 if test -z "$ac_cpp_err"; then
15623 ac_header_preproc=yes
15625 echo "$as_me: failed program was
:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15628 ac_header_preproc=no
15631 rm -f conftest.err conftest.$ac_ext
15632 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15633 echo "${ECHO_T}$ac_header_preproc" >&6; }
15635 # So? What about this header?
15636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15638 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15639 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15640 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15642 ac_header_preproc=yes
15645 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15646 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15647 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15648 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15649 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15650 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15651 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15652 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15653 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15655 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15656 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15658 ## ----------------------------------- ##
15659 ## Report this to llvmbugs@cs.uiuc.edu ##
15660 ## ----------------------------------- ##
15662 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
15665 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15666 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15667 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15668 echo $ECHO_N "(cached
) $ECHO_C" >&6
15670 eval "$as_ac_Header=\
$ac_header_preproc"
15672 ac_res=`eval echo '${'$as_ac_Header'}'`
15673 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15674 echo "${ECHO_T}$ac_res" >&6; }
15677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15678 cat >>confdefs.h <<_ACEOF
15679 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15688 for ac_header in utime.h windows.h
15690 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15691 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15692 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15693 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15694 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15695 echo $ECHO_N "(cached
) $ECHO_C" >&6
15697 ac_res=`eval echo '${'$as_ac_Header'}'`
15698 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15699 echo "${ECHO_T}$ac_res" >&6; }
15701 # Is the header compilable?
15702 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15703 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15704 cat >conftest.$ac_ext <<_ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h. */
15710 $ac_includes_default
15711 #include <$ac_header>
15713 rm -f conftest.$ac_objext
15714 if { (ac_try="$ac_compile"
15715 case "(($ac_try" in
15716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717 *) ac_try_echo=$ac_try;;
15719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15720 (eval "$ac_compile") 2>conftest.er1
15722 grep -v '^ *+' conftest.er1 >conftest.err
15724 cat conftest.err >&5
15725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15726 (exit $ac_status); } &&
15727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15728 { (case "(($ac_try" in
15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730 *) ac_try_echo=$ac_try;;
15732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15733 (eval "$ac_try") 2>&5
15735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15736 (exit $ac_status); }; } &&
15737 { ac_try='test -s conftest.$ac_objext'
15738 { (case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15742 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_try") 2>&5
15745 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15746 (exit $ac_status); }; }; then
15747 ac_header_compiler=yes
15749 echo "$as_me: failed program was
:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15752 ac_header_compiler=no
15755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15757 echo "${ECHO_T}$ac_header_compiler" >&6; }
15759 # Is the header present?
15760 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15761 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15762 cat >conftest.$ac_ext <<_ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h. */
15768 #include <$ac_header>
15770 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15771 case "(($ac_try" in
15772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773 *) ac_try_echo=$ac_try;;
15775 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15776 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15778 grep -v '^ *+' conftest.er1 >conftest.err
15780 cat conftest.err >&5
15781 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15782 (exit $ac_status); } >/dev/null; then
15783 if test -s conftest.err; then
15784 ac_cpp_err=$ac_c_preproc_warn_flag
15785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15792 if test -z "$ac_cpp_err"; then
15793 ac_header_preproc=yes
15795 echo "$as_me: failed program was
:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15798 ac_header_preproc=no
15801 rm -f conftest.err conftest.$ac_ext
15802 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15803 echo "${ECHO_T}$ac_header_preproc" >&6; }
15805 # So? What about this header?
15806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15808 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15809 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15810 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15812 ac_header_preproc=yes
15815 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15816 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15817 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15818 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15819 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15820 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15821 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15822 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15823 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15825 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15826 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15828 ## ----------------------------------- ##
15829 ## Report this to llvmbugs@cs.uiuc.edu ##
15830 ## ----------------------------------- ##
15832 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
15835 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15836 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15837 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15838 echo $ECHO_N "(cached
) $ECHO_C" >&6
15840 eval "$as_ac_Header=\
$ac_header_preproc"
15842 ac_res=`eval echo '${'$as_ac_Header'}'`
15843 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15844 echo "${ECHO_T}$ac_res" >&6; }
15847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15848 cat >>confdefs.h <<_ACEOF
15849 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15860 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15862 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15863 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15864 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15865 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15866 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15867 echo $ECHO_N "(cached
) $ECHO_C" >&6
15869 ac_res=`eval echo '${'$as_ac_Header'}'`
15870 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15871 echo "${ECHO_T}$ac_res" >&6; }
15873 # Is the header compilable?
15874 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15875 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15876 cat >conftest.$ac_ext <<_ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 $ac_includes_default
15883 #include <$ac_header>
15885 rm -f conftest.$ac_objext
15886 if { (ac_try="$ac_compile"
15887 case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_compile") 2>conftest.er1
15894 grep -v '^ *+' conftest.er1 >conftest.err
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15900 { (case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_try") 2>&5
15907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15908 (exit $ac_status); }; } &&
15909 { ac_try='test -s conftest.$ac_objext'
15910 { (case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15915 (eval "$ac_try") 2>&5
15917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_header_compiler=yes
15921 echo "$as_me: failed program was
:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 ac_header_compiler=no
15927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15929 echo "${ECHO_T}$ac_header_compiler" >&6; }
15931 # Is the header present?
15932 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15933 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15934 cat >conftest.$ac_ext <<_ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15940 #include <$ac_header>
15942 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15943 case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15947 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15950 grep -v '^ *+' conftest.er1 >conftest.err
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15954 (exit $ac_status); } >/dev/null; then
15955 if test -s conftest.err; then
15956 ac_cpp_err=$ac_c_preproc_warn_flag
15957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15964 if test -z "$ac_cpp_err"; then
15965 ac_header_preproc=yes
15967 echo "$as_me: failed program was
:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15970 ac_header_preproc=no
15973 rm -f conftest.err conftest.$ac_ext
15974 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15975 echo "${ECHO_T}$ac_header_preproc" >&6; }
15977 # So? What about this header?
15978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15980 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15981 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15982 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15984 ac_header_preproc=yes
15987 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15988 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15989 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15990 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15991 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15992 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15993 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15994 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15995 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15997 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15998 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16000 ## ----------------------------------- ##
16001 ## Report this to llvmbugs@cs.uiuc.edu ##
16002 ## ----------------------------------- ##
16004 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
16007 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16008 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16009 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16010 echo $ECHO_N "(cached
) $ECHO_C" >&6
16012 eval "$as_ac_Header=\
$ac_header_preproc"
16014 ac_res=`eval echo '${'$as_ac_Header'}'`
16015 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16016 echo "${ECHO_T}$ac_res" >&6; }
16019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16020 cat >>confdefs.h <<_ACEOF
16021 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16032 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16034 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16035 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16036 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16037 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16038 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16039 echo $ECHO_N "(cached
) $ECHO_C" >&6
16041 ac_res=`eval echo '${'$as_ac_Header'}'`
16042 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16043 echo "${ECHO_T}$ac_res" >&6; }
16045 # Is the header compilable?
16046 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16047 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16048 cat >conftest.$ac_ext <<_ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16054 $ac_includes_default
16055 #include <$ac_header>
16057 rm -f conftest.$ac_objext
16058 if { (ac_try="$ac_compile"
16059 case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_compile") 2>conftest.er1
16066 grep -v '^ *+' conftest.er1 >conftest.err
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16072 { (case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_try") 2>&5
16079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16080 (exit $ac_status); }; } &&
16081 { ac_try='test -s conftest.$ac_objext'
16082 { (case "(($ac_try" in
16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_try") 2>&5
16089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16090 (exit $ac_status); }; }; then
16091 ac_header_compiler=yes
16093 echo "$as_me: failed program was
:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16096 ac_header_compiler=no
16099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16100 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16101 echo "${ECHO_T}$ac_header_compiler" >&6; }
16103 # Is the header present?
16104 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16105 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16106 cat >conftest.$ac_ext <<_ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 #include <$ac_header>
16114 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16115 case "(($ac_try" in
16116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117 *) ac_try_echo=$ac_try;;
16119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16120 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16122 grep -v '^ *+' conftest.er1 >conftest.err
16124 cat conftest.err >&5
16125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16126 (exit $ac_status); } >/dev/null; then
16127 if test -s conftest.err; then
16128 ac_cpp_err=$ac_c_preproc_warn_flag
16129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16136 if test -z "$ac_cpp_err"; then
16137 ac_header_preproc=yes
16139 echo "$as_me: failed program was
:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16142 ac_header_preproc=no
16145 rm -f conftest.err conftest.$ac_ext
16146 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16147 echo "${ECHO_T}$ac_header_preproc" >&6; }
16149 # So? What about this header?
16150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16152 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16153 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16154 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16156 ac_header_preproc=yes
16159 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16160 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16161 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16162 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16163 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16164 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16165 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16166 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16167 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16169 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16170 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16172 ## ----------------------------------- ##
16173 ## Report this to llvmbugs@cs.uiuc.edu ##
16174 ## ----------------------------------- ##
16176 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
16179 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16180 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16181 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16182 echo $ECHO_N "(cached
) $ECHO_C" >&6
16184 eval "$as_ac_Header=\
$ac_header_preproc"
16186 ac_res=`eval echo '${'$as_ac_Header'}'`
16187 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16188 echo "${ECHO_T}$ac_res" >&6; }
16191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16192 cat >>confdefs.h <<_ACEOF
16193 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16201 for ac_header in valgrind/valgrind.h
16203 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16204 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16205 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16206 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16207 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16208 echo $ECHO_N "(cached
) $ECHO_C" >&6
16210 ac_res=`eval echo '${'$as_ac_Header'}'`
16211 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16212 echo "${ECHO_T}$ac_res" >&6; }
16214 # Is the header compilable?
16215 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16216 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16217 cat >conftest.$ac_ext <<_ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16223 $ac_includes_default
16224 #include <$ac_header>
16226 rm -f conftest.$ac_objext
16227 if { (ac_try="$ac_compile"
16228 case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_compile") 2>conftest.er1
16235 grep -v '^ *+' conftest.er1 >conftest.err
16237 cat conftest.err >&5
16238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16239 (exit $ac_status); } &&
16240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16241 { (case "(($ac_try" in
16242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243 *) ac_try_echo=$ac_try;;
16245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16246 (eval "$ac_try") 2>&5
16248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16249 (exit $ac_status); }; } &&
16250 { ac_try='test -s conftest.$ac_objext'
16251 { (case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_try") 2>&5
16258 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260 ac_header_compiler=yes
16262 echo "$as_me: failed program was
:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16265 ac_header_compiler=no
16268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16270 echo "${ECHO_T}$ac_header_compiler" >&6; }
16272 # Is the header present?
16273 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16274 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16275 cat >conftest.$ac_ext <<_ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16281 #include <$ac_header>
16283 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16284 case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16291 grep -v '^ *+' conftest.er1 >conftest.err
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16295 (exit $ac_status); } >/dev/null; then
16296 if test -s conftest.err; then
16297 ac_cpp_err=$ac_c_preproc_warn_flag
16298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16305 if test -z "$ac_cpp_err"; then
16306 ac_header_preproc=yes
16308 echo "$as_me: failed program was
:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16311 ac_header_preproc=no
16314 rm -f conftest.err conftest.$ac_ext
16315 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16316 echo "${ECHO_T}$ac_header_preproc" >&6; }
16318 # So? What about this header?
16319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16321 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16322 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16323 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16325 ac_header_preproc=yes
16328 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16329 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16330 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16331 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16332 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16333 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16334 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16335 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16336 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16338 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16339 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16341 ## ----------------------------------- ##
16342 ## Report this to llvmbugs@cs.uiuc.edu ##
16343 ## ----------------------------------- ##
16345 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
16348 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16349 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16350 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16351 echo $ECHO_N "(cached
) $ECHO_C" >&6
16353 eval "$as_ac_Header=\
$ac_header_preproc"
16355 ac_res=`eval echo '${'$as_ac_Header'}'`
16356 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16357 echo "${ECHO_T}$ac_res" >&6; }
16360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16361 cat >>confdefs.h <<_ACEOF
16362 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16369 if test "$ENABLE_THREADS" -eq 1 ; then
16371 for ac_header in pthread.h
16373 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16374 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16375 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16376 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16377 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16378 echo $ECHO_N "(cached
) $ECHO_C" >&6
16380 ac_res=`eval echo '${'$as_ac_Header'}'`
16381 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16382 echo "${ECHO_T}$ac_res" >&6; }
16384 # Is the header compilable?
16385 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16386 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16387 cat >conftest.$ac_ext <<_ACEOF
16390 cat confdefs.h >>conftest.$ac_ext
16391 cat >>conftest.$ac_ext <<_ACEOF
16392 /* end confdefs.h. */
16393 $ac_includes_default
16394 #include <$ac_header>
16396 rm -f conftest.$ac_objext
16397 if { (ac_try="$ac_compile"
16398 case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_compile") 2>conftest.er1
16405 grep -v '^ *+' conftest.er1 >conftest.err
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16411 { (case "(($ac_try" in
16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413 *) ac_try_echo=$ac_try;;
16415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16416 (eval "$ac_try") 2>&5
16418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16419 (exit $ac_status); }; } &&
16420 { ac_try='test -s conftest.$ac_objext'
16421 { (case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_try") 2>&5
16428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_header_compiler=yes
16432 echo "$as_me: failed program was
:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16435 ac_header_compiler=no
16438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16440 echo "${ECHO_T}$ac_header_compiler" >&6; }
16442 # Is the header present?
16443 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16444 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16445 cat >conftest.$ac_ext <<_ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 #include <$ac_header>
16453 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16454 case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16461 grep -v '^ *+' conftest.er1 >conftest.err
16463 cat conftest.err >&5
16464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16465 (exit $ac_status); } >/dev/null; then
16466 if test -s conftest.err; then
16467 ac_cpp_err=$ac_c_preproc_warn_flag
16468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16475 if test -z "$ac_cpp_err"; then
16476 ac_header_preproc=yes
16478 echo "$as_me: failed program was
:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16481 ac_header_preproc=no
16484 rm -f conftest.err conftest.$ac_ext
16485 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16486 echo "${ECHO_T}$ac_header_preproc" >&6; }
16488 # So? What about this header?
16489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16491 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16492 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16493 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16495 ac_header_preproc=yes
16498 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16499 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16500 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16501 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16502 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16503 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16504 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16505 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16506 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16508 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16509 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16511 ## ----------------------------------- ##
16512 ## Report this to llvmbugs@cs.uiuc.edu ##
16513 ## ----------------------------------- ##
16515 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
16518 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16519 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16520 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16521 echo $ECHO_N "(cached
) $ECHO_C" >&6
16523 eval "$as_ac_Header=\
$ac_header_preproc"
16525 ac_res=`eval echo '${'$as_ac_Header'}'`
16526 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16527 echo "${ECHO_T}$ac_res" >&6; }
16530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16531 cat >>confdefs.h <<_ACEOF
16532 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16548 if test "$llvm_cv_enable_libffi" = "yes" ; then
16551 for ac_header in ffi.h ffi/ffi.h
16553 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16554 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16555 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16556 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16557 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16558 echo $ECHO_N "(cached
) $ECHO_C" >&6
16560 ac_res=`eval echo '${'$as_ac_Header'}'`
16561 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16562 echo "${ECHO_T}$ac_res" >&6; }
16564 # Is the header compilable?
16565 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16566 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16567 cat >conftest.$ac_ext <<_ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16573 $ac_includes_default
16574 #include <$ac_header>
16576 rm -f conftest.$ac_objext
16577 if { (ac_try="$ac_compile"
16578 case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_compile") 2>conftest.er1
16585 grep -v '^ *+' conftest.er1 >conftest.err
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16591 { (case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_try") 2>&5
16598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16599 (exit $ac_status); }; } &&
16600 { ac_try='test -s conftest.$ac_objext'
16601 { (case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_try") 2>&5
16608 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_header_compiler=yes
16612 echo "$as_me: failed program was
:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16615 ac_header_compiler=no
16618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16619 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16620 echo "${ECHO_T}$ac_header_compiler" >&6; }
16622 # Is the header present?
16623 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16624 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16625 cat >conftest.$ac_ext <<_ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16631 #include <$ac_header>
16633 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16641 grep -v '^ *+' conftest.er1 >conftest.err
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16645 (exit $ac_status); } >/dev/null; then
16646 if test -s conftest.err; then
16647 ac_cpp_err=$ac_c_preproc_warn_flag
16648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16655 if test -z "$ac_cpp_err"; then
16656 ac_header_preproc=yes
16658 echo "$as_me: failed program was
:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16661 ac_header_preproc=no
16664 rm -f conftest.err conftest.$ac_ext
16665 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16666 echo "${ECHO_T}$ac_header_preproc" >&6; }
16668 # So? What about this header?
16669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16671 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16672 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16673 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16675 ac_header_preproc=yes
16678 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16679 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16680 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16681 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16682 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16683 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16684 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16685 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16686 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16688 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16689 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16691 ## ----------------------------------- ##
16692 ## Report this to llvmbugs@cs.uiuc.edu ##
16693 ## ----------------------------------- ##
16695 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
16698 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16699 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16700 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16701 echo $ECHO_N "(cached
) $ECHO_C" >&6
16703 eval "$as_ac_Header=\
$ac_header_preproc"
16705 ac_res=`eval echo '${'$as_ac_Header'}'`
16706 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16707 echo "${ECHO_T}$ac_res" >&6; }
16710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16711 cat >>confdefs.h <<_ACEOF
16712 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16724 { echo "$as_me:$LINENO: checking
for HUGE_VAL sanity
" >&5
16725 echo $ECHO_N "checking
for HUGE_VAL sanity...
$ECHO_C" >&6; }
16726 if test "${ac_cv_huge_val_sanity+set}" = set; then
16727 echo $ECHO_N "(cached
) $ECHO_C" >&6
16731 ac_cpp='$CXXCPP $CPPFLAGS'
16732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16736 ac_save_CXXFLAGS=$CXXFLAGS
16738 if test "$cross_compiling" = yes; then
16739 ac_cv_huge_val_sanity=yes
16741 cat >conftest.$ac_ext <<_ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16751 double x = HUGE_VAL; return x != x;
16756 rm -f conftest$ac_exeext
16757 if { (ac_try="$ac_link"
16758 case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16762 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_link") 2>&5
16765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16767 { (case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_try") 2>&5
16774 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16775 (exit $ac_status); }; }; then
16776 ac_cv_huge_val_sanity=yes
16778 echo "$as_me: program exited with status
$ac_status" >&5
16779 echo "$as_me: failed program was
:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 ( exit $ac_status )
16783 ac_cv_huge_val_sanity=no
16785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16789 CXXFLAGS=$ac_save_CXXFLAGS
16791 ac_cpp='$CPP $CPPFLAGS'
16792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16798 { echo "$as_me:$LINENO: result
: $ac_cv_huge_val_sanity" >&5
16799 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16800 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16803 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
16804 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
16805 if test "${ac_cv_type_pid_t+set}" = set; then
16806 echo $ECHO_N "(cached
) $ECHO_C" >&6
16808 cat >conftest.$ac_ext <<_ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16814 $ac_includes_default
16815 typedef pid_t ac__type_new_;
16819 if ((ac__type_new_ *) 0)
16821 if (sizeof (ac__type_new_))
16827 rm -f conftest.$ac_objext
16828 if { (ac_try="$ac_compile"
16829 case "(($ac_try" in
16830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831 *) ac_try_echo=$ac_try;;
16833 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16834 (eval "$ac_compile") 2>conftest.er1
16836 grep -v '^ *+' conftest.er1 >conftest.err
16838 cat conftest.err >&5
16839 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16840 (exit $ac_status); } &&
16841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16842 { (case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16847 (eval "$ac_try") 2>&5
16849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try='test -s conftest.$ac_objext'
16852 { (case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_try") 2>&5
16859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_cv_type_pid_t=yes
16863 echo "$as_me: failed program was
:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 ac_cv_type_pid_t=no
16869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
16872 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16873 if test $ac_cv_type_pid_t = yes; then
16877 cat >>confdefs.h <<_ACEOF
16883 { echo "$as_me:$LINENO: checking
for size_t
" >&5
16884 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
16885 if test "${ac_cv_type_size_t+set}" = set; then
16886 echo $ECHO_N "(cached
) $ECHO_C" >&6
16888 cat >conftest.$ac_ext <<_ACEOF
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h. */
16894 $ac_includes_default
16895 typedef size_t ac__type_new_;
16899 if ((ac__type_new_ *) 0)
16901 if (sizeof (ac__type_new_))
16907 rm -f conftest.$ac_objext
16908 if { (ac_try="$ac_compile"
16909 case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_compile") 2>conftest.er1
16916 grep -v '^ *+' conftest.er1 >conftest.err
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16930 (exit $ac_status); }; } &&
16931 { ac_try='test -s conftest.$ac_objext'
16932 { (case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_try") 2>&5
16939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 ac_cv_type_size_t=yes
16943 echo "$as_me: failed program was
:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16946 ac_cv_type_size_t=no
16949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16951 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
16952 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16953 if test $ac_cv_type_size_t = yes; then
16957 cat >>confdefs.h <<_ACEOF
16958 #define size_t unsigned int
16964 cat >>confdefs.h <<_ACEOF
16965 #define RETSIGTYPE void
16968 { echo "$as_me:$LINENO: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
16969 echo $ECHO_N "checking whether struct tm is
in sys
/time.h or
time.h...
$ECHO_C" >&6; }
16970 if test "${ac_cv_struct_tm+set}" = set; then
16971 echo $ECHO_N "(cached
) $ECHO_C" >&6
16973 cat >conftest.$ac_ext <<_ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 #include <sys/types.h>
16985 struct tm *tp; tp->tm_sec;
16990 rm -f conftest.$ac_objext
16991 if { (ac_try="$ac_compile"
16992 case "(($ac_try" in
16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994 *) ac_try_echo=$ac_try;;
16996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16997 (eval "$ac_compile") 2>conftest.er1
16999 grep -v '^ *+' conftest.er1 >conftest.err
17001 cat conftest.err >&5
17002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17003 (exit $ac_status); } &&
17004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17012 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17013 (exit $ac_status); }; } &&
17014 { ac_try='test -s conftest.$ac_objext'
17015 { (case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17019 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_try") 2>&5
17022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17023 (exit $ac_status); }; }; then
17024 ac_cv_struct_tm=time.h
17026 echo "$as_me: failed program was
:" >&5
17027 sed 's/^/| /' conftest.$ac_ext >&5
17029 ac_cv_struct_tm=sys/time.h
17032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17034 { echo "$as_me:$LINENO: result
: $ac_cv_struct_tm" >&5
17035 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17036 if test $ac_cv_struct_tm = sys/time.h; then
17038 cat >>confdefs.h <<\_ACEOF
17039 #define TM_IN_SYS_TIME 1
17044 { echo "$as_me:$LINENO: checking
for int64_t
" >&5
17045 echo $ECHO_N "checking
for int64_t...
$ECHO_C" >&6; }
17046 if test "${ac_cv_type_int64_t+set}" = set; then
17047 echo $ECHO_N "(cached
) $ECHO_C" >&6
17049 cat >conftest.$ac_ext <<_ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17055 $ac_includes_default
17056 typedef int64_t ac__type_new_;
17060 if ((ac__type_new_ *) 0)
17062 if (sizeof (ac__type_new_))
17068 rm -f conftest.$ac_objext
17069 if { (ac_try="$ac_compile"
17070 case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_compile") 2>conftest.er1
17077 grep -v '^ *+' conftest.er1 >conftest.err
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17081 (exit $ac_status); } &&
17082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17083 { (case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_try") 2>&5
17090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17091 (exit $ac_status); }; } &&
17092 { ac_try='test -s conftest.$ac_objext'
17093 { (case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_try") 2>&5
17100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_cv_type_int64_t=yes
17104 echo "$as_me: failed program was
:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17107 ac_cv_type_int64_t=no
17110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17112 { echo "$as_me:$LINENO: result
: $ac_cv_type_int64_t" >&5
17113 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17114 if test $ac_cv_type_int64_t = yes; then
17116 cat >>confdefs.h <<_ACEOF
17117 #define HAVE_INT64_T 1
17122 { { echo "$as_me:$LINENO: error
: Type int64_t required but not found
" >&5
17123 echo "$as_me: error
: Type int64_t required but not found
" >&2;}
17124 { (exit 1); exit 1; }; }
17127 { echo "$as_me:$LINENO: checking
for uint64_t
" >&5
17128 echo $ECHO_N "checking
for uint64_t...
$ECHO_C" >&6; }
17129 if test "${ac_cv_type_uint64_t+set}" = set; then
17130 echo $ECHO_N "(cached
) $ECHO_C" >&6
17132 cat >conftest.$ac_ext <<_ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17138 $ac_includes_default
17139 typedef uint64_t ac__type_new_;
17143 if ((ac__type_new_ *) 0)
17145 if (sizeof (ac__type_new_))
17151 rm -f conftest.$ac_objext
17152 if { (ac_try="$ac_compile"
17153 case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17157 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_compile") 2>conftest.er1
17160 grep -v '^ *+' conftest.er1 >conftest.err
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17166 { (case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_try") 2>&5
17173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try='test -s conftest.$ac_objext'
17176 { (case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17180 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_try") 2>&5
17183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 ac_cv_type_uint64_t=yes
17187 echo "$as_me: failed program was
:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17190 ac_cv_type_uint64_t=no
17193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17195 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint64_t" >&5
17196 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17197 if test $ac_cv_type_uint64_t = yes; then
17199 cat >>confdefs.h <<_ACEOF
17200 #define HAVE_UINT64_T 1
17205 { echo "$as_me:$LINENO: checking
for u_int64_t
" >&5
17206 echo $ECHO_N "checking
for u_int64_t...
$ECHO_C" >&6; }
17207 if test "${ac_cv_type_u_int64_t+set}" = set; then
17208 echo $ECHO_N "(cached
) $ECHO_C" >&6
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17216 $ac_includes_default
17217 typedef u_int64_t ac__type_new_;
17221 if ((ac__type_new_ *) 0)
17223 if (sizeof (ac__type_new_))
17229 rm -f conftest.$ac_objext
17230 if { (ac_try="$ac_compile"
17231 case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_compile") 2>conftest.er1
17238 grep -v '^ *+' conftest.er1 >conftest.err
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17244 { (case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17248 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_try") 2>&5
17251 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17252 (exit $ac_status); }; } &&
17253 { ac_try='test -s conftest.$ac_objext'
17254 { (case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17258 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_try") 2>&5
17261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 ac_cv_type_u_int64_t=yes
17265 echo "$as_me: failed program was
:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17268 ac_cv_type_u_int64_t=no
17271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17273 { echo "$as_me:$LINENO: result
: $ac_cv_type_u_int64_t" >&5
17274 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17275 if test $ac_cv_type_u_int64_t = yes; then
17277 cat >>confdefs.h <<_ACEOF
17278 #define HAVE_U_INT64_T 1
17283 { { echo "$as_me:$LINENO: error
: Type uint64_t or u_int64_t required but not found
" >&5
17284 echo "$as_me: error
: Type uint64_t or u_int64_t required but not found
" >&2;}
17285 { (exit 1); exit 1; }; }
17299 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17301 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17302 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17303 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17304 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17305 echo $ECHO_N "(cached
) $ECHO_C" >&6
17307 cat >conftest.$ac_ext <<_ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17315 #define $ac_func innocuous_$ac_func
17317 /* System header to define __stub macros and hopefully few prototypes,
17318 which can conflict with char $ac_func (); below.
17319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17320 <limits.h> exists even on freestanding compilers. */
17323 # include <limits.h>
17325 # include <assert.h>
17330 /* Override any GCC internal prototype to avoid an error.
17331 Use char because int might match the return type of a GCC
17332 builtin and then its argument prototype would still apply. */
17337 /* The GNU C library defines this for functions which it implements
17338 to always fail with ENOSYS. Some functions are actually named
17339 something starting with __ and the normal name is an alias. */
17340 #if defined __stub_$ac_func || defined __stub___$ac_func
17347 return $ac_func ();
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (ac_try="$ac_link"
17354 case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_link") 2>conftest.er1
17361 grep -v '^ *+' conftest.er1 >conftest.err
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17367 { (case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_try") 2>&5
17374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17375 (exit $ac_status); }; } &&
17376 { ac_try='test -s conftest$ac_exeext'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17385 (exit $ac_status); }; }; then
17386 eval "$as_ac_var=yes"
17388 echo "$as_me: failed program was
:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17391 eval "$as_ac_var=no
"
17394 rm -f core conftest.err conftest.$ac_objext \
17395 conftest$ac_exeext conftest.$ac_ext
17397 ac_res=`eval echo '${'$as_ac_var'}'`
17398 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17399 echo "${ECHO_T}$ac_res" >&6; }
17400 if test `eval echo '${'$as_ac_var'}'` = yes; then
17401 cat >>confdefs.h <<_ACEOF
17402 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17412 for ac_func in powf fmodf strtof round
17414 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17415 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17416 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17417 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17418 echo $ECHO_N "(cached
) $ECHO_C" >&6
17420 cat >conftest.$ac_ext <<_ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17428 #define $ac_func innocuous_$ac_func
17430 /* System header to define __stub macros and hopefully few prototypes,
17431 which can conflict with char $ac_func (); below.
17432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17433 <limits.h> exists even on freestanding compilers. */
17436 # include <limits.h>
17438 # include <assert.h>
17443 /* Override any GCC internal prototype to avoid an error.
17444 Use char because int might match the return type of a GCC
17445 builtin and then its argument prototype would still apply. */
17450 /* The GNU C library defines this for functions which it implements
17451 to always fail with ENOSYS. Some functions are actually named
17452 something starting with __ and the normal name is an alias. */
17453 #if defined __stub_$ac_func || defined __stub___$ac_func
17460 return $ac_func ();
17465 rm -f conftest.$ac_objext conftest$ac_exeext
17466 if { (ac_try="$ac_link"
17467 case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17471 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_link") 2>conftest.er1
17474 grep -v '^ *+' conftest.er1 >conftest.err
17476 cat conftest.err >&5
17477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17478 (exit $ac_status); } &&
17479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17480 { (case "(($ac_try" in
17481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482 *) ac_try_echo=$ac_try;;
17484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17485 (eval "$ac_try") 2>&5
17487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17488 (exit $ac_status); }; } &&
17489 { ac_try='test -s conftest$ac_exeext'
17490 { (case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_try") 2>&5
17497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17498 (exit $ac_status); }; }; then
17499 eval "$as_ac_var=yes"
17501 echo "$as_me: failed program was
:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17504 eval "$as_ac_var=no
"
17507 rm -f core conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17510 ac_res=`eval echo '${'$as_ac_var'}'`
17511 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17512 echo "${ECHO_T}$ac_res" >&6; }
17513 if test `eval echo '${'$as_ac_var'}'` = yes; then
17514 cat >>confdefs.h <<_ACEOF
17515 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17526 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17528 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17529 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17530 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17531 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17532 echo $ECHO_N "(cached
) $ECHO_C" >&6
17534 cat >conftest.$ac_ext <<_ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17542 #define $ac_func innocuous_$ac_func
17544 /* System header to define __stub macros and hopefully few prototypes,
17545 which can conflict with char $ac_func (); below.
17546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17547 <limits.h> exists even on freestanding compilers. */
17550 # include <limits.h>
17552 # include <assert.h>
17557 /* Override any GCC internal prototype to avoid an error.
17558 Use char because int might match the return type of a GCC
17559 builtin and then its argument prototype would still apply. */
17564 /* The GNU C library defines this for functions which it implements
17565 to always fail with ENOSYS. Some functions are actually named
17566 something starting with __ and the normal name is an alias. */
17567 #if defined __stub_$ac_func || defined __stub___$ac_func
17574 return $ac_func ();
17579 rm -f conftest.$ac_objext conftest$ac_exeext
17580 if { (ac_try="$ac_link"
17581 case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17585 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>conftest.er1
17588 grep -v '^ *+' conftest.er1 >conftest.err
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17601 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try='test -s conftest$ac_exeext'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 eval "$as_ac_var=yes"
17615 echo "$as_me: failed program was
:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17618 eval "$as_ac_var=no
"
17621 rm -f core conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17624 ac_res=`eval echo '${'$as_ac_var'}'`
17625 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17626 echo "${ECHO_T}$ac_res" >&6; }
17627 if test `eval echo '${'$as_ac_var'}'` = yes; then
17628 cat >>confdefs.h <<_ACEOF
17629 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17638 for ac_func in isatty mkdtemp mkstemp
17640 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17641 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17642 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17643 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17644 echo $ECHO_N "(cached
) $ECHO_C" >&6
17646 cat >conftest.$ac_ext <<_ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h. */
17652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17654 #define $ac_func innocuous_$ac_func
17656 /* System header to define __stub macros and hopefully few prototypes,
17657 which can conflict with char $ac_func (); below.
17658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17659 <limits.h> exists even on freestanding compilers. */
17662 # include <limits.h>
17664 # include <assert.h>
17669 /* Override any GCC internal prototype to avoid an error.
17670 Use char because int might match the return type of a GCC
17671 builtin and then its argument prototype would still apply. */
17676 /* The GNU C library defines this for functions which it implements
17677 to always fail with ENOSYS. Some functions are actually named
17678 something starting with __ and the normal name is an alias. */
17679 #if defined __stub_$ac_func || defined __stub___$ac_func
17686 return $ac_func ();
17691 rm -f conftest.$ac_objext conftest$ac_exeext
17692 if { (ac_try="$ac_link"
17693 case "(($ac_try" in
17694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695 *) ac_try_echo=$ac_try;;
17697 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17698 (eval "$ac_link") 2>conftest.er1
17700 grep -v '^ *+' conftest.er1 >conftest.err
17702 cat conftest.err >&5
17703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17706 { (case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17710 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_try") 2>&5
17713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest$ac_exeext'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17720 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 eval "$as_ac_var=yes"
17727 echo "$as_me: failed program was
:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17730 eval "$as_ac_var=no
"
17733 rm -f core conftest.err conftest.$ac_objext \
17734 conftest$ac_exeext conftest.$ac_ext
17736 ac_res=`eval echo '${'$as_ac_var'}'`
17737 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17738 echo "${ECHO_T}$ac_res" >&6; }
17739 if test `eval echo '${'$as_ac_var'}'` = yes; then
17740 cat >>confdefs.h <<_ACEOF
17741 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17752 for ac_func in mktemp realpath sbrk setrlimit strdup
17754 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17755 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17756 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17757 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17758 echo $ECHO_N "(cached
) $ECHO_C" >&6
17760 cat >conftest.$ac_ext <<_ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17768 #define $ac_func innocuous_$ac_func
17770 /* System header to define __stub macros and hopefully few prototypes,
17771 which can conflict with char $ac_func (); below.
17772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17773 <limits.h> exists even on freestanding compilers. */
17776 # include <limits.h>
17778 # include <assert.h>
17783 /* Override any GCC internal prototype to avoid an error.
17784 Use char because int might match the return type of a GCC
17785 builtin and then its argument prototype would still apply. */
17790 /* The GNU C library defines this for functions which it implements
17791 to always fail with ENOSYS. Some functions are actually named
17792 something starting with __ and the normal name is an alias. */
17793 #if defined __stub_$ac_func || defined __stub___$ac_func
17800 return $ac_func ();
17805 rm -f conftest.$ac_objext conftest$ac_exeext
17806 if { (ac_try="$ac_link"
17807 case "(($ac_try" in
17808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809 *) ac_try_echo=$ac_try;;
17811 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17812 (eval "$ac_link") 2>conftest.er1
17814 grep -v '^ *+' conftest.er1 >conftest.err
17816 cat conftest.err >&5
17817 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17818 (exit $ac_status); } &&
17819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17820 { (case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17824 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17825 (eval "$ac_try") 2>&5
17827 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest$ac_exeext'
17830 { (case "(($ac_try" in
17831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832 *) ac_try_echo=$ac_try;;
17834 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17835 (eval "$ac_try") 2>&5
17837 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17838 (exit $ac_status); }; }; then
17839 eval "$as_ac_var=yes"
17841 echo "$as_me: failed program was
:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17844 eval "$as_ac_var=no
"
17847 rm -f core conftest.err conftest.$ac_objext \
17848 conftest$ac_exeext conftest.$ac_ext
17850 ac_res=`eval echo '${'$as_ac_var'}'`
17851 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17852 echo "${ECHO_T}$ac_res" >&6; }
17853 if test `eval echo '${'$as_ac_var'}'` = yes; then
17854 cat >>confdefs.h <<_ACEOF
17855 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17865 for ac_func in strerror strerror_r strerror_s setenv
17867 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17868 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17869 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17870 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17871 echo $ECHO_N "(cached
) $ECHO_C" >&6
17873 cat >conftest.$ac_ext <<_ACEOF
17876 cat confdefs.h >>conftest.$ac_ext
17877 cat >>conftest.$ac_ext <<_ACEOF
17878 /* end confdefs.h. */
17879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17881 #define $ac_func innocuous_$ac_func
17883 /* System header to define __stub macros and hopefully few prototypes,
17884 which can conflict with char $ac_func (); below.
17885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17886 <limits.h> exists even on freestanding compilers. */
17889 # include <limits.h>
17891 # include <assert.h>
17896 /* Override any GCC internal prototype to avoid an error.
17897 Use char because int might match the return type of a GCC
17898 builtin and then its argument prototype would still apply. */
17903 /* The GNU C library defines this for functions which it implements
17904 to always fail with ENOSYS. Some functions are actually named
17905 something starting with __ and the normal name is an alias. */
17906 #if defined __stub_$ac_func || defined __stub___$ac_func
17913 return $ac_func ();
17918 rm -f conftest.$ac_objext conftest$ac_exeext
17919 if { (ac_try="$ac_link"
17920 case "(($ac_try" in
17921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922 *) ac_try_echo=$ac_try;;
17924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17925 (eval "$ac_link") 2>conftest.er1
17927 grep -v '^ *+' conftest.er1 >conftest.err
17929 cat conftest.err >&5
17930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17931 (exit $ac_status); } &&
17932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17933 { (case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_try") 2>&5
17940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17941 (exit $ac_status); }; } &&
17942 { ac_try='test -s conftest$ac_exeext'
17943 { (case "(($ac_try" in
17944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945 *) ac_try_echo=$ac_try;;
17947 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17948 (eval "$ac_try") 2>&5
17950 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17951 (exit $ac_status); }; }; then
17952 eval "$as_ac_var=yes"
17954 echo "$as_me: failed program was
:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17957 eval "$as_ac_var=no
"
17960 rm -f core conftest.err conftest.$ac_objext \
17961 conftest$ac_exeext conftest.$ac_ext
17963 ac_res=`eval echo '${'$as_ac_var'}'`
17964 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17965 echo "${ECHO_T}$ac_res" >&6; }
17966 if test `eval echo '${'$as_ac_var'}'` = yes; then
17967 cat >>confdefs.h <<_ACEOF
17968 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17978 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17980 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17981 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17982 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17983 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17984 echo $ECHO_N "(cached
) $ECHO_C" >&6
17986 cat >conftest.$ac_ext <<_ACEOF
17989 cat confdefs.h >>conftest.$ac_ext
17990 cat >>conftest.$ac_ext <<_ACEOF
17991 /* end confdefs.h. */
17992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17994 #define $ac_func innocuous_$ac_func
17996 /* System header to define __stub macros and hopefully few prototypes,
17997 which can conflict with char $ac_func (); below.
17998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17999 <limits.h> exists even on freestanding compilers. */
18002 # include <limits.h>
18004 # include <assert.h>
18009 /* Override any GCC internal prototype to avoid an error.
18010 Use char because int might match the return type of a GCC
18011 builtin and then its argument prototype would still apply. */
18016 /* The GNU C library defines this for functions which it implements
18017 to always fail with ENOSYS. Some functions are actually named
18018 something starting with __ and the normal name is an alias. */
18019 #if defined __stub_$ac_func || defined __stub___$ac_func
18026 return $ac_func ();
18031 rm -f conftest.$ac_objext conftest$ac_exeext
18032 if { (ac_try="$ac_link"
18033 case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_link") 2>conftest.er1
18040 grep -v '^ *+' conftest.er1 >conftest.err
18042 cat conftest.err >&5
18043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18044 (exit $ac_status); } &&
18045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18046 { (case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_try") 2>&5
18053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18054 (exit $ac_status); }; } &&
18055 { ac_try='test -s conftest$ac_exeext'
18056 { (case "(($ac_try" in
18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 *) ac_try_echo=$ac_try;;
18060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18061 (eval "$ac_try") 2>&5
18063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18064 (exit $ac_status); }; }; then
18065 eval "$as_ac_var=yes"
18067 echo "$as_me: failed program was
:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18070 eval "$as_ac_var=no
"
18073 rm -f core conftest.err conftest.$ac_objext \
18074 conftest$ac_exeext conftest.$ac_ext
18076 ac_res=`eval echo '${'$as_ac_var'}'`
18077 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18078 echo "${ECHO_T}$ac_res" >&6; }
18079 if test `eval echo '${'$as_ac_var'}'` = yes; then
18080 cat >>confdefs.h <<_ACEOF
18081 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18091 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18093 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18094 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18095 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18096 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18097 echo $ECHO_N "(cached
) $ECHO_C" >&6
18099 cat >conftest.$ac_ext <<_ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h. */
18105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18107 #define $ac_func innocuous_$ac_func
18109 /* System header to define __stub macros and hopefully few prototypes,
18110 which can conflict with char $ac_func (); below.
18111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18112 <limits.h> exists even on freestanding compilers. */
18115 # include <limits.h>
18117 # include <assert.h>
18122 /* Override any GCC internal prototype to avoid an error.
18123 Use char because int might match the return type of a GCC
18124 builtin and then its argument prototype would still apply. */
18129 /* The GNU C library defines this for functions which it implements
18130 to always fail with ENOSYS. Some functions are actually named
18131 something starting with __ and the normal name is an alias. */
18132 #if defined __stub_$ac_func || defined __stub___$ac_func
18139 return $ac_func ();
18144 rm -f conftest.$ac_objext conftest$ac_exeext
18145 if { (ac_try="$ac_link"
18146 case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_link") 2>conftest.er1
18153 grep -v '^ *+' conftest.er1 >conftest.err
18155 cat conftest.err >&5
18156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18157 (exit $ac_status); } &&
18158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18159 { (case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_try") 2>&5
18166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18167 (exit $ac_status); }; } &&
18168 { ac_try='test -s conftest$ac_exeext'
18169 { (case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18173 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_try") 2>&5
18176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18177 (exit $ac_status); }; }; then
18178 eval "$as_ac_var=yes"
18180 echo "$as_me: failed program was
:" >&5
18181 sed 's/^/| /' conftest.$ac_ext >&5
18183 eval "$as_ac_var=no
"
18186 rm -f core conftest.err conftest.$ac_objext \
18187 conftest$ac_exeext conftest.$ac_ext
18189 ac_res=`eval echo '${'$as_ac_var'}'`
18190 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18191 echo "${ECHO_T}$ac_res" >&6; }
18192 if test `eval echo '${'$as_ac_var'}'` = yes; then
18193 cat >>confdefs.h <<_ACEOF
18194 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18200 { echo "$as_me:$LINENO: checking
if printf has the
%a format character
" >&5
18201 echo $ECHO_N "checking
if printf has the
%a format character...
$ECHO_C" >&6; }
18202 if test "${llvm_cv_c_printf_a+set}" = set; then
18203 echo $ECHO_N "(cached
) $ECHO_C" >&6
18206 ac_cpp='$CPP $CPPFLAGS'
18207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18211 if test "$cross_compiling" = yes; then
18212 llvmac_cv_c_printf_a=no
18214 cat >conftest.$ac_ext <<_ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h. */
18223 #include <stdlib.h>
18229 volatile double A, B;
18233 sprintf(Buffer, "%a
", A);
18237 if (A != 0x1.999999999999ap-4)
18244 rm -f conftest$ac_exeext
18245 if { (ac_try="$ac_link"
18246 case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_link") 2>&5
18253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18255 { (case "(($ac_try" in
18256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18257 *) ac_try_echo=$ac_try;;
18259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18260 (eval "$ac_try") 2>&5
18262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 llvm_cv_c_printf_a=yes
18266 echo "$as_me: program exited with status
$ac_status" >&5
18267 echo "$as_me: failed program was
:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18270 ( exit $ac_status )
18271 llvmac_cv_c_printf_a=no
18273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18278 ac_cpp='$CPP $CPPFLAGS'
18279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18284 { echo "$as_me:$LINENO: result
: $llvm_cv_c_printf_a" >&5
18285 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18286 if test "$llvm_cv_c_printf_a" = "yes"; then
18288 cat >>confdefs.h <<\_ACEOF
18289 #define HAVE_PRINTF_A 1
18295 { echo "$as_me:$LINENO: checking
for srand48
/lrand48
/drand48
in <stdlib.h
>" >&5
18296 echo $ECHO_N "checking
for srand48
/lrand48
/drand48
in <stdlib.h
>...
$ECHO_C" >&6; }
18297 if test "${ac_cv_func_rand48+set}" = set; then
18298 echo $ECHO_N "(cached
) $ECHO_C" >&6
18301 ac_cpp='$CXXCPP $CPPFLAGS'
18302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18306 cat >conftest.$ac_ext <<_ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18312 #include <stdlib.h>
18316 srand48(0);lrand48();drand48();
18321 rm -f conftest.$ac_objext
18322 if { (ac_try="$ac_compile"
18323 case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_compile") 2>conftest.er1
18330 grep -v '^ *+' conftest.er1 >conftest.err
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18334 (exit $ac_status); } &&
18335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18336 { (case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_try") 2>&5
18343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest.$ac_objext'
18346 { (case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18350 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_try") 2>&5
18353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 ac_cv_func_rand48=yes
18357 echo "$as_me: failed program was
:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18360 ac_cv_func_rand48=no
18363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18365 ac_cpp='$CPP $CPPFLAGS'
18366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18371 { echo "$as_me:$LINENO: result
: $ac_cv_func_rand48" >&5
18372 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18374 if test "$ac_cv_func_rand48" = "yes" ; then
18376 cat >>confdefs.h <<\_ACEOF
18377 #define HAVE_RAND48 1
18384 { echo "$as_me:$LINENO: checking
for isnan
in <math.h
>" >&5
18385 echo $ECHO_N "checking
for isnan
in <math.h
>...
$ECHO_C" >&6; }
18386 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18387 echo $ECHO_N "(cached
) $ECHO_C" >&6
18390 ac_cpp='$CXXCPP $CPPFLAGS'
18391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18395 cat >conftest.$ac_ext <<_ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18410 rm -f conftest.$ac_objext
18411 if { (ac_try="$ac_compile"
18412 case "(($ac_try" in
18413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414 *) ac_try_echo=$ac_try;;
18416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18417 (eval "$ac_compile") 2>conftest.er1
18419 grep -v '^ *+' conftest.er1 >conftest.err
18421 cat conftest.err >&5
18422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18423 (exit $ac_status); } &&
18424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18425 { (case "(($ac_try" in
18426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427 *) ac_try_echo=$ac_try;;
18429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18430 (eval "$ac_try") 2>&5
18432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18433 (exit $ac_status); }; } &&
18434 { ac_try='test -s conftest.$ac_objext'
18435 { (case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_try") 2>&5
18442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18443 (exit $ac_status); }; }; then
18444 ac_cv_func_isnan_in_math_h=yes
18446 echo "$as_me: failed program was
:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18449 ac_cv_func_isnan_in_math_h=no
18452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18454 ac_cpp='$CPP $CPPFLAGS'
18455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18460 { echo "$as_me:$LINENO: result
: $ac_cv_func_isnan_in_math_h" >&5
18461 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18464 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18466 cat >>confdefs.h <<\_ACEOF
18467 #define HAVE_ISNAN_IN_MATH_H 1
18472 { echo "$as_me:$LINENO: checking
for isnan
in <cmath
>" >&5
18473 echo $ECHO_N "checking
for isnan
in <cmath
>...
$ECHO_C" >&6; }
18474 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18475 echo $ECHO_N "(cached
) $ECHO_C" >&6
18478 ac_cpp='$CXXCPP $CPPFLAGS'
18479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18483 cat >conftest.$ac_ext <<_ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18498 rm -f conftest.$ac_objext
18499 if { (ac_try="$ac_compile"
18500 case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_compile") 2>conftest.er1
18507 grep -v '^ *+' conftest.er1 >conftest.err
18509 cat conftest.err >&5
18510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18513 { (case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_try") 2>&5
18520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest.$ac_objext'
18523 { (case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_try") 2>&5
18530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 ac_cv_func_isnan_in_cmath=yes
18534 echo "$as_me: failed program was
:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18537 ac_cv_func_isnan_in_cmath=no
18540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18542 ac_cpp='$CPP $CPPFLAGS'
18543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18548 { echo "$as_me:$LINENO: result
: $ac_cv_func_isnan_in_cmath" >&5
18549 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18551 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18553 cat >>confdefs.h <<\_ACEOF
18554 #define HAVE_ISNAN_IN_CMATH 1
18559 { echo "$as_me:$LINENO: checking
for std
::isnan
in <cmath
>" >&5
18560 echo $ECHO_N "checking
for std
::isnan
in <cmath
>...
$ECHO_C" >&6; }
18561 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18562 echo $ECHO_N "(cached
) $ECHO_C" >&6
18565 ac_cpp='$CXXCPP $CPPFLAGS'
18566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18570 cat >conftest.$ac_ext <<_ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18580 float f; std::isnan(f);
18585 rm -f conftest.$ac_objext
18586 if { (ac_try="$ac_compile"
18587 case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_compile") 2>conftest.er1
18594 grep -v '^ *+' conftest.er1 >conftest.err
18596 cat conftest.err >&5
18597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18598 (exit $ac_status); } &&
18599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18600 { (case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_try") 2>&5
18607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18608 (exit $ac_status); }; } &&
18609 { ac_try='test -s conftest.$ac_objext'
18610 { (case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_try") 2>&5
18617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 ac_cv_func_std_isnan_in_cmath=yes
18621 echo "$as_me: failed program was
:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18624 ac_cv_func_std_isnan_in_cmath=no
18627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18629 ac_cpp='$CPP $CPPFLAGS'
18630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18635 { echo "$as_me:$LINENO: result
: $ac_cv_func_std_isnan_in_cmath" >&5
18636 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18638 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18640 cat >>confdefs.h <<\_ACEOF
18641 #define HAVE_STD_ISNAN_IN_CMATH 1
18647 { echo "$as_me:$LINENO: checking
for isinf
in <math.h
>" >&5
18648 echo $ECHO_N "checking
for isinf
in <math.h
>...
$ECHO_C" >&6; }
18649 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18650 echo $ECHO_N "(cached
) $ECHO_C" >&6
18653 ac_cpp='$CXXCPP $CPPFLAGS'
18654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18658 cat >conftest.$ac_ext <<_ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18673 rm -f conftest.$ac_objext
18674 if { (ac_try="$ac_compile"
18675 case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_compile") 2>conftest.er1
18682 grep -v '^ *+' conftest.er1 >conftest.err
18684 cat conftest.err >&5
18685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18686 (exit $ac_status); } &&
18687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18688 { (case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18692 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_try") 2>&5
18695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try='test -s conftest.$ac_objext'
18698 { (case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_try") 2>&5
18705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18706 (exit $ac_status); }; }; then
18707 ac_cv_func_isinf_in_math_h=yes
18709 echo "$as_me: failed program was
:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18712 ac_cv_func_isinf_in_math_h=no
18715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18717 ac_cpp='$CPP $CPPFLAGS'
18718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18723 { echo "$as_me:$LINENO: result
: $ac_cv_func_isinf_in_math_h" >&5
18724 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18726 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18728 cat >>confdefs.h <<\_ACEOF
18729 #define HAVE_ISINF_IN_MATH_H 1
18734 { echo "$as_me:$LINENO: checking
for isinf
in <cmath
>" >&5
18735 echo $ECHO_N "checking
for isinf
in <cmath
>...
$ECHO_C" >&6; }
18736 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18737 echo $ECHO_N "(cached
) $ECHO_C" >&6
18740 ac_cpp='$CXXCPP $CPPFLAGS'
18741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18745 cat >conftest.$ac_ext <<_ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h. */
18760 rm -f conftest.$ac_objext
18761 if { (ac_try="$ac_compile"
18762 case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_compile") 2>conftest.er1
18769 grep -v '^ *+' conftest.er1 >conftest.err
18771 cat conftest.err >&5
18772 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18773 (exit $ac_status); } &&
18774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18775 { (case "(($ac_try" in
18776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777 *) ac_try_echo=$ac_try;;
18779 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18780 (eval "$ac_try") 2>&5
18782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18783 (exit $ac_status); }; } &&
18784 { ac_try='test -s conftest.$ac_objext'
18785 { (case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_try") 2>&5
18792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18793 (exit $ac_status); }; }; then
18794 ac_cv_func_isinf_in_cmath=yes
18796 echo "$as_me: failed program was
:" >&5
18797 sed 's/^/| /' conftest.$ac_ext >&5
18799 ac_cv_func_isinf_in_cmath=no
18802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18804 ac_cpp='$CPP $CPPFLAGS'
18805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18810 { echo "$as_me:$LINENO: result
: $ac_cv_func_isinf_in_cmath" >&5
18811 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18813 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18815 cat >>confdefs.h <<\_ACEOF
18816 #define HAVE_ISINF_IN_CMATH 1
18821 { echo "$as_me:$LINENO: checking
for std
::isinf
in <cmath
>" >&5
18822 echo $ECHO_N "checking
for std
::isinf
in <cmath
>...
$ECHO_C" >&6; }
18823 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18824 echo $ECHO_N "(cached
) $ECHO_C" >&6
18827 ac_cpp='$CXXCPP $CPPFLAGS'
18828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18832 cat >conftest.$ac_ext <<_ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18842 float f; std::isinf(f)}
18847 rm -f conftest.$ac_objext
18848 if { (ac_try="$ac_compile"
18849 case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_compile") 2>conftest.er1
18856 grep -v '^ *+' conftest.er1 >conftest.err
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18862 { (case "(($ac_try" in
18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_try") 2>&5
18869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try='test -s conftest.$ac_objext'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18876 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18879 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 ac_cv_func_std_isinf_in_cmath=yes
18883 echo "$as_me: failed program was
:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18886 ac_cv_func_std_isinf_in_cmath=no
18889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18891 ac_cpp='$CPP $CPPFLAGS'
18892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18897 { echo "$as_me:$LINENO: result
: $ac_cv_func_std_isinf_in_cmath" >&5
18898 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18900 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18902 cat >>confdefs.h <<\_ACEOF
18903 #define HAVE_STD_ISINF_IN_CMATH 1
18908 { echo "$as_me:$LINENO: checking
for finite
in <ieeefp.h
>" >&5
18909 echo $ECHO_N "checking
for finite
in <ieeefp.h
>...
$ECHO_C" >&6; }
18910 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18911 echo $ECHO_N "(cached
) $ECHO_C" >&6
18914 ac_cpp='$CXXCPP $CPPFLAGS'
18915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18919 cat >conftest.$ac_ext <<_ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18925 #include <ieeefp.h>
18929 float f; finite(f);
18934 rm -f conftest.$ac_objext
18935 if { (ac_try="$ac_compile"
18936 case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_compile") 2>conftest.er1
18943 grep -v '^ *+' conftest.er1 >conftest.err
18945 cat conftest.err >&5
18946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18947 (exit $ac_status); } &&
18948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18949 { (case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18953 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_try") 2>&5
18956 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18957 (exit $ac_status); }; } &&
18958 { ac_try='test -s conftest.$ac_objext'
18959 { (case "(($ac_try" in
18960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961 *) ac_try_echo=$ac_try;;
18963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18964 (eval "$ac_try") 2>&5
18966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18967 (exit $ac_status); }; }; then
18968 ac_cv_func_finite_in_ieeefp_h=yes
18970 echo "$as_me: failed program was
:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18973 ac_cv_func_finite_in_ieeefp_h=no
18976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18978 ac_cpp='$CPP $CPPFLAGS'
18979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18984 { echo "$as_me:$LINENO: result
: $ac_cv_func_finite_in_ieeefp_h" >&5
18985 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18987 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18989 cat >>confdefs.h <<\_ACEOF
18990 #define HAVE_FINITE_IN_IEEEFP_H 1
18997 if test "$llvm_cv_platform_type" = "Unix
" ; then
19000 for ac_header in stdlib.h unistd.h
19002 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19003 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19004 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19005 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19006 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19007 echo $ECHO_N "(cached
) $ECHO_C" >&6
19009 ac_res=`eval echo '${'$as_ac_Header'}'`
19010 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19011 echo "${ECHO_T}$ac_res" >&6; }
19013 # Is the header compilable?
19014 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19015 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19016 cat >conftest.$ac_ext <<_ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 $ac_includes_default
19023 #include <$ac_header>
19025 rm -f conftest.$ac_objext
19026 if { (ac_try="$ac_compile"
19027 case "(($ac_try" in
19028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029 *) ac_try_echo=$ac_try;;
19031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19032 (eval "$ac_compile") 2>conftest.er1
19034 grep -v '^ *+' conftest.er1 >conftest.err
19036 cat conftest.err >&5
19037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19038 (exit $ac_status); } &&
19039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19040 { (case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_try") 2>&5
19047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19048 (exit $ac_status); }; } &&
19049 { ac_try='test -s conftest.$ac_objext'
19050 { (case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_try") 2>&5
19057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19058 (exit $ac_status); }; }; then
19059 ac_header_compiler=yes
19061 echo "$as_me: failed program was
:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19064 ac_header_compiler=no
19067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19068 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19069 echo "${ECHO_T}$ac_header_compiler" >&6; }
19071 # Is the header present?
19072 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19073 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19074 cat >conftest.$ac_ext <<_ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h. */
19080 #include <$ac_header>
19082 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19083 case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19090 grep -v '^ *+' conftest.er1 >conftest.err
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19094 (exit $ac_status); } >/dev/null; then
19095 if test -s conftest.err; then
19096 ac_cpp_err=$ac_c_preproc_warn_flag
19097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19104 if test -z "$ac_cpp_err"; then
19105 ac_header_preproc=yes
19107 echo "$as_me: failed program was
:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19110 ac_header_preproc=no
19113 rm -f conftest.err conftest.$ac_ext
19114 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19115 echo "${ECHO_T}$ac_header_preproc" >&6; }
19117 # So? What about this header?
19118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19120 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19121 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19122 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19124 ac_header_preproc=yes
19127 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19128 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19129 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19130 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19131 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19132 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19133 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19134 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19135 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19137 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19138 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19140 ## ----------------------------------- ##
19141 ## Report this to llvmbugs@cs.uiuc.edu ##
19142 ## ----------------------------------- ##
19144 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
19147 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19148 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19149 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19150 echo $ECHO_N "(cached
) $ECHO_C" >&6
19152 eval "$as_ac_Header=\
$ac_header_preproc"
19154 ac_res=`eval echo '${'$as_ac_Header'}'`
19155 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19156 echo "${ECHO_T}$ac_res" >&6; }
19159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19160 cat >>confdefs.h <<_ACEOF
19161 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19169 for ac_func in getpagesize
19171 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19172 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19173 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19174 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19175 echo $ECHO_N "(cached
) $ECHO_C" >&6
19177 cat >conftest.$ac_ext <<_ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h. */
19183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19185 #define $ac_func innocuous_$ac_func
19187 /* System header to define __stub macros and hopefully few prototypes,
19188 which can conflict with char $ac_func (); below.
19189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19190 <limits.h> exists even on freestanding compilers. */
19193 # include <limits.h>
19195 # include <assert.h>
19200 /* Override any GCC internal prototype to avoid an error.
19201 Use char because int might match the return type of a GCC
19202 builtin and then its argument prototype would still apply. */
19207 /* The GNU C library defines this for functions which it implements
19208 to always fail with ENOSYS. Some functions are actually named
19209 something starting with __ and the normal name is an alias. */
19210 #if defined __stub_$ac_func || defined __stub___$ac_func
19217 return $ac_func ();
19222 rm -f conftest.$ac_objext conftest$ac_exeext
19223 if { (ac_try="$ac_link"
19224 case "(($ac_try" in
19225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226 *) ac_try_echo=$ac_try;;
19228 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19229 (eval "$ac_link") 2>conftest.er1
19231 grep -v '^ *+' conftest.er1 >conftest.err
19233 cat conftest.err >&5
19234 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19235 (exit $ac_status); } &&
19236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19237 { (case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19241 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_try") 2>&5
19244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19245 (exit $ac_status); }; } &&
19246 { ac_try='test -s conftest$ac_exeext'
19247 { (case "(($ac_try" in
19248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249 *) ac_try_echo=$ac_try;;
19251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19252 (eval "$ac_try") 2>&5
19254 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19255 (exit $ac_status); }; }; then
19256 eval "$as_ac_var=yes"
19258 echo "$as_me: failed program was
:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19261 eval "$as_ac_var=no
"
19264 rm -f core conftest.err conftest.$ac_objext \
19265 conftest$ac_exeext conftest.$ac_ext
19267 ac_res=`eval echo '${'$as_ac_var'}'`
19268 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19269 echo "${ECHO_T}$ac_res" >&6; }
19270 if test `eval echo '${'$as_ac_var'}'` = yes; then
19271 cat >>confdefs.h <<_ACEOF
19272 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19278 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
19279 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
19280 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19281 echo $ECHO_N "(cached
) $ECHO_C" >&6
19283 if test "$cross_compiling" = yes; then
19284 ac_cv_func_mmap_fixed_mapped=no
19286 cat >conftest.$ac_ext <<_ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 $ac_includes_default
19293 /* malloc might have been renamed as rpl_malloc. */
19296 /* Thanks to Mike Haertel and Jim Avera for this test.
19297 Here is a matrix of mmap possibilities:
19298 mmap private not fixed
19299 mmap private fixed at somewhere currently unmapped
19300 mmap private fixed at somewhere already mapped
19301 mmap shared not fixed
19302 mmap shared fixed at somewhere currently unmapped
19303 mmap shared fixed at somewhere already mapped
19304 For private mappings, we should verify that changes cannot be read()
19305 back from the file, nor mmap's back from the file at a different
19306 address. (There have been systems where private was not correctly
19307 implemented like the infamous i386 svr4.0, and systems where the
19308 VM page cache was not coherent with the file system buffer cache
19309 like early versions of FreeBSD and possibly contemporary NetBSD.)
19310 For shared mappings, we should conversely verify that changes get
19311 propagated back to all the places they're supposed to be.
19313 Grep wants private fixed already mapped.
19314 The main things grep needs to know about mmap are:
19315 * does it exist and is it safe to write into the mmap'd area
19316 * how to use it (BSD variants) */
19319 #include <sys/mman.h>
19321 #if !STDC_HEADERS && !HAVE_STDLIB_H
19325 /* This mess was copied from the GNU getpagesize.h. */
19326 #if !HAVE_GETPAGESIZE
19327 /* Assume that all systems that can run configure have sys/param.h. */
19328 # if !HAVE_SYS_PARAM_H
19329 # define HAVE_SYS_PARAM_H 1
19332 # ifdef _SC_PAGESIZE
19333 # define getpagesize() sysconf(_SC_PAGESIZE)
19334 # else /* no _SC_PAGESIZE */
19335 # if HAVE_SYS_PARAM_H
19336 # include <sys/param.h>
19337 # ifdef EXEC_PAGESIZE
19338 # define getpagesize() EXEC_PAGESIZE
19339 # else /* no EXEC_PAGESIZE */
19341 # define getpagesize() NBPG * CLSIZE
19344 # endif /* no CLSIZE */
19345 # else /* no NBPG */
19347 # define getpagesize() NBPC
19348 # else /* no NBPC */
19350 # define getpagesize() PAGESIZE
19351 # endif /* PAGESIZE */
19352 # endif /* no NBPC */
19353 # endif /* no NBPG */
19354 # endif /* no EXEC_PAGESIZE */
19355 # else /* no HAVE_SYS_PARAM_H */
19356 # define getpagesize() 8192 /* punt totally */
19357 # endif /* no HAVE_SYS_PARAM_H */
19358 # endif /* no _SC_PAGESIZE */
19360 #endif /* no HAVE_GETPAGESIZE */
19365 char *data, *data2, *data3;
19369 pagesize = getpagesize ();
19371 /* First, make a file with some known garbage in it. */
19372 data = (char *) malloc (pagesize);
19375 for (i = 0; i < pagesize; ++i)
19376 *(data + i) = rand ();
19378 fd = creat ("conftest.mmap
", 0600);
19381 if (write (fd, data, pagesize) != pagesize)
19385 /* Next, try to mmap the file at a fixed address which already has
19386 something else allocated at it. If we can, also make sure that
19387 we see the same garbage. */
19388 fd = open ("conftest.mmap
", O_RDWR);
19391 data2 = (char *) malloc (2 * pagesize);
19394 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19395 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19396 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19398 for (i = 0; i < pagesize; ++i)
19399 if (*(data + i) != *(data2 + i))
19402 /* Finally, make sure that changes to the mapped area do not
19403 percolate back to the file as seen by read(). (This is a bug on
19404 some variants of i386 svr4.0.) */
19405 for (i = 0; i < pagesize; ++i)
19406 *(data2 + i) = *(data2 + i) + 1;
19407 data3 = (char *) malloc (pagesize);
19410 if (read (fd, data3, pagesize) != pagesize)
19412 for (i = 0; i < pagesize; ++i)
19413 if (*(data + i) != *(data3 + i))
19419 rm -f conftest$ac_exeext
19420 if { (ac_try="$ac_link"
19421 case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_link") 2>&5
19428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19430 { (case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_try") 2>&5
19437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19438 (exit $ac_status); }; }; then
19439 ac_cv_func_mmap_fixed_mapped=yes
19441 echo "$as_me: program exited with status
$ac_status" >&5
19442 echo "$as_me: failed program was
:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 ( exit $ac_status )
19446 ac_cv_func_mmap_fixed_mapped=no
19448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19453 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
19454 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19455 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE_MMAP 1
19462 rm -f conftest.mmap
19464 { echo "$as_me:$LINENO: checking
for mmap of files
" >&5
19465 echo $ECHO_N "checking
for mmap of files...
$ECHO_C" >&6; }
19466 if test "${ac_cv_func_mmap_file+set}" = set; then
19467 echo $ECHO_N "(cached
) $ECHO_C" >&6
19470 ac_cpp='$CPP $CPPFLAGS'
19471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19475 if test "$cross_compiling" = yes; then
19476 ac_cv_func_mmap_file=no
19478 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19486 #include <sys/types.h>
19487 #include <sys/mman.h>
19495 fd = creat ("foo
",0777);
19496 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19498 return (fd != (int) MAP_FAILED);
19503 rm -f conftest$ac_exeext
19504 if { (ac_try="$ac_link"
19505 case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_link") 2>&5
19512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19514 { (case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19518 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_try") 2>&5
19521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19522 (exit $ac_status); }; }; then
19523 ac_cv_func_mmap_file=yes
19525 echo "$as_me: program exited with status
$ac_status" >&5
19526 echo "$as_me: failed program was
:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19529 ( exit $ac_status )
19530 ac_cv_func_mmap_file=no
19532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19537 ac_cpp='$CPP $CPPFLAGS'
19538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19544 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_file" >&5
19545 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19546 if test "$ac_cv_func_mmap_file" = yes; then
19548 cat >>confdefs.h <<\_ACEOF
19549 #define HAVE_MMAP_FILE
19556 { echo "$as_me:$LINENO: checking
if /dev
/zero is needed
for mmap
" >&5
19557 echo $ECHO_N "checking
if /dev
/zero is needed
for mmap...
$ECHO_C" >&6; }
19558 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19559 echo $ECHO_N "(cached
) $ECHO_C" >&6
19561 if test "$llvm_cv_os_type" = "Interix
" ; then
19562 ac_cv_need_dev_zero_for_mmap=yes
19564 ac_cv_need_dev_zero_for_mmap=no
19568 { echo "$as_me:$LINENO: result
: $ac_cv_need_dev_zero_for_mmap" >&5
19569 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19570 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19572 cat >>confdefs.h <<\_ACEOF
19573 #define NEED_DEV_ZERO_FOR_MMAP 1
19578 if test "$ac_cv_func_mmap_fixed_mapped" = "no
"
19580 { echo "$as_me:$LINENO: WARNING
: mmap
() of a fixed address required but not supported
" >&5
19581 echo "$as_me: WARNING
: mmap
() of a fixed address required but not supported
" >&2;}
19583 if test "$ac_cv_func_mmap_file" = "no
"
19585 { echo "$as_me:$LINENO: WARNING
: mmap
() of files required but not found
" >&5
19586 echo "$as_me: WARNING
: mmap
() of files required but not found
" >&2;}
19590 { echo "$as_me:$LINENO: checking
for GCC atomic builtins
" >&5
19591 echo $ECHO_N "checking
for GCC atomic builtins...
$ECHO_C" >&6; }
19592 cat >conftest.$ac_ext <<_ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19599 volatile unsigned long val = 1;
19600 __sync_synchronize();
19601 __sync_val_compare_and_swap(&val, 1, 0);
19602 __sync_add_and_fetch(&val, 1);
19603 __sync_sub_and_fetch(&val, 1);
19608 rm -f conftest.$ac_objext conftest$ac_exeext
19609 if { (ac_try="$ac_link"
19610 case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_link") 2>conftest.er1
19617 grep -v '^ *+' conftest.er1 >conftest.err
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19621 (exit $ac_status); } &&
19622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19623 { (case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_try") 2>&5
19630 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19631 (exit $ac_status); }; } &&
19632 { ac_try='test -s conftest$ac_exeext'
19633 { (case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_try") 2>&5
19640 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 { echo "$as_me:$LINENO: result
: yes" >&5
19643 echo "${ECHO_T}yes" >&6; }
19645 cat >>confdefs.h <<\_ACEOF
19646 #define LLVM_MULTITHREADED 1
19650 echo "$as_me: failed program was
:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 { echo "$as_me:$LINENO: result
: no
" >&5
19654 echo "${ECHO_T}no
" >&6; }
19656 cat >>confdefs.h <<\_ACEOF
19657 #define LLVM_MULTITHREADED 0
19660 { echo "$as_me:$LINENO: WARNING
: LLVM will be built thread-unsafe because atomic builtins are missing
" >&5
19661 echo "$as_me: WARNING
: LLVM will be built thread-unsafe because atomic builtins are missing
" >&2;}
19664 rm -f core conftest.err conftest.$ac_objext \
19665 conftest$ac_exeext conftest.$ac_ext
19669 if test "$llvm_cv_os_type" = "Linux
" -a "$llvm_cv_target_arch" = "x86_64
" ; then
19670 { echo "$as_me:$LINENO: checking
for 32-bit userspace on
64-bit system
" >&5
19671 echo $ECHO_N "checking
for 32-bit userspace on
64-bit system...
$ECHO_C" >&6; }
19672 if test "${llvm_cv_linux_mixed+set}" = set; then
19673 echo $ECHO_N "(cached
) $ECHO_C" >&6
19676 ac_cpp='$CPP $CPPFLAGS'
19677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19681 cat >conftest.$ac_ext <<_ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19688 error: Not x86-64 even if uname says so!
19699 rm -f conftest.$ac_objext
19700 if { (ac_try="$ac_compile"
19701 case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_compile") 2>conftest.er1
19708 grep -v '^ *+' conftest.er1 >conftest.err
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19712 (exit $ac_status); } &&
19713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19714 { (case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19718 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_try") 2>&5
19721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19722 (exit $ac_status); }; } &&
19723 { ac_try='test -s conftest.$ac_objext'
19724 { (case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19729 (eval "$ac_try") 2>&5
19731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19732 (exit $ac_status); }; }; then
19733 llvm_cv_linux_mixed=no
19735 echo "$as_me: failed program was
:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19738 llvm_cv_linux_mixed=yes
19741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19743 ac_cpp='$CPP $CPPFLAGS'
19744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19750 { echo "$as_me:$LINENO: result
: $llvm_cv_linux_mixed" >&5
19751 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19753 if test "$llvm_cv_linux_mixed" = "yes"; then
19754 llvm_cv_target_arch="x86
"
19760 for ac_func in __dso_handle
19762 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19763 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19764 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19765 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19766 echo $ECHO_N "(cached
) $ECHO_C" >&6
19768 cat >conftest.$ac_ext <<_ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19776 #define $ac_func innocuous_$ac_func
19778 /* System header to define __stub macros and hopefully few prototypes,
19779 which can conflict with char $ac_func (); below.
19780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19781 <limits.h> exists even on freestanding compilers. */
19784 # include <limits.h>
19786 # include <assert.h>
19791 /* Override any GCC internal prototype to avoid an error.
19792 Use char because int might match the return type of a GCC
19793 builtin and then its argument prototype would still apply. */
19798 /* The GNU C library defines this for functions which it implements
19799 to always fail with ENOSYS. Some functions are actually named
19800 something starting with __ and the normal name is an alias. */
19801 #if defined __stub_$ac_func || defined __stub___$ac_func
19808 return $ac_func ();
19813 rm -f conftest.$ac_objext conftest$ac_exeext
19814 if { (ac_try="$ac_link"
19815 case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19819 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_link") 2>conftest.er1
19822 grep -v '^ *+' conftest.er1 >conftest.err
19824 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19826 (exit $ac_status); } &&
19827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19828 { (case "(($ac_try" in
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19833 (eval "$ac_try") 2>&5
19835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19836 (exit $ac_status); }; } &&
19837 { ac_try='test -s conftest$ac_exeext'
19838 { (case "(($ac_try" in
19839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19840 *) ac_try_echo=$ac_try;;
19842 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19843 (eval "$ac_try") 2>&5
19845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19846 (exit $ac_status); }; }; then
19847 eval "$as_ac_var=yes"
19849 echo "$as_me: failed program was
:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19852 eval "$as_ac_var=no
"
19855 rm -f core conftest.err conftest.$ac_objext \
19856 conftest$ac_exeext conftest.$ac_ext
19858 ac_res=`eval echo '${'$as_ac_var'}'`
19859 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19860 echo "${ECHO_T}$ac_res" >&6; }
19861 if test `eval echo '${'$as_ac_var'}'` = yes; then
19862 cat >>confdefs.h <<_ACEOF
19863 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19870 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane
" >&5
19871 echo $ECHO_N "checking whether llvm-gcc is sane...
$ECHO_C" >&6; }
19872 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19873 echo $ECHO_N "(cached
) $ECHO_C" >&6
19875 llvm_cv_llvmgcc_sanity="no
"
19876 if test -x "$LLVMGCC" ; then
19877 cp /dev/null conftest.c
19878 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19879 grep 'target datalayout =' > /dev/null 2>&1
19880 if test $? -eq 0 ; then
19881 llvm_cv_llvmgcc_sanity="yes"
19886 { echo "$as_me:$LINENO: result
: $llvm_cv_llvmgcc_sanity" >&5
19887 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19889 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19890 { echo "$as_me:$LINENO: checking llvm-gcc component support
" >&5
19891 echo $ECHO_N "checking llvm-gcc component support...
$ECHO_C" >&6; }
19892 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19893 LLVMCC1=$llvmcc1path
19895 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19896 LLVMCC1PLUS=$llvmcc1pluspath
19898 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19899 LLVMGCCDIR=$llvmgccdir
19901 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19902 LLVMGCC_LANGS=$llvmgcclangs
19904 { echo "$as_me:$LINENO: result
: ok
" >&5
19905 echo "${ECHO_T}ok
" >&6; }
19908 SHLIBEXT=$libltdl_cv_shlibext
19911 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19914 # Translate the various configuration directories and other basic
19915 # information into substitutions that will end up in Makefile.config.in
19916 # that these configured values can be used by the makefiles
19917 if test "${prefix}" = "NONE
" ; then
19918 prefix="/usr
/local"
19920 eval LLVM_PREFIX="${prefix}";
19921 eval LLVM_BINDIR="${prefix}/bin
";
19922 eval LLVM_LIBDIR="${prefix}/lib
";
19923 eval LLVM_DATADIR="${prefix}/share
/llvm
";
19924 eval LLVM_DOCSDIR="${prefix}/share
/doc
/llvm
";
19925 eval LLVM_ETCDIR="${prefix}/etc
/llvm
";
19926 eval LLVM_INCLUDEDIR="${prefix}/include
";
19927 eval LLVM_INFODIR="${prefix}/info
";
19928 eval LLVM_MANDIR="${prefix}/man
";
19929 LLVM_CONFIGTIME=`date`
19941 # Place the various directores into the config.h file as #defines so that we
19942 # can know about the installation paths within LLVM.
19944 cat >>confdefs.h <<_ACEOF
19945 #define LLVM_PREFIX "$LLVM_PREFIX"
19949 cat >>confdefs.h <<_ACEOF
19950 #define LLVM_BINDIR "$LLVM_BINDIR"
19954 cat >>confdefs.h <<_ACEOF
19955 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19959 cat >>confdefs.h <<_ACEOF
19960 #define LLVM_DATADIR "$LLVM_DATADIR"
19964 cat >>confdefs.h <<_ACEOF
19965 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19969 cat >>confdefs.h <<_ACEOF
19970 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19974 cat >>confdefs.h <<_ACEOF
19975 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19979 cat >>confdefs.h <<_ACEOF
19980 #define LLVM_INFODIR "$LLVM_INFODIR"
19984 cat >>confdefs.h <<_ACEOF
19985 #define LLVM_MANDIR "$LLVM_MANDIR"
19989 cat >>confdefs.h <<_ACEOF
19990 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19994 cat >>confdefs.h <<_ACEOF
19995 #define LLVM_HOSTTRIPLE "$host"
19999 # Determine which bindings to build.
20000 if test "$BINDINGS_TO_BUILD" = auto ; then
20001 BINDINGS_TO_BUILD=""
20002 if test "x
$OCAMLC" != x -a "x
$OCAMLDEP" != x ; then
20003 BINDINGS_TO_BUILD="ocaml
$BINDINGS_TO_BUILD"
20006 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20009 # This isn't really configurey, but it avoids having to repeat the list in
20014 # Do any work necessary to ensure that bindings have what they need.
20015 binding_prereqs_failed=0
20016 for a_binding in $BINDINGS_TO_BUILD ; do
20017 case "$a_binding" in
20019 if test "x
$OCAMLC" = x ; then
20020 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamlc not found. Try configure OCAMLC
=/path
/to
/ocamlc
" >&5
20021 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamlc not found. Try configure OCAMLC
=/path
/to
/ocamlc
" >&2;}
20022 binding_prereqs_failed=1
20024 if test "x
$OCAMLDEP" = x ; then
20025 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamldep not found. Try configure OCAMLDEP
=/path
/to
/ocamldep
" >&5
20026 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamldep not found. Try configure OCAMLDEP
=/path
/to
/ocamldep
" >&2;}
20027 binding_prereqs_failed=1
20029 if test "x
$OCAMLOPT" = x ; then
20030 { echo "$as_me:$LINENO: WARNING
: --enable-bindings=ocaml specified
, but ocamlopt not found. Try configure OCAMLOPT
=/path
/to
/ocamlopt
" >&5
20031 echo "$as_me: WARNING
: --enable-bindings=ocaml specified
, but ocamlopt not found. Try configure OCAMLOPT
=/path
/to
/ocamlopt
" >&2;}
20033 if test "x
$with_ocaml_libdir" != xauto ; then
20034 OCAML_LIBDIR=$with_ocaml_libdir
20037 ocaml_stdlib="`"$OCAMLC" -where`"
20038 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~
"
20040 # ocaml stdlib is beneath our prefix; use stdlib
20041 OCAML_LIBDIR=$ocaml_stdlib
20044 # ocaml stdlib is outside our prefix; use libdir/ocaml
20045 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20052 if test "$binding_prereqs_failed" = 1 ; then
20053 { { echo "$as_me:$LINENO: error
: Prequisites
for bindings not satisfied. Fix them or use configure
--disable-bindings.
" >&5
20054 echo "$as_me: error
: Prequisites
for bindings not satisfied. Fix them or use configure
--disable-bindings.
" >&2;}
20055 { (exit 1); exit 1; }; }
20058 { echo "$as_me:$LINENO: checking
for compiler
-fvisibility-inlines-hidden option
" >&5
20059 echo $ECHO_N "checking
for compiler
-fvisibility-inlines-hidden option...
$ECHO_C" >&6; }
20060 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20061 echo $ECHO_N "(cached
) $ECHO_C" >&6
20064 ac_cpp='$CXXCPP $CPPFLAGS'
20065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20069 oldcxxflags="$CXXFLAGS"
20070 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20071 cat >conftest.$ac_ext <<_ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20086 rm -f conftest.$ac_objext
20087 if { (ac_try="$ac_compile"
20088 case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_compile") 2>conftest.er1
20095 grep -v '^ *+' conftest.er1 >conftest.err
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20099 (exit $ac_status); } &&
20100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20101 { (case "(($ac_try" in
20102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20103 *) ac_try_echo=$ac_try;;
20105 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_try") 2>&5
20108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20109 (exit $ac_status); }; } &&
20110 { ac_try='test -s conftest.$ac_objext'
20111 { (case "(($ac_try" in
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113 *) ac_try_echo=$ac_try;;
20115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20116 (eval "$ac_try") 2>&5
20118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20119 (exit $ac_status); }; }; then
20120 llvm_cv_cxx_visibility_inlines_hidden=yes
20122 echo "$as_me: failed program was
:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20125 llvm_cv_cxx_visibility_inlines_hidden=no
20128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 CXXFLAGS="$oldcxxflags"
20131 ac_cpp='$CPP $CPPFLAGS'
20132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20138 { echo "$as_me:$LINENO: result
: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20139 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20140 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20141 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20144 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20149 if test "$llvm_cv_link_use_r" = "yes" ; then
20156 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20157 RDYNAMIC="-Wl,-export-dynamic"
20164 ac_config_headers="$ac_config_headers include
/llvm
/Config
/config.h
"
20166 ac_config_files="$ac_config_files include
/llvm
/Config
/Targets.def
"
20168 ac_config_files="$ac_config_files include
/llvm
/Config
/AsmPrinters.def
"
20170 ac_config_files="$ac_config_files include
/llvm
/Config
/AsmParsers.def
"
20172 ac_config_files="$ac_config_files include
/llvm
/Config
/Disassemblers.def
"
20174 ac_config_headers="$ac_config_headers include
/llvm
/System
/DataTypes.h
"
20177 ac_config_files="$ac_config_files Makefile.config
"
20180 ac_config_files="$ac_config_files llvm.spec
"
20183 ac_config_files="$ac_config_files docs
/doxygen.cfg
"
20186 ac_config_files="$ac_config_files tools
/llvmc
/plugins
/Base
/Base.td
"
20189 ac_config_files="$ac_config_files tools
/llvm-config
/llvm-config.
in"
20192 ac_config_commands="$ac_config_commands setup
"
20194 ac_config_commands="$ac_config_commands Makefile
"
20197 ac_config_commands="$ac_config_commands Makefile.common
"
20200 ac_config_commands="$ac_config_commands examples
/Makefile
"
20203 ac_config_commands="$ac_config_commands lib
/Makefile
"
20206 ac_config_commands="$ac_config_commands runtime
/Makefile
"
20209 ac_config_commands="$ac_config_commands test
/Makefile
"
20212 ac_config_commands="$ac_config_commands test
/Makefile.tests
"
20215 ac_config_commands="$ac_config_commands unittests
/Makefile
"
20218 ac_config_commands="$ac_config_commands tools
/Makefile
"
20221 ac_config_commands="$ac_config_commands utils
/Makefile
"
20224 ac_config_commands="$ac_config_commands projects
/Makefile
"
20227 ac_config_commands="$ac_config_commands bindings
/Makefile
"
20230 ac_config_commands="$ac_config_commands bindings
/ocaml
/Makefile.ocaml
"
20234 cat >confcache <<\_ACEOF
20235 # This file is a shell script that caches the results of configure
20236 # tests run on this system so they can be shared between configure
20237 # scripts and configure runs, see configure's option --config-cache.
20238 # It is not useful on other systems. If it contains results you don't
20239 # want to keep, you may remove or edit it.
20241 # config.status only pays attention to the cache file if you give it
20242 # the --recheck option to rerun configure.
20244 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20245 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20246 # following values.
20250 # The following way of writing the cache mishandles newlines in values,
20251 # but we know of no workaround that is simple, portable, and efficient.
20252 # So, we kill variables containing newlines.
20253 # Ultrix sh set writes to stderr and can't be redirected directly,
20254 # and sets the high bit in the cache file unless we assign to the vars.
20256 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20257 eval ac_val=\$$ac_var
20261 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
20262 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
20265 _ | IFS | as_nl) ;; #(
20266 *) $as_unset $ac_var ;;
20272 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20273 *${as_nl}ac_space=\ *)
20274 # `set' does not quote correctly, so add quotes (double-quote
20275 # substitution turns \\\\ into \\, and sed turns \\ into \).
20278 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
20281 # `set' quotes correctly as required by POSIX, so do not add quotes.
20282 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
20291 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20293 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20295 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20296 if test -w "$cache_file"; then
20297 test "x
$cache_file" != "x
/dev
/null
" &&
20298 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
20299 echo "$as_me: updating cache
$cache_file" >&6;}
20300 cat confcache >$cache_file
20302 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
20303 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
20308 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
20309 # Let make expand exec_prefix.
20310 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
20312 DEFS=-DHAVE_CONFIG_H
20316 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
20317 # 1. Remove the extension, and $U if already installed.
20318 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20319 ac_i=`echo "$ac_i" | sed "$ac_script"`
20320 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20321 # will be set to the directory where LIBOBJS objects are built.
20322 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
20323 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
20325 LIBOBJS=$ac_libobjs
20327 LTLIBOBJS=$ac_ltlibobjs
20330 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20331 { { echo "$as_me:$LINENO: error
: conditional
\"INSTALL_LTDL
\" was never defined.
20332 Usually this means the macro was only invoked conditionally.
" >&5
20333 echo "$as_me: error
: conditional
\"INSTALL_LTDL
\" was never defined.
20334 Usually this means the macro was only invoked conditionally.
" >&2;}
20335 { (exit 1); exit 1; }; }
20337 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20338 { { echo "$as_me:$LINENO: error
: conditional
\"CONVENIENCE_LTDL
\" was never defined.
20339 Usually this means the macro was only invoked conditionally.
" >&5
20340 echo "$as_me: error
: conditional
\"CONVENIENCE_LTDL
\" was never defined.
20341 Usually this means the macro was only invoked conditionally.
" >&2;}
20342 { (exit 1); exit 1; }; }
20345 : ${CONFIG_STATUS=./config.status}
20346 ac_clean_files_save=$ac_clean_files
20347 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20348 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
20349 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
20350 cat >$CONFIG_STATUS <<_ACEOF
20352 # Generated by $as_me.
20353 # Run this file to recreate the current configuration.
20354 # Compiler output produced by configure, useful for debugging
20355 # configure, is in config.log if it exists.
20358 ac_cs_recheck=false
20360 SHELL=\${CONFIG_SHELL-$SHELL}
20363 cat >>$CONFIG_STATUS <<\_ACEOF
20364 ## --------------------- ##
20365 ## M4sh Initialization. ##
20366 ## --------------------- ##
20368 # Be Bourne compatible
20369 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20372 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20373 # is contrary to our usage. Disable this feature.
20374 alias -g '${1+"$@"}'='"$@
"'
20375 setopt NO_GLOB_SUBST
20377 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20379 BIN_SH=xpg4; export BIN_SH # for Tru64
20380 DUALCASE=1; export DUALCASE # for MKS sh
20384 # Avoid depending upon Character Ranges.
20385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20388 as_cr_digits='0123456789'
20389 as_cr_alnum=$as_cr_Letters$as_cr_digits
20391 # The user is always right.
20392 if test "${PATH_SEPARATOR+set}" != set; then
20393 echo "#! /bin/sh" >conf$$.sh
20394 echo "exit 0" >>conf$$.sh
20396 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
20404 # Support unset when possible.
20405 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
20413 # We need space, tab and new line, in precisely that order. Quoting is
20414 # there to prevent editors from complaining about space-tab.
20415 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20416 # splitting by setting IFS to empty value.)
20421 # Find who we are. Look in the path if we contain no directory separator.
20423 *[\\/]* ) as_myself
=$0 ;;
20424 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20425 for as_dir
in $PATH
20428 test -z "$as_dir" && as_dir
=.
20429 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20435 # We did not find ourselves, most probably we were run as `sh COMMAND'
20436 # in which case we are not to be found in the path.
20437 if test "x$as_myself" = x
; then
20440 if test ! -f "$as_myself"; then
20441 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20442 { (exit 1); exit 1; }
20445 # Work around bugs in pre-3.0 UWIN ksh.
20446 for as_var
in ENV MAIL MAILPATH
20447 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20455 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20456 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20457 LC_TELEPHONE LC_TIME
20459 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20460 eval $as_var=C
; export $as_var
20462 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20466 # Required to use basename.
20467 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20468 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20474 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20475 as_basename
=basename
20481 # Name of the executable.
20482 as_me
=`$as_basename -- "$0" ||
20483 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20484 X"$0" : 'X\(//\)$' \| \
20485 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20487 sed '/^.*\/\([^/][^/]*\)\/*$/{
20506 as_lineno_1
=$LINENO
20507 as_lineno_2
=$LINENO
20508 test "x$as_lineno_1" != "x$as_lineno_2" &&
20509 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
20511 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20512 # uniformly replaced by the line number. The first 'sed' inserts a
20513 # line-number line after each line using $LINENO; the second 'sed'
20514 # does the real work. The second script uses 'N' to pair each
20515 # line-number line with the line containing $LINENO, and appends
20516 # trailing '-' during substitution so that $LINENO is not a special
20517 # case at line end.
20518 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20519 # scripts with optimization help from Paolo Bonzini. Blame Lee
20520 # E. McMahon (1931-1989) for sed's syntax. :-)
20532 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20535 ' >$as_me.lineno
&&
20536 chmod +x
"$as_me.lineno" ||
20537 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20538 { (exit 1); exit 1; }; }
20540 # Don't try to exec as it changes $[0], causing all sort of problems
20541 # (the dirname of $[0] is not the place where we might find the
20542 # original and so on. Autoconf is especially sensitive to this).
20543 .
"./$as_me.lineno"
20544 # Exit status is that of the last command.
20549 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20555 ECHO_C
= ECHO_N
= ECHO_T
=
20556 case `echo -n x` in
20558 case `echo 'x\c'` in
20559 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20566 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20567 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20573 rm -f conf$$ conf$$.exe conf$$.
file
20574 if test -d conf$$.dir
; then
20575 rm -f conf$$.dir
/conf$$.
file
20581 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20583 # ... but there are two gotchas:
20584 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20585 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20586 # In both cases, we have to default to `cp -p'.
20587 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20589 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20594 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20595 rmdir conf$$.dir
2>/dev
/null
20597 if mkdir
-p .
2>/dev
/null
; then
20600 test -d .
/-p && rmdir .
/-p
20604 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20605 # systems may use methods other than mode bits to determine executability.
20606 cat >conf$$.
file <<_ASEOF
20610 chmod +x conf$$.
file
20611 if test -x conf$$.
file >/dev
/null
2>&1; then
20612 as_executable_p
="test -x"
20618 # Sed expression to map a string onto a valid CPP name.
20619 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20621 # Sed expression to map a string onto a valid variable name.
20622 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20627 # Save the log message, to keep $[0] and so on meaningful, and to
20628 # report actual input values of CONFIG_FILES etc. instead of their
20629 # values after options handling.
20631 This file was extended by llvm $as_me 2.8svn, which was
20632 generated by GNU Autoconf 2.60. Invocation command line was
20634 CONFIG_FILES = $CONFIG_FILES
20635 CONFIG_HEADERS = $CONFIG_HEADERS
20636 CONFIG_LINKS = $CONFIG_LINKS
20637 CONFIG_COMMANDS = $CONFIG_COMMANDS
20640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20645 cat >>$CONFIG_STATUS <<_ACEOF
20646 # Files that config.status was made for.
20647 config_files="$ac_config_files"
20648 config_headers="$ac_config_headers"
20649 config_commands="$ac_config_commands"
20653 cat >>$CONFIG_STATUS <<\_ACEOF
20655 \`$as_me' instantiates files from templates according to the
20656 current configuration.
20658 Usage: $0 [OPTIONS] [FILE]...
20660 -h, --help print this help, then exit
20661 -V, --version print version number, then exit
20662 -q, --quiet do not print progress messages
20663 -d, --debug don't remove temporary files
20664 --recheck update $as_me by reconfiguring in the same conditions
20665 --file=FILE[:TEMPLATE]
20666 instantiate the configuration file FILE
20667 --header=FILE[:TEMPLATE]
20668 instantiate the configuration header FILE
20670 Configuration files:
20673 Configuration headers:
20676 Configuration commands:
20679 Report bugs to <bug-autoconf@gnu.org>."
20682 cat >>$CONFIG_STATUS <<_ACEOF
20684 llvm config.status 2.8svn
20685 configured by $0, generated by GNU Autoconf 2.60,
20686 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20688 Copyright (C) 2006 Free Software Foundation, Inc.
20689 This config.status script is free software; the Free Software Foundation
20690 gives unlimited permission to copy, distribute and modify it."
20697 cat >>$CONFIG_STATUS <<\_ACEOF
20698 # If no file are specified by the user, then we need to provide default
20699 # value. By we need to know if files were specified by the user.
20705 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20706 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20717 # Handling of the options.
20718 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20720 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20721 echo "$ac_cs_version"; exit ;;
20722 --debug |
--debu |
--deb |
--de |
--d |
-d )
20724 --file |
--fil |
--fi |
--f )
20726 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20727 ac_need_defaults
=false
;;
20728 --header |
--heade |
--head |
--hea )
20730 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20731 ac_need_defaults
=false
;;
20733 # Conflict between --help and --header
20734 { echo "$as_me: error: ambiguous option: $1
20735 Try \`$0 --help' for more information." >&2
20736 { (exit 1); exit 1; }; };;
20737 --help |
--hel |
-h )
20738 echo "$ac_cs_usage"; exit ;;
20739 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20740 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20743 # This is an error.
20744 -*) { echo "$as_me: error: unrecognized option: $1
20745 Try \`$0 --help' for more information." >&2
20746 { (exit 1); exit 1; }; } ;;
20748 *) ac_config_targets
="$ac_config_targets $1"
20749 ac_need_defaults
=false
;;
20755 ac_configure_extra_args
=
20757 if $ac_cs_silent; then
20759 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20763 cat >>$CONFIG_STATUS <<_ACEOF
20764 if \$ac_cs_recheck; then
20765 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20766 CONFIG_SHELL=$SHELL
20767 export CONFIG_SHELL
20768 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20772 cat >>$CONFIG_STATUS <<\_ACEOF
20776 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20777 ## Running $as_me. ##
20783 cat >>$CONFIG_STATUS <<_ACEOF
20787 llvm_src="${srcdir}"
20791 cat >>$CONFIG_STATUS <<\_ACEOF
20793 # Handling of arguments.
20794 for ac_config_target
in $ac_config_targets
20796 case $ac_config_target in
20797 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20798 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20799 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20800 "include/llvm/Config/AsmParsers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20801 "include/llvm/Config/Disassemblers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20802 "include/llvm/System/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20803 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
20804 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
20805 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
20806 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20807 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20808 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
20809 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
20810 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
20811 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
20812 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
20813 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
20814 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
20815 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
20816 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
20817 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
20818 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
20819 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
20820 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
20821 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20823 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20824 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20825 { (exit 1); exit 1; }; };;
20830 # If the user did not use the arguments to specify the items to instantiate,
20831 # then the envvar interface is used. Set only those that are not.
20832 # We use the long form for the default assignment because of an extremely
20833 # bizarre bug on SunOS 4.1.3.
20834 if $ac_need_defaults; then
20835 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20836 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20837 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20840 # Have a temporary directory for convenience. Make it in the build tree
20841 # simply because there is no reason against having it here, and in addition,
20842 # creating and moving files from /tmp can sometimes cause problems.
20843 # Hook for its removal unless debugging.
20844 # Note that there is a small window in which the directory will not be cleaned:
20845 # after its creation but before its name has been assigned to `$tmp'.
20849 trap 'exit_status=$?
20850 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20852 trap '{ (exit 1); exit 1; }' 1 2 13 15
20854 # Create a (secure) tmp directory for tmp files.
20857 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20858 test -n "$tmp" && test -d "$tmp"
20861 tmp
=.
/conf$$
-$RANDOM
20862 (umask 077 && mkdir
"$tmp")
20865 echo "$me: cannot create a temporary directory in ." >&2
20866 { (exit 1); exit 1; }
20870 # Set up the sed scripts for CONFIG_FILES section.
20873 # No need to generate the scripts if there are no CONFIG_FILES.
20874 # This happens for instance when ./config.status config.h
20875 if test -n "$CONFIG_FILES"; then
20882 for ac_last_try
in false false false false false
:; do
20883 cat >conf$
$subs.
sed <<_ACEOF
20884 SHELL!$SHELL$ac_delim
20885 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20886 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20887 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20888 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20889 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20890 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20891 exec_prefix!$exec_prefix$ac_delim
20892 prefix!$prefix$ac_delim
20893 program_transform_name!$program_transform_name$ac_delim
20894 bindir!$bindir$ac_delim
20895 sbindir!$sbindir$ac_delim
20896 libexecdir!$libexecdir$ac_delim
20897 datarootdir!$datarootdir$ac_delim
20898 datadir!$datadir$ac_delim
20899 sysconfdir!$sysconfdir$ac_delim
20900 sharedstatedir!$sharedstatedir$ac_delim
20901 localstatedir!$localstatedir$ac_delim
20902 includedir!$includedir$ac_delim
20903 oldincludedir!$oldincludedir$ac_delim
20904 docdir!$docdir$ac_delim
20905 infodir!$infodir$ac_delim
20906 htmldir!$htmldir$ac_delim
20907 dvidir!$dvidir$ac_delim
20908 pdfdir!$pdfdir$ac_delim
20909 psdir!$psdir$ac_delim
20910 libdir!$libdir$ac_delim
20911 localedir!$localedir$ac_delim
20912 mandir!$mandir$ac_delim
20913 DEFS!$DEFS$ac_delim
20914 ECHO_C!$ECHO_C$ac_delim
20915 ECHO_N!$ECHO_N$ac_delim
20916 ECHO_T!$ECHO_T$ac_delim
20917 LIBS!$LIBS$ac_delim
20918 build_alias!$build_alias$ac_delim
20919 host_alias!$host_alias$ac_delim
20920 target_alias!$target_alias$ac_delim
20921 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20922 subdirs!$subdirs$ac_delim
20923 build!$build$ac_delim
20924 build_cpu!$build_cpu$ac_delim
20925 build_vendor!$build_vendor$ac_delim
20926 build_os!$build_os$ac_delim
20927 host!$host$ac_delim
20928 host_cpu!$host_cpu$ac_delim
20929 host_vendor!$host_vendor$ac_delim
20930 host_os!$host_os$ac_delim
20931 target!$target$ac_delim
20932 target_cpu!$target_cpu$ac_delim
20933 target_vendor!$target_vendor$ac_delim
20934 target_os!$target_os$ac_delim
20936 HOST_OS!$HOST_OS$ac_delim
20937 TARGET_OS!$TARGET_OS$ac_delim
20938 LINKALL!$LINKALL$ac_delim
20939 NOLINKALL!$NOLINKALL$ac_delim
20940 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20941 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20942 ARCH!$ARCH$ac_delim
20943 ENDIAN!$ENDIAN$ac_delim
20945 CFLAGS!$CFLAGS$ac_delim
20946 LDFLAGS!$LDFLAGS$ac_delim
20947 CPPFLAGS!$CPPFLAGS$ac_delim
20948 ac_ct_CC!$ac_ct_CC$ac_delim
20949 EXEEXT!$EXEEXT$ac_delim
20950 OBJEXT!$OBJEXT$ac_delim
20952 GREP!$GREP$ac_delim
20953 EGREP!$EGREP$ac_delim
20954 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20955 BUILD_CC!$BUILD_CC$ac_delim
20956 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20957 BUILD_CXX!$BUILD_CXX$ac_delim
20958 CVSBUILD!$CVSBUILD$ac_delim
20959 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20960 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20961 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20962 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20963 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20964 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20965 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20967 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20968 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20969 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20970 ENABLE_PIC!$ENABLE_PIC$ac_delim
20971 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20972 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20973 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20974 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20975 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20976 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20977 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20978 CLANGPATH!$CLANGPATH$ac_delim
20979 CLANGXXPATH!$CLANGXXPATH$ac_delim
20980 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20983 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20985 elif $ac_last_try; then
20986 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20987 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20988 { (exit 1); exit 1; }; }
20990 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
20994 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20995 if test -n "$ac_eof"; then
20996 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
20997 ac_eof
=`expr $ac_eof + 1`
21000 cat >>$CONFIG_STATUS <<_ACEOF
21001 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21002 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21005 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21006 s/^/s,@/; s/!/@,|#_!!_#|/
21009 s/'"$ac_delim"'$/,g/; t
21011 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21012 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21013 rm -f conf$
$subs.
sed
21014 cat >>$CONFIG_STATUS <<_ACEOF
21020 for ac_last_try
in false false false false false
:; do
21021 cat >conf$
$subs.
sed <<_ACEOF
21022 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21023 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21024 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21025 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21026 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21028 CXXFLAGS!$CXXFLAGS$ac_delim
21029 ac_ct_CXX!$ac_ct_CXX$ac_delim
21031 ifGNUmake!$ifGNUmake$ac_delim
21032 LN_S!$LN_S$ac_delim
21035 DATE!$DATE$ac_delim
21036 FIND!$FIND$ac_delim
21037 MKDIR!$MKDIR$ac_delim
21039 RANLIB!$RANLIB$ac_delim
21044 BINPWD!$BINPWD$ac_delim
21045 GRAPHVIZ!$GRAPHVIZ$ac_delim
21048 NEATO!$NEATO$ac_delim
21049 TWOPI!$TWOPI$ac_delim
21050 CIRCO!$CIRCO$ac_delim
21052 DOTTY!$DOTTY$ac_delim
21053 PERL!$PERL$ac_delim
21054 HAVE_PERL!$HAVE_PERL$ac_delim
21055 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21056 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21057 INSTALL_DATA!$INSTALL_DATA$ac_delim
21058 BZIP2!$BZIP2$ac_delim
21059 DOXYGEN!$DOXYGEN$ac_delim
21060 GROFF!$GROFF$ac_delim
21061 GZIP!$GZIP$ac_delim
21062 POD2HTML!$POD2HTML$ac_delim
21063 POD2MAN!$POD2MAN$ac_delim
21064 RUNTEST!$RUNTEST$ac_delim
21065 TCLSH!$TCLSH$ac_delim
21067 OCAMLC!$OCAMLC$ac_delim
21068 OCAMLOPT!$OCAMLOPT$ac_delim
21069 OCAMLDEP!$OCAMLDEP$ac_delim
21070 OCAMLDOC!$OCAMLDOC$ac_delim
21072 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21073 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21074 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21075 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21076 LIBADD_DL!$LIBADD_DL$ac_delim
21077 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21078 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21079 LLVMGCC!$LLVMGCC$ac_delim
21080 LLVMGXX!$LLVMGXX$ac_delim
21081 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21082 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21083 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21084 USE_UDIS86!$USE_UDIS86$ac_delim
21085 USE_OPROFILE!$USE_OPROFILE$ac_delim
21086 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21087 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21088 MMAP_FILE!$MMAP_FILE$ac_delim
21089 LLVMCC1!$LLVMCC1$ac_delim
21090 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21091 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21092 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21093 SHLIBEXT!$SHLIBEXT$ac_delim
21094 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21095 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21096 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21097 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21098 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21099 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21100 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21101 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21102 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21103 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21104 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21105 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21106 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21107 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21108 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21109 RPATH!$RPATH$ac_delim
21110 RDYNAMIC!$RDYNAMIC$ac_delim
21111 LIBOBJS!$LIBOBJS$ac_delim
21112 LTLIBOBJS!$LTLIBOBJS$ac_delim
21115 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21117 elif $ac_last_try; then
21118 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21119 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21120 { (exit 1); exit 1; }; }
21122 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21126 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21127 if test -n "$ac_eof"; then
21128 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21129 ac_eof
=`expr $ac_eof + 1`
21132 cat >>$CONFIG_STATUS <<_ACEOF
21133 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21134 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21137 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21138 s/^/s,@/; s/!/@,|#_!!_#|/
21141 s/'"$ac_delim"'$/,g/; t
21143 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21144 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21145 rm -f conf$
$subs.
sed
21146 cat >>$CONFIG_STATUS <<_ACEOF
21153 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21154 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21155 # trailing colons and then remove the whole line if VPATH becomes empty
21156 # (actually we leave an empty line to preserve line numbers).
21157 if test "x$srcdir" = x.
; then
21158 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21159 s/:*\$(srcdir):*/:/
21160 s/:*\${srcdir}:*/:/
21162 s/^\([^=]*=[ ]*\):*/\1/
21168 cat >>$CONFIG_STATUS <<\_ACEOF
21169 fi # test -n "$CONFIG_FILES"
21172 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
21175 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21177 case $ac_mode$ac_tag in
21179 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21180 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21181 { (exit 1); exit 1; }; };;
21182 :[FH
]-) ac_tag
=-:-;;
21183 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21200 -) ac_f
="$tmp/stdin";;
21201 *) # Look for the file first in the build tree, then in the source tree
21202 # (if the path is not absolute). The absolute path cannot be DOS-style,
21203 # because $ac_f cannot contain `:'.
21207 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21209 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21210 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21211 { (exit 1); exit 1; }; };;
21213 ac_file_inputs
="$ac_file_inputs $ac_f"
21216 # Let's still pretend it is `configure' which instantiates (i.e., don't
21217 # use $as_me), people would be surprised to read:
21218 # /* config.h. Generated by config.status. */
21219 configure_input
="Generated from "`IFS=:
21220 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21221 if test x
"$ac_file" != x-
; then
21222 configure_input
="$ac_file. $configure_input"
21223 { echo "$as_me:$LINENO: creating $ac_file" >&5
21224 echo "$as_me: creating $ac_file" >&6;}
21228 *:-:* |
*:-) cat >"$tmp/stdin";;
21233 ac_dir
=`$as_dirname -- "$ac_file" ||
21234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21235 X"$ac_file" : 'X\(//\)[^/]' \| \
21236 X"$ac_file" : 'X\(//\)$' \| \
21237 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21243 /^X\(\/\/\)[^/].*/{
21258 -*) as_dir
=.
/$as_dir;;
21260 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21264 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21265 *) as_qdir
=$as_dir;;
21267 as_dirs
="'$as_qdir' $as_dirs"
21268 as_dir
=`$as_dirname -- "$as_dir" ||
21269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21270 X"$as_dir" : 'X\(//\)[^/]' \| \
21271 X"$as_dir" : 'X\(//\)$' \| \
21272 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21278 /^X\(\/\/\)[^/].*/{
21291 test -d "$as_dir" && break
21293 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21294 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21295 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21296 { (exit 1); exit 1; }; }; }
21300 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21302 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21303 # A ".." for each directory in $ac_dir_suffix.
21304 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21305 case $ac_top_builddir_sub in
21306 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21307 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21310 ac_abs_top_builddir
=$ac_pwd
21311 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21312 # for backward compatibility:
21313 ac_top_builddir
=$ac_top_build_prefix
21316 .
) # We are building in place.
21318 ac_top_srcdir
=$ac_top_builddir_sub
21319 ac_abs_top_srcdir
=$ac_pwd ;;
21320 [\\/]* | ?
:[\\/]* ) # Absolute name.
21321 ac_srcdir
=$srcdir$ac_dir_suffix;
21322 ac_top_srcdir
=$srcdir
21323 ac_abs_top_srcdir
=$srcdir ;;
21324 *) # Relative name.
21325 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21326 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21327 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21329 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21339 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21340 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21344 cat >>$CONFIG_STATUS <<\_ACEOF
21345 # If the template does not know about datarootdir, expand it.
21346 # FIXME: This hack should be removed a few years after 2.60.
21347 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21349 case `sed -n '/datarootdir/ {
21358 ' $ac_file_inputs` in
21359 *datarootdir
*) ac_datarootdir_seen
=yes;;
21360 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21361 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21362 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21364 cat >>$CONFIG_STATUS <<_ACEOF
21365 ac_datarootdir_hack='
21366 s&@datadir@&$datadir&g
21367 s&@docdir@&$docdir&g
21368 s&@infodir@&$infodir&g
21369 s&@localedir@&$localedir&g
21370 s&@mandir@&$mandir&g
21371 s&\\\${datarootdir}&$datarootdir&g' ;;
21375 # Neutralize VPATH when `$srcdir' = `.'.
21376 # Shell code in configure.ac might set extrasub.
21377 # FIXME: do we really want to maintain this feature?
21378 cat >>$CONFIG_STATUS <<_ACEOF
21382 cat >>$CONFIG_STATUS <<\_ACEOF
21384 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21385 s
&@configure_input@
&$configure_input&;t t
21386 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21387 s
&@srcdir@
&$ac_srcdir&;t t
21388 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21389 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21390 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21391 s
&@builddir@
&$ac_builddir&;t t
21392 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21393 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21394 s
&@INSTALL@
&$ac_INSTALL&;t t
21395 $ac_datarootdir_hack
21396 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
21398 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21399 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21400 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21401 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21402 which seems to be undefined. Please make sure it is defined." >&5
21403 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21404 which seems to be undefined. Please make sure it is defined." >&2;}
21408 -) cat "$tmp/out"; rm -f "$tmp/out";;
21409 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21418 # Transform confdefs.h into a sed script `conftest.defines', that
21419 # substitutes the proper values into config.h.in to produce config.h.
21420 rm -f conftest.defines conftest.
tail
21421 # First, append a space to every undef/define line, to ease matching.
21422 echo 's/$/ /' >conftest.defines
21423 # Then, protect against being on the right side of a sed subst, or in
21424 # an unquoted here document, in config.status. If some macros were
21425 # called several times there might be several #defines for the same
21426 # symbol, which is useless. But do not sort them, since the last
21427 # AC_DEFINE must be honored.
21428 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
21429 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21430 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21431 # PARAMS is the parameter list in the macro definition--in most cases, it's
21432 # just an empty string.
21433 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21434 ac_dB
='\\)[ (].*,\\1define\\2'
21442 s/^[ ]*#[ ]*define[ ][ ]*//
21447 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21448 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21449 ' >>conftest.defines
21451 # Remove the space that was appended to ease matching.
21452 # Then replace #undef with comments. This is necessary, for
21453 # example, in the case of _POSIX_SOURCE, which is predefined and required
21454 # on some systems where configure will not decide to define it.
21455 # (The regexp can be short, since the line contains either #define or #undef.)
21457 s,^[ #]*u.*,/* & */,' >>conftest.defines
21459 # Break up conftest.defines:
21460 ac_max_sed_lines
=50
21462 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21463 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21464 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21466 ac_in
='$ac_file_inputs'
21467 ac_out
='"$tmp/out1"'
21468 ac_nxt
='"$tmp/out2"'
21472 # Write a here document:
21473 cat >>$CONFIG_STATUS <<_ACEOF
21474 # First, check the format of the line:
21475 cat >"\$tmp/defines.sed" <<\\CEOF
21476 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21477 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21481 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
21483 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21484 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
21485 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
21486 grep . conftest.
tail >/dev
/null ||
break
21487 rm -f conftest.defines
21488 mv conftest.
tail conftest.defines
21490 rm -f conftest.defines conftest.
tail
21492 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21493 cat >>$CONFIG_STATUS <<\_ACEOF
21494 if test x
"$ac_file" != x-
; then
21495 echo "/* $configure_input */" >"$tmp/config.h"
21496 cat "$ac_result" >>"$tmp/config.h"
21497 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
21498 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21499 echo "$as_me: $ac_file is unchanged" >&6;}
21502 mv "$tmp/config.h" $ac_file
21505 echo "/* $configure_input */"
21511 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21512 echo "$as_me: executing $ac_file commands" >&6;}
21517 case $ac_file$ac_mode in
21518 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
21519 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile
;;
21520 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
21521 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common
;;
21522 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
21523 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
21524 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
21525 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
21526 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
21527 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
21528 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
21529 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile test
/Makefile
;;
21530 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
21531 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
21532 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
21533 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
21534 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
21535 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
21536 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
21537 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
21538 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
21539 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
21540 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
21541 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
21542 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
21543 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
21549 { (exit 0); exit 0; }
21551 chmod +x
$CONFIG_STATUS
21552 ac_clean_files
=$ac_clean_files_save
21555 # configure is writing to config.log, and then calls config.status.
21556 # config.status does its own redirection, appending to config.log.
21557 # Unfortunately, on DOS this fails, as config.log is still kept open
21558 # by configure, so config.status won't be able to write to it; its
21559 # output is simply discarded. So we exec the FD to /dev/null,
21560 # effectively closing config.log, so it can be properly (re)opened and
21561 # appended to by config.status. When coming back to configure, we
21562 # need to make the FD available again.
21563 if test "$no_create" != yes; then
21565 ac_config_status_args
=
21566 test "$silent" = yes &&
21567 ac_config_status_args
="$ac_config_status_args --quiet"
21569 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21571 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21572 # would make configure fail if this is the last instruction.
21573 $ac_cs_success ||
{ (exit 1); exit 1; }
21577 # CONFIG_SUBDIRS section.
21579 if test "$no_recursion" != yes; then
21581 # Remove --cache-file and --srcdir arguments so they do not pile up.
21582 ac_sub_configure_args
=
21584 eval "set x $ac_configure_args"
21588 if test -n "$ac_prev"; then
21593 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
21594 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
21595 ac_prev
=cache_file
;;
21596 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
21597 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
21600 --config-cache |
-C)
21602 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
21604 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
21606 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
21608 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
21612 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21614 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
21618 # Always prepend --prefix to ensure using the same prefix
21619 # in subdir configurations.
21620 ac_arg
="--prefix=$prefix"
21622 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21624 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
21627 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
21629 # Do not complain, so a configure script can configure whichever
21630 # parts of a large source tree are present.
21631 test -d "$srcdir/$ac_dir" ||
continue
21633 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21634 echo "$as_me:$LINENO: $ac_msg" >&5
21638 -*) as_dir
=.
/$as_dir;;
21640 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21644 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21645 *) as_qdir
=$as_dir;;
21647 as_dirs
="'$as_qdir' $as_dirs"
21648 as_dir
=`$as_dirname -- "$as_dir" ||
21649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21650 X"$as_dir" : 'X\(//\)[^/]' \| \
21651 X"$as_dir" : 'X\(//\)$' \| \
21652 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21658 /^X\(\/\/\)[^/].*/{
21671 test -d "$as_dir" && break
21673 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21674 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21675 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21676 { (exit 1); exit 1; }; }; }
21680 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21682 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21683 # A ".." for each directory in $ac_dir_suffix.
21684 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21685 case $ac_top_builddir_sub in
21686 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21687 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21690 ac_abs_top_builddir
=$ac_pwd
21691 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21692 # for backward compatibility:
21693 ac_top_builddir
=$ac_top_build_prefix
21696 .
) # We are building in place.
21698 ac_top_srcdir
=$ac_top_builddir_sub
21699 ac_abs_top_srcdir
=$ac_pwd ;;
21700 [\\/]* | ?
:[\\/]* ) # Absolute name.
21701 ac_srcdir
=$srcdir$ac_dir_suffix;
21702 ac_top_srcdir
=$srcdir
21703 ac_abs_top_srcdir
=$srcdir ;;
21704 *) # Relative name.
21705 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21706 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21707 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21709 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21714 # Check for guested configure; otherwise get Cygnus style configure.
21715 if test -f "$ac_srcdir/configure.gnu"; then
21716 ac_sub_configure
=$ac_srcdir/configure.gnu
21717 elif test -f "$ac_srcdir/configure"; then
21718 ac_sub_configure
=$ac_srcdir/configure
21719 elif test -f "$ac_srcdir/configure.in"; then
21720 # This should be Cygnus configure.
21721 ac_sub_configure
=$ac_aux_dir/configure
21723 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21724 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21728 # The recursion is here.
21729 if test -n "$ac_sub_configure"; then
21730 # Make the cache file name correct relative to the subdirectory.
21731 case $cache_file in
21732 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
21733 *) # Relative name.
21734 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
21737 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21738 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21739 # The eval makes quoting arguments work.
21740 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21741 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21742 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21743 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21744 { (exit 1); exit 1; }; }