2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
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-2011 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
='3.0svn'
565 PACKAGE_STRING
='llvm 3.0svn'
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
685 ENABLE_EXPENSIVE_CHECKS
701 LLVM_ENUM_ASM_PRINTERS
702 LLVM_ENUM_ASM_PARSERS
703 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
772 NO_MISSING_FIELD_INITIALIZERS
784 LLVMCC_DISABLEOPT_FLAGS
800 ENABLE_VISIBILITY_INLINES_HIDDEN
806 ac_precious_vars
='build_alias
817 ac_subdirs_all
='projects/llvm-gcc
821 projects/llvm-poolalloc
824 projects/llvm-stacker
832 # Initialize some variables set by options.
834 ac_init_version
=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
844 program_transform_name
=s
,x
,x
,
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir
='${exec_prefix}/bin'
859 sbindir
='${exec_prefix}/sbin'
860 libexecdir
='${exec_prefix}/libexec'
861 datarootdir
='${prefix}/share'
862 datadir
='${datarootdir}'
863 sysconfdir
='${prefix}/etc'
864 sharedstatedir
='${prefix}/com'
865 localstatedir
='${prefix}/var'
866 includedir
='${prefix}/include'
867 oldincludedir
='/usr/include'
868 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir
='${datarootdir}/info'
874 libdir
='${exec_prefix}/lib'
875 localedir
='${datarootdir}/locale'
876 mandir
='${datarootdir}/man'
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\
$ac_option
890 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
900 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
902 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
905 -build |
--build |
--buil |
--bui |
--bu)
906 ac_prev
=build_alias
;;
907 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
908 build_alias
=$ac_optarg ;;
910 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
911 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
912 ac_prev
=cache_file
;;
913 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
914 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
915 cache_file
=$ac_optarg ;;
918 cache_file
=config.cache
;;
920 -datadir |
--datadir |
--datadi |
--datad)
922 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
923 datadir
=$ac_optarg ;;
925 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
926 |
--dataroo |
--dataro |
--datar)
927 ac_prev
=datarootdir
;;
928 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
929 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
930 datarootdir
=$ac_optarg ;;
932 -disable-* |
--disable-*)
933 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_
$ac_feature=no
;;
941 -docdir |
--docdir |
--docdi |
--doc |
--do)
943 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
946 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
948 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
951 -enable-* |
--enable-*)
952 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_
$ac_feature=\
$ac_optarg ;;
960 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
961 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
962 |
--exec |
--exe |
--ex)
963 ac_prev
=exec_prefix
;;
964 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
965 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
966 |
--exec=* |
--exe=* |
--ex=*)
967 exec_prefix
=$ac_optarg ;;
969 -gas |
--gas |
--ga |
--g)
970 # Obsolete; use --with-gas.
973 -help |
--help |
--hel |
--he |
-h)
975 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
976 ac_init_help
=recursive
;;
977 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
978 ac_init_help
=short
;;
980 -host |
--host |
--hos |
--ho)
981 ac_prev
=host_alias
;;
982 -host=* |
--host=* |
--hos=* |
--ho=*)
983 host_alias
=$ac_optarg ;;
985 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
987 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
989 htmldir
=$ac_optarg ;;
991 -includedir |
--includedir |
--includedi |
--included |
--include \
992 |
--includ |
--inclu |
--incl |
--inc)
993 ac_prev
=includedir
;;
994 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
995 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
996 includedir
=$ac_optarg ;;
998 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1000 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1001 infodir
=$ac_optarg ;;
1003 -libdir |
--libdir |
--libdi |
--libd)
1005 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1006 libdir
=$ac_optarg ;;
1008 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1009 |
--libexe |
--libex |
--libe)
1010 ac_prev
=libexecdir
;;
1011 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1012 |
--libexe=* |
--libex=* |
--libe=*)
1013 libexecdir
=$ac_optarg ;;
1015 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1016 ac_prev
=localedir
;;
1017 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1018 localedir
=$ac_optarg ;;
1020 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1021 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1022 ac_prev
=localstatedir
;;
1023 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1024 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1025 localstatedir
=$ac_optarg ;;
1027 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1029 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1030 mandir
=$ac_optarg ;;
1032 -nfp |
--nfp |
--nf)
1033 # Obsolete; use --without-fp.
1036 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1037 |
--no-cr |
--no-c |
-n)
1040 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1041 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1044 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1045 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1046 |
--oldin |
--oldi |
--old |
--ol |
--o)
1047 ac_prev
=oldincludedir
;;
1048 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1049 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1050 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1051 oldincludedir
=$ac_optarg ;;
1053 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1055 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1056 prefix
=$ac_optarg ;;
1058 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1059 |
--program-pre |
--program-pr |
--program-p)
1060 ac_prev
=program_prefix
;;
1061 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1062 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1063 program_prefix
=$ac_optarg ;;
1065 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1066 |
--program-suf |
--program-su |
--program-s)
1067 ac_prev
=program_suffix
;;
1068 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1069 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1070 program_suffix
=$ac_optarg ;;
1072 -program-transform-name |
--program-transform-name \
1073 |
--program-transform-nam |
--program-transform-na \
1074 |
--program-transform-n |
--program-transform- \
1075 |
--program-transform |
--program-transfor \
1076 |
--program-transfo |
--program-transf \
1077 |
--program-trans |
--program-tran \
1078 |
--progr-tra |
--program-tr |
--program-t)
1079 ac_prev
=program_transform_name
;;
1080 -program-transform-name=* |
--program-transform-name=* \
1081 |
--program-transform-nam=* |
--program-transform-na=* \
1082 |
--program-transform-n=* |
--program-transform-=* \
1083 |
--program-transform=* |
--program-transfor=* \
1084 |
--program-transfo=* |
--program-transf=* \
1085 |
--program-trans=* |
--program-tran=* \
1086 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1087 program_transform_name
=$ac_optarg ;;
1089 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1091 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1092 pdfdir
=$ac_optarg ;;
1094 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1096 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1099 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1100 |
-silent |
--silent |
--silen |
--sile |
--sil)
1103 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1105 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1107 sbindir
=$ac_optarg ;;
1109 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1110 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1111 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1113 ac_prev
=sharedstatedir
;;
1114 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1115 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1116 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1118 sharedstatedir
=$ac_optarg ;;
1120 -site |
--site |
--sit)
1122 -site=* |
--site=* |
--sit=*)
1125 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1127 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1128 srcdir
=$ac_optarg ;;
1130 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1131 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1132 ac_prev
=sysconfdir
;;
1133 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1134 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1135 sysconfdir
=$ac_optarg ;;
1137 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1138 ac_prev
=target_alias
;;
1139 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1140 target_alias
=$ac_optarg ;;
1142 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1145 -version |
--version |
--versio |
--versi |
--vers |
-V)
1146 ac_init_version
=: ;;
1149 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_
$ac_package=\
$ac_optarg ;;
1157 -without-* |
--without-*)
1158 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_
$ac_package=no
;;
1167 # Obsolete; use --with-x.
1170 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1171 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1172 ac_prev
=x_includes
;;
1173 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1174 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1175 x_includes
=$ac_optarg ;;
1177 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1178 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1179 ac_prev
=x_libraries
;;
1180 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1181 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1182 x_libraries
=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1190 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\
$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1209 if test -n "$ac_prev"; then
1210 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val
=\$
$ac_var
1223 [\\/$
]* | ?
:[\\/]* ) continue;;
1224 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target
=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x
; then
1239 if test "x$build_alias" = x
; then
1240 cross_compiling
=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1251 test "$silent" = yes && exec 6>/dev
/null
1254 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di
=`ls -di .` &&
1256 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted
=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir
=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted
=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var
in $ac_precious_vars; do
1319 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1321 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1390 --build=BUILD configure
for building on BUILD
[guessed
]
1391 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1392 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive
) echo "Configuration of llvm 3.0svn:";;
1403 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1404 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1405 --enable-polly Use polly
if available
(default is YES
)
1406 --enable-optimized Compile with optimizations enabled
(default is NO
)
1407 --enable-profiling Compile with profiling enabled
(default is NO
)
1408 --enable-assertions Compile with assertion checks enabled
(default is
1410 --enable-expensive-checks
1411 Compile with expensive debug checks enabled
(default
1413 --enable-debug-runtime Build runtime libs with debug symbols
(default is
1415 --enable-debug-symbols Build compiler with debug symbols
(default is NO
if
1416 optimization is on and YES
if it
's off)
1417 --enable-jit Enable Just In Time Compiling (default is YES)
1418 --enable-docs Build documents (default is YES)
1419 --enable-doxygen Build doxygen documentation (default is NO)
1420 --enable-threads Use threads if available (default is YES)
1421 --enable-pthreads Use pthreads if available (default is YES)
1422 --enable-pic Build LLVM with Position Independent Code (default
1424 --enable-shared Build a shared library and link tools against it
1426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
1428 --enable-timestamps Enable embedding timestamp information in build
1430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
1439 --enable-libffi Check for the presence of libffi (default is NO)
1440 --enable-ltdl-install install libltdl
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1447 --with-llvmgcc Specify location of llvm-gcc driver (default
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1451 --with-clang Specify location of clang compiler (default is
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1455 --with-optimize-option Select the compiler options to use for optimized
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1464 --with-c-include-dirs Colon separated list of directories clang will
1466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
1472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
1474 --with-tclinclude directory where tcl headers are
1475 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1476 clang, or none; default=check)
1477 --with-udis86=<path> Use udis86 external x86 disassembler library
1478 --with-oprofile=<prefix>
1479 Tell OProfile >= 0.9.4 how to symbolize JIT output
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
1492 Use these variables to override the choices made by `configure' or to
help
1493 it to
find libraries and programs with nonstandard names
/locations.
1495 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1503 test -d "$ac_dir" ||
continue
1507 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1509 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1514 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1517 ac_abs_top_builddir
=$ac_pwd
1518 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir
=$ac_top_build_prefix
1523 .
) # We are building in place.
1525 ac_top_srcdir
=$ac_top_builddir_sub
1526 ac_abs_top_srcdir
=$ac_pwd ;;
1527 [\\/]* | ?
:[\\/]* ) # Absolute name.
1528 ac_srcdir
=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir
=$srcdir
1530 ac_abs_top_srcdir
=$srcdir ;;
1532 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1536 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1556 llvm configure
3.0svn
1557 generated by GNU Autoconf
2.60
1559 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1561 This configure
script is free software
; the Free Software Foundation
1562 gives unlimited permission to copy
, distribute and modify it.
1564 Copyright
(c
) 2003-2011 University of Illinois
at Urbana-Champaign.
1568 cat >config.log
<<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1572 It was created by llvm $as_me 3.0svn, which was
1573 generated by GNU Autoconf 2.60. Invocation command line was
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1608 test -z "$as_dir" && as_dir
=.
1609 echo "PATH: $as_dir"
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1633 ac_must_keep_next
=false
1639 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1640 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1641 |
-silent |
--silent |
--silen |
--sile |
--sil)
1644 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1649 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1650 if test $ac_must_keep_next = true
; then
1651 ac_must_keep_next
=false
# Got value, back to normal.
1654 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1655 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1656 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1657 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 -* ) ac_must_keep_next
=true
;;
1665 ac_configure_args
="$ac_configure_args '$ac_arg'"
1670 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1671 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log. We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1689 # The following way of writing the cache mishandles newlines in values,
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700 _ | IFS | as_nl) ;; #(
1701 *) $as_unset $ac_var ;;
1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
1709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1726 for ac_var in $ac_subst_vars
1728 eval ac_val=\$$ac_var
1730 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732 echo "$ac_var='\''$ac_val'\''"
1736 if test -n "$ac_subst_files"; then
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1743 for ac_var
in $ac_subst_files
1745 eval ac_val
=\$
$ac_var
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 echo "$ac_var='\''$ac_val'\''"
1754 if test -s confdefs.h; then
1764 test "$ac_signal" != 0 &&
1765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
1768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772 for ac_signal
in 1 2 13 15; do
1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest
* confdefs.h
1780 # Predefined preprocessor variables.
1782 cat >>confdefs.h
<<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1787 cat >>confdefs.h
<<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792 cat >>confdefs.h
<<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1797 cat >>confdefs.h
<<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1802 cat >>confdefs.h
<<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810 set x
"$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE
; then
1812 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1814 set x
"$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
1820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823 sed 's/^/| /' "$ac_site_file" >&5
1828 if test -r "$cache_file"; then
1829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1835 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1836 *) .
"./$cache_file";;
1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1845 # Check that the precious variables saved in the cache have kept the same
1847 ac_cache_corrupted
=false
1848 for ac_var
in $ac_precious_vars; do
1849 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1850 eval ac_new_set
=\
$ac_env_${ac_var}_set
1851 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1852 eval ac_new_val
=\
$ac_env_${ac_var}_value
1853 case $ac_old_set,$ac_new_set in
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857 ac_cache_corrupted
=: ;;
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861 ac_cache_corrupted
=: ;;
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868 echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870 echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted
=:
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1877 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 *) ac_arg
=$ac_var=$ac_new_val ;;
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1882 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1886 if $ac_cache_corrupted; then
1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
1919 ac_cpp
='$CPP $CPPFLAGS'
1920 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1926 LLVM_COPYRIGHT
="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1935 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
1936 if test -f "$ac_dir/install-sh"; then
1938 ac_install_sh
="$ac_aux_dir/install-sh -c"
1940 elif test -f "$ac_dir/install.sh"; then
1942 ac_install_sh
="$ac_aux_dir/install.sh -c"
1944 elif test -f "$ac_dir/shtool"; then
1946 ac_install_sh
="$ac_aux_dir/shtool install -c"
1950 if test -z "$ac_aux_dir"; then
1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953 { (exit 1); exit 1; }; }
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1966 if test ${srcdir} != "." ; then
1967 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
1968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970 { (exit 1); exit 1; }; }
1976 if test -d ${srcdir}/projects
/llvm-gcc
; then
1977 subdirs
="$subdirs projects/llvm-gcc"
1981 if test -d ${srcdir}/projects
/test-suite
; then
1982 subdirs
="$subdirs projects/test-suite"
1986 if test -d ${srcdir}/projects
/llvm-test
; then
1987 subdirs
="$subdirs projects/llvm-test"
1991 if test -d ${srcdir}/projects
/poolalloc
; then
1992 subdirs
="$subdirs projects/poolalloc"
1996 if test -d ${srcdir}/projects
/llvm-poolalloc
; then
1997 subdirs
="$subdirs projects/llvm-poolalloc"
2001 for i
in `ls ${srcdir}/projects`
2003 if test -d ${srcdir}/projects
/${i} ; then
2005 sample
) subdirs
="$subdirs projects/sample"
2007 privbracket
) subdirs
="$subdirs projects/privbracket"
2009 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
2011 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
2013 llvm-java
) subdirs
="$subdirs projects/llvm-java"
2015 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
2017 safecode
) subdirs
="$subdirs projects/safecode"
2019 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2027 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2028 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2034 # Check whether --enable-polly was given.
2035 if test "${enable_polly+set}" = set; then
2036 enableval
=$enable_polly;
2041 case "$enableval" in
2046 default
) ENABLE_POLLY
=1
2048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2049 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2050 { (exit 1); exit 1; }; } ;;
2054 if (test -d ${srcdir}/tools
/polly
) && (test $ENABLE_POLLY -eq 1) ; then
2057 subdirs
="$subdirs tools/polly"
2062 # Make sure we can run config.sub.
2063 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2064 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066 { (exit 1); exit 1; }; }
2068 { echo "$as_me:$LINENO: checking build system type" >&5
2069 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2070 if test "${ac_cv_build+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 ac_build_alias
=$build_alias
2074 test "x$ac_build_alias" = x
&&
2075 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2076 test "x$ac_build_alias" = x
&&
2077 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079 { (exit 1); exit 1; }; }
2080 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
2086 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087 echo "${ECHO_T}$ac_cv_build" >&6; }
2088 case $ac_cv_build in
2090 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091 echo "$as_me: error: invalid value of canonical build" >&2;}
2092 { (exit 1); exit 1; }; };;
2095 ac_save_IFS
=$IFS; IFS
='-'
2101 # Remember, the first character of IFS is used to create $*,
2102 # except with old shells:
2105 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2108 { echo "$as_me:$LINENO: checking host system type" >&5
2109 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2110 if test "${ac_cv_host+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 if test "x$host_alias" = x
; then
2114 ac_cv_host
=$ac_cv_build
2116 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2117 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119 { (exit 1); exit 1; }; }
2123 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124 echo "${ECHO_T}$ac_cv_host" >&6; }
2127 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128 echo "$as_me: error: invalid value of canonical host" >&2;}
2129 { (exit 1); exit 1; }; };;
2132 ac_save_IFS
=$IFS; IFS
='-'
2138 # Remember, the first character of IFS is used to create $*,
2139 # except with old shells:
2142 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2145 { echo "$as_me:$LINENO: checking target system type" >&5
2146 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2147 if test "${ac_cv_target+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 if test "x$target_alias" = x
; then
2151 ac_cv_target
=$ac_cv_host
2153 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2155 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2156 { (exit 1); exit 1; }; }
2160 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2161 echo "${ECHO_T}$ac_cv_target" >&6; }
2162 case $ac_cv_target in
2164 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2165 echo "$as_me: error: invalid value of canonical target" >&2;}
2166 { (exit 1); exit 1; }; };;
2168 target
=$ac_cv_target
2169 ac_save_IFS
=$IFS; IFS
='-'
2175 # Remember, the first character of IFS is used to create $*,
2176 # except with old shells:
2179 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2182 # The aliases save the names the user supplied, while $host etc.
2183 # will get canonicalized.
2184 test -n "$target_alias" &&
2185 test "$program_prefix$program_suffix$program_transform_name" = \
2187 program_prefix
=${target_alias}-
2189 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2190 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2191 if test "${llvm_cv_os_type+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 llvm_cv_link_all_option
="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2198 llvm_cv_os_type
="AIX"
2199 llvm_cv_platform_type
="Unix" ;;
2201 llvm_cv_link_all_option
="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2203 llvm_cv_os_type
="IRIX"
2204 llvm_cv_platform_type
="Unix" ;;
2206 llvm_cv_link_all_option
="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2208 llvm_cv_os_type
="Cygwin"
2209 llvm_cv_platform_type
="Unix" ;;
2211 llvm_cv_link_all_option
="-Wl,-all_load"
2212 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2213 llvm_cv_os_type
="Darwin"
2214 llvm_cv_platform_type
="Unix" ;;
2216 llvm_cv_link_all_option
="-Wl,-all_load"
2217 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2218 llvm_cv_os_type
="Minix"
2219 llvm_cv_platform_type
="Unix" ;;
2221 llvm_cv_link_all_option
="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2223 llvm_cv_os_type
="FreeBSD"
2224 llvm_cv_platform_type
="Unix" ;;
2226 llvm_cv_link_all_option
="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2228 llvm_cv_os_type
="OpenBSD"
2229 llvm_cv_platform_type
="Unix" ;;
2231 llvm_cv_link_all_option
="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2233 llvm_cv_os_type
="NetBSD"
2234 llvm_cv_platform_type
="Unix" ;;
2236 llvm_cv_link_all_option
="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2238 llvm_cv_os_type
="DragonFly"
2239 llvm_cv_platform_type
="Unix" ;;
2241 llvm_cv_link_all_option
="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2243 llvm_cv_os_type
="HP-UX"
2244 llvm_cv_platform_type
="Unix" ;;
2246 llvm_cv_link_all_option
="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2248 llvm_cv_os_type
="Interix"
2249 llvm_cv_platform_type
="Unix" ;;
2251 llvm_cv_link_all_option
="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2253 llvm_cv_os_type
="Linux"
2254 llvm_cv_platform_type
="Unix" ;;
2256 llvm_cv_link_all_option
="-Wl,-z,allextract"
2257 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2258 llvm_cv_os_type
="SunOS"
2259 llvm_cv_platform_type
="Unix" ;;
2261 llvm_cv_link_all_option
="-Wl,-z,allextract"
2262 llvm_cv_link_all_option
="-Wl,-z,defaultextract"
2263 llvm_cv_os_type
="AuroraUX"
2264 llvm_cv_platform_type
="Unix" ;;
2266 llvm_cv_link_all_option
="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2268 llvm_cv_os_type
="Win32"
2269 llvm_cv_platform_type
="Win32" ;;
2271 llvm_cv_link_all_option
="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2273 llvm_cv_os_type
="MingW"
2274 llvm_cv_platform_type
="Win32" ;;
2276 llvm_cv_link_all_option
="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2278 llvm_cv_os_type
="Haiku"
2279 llvm_cv_platform_type
="Unix" ;;
2281 llvm_cv_link_all_option
="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2283 llvm_cv_os_type
="Freestanding"
2284 llvm_cv_platform_type
="Unix" ;;
2286 llvm_cv_link_all_option
="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2288 llvm_cv_os_type
="Freestanding"
2289 llvm_cv_platform_type
="Unix" ;;
2291 llvm_cv_link_all_option
=""
2292 llvm_cv_no_link_all_option
=""
2293 llvm_cv_os_type
="Unknown"
2294 llvm_cv_platform_type
="Unknown" ;;
2297 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2298 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2300 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2301 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2302 if test "${llvm_cv_target_os_type+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 llvm_cv_target_os_type
="AIX" ;;
2309 llvm_cv_target_os_type
="IRIX" ;;
2311 llvm_cv_target_os_type
="Cygwin" ;;
2313 llvm_cv_target_os_type
="Darwin" ;;
2315 llvm_cv_target_os_type
="Minix" ;;
2317 llvm_cv_target_os_type
="FreeBSD" ;;
2319 llvm_cv_target_os_type
="OpenBSD" ;;
2321 llvm_cv_target_os_type
="NetBSD" ;;
2323 llvm_cv_target_os_type
="DragonFly" ;;
2325 llvm_cv_target_os_type
="HP-UX" ;;
2327 llvm_cv_target_os_type
="Interix" ;;
2329 llvm_cv_target_os_type
="Linux" ;;
2331 llvm_cv_target_os_type
="SunOS" ;;
2333 llvm_cv_target_os_type
="AuroraUX" ;;
2335 llvm_cv_target_os_type
="Win32" ;;
2337 llvm_cv_target_os_type
="MingW" ;;
2339 llvm_cv_target_os_type
="Haiku" ;;
2341 llvm_cv_target_os_type
="RTEMS" ;;
2343 llvm_cv_target_os_type
="Freestanding" ;;
2345 llvm_cv_target_os_type
="Unknown" ;;
2348 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2349 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2351 if test "$llvm_cv_os_type" = "Unknown" ; then
2352 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2353 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2354 { (exit 1); exit 1; }; }
2359 HOST_OS
=$llvm_cv_os_type
2361 TARGET_OS
=$llvm_cv_target_os_type
2364 LINKALL
=$llvm_cv_link_all_option
2366 NOLINKALL
=$llvm_cv_no_link_all_option
2369 case $llvm_cv_platform_type in
2372 cat >>confdefs.h
<<\_ACEOF
2373 #define LLVM_ON_UNIX 1
2383 cat >>confdefs.h
<<\_ACEOF
2384 #define LLVM_ON_WIN32 1
2394 { echo "$as_me:$LINENO: checking target architecture" >&5
2395 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2396 if test "${llvm_cv_target_arch+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 i?
86-*) llvm_cv_target_arch
="x86" ;;
2401 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2402 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2403 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2404 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2405 arm
*-*) llvm_cv_target_arch
="ARM" ;;
2406 mips-
*) llvm_cv_target_arch
="Mips" ;;
2407 xcore-
*) llvm_cv_target_arch
="XCore" ;;
2408 msp430-
*) llvm_cv_target_arch
="MSP430" ;;
2409 s390x-
*) llvm_cv_target_arch
="SystemZ" ;;
2410 bfin-
*) llvm_cv_target_arch
="Blackfin" ;;
2411 mblaze-
*) llvm_cv_target_arch
="MBlaze" ;;
2412 ptx-
*) llvm_cv_target_arch
="PTX" ;;
2413 *) llvm_cv_target_arch
="Unknown" ;;
2416 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2417 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2419 if test "$llvm_cv_target_arch" = "Unknown" ; then
2420 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2421 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2424 # Determine the LLVM native architecture for the target
2425 case "$llvm_cv_target_arch" in
2426 x86
) LLVM_NATIVE_ARCH
="X86" ;;
2427 x86_64
) LLVM_NATIVE_ARCH
="X86" ;;
2428 *) LLVM_NATIVE_ARCH
="$llvm_cv_target_arch" ;;
2431 ARCH
=$llvm_cv_target_arch
2435 ac_cpp
='$CPP $CPPFLAGS'
2436 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2441 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2444 if test "${ac_cv_prog_CC+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 if test -n "$CC"; then
2448 ac_cv_prog_CC
="$CC" # Let the user override the test.
2450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2454 test -z "$as_dir" && as_dir
=.
2455 for ac_exec_ext
in '' $ac_executable_extensions; do
2456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2457 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 if test -n "$CC"; then
2469 { echo "$as_me:$LINENO: result: $CC" >&5
2470 echo "${ECHO_T}$CC" >&6; }
2472 { echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6; }
2478 if test -z "$ac_cv_prog_CC"; then
2480 # Extract the first word of "gcc", so it can be a program name with args.
2481 set dummy gcc
; ac_word
=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir
=.
2495 for ac_exec_ext
in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_ac_ct_CC
="gcc"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2508 if test -n "$ac_ct_CC"; then
2509 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2510 echo "${ECHO_T}$ac_ct_CC" >&6; }
2512 { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2516 if test "x$ac_ct_CC" = x
; then
2519 case $cross_compiling:$ac_tool_warned in
2521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet. If you think this
2523 configuration is useful to you, please write to autoconf@gnu.org." >&5
2524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet. If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2527 ac_tool_warned
=yes ;;
2535 if test -z "$CC"; then
2536 if test -n "$ac_tool_prefix"; then
2537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2538 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541 if test "${ac_cv_prog_CC+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC
="$CC" # Let the user override the test.
2547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2551 test -z "$as_dir" && as_dir
=.
2552 for ac_exec_ext
in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 if test -n "$CC"; then
2566 { echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6; }
2569 { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2576 if test -z "$CC"; then
2577 # Extract the first word of "cc", so it can be a program name with args.
2578 set dummy cc
; ac_word
=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC
="$CC" # Let the user override the test.
2588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2592 test -z "$as_dir" && as_dir
=.
2593 for ac_exec_ext
in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2596 ac_prog_rejected
=yes
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 if test $ac_prog_rejected = yes; then
2608 # We found a bogon in the path, so make sure we never use it.
2609 set dummy
$ac_cv_prog_CC
2611 if test $# != 0; then
2612 # We chose a different compiler from the bogus one.
2613 # However, it has the same basename, so the bogon will be chosen
2614 # first if we set CC to just the basename; use the full file name.
2616 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2622 if test -n "$CC"; then
2623 { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2632 if test -z "$CC"; then
2633 if test -n "$ac_tool_prefix"; then
2634 for ac_prog
in cl.exe
2636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2637 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2640 if test "${ac_cv_prog_CC+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 if test -n "$CC"; then
2644 ac_cv_prog_CC
="$CC" # Let the user override the test.
2646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir
=.
2651 for ac_exec_ext
in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 if test -n "$CC"; then
2665 { echo "$as_me:$LINENO: result: $CC" >&5
2666 echo "${ECHO_T}$CC" >&6; }
2668 { echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6; }
2673 test -n "$CC" && break
2676 if test -z "$CC"; then
2678 for ac_prog
in cl.exe
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy
$ac_prog; ac_word
=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 if test -n "$ac_ct_CC"; then
2688 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir
=.
2695 for ac_exec_ext
in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_ac_ct_CC
="$ac_prog"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2708 if test -n "$ac_ct_CC"; then
2709 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710 echo "${ECHO_T}$ac_ct_CC" >&6; }
2712 { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2717 test -n "$ac_ct_CC" && break
2720 if test "x$ac_ct_CC" = x
; then
2723 case $cross_compiling:$ac_tool_warned in
2725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2726 whose name does not start with the host triplet. If you think this
2727 configuration is useful to you, please write to autoconf@gnu.org." >&5
2728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2729 whose name does not start with the host triplet. If you think this
2730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2731 ac_tool_warned
=yes ;;
2740 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2741 See \`config.log' for more details." >&5
2742 echo "$as_me: error: no acceptable C compiler found in \$PATH
2743 See \`config.log' for more details." >&2;}
2744 { (exit 1); exit 1; }; }
2746 # Provide some information about the compiler.
2747 echo "$as_me:$LINENO: checking for C compiler version" >&5
2748 ac_compiler
=`set X $ac_compile; echo $2`
2749 { (ac_try
="$ac_compiler --version >&5"
2751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compiler --version >&5") 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2759 { (ac_try="$ac_compiler -v >&5"
2761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2762 *) ac_try_echo
=$ac_try;;
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compiler -v >&5") 2>&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }
2769 { (ac_try
="$ac_compiler -V >&5"
2771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compiler -V >&5") 2>&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }
2780 cat >conftest.$ac_ext <<_ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h. */
2795 ac_clean_files_save=$ac_clean_files
2796 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2797 # Try to create an executable without -o first, disregard a.out.
2798 # It will help us diagnose broken compilers, and finding out an intuition
2800 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2801 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2802 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2804 # List of possible output files, starting from the most likely.
2805 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2806 # only as a last resort. b.out is created by i960 compilers.
2807 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2809 # The IRIX 6 linker writes into existing files which may not be
2810 # executable, retaining their permissions. Remove them first so a
2811 # subsequent execution test works.
2813 for ac_file in $ac_files
2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2817 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2822 if { (ac_try="$ac_link_default"
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_link_default") 2>&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; then
2832 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2833 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2834 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2835 # so that the user can short-circuit this test for compilers unknown to
2837 for ac_file
in $ac_files
2839 test -f "$ac_file" ||
continue
2841 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2844 # We found the default executable, but exeext='' is most
2848 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2850 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852 # We set ac_cv_exeext here because the later test for it is not
2853 # safe: cross compilers may not add the suffix if given an `-o'
2854 # argument, so we may need to know it at that point already.
2855 # Even if this section looks crufty: it has the advantage of
2862 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.
$ac_ext >&5
2868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2869 See \`config.log' for more details." >&5
2870 echo "$as_me: error: C compiler cannot create executables
2871 See \`config.log' for more details." >&2;}
2872 { (exit 77); exit 77; }; }
2875 ac_exeext
=$ac_cv_exeext
2876 { echo "$as_me:$LINENO: result: $ac_file" >&5
2877 echo "${ECHO_T}$ac_file" >&6; }
2879 # Check that the compiler produces executables we can run. If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2884 # If not cross compiling, check that we can run a simple program.
2885 if test "$cross_compiling" != yes; then
2886 if { ac_try
='./$ac_file'
2887 { (case "(($ac_try" in
2888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_try") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2898 if test "$cross_compiling" = maybe; then
2901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2902 If you meant to cross compile, use \`--host'.
2903 See \`config.log' for more details.
" >&5
2904 echo "$as_me: error
: cannot run C compiled programs.
2905 If you meant to cross compile
, use \
`--host'.
2906 See \`config.log
' for more details." >&2;}
2907 { (exit 1); exit 1; }; }
2911 { echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6; }
2914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2915 ac_clean_files=$ac_clean_files_save
2916 # Check that the compiler produces executables we can run. If not, either
2917 # the compiler is broken, or we cross compile.
2918 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2920 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2921 echo "${ECHO_T}$cross_compiling" >&6; }
2923 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2925 if { (ac_try="$ac_link"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_link") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; then
2935 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2936 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2937 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2939 for ac_file
in conftest.exe conftest conftest.
*; do
2940 test -f "$ac_file" ||
continue
2942 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2943 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2949 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
2956 rm -f conftest
$ac_cv_exeext
2957 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2958 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2960 rm -f conftest.
$ac_ext
2961 EXEEXT
=$ac_cv_exeext
2963 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2964 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2965 if test "${ac_cv_objext+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 cat >conftest.
$ac_ext <<_ACEOF
2971 cat confdefs.h
>>conftest.
$ac_ext
2972 cat >>conftest.
$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2983 rm -f conftest.o conftest.obj
2984 if { (ac_try
="$ac_compile"
2986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_compile") 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; then
2994 for ac_file in conftest.o conftest.obj conftest.*; do
2995 test -f "$ac_file" || continue;
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3007 See \`config.log
' for more details." >&5
3008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details.
" >&2;}
3010 { (exit 1); exit 1; }; }
3013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3015 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3016 echo "${ECHO_T}$ac_cv_objext" >&6; }
3017 OBJEXT=$ac_cv_objext
3019 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3020 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3022 echo $ECHO_N "(cached
) $ECHO_C" >&6
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3051 grep -v '^ *+' conftest.er1 >conftest.err
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3057 { (case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_try") 2>&5
3064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_try") 2>&5
3074 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3075 (exit $ac_status); }; }; then
3078 echo "$as_me: failed program was
:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3088 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3089 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3090 GCC=`test $ac_compiler_gnu = yes && echo yes`
3091 ac_test_CFLAGS=${CFLAGS+set}
3092 ac_save_CFLAGS=$CFLAGS
3093 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3094 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3095 if test "${ac_cv_prog_cc_g+set}" = set; then
3096 echo $ECHO_N "(cached
) $ECHO_C" >&6
3098 ac_save_c_werror_flag=$ac_c_werror_flag
3099 ac_c_werror_flag=yes
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
3157 cat >conftest.$ac_ext <<_ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3181 grep -v '^ *+' conftest.er1 >conftest.err
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_try") 2>&5
3204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3205 (exit $ac_status); }; }; then
3208 echo "$as_me: failed program was
:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 ac_c_werror_flag=$ac_save_c_werror_flag
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3237 grep -v '^ *+' conftest.er1 >conftest.err
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243 { (case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_try") 2>&5
3250 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3251 (exit $ac_status); }; } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_try") 2>&5
3260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3261 (exit $ac_status); }; }; then
3264 echo "$as_me: failed program was
:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277 ac_c_werror_flag=$ac_save_c_werror_flag
3279 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3280 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3281 if test "$ac_test_CFLAGS" = set; then
3282 CFLAGS=$ac_save_CFLAGS
3283 elif test $ac_cv_prog_cc_g = yes; then
3284 if test "$GCC" = yes; then
3290 if test "$GCC" = yes; then
3296 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3297 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3298 if test "${ac_cv_prog_cc_c89+set}" = set; then
3299 echo $ECHO_N "(cached
) $ECHO_C" >&6
3301 ac_cv_prog_cc_c89=no
3303 cat >conftest.$ac_ext <<_ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3311 #include <sys/types.h>
3312 #include <sys/stat.h>
3313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3314 struct buf { int x; };
3315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316 static char *e (p, i)
3322 static char *f (char * (*g) (char **, int), char **p, ...)
3327 s = g (p, va_arg (v,int));
3332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3333 function prototypes and stuff, but not '\xHH' hex character constants.
3334 These don't provoke an error unfortunately, instead are silently treated
3335 as 'x'. The following induces an error, until -std is added to get
3336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3337 array size at least. It's necessary to write '\x00'==0 to get something
3338 that's true only with -std. */
3339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342 inside strings and character constants. */
3344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3363 CC="$ac_save_CC $ac_arg"
3364 rm -f conftest.$ac_objext
3365 if { (ac_try="$ac_compile"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_compile") 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3379 { (case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_try") 2>&5
3386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3387 (exit $ac_status); }; } &&
3388 { ac_try='test -s conftest.$ac_objext'
3389 { (case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_try") 2>&5
3396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 ac_cv_prog_cc_c89=$ac_arg
3400 echo "$as_me: failed program was
:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3406 rm -f core conftest.err conftest.$ac_objext
3407 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3409 rm -f conftest.$ac_ext
3414 case "x
$ac_cv_prog_cc_c89" in
3416 { echo "$as_me:$LINENO: result
: none needed
" >&5
3417 echo "${ECHO_T}none needed
" >&6; } ;;
3419 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3420 echo "${ECHO_T}unsupported
" >&6; } ;;
3422 CC="$CC $ac_cv_prog_cc_c89"
3423 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3424 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3441 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3442 # On Suns, sometimes $CPP names a directory.
3443 if test -n "$CPP" && test -d "$CPP"; then
3446 if test -z "$CPP"; then
3447 if test "${ac_cv_prog_CPP+set}" = set; then
3448 echo $ECHO_N "(cached
) $ECHO_C" >&6
3450 # Double quotes because CPP needs to be expanded
3451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3454 for ac_c_preproc_warn_flag in '' yes
3456 # Use a header file that comes with gcc, so configuring glibc
3457 # with a fresh cross-compiler works.
3458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3459 # <limits.h> exists even on freestanding compilers.
3460 # On the NeXT, cc -E runs the code through the compiler's parser,
3461 # not just through cpp. "Syntax error
" is here to catch this case.
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3469 # include <limits.h>
3471 # include <assert.h>
3475 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3483 grep -v '^ *+' conftest.er1 >conftest.err
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3487 (exit $ac_status); } >/dev/null; then
3488 if test -s conftest.err; then
3489 ac_cpp_err=$ac_c_preproc_warn_flag
3490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3497 if test -z "$ac_cpp_err"; then
3500 echo "$as_me: failed program was
:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 # Broken: fails on valid input.
3507 rm -f conftest.err conftest.$ac_ext
3509 # OK, works on sane cases. Now check whether nonexistent headers
3510 # can be detected and how.
3511 cat >conftest.$ac_ext <<_ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3517 #include <ac_nonexistent.h>
3519 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3531 (exit $ac_status); } >/dev/null; then
3532 if test -s conftest.err; then
3533 ac_cpp_err=$ac_c_preproc_warn_flag
3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3541 if test -z "$ac_cpp_err"; then
3542 # Broken: success on invalid input.
3545 echo "$as_me: failed program was
:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 # Passes both tests.
3553 rm -f conftest.err conftest.$ac_ext
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3570 { echo "$as_me:$LINENO: result
: $CPP" >&5
3571 echo "${ECHO_T}$CPP" >&6; }
3573 for ac_c_preproc_warn_flag in '' yes
3575 # Use a header file that comes with gcc, so configuring glibc
3576 # with a fresh cross-compiler works.
3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578 # <limits.h> exists even on freestanding compilers.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error
" is here to catch this case.
3581 cat >conftest.$ac_ext <<_ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3588 # include <limits.h>
3590 # include <assert.h>
3594 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3602 grep -v '^ *+' conftest.er1 >conftest.err
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3606 (exit $ac_status); } >/dev/null; then
3607 if test -s conftest.err; then
3608 ac_cpp_err=$ac_c_preproc_warn_flag
3609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3616 if test -z "$ac_cpp_err"; then
3619 echo "$as_me: failed program was
:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3622 # Broken: fails on valid input.
3626 rm -f conftest.err conftest.$ac_ext
3628 # OK, works on sane cases. Now check whether nonexistent headers
3629 # can be detected and how.
3630 cat >conftest.$ac_ext <<_ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3636 #include <ac_nonexistent.h>
3638 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3646 grep -v '^ *+' conftest.er1 >conftest.err
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3650 (exit $ac_status); } >/dev/null; then
3651 if test -s conftest.err; then
3652 ac_cpp_err=$ac_c_preproc_warn_flag
3653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3660 if test -z "$ac_cpp_err"; then
3661 # Broken: success on invalid input.
3664 echo "$as_me: failed program was
:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3667 # Passes both tests.
3672 rm -f conftest.err conftest.$ac_ext
3675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3676 rm -f conftest.err conftest.$ac_ext
3677 if $ac_preproc_ok; then
3680 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3681 See \
`config.log' for more details." >&5
3682 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3683 See \`config.log
' for more details." >&2;}
3684 { (exit 1); exit 1; }; }
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3690 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3695 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3696 if test "${ac_cv_path_GREP+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 # Extract the first word of "grep ggrep" to use in msg output
3700 if test -z "$GREP"; then
3701 set dummy grep ggrep; ac_prog_name=$2
3702 if test "${ac_cv_path_GREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 ac_path_GREP_found=false
3706 # Loop through the user's path and
test for each of PROGNAME-LIST
3707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3708 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3711 test -z "$as_dir" && as_dir
=.
3712 for ac_prog
in grep ggrep
; do
3713 for ac_exec_ext
in '' $ac_executable_extensions; do
3714 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3715 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3716 # Check for GNU ac_path_GREP and select it if it is found.
3717 # Check for GNU $ac_path_GREP
3718 case `"$ac_path_GREP" --version 2>&1` in
3720 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
3729 echo 'GREP' >> "conftest.nl"
3730 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3731 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3732 ac_count
=`expr $ac_count + 1`
3733 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_GREP
="$ac_path_GREP"
3736 ac_path_GREP_max
=$ac_count
3738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3741 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3745 $ac_path_GREP_found && break 3
3755 GREP
="$ac_cv_path_GREP"
3756 if test -z "$GREP"; then
3757 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3758 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3759 { (exit 1); exit 1; }; }
3763 ac_cv_path_GREP
=$GREP
3768 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3769 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3770 GREP
="$ac_cv_path_GREP"
3773 { echo "$as_me:$LINENO: checking for egrep" >&5
3774 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3775 if test "${ac_cv_path_EGREP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3779 then ac_cv_path_EGREP
="$GREP -E"
3781 # Extract the first word of "egrep" to use in msg output
3782 if test -z "$EGREP"; then
3783 set dummy
egrep; ac_prog_name
=$2
3784 if test "${ac_cv_path_EGREP+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 ac_path_EGREP_found
=false
3788 # Loop through the user's path and test for each of PROGNAME-LIST
3789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3790 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3793 test -z "$as_dir" && as_dir
=.
3794 for ac_prog
in egrep; do
3795 for ac_exec_ext
in '' $ac_executable_extensions; do
3796 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3797 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3798 # Check for GNU ac_path_EGREP and select it if it is found.
3799 # Check for GNU $ac_path_EGREP
3800 case `"$ac_path_EGREP" --version 2>&1` in
3802 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3805 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3808 cat "conftest.in" "conftest.in" >"conftest.tmp"
3809 mv "conftest.tmp" "conftest.in"
3810 cp "conftest.in" "conftest.nl"
3811 echo 'EGREP' >> "conftest.nl"
3812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3813 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3814 ac_count
=`expr $ac_count + 1`
3815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3816 # Best one so far, save it but keep looking for a better one
3817 ac_cv_path_EGREP
="$ac_path_EGREP"
3818 ac_path_EGREP_max
=$ac_count
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3823 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3827 $ac_path_EGREP_found && break 3
3837 EGREP
="$ac_cv_path_EGREP"
3838 if test -z "$EGREP"; then
3839 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3840 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3841 { (exit 1); exit 1; }; }
3845 ac_cv_path_EGREP
=$EGREP
3851 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3852 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3853 EGREP
="$ac_cv_path_EGREP"
3856 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3857 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3858 if test "${ac_cv_header_stdc+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 cat >conftest.
$ac_ext <<_ACEOF
3864 cat confdefs.h
>>conftest.
$ac_ext
3865 cat >>conftest.
$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3880 rm -f conftest.
$ac_objext
3881 if { (ac_try
="$ac_compile"
3883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3889 grep -v '^ *+' conftest.er1 >conftest.err
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3895 { (case "(($ac_try" in
3896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3897 *) ac_try_echo
=$ac_try;;
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_try") 2>&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; } &&
3904 { ac_try
='test -s conftest.$ac_objext'
3905 { (case "(($ac_try" in
3906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_try") 2>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 ac_cv_header_stdc=yes
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 ac_cv_header_stdc=no
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 if test $ac_cv_header_stdc = yes; then
3925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3926 cat >conftest.$ac_ext <<_ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3936 $EGREP "memchr" >/dev/null 2>&1; then
3939 ac_cv_header_stdc=no
3945 if test $ac_cv_header_stdc = yes; then
3946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3947 cat >conftest.$ac_ext <<_ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 $EGREP "free" >/dev/null 2>&1; then
3960 ac_cv_header_stdc=no
3966 if test $ac_cv_header_stdc = yes; then
3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3968 if test "$cross_compiling" = yes; then
3971 cat >conftest.$ac_ext <<_ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3979 #if ((' ' & 0x0FF) == 0x020)
3980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3983 # define ISLOWER(c) \
3984 (('a' <= (c) && (c) <= 'i') \
3985 || ('j' <= (c) && (c) <= 'r') \
3986 || ('s' <= (c) && (c) <= 'z'))
3987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3995 for (i = 0; i < 256; i++)
3996 if (XOR (islower (i), ISLOWER (i))
3997 || toupper (i) != TOUPPER (i))
4002 rm -f conftest$ac_exeext
4003 if { (ac_try="$ac_link"
4005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4006 *) ac_try_echo
=$ac_try;;
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_link") 2>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4013 { (case "(($ac_try" in
4014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_try") 2>&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4024 echo "$as_me: program exited with status $ac_status" >&5
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4029 ac_cv_header_stdc=no
4031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4039 if test $ac_cv_header_stdc = yes; then
4041 cat >>confdefs.h <<\_ACEOF
4042 #define STDC_HEADERS 1
4047 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4058 inttypes.h stdint.h unistd.h
4060 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 cat >conftest.$ac_ext <<_ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 $ac_includes_default
4074 #include <$ac_header>
4076 rm -f conftest.$ac_objext
4077 if { (ac_try="$ac_compile"
4079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4080 *) ac_try_echo
=$ac_try;;
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_compile") 2>conftest.er1
4085 grep -v '^ *+' conftest.er1
>conftest.err
4087 cat conftest.err
>&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091 { (case "(($ac_try" in
4092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_try") 2>&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (case "(($ac_try" in
4102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4103 *) ac_try_echo
=$ac_try;;
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_try") 2>&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 eval "$as_ac_Header=yes"
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.
$ac_ext >&5
4115 eval "$as_ac_Header=no"
4118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4120 ac_res
=`eval echo '${'$as_ac_Header'}'`
4121 { echo "$as_me:$LINENO: result: $ac_res" >&5
4122 echo "${ECHO_T}$ac_res" >&6; }
4123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4124 cat >>confdefs.h
<<_ACEOF
4125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4133 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4134 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4135 if test "${ac_cv_c_bigendian+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 # See if sys/param.h defines the BYTE_ORDER macro.
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 || !LITTLE_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 # It does; now see whether it defined to BIG_ENDIAN or not.
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 #include <sys/types.h>
4201 #include <sys/param.h>
4206 #if BYTE_ORDER != BIG_ENDIAN
4214 rm -f conftest.$ac_objext
4215 if { (ac_try="$ac_compile"
4217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4218 *) ac_try_echo
=$ac_try;;
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4223 grep -v '^ *+' conftest.er1
>conftest.err
4225 cat conftest.err
>&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4229 { (case "(($ac_try" in
4230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (case "(($ac_try" in
4240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4241 *) ac_try_echo
=$ac_try;;
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_try") 2>&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_cv_c_bigendian
=yes
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.
$ac_ext >&5
4253 ac_cv_c_bigendian
=no
4256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.
$ac_ext >&5
4261 # It does not; compile a test program.
4262 if test "$cross_compiling" = yes; then
4263 # try to guess the endianness by grepping values into an object file
4264 ac_cv_c_bigendian
=unknown
4265 cat >conftest.
$ac_ext <<_ACEOF
4268 cat confdefs.h
>>conftest.
$ac_ext
4269 cat >>conftest.
$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4272 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4273 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4274 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4275 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4276 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4280 _ascii (); _ebcdic ();
4285 rm -f conftest.
$ac_objext
4286 if { (ac_try
="$ac_compile"
4288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_compile") 2>conftest.er1
4294 grep -v '^ *+' conftest.er1 >conftest.err
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4300 { (case "(($ac_try" in
4301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4302 *) ac_try_echo
=$ac_try;;
4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_try") 2>&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; } &&
4309 { ac_try
='test -s conftest.$ac_objext'
4310 { (case "(($ac_try" in
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_try") 2>&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4320 ac_cv_c_bigendian=yes
4322 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4323 if test "$ac_cv_c_bigendian" = unknown; then
4324 ac_cv_c_bigendian=no
4326 # finding both strings is unlikely to happen, but who knows?
4327 ac_cv_c_bigendian=unknown
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 $ac_includes_default
4350 /* Are we little or big endian? From Harbison&Steele. */
4354 char c[sizeof (long int)];
4357 return u.c[sizeof (long int) - 1] == 1;
4363 rm -f conftest$ac_exeext
4364 if { (ac_try="$ac_link"
4366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4367 *) ac_try_echo
=$ac_try;;
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_link") 2>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4374 { (case "(($ac_try" in
4375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_try") 2>&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_c_bigendian=no
4385 echo "$as_me: program exited with status $ac_status" >&5
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4390 ac_cv_c_bigendian=yes
4392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4401 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4402 case $ac_cv_c_bigendian in
4410 { { echo "$as_me:$LINENO: error: unknown endianness
4411 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4412 echo "$as_me: error: unknown endianness
4413 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4414 { (exit 1); exit 1; }; } ;;
4418 if test "$cross_compiling" = yes; then
4419 LLVM_CROSS_COMPILING=1
4422 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4423 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4424 if test "${ac_cv_build_exeext+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4428 ac_cv_build_exeext=.exe
4430 ac_build_prefix=${build_alias}-
4432 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4433 set dummy ${ac_build_prefix}gcc; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 if test -n "$BUILD_CC"; then
4440 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 BUILD_CC=$ac_cv_prog_BUILD_CC
4460 if test -n "$BUILD_CC"; then
4461 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4462 echo "${ECHO_T}$BUILD_CC" >&6; }
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4469 if test -z "$BUILD_CC"; then
4470 # Extract the first word of "gcc", so it can be a program name with args.
4471 set dummy gcc; ac_word=$2
4472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 if test -n "$BUILD_CC"; then
4478 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4487 ac_cv_prog_BUILD_CC="gcc"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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; }
4507 if test -z "$BUILD_CC"; then
4508 # Extract the first word of "cc", so it can be a program name with args.
4509 set dummy cc; ac_word=$2
4510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 if test -n "$BUILD_CC"; then
4516 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4527 ac_prog_rejected=yes
4530 ac_cv_prog_BUILD_CC="cc"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 if test $ac_prog_rejected = yes; then
4539 # We found a bogon in the path, so make sure we never use it.
4540 set dummy $ac_cv_prog_BUILD_CC
4542 if test $# != 0; then
4543 # We chose a different compiler from the bogus one.
4544 # However, it has the same basename, so the bogon will be chosen
4545 # first if we set BUILD_CC to just the basename; use the full file name.
4547 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4552 BUILD_CC=$ac_cv_prog_BUILD_CC
4553 if test -n "$BUILD_CC"; then
4554 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4555 echo "${ECHO_T}$BUILD_CC" >&6; }
4557 { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4564 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4565 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4566 { (exit 1); exit 1; }; }
4567 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4569 echo 'int main () { return 0; }' > conftest.$ac_ext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4572 (eval $ac_build_link) 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; then
4576 for file in conftest.*; do
4578 *.c | *.o | *.obj | *.dSYM) ;;
4579 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4583 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4584 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4585 { (exit 1); exit 1; }; }
4588 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4593 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4594 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4595 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4596 ac_build_exeext=$BUILD_EXEEXT
4598 ac_build_prefix=${build_alias}-
4599 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4600 set dummy ${ac_build_prefix}g++; ac_word=$2
4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 if test -n "$BUILD_CXX"; then
4607 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4627 if test -n "$BUILD_CXX"; then
4628 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4629 echo "${ECHO_T}$BUILD_CXX" >&6; }
4631 { echo "$as_me:$LINENO: result: no" >&5
4632 echo "${ECHO_T}no" >&6; }
4636 if test -z "$BUILD_CXX"; then
4637 # Extract the first word of "g++", so it can be a program name with args.
4638 set dummy g++; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 if test -n "$BUILD_CXX"; then
4645 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_BUILD_CXX="g++"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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; }
4674 if test -z "$BUILD_CXX"; then
4675 # Extract the first word of "c++", so it can be a program name with args.
4676 set dummy c++; ac_word=$2
4677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4679 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 if test -n "$BUILD_CXX"; then
4683 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4694 ac_prog_rejected=yes
4697 ac_cv_prog_BUILD_CXX="c++"
4698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 if test $ac_prog_rejected = yes; then
4706 # We found a bogon in the path, so make sure we never use it.
4707 set dummy $ac_cv_prog_BUILD_CXX
4709 if test $# != 0; then
4710 # We chose a different compiler from the bogus one.
4711 # However, it has the same basename, so the bogon will be chosen
4712 # first if we set BUILD_CXX to just the basename; use the full file name.
4714 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4719 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4720 if test -n "$BUILD_CXX"; then
4721 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4722 echo "${ECHO_T}$BUILD_CXX" >&6; }
4724 { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4732 LLVM_CROSS_COMPILING=0
4736 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4747 # Check whether --enable-optimized was given.
4748 if test "${enable_optimized+set}" = set; then
4749 enableval=$enable_optimized;
4754 if test ${enableval} = "no" ; then
4758 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4762 # Check whether --enable-profiling was given.
4763 if test "${enable_profiling+set}" = set; then
4764 enableval=$enable_profiling;
4769 if test ${enableval} = "no" ; then
4773 ENABLE_PROFILING=ENABLE_PROFILING=1
4777 # Check whether --enable-assertions was given.
4778 if test "${enable_assertions+set}" = set; then
4779 enableval=$enable_assertions;
4784 if test ${enableval} = "yes" ; then
4788 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4792 # Check whether --enable-expensive-checks was given.
4793 if test "${enable_expensive_checks+set}" = set; then
4794 enableval=$enable_expensive_checks;
4799 if test ${enableval} = "yes" ; then
4800 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4802 EXPENSIVE_CHECKS=yes
4805 ENABLE_EXPENSIVE_CHECKS=
4811 # Check whether --enable-debug-runtime was given.
4812 if test "${enable_debug_runtime+set}" = set; then
4813 enableval=$enable_debug_runtime;
4818 if test ${enableval} = "no" ; then
4822 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4826 # Check whether --enable-debug-symbols was given.
4827 if test "${enable_debug_symbols+set}" = set; then
4828 enableval=$enable_debug_symbols;
4833 if test ${enableval} = "no" ; then
4837 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4841 # Check whether --enable-jit was given.
4842 if test "${enable_jit+set}" = set; then
4843 enableval=$enable_jit;
4848 if test ${enableval} = "no"
4853 case "$llvm_cv_target_arch" in
4854 x86) TARGET_HAS_JIT=1
4856 Sparc) TARGET_HAS_JIT=0
4858 PowerPC) TARGET_HAS_JIT=1
4860 x86_64) TARGET_HAS_JIT=1
4862 Alpha) TARGET_HAS_JIT=0
4864 ARM) TARGET_HAS_JIT=1
4866 Mips) TARGET_HAS_JIT=0
4868 XCore) TARGET_HAS_JIT=0
4870 MSP430) TARGET_HAS_JIT=0
4872 SystemZ) TARGET_HAS_JIT=0
4874 Blackfin) TARGET_HAS_JIT=0
4876 MBlaze) TARGET_HAS_JIT=0
4878 PTX) TARGET_HAS_JIT=0
4885 # Check whether --enable-docs was given.
4886 if test "${enable_docs+set}" = set; then
4887 enableval=$enable_docs;
4892 case "$enableval" in
4897 default) ENABLE_DOCS=1
4899 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4900 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4901 { (exit 1); exit 1; }; } ;;
4904 # Check whether --enable-doxygen was given.
4905 if test "${enable_doxygen+set}" = set; then
4906 enableval=$enable_doxygen;
4911 case "$enableval" in
4912 yes) ENABLE_DOXYGEN=1
4914 no) ENABLE_DOXYGEN=0
4916 default) ENABLE_DOXYGEN=0
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4923 # Check whether --enable-threads was given.
4924 if test "${enable_threads+set}" = set; then
4925 enableval=$enable_threads;
4930 case "$enableval" in
4931 yes) ENABLE_THREADS=1
4933 no) ENABLE_THREADS=0
4935 default) ENABLE_THREADS=1
4937 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4938 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4939 { (exit 1); exit 1; }; } ;;
4942 cat >>confdefs.h <<_ACEOF
4943 #define ENABLE_THREADS $ENABLE_THREADS
4947 # Check whether --enable-pthreads was given.
4948 if test "${enable_pthreads+set}" = set; then
4949 enableval=$enable_pthreads;
4954 case "$enableval" in
4955 yes) ENABLE_PTHREADS=1
4957 no) ENABLE_PTHREADS=0
4959 default) ENABLE_PTHREADS=1
4961 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4962 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4963 { (exit 1); exit 1; }; } ;;
4966 # Check whether --enable-pic was given.
4967 if test "${enable_pic+set}" = set; then
4968 enableval=$enable_pic;
4973 case "$enableval" in
4978 default) ENABLE_PIC=1
4980 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4981 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4982 { (exit 1); exit 1; }; } ;;
4985 cat >>confdefs.h <<_ACEOF
4986 #define ENABLE_PIC $ENABLE_PIC
4990 # Check whether --enable-shared was given.
4991 if test "${enable_shared+set}" = set; then
4992 enableval=$enable_shared;
4997 case "$enableval" in
4998 yes) ENABLE_SHARED=1
5002 default) ENABLE_SHARED=0
5004 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5005 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5006 { (exit 1); exit 1; }; } ;;
5009 # Check whether --enable-embed-stdcxx was given.
5010 if test "${enable_embed_stdcxx+set}" = set; then
5011 enableval=$enable_embed_stdcxx;
5016 case "$enableval" in
5017 yes) ENABLE_EMBED_STDCXX=1
5019 no) ENABLE_EMBED_STDCXX=0
5021 default) ENABLE_EMBED_STDCXX=1
5023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5024 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5025 { (exit 1); exit 1; }; } ;;
5028 # Check whether --enable-timestamps was given.
5029 if test "${enable_timestamps+set}" = set; then
5030 enableval=$enable_timestamps;
5035 case "$enableval" in
5036 yes) ENABLE_TIMESTAMPS=1
5038 no) ENABLE_TIMESTAMPS=0
5040 default) ENABLE_TIMESTAMPS=1
5042 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5043 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5044 { (exit 1); exit 1; }; } ;;
5047 cat >>confdefs.h <<_ACEOF
5048 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5053 # Check whether --enable-targets was given.
5054 if test "${enable_targets+set}" = set; then
5055 enableval=$enable_targets;
5060 if test "$enableval" = host-only ; then
5063 case "$enableval" in
5064 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5065 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5067 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5068 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5069 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5070 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5071 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5072 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5073 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5074 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5075 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5076 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5077 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5078 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5079 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5080 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5081 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5082 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5083 host) case "$llvm_cv_target_arch" in
5084 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5085 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5086 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5087 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5088 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5089 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5090 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5091 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5092 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5093 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5094 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5095 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5096 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5097 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5098 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5099 echo "$as_me: error: Can not set target to build" >&2;}
5100 { (exit 1); exit 1; }; } ;;
5102 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5103 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5104 { (exit 1); exit 1; }; } ;;
5109 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5112 # Determine whether we are building LLVM support for the native architecture.
5113 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5114 for a_target in $TARGETS_TO_BUILD; do
5115 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5117 cat >>confdefs.h <<_ACEOF
5118 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5121 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5122 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5123 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5124 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5125 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5128 cat >>confdefs.h <<_ACEOF
5129 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5133 cat >>confdefs.h <<_ACEOF
5134 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5138 cat >>confdefs.h <<_ACEOF
5139 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5142 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5144 cat >>confdefs.h <<_ACEOF
5145 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5152 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5153 # target feature def files.
5154 LLVM_ENUM_TARGETS=""
5155 LLVM_ENUM_ASM_PRINTERS=""
5156 LLVM_ENUM_ASM_PARSERS=""
5157 LLVM_ENUM_DISASSEMBLERS=""
5158 for target_to_build in $TARGETS_TO_BUILD; do
5159 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5160 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5161 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5163 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5164 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5166 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5167 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5175 # Check whether --enable-cbe-printf-a was given.
5176 if test "${enable_cbe_printf_a+set}" = set; then
5177 enableval=$enable_cbe_printf_a;
5182 case "$enableval" in
5183 yes) ENABLE_CBE_PRINTF_A=1
5185 no) ENABLE_CBE_PRINTF_A=0
5187 default) ENABLE_CBE_PRINTF_A=1
5189 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5191 { (exit 1); exit 1; }; } ;;
5194 cat >>confdefs.h <<_ACEOF
5195 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5200 # Check whether --with-llvmgccdir was given.
5201 if test "${with_llvmgccdir+set}" = set; then
5202 withval=$with_llvmgccdir;
5208 default) WITH_LLVMGCCDIR=default ;;
5209 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5210 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5211 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5212 { (exit 1); exit 1; }; } ;;
5216 # Check whether --with-llvmgcc was given.
5217 if test "${with_llvmgcc+set}" = set; then
5218 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5224 # Check whether --with-llvmgxx was given.
5225 if test "${with_llvmgxx+set}" = set; then
5226 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5231 if test -n "$LLVMGCC"; then
5232 LLVMGCCCOMMAND="$LLVMGCC"
5235 if test -n "$LLVMGXX"; then
5236 LLVMGXXCOMMAND="$LLVMGXX"
5239 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5240 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5241 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5242 { (exit 1); exit 1; }; };
5245 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5246 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5247 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5248 { (exit 1); exit 1; }; };
5252 # Check whether --with-clang was given.
5253 if test "${with_clang+set}" = set; then
5254 withval=$with_clang;
5261 # Check whether --with-built-clang was given.
5262 if test "${with_built_clang+set}" = set; then
5263 withval=$with_built_clang;
5265 with_built_clang=check
5269 { echo "$as_me:$LINENO: checking clang compiler" >&5
5270 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5273 if test "$with_clang" != "default"; then
5274 WITH_CLANGPATH="$with_clang"
5275 if ! test -x "$WITH_CLANGPATH"; then
5276 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5277 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5278 { (exit 1); exit 1; }; }
5280 elif test "$with_built_clang" = "yes"; then
5282 elif test "$with_built_clang" = "no"; then
5285 if test "$with_built_clang" != "check"; then
5286 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5287 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5288 { (exit 1); exit 1; }; }
5291 if test -f ${srcdir}/tools/clang/README.txt; then
5296 if ! test -z "$WITH_CLANGPATH"; then
5297 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5298 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5299 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang
++`
5300 elif test "$WITH_BUILT_CLANG" = "1"; then
5301 { echo "$as_me:$LINENO: result: built" >&5
5302 echo "${ECHO_T}built" >&6; }
5304 { echo "$as_me:$LINENO: result: none" >&5
5305 echo "${ECHO_T}none" >&6; }
5307 CLANGPATH=$WITH_CLANGPATH
5309 CLANGXXPATH=$WITH_CLANGXXPATH
5311 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5315 # Check whether --with-optimize-option was given.
5316 if test "${with_optimize_option+set}" = set; then
5317 withval=$with_optimize_option;
5322 { echo "$as_me:$LINENO: checking optimization flags" >&5
5323 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5326 case "$llvm_cv_os_type" in
5327 FreeBSD) optimize_option=-O2 ;;
5328 MingW) optimize_option=-O2 ;;
5329 *) optimize_option=-O3 ;;
5331 *) optimize_option="$withval" ;;
5333 OPTIMIZE_OPTION=$optimize_option
5335 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5336 echo "${ECHO_T}$optimize_option" >&6; }
5339 # Check whether --with-extra-options was given.
5340 if test "${with_extra_options+set}" = set; then
5341 withval=$with_extra_options;
5347 default) EXTRA_OPTIONS= ;;
5348 *) EXTRA_OPTIONS=$withval ;;
5350 EXTRA_OPTIONS=$EXTRA_OPTIONS
5354 # Check whether --with-extra-ld-options was given.
5355 if test "${with_extra_ld_options+set}" = set; then
5356 withval=$with_extra_ld_options;
5362 default) EXTRA_LD_OPTIONS= ;;
5363 *) EXTRA_LD_OPTIONS=$withval ;;
5365 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5368 # Check whether --enable-bindings was given.
5369 if test "${enable_bindings+set}" = set; then
5370 enableval=$enable_bindings;
5375 BINDINGS_TO_BUILD=""
5376 case "$enableval" in
5377 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5378 all ) BINDINGS_TO_BUILD="ocaml" ;;
5379 none | no) BINDINGS_TO_BUILD="" ;;
5380 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5381 case "$a_binding" in
5382 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5383 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5384 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5385 { (exit 1); exit 1; }; } ;;
5392 # Check whether --with-ocaml-libdir was given.
5393 if test "${with_ocaml_libdir+set}" = set; then
5394 withval=$with_ocaml_libdir;
5400 auto) with_ocaml_libdir="$withval" ;;
5401 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5402 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5403 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5404 { (exit 1); exit 1; }; } ;;
5408 # Check whether --with-clang-resource-dir was given.
5409 if test "${with_clang_resource_dir+set}" = set; then
5410 withval=$with_clang_resource_dir;
5416 cat >>confdefs.h <<_ACEOF
5417 #define CLANG_RESOURCE_DIR "$withval"
5422 # Check whether --with-c-include-dirs was given.
5423 if test "${with_c_include_dirs+set}" = set; then
5424 withval=$with_c_include_dirs;
5430 cat >>confdefs.h <<_ACEOF
5431 #define C_INCLUDE_DIRS "$withval"
5436 # Check whether --with-cxx-include-root was given.
5437 if test "${with_cxx_include_root+set}" = set; then
5438 withval=$with_cxx_include_root;
5444 cat >>confdefs.h <<_ACEOF
5445 #define CXX_INCLUDE_ROOT "$withval"
5450 # Check whether --with-cxx-include-arch was given.
5451 if test "${with_cxx_include_arch+set}" = set; then
5452 withval=$with_cxx_include_arch;
5458 cat >>confdefs.h <<_ACEOF
5459 #define CXX_INCLUDE_ARCH "$withval"
5464 # Check whether --with-cxx-include-32bit-dir was given.
5465 if test "${with_cxx_include_32bit_dir+set}" = set; then
5466 withval=$with_cxx_include_32bit_dir;
5472 cat >>confdefs.h <<_ACEOF
5473 #define CXX_INCLUDE_32BIT_DIR "$withval"
5478 # Check whether --with-cxx-include-64bit-dir was given.
5479 if test "${with_cxx_include_64bit_dir+set}" = set; then
5480 withval=$with_cxx_include_64bit_dir;
5486 cat >>confdefs.h <<_ACEOF
5487 #define CXX_INCLUDE_64BIT_DIR "$withval"
5492 # Check whether --with-binutils-include was given.
5493 if test "${with_binutils_include+set}" = set; then
5494 withval=$with_binutils_include;
5500 default) WITH_BINUTILS_INCDIR=default ;;
5501 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5502 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5503 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5504 { (exit 1); exit 1; }; } ;;
5506 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5507 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5509 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5510 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5511 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5512 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5513 { (exit 1); exit 1; }; };
5517 # Check whether --enable-libffi was given.
5518 if test "${enable_libffi+set}" = set; then
5519 enableval=$enable_libffi; case "$enableval" in
5520 yes) llvm_cv_enable_libffi="yes" ;;
5521 no) llvm_cv_enable_libffi="no" ;;
5522 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5523 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5524 { (exit 1); exit 1; }; } ;;
5527 llvm_cv_enable_libffi=no
5533 ac_cpp='$CPP $CPPFLAGS'
5534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5538 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5539 # On Suns, sometimes $CPP names a directory.
5540 if test -n "$CPP" && test -d "$CPP"; then
5543 if test -z "$CPP"; then
5544 if test "${ac_cv_prog_CPP+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5547 # Double quotes because CPP needs to be expanded
5548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5551 for ac_c_preproc_warn_flag in '' yes
5553 # Use a header file that comes with gcc, so configuring glibc
5554 # with a fresh cross-compiler works.
5555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5556 # <limits.h> exists even on freestanding compilers.
5557 # On the NeXT, cc -E runs the code through the compiler's parser,
5558 # not just through cpp. "Syntax error" is here to catch this case.
5559 cat >conftest.$ac_ext <<_ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5566 # include <limits.h>
5568 # include <assert.h>
5572 if { (ac_try="$ac_cpp conftest.$ac_ext"
5574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5575 *) ac_try_echo
=$ac_try;;
5577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5580 grep -v '^ *+' conftest.er1
>conftest.err
5582 cat conftest.err
>&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } >/dev
/null
; then
5585 if test -s conftest.err
; then
5586 ac_cpp_err
=$ac_c_preproc_warn_flag
5587 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5594 if test -z "$ac_cpp_err"; then
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.
$ac_ext >&5
5600 # Broken: fails on valid input.
5604 rm -f conftest.err conftest.
$ac_ext
5606 # OK, works on sane cases. Now check whether nonexistent headers
5607 # can be detected and how.
5608 cat >conftest.
$ac_ext <<_ACEOF
5611 cat confdefs.h
>>conftest.
$ac_ext
5612 cat >>conftest.
$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5614 #include <ac_nonexistent.h>
5616 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5624 grep -v '^ *+' conftest.er1 >conftest.err
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } >/dev/null; then
5629 if test -s conftest.err; then
5630 ac_cpp_err=$ac_c_preproc_warn_flag
5631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5638 if test -z "$ac_cpp_err"; then
5639 # Broken: success on invalid input.
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5645 # Passes both tests.
5650 rm -f conftest.err conftest.$ac_ext
5653 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5654 rm -f conftest.err conftest.
$ac_ext
5655 if $ac_preproc_ok; then
5667 { echo "$as_me:$LINENO: result: $CPP" >&5
5668 echo "${ECHO_T}$CPP" >&6; }
5670 for ac_c_preproc_warn_flag
in '' yes
5672 # Use a header file that comes with gcc, so configuring glibc
5673 # with a fresh cross-compiler works.
5674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5675 # <limits.h> exists even on freestanding compilers.
5676 # On the NeXT, cc -E runs the code through the compiler's parser,
5677 # not just through cpp. "Syntax error" is here to catch this case.
5678 cat >conftest.
$ac_ext <<_ACEOF
5681 cat confdefs.h
>>conftest.
$ac_ext
5682 cat >>conftest.
$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5685 # include <limits.h>
5687 # include <assert.h>
5691 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5699 grep -v '^ *+' conftest.er1 >conftest.err
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } >/dev/null; then
5704 if test -s conftest.err; then
5705 ac_cpp_err=$ac_c_preproc_warn_flag
5706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5713 if test -z "$ac_cpp_err"; then
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5719 # Broken: fails on valid input.
5723 rm -f conftest.err conftest.$ac_ext
5725 # OK, works on sane cases. Now check whether nonexistent headers
5726 # can be detected and how.
5727 cat >conftest.$ac_ext <<_ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #include <ac_nonexistent.h>
5735 if { (ac_try="$ac_cpp conftest.$ac_ext"
5737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5738 *) ac_try_echo
=$ac_try;;
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5743 grep -v '^ *+' conftest.er1
>conftest.err
5745 cat conftest.err
>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } >/dev
/null
; then
5748 if test -s conftest.err
; then
5749 ac_cpp_err
=$ac_c_preproc_warn_flag
5750 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5757 if test -z "$ac_cpp_err"; then
5758 # Broken: success on invalid input.
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.
$ac_ext >&5
5764 # Passes both tests.
5769 rm -f conftest.err conftest.
$ac_ext
5772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5773 rm -f conftest.err conftest.
$ac_ext
5774 if $ac_preproc_ok; then
5777 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5778 See \`config.log' for more details." >&5
5779 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5780 See \`config.log' for more details." >&2;}
5781 { (exit 1); exit 1; }; }
5785 ac_cpp
='$CPP $CPPFLAGS'
5786 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5791 ac_cpp
='$CPP $CPPFLAGS'
5792 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5795 if test -n "$ac_tool_prefix"; then
5798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5799 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5802 if test "${ac_cv_prog_CC+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 if test -n "$CC"; then
5806 ac_cv_prog_CC
="$CC" # Let the user override the test.
5808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5812 test -z "$as_dir" && as_dir
=.
5813 for ac_exec_ext
in '' $ac_executable_extensions; do
5814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5815 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 if test -n "$CC"; then
5827 { echo "$as_me:$LINENO: result: $CC" >&5
5828 echo "${ECHO_T}$CC" >&6; }
5830 { echo "$as_me:$LINENO: result: no" >&5
5831 echo "${ECHO_T}no" >&6; }
5835 test -n "$CC" && break
5838 if test -z "$CC"; then
5842 # Extract the first word of "$ac_prog", so it can be a program name with args.
5843 set dummy
$ac_prog; ac_word
=$2
5844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 if test -n "$ac_ct_CC"; then
5850 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5856 test -z "$as_dir" && as_dir
=.
5857 for ac_exec_ext
in '' $ac_executable_extensions; do
5858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5859 ac_cv_prog_ac_ct_CC
="$ac_prog"
5860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5870 if test -n "$ac_ct_CC"; then
5871 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5872 echo "${ECHO_T}$ac_ct_CC" >&6; }
5874 { echo "$as_me:$LINENO: result: no" >&5
5875 echo "${ECHO_T}no" >&6; }
5879 test -n "$ac_ct_CC" && break
5882 if test "x$ac_ct_CC" = x
; then
5885 case $cross_compiling:$ac_tool_warned in
5887 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5888 whose name does not start with the host triplet. If you think this
5889 configuration is useful to you, please write to autoconf@gnu.org." >&5
5890 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5891 whose name does not start with the host triplet. If you think this
5892 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5893 ac_tool_warned
=yes ;;
5900 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5901 See \`config.log' for more details." >&5
5902 echo "$as_me: error: no acceptable C compiler found in \$PATH
5903 See \`config.log' for more details." >&2;}
5904 { (exit 1); exit 1; }; }
5906 # Provide some information about the compiler.
5907 echo "$as_me:$LINENO: checking for C compiler version" >&5
5908 ac_compiler
=`set X $ac_compile; echo $2`
5909 { (ac_try
="$ac_compiler --version >&5"
5911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_compiler --version >&5") 2>&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }
5919 { (ac_try="$ac_compiler -v >&5"
5921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5922 *) ac_try_echo
=$ac_try;;
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_compiler -v >&5") 2>&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }
5929 { (ac_try
="$ac_compiler -V >&5"
5931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_compiler -V >&5") 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }
5940 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5941 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5942 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 cat >conftest.$ac_ext <<_ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5963 rm -f conftest.$ac_objext
5964 if { (ac_try="$ac_compile"
5966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5967 *) ac_try_echo
=$ac_try;;
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_compile") 2>conftest.er1
5972 grep -v '^ *+' conftest.er1
>conftest.err
5974 cat conftest.err
>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5978 { (case "(($ac_try" in
5979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_try") 2>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try='test -s conftest.$ac_objext'
5988 { (case "(($ac_try" in
5989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5990 *) ac_try_echo
=$ac_try;;
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_try") 2>&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.
$ac_ext >&5
6005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6006 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
6009 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6010 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6011 GCC
=`test $ac_compiler_gnu = yes && echo yes`
6012 ac_test_CFLAGS
=${CFLAGS+set}
6013 ac_save_CFLAGS
=$CFLAGS
6014 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6015 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6016 if test "${ac_cv_prog_cc_g+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 ac_save_c_werror_flag
=$ac_c_werror_flag
6020 ac_c_werror_flag
=yes
6023 cat >conftest.
$ac_ext <<_ACEOF
6026 cat confdefs.h
>>conftest.
$ac_ext
6027 cat >>conftest.
$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6038 rm -f conftest.
$ac_objext
6039 if { (ac_try
="$ac_compile"
6041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_compile") 2>conftest.er1
6047 grep -v '^ *+' conftest.er1 >conftest.err
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } &&
6052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6053 { (case "(($ac_try" in
6054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6055 *) ac_try_echo
=$ac_try;;
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_try") 2>&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; } &&
6062 { ac_try
='test -s conftest.$ac_objext'
6063 { (case "(($ac_try" in
6064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_try") 2>&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }; then
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6078 cat >conftest.$ac_ext <<_ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6093 rm -f conftest.$ac_objext
6094 if { (ac_try="$ac_compile"
6096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6097 *) ac_try_echo
=$ac_try;;
6099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100 (eval "$ac_compile") 2>conftest.er1
6102 grep -v '^ *+' conftest.er1
>conftest.err
6104 cat conftest.err
>&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6108 { (case "(($ac_try" in
6109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_try") 2>&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; } &&
6117 { ac_try='test -s conftest.$ac_objext'
6118 { (case "(($ac_try" in
6119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6120 *) ac_try_echo
=$ac_try;;
6122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123 (eval "$ac_try") 2>&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.
$ac_ext >&5
6132 ac_c_werror_flag
=$ac_save_c_werror_flag
6134 cat >conftest.
$ac_ext <<_ACEOF
6137 cat confdefs.h
>>conftest.
$ac_ext
6138 cat >>conftest.
$ac_ext <<_ACEOF
6139 /* end confdefs.h. */
6149 rm -f conftest.
$ac_objext
6150 if { (ac_try
="$ac_compile"
6152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_compile") 2>conftest.er1
6158 grep -v '^ *+' conftest.er1 >conftest.err
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6164 { (case "(($ac_try" in
6165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6166 *) ac_try_echo
=$ac_try;;
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_try") 2>&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try
='test -s conftest.$ac_objext'
6174 { (case "(($ac_try" in
6175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_try") 2>&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6185 echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198 ac_c_werror_flag=$ac_save_c_werror_flag
6200 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6201 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6202 if test "$ac_test_CFLAGS" = set; then
6203 CFLAGS=$ac_save_CFLAGS
6204 elif test $ac_cv_prog_cc_g = yes; then
6205 if test "$GCC" = yes; then
6211 if test "$GCC" = yes; then
6217 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6218 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6219 if test "${ac_cv_prog_cc_c89+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 ac_cv_prog_cc_c89=no
6224 cat >conftest.$ac_ext <<_ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6232 #include <sys/types.h>
6233 #include <sys/stat.h>
6234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6235 struct buf { int x; };
6236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6237 static char *e (p, i)
6243 static char *f (char * (*g) (char **, int), char **p, ...)
6248 s = g (p, va_arg (v,int));
6253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6254 function prototypes and stuff, but not '\xHH' hex character constants.
6255 These don't provoke an error unfortunately, instead are silently treated
6256 as 'x'. The following induces an error, until -std is added to get
6257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6258 array size at least. It's necessary to write '\x00'==0 to get something
6259 that's true only with -std. */
6260 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6262 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6263 inside strings and character constants. */
6265 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6267 int test (int i, double x);
6268 struct s1 {int (*f) (int a);};
6269 struct s2 {int (*f) (double a);};
6270 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6276 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6281 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6284 CC="$ac_save_CC $ac_arg"
6285 rm -f conftest.$ac_objext
6286 if { (ac_try="$ac_compile"
6288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6289 *) ac_try_echo
=$ac_try;;
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_compile") 2>conftest.er1
6294 grep -v '^ *+' conftest.er1
>conftest.err
6296 cat conftest.err
>&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } &&
6299 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6300 { (case "(($ac_try" in
6301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_try") 2>&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; } &&
6309 { ac_try='test -s conftest.$ac_objext'
6310 { (case "(($ac_try" in
6311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6312 *) ac_try_echo
=$ac_try;;
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_try") 2>&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 ac_cv_prog_cc_c89
=$ac_arg
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.
$ac_ext >&5
6327 rm -f core conftest.err conftest.
$ac_objext
6328 test "x$ac_cv_prog_cc_c89" != "xno" && break
6330 rm -f conftest.
$ac_ext
6335 case "x$ac_cv_prog_cc_c89" in
6337 { echo "$as_me:$LINENO: result: none needed" >&5
6338 echo "${ECHO_T}none needed" >&6; } ;;
6340 { echo "$as_me:$LINENO: result: unsupported" >&5
6341 echo "${ECHO_T}unsupported" >&6; } ;;
6343 CC
="$CC $ac_cv_prog_cc_c89"
6344 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6345 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6350 ac_cpp
='$CPP $CPPFLAGS'
6351 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6356 ac_cpp
='$CXXCPP $CPPFLAGS'
6357 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6358 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6359 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6360 if test -z "$CXX"; then
6361 if test -n "$CCC"; then
6364 if test -n "$ac_tool_prefix"; then
6367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6368 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371 if test "${ac_cv_prog_CXX+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 if test -n "$CXX"; then
6375 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6381 test -z "$as_dir" && as_dir
=.
6382 for ac_exec_ext
in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6384 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 if test -n "$CXX"; then
6396 { echo "$as_me:$LINENO: result: $CXX" >&5
6397 echo "${ECHO_T}$CXX" >&6; }
6399 { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6404 test -n "$CXX" && break
6407 if test -z "$CXX"; then
6411 # Extract the first word of "$ac_prog", so it can be a program name with args.
6412 set dummy
$ac_prog; ac_word
=$2
6413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6415 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 if test -n "$ac_ct_CXX"; then
6419 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6425 test -z "$as_dir" && as_dir
=.
6426 for ac_exec_ext
in '' $ac_executable_extensions; do
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6439 if test -n "$ac_ct_CXX"; then
6440 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6441 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6443 { echo "$as_me:$LINENO: result: no" >&5
6444 echo "${ECHO_T}no" >&6; }
6448 test -n "$ac_ct_CXX" && break
6451 if test "x$ac_ct_CXX" = x
; then
6454 case $cross_compiling:$ac_tool_warned in
6456 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6457 whose name does not start with the host triplet. If you think this
6458 configuration is useful to you, please write to autoconf@gnu.org." >&5
6459 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6460 whose name does not start with the host triplet. If you think this
6461 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6462 ac_tool_warned
=yes ;;
6470 # Provide some information about the compiler.
6471 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6472 ac_compiler
=`set X $ac_compile; echo $2`
6473 { (ac_try
="$ac_compiler --version >&5"
6475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_compiler --version >&5") 2>&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }
6483 { (ac_try="$ac_compiler -v >&5"
6485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6486 *) ac_try_echo
=$ac_try;;
6488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489 (eval "$ac_compiler -v >&5") 2>&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }
6493 { (ac_try
="$ac_compiler -V >&5"
6495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_compiler -V >&5") 2>&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }
6504 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6505 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6506 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 cat >conftest.$ac_ext <<_ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6527 rm -f conftest.$ac_objext
6528 if { (ac_try="$ac_compile"
6530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6531 *) ac_try_echo
=$ac_try;;
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_compile") 2>conftest.er1
6536 grep -v '^ *+' conftest.er1
>conftest.err
6538 cat conftest.err
>&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } &&
6541 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6542 { (case "(($ac_try" in
6543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_try") 2>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; } &&
6551 { ac_try='test -s conftest.$ac_objext'
6552 { (case "(($ac_try" in
6553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6554 *) ac_try_echo
=$ac_try;;
6556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 (eval "$ac_try") 2>&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.
$ac_ext >&5
6569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6570 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6573 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6574 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6575 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6576 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6577 ac_save_CXXFLAGS
=$CXXFLAGS
6578 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6579 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6580 if test "${ac_cv_prog_cxx_g+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6584 ac_cxx_werror_flag
=yes
6587 cat >conftest.
$ac_ext <<_ACEOF
6590 cat confdefs.h
>>conftest.
$ac_ext
6591 cat >>conftest.
$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6602 rm -f conftest.
$ac_objext
6603 if { (ac_try
="$ac_compile"
6605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609 (eval "$ac_compile") 2>conftest.er1
6611 grep -v '^ *+' conftest.er1 >conftest.err
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6617 { (case "(($ac_try" in
6618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6619 *) ac_try_echo
=$ac_try;;
6621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622 (eval "$ac_try") 2>&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; } &&
6626 { ac_try
='test -s conftest.$ac_objext'
6627 { (case "(($ac_try" in
6628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6632 (eval "$ac_try") 2>&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6636 ac_cv_prog_cxx_g=yes
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6642 cat >conftest.$ac_ext <<_ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6657 rm -f conftest.$ac_objext
6658 if { (ac_try="$ac_compile"
6660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6661 *) ac_try_echo
=$ac_try;;
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_compile") 2>conftest.er1
6666 grep -v '^ *+' conftest.er1
>conftest.err
6668 cat conftest.err
>&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } &&
6671 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6672 { (case "(($ac_try" in
6673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6677 (eval "$ac_try") 2>&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try='test -s conftest.$ac_objext'
6682 { (case "(($ac_try" in
6683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6684 *) ac_try_echo
=$ac_try;;
6686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687 (eval "$ac_try") 2>&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; }; then
6693 echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.
$ac_ext >&5
6696 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6698 cat >conftest.
$ac_ext <<_ACEOF
6701 cat confdefs.h
>>conftest.
$ac_ext
6702 cat >>conftest.
$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6713 rm -f conftest.
$ac_objext
6714 if { (ac_try
="$ac_compile"
6716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6722 grep -v '^ *+' conftest.er1 >conftest.err
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
6727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6728 { (case "(($ac_try" in
6729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6730 *) ac_try_echo
=$ac_try;;
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_try") 2>&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; } &&
6737 { ac_try
='test -s conftest.$ac_objext'
6738 { (case "(($ac_try" in
6739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6740 *) ac_try_echo=$ac_try;;
6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743 (eval "$ac_try") 2>&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 ac_cv_prog_cxx_g=yes
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6764 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6765 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6766 if test "$ac_test_CXXFLAGS" = set; then
6767 CXXFLAGS=$ac_save_CXXFLAGS
6768 elif test $ac_cv_prog_cxx_g = yes; then
6769 if test "$GXX" = yes; then
6775 if test "$GXX" = yes; then
6782 ac_cpp='$CPP $CPPFLAGS'
6783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6788 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6789 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6790 if test "${lt_cv_path_NM+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 if test -n "$NM"; then
6794 # Let the user override the test.
6797 lt_nm_to_check="${ac_tool_prefix}nm"
6798 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6799 lt_nm_to_check="$lt_nm_to_check nm"
6801 for lt_tmp_nm in $lt_nm_to_check; do
6802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6803 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6805 test -z "$ac_dir" && ac_dir=.
6806 tmp_nm="$ac_dir/$lt_tmp_nm"
6807 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6808 # Check to see if the nm accepts a BSD-compat flag.
6809 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6810 # nm: unknown option "B" ignored
6811 # Tru64's nm complains that
/dev
/null is an invalid object
file
6812 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6813 */dev
/null
* |
*'Invalid file or object type'*)
6814 lt_cv_path_NM
="$tmp_nm -B"
6818 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6820 lt_cv_path_NM
="$tmp_nm -p"
6824 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6825 continue # so that we can try to find one that supports BSD flags
6834 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6837 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6838 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6843 { echo "$as_me:$LINENO: checking for GNU make" >&5
6844 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6845 if test "${llvm_cv_gnu_make_command+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 llvm_cv_gnu_make_command
=''
6849 for a
in "$MAKE" make gmake gnumake
; do
6850 if test -z "$a" ; then continue ; fi ;
6851 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6853 llvm_cv_gnu_make_command
=$a ;
6858 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6859 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6860 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6864 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6865 echo "${ECHO_T}\"Not found\"" >&6; };
6869 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6870 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6872 if test "$LN_S" = "ln -s"; then
6873 { echo "$as_me:$LINENO: result: yes" >&5
6874 echo "${ECHO_T}yes" >&6; }
6876 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6877 echo "${ECHO_T}no, using $LN_S" >&6; }
6880 # Extract the first word of "cmp", so it can be a program name with args.
6881 set dummy
cmp; ac_word
=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_CMP+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6896 test -z "$as_dir" && as_dir
=.
6897 for ac_exec_ext
in '' $ac_executable_extensions; do
6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6912 if test -n "$CMP"; then
6913 { echo "$as_me:$LINENO: result: $CMP" >&5
6914 echo "${ECHO_T}$CMP" >&6; }
6916 { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6921 # Extract the first word of "cp", so it can be a program name with args.
6922 set dummy
cp; ac_word
=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_CP+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir
=.
6938 for ac_exec_ext
in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6953 if test -n "$CP"; then
6954 { echo "$as_me:$LINENO: result: $CP" >&5
6955 echo "${ECHO_T}$CP" >&6; }
6957 { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6962 # Extract the first word of "date", so it can be a program name with args.
6963 set dummy
date; ac_word
=$2
6964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966 if test "${ac_cv_path_DATE+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6978 test -z "$as_dir" && as_dir
=.
6979 for ac_exec_ext
in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6993 DATE
=$ac_cv_path_DATE
6994 if test -n "$DATE"; then
6995 { echo "$as_me:$LINENO: result: $DATE" >&5
6996 echo "${ECHO_T}$DATE" >&6; }
6998 { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7003 # Extract the first word of "find", so it can be a program name with args.
7004 set dummy
find; ac_word
=$2
7005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7007 if test "${ac_cv_path_FIND+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
7015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7019 test -z "$as_dir" && as_dir
=.
7020 for ac_exec_ext
in '' $ac_executable_extensions; do
7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7022 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
7034 FIND
=$ac_cv_path_FIND
7035 if test -n "$FIND"; then
7036 { echo "$as_me:$LINENO: result: $FIND" >&5
7037 echo "${ECHO_T}$FIND" >&6; }
7039 { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7044 # Extract the first word of "grep", so it can be a program name with args.
7045 set dummy
grep; ac_word
=$2
7046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048 if test "${ac_cv_path_GREP+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
7056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7060 test -z "$as_dir" && as_dir
=.
7061 for ac_exec_ext
in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
7064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
7075 GREP
=$ac_cv_path_GREP
7076 if test -n "$GREP"; then
7077 { echo "$as_me:$LINENO: result: $GREP" >&5
7078 echo "${ECHO_T}$GREP" >&6; }
7080 { echo "$as_me:$LINENO: result: no" >&5
7081 echo "${ECHO_T}no" >&6; }
7085 # Extract the first word of "mkdir", so it can be a program name with args.
7086 set dummy mkdir
; ac_word
=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_path_MKDIR+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
7097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7101 test -z "$as_dir" && as_dir
=.
7102 for ac_exec_ext
in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
7116 MKDIR
=$ac_cv_path_MKDIR
7117 if test -n "$MKDIR"; then
7118 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7119 echo "${ECHO_T}$MKDIR" >&6; }
7121 { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7126 # Extract the first word of "mv", so it can be a program name with args.
7127 set dummy
mv; ac_word
=$2
7128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130 if test "${ac_cv_path_MV+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
7138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir
=.
7143 for ac_exec_ext
in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
7158 if test -n "$MV"; then
7159 { echo "$as_me:$LINENO: result: $MV" >&5
7160 echo "${ECHO_T}$MV" >&6; }
7162 { echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6; }
7167 if test -n "$ac_tool_prefix"; then
7168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7169 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7172 if test "${ac_cv_prog_RANLIB+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 if test -n "$RANLIB"; then
7176 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7182 test -z "$as_dir" && as_dir
=.
7183 for ac_exec_ext
in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7185 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 RANLIB
=$ac_cv_prog_RANLIB
7196 if test -n "$RANLIB"; then
7197 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7198 echo "${ECHO_T}$RANLIB" >&6; }
7200 { echo "$as_me:$LINENO: result: no" >&5
7201 echo "${ECHO_T}no" >&6; }
7206 if test -z "$ac_cv_prog_RANLIB"; then
7207 ac_ct_RANLIB
=$RANLIB
7208 # Extract the first word of "ranlib", so it can be a program name with args.
7209 set dummy ranlib
; ac_word
=$2
7210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7212 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 if test -n "$ac_ct_RANLIB"; then
7216 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir
=.
7223 for ac_exec_ext
in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7236 if test -n "$ac_ct_RANLIB"; then
7237 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7238 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7240 { echo "$as_me:$LINENO: result: no" >&5
7241 echo "${ECHO_T}no" >&6; }
7244 if test "x$ac_ct_RANLIB" = x
; then
7247 case $cross_compiling:$ac_tool_warned in
7249 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7250 whose name does not start with the host triplet. If you think this
7251 configuration is useful to you, please write to autoconf@gnu.org." >&5
7252 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7253 whose name does not start with the host triplet. If you think this
7254 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7255 ac_tool_warned
=yes ;;
7257 RANLIB
=$ac_ct_RANLIB
7260 RANLIB
="$ac_cv_prog_RANLIB"
7263 if test -n "$ac_tool_prefix"; then
7264 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7265 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7268 if test "${ac_cv_prog_AR+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 if test -n "$AR"; then
7272 ac_cv_prog_AR
="$AR" # Let the user override the test.
7274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7278 test -z "$as_dir" && as_dir
=.
7279 for ac_exec_ext
in '' $ac_executable_extensions; do
7280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 if test -n "$AR"; then
7293 { echo "$as_me:$LINENO: result: $AR" >&5
7294 echo "${ECHO_T}$AR" >&6; }
7296 { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7302 if test -z "$ac_cv_prog_AR"; then
7304 # Extract the first word of "ar", so it can be a program name with args.
7305 set dummy
ar; ac_word
=$2
7306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 if test -n "$ac_ct_AR"; then
7312 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir
=.
7319 for ac_exec_ext
in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 ac_cv_prog_ac_ct_AR
="ar"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7332 if test -n "$ac_ct_AR"; then
7333 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7334 echo "${ECHO_T}$ac_ct_AR" >&6; }
7336 { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7340 if test "x$ac_ct_AR" = x
; then
7343 case $cross_compiling:$ac_tool_warned in
7345 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7346 whose name does not start with the host triplet. If you think this
7347 configuration is useful to you, please write to autoconf@gnu.org." >&5
7348 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7349 whose name does not start with the host triplet. If you think this
7350 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7351 ac_tool_warned
=yes ;;
7359 # Extract the first word of "rm", so it can be a program name with args.
7360 set dummy
rm; ac_word
=$2
7361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7363 if test "${ac_cv_path_RM+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
7371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7375 test -z "$as_dir" && as_dir
=.
7376 for ac_exec_ext
in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
7379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
7391 if test -n "$RM"; then
7392 { echo "$as_me:$LINENO: result: $RM" >&5
7393 echo "${ECHO_T}$RM" >&6; }
7395 { echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6; }
7400 # Extract the first word of "sed", so it can be a program name with args.
7401 set dummy
sed; ac_word
=$2
7402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404 if test "${ac_cv_path_SED+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7416 test -z "$as_dir" && as_dir
=.
7417 for ac_exec_ext
in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7432 if test -n "$SED"; then
7433 { echo "$as_me:$LINENO: result: $SED" >&5
7434 echo "${ECHO_T}$SED" >&6; }
7436 { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7441 # Extract the first word of "tar", so it can be a program name with args.
7442 set dummy
tar; ac_word
=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_path_TAR+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir
=.
7458 for ac_exec_ext
in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7473 if test -n "$TAR"; then
7474 { echo "$as_me:$LINENO: result: $TAR" >&5
7475 echo "${ECHO_T}$TAR" >&6; }
7477 { echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6; }
7482 # Extract the first word of "pwd", so it can be a program name with args.
7483 set dummy
pwd; ac_word
=$2
7484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7486 if test "${ac_cv_path_BINPWD+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir
=.
7499 for ac_exec_ext
in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7501 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7513 BINPWD
=$ac_cv_path_BINPWD
7514 if test -n "$BINPWD"; then
7515 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7516 echo "${ECHO_T}$BINPWD" >&6; }
7518 { echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6; }
7524 # Extract the first word of "Graphviz", so it can be a program name with args.
7525 set dummy Graphviz
; ac_word
=$2
7526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7528 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7540 test -z "$as_dir" && as_dir
=.
7541 for ac_exec_ext
in '' $ac_executable_extensions; do
7542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7543 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7555 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7556 if test -n "$GRAPHVIZ"; then
7557 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7558 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7560 { echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6; }
7565 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7567 cat >>confdefs.h
<<\_ACEOF
7568 #define HAVE_GRAPHVIZ 1
7571 if test "$llvm_cv_os_type" = "MingW" ; then
7572 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7575 cat >>confdefs.h
<<_ACEOF
7576 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7580 # Extract the first word of "dot", so it can be a program name with args.
7581 set dummy dot
; ac_word
=$2
7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584 if test "${ac_cv_path_DOT+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir
=.
7597 for ac_exec_ext
in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7612 if test -n "$DOT"; then
7613 { echo "$as_me:$LINENO: result: $DOT" >&5
7614 echo "${ECHO_T}$DOT" >&6; }
7616 { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7621 if test "$DOT" != "echo dot" ; then
7623 cat >>confdefs.h
<<\_ACEOF
7627 if test "$llvm_cv_os_type" = "MingW" ; then
7628 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7631 cat >>confdefs.h
<<_ACEOF
7632 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7636 # Extract the first word of "fdp", so it can be a program name with args.
7637 set dummy fdp
; ac_word
=$2
7638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7640 if test "${ac_cv_path_FDP+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7645 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
7648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7652 test -z "$as_dir" && as_dir
=.
7653 for ac_exec_ext
in '' $ac_executable_extensions; do
7654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7655 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
7656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
7668 if test -n "$FDP"; then
7669 { echo "$as_me:$LINENO: result: $FDP" >&5
7670 echo "${ECHO_T}$FDP" >&6; }
7672 { echo "$as_me:$LINENO: result: no" >&5
7673 echo "${ECHO_T}no" >&6; }
7677 if test "$FDP" != "echo fdp" ; then
7679 cat >>confdefs.h
<<\_ACEOF
7683 if test "$llvm_cv_os_type" = "MingW" ; then
7684 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7687 cat >>confdefs.h
<<_ACEOF
7688 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7692 # Extract the first word of "neato", so it can be a program name with args.
7693 set dummy neato
; ac_word
=$2
7694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7696 if test "${ac_cv_path_NEATO+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7708 test -z "$as_dir" && as_dir
=.
7709 for ac_exec_ext
in '' $ac_executable_extensions; do
7710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7711 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7723 NEATO
=$ac_cv_path_NEATO
7724 if test -n "$NEATO"; then
7725 { echo "$as_me:$LINENO: result: $NEATO" >&5
7726 echo "${ECHO_T}$NEATO" >&6; }
7728 { echo "$as_me:$LINENO: result: no" >&5
7729 echo "${ECHO_T}no" >&6; }
7733 if test "$NEATO" != "echo neato" ; then
7735 cat >>confdefs.h
<<\_ACEOF
7736 #define HAVE_NEATO 1
7739 if test "$llvm_cv_os_type" = "MingW" ; then
7740 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7743 cat >>confdefs.h
<<_ACEOF
7744 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7748 # Extract the first word of "twopi", so it can be a program name with args.
7749 set dummy twopi
; ac_word
=$2
7750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7752 if test "${ac_cv_path_TWOPI+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7757 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7764 test -z "$as_dir" && as_dir
=.
7765 for ac_exec_ext
in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7779 TWOPI
=$ac_cv_path_TWOPI
7780 if test -n "$TWOPI"; then
7781 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7782 echo "${ECHO_T}$TWOPI" >&6; }
7784 { echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6; }
7789 if test "$TWOPI" != "echo twopi" ; then
7791 cat >>confdefs.h
<<\_ACEOF
7792 #define HAVE_TWOPI 1
7795 if test "$llvm_cv_os_type" = "MingW" ; then
7796 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7799 cat >>confdefs.h
<<_ACEOF
7800 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7804 # Extract the first word of "circo", so it can be a program name with args.
7805 set dummy circo
; ac_word
=$2
7806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7808 if test "${ac_cv_path_CIRCO+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7820 test -z "$as_dir" && as_dir
=.
7821 for ac_exec_ext
in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7835 CIRCO
=$ac_cv_path_CIRCO
7836 if test -n "$CIRCO"; then
7837 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7838 echo "${ECHO_T}$CIRCO" >&6; }
7840 { echo "$as_me:$LINENO: result: no" >&5
7841 echo "${ECHO_T}no" >&6; }
7845 if test "$CIRCO" != "echo circo" ; then
7847 cat >>confdefs.h
<<\_ACEOF
7848 #define HAVE_CIRCO 1
7851 if test "$llvm_cv_os_type" = "MingW" ; then
7852 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7855 cat >>confdefs.h
<<_ACEOF
7856 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7860 for ac_prog
in gv gsview32
7862 # Extract the first word of "$ac_prog", so it can be a program name with args.
7863 set dummy
$ac_prog; ac_word
=$2
7864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7866 if test "${ac_cv_path_GV+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7878 test -z "$as_dir" && as_dir
=.
7879 for ac_exec_ext
in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7881 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 if test -n "$GV"; then
7894 { echo "$as_me:$LINENO: result: $GV" >&5
7895 echo "${ECHO_T}$GV" >&6; }
7897 { echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6; }
7902 test -n "$GV" && break
7904 test -n "$GV" || GV
="echo gv"
7906 if test "$GV" != "echo gv" ; then
7908 cat >>confdefs.h
<<\_ACEOF
7912 if test "$llvm_cv_os_type" = "MingW" ; then
7913 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7916 cat >>confdefs.h
<<_ACEOF
7917 #define LLVM_PATH_GV "$GV${EXEEXT}"
7921 # Extract the first word of "dotty", so it can be a program name with args.
7922 set dummy dotty
; ac_word
=$2
7923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7925 if test "${ac_cv_path_DOTTY+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7937 test -z "$as_dir" && as_dir
=.
7938 for ac_exec_ext
in '' $ac_executable_extensions; do
7939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7940 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7948 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7952 DOTTY
=$ac_cv_path_DOTTY
7953 if test -n "$DOTTY"; then
7954 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7955 echo "${ECHO_T}$DOTTY" >&6; }
7957 { echo "$as_me:$LINENO: result: no" >&5
7958 echo "${ECHO_T}no" >&6; }
7962 if test "$DOTTY" != "echo dotty" ; then
7964 cat >>confdefs.h
<<\_ACEOF
7965 #define HAVE_DOTTY 1
7968 if test "$llvm_cv_os_type" = "MingW" ; then
7969 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7972 cat >>confdefs.h
<<_ACEOF
7973 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7977 # Extract the first word of "xdot.py", so it can be a program name with args.
7978 set dummy xdot.py
; ac_word
=$2
7979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7981 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 ac_cv_path_XDOT_PY
="$XDOT_PY" # Let the user override the test with a path.
7989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7993 test -z "$as_dir" && as_dir
=.
7994 for ac_exec_ext
in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7996 ac_cv_path_XDOT_PY
="$as_dir/$ac_word$ac_exec_ext"
7997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY
="echo xdot.py"
8008 XDOT_PY
=$ac_cv_path_XDOT_PY
8009 if test -n "$XDOT_PY"; then
8010 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8011 echo "${ECHO_T}$XDOT_PY" >&6; }
8013 { echo "$as_me:$LINENO: result: no" >&5
8014 echo "${ECHO_T}no" >&6; }
8018 if test "$XDOT_PY" != "echo xdot.py" ; then
8020 cat >>confdefs.h
<<\_ACEOF
8021 #define HAVE_XDOT_PY 1
8024 if test "$llvm_cv_os_type" = "MingW" ; then
8025 XDOT_PY
=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8028 cat >>confdefs.h
<<_ACEOF
8029 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8035 # Extract the first word of "perl", so it can be a program name with args.
8036 set dummy perl
; ac_word
=$2
8037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8039 if test "${ac_cv_path_PERL+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
8047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8051 test -z "$as_dir" && as_dir
=.
8052 for ac_exec_ext
in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
8055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
8066 PERL
=$ac_cv_path_PERL
8067 if test -n "$PERL"; then
8068 { echo "$as_me:$LINENO: result: $PERL" >&5
8069 echo "${ECHO_T}$PERL" >&6; }
8071 { echo "$as_me:$LINENO: result: no" >&5
8072 echo "${ECHO_T}no" >&6; }
8076 if test "$PERL" != "none"; then
8077 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8078 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8079 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
8080 { echo "$as_me:$LINENO: result: yes" >&5
8081 echo "${ECHO_T}yes" >&6; }
8084 { echo "$as_me:$LINENO: result: not found" >&5
8085 echo "${ECHO_T}not found" >&6; }
8090 if test x
"$PERL" = xnone
; then
8093 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8094 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8095 { (exit 1); exit 1; }; }
8101 # Find a good install program. We prefer a C program (faster),
8102 # so one script is as good as another. But avoid the broken or
8103 # incompatible versions:
8104 # SysV /etc/install, /usr/sbin/install
8105 # SunOS /usr/etc/install
8106 # IRIX /sbin/install
8108 # AmigaOS /C/install, which installs bootblocks on floppy discs
8109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8112 # OS/2's system install, which has a completely different semantic
8113 # ./install, which can be erroneously created by make from ./install.sh.
8114 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8115 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8116 if test -z "$INSTALL"; then
8117 if test "${ac_cv_path_install+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8124 test -z "$as_dir" && as_dir
=.
8125 # Account for people who put trailing slashes in PATH elements.
8127 .
/ | .
// |
/cC
/* | \
8128 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
8129 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
8132 # OSF1 and SCO ODT 3.0 have their own names for install.
8133 # Don't use installbsd from OSF since it installs stuff as root
8135 for ac_prog
in ginstall scoinst
install; do
8136 for ac_exec_ext
in '' $ac_executable_extensions; do
8137 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8138 if test $ac_prog = install &&
8139 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8140 # AIX install. It has an incompatible calling convention.
8142 elif test $ac_prog = install &&
8143 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8144 # program-specific install script used by HP pwplus--don't use.
8147 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
8160 if test "${ac_cv_path_install+set}" = set; then
8161 INSTALL
=$ac_cv_path_install
8163 # As a last resort, use the slow shell script. Don't cache a
8164 # value for INSTALL within a source directory, because that will
8165 # break other packages using the cache if that directory is
8166 # removed, or if the value is a relative name.
8167 INSTALL
=$ac_install_sh
8170 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8171 echo "${ECHO_T}$INSTALL" >&6; }
8173 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8174 # It thinks the first close brace ends the variable substitution.
8175 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8177 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8179 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8182 [\\/$
]* | ?
:[\\/]* ) ;;
8183 *) INSTALL
="\\\$(TOPSRCDIR)/$INSTALL" ;;
8186 # Extract the first word of "bzip2", so it can be a program name with args.
8187 set dummy
bzip2; ac_word
=$2
8188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8190 if test "${ac_cv_path_BZIP2+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
8198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8202 test -z "$as_dir" && as_dir
=.
8203 for ac_exec_ext
in '' $ac_executable_extensions; do
8204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8205 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
8206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 BZIP2
=$ac_cv_path_BZIP2
8217 if test -n "$BZIP2"; then
8218 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8219 echo "${ECHO_T}$BZIP2" >&6; }
8221 { echo "$as_me:$LINENO: result: no" >&5
8222 echo "${ECHO_T}no" >&6; }
8226 # Extract the first word of "cat", so it can be a program name with args.
8227 set dummy
cat; ac_word
=$2
8228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8230 if test "${ac_cv_path_CAT+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 ac_cv_path_CAT
="$CAT" # Let the user override the test with a path.
8238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8242 test -z "$as_dir" && as_dir
=.
8243 for ac_exec_ext
in '' $ac_executable_extensions; do
8244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8245 ac_cv_path_CAT
="$as_dir/$ac_word$ac_exec_ext"
8246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 if test -n "$CAT"; then
8258 { echo "$as_me:$LINENO: result: $CAT" >&5
8259 echo "${ECHO_T}$CAT" >&6; }
8261 { echo "$as_me:$LINENO: result: no" >&5
8262 echo "${ECHO_T}no" >&6; }
8266 # Extract the first word of "doxygen", so it can be a program name with args.
8267 set dummy doxygen
; ac_word
=$2
8268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8270 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
8278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8282 test -z "$as_dir" && as_dir
=.
8283 for ac_exec_ext
in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8285 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
8286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 DOXYGEN
=$ac_cv_path_DOXYGEN
8297 if test -n "$DOXYGEN"; then
8298 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8299 echo "${ECHO_T}$DOXYGEN" >&6; }
8301 { echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6; }
8306 # Extract the first word of "groff", so it can be a program name with args.
8307 set dummy
groff; ac_word
=$2
8308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8310 if test "${ac_cv_path_GROFF+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
8318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8322 test -z "$as_dir" && as_dir
=.
8323 for ac_exec_ext
in '' $ac_executable_extensions; do
8324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8325 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
8326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 GROFF
=$ac_cv_path_GROFF
8337 if test -n "$GROFF"; then
8338 { echo "$as_me:$LINENO: result: $GROFF" >&5
8339 echo "${ECHO_T}$GROFF" >&6; }
8341 { echo "$as_me:$LINENO: result: no" >&5
8342 echo "${ECHO_T}no" >&6; }
8346 # Extract the first word of "gzip", so it can be a program name with args.
8347 set dummy
gzip; ac_word
=$2
8348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8350 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 ac_cv_path_GZIPBIN
="$GZIPBIN" # Let the user override the test with a path.
8358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8362 test -z "$as_dir" && as_dir
=.
8363 for ac_exec_ext
in '' $ac_executable_extensions; do
8364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8365 ac_cv_path_GZIPBIN
="$as_dir/$ac_word$ac_exec_ext"
8366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 GZIPBIN
=$ac_cv_path_GZIPBIN
8377 if test -n "$GZIPBIN"; then
8378 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8379 echo "${ECHO_T}$GZIPBIN" >&6; }
8381 { echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6; }
8386 # Extract the first word of "pod2html", so it can be a program name with args.
8387 set dummy pod2html
; ac_word
=$2
8388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8390 if test "${ac_cv_path_POD2HTML+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
8398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8402 test -z "$as_dir" && as_dir
=.
8403 for ac_exec_ext
in '' $ac_executable_extensions; do
8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8405 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
8406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 POD2HTML
=$ac_cv_path_POD2HTML
8417 if test -n "$POD2HTML"; then
8418 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8419 echo "${ECHO_T}$POD2HTML" >&6; }
8421 { echo "$as_me:$LINENO: result: no" >&5
8422 echo "${ECHO_T}no" >&6; }
8426 # Extract the first word of "pod2man", so it can be a program name with args.
8427 set dummy pod2man
; ac_word
=$2
8428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8430 if test "${ac_cv_path_POD2MAN+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8442 test -z "$as_dir" && as_dir
=.
8443 for ac_exec_ext
in '' $ac_executable_extensions; do
8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8445 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8456 POD2MAN
=$ac_cv_path_POD2MAN
8457 if test -n "$POD2MAN"; then
8458 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8459 echo "${ECHO_T}$POD2MAN" >&6; }
8461 { echo "$as_me:$LINENO: result: no" >&5
8462 echo "${ECHO_T}no" >&6; }
8466 # Extract the first word of "pdfroff", so it can be a program name with args.
8467 set dummy pdfroff
; ac_word
=$2
8468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8470 if test "${ac_cv_path_PDFROFF+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 ac_cv_path_PDFROFF
="$PDFROFF" # Let the user override the test with a path.
8478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8482 test -z "$as_dir" && as_dir
=.
8483 for ac_exec_ext
in '' $ac_executable_extensions; do
8484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8485 ac_cv_path_PDFROFF
="$as_dir/$ac_word$ac_exec_ext"
8486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 PDFROFF
=$ac_cv_path_PDFROFF
8497 if test -n "$PDFROFF"; then
8498 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8499 echo "${ECHO_T}$PDFROFF" >&6; }
8501 { echo "$as_me:$LINENO: result: no" >&5
8502 echo "${ECHO_T}no" >&6; }
8506 # Extract the first word of "runtest", so it can be a program name with args.
8507 set dummy runtest
; ac_word
=$2
8508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8510 if test "${ac_cv_path_RUNTEST+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
8518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8522 test -z "$as_dir" && as_dir
=.
8523 for ac_exec_ext
in '' $ac_executable_extensions; do
8524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8525 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
8526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 RUNTEST
=$ac_cv_path_RUNTEST
8537 if test -n "$RUNTEST"; then
8538 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8539 echo "${ECHO_T}$RUNTEST" >&6; }
8541 { echo "$as_me:$LINENO: result: no" >&5
8542 echo "${ECHO_T}no" >&6; }
8548 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8549 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8551 # Check whether --with-tclinclude was given.
8552 if test "${with_tclinclude+set}" = set; then
8553 withval
=$with_tclinclude; with_tclinclude
=${withval}
8558 if test "${ac_cv_path_tclsh+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 if test x
"${with_tclinclude}" != x
; then
8563 if test -f ${with_tclinclude}/tclsh
; then
8564 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8565 elif test -f ${with_tclinclude}/src
/tclsh
; then
8566 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8568 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8569 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8570 { (exit 1); exit 1; }; }
8576 if test x
"${ac_cv_path_tclsh}" = x
; then
8577 { echo "$as_me:$LINENO: result: none" >&5
8578 echo "${ECHO_T}none" >&6; }
8579 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
8581 # Extract the first word of "$ac_prog", so it can be a program name with args.
8582 set dummy
$ac_prog; ac_word
=$2
8583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8585 if test "${ac_cv_path_TCLSH+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8597 test -z "$as_dir" && as_dir
=.
8598 for ac_exec_ext
in '' $ac_executable_extensions; do
8599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8600 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 TCLSH
=$ac_cv_path_TCLSH
8612 if test -n "$TCLSH"; then
8613 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8614 echo "${ECHO_T}$TCLSH" >&6; }
8616 { echo "$as_me:$LINENO: result: no" >&5
8617 echo "${ECHO_T}no" >&6; }
8621 test -n "$TCLSH" && break
8624 if test x
"${TCLSH}" = x
; then
8625 ac_cv_path_tclsh
='';
8627 ac_cv_path_tclsh
="${TCLSH}";
8630 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8631 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8632 TCLSH="${ac_cv_path_tclsh}"
8636 # Extract the first word of "zip", so it can be a program name with args.
8637 set dummy zip; ac_word=$2
8638 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8639 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8640 if test "${ac_cv_path_ZIP+set}" = set; then
8641 echo $ECHO_N "(cached
) $ECHO_C" >&6
8645 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8655 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8656 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8667 if test -n "$ZIP"; then
8668 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8669 echo "${ECHO_T}$ZIP" >&6; }
8671 { echo "$as_me:$LINENO: result
: no
" >&5
8672 echo "${ECHO_T}no
" >&6; }
8676 for ac_prog in ocamlc
8678 # Extract the first word of "$ac_prog", so it can be a program name with args.
8679 set dummy $ac_prog; ac_word=$2
8680 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8681 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8682 if test "${ac_cv_path_OCAMLC+set}" = set; then
8683 echo $ECHO_N "(cached
) $ECHO_C" >&6
8687 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694 test -z "$as_dir" && as_dir=.
8695 for ac_exec_ext in '' $ac_executable_extensions; do
8696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8697 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8698 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8708 OCAMLC=$ac_cv_path_OCAMLC
8709 if test -n "$OCAMLC"; then
8710 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8711 echo "${ECHO_T}$OCAMLC" >&6; }
8713 { echo "$as_me:$LINENO: result
: no
" >&5
8714 echo "${ECHO_T}no
" >&6; }
8718 test -n "$OCAMLC" && break
8721 for ac_prog in ocamlopt
8723 # Extract the first word of "$ac_prog", so it can be a program name with args.
8724 set dummy $ac_prog; ac_word=$2
8725 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8726 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8727 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8728 echo $ECHO_N "(cached
) $ECHO_C" >&6
8732 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8742 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8743 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8753 OCAMLOPT=$ac_cv_path_OCAMLOPT
8754 if test -n "$OCAMLOPT"; then
8755 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8756 echo "${ECHO_T}$OCAMLOPT" >&6; }
8758 { echo "$as_me:$LINENO: result
: no
" >&5
8759 echo "${ECHO_T}no
" >&6; }
8763 test -n "$OCAMLOPT" && break
8766 for ac_prog in ocamldep
8768 # Extract the first word of "$ac_prog", so it can be a program name with args.
8769 set dummy $ac_prog; ac_word=$2
8770 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8771 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8772 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8773 echo $ECHO_N "(cached
) $ECHO_C" >&6
8777 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 test -z "$as_dir" && as_dir=.
8785 for ac_exec_ext in '' $ac_executable_extensions; do
8786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8787 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8788 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8798 OCAMLDEP=$ac_cv_path_OCAMLDEP
8799 if test -n "$OCAMLDEP"; then
8800 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8801 echo "${ECHO_T}$OCAMLDEP" >&6; }
8803 { echo "$as_me:$LINENO: result
: no
" >&5
8804 echo "${ECHO_T}no
" >&6; }
8808 test -n "$OCAMLDEP" && break
8811 for ac_prog in ocamldoc
8813 # Extract the first word of "$ac_prog", so it can be a program name with args.
8814 set dummy $ac_prog; ac_word=$2
8815 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8816 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8817 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8818 echo $ECHO_N "(cached
) $ECHO_C" >&6
8822 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 test -z "$as_dir" && as_dir=.
8830 for ac_exec_ext in '' $ac_executable_extensions; do
8831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8832 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8833 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8843 OCAMLDOC=$ac_cv_path_OCAMLDOC
8844 if test -n "$OCAMLDOC"; then
8845 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8846 echo "${ECHO_T}$OCAMLDOC" >&6; }
8848 { echo "$as_me:$LINENO: result
: no
" >&5
8849 echo "${ECHO_T}no
" >&6; }
8853 test -n "$OCAMLDOC" && break
8856 for ac_prog in gas as
8858 # Extract the first word of "$ac_prog", so it can be a program name with args.
8859 set dummy $ac_prog; ac_word=$2
8860 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8861 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8862 if test "${ac_cv_path_GAS+set}" = set; then
8863 echo $ECHO_N "(cached
) $ECHO_C" >&6
8867 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8877 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8878 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8889 if test -n "$GAS"; then
8890 { echo "$as_me:$LINENO: result
: $GAS" >&5
8891 echo "${ECHO_T}$GAS" >&6; }
8893 { echo "$as_me:$LINENO: result
: no
" >&5
8894 echo "${ECHO_T}no
" >&6; }
8898 test -n "$GAS" && break
8902 { echo "$as_me:$LINENO: checking
for linker version
" >&5
8903 echo $ECHO_N "checking
for linker version...
$ECHO_C" >&6; }
8904 if test "${llvm_cv_link_version+set}" = set; then
8905 echo $ECHO_N "(cached
) $ECHO_C" >&6
8908 version_string="$
(ld
-v 2>&1 |
head -1)"
8911 if (echo "$version_string" | grep -q "ld64
"); then
8912 llvm_cv_link_version=$(echo "$version_string" | sed -e "s
#.*ld64-\([^ ]*\)#\1#")
8914 llvm_cv_link_version
=$
(echo "$version_string" |
sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8918 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8919 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8921 cat >>confdefs.h
<<_ACEOF
8922 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8927 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8928 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8929 if test "${llvm_cv_link_use_r+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 ac_cpp
='$CPP $CPPFLAGS'
8934 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8935 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8936 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8939 CFLAGS
="$CFLAGS -Wl,-R."
8940 cat >conftest.
$ac_ext <<_ACEOF
8943 cat confdefs.h
>>conftest.
$ac_ext
8944 cat >>conftest.
$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8955 rm -f conftest.
$ac_objext conftest
$ac_exeext
8956 if { (ac_try
="$ac_link"
8958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_link") 2>conftest.er1
8964 grep -v '^ *+' conftest.er1 >conftest.err
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970 { (case "(($ac_try" in
8971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8972 *) ac_try_echo
=$ac_try;;
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_try") 2>&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try
='test -s conftest$ac_exeext'
8980 { (case "(($ac_try" in
8981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_try") 2>&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 llvm_cv_link_use_r=yes
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 llvm_cv_link_use_r=no
8997 rm -f core conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
9001 ac_cpp='$CPP $CPPFLAGS'
9002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9008 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9009 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
9010 if test "$llvm_cv_link_use_r" = yes ; then
9012 cat >>confdefs.h <<\_ACEOF
9013 #define HAVE_LINK_R 1
9019 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9020 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9021 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 ac_cpp='$CPP $CPPFLAGS'
9026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9031 CFLAGS="$CFLAGS -Wl,-export-dynamic"
9032 cat >conftest.$ac_ext <<_ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9047 rm -f conftest.$ac_objext conftest$ac_exeext
9048 if { (ac_try="$ac_link"
9050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9051 *) ac_try_echo
=$ac_try;;
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_link") 2>conftest.er1
9056 grep -v '^ *+' conftest.er1
>conftest.err
9058 cat conftest.err
>&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9062 { (case "(($ac_try" in
9063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067 (eval "$ac_try") 2>&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest$ac_exeext'
9072 { (case "(($ac_try" in
9073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9074 *) ac_try_echo
=$ac_try;;
9076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077 (eval "$ac_try") 2>&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 llvm_cv_link_use_export_dynamic
=yes
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.
$ac_ext >&5
9086 llvm_cv_link_use_export_dynamic
=no
9089 rm -f core conftest.err conftest.
$ac_objext \
9090 conftest
$ac_exeext conftest.
$ac_ext
9093 ac_cpp
='$CPP $CPPFLAGS'
9094 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9095 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9096 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9100 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9101 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9102 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9104 cat >>confdefs.h
<<\_ACEOF
9105 #define HAVE_LINK_EXPORT_DYNAMIC 1
9111 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9112 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9113 if test "${llvm_cv_link_use_version_script+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 ac_cpp
='$CPP $CPPFLAGS'
9118 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9119 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9120 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9124 # The following code is from the autoconf manual,
9125 # "11.13: Limitations of Usual Tools".
9126 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9127 # Use mktemp if possible; otherwise fall back on mkdir,
9128 # with $RANDOM to make collisions less likely.
9132 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9134 test -n "$tmp" && test -d "$tmp"
9136 tmp
=$TMPDIR/foo$$
-$RANDOM
9137 (umask 077 && mkdir
"$tmp")
9140 echo "{" > "$tmp/export.map"
9141 echo " global: main;" >> "$tmp/export.map"
9142 echo " local: *;" >> "$tmp/export.map"
9143 echo "};" >> "$tmp/export.map"
9145 CFLAGS
="$CFLAGS -Wl,--version-script=$tmp/export.map"
9146 cat >conftest.
$ac_ext <<_ACEOF
9149 cat confdefs.h
>>conftest.
$ac_ext
9150 cat >>conftest.
$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9161 rm -f conftest.
$ac_objext conftest
$ac_exeext
9162 if { (ac_try
="$ac_link"
9164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_link") 2>conftest.er1
9170 grep -v '^ *+' conftest.er1 >conftest.err
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
9175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9176 { (case "(($ac_try" in
9177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9178 *) ac_try_echo
=$ac_try;;
9180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181 (eval "$ac_try") 2>&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; } &&
9185 { ac_try
='test -s conftest$ac_exeext'
9186 { (case "(($ac_try" in
9187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_try") 2>&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; }; then
9195 llvm_cv_link_use_version_script=yes
9197 echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9200 llvm_cv_link_use_version_script=no
9203 rm -f core conftest.err conftest.$ac_objext \
9204 conftest$ac_exeext conftest.$ac_ext
9205 rm "$tmp/export.map"
9209 ac_cpp='$CPP $CPPFLAGS'
9210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9216 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9217 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9218 if test "$llvm_cv_link_use_version_script" = yes ; then
9219 HAVE_LINK_VERSION_SCRIPT=1
9226 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9227 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9228 if test "${ac_cv_c_const+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 cat >conftest.$ac_ext <<_ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9241 /* FIXME: Include the comments suggested by Paul. */
9243 /* Ultrix mips cc rejects this. */
9244 typedef int charset[2];
9246 /* SunOS 4.1.1 cc rejects this. */
9247 char const *const *ccp;
9249 /* NEC SVR4.0.2 mips cc rejects this. */
9250 struct point {int x, y;};
9251 static struct point const zero = {0,0};
9252 /* AIX XL C 1.02.0.0 rejects this.
9253 It does not let you subtract one const X* pointer from another in
9254 an arm of an if-expression whose if-part is not a constant
9256 const char *g = "string";
9257 ccp = &g + (g ? g-g : 0);
9258 /* HPUX 7.0 cc rejects these. */
9261 ccp = (char const *const *) p;
9262 { /* SCO 3.2v4 cc rejects this. */
9264 char const *s = 0 ? (char *) 0 : (char const *) 0;
9269 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9271 const int *foo = &x[0];
9274 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9275 typedef const int *iptr;
9279 { /* AIX XL C 1.02.0.0 rejects this saying
9280 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9281 struct s { int j; const int *ap[3]; };
9282 struct s *b; b->j = 5;
9284 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9288 return !x[0] && !zero.x;
9295 rm -f conftest.$ac_objext
9296 if { (ac_try="$ac_compile"
9298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9299 *) ac_try_echo
=$ac_try;;
9301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_compile") 2>conftest.er1
9304 grep -v '^ *+' conftest.er1
>conftest.err
9306 cat conftest.err
>&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9310 { (case "(($ac_try" in
9311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9312 *) ac_try_echo=$ac_try;;
9314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9315 (eval "$ac_try") 2>&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; } &&
9319 { ac_try='test -s conftest.$ac_objext'
9320 { (case "(($ac_try" in
9321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9322 *) ac_try_echo
=$ac_try;;
9324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9325 (eval "$ac_try") 2>&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.
$ac_ext >&5
9337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9339 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9340 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9341 if test $ac_cv_c_const = no
; then
9343 cat >>confdefs.h
<<\_ACEOF
9355 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9356 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9357 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9358 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9359 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 cat >conftest.
$ac_ext <<_ACEOF
9365 cat confdefs.h
>>conftest.
$ac_ext
9366 cat >>conftest.
$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 #include <sys/types.h>
9380 rm -f conftest.
$ac_objext
9381 if { (ac_try
="$ac_compile"
9383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_compile") 2>conftest.er1
9389 grep -v '^ *+' conftest.er1 >conftest.err
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
9394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9395 { (case "(($ac_try" in
9396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9397 *) ac_try_echo
=$ac_try;;
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_try") 2>&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; } &&
9404 { ac_try
='test -s conftest.$ac_objext'
9405 { (case "(($ac_try" in
9406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410 (eval "$ac_try") 2>&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414 eval "$as_ac_Header=yes"
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 eval "$as_ac_Header=no"
9422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424 ac_res=`eval echo '${'$as_ac_Header'}'`
9425 { echo "$as_me:$LINENO: result: $ac_res" >&5
9426 echo "${ECHO_T}$ac_res" >&6; }
9427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9428 cat >>confdefs.h <<_ACEOF
9429 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
9432 ac_header_dirent=$ac_hdr; break
9436 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9437 if test $ac_header_dirent = dirent.h; then
9438 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9439 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9440 if test "${ac_cv_search_opendir+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 ac_func_search_save_LIBS=$LIBS
9444 cat >conftest.$ac_ext <<_ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9451 /* Override any GCC internal prototype to avoid an error.
9452 Use char because int might match the return type of a GCC
9453 builtin and then its argument prototype would still apply. */
9466 for ac_lib in '' dir; do
9467 if test -z "$ac_lib"; then
9468 ac_res="none required"
9471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9473 rm -f conftest.$ac_objext conftest$ac_exeext
9474 if { (ac_try="$ac_link"
9476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9477 *) ac_try_echo
=$ac_try;;
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_link") 2>conftest.er1
9482 grep -v '^ *+' conftest.er1
>conftest.err
9484 cat conftest.err
>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9488 { (case "(($ac_try" in
9489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9490 *) ac_try_echo=$ac_try;;
9492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9493 (eval "$ac_try") 2>&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; } &&
9497 { ac_try='test -s conftest$ac_exeext'
9498 { (case "(($ac_try" in
9499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9500 *) ac_try_echo
=$ac_try;;
9502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9503 (eval "$ac_try") 2>&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
9507 ac_cv_search_opendir
=$ac_res
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.
$ac_ext >&5
9515 rm -f core conftest.err conftest.
$ac_objext \
9517 if test "${ac_cv_search_opendir+set}" = set; then
9521 if test "${ac_cv_search_opendir+set}" = set; then
9524 ac_cv_search_opendir
=no
9527 LIBS
=$ac_func_search_save_LIBS
9529 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9530 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9531 ac_res
=$ac_cv_search_opendir
9532 if test "$ac_res" != no
; then
9533 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9538 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9539 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9540 if test "${ac_cv_search_opendir+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 ac_func_search_save_LIBS
=$LIBS
9544 cat >conftest.
$ac_ext <<_ACEOF
9547 cat confdefs.h
>>conftest.
$ac_ext
9548 cat >>conftest.
$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9551 /* Override any GCC internal prototype to avoid an error.
9552 Use char because int might match the return type of a GCC
9553 builtin and then its argument prototype would still apply. */
9566 for ac_lib
in '' x
; do
9567 if test -z "$ac_lib"; then
9568 ac_res
="none required"
9571 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9573 rm -f conftest.
$ac_objext conftest
$ac_exeext
9574 if { (ac_try
="$ac_link"
9576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_link") 2>conftest.er1
9582 grep -v '^ *+' conftest.er1 >conftest.err
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9588 { (case "(($ac_try" in
9589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9590 *) ac_try_echo
=$ac_try;;
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_try") 2>&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try
='test -s conftest$ac_exeext'
9598 { (case "(($ac_try" in
9599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_try") 2>&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_cv_search_opendir=$ac_res
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9615 rm -f core conftest.err conftest.$ac_objext \
9617 if test "${ac_cv_search_opendir+set}" = set; then
9621 if test "${ac_cv_search_opendir+set}" = set; then
9624 ac_cv_search_opendir=no
9627 LIBS=$ac_func_search_save_LIBS
9629 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9630 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9631 ac_res=$ac_cv_search_opendir
9632 if test "$ac_res" != no; then
9633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9640 for ac_header in dlfcn.h
9642 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 ac_res=`eval echo '${'$as_ac_Header'}'`
9650 { echo "$as_me:$LINENO: result: $ac_res" >&5
9651 echo "${ECHO_T}$ac_res" >&6; }
9653 # Is the header compilable?
9654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9656 cat >conftest.$ac_ext <<_ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 $ac_includes_default
9663 #include <$ac_header>
9665 rm -f conftest.$ac_objext
9666 if { (ac_try="$ac_compile"
9668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9669 *) ac_try_echo
=$ac_try;;
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_compile") 2>conftest.er1
9674 grep -v '^ *+' conftest.er1
>conftest.err
9676 cat conftest.err
>&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
9679 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9680 { (case "(($ac_try" in
9681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9682 *) ac_try_echo=$ac_try;;
9684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9685 (eval "$ac_try") 2>&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } &&
9689 { ac_try='test -s conftest.$ac_objext'
9690 { (case "(($ac_try" in
9691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9692 *) ac_try_echo
=$ac_try;;
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_try") 2>&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_header_compiler
=yes
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.
$ac_ext >&5
9704 ac_header_compiler
=no
9707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9709 echo "${ECHO_T}$ac_header_compiler" >&6; }
9711 # Is the header present?
9712 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9714 cat >conftest.
$ac_ext <<_ACEOF
9717 cat confdefs.h
>>conftest.
$ac_ext
9718 cat >>conftest.
$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9720 #include <$ac_header>
9722 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9730 grep -v '^ *+' conftest.er1 >conftest.err
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } >/dev/null; then
9735 if test -s conftest.err; then
9736 ac_cpp_err=$ac_c_preproc_warn_flag
9737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9744 if test -z "$ac_cpp_err"; then
9745 ac_header_preproc=yes
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 ac_header_preproc=no
9753 rm -f conftest.err conftest.$ac_ext
9754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9755 echo "${ECHO_T}$ac_header_preproc" >&6; }
9757 # So? What about this header?
9758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9764 ac_header_preproc=yes
9767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9780 ## ----------------------------------- ##
9781 ## Report this to llvmbugs@cs.uiuc.edu ##
9782 ## ----------------------------------- ##
9784 ) | sed "s/^/$as_me: WARNING: /" >&2
9787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 eval "$as_ac_Header=\$ac_header_preproc"
9794 ac_res=`eval echo '${'$as_ac_Header'}'`
9795 { echo "$as_me:$LINENO: result: $ac_res" >&5
9796 echo "${ECHO_T}$ac_res" >&6; }
9799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9800 cat >>confdefs.h <<_ACEOF
9801 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9808 # Check whether --enable-ltdl-install was given.
9809 if test "${enable_ltdl_install+set}" = set; then
9810 enableval=$enable_ltdl_install;
9816 if test x"${enable_ltdl_install-no}" != xno; then
9818 INSTALL_LTDL_FALSE='#'
9820 INSTALL_LTDL_TRUE='#'
9826 if test x"${enable_ltdl_convenience-no}" != xno; then
9827 CONVENIENCE_LTDL_TRUE=
9828 CONVENIENCE_LTDL_FALSE='#'
9830 CONVENIENCE_LTDL_TRUE='#'
9831 CONVENIENCE_LTDL_FALSE=
9835 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9836 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9838 libname_spec='lib$name'
9846 shlibpath_overrides_runpath=unknown
9848 dynamic_linker="$host_os ld.so"
9849 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9850 if test "$GCC" = yes; then
9851 sys_lib_search_path_spec=`$CC -print-search-dirs |
grep "^libraries:" |
$SED -e "s/^libraries://" -e "s,=/,/,g"`
9852 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9853 # if the path contains ";" then we assume it to be the separator
9854 # otherwise default to the standard path separator (i.e. ":") - it is
9855 # assumed that no part of a normal pathname contains ";" but that should
9856 # okay in the real world where ";" in dirpaths is itself problematic.
9857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" |
$SED -e 's/;/ /g'`
9859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" |
$SED -e "s/$PATH_SEPARATOR/ /g"`
9862 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9864 need_lib_prefix=unknown
9865 hardcode_into_libs=no
9867 # when you set need_version to no, make sure it does not cause -set_version
9868 # flags to be left without arguments
9869 need_version=unknown
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9875 shlibpath_var=LIBPATH
9877 # AIX 3 has no versioning support, so we append a major version to the name.
9878 soname_spec='${libname}${release}${shared_ext}$major'
9885 hardcode_into_libs=yes
9886 if test "$host_cpu" = ia64; then
9887 # AIX 5 supports IA64
9888 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9889 shlibpath_var=LD_LIBRARY_PATH
9891 # With GCC up to 2.95.x, collect2 would create an import file
9892 # for dependence libraries. The import file would start with
9893 # the line `#! .'. This would cause the generated library to
9894 # depend on `.', always an invalid library. This was fixed in
9895 # development snapshots of GCC prior to 3.0.
9897 aix4 | aix4.
[01] | aix4.
[01].
*)
9898 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9900 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
9907 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9908 # soname into executable. Probably we can add versioning support to
9909 # collect2, so additional links can be useful in future.
9910 if test "$aix_use_runtimelinking" = yes; then
9911 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9912 # instead of lib<name>.a to let people know that these are not
9913 # typical AIX shared libraries.
9914 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9916 # We preserve .a as extension for shared libraries through AIX4.2
9917 # and later when we are not doing run time linking.
9918 library_names_spec
='${libname}${release}.a $libname.a'
9919 soname_spec
='${libname}${release}${shared_ext}$major'
9921 shlibpath_var
=LIBPATH
9926 library_names_spec
='$libname.ixlibrary $libname.a'
9927 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9928 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'
9932 library_names_spec
='${libname}${shared_ext}'
9933 dynamic_linker
="$host_os ld.so"
9934 shlibpath_var
=LIBRARY_PATH
9940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 soname_spec
='${libname}${release}${shared_ext}$major'
9942 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9943 shlibpath_var
=LD_LIBRARY_PATH
9944 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9945 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9946 # the default ld.so.conf also contains /usr/contrib/lib and
9947 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9948 # libtool to hard-code these into programs
9951 cygwin
* | mingw
* | pw32
*)
9952 version_type
=windows
9957 case $GCC,$host_os in
9958 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
9959 library_names_spec
='$libname.dll.a'
9960 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9961 postinstall_cmds
='base_file=`basename \${file}`~
9962 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9963 dldir=$destdir/`dirname \$dlpath`~
9964 test -d \$dldir || mkdir -p \$dldir~
9965 $install_prog $dir/$dlname \$dldir/$dlname~
9966 chmod a+x \$dldir/$dlname'
9967 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9968 dlpath=$dir/\$dldll~
9970 shlibpath_overrides_runpath
=yes
9974 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9975 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9976 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9979 # MinGW DLLs use traditional 'lib' prefix
9980 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9981 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9982 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
9983 # It is most probably a Windows format PATH printed by
9984 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9985 # path with ; separators, and with drive letters. We can handle the
9986 # drive letters (cygwin fileutils understands them), so leave them,
9987 # especially as we might pass files found there to a mingw objdump,
9988 # which wouldn't understand a cygwinified path. Ahh.
9989 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9991 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9995 # pw32 DLLs use 'pw' prefix rather than 'lib'
9996 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10002 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10005 dynamic_linker
='Win32 ld.exe'
10006 # FIXME: first we should search . and the directory the executable is in
10010 darwin
* | rhapsody
*)
10011 dynamic_linker
="$host_os dyld"
10012 version_type
=darwin
10015 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10016 soname_spec
='${libname}${release}${major}$shared_ext'
10017 shlibpath_overrides_runpath
=yes
10018 shlibpath_var
=DYLD_LIBRARY_PATH
10019 shrext_cmds
='.dylib'
10020 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10021 if test "$GCC" = yes; then
10022 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"`
10024 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
10026 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10034 soname_spec
='${libname}${release}${shared_ext}$major'
10035 shlibpath_var
=LD_LIBRARY_PATH
10046 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10047 soname_spec
='${libname}${release}${shared_ext}$major'
10048 shlibpath_var
=LD_LIBRARY_PATH
10049 shlibpath_overrides_runpath
=no
10050 hardcode_into_libs
=yes
10051 dynamic_linker
='GNU ld.so'
10054 freebsd
* | dragonfly
*)
10055 # DragonFly does not have aout. When/if they implement a new
10056 # versioning mechanism, adjust this.
10057 if test -x /usr
/bin
/objformat
; then
10058 objformat
=`/usr/bin/objformat`
10061 freebsd
[123]*) objformat
=aout
;;
10062 *) objformat
=elf
;;
10065 version_type
=freebsd-
$objformat
10066 case $version_type in
10068 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10073 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10077 shlibpath_var
=LD_LIBRARY_PATH
10080 shlibpath_overrides_runpath
=yes
10082 freebsd3.
[01]* | freebsdelf3.
[01]*)
10083 shlibpath_overrides_runpath
=yes
10084 hardcode_into_libs
=yes
10086 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10087 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10088 shlibpath_overrides_runpath
=no
10089 hardcode_into_libs
=yes
10091 freebsd
*) # from 4.6 on
10092 shlibpath_overrides_runpath
=yes
10093 hardcode_into_libs
=yes
10102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10103 soname_spec
='${libname}${release}${shared_ext}$major'
10104 shlibpath_var
=LD_LIBRARY_PATH
10105 hardcode_into_libs
=yes
10108 hpux9
* | hpux10
* | hpux11
*)
10109 # Give a soname corresponding to the major version so that dld.sl refuses to
10110 # link against other versions.
10117 hardcode_into_libs
=yes
10118 dynamic_linker
="$host_os dld.so"
10119 shlibpath_var
=LD_LIBRARY_PATH
10120 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10121 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 soname_spec
='${libname}${release}${shared_ext}$major'
10123 if test "X$HPUX_IA64_MODE" = X32
; then
10124 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10126 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10128 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10132 hardcode_into_libs
=yes
10133 dynamic_linker
="$host_os dld.sl"
10134 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10135 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10136 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec
='${libname}${release}${shared_ext}$major'
10138 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10139 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10143 dynamic_linker
="$host_os dld.sl"
10144 shlibpath_var
=SHLIB_PATH
10145 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10146 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 soname_spec
='${libname}${release}${shared_ext}$major'
10150 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10151 postinstall_cmds
='chmod 555 $lib'
10158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10159 soname_spec
='${libname}${release}${shared_ext}$major'
10160 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10161 shlibpath_var
=LD_LIBRARY_PATH
10162 shlibpath_overrides_runpath
=no
10163 hardcode_into_libs
=yes
10166 irix5
* | irix6
* | nonstopux
*)
10168 nonstopux
*) version_type
=nonstopux
;;
10170 if test "$lt_cv_prog_gnu_ld" = yes; then
10178 soname_spec
='${libname}${release}${shared_ext}$major'
10179 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10181 irix5
* | nonstopux
*)
10182 libsuff
= shlibsuff
=
10185 case $LD in # libtool.m4 will add one of these switches to LD
10186 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10187 libsuff
= shlibsuff
= libmagic
=32-bit;;
10188 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10189 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10190 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10191 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10192 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10196 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10197 shlibpath_overrides_runpath
=no
10198 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10199 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10200 hardcode_into_libs
=yes
10203 # No shared lib support for Linux oldld, aout, or coff.
10204 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10208 # This must be Linux ELF.
10213 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec
='${libname}${release}${shared_ext}$major'
10215 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10216 shlibpath_var
=LD_LIBRARY_PATH
10217 shlibpath_overrides_runpath
=no
10218 # This implies no fast_install, which is unacceptable.
10219 # Some rework will be needed to allow for fast_install
10220 # before this can be enabled.
10221 hardcode_into_libs
=yes
10223 # Append ld.so.conf contents to the search path
10224 if test -f /etc
/ld.so.conf
; then
10225 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' ' '`
10226 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10229 # We used to test for /lib/ld.so.1 and disable shared libraries on
10230 # powerpc, because MkLinux only supported shared libraries with the
10231 # GNU dynamic linker. Since this was broken with cross compilers,
10232 # most powerpc-linux boxes support dynamic linking these days and
10233 # people can always --disable-shared, the test was removed, and we
10234 # assume the GNU/Linux dynamic linker is in use.
10235 dynamic_linker
='GNU/Linux ld.so'
10242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10243 soname_spec
='${libname}${release}${shared_ext}$major'
10244 shlibpath_var
=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath
=no
10246 hardcode_into_libs
=yes
10247 dynamic_linker
='GNU ld.so'
10254 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10255 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10256 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10257 dynamic_linker
='NetBSD (a.out) ld.so'
10259 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10260 soname_spec
='${libname}${release}${shared_ext}$major'
10261 dynamic_linker
='NetBSD ld.elf_so'
10263 shlibpath_var
=LD_LIBRARY_PATH
10264 shlibpath_overrides_runpath
=yes
10265 hardcode_into_libs
=yes
10270 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271 shlibpath_var
=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath
=yes
10279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 soname_spec
='${libname}${release}${shared_ext}$major'
10281 shlibpath_var
=LD_LIBRARY_PATH
10282 shlibpath_overrides_runpath
=yes
10287 sys_lib_dlsearch_path_spec
="/usr/lib"
10289 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10291 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10292 *) need_version
=no
;;
10294 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10295 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10296 shlibpath_var
=LD_LIBRARY_PATH
10297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10299 openbsd2.
[89] | openbsd2.
[89].
*)
10300 shlibpath_overrides_runpath
=no
10303 shlibpath_overrides_runpath
=yes
10307 shlibpath_overrides_runpath
=yes
10312 libname_spec
='$name'
10315 library_names_spec
='$libname${shared_ext} $libname.a'
10316 dynamic_linker
='OS/2 ld.exe'
10317 shlibpath_var
=LIBPATH
10320 osf3
* | osf4
* | osf5
*)
10324 soname_spec
='${libname}${release}${shared_ext}$major'
10325 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 shlibpath_var
=LD_LIBRARY_PATH
10327 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10328 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336 soname_spec
='${libname}${release}${shared_ext}$major'
10337 shlibpath_var
=LD_LIBRARY_PATH
10338 shlibpath_overrides_runpath
=yes
10339 hardcode_into_libs
=yes
10340 # ldd complains unless libraries are executable
10341 postinstall_cmds
='chmod +x $lib'
10346 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10347 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10348 shlibpath_var
=LD_LIBRARY_PATH
10349 shlibpath_overrides_runpath
=yes
10350 if test "$with_gnu_ld" = yes; then
10358 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 soname_spec
='${libname}${release}${shared_ext}$major'
10360 shlibpath_var
=LD_LIBRARY_PATH
10361 case $host_vendor in
10363 shlibpath_overrides_runpath
=no
10365 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10366 runpath_var
=LD_RUN_PATH
10374 shlibpath_overrides_runpath
=no
10375 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10381 if test -d /usr
/nec
;then
10383 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10384 soname_spec
='$libname${shared_ext}.$major'
10385 shlibpath_var
=LD_LIBRARY_PATH
10389 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10390 version_type
=freebsd-elf
10393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10394 soname_spec
='${libname}${release}${shared_ext}$major'
10395 shlibpath_var
=LD_LIBRARY_PATH
10396 hardcode_into_libs
=yes
10397 if test "$with_gnu_ld" = yes; then
10398 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10399 shlibpath_overrides_runpath
=no
10401 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10402 shlibpath_overrides_runpath
=yes
10405 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10409 sys_lib_dlsearch_path_spec
='/usr/lib'
10414 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10415 soname_spec
='${libname}${release}${shared_ext}$major'
10416 shlibpath_var
=LD_LIBRARY_PATH
10423 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10424 echo "${ECHO_T}$dynamic_linker" >&6; }
10425 test "$dynamic_linker" = no
&& can_build_shared
=no
10427 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10428 if test "$GCC" = yes; then
10429 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10433 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10434 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10435 if test "${libltdl_cv_shlibext+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10440 eval libltdl_cv_shlibext
=$shrext_cmds
10443 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10444 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10445 if test -n "$libltdl_cv_shlibext"; then
10447 cat >>confdefs.h
<<_ACEOF
10448 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10454 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10455 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10456 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
10459 libltdl_cv_shlibpath_var
="$shlibpath_var"
10461 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10462 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10463 if test -n "$libltdl_cv_shlibpath_var"; then
10465 cat >>confdefs.h
<<_ACEOF
10466 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10472 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10473 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10474 if test "${libltdl_cv_sys_search_path+set}" = set; then
10475 echo $ECHO_N "(cached) $ECHO_C" >&6
10477 libltdl_cv_sys_search_path
="$sys_lib_dlsearch_path_spec"
10479 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10480 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10481 if test -n "$libltdl_cv_sys_search_path"; then
10483 for dir
in $libltdl_cv_sys_search_path; do
10484 if test -z "$sys_search_path"; then
10485 sys_search_path
="$dir"
10487 sys_search_path
="$sys_search_path$PATH_SEPARATOR$dir"
10491 cat >>confdefs.h
<<_ACEOF
10492 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10497 { echo "$as_me:$LINENO: checking for objdir" >&5
10498 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10499 if test "${libltdl_cv_objdir+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 libltdl_cv_objdir
="$objdir"
10503 if test -n "$objdir"; then
10506 rm -f .libs
2>/dev
/null
10507 mkdir .libs
2>/dev
/null
10508 if test -d .libs
; then
10509 libltdl_cv_objdir
=.libs
10511 # MS-DOS does not allow filenames that begin with a dot.
10512 libltdl_cv_objdir
=_libs
10514 rmdir .libs
2>/dev
/null
10518 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10519 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10521 cat >>confdefs.h
<<_ACEOF
10522 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10530 # Check for command to grab the raw symbol name followed by C symbol from nm.
10531 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10532 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10533 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 # These are sane defaults that work on at least a few old systems.
10538 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10540 # Character class describing NM global symbol codes.
10541 symcode
='[BCDEGRST]'
10543 # Regexp to match symbols that can be accessed directly from C.
10544 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
10546 # Transform an extracted symbol line into a proper C declaration
10547 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10549 # Transform an extracted symbol line into symbol name and symbol address
10550 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'"
10552 # Define system-specific variables.
10557 cygwin
* | mingw
* | pw32
*)
10558 symcode
='[ABCDGISTW]'
10560 hpux
*) # Its linker distinguishes data from code symbols
10561 if test "$host_cpu" = ia64
; then
10562 symcode
='[ABCDEGRST]'
10564 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10565 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'"
10568 if test "$host_cpu" = ia64
; then
10569 symcode
='[ABCDGIRSTW]'
10570 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10571 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'"
10574 irix
* | nonstopux
*)
10575 symcode
='[BCDEGRST]'
10578 symcode
='[BCDEGQRST]'
10589 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10597 # Handle CRLF in mingw tool chain
10601 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10605 # If we're using GNU nm, then use its standard symbol codes.
10606 case `$NM -V 2>&1` in
10607 *GNU
* |
*'with BFD'*)
10608 symcode
='[ABCDGIRSTW]' ;;
10611 # Try without a prefix undercore, then with it.
10612 for ac_symprfx
in "" "_"; do
10614 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10615 symxfrm
="\\1 $ac_symprfx\\2 \\2"
10617 # Write the raw and C identifiers.
10618 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10620 # Check to see that the pipe works correctly.
10624 cat > conftest.
$ac_ext <<EOF
10629 void nm_test_func(){}
10633 int main(){nm_test_var='a';nm_test_func();return(0);}
10636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10637 (eval $ac_compile) 2>&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; then
10641 # Now try to grab the symbols.
10643 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10644 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } && test -s "$nlist"; then
10648 # Try sorting and uniquifying the output.
10649 if sort "$nlist" |
uniq > "$nlist"T
; then
10650 mv -f "$nlist"T
"$nlist"
10655 # Make sure that we snagged all the symbols we need.
10656 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
10657 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
10658 cat <<EOF > conftest.$ac_ext
10664 # Now generate the symbol file.
10665 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10667 cat <<EOF >> conftest.$ac_ext
10668 #if defined (__STDC__) && __STDC__
10669 # define lt_ptr_t void *
10671 # define lt_ptr_t char *
10675 /* The mapping between symbol names and symbols. */
10680 lt_preloaded_symbols[] =
10683 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
10684 cat <<\EOF
>> conftest.
$ac_ext
10692 # Now try linking the two files.
10693 mv conftest.
$ac_objext conftstm.
$ac_objext
10694 lt_save_LIBS
="$LIBS"
10695 lt_save_CFLAGS
="$CFLAGS"
10696 LIBS
="conftstm.$ac_objext"
10697 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10699 (eval $ac_link) 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
10705 LIBS
="$lt_save_LIBS"
10706 CFLAGS
="$lt_save_CFLAGS"
10708 echo "cannot find nm_test_func in $nlist" >&5
10711 echo "cannot find nm_test_var in $nlist" >&5
10714 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10717 echo "$progname: failed program was:" >&5
10718 cat conftest.
$ac_ext >&5
10720 rm -f conftest
* conftst
*
10722 # Do not use the global_symbol_pipe unless it works.
10723 if test "$pipe_works" = yes; then
10726 lt_cv_sys_global_symbol_pipe
=
10732 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10733 lt_cv_sys_global_symbol_to_cdecl
=
10735 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10736 { echo "$as_me:$LINENO: result: failed" >&5
10737 echo "${ECHO_T}failed" >&6; }
10739 { echo "$as_me:$LINENO: result: ok" >&5
10740 echo "${ECHO_T}ok" >&6; }
10744 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10745 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10746 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10750 libltdl_cv_preloaded_symbols
=yes
10752 libltdl_cv_preloaded_symbols
=no
10756 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10757 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10758 if test x
"$libltdl_cv_preloaded_symbols" = xyes
; then
10760 cat >>confdefs.h
<<\_ACEOF
10761 #define HAVE_PRELOADED_SYMBOLS 1
10769 ac_cpp
='$CPP $CPPFLAGS'
10770 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10771 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10772 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10775 { echo "$as_me:$LINENO: checking for shl_load" >&5
10776 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10777 if test "${ac_cv_func_shl_load+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 cat >conftest.
$ac_ext <<_ACEOF
10783 cat confdefs.h
>>conftest.
$ac_ext
10784 cat >>conftest.
$ac_ext <<_ACEOF
10785 /* end confdefs.h. */
10786 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10788 #define shl_load innocuous_shl_load
10790 /* System header to define __stub macros and hopefully few prototypes,
10791 which can conflict with char shl_load (); below.
10792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10793 <limits.h> exists even on freestanding compilers. */
10796 # include <limits.h>
10798 # include <assert.h>
10803 /* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10810 /* The GNU C library defines this for functions which it implements
10811 to always fail with ENOSYS. Some functions are actually named
10812 something starting with __ and the normal name is an alias. */
10813 #if defined __stub_shl_load || defined __stub___shl_load
10820 return shl_load ();
10825 rm -f conftest.
$ac_objext conftest
$ac_exeext
10826 if { (ac_try
="$ac_link"
10827 case "(($ac_try" in
10828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_link") 2>conftest.er1
10834 grep -v '^ *+' conftest.er1 >conftest.err
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10840 { (case "(($ac_try" in
10841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10842 *) ac_try_echo
=$ac_try;;
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_try") 2>&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; } &&
10849 { ac_try
='test -s conftest$ac_exeext'
10850 { (case "(($ac_try" in
10851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10852 *) ac_try_echo=$ac_try;;
10854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855 (eval "$ac_try") 2>&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 ac_cv_func_shl_load=yes
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_cv_func_shl_load=no
10867 rm -f core conftest.err conftest.$ac_objext \
10868 conftest$ac_exeext conftest.$ac_ext
10870 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10871 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10872 if test $ac_cv_func_shl_load = yes; then
10874 cat >>confdefs.h <<\_ACEOF
10875 #define HAVE_SHL_LOAD 1
10879 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10880 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10881 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 ac_check_lib_save_LIBS=$LIBS
10886 cat >conftest.$ac_ext <<_ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10893 /* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10903 return shl_load ();
10908 rm -f conftest.$ac_objext conftest$ac_exeext
10909 if { (ac_try="$ac_link"
10910 case "(($ac_try" in
10911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10912 *) ac_try_echo
=$ac_try;;
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_link") 2>conftest.er1
10917 grep -v '^ *+' conftest.er1
>conftest.err
10919 cat conftest.err
>&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923 { (case "(($ac_try" in
10924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_try") 2>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest$ac_exeext'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10935 *) ac_try_echo
=$ac_try;;
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 ac_cv_lib_dld_shl_load
=yes
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.
$ac_ext >&5
10947 ac_cv_lib_dld_shl_load
=no
10950 rm -f core conftest.err conftest.
$ac_objext \
10951 conftest
$ac_exeext conftest.
$ac_ext
10952 LIBS
=$ac_check_lib_save_LIBS
10954 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10955 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10956 if test $ac_cv_lib_dld_shl_load = yes; then
10958 cat >>confdefs.h
<<\_ACEOF
10959 #define HAVE_SHL_LOAD 1
10962 LIBADD_DL
="$LIBADD_DL -ldld"
10964 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10965 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10966 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 ac_check_lib_save_LIBS
=$LIBS
10971 cat >conftest.
$ac_ext <<_ACEOF
10974 cat confdefs.h
>>conftest.
$ac_ext
10975 cat >>conftest.
$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10978 /* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
10993 rm -f conftest.
$ac_objext conftest
$ac_exeext
10994 if { (ac_try
="$ac_link"
10995 case "(($ac_try" in
10996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_link") 2>conftest.er1
11002 grep -v '^ *+' conftest.er1 >conftest.err
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11008 { (case "(($ac_try" in
11009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11010 *) ac_try_echo
=$ac_try;;
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_try") 2>&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try
='test -s conftest$ac_exeext'
11018 { (case "(($ac_try" in
11019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_try") 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_cv_lib_dl_dlopen=yes
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 ac_cv_lib_dl_dlopen=no
11035 rm -f core conftest.err conftest.$ac_objext \
11036 conftest$ac_exeext conftest.$ac_ext
11037 LIBS=$ac_check_lib_save_LIBS
11039 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11040 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11041 if test $ac_cv_lib_dl_dlopen = yes; then
11043 cat >>confdefs.h <<\_ACEOF
11044 #define HAVE_LIBDL 1
11047 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11049 cat >conftest.$ac_ext <<_ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11056 # include <dlfcn.h>
11067 rm -f conftest.$ac_objext conftest$ac_exeext
11068 if { (ac_try="$ac_link"
11069 case "(($ac_try" in
11070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11071 *) ac_try_echo
=$ac_try;;
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_link") 2>conftest.er1
11076 grep -v '^ *+' conftest.er1
>conftest.err
11078 cat conftest.err
>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11082 { (case "(($ac_try" in
11083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_try") 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try='test -s conftest$ac_exeext'
11092 { (case "(($ac_try" in
11093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11094 *) ac_try_echo
=$ac_try;;
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_try") 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
11102 cat >>confdefs.h
<<\_ACEOF
11103 #define HAVE_LIBDL 1
11105 libltdl_cv_func_dlopen
="yes"
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.
$ac_ext >&5
11110 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11111 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11112 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 ac_check_lib_save_LIBS
=$LIBS
11116 LIBS
="-lsvld $LIBS"
11117 cat >conftest.
$ac_ext <<_ACEOF
11120 cat confdefs.h
>>conftest.
$ac_ext
11121 cat >>conftest.
$ac_ext <<_ACEOF
11122 /* end confdefs.h. */
11124 /* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11139 rm -f conftest.
$ac_objext conftest
$ac_exeext
11140 if { (ac_try
="$ac_link"
11141 case "(($ac_try" in
11142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_link") 2>conftest.er1
11148 grep -v '^ *+' conftest.er1 >conftest.err
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11154 { (case "(($ac_try" in
11155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11156 *) ac_try_echo
=$ac_try;;
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_try") 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try
='test -s conftest$ac_exeext'
11164 { (case "(($ac_try" in
11165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_try") 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 ac_cv_lib_svld_dlopen=yes
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 ac_cv_lib_svld_dlopen=no
11181 rm -f core conftest.err conftest.$ac_objext \
11182 conftest$ac_exeext conftest.$ac_ext
11183 LIBS=$ac_check_lib_save_LIBS
11185 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11186 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11187 if test $ac_cv_lib_svld_dlopen = yes; then
11189 cat >>confdefs.h <<\_ACEOF
11190 #define HAVE_LIBDL 1
11193 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11195 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11196 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11197 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 ac_check_lib_save_LIBS=$LIBS
11202 cat >conftest.$ac_ext <<_ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11209 /* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
11219 return dld_link ();
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (ac_try="$ac_link"
11226 case "(($ac_try" in
11227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11228 *) ac_try_echo
=$ac_try;;
11230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_link") 2>conftest.er1
11233 grep -v '^ *+' conftest.er1
>conftest.err
11235 cat conftest.err
>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } &&
11238 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11239 { (case "(($ac_try" in
11240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_try") 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest$ac_exeext'
11249 { (case "(($ac_try" in
11250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11251 *) ac_try_echo
=$ac_try;;
11253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254 (eval "$ac_try") 2>&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; }; then
11258 ac_cv_lib_dld_dld_link
=yes
11260 echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.
$ac_ext >&5
11263 ac_cv_lib_dld_dld_link
=no
11266 rm -f core conftest.err conftest.
$ac_objext \
11267 conftest
$ac_exeext conftest.
$ac_ext
11268 LIBS
=$ac_check_lib_save_LIBS
11270 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11271 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11272 if test $ac_cv_lib_dld_dld_link = yes; then
11274 cat >>confdefs.h
<<\_ACEOF
11278 LIBADD_DL
="$LIBADD_DL -ldld"
11280 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11281 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11282 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 cat >conftest.
$ac_ext <<_ACEOF
11288 cat confdefs.h
>>conftest.
$ac_ext
11289 cat >>conftest.
$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11293 #define _dyld_func_lookup innocuous__dyld_func_lookup
11295 /* System header to define __stub macros and hopefully few prototypes,
11296 which can conflict with char _dyld_func_lookup (); below.
11297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11298 <limits.h> exists even on freestanding compilers. */
11301 # include <limits.h>
11303 # include <assert.h>
11306 #undef _dyld_func_lookup
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11314 char _dyld_func_lookup ();
11315 /* The GNU C library defines this for functions which it implements
11316 to always fail with ENOSYS. Some functions are actually named
11317 something starting with __ and the normal name is an alias. */
11318 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11325 return _dyld_func_lookup ();
11330 rm -f conftest.
$ac_objext conftest
$ac_exeext
11331 if { (ac_try
="$ac_link"
11332 case "(($ac_try" in
11333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_link") 2>conftest.er1
11339 grep -v '^ *+' conftest.er1 >conftest.err
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } &&
11344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11345 { (case "(($ac_try" in
11346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11347 *) ac_try_echo
=$ac_try;;
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_try") 2>&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; } &&
11354 { ac_try
='test -s conftest$ac_exeext'
11355 { (case "(($ac_try" in
11356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_try") 2>&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; }; then
11364 ac_cv_func__dyld_func_lookup=yes
11366 echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11369 ac_cv_func__dyld_func_lookup=no
11372 rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11375 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11376 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11377 if test $ac_cv_func__dyld_func_lookup = yes; then
11379 cat >>confdefs.h <<\_ACEOF
11380 #define HAVE_DYLD 1
11394 rm -f core conftest.err conftest.$ac_objext \
11395 conftest$ac_exeext conftest.$ac_ext
11406 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11408 lt_save_LIBS="$LIBS"
11409 LIBS="$LIBS $LIBADD_DL"
11411 for ac_func in dlerror
11413 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 cat >conftest.$ac_ext <<_ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11427 #define $ac_func innocuous_$ac_func
11429 /* System header to define __stub macros and hopefully few prototypes,
11430 which can conflict with char $ac_func (); below.
11431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11432 <limits.h> exists even on freestanding compilers. */
11435 # include <limits.h>
11437 # include <assert.h>
11442 /* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11449 /* The GNU C library defines this for functions which it implements
11450 to always fail with ENOSYS. Some functions are actually named
11451 something starting with __ and the normal name is an alias. */
11452 #if defined __stub_$ac_func || defined __stub___$ac_func
11459 return $ac_func ();
11464 rm -f conftest.$ac_objext conftest$ac_exeext
11465 if { (ac_try="$ac_link"
11466 case "(($ac_try" in
11467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11468 *) ac_try_echo
=$ac_try;;
11470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471 (eval "$ac_link") 2>conftest.er1
11473 grep -v '^ *+' conftest.er1
>conftest.err
11475 cat conftest.err
>&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } &&
11478 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11479 { (case "(($ac_try" in
11480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_try") 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; } &&
11488 { ac_try='test -s conftest$ac_exeext'
11489 { (case "(($ac_try" in
11490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11491 *) ac_try_echo
=$ac_try;;
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_try") 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; }; then
11498 eval "$as_ac_var=yes"
11500 echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.
$ac_ext >&5
11503 eval "$as_ac_var=no"
11506 rm -f core conftest.err conftest.
$ac_objext \
11507 conftest
$ac_exeext conftest.
$ac_ext
11509 ac_res
=`eval echo '${'$as_ac_var'}'`
11510 { echo "$as_me:$LINENO: result: $ac_res" >&5
11511 echo "${ECHO_T}$ac_res" >&6; }
11512 if test `eval echo '${'$as_ac_var'}'` = yes; then
11513 cat >>confdefs.h
<<_ACEOF
11514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11520 LIBS
="$lt_save_LIBS"
11523 ac_cpp
='$CPP $CPPFLAGS'
11524 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11525 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11526 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11530 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11531 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11532 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 ac_cv_sys_symbol_underscore
=no
11536 cat > conftest.
$ac_ext <<EOF
11537 void nm_test_func(){}
11538 int main(){nm_test_func;return 0;}
11540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11541 (eval $ac_compile) 2>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; then
11545 # Now try to grab the symbols.
11546 ac_nlist
=conftest.nm
11547 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11548 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } && test -s "$ac_nlist"; then
11552 # See whether the symbols have a leading underscore.
11553 if grep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
11554 ac_cv_sys_symbol_underscore
=yes
11556 if grep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
11559 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11563 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11566 echo "configure: failed program was:" >&5
11572 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11573 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11576 if test x
"$ac_cv_sys_symbol_underscore" = xyes
; then
11577 if test x
"$libltdl_cv_func_dlopen" = xyes ||
11578 test x
"$libltdl_cv_lib_dl_dlopen" = xyes
; then
11579 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11580 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11581 if test "${libltdl_cv_need_uscore+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 libltdl_cv_need_uscore
=unknown
11586 LIBS
="$LIBS $LIBADD_DL"
11587 if test "$cross_compiling" = yes; then :
11588 libltdl_cv_need_uscore
=cross
11590 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11591 lt_status
=$lt_dlunknown
11592 cat > conftest.
$ac_ext <<EOF
11593 #line 11591 "configure"
11594 #include "confdefs.h"
11603 # define LT_DLGLOBAL RTLD_GLOBAL
11606 # define LT_DLGLOBAL DL_GLOBAL
11608 # define LT_DLGLOBAL 0
11612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11613 find out it does not work in some platform. */
11614 #ifndef LT_DLLAZY_OR_NOW
11616 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11619 # define LT_DLLAZY_OR_NOW DL_LAZY
11622 # define LT_DLLAZY_OR_NOW RTLD_NOW
11625 # define LT_DLLAZY_OR_NOW DL_NOW
11627 # define LT_DLLAZY_OR_NOW 0
11635 extern "C" void exit (int);
11638 void fnord() { int i=42;}
11641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11642 int status = $lt_dlunknown;
11646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11648 /* dlclose (self); */
11656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11657 (eval $ac_link) 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11661 (.
/conftest
; exit; ) >&5 2>/dev
/null
11663 case x
$lt_status in
11664 x
$lt_dlno_uscore) libltdl_cv_need_uscore
=no
;;
11665 x
$lt_dlneed_uscore) libltdl_cv_need_uscore
=yes ;;
11666 x
$lt_dlunknown|x
*) ;;
11669 # compilation failed
11678 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11679 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11683 if test x
"$libltdl_cv_need_uscore" = xyes
; then
11685 cat >>confdefs.h
<<\_ACEOF
11686 #define NEED_USCORE 1
11692 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11693 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11694 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 # PORTME does your system automatically load deplibs for dlopen?
11698 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11699 # For now, we just catch OSes we know something about -- in the
11700 # future, we'll try test this programmatically.
11701 libltdl_cv_sys_dlopen_deplibs
=unknown
11703 aix3
*|aix4.1.
*|aix4.2.
*)
11704 # Unknown whether this is true for these versions of AIX, but
11705 # we want this `case' here to explicitly catch those versions.
11706 libltdl_cv_sys_dlopen_deplibs
=unknown
11709 libltdl_cv_sys_dlopen_deplibs
=yes
11712 # Assuming the user has installed a libdl from somewhere, this is true
11713 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11714 libltdl_cv_sys_dlopen_deplibs
=yes
11716 gnu
* | linux
* | kfreebsd
*-gnu | knetbsd
*-gnu)
11717 # GNU and its variants, using gnu ld.so (Glibc)
11718 libltdl_cv_sys_dlopen_deplibs
=yes
11721 libltdl_cv_sys_dlopen_deplibs
=yes
11724 libltdl_cv_sys_dlopen_deplibs
=yes
11726 irix
[12345]*|irix6.
[01]*)
11727 # Catch all versions of IRIX before 6.2, and indicate that we don't
11728 # know how it worked for any of those versions.
11729 libltdl_cv_sys_dlopen_deplibs
=unknown
11732 # The case above catches anything before 6.2, and it's known that
11733 # at 6.2 and later dlopen does load deplibs.
11734 libltdl_cv_sys_dlopen_deplibs
=yes
11737 libltdl_cv_sys_dlopen_deplibs
=yes
11740 libltdl_cv_sys_dlopen_deplibs
=yes
11743 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11744 # it did *not* use an RPATH in a shared library to find objects the
11745 # library depends on, so we explicitly say `no'.
11746 libltdl_cv_sys_dlopen_deplibs
=no
11748 osf5.0|osf5.0a|osf5.1
)
11749 # dlopen *does* load deplibs and with the right loader patch applied
11750 # it even uses RPATH in a shared library to search for shared objects
11751 # that the library depends on, but there's no easy way to know if that
11752 # patch is installed. Since this is the case, all we can really
11753 # say is unknown -- it depends on the patch being installed. If
11754 # it is, this changes to `yes'. Without it, it would be `no'.
11755 libltdl_cv_sys_dlopen_deplibs
=unknown
11758 # the two cases above should catch all versions of osf <= 5.1. Read
11759 # the comments above for what we know about them.
11760 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11761 # is used to find them so we can finally say `yes'.
11762 libltdl_cv_sys_dlopen_deplibs
=yes
11765 libltdl_cv_sys_dlopen_deplibs
=yes
11767 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11768 libltdl_cv_sys_dlopen_deplibs
=yes
11773 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11774 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11775 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11777 cat >>confdefs.h
<<\_ACEOF
11778 #define LTDL_DLOPEN_DEPLIBS 1
11784 for ac_header
in argz.h
11786 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11787 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11790 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11793 ac_res
=`eval echo '${'$as_ac_Header'}'`
11794 { echo "$as_me:$LINENO: result: $ac_res" >&5
11795 echo "${ECHO_T}$ac_res" >&6; }
11797 # Is the header compilable?
11798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11800 cat >conftest.
$ac_ext <<_ACEOF
11803 cat confdefs.h
>>conftest.
$ac_ext
11804 cat >>conftest.
$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 $ac_includes_default
11807 #include <$ac_header>
11809 rm -f conftest.
$ac_objext
11810 if { (ac_try
="$ac_compile"
11811 case "(($ac_try" in
11812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_compile") 2>conftest.er1
11818 grep -v '^ *+' conftest.er1 >conftest.err
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11824 { (case "(($ac_try" in
11825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11826 *) ac_try_echo
=$ac_try;;
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_try") 2>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try
='test -s conftest.$ac_objext'
11834 { (case "(($ac_try" in
11835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_try") 2>&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; }; then
11843 ac_header_compiler=yes
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 ac_header_compiler=no
11851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11853 echo "${ECHO_T}$ac_header_compiler" >&6; }
11855 # Is the header present?
11856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11858 cat >conftest.$ac_ext <<_ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h. */
11864 #include <$ac_header>
11866 if { (ac_try="$ac_cpp conftest.$ac_ext"
11867 case "(($ac_try" in
11868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11869 *) ac_try_echo
=$ac_try;;
11871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11874 grep -v '^ *+' conftest.er1
>conftest.err
11876 cat conftest.err
>&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); } >/dev
/null
; then
11879 if test -s conftest.err
; then
11880 ac_cpp_err
=$ac_c_preproc_warn_flag
11881 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11888 if test -z "$ac_cpp_err"; then
11889 ac_header_preproc
=yes
11891 echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.
$ac_ext >&5
11894 ac_header_preproc
=no
11897 rm -f conftest.err conftest.
$ac_ext
11898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11899 echo "${ECHO_T}$ac_header_preproc" >&6; }
11901 # So? What about this header?
11902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11908 ac_header_preproc
=yes
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11924 ## ----------------------------------- ##
11925 ## Report this to llvmbugs@cs.uiuc.edu ##
11926 ## ----------------------------------- ##
11928 ) |
sed "s/^/$as_me: WARNING: /" >&2
11931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11933 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11936 eval "$as_ac_Header=\$ac_header_preproc"
11938 ac_res
=`eval echo '${'$as_ac_Header'}'`
11939 { echo "$as_me:$LINENO: result: $ac_res" >&5
11940 echo "${ECHO_T}$ac_res" >&6; }
11943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11944 cat >>confdefs.h
<<_ACEOF
11945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11953 { echo "$as_me:$LINENO: checking for error_t" >&5
11954 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11955 if test "${ac_cv_type_error_t+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11958 cat >conftest.
$ac_ext <<_ACEOF
11961 cat confdefs.h
>>conftest.
$ac_ext
11962 cat >>conftest.
$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11968 typedef error_t ac__type_new_;
11972 if ((ac__type_new_ *) 0)
11974 if (sizeof (ac__type_new_))
11980 rm -f conftest.
$ac_objext
11981 if { (ac_try
="$ac_compile"
11982 case "(($ac_try" in
11983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_compile") 2>conftest.er1
11989 grep -v '^ *+' conftest.er1 >conftest.err
11991 cat conftest.err >&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } &&
11994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11995 { (case "(($ac_try" in
11996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11997 *) ac_try_echo
=$ac_try;;
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_try") 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; } &&
12004 { ac_try
='test -s conftest.$ac_objext'
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_try") 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_cv_type_error_t=yes
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ac_cv_type_error_t=no
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12025 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12026 if test $ac_cv_type_error_t = yes; then
12028 cat >>confdefs.h <<_ACEOF
12029 #define HAVE_ERROR_T 1
12035 cat >>confdefs.h <<\_ACEOF
12036 #define error_t int
12047 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12049 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 cat >conftest.$ac_ext <<_ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12063 #define $ac_func innocuous_$ac_func
12065 /* System header to define __stub macros and hopefully few prototypes,
12066 which can conflict with char $ac_func (); below.
12067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12068 <limits.h> exists even on freestanding compilers. */
12071 # include <limits.h>
12073 # include <assert.h>
12078 /* Override any GCC internal prototype to avoid an error.
12079 Use char because int might match the return type of a GCC
12080 builtin and then its argument prototype would still apply. */
12085 /* The GNU C library defines this for functions which it implements
12086 to always fail with ENOSYS. Some functions are actually named
12087 something starting with __ and the normal name is an alias. */
12088 #if defined __stub_$ac_func || defined __stub___$ac_func
12095 return $ac_func ();
12100 rm -f conftest.$ac_objext conftest$ac_exeext
12101 if { (ac_try="$ac_link"
12102 case "(($ac_try" in
12103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12104 *) ac_try_echo
=$ac_try;;
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_link") 2>conftest.er1
12109 grep -v '^ *+' conftest.er1
>conftest.err
12111 cat conftest.err
>&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } &&
12114 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12115 { (case "(($ac_try" in
12116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_try") 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; } &&
12124 { ac_try='test -s conftest$ac_exeext'
12125 { (case "(($ac_try" in
12126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12127 *) ac_try_echo
=$ac_try;;
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_try") 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 eval "$as_ac_var=yes"
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.
$ac_ext >&5
12139 eval "$as_ac_var=no"
12142 rm -f core conftest.err conftest.
$ac_objext \
12143 conftest
$ac_exeext conftest.
$ac_ext
12145 ac_res
=`eval echo '${'$as_ac_var'}'`
12146 { echo "$as_me:$LINENO: result: $ac_res" >&5
12147 echo "${ECHO_T}$ac_res" >&6; }
12148 if test `eval echo '${'$as_ac_var'}'` = yes; then
12149 cat >>confdefs.h
<<_ACEOF
12150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12183 for ac_header
in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12186 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12187 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12190 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 ac_res
=`eval echo '${'$as_ac_Header'}'`
12194 { echo "$as_me:$LINENO: result: $ac_res" >&5
12195 echo "${ECHO_T}$ac_res" >&6; }
12197 # Is the header compilable?
12198 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12200 cat >conftest.
$ac_ext <<_ACEOF
12203 cat confdefs.h
>>conftest.
$ac_ext
12204 cat >>conftest.
$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 $ac_includes_default
12207 #include <$ac_header>
12209 rm -f conftest.
$ac_objext
12210 if { (ac_try
="$ac_compile"
12211 case "(($ac_try" in
12212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_compile") 2>conftest.er1
12218 grep -v '^ *+' conftest.er1 >conftest.err
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12224 { (case "(($ac_try" in
12225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12226 *) ac_try_echo
=$ac_try;;
12228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229 (eval "$ac_try") 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try
='test -s conftest.$ac_objext'
12234 { (case "(($ac_try" in
12235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12239 (eval "$ac_try") 2>&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
12243 ac_header_compiler=yes
12245 echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 ac_header_compiler=no
12251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12253 echo "${ECHO_T}$ac_header_compiler" >&6; }
12255 # Is the header present?
12256 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12258 cat >conftest.$ac_ext <<_ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12264 #include <$ac_header>
12266 if { (ac_try="$ac_cpp conftest.$ac_ext"
12267 case "(($ac_try" in
12268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12269 *) ac_try_echo
=$ac_try;;
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12274 grep -v '^ *+' conftest.er1
>conftest.err
12276 cat conftest.err
>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } >/dev
/null
; then
12279 if test -s conftest.err
; then
12280 ac_cpp_err
=$ac_c_preproc_warn_flag
12281 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12288 if test -z "$ac_cpp_err"; then
12289 ac_header_preproc
=yes
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.
$ac_ext >&5
12294 ac_header_preproc
=no
12297 rm -f conftest.err conftest.
$ac_ext
12298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12299 echo "${ECHO_T}$ac_header_preproc" >&6; }
12301 # So? What about this header?
12302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12308 ac_header_preproc
=yes
12311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12324 ## ----------------------------------- ##
12325 ## Report this to llvmbugs@cs.uiuc.edu ##
12326 ## ----------------------------------- ##
12328 ) |
sed "s/^/$as_me: WARNING: /" >&2
12331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12333 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 eval "$as_ac_Header=\$ac_header_preproc"
12338 ac_res
=`eval echo '${'$as_ac_Header'}'`
12339 { echo "$as_me:$LINENO: result: $ac_res" >&5
12340 echo "${ECHO_T}$ac_res" >&6; }
12343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12344 cat >>confdefs.h
<<_ACEOF
12345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12356 for ac_header
in dl.h sys
/dl.h dld.h mach-o
/dyld.h
12358 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12359 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12362 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 ac_res
=`eval echo '${'$as_ac_Header'}'`
12366 { echo "$as_me:$LINENO: result: $ac_res" >&5
12367 echo "${ECHO_T}$ac_res" >&6; }
12369 # Is the header compilable?
12370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12372 cat >conftest.
$ac_ext <<_ACEOF
12375 cat confdefs.h
>>conftest.
$ac_ext
12376 cat >>conftest.
$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12378 $ac_includes_default
12379 #include <$ac_header>
12381 rm -f conftest.
$ac_objext
12382 if { (ac_try
="$ac_compile"
12383 case "(($ac_try" in
12384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_compile") 2>conftest.er1
12390 grep -v '^ *+' conftest.er1 >conftest.err
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12396 { (case "(($ac_try" in
12397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12398 *) ac_try_echo
=$ac_try;;
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_try") 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try
='test -s conftest.$ac_objext'
12406 { (case "(($ac_try" in
12407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_try") 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 ac_header_compiler=yes
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12420 ac_header_compiler=no
12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12425 echo "${ECHO_T}$ac_header_compiler" >&6; }
12427 # Is the header present?
12428 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12430 cat >conftest.$ac_ext <<_ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12436 #include <$ac_header>
12438 if { (ac_try="$ac_cpp conftest.$ac_ext"
12439 case "(($ac_try" in
12440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12441 *) ac_try_echo
=$ac_try;;
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12446 grep -v '^ *+' conftest.er1
>conftest.err
12448 cat conftest.err
>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } >/dev
/null
; then
12451 if test -s conftest.err
; then
12452 ac_cpp_err
=$ac_c_preproc_warn_flag
12453 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12460 if test -z "$ac_cpp_err"; then
12461 ac_header_preproc
=yes
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.
$ac_ext >&5
12466 ac_header_preproc
=no
12469 rm -f conftest.err conftest.
$ac_ext
12470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12471 echo "${ECHO_T}$ac_header_preproc" >&6; }
12473 # So? What about this header?
12474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12480 ac_header_preproc
=yes
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12496 ## ----------------------------------- ##
12497 ## Report this to llvmbugs@cs.uiuc.edu ##
12498 ## ----------------------------------- ##
12500 ) |
sed "s/^/$as_me: WARNING: /" >&2
12503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12505 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 eval "$as_ac_Header=\$ac_header_preproc"
12510 ac_res
=`eval echo '${'$as_ac_Header'}'`
12511 { echo "$as_me:$LINENO: result: $ac_res" >&5
12512 echo "${ECHO_T}$ac_res" >&6; }
12515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12516 cat >>confdefs.h
<<_ACEOF
12517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12526 for ac_header
in string.h
strings.h
12528 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12529 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12532 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 ac_res
=`eval echo '${'$as_ac_Header'}'`
12536 { echo "$as_me:$LINENO: result: $ac_res" >&5
12537 echo "${ECHO_T}$ac_res" >&6; }
12539 # Is the header compilable?
12540 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12542 cat >conftest.
$ac_ext <<_ACEOF
12545 cat confdefs.h
>>conftest.
$ac_ext
12546 cat >>conftest.
$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548 $ac_includes_default
12549 #include <$ac_header>
12551 rm -f conftest.
$ac_objext
12552 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
12560 grep -v '^ *+' conftest.er1 >conftest.err
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12566 { (case "(($ac_try" in
12567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12568 *) ac_try_echo
=$ac_try;;
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_try") 2>&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
12575 { ac_try
='test -s conftest.$ac_objext'
12576 { (case "(($ac_try" in
12577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_try") 2>&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
12585 ac_header_compiler=yes
12587 echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12590 ac_header_compiler=no
12593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12595 echo "${ECHO_T}$ac_header_compiler" >&6; }
12597 # Is the header present?
12598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12600 cat >conftest.$ac_ext <<_ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12606 #include <$ac_header>
12608 if { (ac_try="$ac_cpp conftest.$ac_ext"
12609 case "(($ac_try" in
12610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12611 *) ac_try_echo
=$ac_try;;
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12616 grep -v '^ *+' conftest.er1
>conftest.err
12618 cat conftest.err
>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } >/dev
/null
; then
12621 if test -s conftest.err
; then
12622 ac_cpp_err
=$ac_c_preproc_warn_flag
12623 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12630 if test -z "$ac_cpp_err"; then
12631 ac_header_preproc
=yes
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.
$ac_ext >&5
12636 ac_header_preproc
=no
12639 rm -f conftest.err conftest.
$ac_ext
12640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12641 echo "${ECHO_T}$ac_header_preproc" >&6; }
12643 # So? What about this header?
12644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12650 ac_header_preproc
=yes
12653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12666 ## ----------------------------------- ##
12667 ## Report this to llvmbugs@cs.uiuc.edu ##
12668 ## ----------------------------------- ##
12670 ) |
sed "s/^/$as_me: WARNING: /" >&2
12673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12675 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12678 eval "$as_ac_Header=\$ac_header_preproc"
12680 ac_res
=`eval echo '${'$as_ac_Header'}'`
12681 { echo "$as_me:$LINENO: result: $ac_res" >&5
12682 echo "${ECHO_T}$ac_res" >&6; }
12685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12686 cat >>confdefs.h
<<_ACEOF
12687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12697 for ac_func
in strchr index
12699 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12702 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12705 cat >conftest.
$ac_ext <<_ACEOF
12708 cat confdefs.h
>>conftest.
$ac_ext
12709 cat >>conftest.
$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12713 #define $ac_func innocuous_$ac_func
12715 /* System header to define __stub macros and hopefully few prototypes,
12716 which can conflict with char $ac_func (); below.
12717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12718 <limits.h> exists even on freestanding compilers. */
12721 # include <limits.h>
12723 # include <assert.h>
12728 /* Override any GCC internal prototype to avoid an error.
12729 Use char because int might match the return type of a GCC
12730 builtin and then its argument prototype would still apply. */
12735 /* The GNU C library defines this for functions which it implements
12736 to always fail with ENOSYS. Some functions are actually named
12737 something starting with __ and the normal name is an alias. */
12738 #if defined __stub_$ac_func || defined __stub___$ac_func
12745 return $ac_func ();
12750 rm -f conftest.
$ac_objext conftest
$ac_exeext
12751 if { (ac_try
="$ac_link"
12752 case "(($ac_try" in
12753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_link") 2>conftest.er1
12759 grep -v '^ *+' conftest.er1 >conftest.err
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
12764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12765 { (case "(($ac_try" in
12766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12767 *) ac_try_echo
=$ac_try;;
12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770 (eval "$ac_try") 2>&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; } &&
12774 { ac_try
='test -s conftest$ac_exeext'
12775 { (case "(($ac_try" in
12776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_try") 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 eval "$as_ac_var=yes"
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 eval "$as_ac_var=no"
12792 rm -f core conftest.err conftest.$ac_objext \
12793 conftest$ac_exeext conftest.$ac_ext
12795 ac_res=`eval echo '${'$as_ac_var'}'`
12796 { echo "$as_me:$LINENO: result: $ac_res" >&5
12797 echo "${ECHO_T}$ac_res" >&6; }
12798 if test `eval echo '${'$as_ac_var'}'` = yes; then
12799 cat >>confdefs.h <<_ACEOF
12800 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12808 for ac_func in strrchr rindex
12810 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 cat >conftest.$ac_ext <<_ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12824 #define $ac_func innocuous_$ac_func
12826 /* System header to define __stub macros and hopefully few prototypes,
12827 which can conflict with char $ac_func (); below.
12828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12829 <limits.h> exists even on freestanding compilers. */
12832 # include <limits.h>
12834 # include <assert.h>
12839 /* Override any GCC internal prototype to avoid an error.
12840 Use char because int might match the return type of a GCC
12841 builtin and then its argument prototype would still apply. */
12846 /* The GNU C library defines this for functions which it implements
12847 to always fail with ENOSYS. Some functions are actually named
12848 something starting with __ and the normal name is an alias. */
12849 #if defined __stub_$ac_func || defined __stub___$ac_func
12856 return $ac_func ();
12861 rm -f conftest.$ac_objext conftest$ac_exeext
12862 if { (ac_try="$ac_link"
12863 case "(($ac_try" in
12864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12865 *) ac_try_echo
=$ac_try;;
12867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_link") 2>conftest.er1
12870 grep -v '^ *+' conftest.er1
>conftest.err
12872 cat conftest.err
>&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } &&
12875 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12876 { (case "(($ac_try" in
12877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12881 (eval "$ac_try") 2>&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; } &&
12885 { ac_try='test -s conftest$ac_exeext'
12886 { (case "(($ac_try" in
12887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12888 *) ac_try_echo
=$ac_try;;
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_try") 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 eval "$as_ac_var=yes"
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.
$ac_ext >&5
12900 eval "$as_ac_var=no"
12903 rm -f core conftest.err conftest.
$ac_objext \
12904 conftest
$ac_exeext conftest.
$ac_ext
12906 ac_res
=`eval echo '${'$as_ac_var'}'`
12907 { echo "$as_me:$LINENO: result: $ac_res" >&5
12908 echo "${ECHO_T}$ac_res" >&6; }
12909 if test `eval echo '${'$as_ac_var'}'` = yes; then
12910 cat >>confdefs.h
<<_ACEOF
12911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12919 for ac_func
in memcpy bcopy
12921 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12924 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12927 cat >conftest.
$ac_ext <<_ACEOF
12930 cat confdefs.h
>>conftest.
$ac_ext
12931 cat >>conftest.
$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12935 #define $ac_func innocuous_$ac_func
12937 /* System header to define __stub macros and hopefully few prototypes,
12938 which can conflict with char $ac_func (); below.
12939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12940 <limits.h> exists even on freestanding compilers. */
12943 # include <limits.h>
12945 # include <assert.h>
12950 /* Override any GCC internal prototype to avoid an error.
12951 Use char because int might match the return type of a GCC
12952 builtin and then its argument prototype would still apply. */
12957 /* The GNU C library defines this for functions which it implements
12958 to always fail with ENOSYS. Some functions are actually named
12959 something starting with __ and the normal name is an alias. */
12960 #if defined __stub_$ac_func || defined __stub___$ac_func
12967 return $ac_func ();
12972 rm -f conftest.
$ac_objext conftest
$ac_exeext
12973 if { (ac_try
="$ac_link"
12974 case "(($ac_try" in
12975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_link") 2>conftest.er1
12981 grep -v '^ *+' conftest.er1 >conftest.err
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
12986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12989 *) ac_try_echo
=$ac_try;;
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; } &&
12996 { ac_try
='test -s conftest$ac_exeext'
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_try") 2>&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13006 eval "$as_ac_var=yes"
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13011 eval "$as_ac_var=no"
13014 rm -f core conftest.err conftest.$ac_objext \
13015 conftest$ac_exeext conftest.$ac_ext
13017 ac_res=`eval echo '${'$as_ac_var'}'`
13018 { echo "$as_me:$LINENO: result: $ac_res" >&5
13019 echo "${ECHO_T}$ac_res" >&6; }
13020 if test `eval echo '${'$as_ac_var'}'` = yes; then
13021 cat >>confdefs.h <<_ACEOF
13022 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13030 for ac_func in memmove strcmp
13032 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13033 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13035 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 cat >conftest.$ac_ext <<_ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13046 #define $ac_func innocuous_$ac_func
13048 /* System header to define __stub macros and hopefully few prototypes,
13049 which can conflict with char $ac_func (); below.
13050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13051 <limits.h> exists even on freestanding compilers. */
13054 # include <limits.h>
13056 # include <assert.h>
13061 /* Override any GCC internal prototype to avoid an error.
13062 Use char because int might match the return type of a GCC
13063 builtin and then its argument prototype would still apply. */
13068 /* The GNU C library defines this for functions which it implements
13069 to always fail with ENOSYS. Some functions are actually named
13070 something starting with __ and the normal name is an alias. */
13071 #if defined __stub_$ac_func || defined __stub___$ac_func
13078 return $ac_func ();
13083 rm -f conftest.$ac_objext conftest$ac_exeext
13084 if { (ac_try="$ac_link"
13085 case "(($ac_try" in
13086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13087 *) ac_try_echo
=$ac_try;;
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_link") 2>conftest.er1
13092 grep -v '^ *+' conftest.er1
>conftest.err
13094 cat conftest.err
>&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
13097 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13098 { (case "(($ac_try" in
13099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_try") 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest$ac_exeext'
13108 { (case "(($ac_try" in
13109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13110 *) ac_try_echo
=$ac_try;;
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_try") 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 eval "$as_ac_var=yes"
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.
$ac_ext >&5
13122 eval "$as_ac_var=no"
13125 rm -f core conftest.err conftest.
$ac_objext \
13126 conftest
$ac_exeext conftest.
$ac_ext
13128 ac_res
=`eval echo '${'$as_ac_var'}'`
13129 { echo "$as_me:$LINENO: result: $ac_res" >&5
13130 echo "${ECHO_T}$ac_res" >&6; }
13131 if test `eval echo '${'$as_ac_var'}'` = yes; then
13132 cat >>confdefs.h
<<_ACEOF
13133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13142 for ac_func
in closedir opendir readdir
13144 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13147 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 cat >conftest.
$ac_ext <<_ACEOF
13153 cat confdefs.h
>>conftest.
$ac_ext
13154 cat >>conftest.
$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13158 #define $ac_func innocuous_$ac_func
13160 /* System header to define __stub macros and hopefully few prototypes,
13161 which can conflict with char $ac_func (); below.
13162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13163 <limits.h> exists even on freestanding compilers. */
13166 # include <limits.h>
13168 # include <assert.h>
13173 /* Override any GCC internal prototype to avoid an error.
13174 Use char because int might match the return type of a GCC
13175 builtin and then its argument prototype would still apply. */
13180 /* The GNU C library defines this for functions which it implements
13181 to always fail with ENOSYS. Some functions are actually named
13182 something starting with __ and the normal name is an alias. */
13183 #if defined __stub_$ac_func || defined __stub___$ac_func
13190 return $ac_func ();
13195 rm -f conftest.
$ac_objext conftest
$ac_exeext
13196 if { (ac_try
="$ac_link"
13197 case "(($ac_try" in
13198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_link") 2>conftest.er1
13204 grep -v '^ *+' conftest.er1 >conftest.err
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
13209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13210 { (case "(($ac_try" in
13211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13212 *) ac_try_echo
=$ac_try;;
13214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13215 (eval "$ac_try") 2>&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; } &&
13219 { ac_try
='test -s conftest$ac_exeext'
13220 { (case "(($ac_try" in
13221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_try") 2>&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
13229 eval "$as_ac_var=yes"
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13234 eval "$as_ac_var=no"
13237 rm -f core conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13240 ac_res=`eval echo '${'$as_ac_var'}'`
13241 { echo "$as_me:$LINENO: result: $ac_res" >&5
13242 echo "${ECHO_T}$ac_res" >&6; }
13243 if test `eval echo '${'$as_ac_var'}'` = yes; then
13244 cat >>confdefs.h <<_ACEOF
13245 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13253 if test "$WITH_LLVMGCCDIR" = "default" ; then
13254 LLVMGCC="llvm-gcc${EXEEXT}"
13255 LLVMGXX="llvm-g++${EXEEXT}"
13256 LLVMGCCCOMMAND="$LLVMGCC"
13257 LLVMGXXCOMMAND="$LLVMGXX"
13258 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13260 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13262 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13263 set dummy $LLVMGCC; ac_word=$2
13264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13266 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13281 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13292 LLVMGCC=$ac_cv_path_LLVMGCC
13293 if test -n "$LLVMGCC"; then
13294 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13295 echo "${ECHO_T}$LLVMGCC" >&6; }
13297 { echo "$as_me:$LINENO: result: no" >&5
13298 echo "${ECHO_T}no" >&6; }
13302 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13303 set dummy $LLVMGXX; ac_word=$2
13304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13306 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315 for as_dir in $PATH
13318 test -z "$as_dir" && as_dir=.
13319 for ac_exec_ext in '' $ac_executable_extensions; do
13320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13321 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13332 LLVMGXX=$ac_cv_path_LLVMGXX
13333 if test -n "$LLVMGXX"; then
13334 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13335 echo "${ECHO_T}$LLVMGXX" >&6; }
13337 { echo "$as_me:$LINENO: result: no" >&5
13338 echo "${ECHO_T}no" >&6; }
13343 if test -z "$LLVMGCC"; then
13344 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13345 LLVMGCCCOMMAND="$LLVMGCC"
13347 if test -z "$LLVMGXX"; then
13348 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13349 LLVMGXXCOMMAND="$LLVMGXX"
13356 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13358 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13363 # Check whether --with-llvmcc was given.
13364 if test "${with_llvmcc+set}" = set; then
13365 withval=$with_llvmcc;
13370 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13371 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13372 if test "$with_llvmcc" != "check"; then
13373 if (test "$with_llvmcc" != "llvm-gcc" &&
13374 test "$with_llvmcc" != "clang" &&
13375 test "$with_llvmcc" != "none"); then
13376 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13377 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13378 { (exit 1); exit 1; }; }
13380 WITH_LLVMCC="$with_llvmcc"
13381 elif test -n "$LLVMGCC"; then
13382 WITH_LLVMCC=llvm-gcc
13383 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13388 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13389 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13390 LLVMCC_OPTION=$WITH_LLVMCC
13393 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13394 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13407 if test "$GCC" != "yes" && test "$ICC" != "yes"
13409 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13410 echo "$as_me: error: gcc|icc required but not found" >&2;}
13411 { (exit 1); exit 1; }; }
13414 if test "$GXX" != "yes" && test "$IXX" != "yes"
13416 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13417 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13418 { (exit 1); exit 1; }; }
13421 if test "$GCC" = "yes"
13423 cat >conftest.$ac_ext <<_ACEOF
13424 #if !defined(__GNUC__) || __GNUC__ < 3
13425 #error Unsupported GCC version
13429 rm -f conftest.$ac_objext
13430 if { (ac_try="$ac_compile"
13431 case "(($ac_try" in
13432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13433 *) ac_try_echo
=$ac_try;;
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436 (eval "$ac_compile") 2>conftest.er1
13438 grep -v '^ *+' conftest.er1
>conftest.err
13440 cat conftest.err
>&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13444 { (case "(($ac_try" in
13445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449 (eval "$ac_try") 2>&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; } &&
13453 { ac_try='test -s conftest.$ac_objext'
13454 { (case "(($ac_try" in
13455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13456 *) ac_try_echo
=$ac_try;;
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_try") 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13465 echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.
$ac_ext >&5
13468 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13469 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13470 { (exit 1); exit 1; }; }
13473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13476 if test -z "$llvm_cv_gnu_make_command"
13478 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13479 echo "$as_me: error: GNU Make required but not found" >&2;}
13480 { (exit 1); exit 1; }; }
13483 { echo "$as_me:$LINENO: result: ok" >&5
13484 echo "${ECHO_T}ok" >&6; }
13486 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13487 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13488 NO_VARIADIC_MACROS
=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13490 NO_MISSING_FIELD_INITIALIZERS
=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13492 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13493 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13497 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13498 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13499 if test "${ac_cv_lib_m_sin+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13502 ac_check_lib_save_LIBS
=$LIBS
13504 cat >conftest.
$ac_ext <<_ACEOF
13507 cat confdefs.h
>>conftest.
$ac_ext
13508 cat >>conftest.
$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13511 /* Override any GCC internal prototype to avoid an error.
13512 Use char because int might match the return type of a GCC
13513 builtin and then its argument prototype would still apply. */
13526 rm -f conftest.
$ac_objext conftest
$ac_exeext
13527 if { (ac_try
="$ac_link"
13528 case "(($ac_try" in
13529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_link") 2>conftest.er1
13535 grep -v '^ *+' conftest.er1 >conftest.err
13537 cat conftest.err >&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } &&
13540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13541 { (case "(($ac_try" in
13542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13543 *) ac_try_echo
=$ac_try;;
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_try") 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; } &&
13550 { ac_try
='test -s conftest$ac_exeext'
13551 { (case "(($ac_try" in
13552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13553 *) ac_try_echo=$ac_try;;
13555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13556 (eval "$ac_try") 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 ac_cv_lib_m_sin=yes
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13568 rm -f core conftest.err conftest.$ac_objext \
13569 conftest$ac_exeext conftest.$ac_ext
13570 LIBS=$ac_check_lib_save_LIBS
13572 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13573 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13574 if test $ac_cv_lib_m_sin = yes; then
13575 cat >>confdefs.h <<_ACEOF
13576 #define HAVE_LIBM 1
13583 if test "$llvm_cv_os_type" = "MingW" ; then
13585 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13586 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13587 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 ac_check_lib_save_LIBS=$LIBS
13591 LIBS="-limagehlp $LIBS"
13592 cat >conftest.$ac_ext <<_ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13608 rm -f conftest.$ac_objext conftest$ac_exeext
13609 if { (ac_try="$ac_link"
13610 case "(($ac_try" in
13611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13612 *) ac_try_echo
=$ac_try;;
13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_link") 2>conftest.er1
13617 grep -v '^ *+' conftest.er1
>conftest.err
13619 cat conftest.err
>&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13623 { (case "(($ac_try" in
13624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13625 *) ac_try_echo=$ac_try;;
13627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628 (eval "$ac_try") 2>&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; } &&
13632 { ac_try='test -s conftest$ac_exeext'
13633 { (case "(($ac_try" in
13634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13635 *) ac_try_echo
=$ac_try;;
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638 (eval "$ac_try") 2>&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
13642 ac_cv_lib_imagehlp_main
=yes
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.
$ac_ext >&5
13647 ac_cv_lib_imagehlp_main
=no
13650 rm -f core conftest.err conftest.
$ac_objext \
13651 conftest
$ac_exeext conftest.
$ac_ext
13652 LIBS
=$ac_check_lib_save_LIBS
13654 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13655 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13656 if test $ac_cv_lib_imagehlp_main = yes; then
13657 cat >>confdefs.h
<<_ACEOF
13658 #define HAVE_LIBIMAGEHLP 1
13661 LIBS
="-limagehlp $LIBS"
13666 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13667 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13668 if test "${ac_cv_lib_psapi_main+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 ac_check_lib_save_LIBS
=$LIBS
13672 LIBS
="-lpsapi $LIBS"
13673 cat >conftest.
$ac_ext <<_ACEOF
13676 cat confdefs.h
>>conftest.
$ac_ext
13677 cat >>conftest.
$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13689 rm -f conftest.
$ac_objext conftest
$ac_exeext
13690 if { (ac_try
="$ac_link"
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_link") 2>conftest.er1
13698 grep -v '^ *+' conftest.er1 >conftest.err
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } &&
13703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13704 { (case "(($ac_try" in
13705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13706 *) ac_try_echo
=$ac_try;;
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; } &&
13713 { ac_try
='test -s conftest$ac_exeext'
13714 { (case "(($ac_try" in
13715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_try") 2>&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 ac_cv_lib_psapi_main=yes
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13728 ac_cv_lib_psapi_main=no
13731 rm -f core conftest.err conftest.$ac_objext \
13732 conftest$ac_exeext conftest.$ac_ext
13733 LIBS=$ac_check_lib_save_LIBS
13735 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13736 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13737 if test $ac_cv_lib_psapi_main = yes; then
13738 cat >>confdefs.h <<_ACEOF
13739 #define HAVE_LIBPSAPI 1
13742 LIBS="-lpsapi $LIBS"
13748 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13749 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13750 if test "${ac_cv_search_dlopen+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 ac_func_search_save_LIBS=$LIBS
13754 cat >conftest.$ac_ext <<_ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13761 /* Override any GCC internal prototype to avoid an error.
13762 Use char because int might match the return type of a GCC
13763 builtin and then its argument prototype would still apply. */
13776 for ac_lib in '' dl; do
13777 if test -z "$ac_lib"; then
13778 ac_res="none required"
13781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13783 rm -f conftest.$ac_objext conftest$ac_exeext
13784 if { (ac_try="$ac_link"
13785 case "(($ac_try" in
13786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13787 *) ac_try_echo
=$ac_try;;
13789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13790 (eval "$ac_link") 2>conftest.er1
13792 grep -v '^ *+' conftest.er1
>conftest.err
13794 cat conftest.err
>&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } &&
13797 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13798 { (case "(($ac_try" in
13799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13800 *) ac_try_echo=$ac_try;;
13802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13803 (eval "$ac_try") 2>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; } &&
13807 { ac_try='test -s conftest$ac_exeext'
13808 { (case "(($ac_try" in
13809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13810 *) ac_try_echo
=$ac_try;;
13812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813 (eval "$ac_try") 2>&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13817 ac_cv_search_dlopen
=$ac_res
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.
$ac_ext >&5
13825 rm -f core conftest.err conftest.
$ac_objext \
13827 if test "${ac_cv_search_dlopen+set}" = set; then
13831 if test "${ac_cv_search_dlopen+set}" = set; then
13834 ac_cv_search_dlopen
=no
13836 rm conftest.
$ac_ext
13837 LIBS
=$ac_func_search_save_LIBS
13839 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13840 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13841 ac_res
=$ac_cv_search_dlopen
13842 if test "$ac_res" != no
; then
13843 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13845 cat >>confdefs.h
<<\_ACEOF
13846 #define HAVE_DLOPEN 1
13850 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13851 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13855 if test "$llvm_cv_enable_libffi" = "yes" ; then
13856 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13857 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13858 if test "${ac_cv_search_ffi_call+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 ac_func_search_save_LIBS
=$LIBS
13862 cat >conftest.
$ac_ext <<_ACEOF
13865 cat confdefs.h
>>conftest.
$ac_ext
13866 cat >>conftest.
$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13869 /* Override any GCC internal prototype to avoid an error.
13870 Use char because int might match the return type of a GCC
13871 builtin and then its argument prototype would still apply. */
13879 return ffi_call ();
13884 for ac_lib
in '' ffi
; do
13885 if test -z "$ac_lib"; then
13886 ac_res
="none required"
13889 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13891 rm -f conftest.
$ac_objext conftest
$ac_exeext
13892 if { (ac_try
="$ac_link"
13893 case "(($ac_try" in
13894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_link") 2>conftest.er1
13900 grep -v '^ *+' conftest.er1 >conftest.err
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13906 { (case "(($ac_try" in
13907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13908 *) ac_try_echo
=$ac_try;;
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_try") 2>&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; } &&
13915 { ac_try
='test -s conftest$ac_exeext'
13916 { (case "(($ac_try" in
13917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_try") 2>&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; }; then
13925 ac_cv_search_ffi_call=$ac_res
13927 echo "$as_me: failed program was:" >&5
13928 sed 's/^/| /' conftest.$ac_ext >&5
13933 rm -f core conftest.err conftest.$ac_objext \
13935 if test "${ac_cv_search_ffi_call+set}" = set; then
13939 if test "${ac_cv_search_ffi_call+set}" = set; then
13942 ac_cv_search_ffi_call=no
13944 rm conftest.$ac_ext
13945 LIBS=$ac_func_search_save_LIBS
13947 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13948 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13949 ac_res=$ac_cv_search_ffi_call
13950 if test "$ac_res" != no; then
13951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13953 cat >>confdefs.h <<\_ACEOF
13954 #define HAVE_FFI_CALL 1
13958 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13959 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13960 { (exit 1); exit 1; }; }
13965 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13966 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13967 if test "${ac_cv_search_mallinfo+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13970 ac_func_search_save_LIBS=$LIBS
13971 cat >conftest.$ac_ext <<_ACEOF
13974 cat confdefs.h >>conftest.$ac_ext
13975 cat >>conftest.$ac_ext <<_ACEOF
13976 /* end confdefs.h. */
13978 /* Override any GCC internal prototype to avoid an error.
13979 Use char because int might match the return type of a GCC
13980 builtin and then its argument prototype would still apply. */
13988 return mallinfo ();
13993 for ac_lib in '' malloc; do
13994 if test -z "$ac_lib"; then
13995 ac_res="none required"
13998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14000 rm -f conftest.$ac_objext conftest$ac_exeext
14001 if { (ac_try="$ac_link"
14002 case "(($ac_try" in
14003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14004 *) ac_try_echo
=$ac_try;;
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_link") 2>conftest.er1
14009 grep -v '^ *+' conftest.er1
>conftest.err
14011 cat conftest.err
>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
14014 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14015 { (case "(($ac_try" in
14016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020 (eval "$ac_try") 2>&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; } &&
14024 { ac_try='test -s conftest$ac_exeext'
14025 { (case "(($ac_try" in
14026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14027 *) ac_try_echo
=$ac_try;;
14029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030 (eval "$ac_try") 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
14034 ac_cv_search_mallinfo
=$ac_res
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.
$ac_ext >&5
14042 rm -f core conftest.err conftest.
$ac_objext \
14044 if test "${ac_cv_search_mallinfo+set}" = set; then
14048 if test "${ac_cv_search_mallinfo+set}" = set; then
14051 ac_cv_search_mallinfo
=no
14053 rm conftest.
$ac_ext
14054 LIBS
=$ac_func_search_save_LIBS
14056 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14057 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14058 ac_res
=$ac_cv_search_mallinfo
14059 if test "$ac_res" != no
; then
14060 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14062 cat >>confdefs.h
<<\_ACEOF
14063 #define HAVE_MALLINFO 1
14069 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14071 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14072 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14073 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 ac_check_lib_save_LIBS
=$LIBS
14077 LIBS
="-lpthread $LIBS"
14078 cat >conftest.
$ac_ext <<_ACEOF
14081 cat confdefs.h
>>conftest.
$ac_ext
14082 cat >>conftest.
$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14085 /* Override any GCC internal prototype to avoid an error.
14086 Use char because int might match the return type of a GCC
14087 builtin and then its argument prototype would still apply. */
14091 char pthread_mutex_init ();
14095 return pthread_mutex_init ();
14100 rm -f conftest.
$ac_objext conftest
$ac_exeext
14101 if { (ac_try
="$ac_link"
14102 case "(($ac_try" in
14103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_link") 2>conftest.er1
14109 grep -v '^ *+' conftest.er1 >conftest.err
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
14114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14115 { (case "(($ac_try" in
14116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14117 *) ac_try_echo
=$ac_try;;
14119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_try") 2>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try
='test -s conftest$ac_exeext'
14125 { (case "(($ac_try" in
14126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_try") 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 ac_cv_lib_pthread_pthread_mutex_init=yes
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14139 ac_cv_lib_pthread_pthread_mutex_init=no
14142 rm -f core conftest.err conftest.$ac_objext \
14143 conftest$ac_exeext conftest.$ac_ext
14144 LIBS=$ac_check_lib_save_LIBS
14146 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14147 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14148 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14149 cat >>confdefs.h <<_ACEOF
14150 #define HAVE_LIBPTHREAD 1
14153 LIBS="-lpthread $LIBS"
14157 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14158 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14159 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
14162 ac_func_search_save_LIBS=$LIBS
14163 cat >conftest.$ac_ext <<_ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14170 /* Override any GCC internal prototype to avoid an error.
14171 Use char because int might match the return type of a GCC
14172 builtin and then its argument prototype would still apply. */
14176 char pthread_mutex_lock ();
14180 return pthread_mutex_lock ();
14185 for ac_lib in '' pthread; do
14186 if test -z "$ac_lib"; then
14187 ac_res="none required"
14190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14192 rm -f conftest.$ac_objext conftest$ac_exeext
14193 if { (ac_try="$ac_link"
14194 case "(($ac_try" in
14195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14196 *) ac_try_echo
=$ac_try;;
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_link") 2>conftest.er1
14201 grep -v '^ *+' conftest.er1
>conftest.err
14203 cat conftest.err
>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } &&
14206 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14207 { (case "(($ac_try" in
14208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_try") 2>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; } &&
14216 { ac_try='test -s conftest$ac_exeext'
14217 { (case "(($ac_try" in
14218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14219 *) ac_try_echo
=$ac_try;;
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_try") 2>&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
14226 ac_cv_search_pthread_mutex_lock
=$ac_res
14228 echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.
$ac_ext >&5
14234 rm -f core conftest.err conftest.
$ac_objext \
14236 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14240 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14243 ac_cv_search_pthread_mutex_lock
=no
14245 rm conftest.
$ac_ext
14246 LIBS
=$ac_func_search_save_LIBS
14248 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14249 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14250 ac_res
=$ac_cv_search_pthread_mutex_lock
14251 if test "$ac_res" != no
; then
14252 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14254 cat >>confdefs.h
<<\_ACEOF
14255 #define HAVE_PTHREAD_MUTEX_LOCK 1
14260 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14261 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14262 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 ac_func_search_save_LIBS
=$LIBS
14266 cat >conftest.
$ac_ext <<_ACEOF
14269 cat confdefs.h
>>conftest.
$ac_ext
14270 cat >>conftest.
$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14273 /* Override any GCC internal prototype to avoid an error.
14274 Use char because int might match the return type of a GCC
14275 builtin and then its argument prototype would still apply. */
14279 char pthread_rwlock_init ();
14283 return pthread_rwlock_init ();
14288 for ac_lib
in '' pthread
; do
14289 if test -z "$ac_lib"; then
14290 ac_res
="none required"
14293 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14295 rm -f conftest.
$ac_objext conftest
$ac_exeext
14296 if { (ac_try
="$ac_link"
14297 case "(($ac_try" in
14298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_link") 2>conftest.er1
14304 grep -v '^ *+' conftest.er1 >conftest.err
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } &&
14309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14310 { (case "(($ac_try" in
14311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14312 *) ac_try_echo
=$ac_try;;
14314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315 (eval "$ac_try") 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; } &&
14319 { ac_try
='test -s conftest$ac_exeext'
14320 { (case "(($ac_try" in
14321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_try") 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
14329 ac_cv_search_pthread_rwlock_init=$ac_res
14331 echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14337 rm -f core conftest.err conftest.$ac_objext \
14339 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14343 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14346 ac_cv_search_pthread_rwlock_init=no
14348 rm conftest.$ac_ext
14349 LIBS=$ac_func_search_save_LIBS
14351 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14352 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14353 ac_res=$ac_cv_search_pthread_rwlock_init
14354 if test "$ac_res" != no; then
14355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14357 cat >>confdefs.h <<\_ACEOF
14358 #define HAVE_PTHREAD_RWLOCK_INIT 1
14363 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14364 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14365 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 ac_func_search_save_LIBS=$LIBS
14369 cat >conftest.$ac_ext <<_ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h. */
14376 /* Override any GCC internal prototype to avoid an error.
14377 Use char because int might match the return type of a GCC
14378 builtin and then its argument prototype would still apply. */
14382 char pthread_getspecific ();
14386 return pthread_getspecific ();
14391 for ac_lib in '' pthread; do
14392 if test -z "$ac_lib"; then
14393 ac_res="none required"
14396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14398 rm -f conftest.$ac_objext conftest$ac_exeext
14399 if { (ac_try="$ac_link"
14400 case "(($ac_try" in
14401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14402 *) ac_try_echo
=$ac_try;;
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_link") 2>conftest.er1
14407 grep -v '^ *+' conftest.er1
>conftest.err
14409 cat conftest.err
>&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14422 { ac_try='test -s conftest$ac_exeext'
14423 { (case "(($ac_try" in
14424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14425 *) ac_try_echo
=$ac_try;;
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_try") 2>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_cv_search_pthread_getspecific
=$ac_res
14434 echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.
$ac_ext >&5
14440 rm -f core conftest.err conftest.
$ac_objext \
14442 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14446 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14449 ac_cv_search_pthread_getspecific
=no
14451 rm conftest.
$ac_ext
14452 LIBS
=$ac_func_search_save_LIBS
14454 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14455 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14456 ac_res
=$ac_cv_search_pthread_getspecific
14457 if test "$ac_res" != no
; then
14458 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14460 cat >>confdefs.h
<<\_ACEOF
14461 #define HAVE_PTHREAD_GETSPECIFIC 1
14469 # Check whether --with-udis86 was given.
14470 if test "${with_udis86+set}" = set; then
14471 withval
=$with_udis86;
14476 *) LDFLAGS
="$LDFLAGS -L${withval}" ;;
14479 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14480 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14481 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 ac_check_lib_save_LIBS
=$LIBS
14485 LIBS
="-ludis86 $LIBS"
14486 cat >conftest.
$ac_ext <<_ACEOF
14489 cat confdefs.h
>>conftest.
$ac_ext
14490 cat >>conftest.
$ac_ext <<_ACEOF
14491 /* end confdefs.h. */
14493 /* Override any GCC internal prototype to avoid an error.
14494 Use char because int might match the return type of a GCC
14495 builtin and then its argument prototype would still apply. */
14508 rm -f conftest.
$ac_objext conftest
$ac_exeext
14509 if { (ac_try
="$ac_link"
14510 case "(($ac_try" in
14511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_link") 2>conftest.er1
14517 grep -v '^ *+' conftest.er1 >conftest.err
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } &&
14522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14523 { (case "(($ac_try" in
14524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14525 *) ac_try_echo
=$ac_try;;
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_try") 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try
='test -s conftest$ac_exeext'
14533 { (case "(($ac_try" in
14534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_try") 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14542 ac_cv_lib_udis86_ud_init=yes
14544 echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14547 ac_cv_lib_udis86_ud_init=no
14550 rm -f core conftest.err conftest.$ac_objext \
14551 conftest$ac_exeext conftest.$ac_ext
14552 LIBS=$ac_check_lib_save_LIBS
14554 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14555 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14556 if test $ac_cv_lib_udis86_ud_init = yes; then
14557 cat >>confdefs.h <<_ACEOF
14558 #define HAVE_LIBUDIS86 1
14561 LIBS="-ludis86 $LIBS"
14565 echo "Error! You need to have libudis86 around."
14577 cat >>confdefs.h <<_ACEOF
14578 #define USE_UDIS86 $USE_UDIS86
14583 # Check whether --with-oprofile was given.
14584 if test "${with_oprofile+set}" = set; then
14585 withval=$with_oprofile;
14589 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14590 no) llvm_cv_oppath=
14593 *) llvm_cv_oppath="${withval}/lib/oprofile"
14594 CPPFLAGS="-I${withval}/include";;
14596 if test -n "$llvm_cv_oppath" ; then
14597 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14598 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14599 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14600 if test "${ac_cv_search_bfd_init+set}" = set; then
14601 echo $ECHO_N "(cached) $ECHO_C" >&6
14603 ac_func_search_save_LIBS=$LIBS
14604 cat >conftest.$ac_ext <<_ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14611 /* Override any GCC internal prototype to avoid an error.
14612 Use char because int might match the return type of a GCC
14613 builtin and then its argument prototype would still apply. */
14621 return bfd_init ();
14626 for ac_lib in '' bfd; do
14627 if test -z "$ac_lib"; then
14628 ac_res="none required"
14631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14633 rm -f conftest.$ac_objext conftest$ac_exeext
14634 if { (ac_try="$ac_link"
14635 case "(($ac_try" in
14636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14637 *) ac_try_echo
=$ac_try;;
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_link") 2>conftest.er1
14642 grep -v '^ *+' conftest.er1
>conftest.err
14644 cat conftest.err
>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } &&
14647 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14648 { (case "(($ac_try" in
14649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_try") 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; } &&
14657 { ac_try='test -s conftest$ac_exeext'
14658 { (case "(($ac_try" in
14659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14660 *) ac_try_echo
=$ac_try;;
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_try") 2>&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
14667 ac_cv_search_bfd_init
=$ac_res
14669 echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.
$ac_ext >&5
14675 rm -f core conftest.err conftest.
$ac_objext \
14677 if test "${ac_cv_search_bfd_init+set}" = set; then
14681 if test "${ac_cv_search_bfd_init+set}" = set; then
14684 ac_cv_search_bfd_init
=no
14686 rm conftest.
$ac_ext
14687 LIBS
=$ac_func_search_save_LIBS
14689 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14690 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14691 ac_res
=$ac_cv_search_bfd_init
14692 if test "$ac_res" != no
; then
14693 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14697 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14698 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14699 if test "${ac_cv_search_op_open_agent+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 ac_func_search_save_LIBS
=$LIBS
14703 cat >conftest.
$ac_ext <<_ACEOF
14706 cat confdefs.h
>>conftest.
$ac_ext
14707 cat >>conftest.
$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14710 /* Override any GCC internal prototype to avoid an error.
14711 Use char because int might match the return type of a GCC
14712 builtin and then its argument prototype would still apply. */
14716 char op_open_agent ();
14720 return op_open_agent ();
14725 for ac_lib
in '' opagent
; do
14726 if test -z "$ac_lib"; then
14727 ac_res
="none required"
14730 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14732 rm -f conftest.
$ac_objext conftest
$ac_exeext
14733 if { (ac_try
="$ac_link"
14734 case "(($ac_try" in
14735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_link") 2>conftest.er1
14741 grep -v '^ *+' conftest.er1 >conftest.err
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14747 { (case "(($ac_try" in
14748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14749 *) ac_try_echo
=$ac_try;;
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_try") 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; } &&
14756 { ac_try
='test -s conftest$ac_exeext'
14757 { (case "(($ac_try" in
14758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_try") 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14766 ac_cv_search_op_open_agent=$ac_res
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14774 rm -f core conftest.err conftest.$ac_objext \
14776 if test "${ac_cv_search_op_open_agent+set}" = set; then
14780 if test "${ac_cv_search_op_open_agent+set}" = set; then
14783 ac_cv_search_op_open_agent=no
14785 rm conftest.$ac_ext
14786 LIBS=$ac_func_search_save_LIBS
14788 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14789 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14790 ac_res=$ac_cv_search_op_open_agent
14791 if test "$ac_res" != no; then
14792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14796 echo "Error! You need to have libopagent around."
14801 if test "${ac_cv_header_opagent_h+set}" = set; then
14802 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14803 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14804 if test "${ac_cv_header_opagent_h+set}" = set; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14807 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14808 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14810 # Is the header compilable?
14811 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14812 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14813 cat >conftest.$ac_ext <<_ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819 $ac_includes_default
14820 #include <opagent.h>
14822 rm -f conftest.$ac_objext
14823 if { (ac_try="$ac_compile"
14824 case "(($ac_try" in
14825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14826 *) ac_try_echo
=$ac_try;;
14828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_compile") 2>conftest.er1
14831 grep -v '^ *+' conftest.er1
>conftest.err
14833 cat conftest.err
>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } &&
14836 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14837 { (case "(($ac_try" in
14838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_try") 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try='test -s conftest.$ac_objext'
14847 { (case "(($ac_try" in
14848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14849 *) ac_try_echo
=$ac_try;;
14851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852 (eval "$ac_try") 2>&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
14856 ac_header_compiler
=yes
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.
$ac_ext >&5
14861 ac_header_compiler
=no
14864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14866 echo "${ECHO_T}$ac_header_compiler" >&6; }
14868 # Is the header present?
14869 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14870 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14871 cat >conftest.
$ac_ext <<_ACEOF
14874 cat confdefs.h
>>conftest.
$ac_ext
14875 cat >>conftest.
$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 #include <opagent.h>
14879 if { (ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
14887 grep -v '^ *+' conftest.er1 >conftest.err
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } >/dev/null; then
14892 if test -s conftest.err; then
14893 ac_cpp_err=$ac_c_preproc_warn_flag
14894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14901 if test -z "$ac_cpp_err"; then
14902 ac_header_preproc=yes
14904 echo "$as_me: failed program was:" >&5
14905 sed 's/^/| /' conftest.$ac_ext >&5
14907 ac_header_preproc=no
14910 rm -f conftest.err conftest.$ac_ext
14911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14912 echo "${ECHO_T}$ac_header_preproc" >&6; }
14914 # So? What about this header?
14915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14917 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14918 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14920 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14921 ac_header_preproc=yes
14924 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14925 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14927 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14929 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14931 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14933 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14934 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14935 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14937 ## ----------------------------------- ##
14938 ## Report this to llvmbugs@cs.uiuc.edu ##
14939 ## ----------------------------------- ##
14941 ) | sed "s/^/$as_me: WARNING: /" >&2
14944 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14945 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14946 if test "${ac_cv_header_opagent_h+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 ac_cv_header_opagent_h=$ac_header_preproc
14951 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14952 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14955 if test $ac_cv_header_opagent_h = yes; then
14959 echo "Error! You need to have opagent.h around."
14975 cat >>confdefs.h <<_ACEOF
14976 #define USE_OPROFILE $USE_OPROFILE
14986 ac_header_dirent=no
14987 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14988 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
14989 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14990 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14994 cat >conftest.$ac_ext <<_ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15000 #include <sys/types.h>
15012 rm -f conftest.$ac_objext
15013 if { (ac_try="$ac_compile"
15014 case "(($ac_try" in
15015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15016 *) ac_try_echo
=$ac_try;;
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_compile") 2>conftest.er1
15021 grep -v '^ *+' conftest.er1
>conftest.err
15023 cat conftest.err
>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15027 { (case "(($ac_try" in
15028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_try") 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest.$ac_objext'
15037 { (case "(($ac_try" in
15038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15039 *) ac_try_echo
=$ac_try;;
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_try") 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15046 eval "$as_ac_Header=yes"
15048 echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.
$ac_ext >&5
15051 eval "$as_ac_Header=no"
15054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15056 ac_res
=`eval echo '${'$as_ac_Header'}'`
15057 { echo "$as_me:$LINENO: result: $ac_res" >&5
15058 echo "${ECHO_T}$ac_res" >&6; }
15059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15060 cat >>confdefs.h
<<_ACEOF
15061 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15064 ac_header_dirent
=$ac_hdr; break
15068 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15069 if test $ac_header_dirent = dirent.h
; then
15070 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15071 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15072 if test "${ac_cv_search_opendir+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
15075 ac_func_search_save_LIBS
=$LIBS
15076 cat >conftest.
$ac_ext <<_ACEOF
15079 cat confdefs.h
>>conftest.
$ac_ext
15080 cat >>conftest.
$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15083 /* Override any GCC internal prototype to avoid an error.
15084 Use char because int might match the return type of a GCC
15085 builtin and then its argument prototype would still apply. */
15098 for ac_lib
in '' dir
; do
15099 if test -z "$ac_lib"; then
15100 ac_res
="none required"
15103 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15105 rm -f conftest.
$ac_objext conftest
$ac_exeext
15106 if { (ac_try
="$ac_link"
15107 case "(($ac_try" in
15108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_link") 2>conftest.er1
15114 grep -v '^ *+' conftest.er1 >conftest.err
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15120 { (case "(($ac_try" in
15121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15122 *) ac_try_echo
=$ac_try;;
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_try") 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; } &&
15129 { ac_try
='test -s conftest$ac_exeext'
15130 { (case "(($ac_try" in
15131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_try") 2>&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
15139 ac_cv_search_opendir=$ac_res
15141 echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15147 rm -f core conftest.err conftest.$ac_objext \
15149 if test "${ac_cv_search_opendir+set}" = set; then
15153 if test "${ac_cv_search_opendir+set}" = set; then
15156 ac_cv_search_opendir=no
15158 rm conftest.$ac_ext
15159 LIBS=$ac_func_search_save_LIBS
15161 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15162 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15163 ac_res=$ac_cv_search_opendir
15164 if test "$ac_res" != no; then
15165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15170 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15171 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15172 if test "${ac_cv_search_opendir+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 ac_func_search_save_LIBS=$LIBS
15176 cat >conftest.$ac_ext <<_ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15183 /* Override any GCC internal prototype to avoid an error.
15184 Use char because int might match the return type of a GCC
15185 builtin and then its argument prototype would still apply. */
15198 for ac_lib in '' x; do
15199 if test -z "$ac_lib"; then
15200 ac_res="none required"
15203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
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_link") 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_exeext'
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_search_opendir
=$ac_res
15241 echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.
$ac_ext >&5
15247 rm -f core conftest.err conftest.
$ac_objext \
15249 if test "${ac_cv_search_opendir+set}" = set; then
15253 if test "${ac_cv_search_opendir+set}" = set; then
15256 ac_cv_search_opendir
=no
15258 rm conftest.
$ac_ext
15259 LIBS
=$ac_func_search_save_LIBS
15261 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15262 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15263 ac_res
=$ac_cv_search_opendir
15264 if test "$ac_res" != no
; then
15265 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15271 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15272 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15273 if test "${ac_cv_header_mmap_anon+set}" = set; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15277 ac_cpp
='$CPP $CPPFLAGS'
15278 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15279 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15280 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15282 cat >conftest.
$ac_ext <<_ACEOF
15285 cat confdefs.h
>>conftest.
$ac_ext
15286 cat >>conftest.
$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15288 #include <sys/mman.h>
15289 #include <unistd.h>
15294 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15299 rm -f conftest.
$ac_objext
15300 if { (ac_try
="$ac_compile"
15301 case "(($ac_try" in
15302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_compile") 2>conftest.er1
15308 grep -v '^ *+' conftest.er1 >conftest.err
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } &&
15313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15314 { (case "(($ac_try" in
15315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15316 *) ac_try_echo
=$ac_try;;
15318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15319 (eval "$ac_try") 2>&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; } &&
15323 { ac_try
='test -s conftest.$ac_objext'
15324 { (case "(($ac_try" in
15325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15326 *) ac_try_echo=$ac_try;;
15328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329 (eval "$ac_try") 2>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_cv_header_mmap_anon=yes
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15338 ac_cv_header_mmap_anon=no
15341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343 ac_cpp='$CPP $CPPFLAGS'
15344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15350 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15351 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15352 if test "$ac_cv_header_mmap_anon" = yes; then
15354 cat >>confdefs.h <<\_ACEOF
15355 #define HAVE_MMAP_ANONYMOUS 1
15360 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15361 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15362 if test "${ac_cv_header_stat_broken+set}" = set; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15365 cat >conftest.$ac_ext <<_ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h. */
15371 #include <sys/types.h>
15372 #include <sys/stat.h>
15374 #if defined S_ISBLK && defined S_IFDIR
15375 # if S_ISBLK (S_IFDIR)
15380 #if defined S_ISBLK && defined S_IFCHR
15381 # if S_ISBLK (S_IFCHR)
15386 #if defined S_ISLNK && defined S_IFREG
15387 # if S_ISLNK (S_IFREG)
15392 #if defined S_ISSOCK && defined S_IFREG
15393 # if S_ISSOCK (S_IFREG)
15399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15400 $EGREP "You lose" >/dev/null 2>&1; then
15401 ac_cv_header_stat_broken=yes
15403 ac_cv_header_stat_broken=no
15408 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15409 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15410 if test $ac_cv_header_stat_broken = yes; then
15412 cat >>confdefs.h <<\_ACEOF
15413 #define STAT_MACROS_BROKEN 1
15418 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15420 if test "${ac_cv_header_stdc+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15423 cat >conftest.$ac_ext <<_ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h. */
15429 #include <stdlib.h>
15430 #include <stdarg.h>
15431 #include <string.h>
15442 rm -f conftest.$ac_objext
15443 if { (ac_try="$ac_compile"
15444 case "(($ac_try" in
15445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15446 *) ac_try_echo
=$ac_try;;
15448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_compile") 2>conftest.er1
15451 grep -v '^ *+' conftest.er1
>conftest.err
15453 cat conftest.err
>&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
15456 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15457 { (case "(($ac_try" in
15458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15459 *) ac_try_echo=$ac_try;;
15461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15462 (eval "$ac_try") 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try='test -s conftest.$ac_objext'
15467 { (case "(($ac_try" in
15468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15469 *) ac_try_echo
=$ac_try;;
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_try") 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_cv_header_stdc
=yes
15478 echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.
$ac_ext >&5
15481 ac_cv_header_stdc
=no
15484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15486 if test $ac_cv_header_stdc = yes; then
15487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15488 cat >conftest.
$ac_ext <<_ACEOF
15491 cat confdefs.h
>>conftest.
$ac_ext
15492 cat >>conftest.
$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15494 #include <string.h>
15497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15498 $EGREP "memchr" >/dev
/null
2>&1; then
15501 ac_cv_header_stdc
=no
15507 if test $ac_cv_header_stdc = yes; then
15508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15509 cat >conftest.
$ac_ext <<_ACEOF
15512 cat confdefs.h
>>conftest.
$ac_ext
15513 cat >>conftest.
$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515 #include <stdlib.h>
15518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15519 $EGREP "free" >/dev
/null
2>&1; then
15522 ac_cv_header_stdc
=no
15528 if test $ac_cv_header_stdc = yes; then
15529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15530 if test "$cross_compiling" = yes; then
15533 cat >conftest.
$ac_ext <<_ACEOF
15536 cat confdefs.h
>>conftest.
$ac_ext
15537 cat >>conftest.
$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15540 #include <stdlib.h>
15541 #if ((' ' & 0x0FF) == 0x020)
15542 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15543 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15545 # define ISLOWER(c) \
15546 (('a' <= (c) && (c) <= 'i') \
15547 || ('j' <= (c) && (c) <= 'r') \
15548 || ('s' <= (c) && (c) <= 'z'))
15549 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15557 for (i = 0; i < 256; i++)
15558 if (XOR (islower (i), ISLOWER (i))
15559 || toupper (i) != TOUPPER (i))
15564 rm -f conftest
$ac_exeext
15565 if { (ac_try
="$ac_link"
15566 case "(($ac_try" in
15567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15568 *) ac_try_echo=$ac_try;;
15570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571 (eval "$ac_link") 2>&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15575 { (case "(($ac_try" in
15576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15577 *) ac_try_echo
=$ac_try;;
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_try") 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15586 echo "$as_me: program exited with status $ac_status" >&5
15587 echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.
$ac_ext >&5
15590 ( exit $ac_status )
15591 ac_cv_header_stdc
=no
15593 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15599 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15600 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15601 if test $ac_cv_header_stdc = yes; then
15603 cat >>confdefs.h
<<\_ACEOF
15604 #define STDC_HEADERS 1
15609 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15610 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15611 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15614 cat >conftest.
$ac_ext <<_ACEOF
15617 cat confdefs.h
>>conftest.
$ac_ext
15618 cat >>conftest.
$ac_ext <<_ACEOF
15619 /* end confdefs.h. */
15620 #include <sys/types.h>
15621 #include <sys/wait.h>
15622 #ifndef WEXITSTATUS
15623 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15626 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15634 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15639 rm -f conftest.
$ac_objext
15640 if { (ac_try
="$ac_compile"
15641 case "(($ac_try" in
15642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_compile") 2>conftest.er1
15648 grep -v '^ *+' conftest.er1 >conftest.err
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } &&
15653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15654 { (case "(($ac_try" in
15655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15656 *) ac_try_echo
=$ac_try;;
15658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15659 (eval "$ac_try") 2>&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; } &&
15663 { ac_try
='test -s conftest.$ac_objext'
15664 { (case "(($ac_try" in
15665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15666 *) ac_try_echo=$ac_try;;
15668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669 (eval "$ac_try") 2>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15673 ac_cv_header_sys_wait_h=yes
15675 echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15678 ac_cv_header_sys_wait_h=no
15681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15684 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15685 if test $ac_cv_header_sys_wait_h = yes; then
15687 cat >>confdefs.h <<\_ACEOF
15688 #define HAVE_SYS_WAIT_H 1
15693 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15694 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15695 if test "${ac_cv_header_time+set}" = set; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15698 cat >conftest.$ac_ext <<_ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 #include <sys/types.h>
15705 #include <sys/time.h>
15711 if ((struct tm *) 0)
15717 rm -f conftest.$ac_objext
15718 if { (ac_try="$ac_compile"
15719 case "(($ac_try" in
15720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15721 *) ac_try_echo
=$ac_try;;
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_compile") 2>conftest.er1
15726 grep -v '^ *+' conftest.er1
>conftest.err
15728 cat conftest.err
>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } &&
15731 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15732 { (case "(($ac_try" in
15733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_try") 2>&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; } &&
15741 { ac_try='test -s conftest.$ac_objext'
15742 { (case "(($ac_try" in
15743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15744 *) ac_try_echo
=$ac_try;;
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_try") 2>&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 ac_cv_header_time
=yes
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.
$ac_ext >&5
15756 ac_cv_header_time
=no
15759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15761 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15762 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15763 if test $ac_cv_header_time = yes; then
15765 cat >>confdefs.h
<<\_ACEOF
15766 #define TIME_WITH_SYS_TIME 1
15778 for ac_header
in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15780 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15781 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15784 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 ac_res
=`eval echo '${'$as_ac_Header'}'`
15788 { echo "$as_me:$LINENO: result: $ac_res" >&5
15789 echo "${ECHO_T}$ac_res" >&6; }
15791 # Is the header compilable?
15792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15794 cat >conftest.
$ac_ext <<_ACEOF
15797 cat confdefs.h
>>conftest.
$ac_ext
15798 cat >>conftest.
$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 $ac_includes_default
15801 #include <$ac_header>
15803 rm -f conftest.
$ac_objext
15804 if { (ac_try
="$ac_compile"
15805 case "(($ac_try" in
15806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810 (eval "$ac_compile") 2>conftest.er1
15812 grep -v '^ *+' conftest.er1 >conftest.err
15814 cat conftest.err >&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } &&
15817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15818 { (case "(($ac_try" in
15819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15820 *) ac_try_echo
=$ac_try;;
15822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823 (eval "$ac_try") 2>&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; } &&
15827 { ac_try
='test -s conftest.$ac_objext'
15828 { (case "(($ac_try" in
15829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_try") 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15837 ac_header_compiler=yes
15839 echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15842 ac_header_compiler=no
15845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15847 echo "${ECHO_T}$ac_header_compiler" >&6; }
15849 # Is the header present?
15850 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15852 cat >conftest.$ac_ext <<_ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15858 #include <$ac_header>
15860 if { (ac_try="$ac_cpp conftest.$ac_ext"
15861 case "(($ac_try" in
15862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15863 *) ac_try_echo
=$ac_try;;
15865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15868 grep -v '^ *+' conftest.er1
>conftest.err
15870 cat conftest.err
>&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } >/dev
/null
; then
15873 if test -s conftest.err
; then
15874 ac_cpp_err
=$ac_c_preproc_warn_flag
15875 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15882 if test -z "$ac_cpp_err"; then
15883 ac_header_preproc
=yes
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.
$ac_ext >&5
15888 ac_header_preproc
=no
15891 rm -f conftest.err conftest.
$ac_ext
15892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15893 echo "${ECHO_T}$ac_header_preproc" >&6; }
15895 # So? What about this header?
15896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15902 ac_header_preproc
=yes
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15918 ## ----------------------------------- ##
15919 ## Report this to llvmbugs@cs.uiuc.edu ##
15920 ## ----------------------------------- ##
15922 ) |
sed "s/^/$as_me: WARNING: /" >&2
15925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15927 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 eval "$as_ac_Header=\$ac_header_preproc"
15932 ac_res
=`eval echo '${'$as_ac_Header'}'`
15933 { echo "$as_me:$LINENO: result: $ac_res" >&5
15934 echo "${ECHO_T}$ac_res" >&6; }
15937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15938 cat >>confdefs.h
<<_ACEOF
15939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15952 for ac_header
in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15954 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15955 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15958 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15961 ac_res
=`eval echo '${'$as_ac_Header'}'`
15962 { echo "$as_me:$LINENO: result: $ac_res" >&5
15963 echo "${ECHO_T}$ac_res" >&6; }
15965 # Is the header compilable?
15966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15968 cat >conftest.
$ac_ext <<_ACEOF
15971 cat confdefs.h
>>conftest.
$ac_ext
15972 cat >>conftest.
$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15974 $ac_includes_default
15975 #include <$ac_header>
15977 rm -f conftest.
$ac_objext
15978 if { (ac_try
="$ac_compile"
15979 case "(($ac_try" in
15980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_compile") 2>conftest.er1
15986 grep -v '^ *+' conftest.er1 >conftest.err
15988 cat conftest.err >&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } &&
15991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15992 { (case "(($ac_try" in
15993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15994 *) ac_try_echo
=$ac_try;;
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_try") 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; } &&
16001 { ac_try
='test -s conftest.$ac_objext'
16002 { (case "(($ac_try" in
16003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_try") 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; }; then
16011 ac_header_compiler=yes
16013 echo "$as_me: failed program was:" >&5
16014 sed 's/^/| /' conftest.$ac_ext >&5
16016 ac_header_compiler=no
16019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16021 echo "${ECHO_T}$ac_header_compiler" >&6; }
16023 # Is the header present?
16024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16026 cat >conftest.$ac_ext <<_ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16032 #include <$ac_header>
16034 if { (ac_try="$ac_cpp conftest.$ac_ext"
16035 case "(($ac_try" in
16036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16037 *) ac_try_echo
=$ac_try;;
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16042 grep -v '^ *+' conftest.er1
>conftest.err
16044 cat conftest.err
>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } >/dev
/null
; then
16047 if test -s conftest.err
; then
16048 ac_cpp_err
=$ac_c_preproc_warn_flag
16049 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16056 if test -z "$ac_cpp_err"; then
16057 ac_header_preproc
=yes
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.
$ac_ext >&5
16062 ac_header_preproc
=no
16065 rm -f conftest.err conftest.
$ac_ext
16066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16067 echo "${ECHO_T}$ac_header_preproc" >&6; }
16069 # So? What about this header?
16070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16076 ac_header_preproc
=yes
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16092 ## ----------------------------------- ##
16093 ## Report this to llvmbugs@cs.uiuc.edu ##
16094 ## ----------------------------------- ##
16096 ) |
sed "s/^/$as_me: WARNING: /" >&2
16099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16101 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 eval "$as_ac_Header=\$ac_header_preproc"
16106 ac_res
=`eval echo '${'$as_ac_Header'}'`
16107 { echo "$as_me:$LINENO: result: $ac_res" >&5
16108 echo "${ECHO_T}$ac_res" >&6; }
16111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16112 cat >>confdefs.h
<<_ACEOF
16113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16122 for ac_header
in utime.h windows.h
16124 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16125 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16128 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16129 echo $ECHO_N "(cached) $ECHO_C" >&6
16131 ac_res
=`eval echo '${'$as_ac_Header'}'`
16132 { echo "$as_me:$LINENO: result: $ac_res" >&5
16133 echo "${ECHO_T}$ac_res" >&6; }
16135 # Is the header compilable?
16136 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16138 cat >conftest.
$ac_ext <<_ACEOF
16141 cat confdefs.h
>>conftest.
$ac_ext
16142 cat >>conftest.
$ac_ext <<_ACEOF
16143 /* end confdefs.h. */
16144 $ac_includes_default
16145 #include <$ac_header>
16147 rm -f conftest.
$ac_objext
16148 if { (ac_try
="$ac_compile"
16149 case "(($ac_try" in
16150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_compile") 2>conftest.er1
16156 grep -v '^ *+' conftest.er1 >conftest.err
16158 cat conftest.err >&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } &&
16161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16162 { (case "(($ac_try" in
16163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16164 *) ac_try_echo
=$ac_try;;
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167 (eval "$ac_try") 2>&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; } &&
16171 { ac_try
='test -s conftest.$ac_objext'
16172 { (case "(($ac_try" in
16173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_try") 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ac_header_compiler=yes
16183 echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16186 ac_header_compiler=no
16189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16191 echo "${ECHO_T}$ac_header_compiler" >&6; }
16193 # Is the header present?
16194 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16196 cat >conftest.$ac_ext <<_ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 #include <$ac_header>
16204 if { (ac_try="$ac_cpp conftest.$ac_ext"
16205 case "(($ac_try" in
16206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16207 *) ac_try_echo
=$ac_try;;
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16212 grep -v '^ *+' conftest.er1
>conftest.err
16214 cat conftest.err
>&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } >/dev
/null
; then
16217 if test -s conftest.err
; then
16218 ac_cpp_err
=$ac_c_preproc_warn_flag
16219 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16226 if test -z "$ac_cpp_err"; then
16227 ac_header_preproc
=yes
16229 echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.
$ac_ext >&5
16232 ac_header_preproc
=no
16235 rm -f conftest.err conftest.
$ac_ext
16236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16237 echo "${ECHO_T}$ac_header_preproc" >&6; }
16239 # So? What about this header?
16240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16246 ac_header_preproc
=yes
16249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16262 ## ----------------------------------- ##
16263 ## Report this to llvmbugs@cs.uiuc.edu ##
16264 ## ----------------------------------- ##
16266 ) |
sed "s/^/$as_me: WARNING: /" >&2
16269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16271 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 eval "$as_ac_Header=\$ac_header_preproc"
16276 ac_res
=`eval echo '${'$as_ac_Header'}'`
16277 { echo "$as_me:$LINENO: result: $ac_res" >&5
16278 echo "${ECHO_T}$ac_res" >&6; }
16281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16282 cat >>confdefs.h
<<_ACEOF
16283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16295 for ac_header
in sys
/mman.h sys
/param.h sys
/resource.h sys
/time.h sys
/uio.h
16297 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16298 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16301 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16304 ac_res
=`eval echo '${'$as_ac_Header'}'`
16305 { echo "$as_me:$LINENO: result: $ac_res" >&5
16306 echo "${ECHO_T}$ac_res" >&6; }
16308 # Is the header compilable?
16309 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16311 cat >conftest.
$ac_ext <<_ACEOF
16314 cat confdefs.h
>>conftest.
$ac_ext
16315 cat >>conftest.
$ac_ext <<_ACEOF
16316 /* end confdefs.h. */
16317 $ac_includes_default
16318 #include <$ac_header>
16320 rm -f conftest.
$ac_objext
16321 if { (ac_try
="$ac_compile"
16322 case "(($ac_try" in
16323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327 (eval "$ac_compile") 2>conftest.er1
16329 grep -v '^ *+' conftest.er1 >conftest.err
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16335 { (case "(($ac_try" in
16336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16337 *) ac_try_echo
=$ac_try;;
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_try") 2>&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; } &&
16344 { ac_try
='test -s conftest.$ac_objext'
16345 { (case "(($ac_try" in
16346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_try") 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16354 ac_header_compiler=yes
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 ac_header_compiler=no
16362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16364 echo "${ECHO_T}$ac_header_compiler" >&6; }
16366 # Is the header present?
16367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16369 cat >conftest.$ac_ext <<_ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16375 #include <$ac_header>
16377 if { (ac_try="$ac_cpp conftest.$ac_ext"
16378 case "(($ac_try" in
16379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16380 *) ac_try_echo
=$ac_try;;
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16385 grep -v '^ *+' conftest.er1
>conftest.err
16387 cat conftest.err
>&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } >/dev
/null
; then
16390 if test -s conftest.err
; then
16391 ac_cpp_err
=$ac_c_preproc_warn_flag
16392 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16399 if test -z "$ac_cpp_err"; then
16400 ac_header_preproc
=yes
16402 echo "$as_me: failed program was:" >&5
16403 sed 's/^/| /' conftest.
$ac_ext >&5
16405 ac_header_preproc
=no
16408 rm -f conftest.err conftest.
$ac_ext
16409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16410 echo "${ECHO_T}$ac_header_preproc" >&6; }
16412 # So? What about this header?
16413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16419 ac_header_preproc
=yes
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16435 ## ----------------------------------- ##
16436 ## Report this to llvmbugs@cs.uiuc.edu ##
16437 ## ----------------------------------- ##
16439 ) |
sed "s/^/$as_me: WARNING: /" >&2
16442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16444 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16447 eval "$as_ac_Header=\$ac_header_preproc"
16449 ac_res
=`eval echo '${'$as_ac_Header'}'`
16450 { echo "$as_me:$LINENO: result: $ac_res" >&5
16451 echo "${ECHO_T}$ac_res" >&6; }
16454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16455 cat >>confdefs.h
<<_ACEOF
16456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16467 for ac_header
in sys
/types.h sys
/ioctl.h malloc
/malloc.h mach
/mach.h
16469 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16470 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16473 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 ac_res
=`eval echo '${'$as_ac_Header'}'`
16477 { echo "$as_me:$LINENO: result: $ac_res" >&5
16478 echo "${ECHO_T}$ac_res" >&6; }
16480 # Is the header compilable?
16481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16483 cat >conftest.
$ac_ext <<_ACEOF
16486 cat confdefs.h
>>conftest.
$ac_ext
16487 cat >>conftest.
$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16489 $ac_includes_default
16490 #include <$ac_header>
16492 rm -f conftest.
$ac_objext
16493 if { (ac_try
="$ac_compile"
16494 case "(($ac_try" in
16495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16496 *) ac_try_echo=$ac_try;;
16498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499 (eval "$ac_compile") 2>conftest.er1
16501 grep -v '^ *+' conftest.er1 >conftest.err
16503 cat conftest.err >&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } &&
16506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16507 { (case "(($ac_try" in
16508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16509 *) ac_try_echo
=$ac_try;;
16511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_try") 2>&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; } &&
16516 { ac_try
='test -s conftest.$ac_objext'
16517 { (case "(($ac_try" in
16518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_try") 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 ac_header_compiler=yes
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16531 ac_header_compiler=no
16534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16536 echo "${ECHO_T}$ac_header_compiler" >&6; }
16538 # Is the header present?
16539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16541 cat >conftest.$ac_ext <<_ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16547 #include <$ac_header>
16549 if { (ac_try="$ac_cpp conftest.$ac_ext"
16550 case "(($ac_try" in
16551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16552 *) ac_try_echo
=$ac_try;;
16554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16557 grep -v '^ *+' conftest.er1
>conftest.err
16559 cat conftest.err
>&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } >/dev
/null
; then
16562 if test -s conftest.err
; then
16563 ac_cpp_err
=$ac_c_preproc_warn_flag
16564 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16571 if test -z "$ac_cpp_err"; then
16572 ac_header_preproc
=yes
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.
$ac_ext >&5
16577 ac_header_preproc
=no
16580 rm -f conftest.err conftest.
$ac_ext
16581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16582 echo "${ECHO_T}$ac_header_preproc" >&6; }
16584 # So? What about this header?
16585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16591 ac_header_preproc
=yes
16594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16607 ## ----------------------------------- ##
16608 ## Report this to llvmbugs@cs.uiuc.edu ##
16609 ## ----------------------------------- ##
16611 ) |
sed "s/^/$as_me: WARNING: /" >&2
16614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16616 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 eval "$as_ac_Header=\$ac_header_preproc"
16621 ac_res
=`eval echo '${'$as_ac_Header'}'`
16622 { echo "$as_me:$LINENO: result: $ac_res" >&5
16623 echo "${ECHO_T}$ac_res" >&6; }
16626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16627 cat >>confdefs.h
<<_ACEOF
16628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16636 for ac_header
in valgrind
/valgrind.h
16638 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16639 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16642 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 ac_res
=`eval echo '${'$as_ac_Header'}'`
16646 { echo "$as_me:$LINENO: result: $ac_res" >&5
16647 echo "${ECHO_T}$ac_res" >&6; }
16649 # Is the header compilable?
16650 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16652 cat >conftest.
$ac_ext <<_ACEOF
16655 cat confdefs.h
>>conftest.
$ac_ext
16656 cat >>conftest.
$ac_ext <<_ACEOF
16657 /* end confdefs.h. */
16658 $ac_includes_default
16659 #include <$ac_header>
16661 rm -f conftest.
$ac_objext
16662 if { (ac_try
="$ac_compile"
16663 case "(($ac_try" in
16664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_compile") 2>conftest.er1
16670 grep -v '^ *+' conftest.er1 >conftest.err
16672 cat conftest.err >&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } &&
16675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16678 *) ac_try_echo
=$ac_try;;
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try
='test -s conftest.$ac_objext'
16686 { (case "(($ac_try" in
16687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_try") 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 ac_header_compiler=yes
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16700 ac_header_compiler=no
16703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16705 echo "${ECHO_T}$ac_header_compiler" >&6; }
16707 # Is the header present?
16708 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16710 cat >conftest.$ac_ext <<_ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 #include <$ac_header>
16718 if { (ac_try="$ac_cpp conftest.$ac_ext"
16719 case "(($ac_try" in
16720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16721 *) ac_try_echo
=$ac_try;;
16723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16726 grep -v '^ *+' conftest.er1
>conftest.err
16728 cat conftest.err
>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } >/dev
/null
; then
16731 if test -s conftest.err
; then
16732 ac_cpp_err
=$ac_c_preproc_warn_flag
16733 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16740 if test -z "$ac_cpp_err"; then
16741 ac_header_preproc
=yes
16743 echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.
$ac_ext >&5
16746 ac_header_preproc
=no
16749 rm -f conftest.err conftest.
$ac_ext
16750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16751 echo "${ECHO_T}$ac_header_preproc" >&6; }
16753 # So? What about this header?
16754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16760 ac_header_preproc
=yes
16763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16776 ## ----------------------------------- ##
16777 ## Report this to llvmbugs@cs.uiuc.edu ##
16778 ## ----------------------------------- ##
16780 ) |
sed "s/^/$as_me: WARNING: /" >&2
16783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16785 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16788 eval "$as_ac_Header=\$ac_header_preproc"
16790 ac_res
=`eval echo '${'$as_ac_Header'}'`
16791 { echo "$as_me:$LINENO: result: $ac_res" >&5
16792 echo "${ECHO_T}$ac_res" >&6; }
16795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16796 cat >>confdefs.h
<<_ACEOF
16797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16805 for ac_header
in fenv.h
16807 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16808 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16811 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 ac_res
=`eval echo '${'$as_ac_Header'}'`
16815 { echo "$as_me:$LINENO: result: $ac_res" >&5
16816 echo "${ECHO_T}$ac_res" >&6; }
16818 # Is the header compilable?
16819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16821 cat >conftest.
$ac_ext <<_ACEOF
16824 cat confdefs.h
>>conftest.
$ac_ext
16825 cat >>conftest.
$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 $ac_includes_default
16828 #include <$ac_header>
16830 rm -f conftest.
$ac_objext
16831 if { (ac_try
="$ac_compile"
16832 case "(($ac_try" in
16833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_compile") 2>conftest.er1
16839 grep -v '^ *+' conftest.er1 >conftest.err
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
16844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16845 { (case "(($ac_try" in
16846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16847 *) ac_try_echo
=$ac_try;;
16849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_try") 2>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; } &&
16854 { ac_try
='test -s conftest.$ac_objext'
16855 { (case "(($ac_try" in
16856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_try") 2>&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_header_compiler=yes
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16869 ac_header_compiler=no
16872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16874 echo "${ECHO_T}$ac_header_compiler" >&6; }
16876 # Is the header present?
16877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16879 cat >conftest.$ac_ext <<_ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h. */
16885 #include <$ac_header>
16887 if { (ac_try="$ac_cpp conftest.$ac_ext"
16888 case "(($ac_try" in
16889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16890 *) ac_try_echo
=$ac_try;;
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16895 grep -v '^ *+' conftest.er1
>conftest.err
16897 cat conftest.err
>&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } >/dev
/null
; then
16900 if test -s conftest.err
; then
16901 ac_cpp_err
=$ac_c_preproc_warn_flag
16902 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16909 if test -z "$ac_cpp_err"; then
16910 ac_header_preproc
=yes
16912 echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.
$ac_ext >&5
16915 ac_header_preproc
=no
16918 rm -f conftest.err conftest.
$ac_ext
16919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16920 echo "${ECHO_T}$ac_header_preproc" >&6; }
16922 # So? What about this header?
16923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16929 ac_header_preproc
=yes
16932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16945 ## ----------------------------------- ##
16946 ## Report this to llvmbugs@cs.uiuc.edu ##
16947 ## ----------------------------------- ##
16949 ) |
sed "s/^/$as_me: WARNING: /" >&2
16952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16954 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16957 eval "$as_ac_Header=\$ac_header_preproc"
16959 ac_res
=`eval echo '${'$as_ac_Header'}'`
16960 { echo "$as_me:$LINENO: result: $ac_res" >&5
16961 echo "${ECHO_T}$ac_res" >&6; }
16964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16965 cat >>confdefs.h
<<_ACEOF
16966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16973 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16975 for ac_header
in pthread.h
16977 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16978 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16981 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 ac_res
=`eval echo '${'$as_ac_Header'}'`
16985 { echo "$as_me:$LINENO: result: $ac_res" >&5
16986 echo "${ECHO_T}$ac_res" >&6; }
16988 # Is the header compilable?
16989 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16991 cat >conftest.
$ac_ext <<_ACEOF
16994 cat confdefs.h
>>conftest.
$ac_ext
16995 cat >>conftest.
$ac_ext <<_ACEOF
16996 /* end confdefs.h. */
16997 $ac_includes_default
16998 #include <$ac_header>
17000 rm -f conftest.
$ac_objext
17001 if { (ac_try
="$ac_compile"
17002 case "(($ac_try" in
17003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007 (eval "$ac_compile") 2>conftest.er1
17009 grep -v '^ *+' conftest.er1 >conftest.err
17011 cat conftest.err >&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } &&
17014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17024 { ac_try
='test -s conftest.$ac_objext'
17025 { (case "(($ac_try" in
17026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_try") 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; }; then
17034 ac_header_compiler=yes
17036 echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ac_header_compiler=no
17042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17044 echo "${ECHO_T}$ac_header_compiler" >&6; }
17046 # Is the header present?
17047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17048 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
17057 if { (ac_try="$ac_cpp conftest.$ac_ext"
17058 case "(($ac_try" in
17059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17060 *) ac_try_echo
=$ac_try;;
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17065 grep -v '^ *+' conftest.er1
>conftest.err
17067 cat conftest.err
>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } >/dev
/null
; then
17070 if test -s conftest.err
; then
17071 ac_cpp_err
=$ac_c_preproc_warn_flag
17072 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17079 if test -z "$ac_cpp_err"; then
17080 ac_header_preproc
=yes
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.
$ac_ext >&5
17085 ac_header_preproc
=no
17088 rm -f conftest.err conftest.
$ac_ext
17089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17090 echo "${ECHO_T}$ac_header_preproc" >&6; }
17092 # So? What about this header?
17093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17099 ac_header_preproc
=yes
17102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17115 ## ----------------------------------- ##
17116 ## Report this to llvmbugs@cs.uiuc.edu ##
17117 ## ----------------------------------- ##
17119 ) |
sed "s/^/$as_me: WARNING: /" >&2
17122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17124 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17127 eval "$as_ac_Header=\$ac_header_preproc"
17129 ac_res
=`eval echo '${'$as_ac_Header'}'`
17130 { echo "$as_me:$LINENO: result: $ac_res" >&5
17131 echo "${ECHO_T}$ac_res" >&6; }
17134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17135 cat >>confdefs.h
<<_ACEOF
17136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17152 if test "$llvm_cv_enable_libffi" = "yes" ; then
17155 for ac_header
in ffi.h ffi
/ffi.h
17157 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17158 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17161 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17164 ac_res
=`eval echo '${'$as_ac_Header'}'`
17165 { echo "$as_me:$LINENO: result: $ac_res" >&5
17166 echo "${ECHO_T}$ac_res" >&6; }
17168 # Is the header compilable?
17169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17171 cat >conftest.
$ac_ext <<_ACEOF
17174 cat confdefs.h
>>conftest.
$ac_ext
17175 cat >>conftest.
$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17177 $ac_includes_default
17178 #include <$ac_header>
17180 rm -f conftest.
$ac_objext
17181 if { (ac_try
="$ac_compile"
17182 case "(($ac_try" in
17183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_compile") 2>conftest.er1
17189 grep -v '^ *+' conftest.er1 >conftest.err
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17195 { (case "(($ac_try" in
17196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17197 *) ac_try_echo
=$ac_try;;
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_try") 2>&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try
='test -s conftest.$ac_objext'
17205 { (case "(($ac_try" in
17206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_try") 2>&5
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); }; }; then
17214 ac_header_compiler=yes
17216 echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17219 ac_header_compiler=no
17222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17224 echo "${ECHO_T}$ac_header_compiler" >&6; }
17226 # Is the header present?
17227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17229 cat >conftest.$ac_ext <<_ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235 #include <$ac_header>
17237 if { (ac_try="$ac_cpp conftest.$ac_ext"
17238 case "(($ac_try" in
17239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17240 *) ac_try_echo
=$ac_try;;
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17245 grep -v '^ *+' conftest.er1
>conftest.err
17247 cat conftest.err
>&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } >/dev
/null
; then
17250 if test -s conftest.err
; then
17251 ac_cpp_err
=$ac_c_preproc_warn_flag
17252 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17259 if test -z "$ac_cpp_err"; then
17260 ac_header_preproc
=yes
17262 echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.
$ac_ext >&5
17265 ac_header_preproc
=no
17268 rm -f conftest.err conftest.
$ac_ext
17269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17270 echo "${ECHO_T}$ac_header_preproc" >&6; }
17272 # So? What about this header?
17273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17279 ac_header_preproc
=yes
17282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17295 ## ----------------------------------- ##
17296 ## Report this to llvmbugs@cs.uiuc.edu ##
17297 ## ----------------------------------- ##
17299 ) |
sed "s/^/$as_me: WARNING: /" >&2
17302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17304 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17307 eval "$as_ac_Header=\$ac_header_preproc"
17309 ac_res
=`eval echo '${'$as_ac_Header'}'`
17310 { echo "$as_me:$LINENO: result: $ac_res" >&5
17311 echo "${ECHO_T}$ac_res" >&6; }
17314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17315 cat >>confdefs.h
<<_ACEOF
17316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17326 for ac_header
in CrashReporterClient.h
17328 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17329 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17332 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17335 ac_res
=`eval echo '${'$as_ac_Header'}'`
17336 { echo "$as_me:$LINENO: result: $ac_res" >&5
17337 echo "${ECHO_T}$ac_res" >&6; }
17339 # Is the header compilable?
17340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17342 cat >conftest.
$ac_ext <<_ACEOF
17345 cat confdefs.h
>>conftest.
$ac_ext
17346 cat >>conftest.
$ac_ext <<_ACEOF
17347 /* end confdefs.h. */
17348 $ac_includes_default
17349 #include <$ac_header>
17351 rm -f conftest.
$ac_objext
17352 if { (ac_try
="$ac_compile"
17353 case "(($ac_try" in
17354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_compile") 2>conftest.er1
17360 grep -v '^ *+' conftest.er1 >conftest.err
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17366 { (case "(($ac_try" in
17367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17368 *) ac_try_echo
=$ac_try;;
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_try") 2>&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; } &&
17375 { ac_try
='test -s conftest.$ac_objext'
17376 { (case "(($ac_try" in
17377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17378 *) ac_try_echo=$ac_try;;
17380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381 (eval "$ac_try") 2>&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 ac_header_compiler=yes
17387 echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.$ac_ext >&5
17390 ac_header_compiler=no
17393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17395 echo "${ECHO_T}$ac_header_compiler" >&6; }
17397 # Is the header present?
17398 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17400 cat >conftest.$ac_ext <<_ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17406 #include <$ac_header>
17408 if { (ac_try="$ac_cpp conftest.$ac_ext"
17409 case "(($ac_try" in
17410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17411 *) ac_try_echo
=$ac_try;;
17413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17416 grep -v '^ *+' conftest.er1
>conftest.err
17418 cat conftest.err
>&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } >/dev
/null
; then
17421 if test -s conftest.err
; then
17422 ac_cpp_err
=$ac_c_preproc_warn_flag
17423 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17430 if test -z "$ac_cpp_err"; then
17431 ac_header_preproc
=yes
17433 echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.
$ac_ext >&5
17436 ac_header_preproc
=no
17439 rm -f conftest.err conftest.
$ac_ext
17440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17441 echo "${ECHO_T}$ac_header_preproc" >&6; }
17443 # So? What about this header?
17444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17450 ac_header_preproc
=yes
17453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17466 ## ----------------------------------- ##
17467 ## Report this to llvmbugs@cs.uiuc.edu ##
17468 ## ----------------------------------- ##
17470 ) |
sed "s/^/$as_me: WARNING: /" >&2
17473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17475 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17478 eval "$as_ac_Header=\$ac_header_preproc"
17480 ac_res
=`eval echo '${'$as_ac_Header'}'`
17481 { echo "$as_me:$LINENO: result: $ac_res" >&5
17482 echo "${ECHO_T}$ac_res" >&6; }
17485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17486 cat >>confdefs.h
<<_ACEOF
17487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17495 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17496 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17497 cat >conftest.
$ac_ext <<_ACEOF
17500 cat confdefs.h
>>conftest.
$ac_ext
17501 cat >>conftest.
$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 extern const char *__crashreporter_info__;
17505 __crashreporter_info__ = "test";
17510 rm -f conftest.
$ac_objext conftest
$ac_exeext
17511 if { (ac_try
="$ac_link"
17512 case "(($ac_try" in
17513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_link") 2>conftest.er1
17519 grep -v '^ *+' conftest.er1 >conftest.err
17521 cat conftest.err >&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); } &&
17524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17525 { (case "(($ac_try" in
17526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17527 *) ac_try_echo
=$ac_try;;
17529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530 (eval "$ac_try") 2>&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; } &&
17534 { ac_try
='test -s conftest$ac_exeext'
17535 { (case "(($ac_try" in
17536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17537 *) ac_try_echo=$ac_try;;
17539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17540 (eval "$ac_try") 2>&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; }; then
17544 { echo "$as_me:$LINENO: result: yes" >&5
17545 echo "${ECHO_T}yes" >&6; }
17547 cat >>confdefs.h <<\_ACEOF
17548 #define HAVE_CRASHREPORTER_INFO 1
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 { echo "$as_me:$LINENO: result: no" >&5
17556 echo "${ECHO_T}no" >&6; }
17558 cat >>confdefs.h <<\_ACEOF
17559 #define HAVE_CRASHREPORTER_INFO 0
17564 rm -f core conftest.err conftest.$ac_objext \
17565 conftest$ac_exeext conftest.$ac_ext
17570 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17571 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17572 if test "${ac_cv_huge_val_sanity+set}" = set; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
17577 ac_cpp='$CXXCPP $CPPFLAGS'
17578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17582 ac_save_CXXFLAGS=$CXXFLAGS
17584 if test "$cross_compiling" = yes; then
17585 ac_cv_huge_val_sanity=yes
17587 cat >conftest.$ac_ext <<_ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17597 double x = HUGE_VAL; return x != x;
17602 rm -f conftest$ac_exeext
17603 if { (ac_try="$ac_link"
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_link") 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17613 { (case "(($ac_try" in
17614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_try") 2>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_huge_val_sanity=yes
17624 echo "$as_me: program exited with status $ac_status" >&5
17625 echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17628 ( exit $ac_status )
17629 ac_cv_huge_val_sanity=no
17631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17635 CXXFLAGS=$ac_save_CXXFLAGS
17637 ac_cpp='$CPP $CPPFLAGS'
17638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17644 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17645 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17646 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17649 { echo "$as_me:$LINENO: checking for pid_t" >&5
17650 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17651 if test "${ac_cv_type_pid_t+set}" = set; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17654 cat >conftest.$ac_ext <<_ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17660 $ac_includes_default
17661 typedef pid_t ac__type_new_;
17665 if ((ac__type_new_ *) 0)
17667 if (sizeof (ac__type_new_))
17673 rm -f conftest.$ac_objext
17674 if { (ac_try="$ac_compile"
17675 case "(($ac_try" in
17676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17677 *) ac_try_echo
=$ac_try;;
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_compile") 2>conftest.er1
17682 grep -v '^ *+' conftest.er1
>conftest.err
17684 cat conftest.err
>&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } &&
17687 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17688 { (case "(($ac_try" in
17689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_try") 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; } &&
17697 { ac_try='test -s conftest.$ac_objext'
17698 { (case "(($ac_try" in
17699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17700 *) ac_try_echo
=$ac_try;;
17702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17703 (eval "$ac_try") 2>&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 ac_cv_type_pid_t
=yes
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.
$ac_ext >&5
17712 ac_cv_type_pid_t
=no
17715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17717 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17718 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17719 if test $ac_cv_type_pid_t = yes; then
17723 cat >>confdefs.h
<<_ACEOF
17729 { echo "$as_me:$LINENO: checking for size_t" >&5
17730 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17731 if test "${ac_cv_type_size_t+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17734 cat >conftest.
$ac_ext <<_ACEOF
17737 cat confdefs.h
>>conftest.
$ac_ext
17738 cat >>conftest.
$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17740 $ac_includes_default
17741 typedef size_t ac__type_new_;
17745 if ((ac__type_new_ *) 0)
17747 if (sizeof (ac__type_new_))
17753 rm -f conftest.
$ac_objext
17754 if { (ac_try
="$ac_compile"
17755 case "(($ac_try" in
17756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760 (eval "$ac_compile") 2>conftest.er1
17762 grep -v '^ *+' conftest.er1 >conftest.err
17764 cat conftest.err >&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
17767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17768 { (case "(($ac_try" in
17769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17770 *) ac_try_echo
=$ac_try;;
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_try") 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try
='test -s conftest.$ac_objext'
17778 { (case "(($ac_try" in
17779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_try") 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787 ac_cv_type_size_t=yes
17789 echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17792 ac_cv_type_size_t=no
17795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17797 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17798 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17799 if test $ac_cv_type_size_t = yes; then
17803 cat >>confdefs.h <<_ACEOF
17804 #define size_t unsigned int
17810 cat >>confdefs.h <<_ACEOF
17811 #define RETSIGTYPE void
17814 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17815 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17816 if test "${ac_cv_struct_tm+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17819 cat >conftest.$ac_ext <<_ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17825 #include <sys/types.h>
17831 struct tm *tp; tp->tm_sec;
17836 rm -f conftest.$ac_objext
17837 if { (ac_try="$ac_compile"
17838 case "(($ac_try" in
17839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17840 *) ac_try_echo
=$ac_try;;
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_compile") 2>conftest.er1
17845 grep -v '^ *+' conftest.er1
>conftest.err
17847 cat conftest.err
>&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17851 { (case "(($ac_try" in
17852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_try") 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try='test -s conftest.$ac_objext'
17861 { (case "(($ac_try" in
17862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17863 *) ac_try_echo
=$ac_try;;
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_try") 2>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; }; then
17870 ac_cv_struct_tm
=time.h
17872 echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.
$ac_ext >&5
17875 ac_cv_struct_tm
=sys
/time.h
17878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17880 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17881 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17882 if test $ac_cv_struct_tm = sys
/time.h
; then
17884 cat >>confdefs.h
<<\_ACEOF
17885 #define TM_IN_SYS_TIME 1
17890 { echo "$as_me:$LINENO: checking for int64_t" >&5
17891 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17892 if test "${ac_cv_type_int64_t+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17895 cat >conftest.
$ac_ext <<_ACEOF
17898 cat confdefs.h
>>conftest.
$ac_ext
17899 cat >>conftest.
$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17901 $ac_includes_default
17902 typedef int64_t ac__type_new_;
17906 if ((ac__type_new_ *) 0)
17908 if (sizeof (ac__type_new_))
17914 rm -f conftest.
$ac_objext
17915 if { (ac_try
="$ac_compile"
17916 case "(($ac_try" in
17917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_compile") 2>conftest.er1
17923 grep -v '^ *+' conftest.er1 >conftest.err
17925 cat conftest.err >&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17929 { (case "(($ac_try" in
17930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17931 *) ac_try_echo
=$ac_try;;
17933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934 (eval "$ac_try") 2>&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; } &&
17938 { ac_try
='test -s conftest.$ac_objext'
17939 { (case "(($ac_try" in
17940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_try") 2>&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 ac_cv_type_int64_t=yes
17950 echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17953 ac_cv_type_int64_t=no
17956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17958 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17959 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17960 if test $ac_cv_type_int64_t = yes; then
17962 cat >>confdefs.h <<_ACEOF
17963 #define HAVE_INT64_T 1
17968 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17969 echo "$as_me: error: Type int64_t required but not found" >&2;}
17970 { (exit 1); exit 1; }; }
17973 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17974 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17975 if test "${ac_cv_type_uint64_t+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17978 cat >conftest.$ac_ext <<_ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17984 $ac_includes_default
17985 typedef uint64_t ac__type_new_;
17989 if ((ac__type_new_ *) 0)
17991 if (sizeof (ac__type_new_))
17997 rm -f conftest.$ac_objext
17998 if { (ac_try="$ac_compile"
17999 case "(($ac_try" in
18000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18001 *) ac_try_echo
=$ac_try;;
18003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_compile") 2>conftest.er1
18006 grep -v '^ *+' conftest.er1
>conftest.err
18008 cat conftest.err
>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18012 { (case "(($ac_try" in
18013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; } &&
18021 { ac_try='test -s conftest.$ac_objext'
18022 { (case "(($ac_try" in
18023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18024 *) ac_try_echo
=$ac_try;;
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_try") 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18031 ac_cv_type_uint64_t
=yes
18033 echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.
$ac_ext >&5
18036 ac_cv_type_uint64_t
=no
18039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18041 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18042 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18043 if test $ac_cv_type_uint64_t = yes; then
18045 cat >>confdefs.h
<<_ACEOF
18046 #define HAVE_UINT64_T 1
18051 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18052 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18053 if test "${ac_cv_type_u_int64_t+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18056 cat >conftest.
$ac_ext <<_ACEOF
18059 cat confdefs.h
>>conftest.
$ac_ext
18060 cat >>conftest.
$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18062 $ac_includes_default
18063 typedef u_int64_t ac__type_new_;
18067 if ((ac__type_new_ *) 0)
18069 if (sizeof (ac__type_new_))
18075 rm -f conftest.
$ac_objext
18076 if { (ac_try
="$ac_compile"
18077 case "(($ac_try" in
18078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18079 *) ac_try_echo=$ac_try;;
18081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082 (eval "$ac_compile") 2>conftest.er1
18084 grep -v '^ *+' conftest.er1 >conftest.err
18086 cat conftest.err >&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } &&
18089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18090 { (case "(($ac_try" in
18091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18092 *) ac_try_echo
=$ac_try;;
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_try") 2>&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); }; } &&
18099 { ac_try
='test -s conftest.$ac_objext'
18100 { (case "(($ac_try" in
18101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105 (eval "$ac_try") 2>&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; }; then
18109 ac_cv_type_u_int64_t=yes
18111 echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18114 ac_cv_type_u_int64_t=no
18117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18119 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18120 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18121 if test $ac_cv_type_u_int64_t = yes; then
18123 cat >>confdefs.h <<_ACEOF
18124 #define HAVE_U_INT64_T 1
18129 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18130 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18131 { (exit 1); exit 1; }; }
18145 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18147 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18153 cat >conftest.$ac_ext <<_ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18161 #define $ac_func innocuous_$ac_func
18163 /* System header to define __stub macros and hopefully few prototypes,
18164 which can conflict with char $ac_func (); below.
18165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18166 <limits.h> exists even on freestanding compilers. */
18169 # include <limits.h>
18171 # include <assert.h>
18176 /* Override any GCC internal prototype to avoid an error.
18177 Use char because int might match the return type of a GCC
18178 builtin and then its argument prototype would still apply. */
18183 /* The GNU C library defines this for functions which it implements
18184 to always fail with ENOSYS. Some functions are actually named
18185 something starting with __ and the normal name is an alias. */
18186 #if defined __stub_$ac_func || defined __stub___$ac_func
18193 return $ac_func ();
18198 rm -f conftest.$ac_objext conftest$ac_exeext
18199 if { (ac_try="$ac_link"
18200 case "(($ac_try" in
18201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18202 *) ac_try_echo
=$ac_try;;
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_link") 2>conftest.er1
18207 grep -v '^ *+' conftest.er1
>conftest.err
18209 cat conftest.err
>&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
18212 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18213 { (case "(($ac_try" in
18214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_try") 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest$ac_exeext'
18223 { (case "(($ac_try" in
18224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18225 *) ac_try_echo
=$ac_try;;
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_try") 2>&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; }; then
18232 eval "$as_ac_var=yes"
18234 echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.
$ac_ext >&5
18237 eval "$as_ac_var=no"
18240 rm -f core conftest.err conftest.
$ac_objext \
18241 conftest
$ac_exeext conftest.
$ac_ext
18243 ac_res
=`eval echo '${'$as_ac_var'}'`
18244 { echo "$as_me:$LINENO: result: $ac_res" >&5
18245 echo "${ECHO_T}$ac_res" >&6; }
18246 if test `eval echo '${'$as_ac_var'}'` = yes; then
18247 cat >>confdefs.h
<<_ACEOF
18248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18258 for ac_func
in powf fmodf strtof round
18260 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18263 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18264 echo $ECHO_N "(cached) $ECHO_C" >&6
18266 cat >conftest.
$ac_ext <<_ACEOF
18269 cat confdefs.h
>>conftest.
$ac_ext
18270 cat >>conftest.
$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18274 #define $ac_func innocuous_$ac_func
18276 /* System header to define __stub macros and hopefully few prototypes,
18277 which can conflict with char $ac_func (); below.
18278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18279 <limits.h> exists even on freestanding compilers. */
18282 # include <limits.h>
18284 # include <assert.h>
18289 /* Override any GCC internal prototype to avoid an error.
18290 Use char because int might match the return type of a GCC
18291 builtin and then its argument prototype would still apply. */
18296 /* The GNU C library defines this for functions which it implements
18297 to always fail with ENOSYS. Some functions are actually named
18298 something starting with __ and the normal name is an alias. */
18299 #if defined __stub_$ac_func || defined __stub___$ac_func
18306 return $ac_func ();
18311 rm -f conftest.
$ac_objext conftest
$ac_exeext
18312 if { (ac_try
="$ac_link"
18313 case "(($ac_try" in
18314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_link") 2>conftest.er1
18320 grep -v '^ *+' conftest.er1 >conftest.err
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } &&
18325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18326 { (case "(($ac_try" in
18327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18328 *) ac_try_echo
=$ac_try;;
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_try") 2>&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; } &&
18335 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
18345 eval "$as_ac_var=yes"
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18350 eval "$as_ac_var=no"
18353 rm -f core conftest.err conftest.$ac_objext \
18354 conftest$ac_exeext conftest.$ac_ext
18356 ac_res=`eval echo '${'$as_ac_var'}'`
18357 { echo "$as_me:$LINENO: result: $ac_res" >&5
18358 echo "${ECHO_T}$ac_res" >&6; }
18359 if test `eval echo '${'$as_ac_var'}'` = yes; then
18360 cat >>confdefs.h <<_ACEOF
18361 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18372 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18374 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 cat >conftest.$ac_ext <<_ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h. */
18386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18388 #define $ac_func innocuous_$ac_func
18390 /* System header to define __stub macros and hopefully few prototypes,
18391 which can conflict with char $ac_func (); below.
18392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18393 <limits.h> exists even on freestanding compilers. */
18396 # include <limits.h>
18398 # include <assert.h>
18403 /* Override any GCC internal prototype to avoid an error.
18404 Use char because int might match the return type of a GCC
18405 builtin and then its argument prototype would still apply. */
18410 /* The GNU C library defines this for functions which it implements
18411 to always fail with ENOSYS. Some functions are actually named
18412 something starting with __ and the normal name is an alias. */
18413 #if defined __stub_$ac_func || defined __stub___$ac_func
18420 return $ac_func ();
18425 rm -f conftest.$ac_objext conftest$ac_exeext
18426 if { (ac_try="$ac_link"
18427 case "(($ac_try" in
18428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18429 *) ac_try_echo
=$ac_try;;
18431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432 (eval "$ac_link") 2>conftest.er1
18434 grep -v '^ *+' conftest.er1
>conftest.err
18436 cat conftest.err
>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } &&
18439 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18440 { (case "(($ac_try" in
18441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_try") 2>&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; } &&
18449 { ac_try='test -s conftest$ac_exeext'
18450 { (case "(($ac_try" in
18451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18452 *) ac_try_echo
=$ac_try;;
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_try") 2>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 eval "$as_ac_var=yes"
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.
$ac_ext >&5
18464 eval "$as_ac_var=no"
18467 rm -f core conftest.err conftest.
$ac_objext \
18468 conftest
$ac_exeext conftest.
$ac_ext
18470 ac_res
=`eval echo '${'$as_ac_var'}'`
18471 { echo "$as_me:$LINENO: result: $ac_res" >&5
18472 echo "${ECHO_T}$ac_res" >&6; }
18473 if test `eval echo '${'$as_ac_var'}'` = yes; then
18474 cat >>confdefs.h
<<_ACEOF
18475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18484 for ac_func
in isatty mkdtemp mkstemp
18486 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18489 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18492 cat >conftest.
$ac_ext <<_ACEOF
18495 cat confdefs.h
>>conftest.
$ac_ext
18496 cat >>conftest.
$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18500 #define $ac_func innocuous_$ac_func
18502 /* System header to define __stub macros and hopefully few prototypes,
18503 which can conflict with char $ac_func (); below.
18504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18505 <limits.h> exists even on freestanding compilers. */
18508 # include <limits.h>
18510 # include <assert.h>
18515 /* Override any GCC internal prototype to avoid an error.
18516 Use char because int might match the return type of a GCC
18517 builtin and then its argument prototype would still apply. */
18522 /* The GNU C library defines this for functions which it implements
18523 to always fail with ENOSYS. Some functions are actually named
18524 something starting with __ and the normal name is an alias. */
18525 #if defined __stub_$ac_func || defined __stub___$ac_func
18532 return $ac_func ();
18537 rm -f conftest.
$ac_objext conftest
$ac_exeext
18538 if { (ac_try
="$ac_link"
18539 case "(($ac_try" in
18540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_link") 2>conftest.er1
18546 grep -v '^ *+' conftest.er1 >conftest.err
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18552 { (case "(($ac_try" in
18553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18554 *) ac_try_echo
=$ac_try;;
18556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557 (eval "$ac_try") 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try
='test -s conftest$ac_exeext'
18562 { (case "(($ac_try" in
18563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_try") 2>&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; }; then
18571 eval "$as_ac_var=yes"
18573 echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.$ac_ext >&5
18576 eval "$as_ac_var=no"
18579 rm -f core conftest.err conftest.$ac_objext \
18580 conftest$ac_exeext conftest.$ac_ext
18582 ac_res=`eval echo '${'$as_ac_var'}'`
18583 { echo "$as_me:$LINENO: result: $ac_res" >&5
18584 echo "${ECHO_T}$ac_res" >&6; }
18585 if test `eval echo '${'$as_ac_var'}'` = yes; then
18586 cat >>confdefs.h <<_ACEOF
18587 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18599 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18601 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18602 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18604 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18605 echo $ECHO_N "(cached) $ECHO_C" >&6
18607 cat >conftest.$ac_ext <<_ACEOF
18610 cat confdefs.h >>conftest.$ac_ext
18611 cat >>conftest.$ac_ext <<_ACEOF
18612 /* end confdefs.h. */
18613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18615 #define $ac_func innocuous_$ac_func
18617 /* System header to define __stub macros and hopefully few prototypes,
18618 which can conflict with char $ac_func (); below.
18619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18620 <limits.h> exists even on freestanding compilers. */
18623 # include <limits.h>
18625 # include <assert.h>
18630 /* Override any GCC internal prototype to avoid an error.
18631 Use char because int might match the return type of a GCC
18632 builtin and then its argument prototype would still apply. */
18637 /* The GNU C library defines this for functions which it implements
18638 to always fail with ENOSYS. Some functions are actually named
18639 something starting with __ and the normal name is an alias. */
18640 #if defined __stub_$ac_func || defined __stub___$ac_func
18647 return $ac_func ();
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (ac_try="$ac_link"
18654 case "(($ac_try" in
18655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18656 *) ac_try_echo
=$ac_try;;
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_link") 2>conftest.er1
18661 grep -v '^ *+' conftest.er1
>conftest.err
18663 cat conftest.err
>&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18667 { (case "(($ac_try" in
18668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_try") 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest$ac_exeext'
18677 { (case "(($ac_try" in
18678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18679 *) ac_try_echo
=$ac_try;;
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_try") 2>&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); }; }; then
18686 eval "$as_ac_var=yes"
18688 echo "$as_me: failed program was:" >&5
18689 sed 's/^/| /' conftest.
$ac_ext >&5
18691 eval "$as_ac_var=no"
18694 rm -f core conftest.err conftest.
$ac_objext \
18695 conftest
$ac_exeext conftest.
$ac_ext
18697 ac_res
=`eval echo '${'$as_ac_var'}'`
18698 { echo "$as_me:$LINENO: result: $ac_res" >&5
18699 echo "${ECHO_T}$ac_res" >&6; }
18700 if test `eval echo '${'$as_ac_var'}'` = yes; then
18701 cat >>confdefs.h
<<_ACEOF
18702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18711 for ac_func
in strerror strerror_r setenv
18713 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18716 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18719 cat >conftest.
$ac_ext <<_ACEOF
18722 cat confdefs.h
>>conftest.
$ac_ext
18723 cat >>conftest.
$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18727 #define $ac_func innocuous_$ac_func
18729 /* System header to define __stub macros and hopefully few prototypes,
18730 which can conflict with char $ac_func (); below.
18731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18732 <limits.h> exists even on freestanding compilers. */
18735 # include <limits.h>
18737 # include <assert.h>
18742 /* Override any GCC internal prototype to avoid an error.
18743 Use char because int might match the return type of a GCC
18744 builtin and then its argument prototype would still apply. */
18749 /* The GNU C library defines this for functions which it implements
18750 to always fail with ENOSYS. Some functions are actually named
18751 something starting with __ and the normal name is an alias. */
18752 #if defined __stub_$ac_func || defined __stub___$ac_func
18759 return $ac_func ();
18764 rm -f conftest.
$ac_objext conftest
$ac_exeext
18765 if { (ac_try
="$ac_link"
18766 case "(($ac_try" in
18767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_link") 2>conftest.er1
18773 grep -v '^ *+' conftest.er1 >conftest.err
18775 cat conftest.err >&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } &&
18778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18779 { (case "(($ac_try" in
18780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18781 *) ac_try_echo
=$ac_try;;
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_try") 2>&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; } &&
18788 { ac_try
='test -s conftest$ac_exeext'
18789 { (case "(($ac_try" in
18790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18791 *) ac_try_echo=$ac_try;;
18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794 (eval "$ac_try") 2>&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; }; then
18798 eval "$as_ac_var=yes"
18800 echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18803 eval "$as_ac_var=no"
18806 rm -f core conftest.err conftest.$ac_objext \
18807 conftest$ac_exeext conftest.$ac_ext
18809 ac_res=`eval echo '${'$as_ac_var'}'`
18810 { echo "$as_me:$LINENO: result: $ac_res" >&5
18811 echo "${ECHO_T}$ac_res" >&6; }
18812 if test `eval echo '${'$as_ac_var'}'` = yes; then
18813 cat >>confdefs.h <<_ACEOF
18814 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18824 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18826 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18832 cat >conftest.$ac_ext <<_ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18840 #define $ac_func innocuous_$ac_func
18842 /* System header to define __stub macros and hopefully few prototypes,
18843 which can conflict with char $ac_func (); below.
18844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18845 <limits.h> exists even on freestanding compilers. */
18848 # include <limits.h>
18850 # include <assert.h>
18855 /* Override any GCC internal prototype to avoid an error.
18856 Use char because int might match the return type of a GCC
18857 builtin and then its argument prototype would still apply. */
18862 /* The GNU C library defines this for functions which it implements
18863 to always fail with ENOSYS. Some functions are actually named
18864 something starting with __ and the normal name is an alias. */
18865 #if defined __stub_$ac_func || defined __stub___$ac_func
18872 return $ac_func ();
18877 rm -f conftest.$ac_objext conftest$ac_exeext
18878 if { (ac_try="$ac_link"
18879 case "(($ac_try" in
18880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18881 *) ac_try_echo
=$ac_try;;
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_link") 2>conftest.er1
18886 grep -v '^ *+' conftest.er1
>conftest.err
18888 cat conftest.err
>&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
18891 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18892 { (case "(($ac_try" in
18893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_try") 2>&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; } &&
18901 { ac_try='test -s conftest$ac_exeext'
18902 { (case "(($ac_try" in
18903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18904 *) ac_try_echo
=$ac_try;;
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_try") 2>&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; }; then
18911 eval "$as_ac_var=yes"
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.
$ac_ext >&5
18916 eval "$as_ac_var=no"
18919 rm -f core conftest.err conftest.
$ac_objext \
18920 conftest
$ac_exeext conftest.
$ac_ext
18922 ac_res
=`eval echo '${'$as_ac_var'}'`
18923 { echo "$as_me:$LINENO: result: $ac_res" >&5
18924 echo "${ECHO_T}$ac_res" >&6; }
18925 if test `eval echo '${'$as_ac_var'}'` = yes; then
18926 cat >>confdefs.h
<<_ACEOF
18927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18938 for ac_func
in setjmp longjmp sigsetjmp siglongjmp writev
18940 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18943 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18946 cat >conftest.
$ac_ext <<_ACEOF
18949 cat confdefs.h
>>conftest.
$ac_ext
18950 cat >>conftest.
$ac_ext <<_ACEOF
18951 /* end confdefs.h. */
18952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18954 #define $ac_func innocuous_$ac_func
18956 /* System header to define __stub macros and hopefully few prototypes,
18957 which can conflict with char $ac_func (); below.
18958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18959 <limits.h> exists even on freestanding compilers. */
18962 # include <limits.h>
18964 # include <assert.h>
18969 /* Override any GCC internal prototype to avoid an error.
18970 Use char because int might match the return type of a GCC
18971 builtin and then its argument prototype would still apply. */
18976 /* The GNU C library defines this for functions which it implements
18977 to always fail with ENOSYS. Some functions are actually named
18978 something starting with __ and the normal name is an alias. */
18979 #if defined __stub_$ac_func || defined __stub___$ac_func
18986 return $ac_func ();
18991 rm -f conftest.
$ac_objext conftest
$ac_exeext
18992 if { (ac_try
="$ac_link"
18993 case "(($ac_try" in
18994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_link") 2>conftest.er1
19000 grep -v '^ *+' conftest.er1 >conftest.err
19002 cat conftest.err >&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } &&
19005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19006 { (case "(($ac_try" in
19007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19008 *) ac_try_echo
=$ac_try;;
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_try") 2>&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; } &&
19015 { ac_try
='test -s conftest$ac_exeext'
19016 { (case "(($ac_try" in
19017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_try") 2>&5
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); }; }; then
19025 eval "$as_ac_var=yes"
19027 echo "$as_me: failed program was:" >&5
19028 sed 's/^/| /' conftest.$ac_ext >&5
19030 eval "$as_ac_var=no"
19033 rm -f core conftest.err conftest.$ac_objext \
19034 conftest$ac_exeext conftest.$ac_ext
19036 ac_res=`eval echo '${'$as_ac_var'}'`
19037 { echo "$as_me:$LINENO: result: $ac_res" >&5
19038 echo "${ECHO_T}$ac_res" >&6; }
19039 if test `eval echo '${'$as_ac_var'}'` = yes; then
19040 cat >>confdefs.h <<_ACEOF
19041 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19047 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19048 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19049 if test "${llvm_cv_c_printf_a+set}" = set; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19053 ac_cpp='$CPP $CPPFLAGS'
19054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19058 if test "$cross_compiling" = yes; then
19059 llvmac_cv_c_printf_a=no
19061 cat >conftest.$ac_ext <<_ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19070 #include <stdlib.h>
19076 volatile double A, B;
19080 sprintf(Buffer, "%a", A);
19084 if (A != 0x1.999999999999ap-4)
19091 rm -f conftest$ac_exeext
19092 if { (ac_try="$ac_link"
19093 case "(($ac_try" in
19094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19095 *) ac_try_echo
=$ac_try;;
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_link") 2>&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19102 { (case "(($ac_try" in
19103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19104 *) ac_try_echo=$ac_try;;
19106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19107 (eval "$ac_try") 2>&5
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 llvm_cv_c_printf_a=yes
19113 echo "$as_me: program exited with status $ac_status" >&5
19114 echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19117 ( exit $ac_status )
19118 llvmac_cv_c_printf_a=no
19120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19125 ac_cpp='$CPP $CPPFLAGS'
19126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19131 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19132 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19133 if test "$llvm_cv_c_printf_a" = "yes"; then
19135 cat >>confdefs.h <<\_ACEOF
19136 #define HAVE_PRINTF_A 1
19142 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19143 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19144 if test "${ac_cv_func_rand48+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19148 ac_cpp='$CXXCPP $CPPFLAGS'
19149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19153 cat >conftest.$ac_ext <<_ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h. */
19159 #include <stdlib.h>
19163 srand48(0);lrand48();drand48();
19168 rm -f conftest.$ac_objext
19169 if { (ac_try="$ac_compile"
19170 case "(($ac_try" in
19171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19172 *) ac_try_echo
=$ac_try;;
19174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_compile") 2>conftest.er1
19177 grep -v '^ *+' conftest.er1
>conftest.err
19179 cat conftest.err
>&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } &&
19182 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19183 { (case "(($ac_try" in
19184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_try") 2>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; } &&
19192 { ac_try='test -s conftest.$ac_objext'
19193 { (case "(($ac_try" in
19194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19195 *) ac_try_echo
=$ac_try;;
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198 (eval "$ac_try") 2>&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; }; then
19202 ac_cv_func_rand48
=yes
19204 echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.
$ac_ext >&5
19207 ac_cv_func_rand48
=no
19210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19212 ac_cpp
='$CPP $CPPFLAGS'
19213 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19214 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19215 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19218 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19219 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19221 if test "$ac_cv_func_rand48" = "yes" ; then
19223 cat >>confdefs.h
<<\_ACEOF
19224 #define HAVE_RAND48 1
19230 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19231 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19232 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19235 cat >conftest.
$ac_ext <<_ACEOF
19238 cat confdefs.h
>>conftest.
$ac_ext
19239 cat >>conftest.
$ac_ext <<_ACEOF
19240 /* end confdefs.h. */
19241 $ac_includes_default
19246 char *p = (char *) strerror_s;
19254 rm -f conftest.
$ac_objext
19255 if { (ac_try
="$ac_compile"
19256 case "(($ac_try" in
19257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_compile") 2>conftest.er1
19263 grep -v '^ *+' conftest.er1 >conftest.err
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
19268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19269 { (case "(($ac_try" in
19270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19271 *) ac_try_echo
=$ac_try;;
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_try") 2>&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; } &&
19278 { ac_try
='test -s conftest.$ac_objext'
19279 { (case "(($ac_try" in
19280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_try") 2>&5
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; }; then
19288 ac_cv_have_decl_strerror_s=yes
19290 echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19293 ac_cv_have_decl_strerror_s=no
19296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19298 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19299 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19300 if test $ac_cv_have_decl_strerror_s = yes; then
19302 cat >>confdefs.h <<_ACEOF
19303 #define HAVE_DECL_STRERROR_S 1
19308 cat >>confdefs.h <<_ACEOF
19309 #define HAVE_DECL_STRERROR_S 0
19317 if test "$llvm_cv_os_type" = "MingW" ; then
19318 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19319 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19320 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19323 ac_check_lib_save_LIBS=$LIBS
19325 cat >conftest.$ac_ext <<_ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19332 /* Override any GCC internal prototype to avoid an error.
19333 Use char because int might match the return type of a GCC
19334 builtin and then its argument prototype would still apply. */
19347 rm -f conftest.$ac_objext conftest$ac_exeext
19348 if { (ac_try="$ac_link"
19349 case "(($ac_try" in
19350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19351 *) ac_try_echo
=$ac_try;;
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_link") 2>conftest.er1
19356 grep -v '^ *+' conftest.er1
>conftest.err
19358 cat conftest.err
>&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
19361 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19362 { (case "(($ac_try" in
19363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19364 *) ac_try_echo=$ac_try;;
19366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19367 (eval "$ac_try") 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; } &&
19371 { ac_try='test -s conftest$ac_exeext'
19372 { (case "(($ac_try" in
19373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19374 *) ac_try_echo
=$ac_try;;
19376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377 (eval "$ac_try") 2>&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; }; then
19381 ac_cv_lib_gcc__alloca
=yes
19383 echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.
$ac_ext >&5
19386 ac_cv_lib_gcc__alloca
=no
19389 rm -f core conftest.err conftest.
$ac_objext \
19390 conftest
$ac_exeext conftest.
$ac_ext
19391 LIBS
=$ac_check_lib_save_LIBS
19393 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19394 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19395 if test $ac_cv_lib_gcc__alloca = yes; then
19397 cat >>confdefs.h
<<\_ACEOF
19398 #define HAVE__ALLOCA 1
19403 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19404 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19405 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 ac_check_lib_save_LIBS
=$LIBS
19410 cat >conftest.
$ac_ext <<_ACEOF
19413 cat confdefs.h
>>conftest.
$ac_ext
19414 cat >>conftest.
$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19417 /* Override any GCC internal prototype to avoid an error.
19418 Use char because int might match the return type of a GCC
19419 builtin and then its argument prototype would still apply. */
19427 return __alloca ();
19432 rm -f conftest.
$ac_objext conftest
$ac_exeext
19433 if { (ac_try
="$ac_link"
19434 case "(($ac_try" in
19435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_link") 2>conftest.er1
19441 grep -v '^ *+' conftest.er1 >conftest.err
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } &&
19446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19447 { (case "(($ac_try" in
19448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19449 *) ac_try_echo
=$ac_try;;
19451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452 (eval "$ac_try") 2>&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; } &&
19456 { ac_try
='test -s conftest$ac_exeext'
19457 { (case "(($ac_try" in
19458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19459 *) ac_try_echo=$ac_try;;
19461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19462 (eval "$ac_try") 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
19466 ac_cv_lib_gcc___alloca=yes
19468 echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19471 ac_cv_lib_gcc___alloca=no
19474 rm -f core conftest.err conftest.$ac_objext \
19475 conftest$ac_exeext conftest.$ac_ext
19476 LIBS=$ac_check_lib_save_LIBS
19478 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19479 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19480 if test $ac_cv_lib_gcc___alloca = yes; then
19482 cat >>confdefs.h <<\_ACEOF
19483 #define HAVE___ALLOCA 1
19488 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19489 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19490 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19493 ac_check_lib_save_LIBS=$LIBS
19495 cat >conftest.$ac_ext <<_ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h. */
19502 /* Override any GCC internal prototype to avoid an error.
19503 Use char because int might match the return type of a GCC
19504 builtin and then its argument prototype would still apply. */
19512 return __chkstk ();
19517 rm -f conftest.$ac_objext conftest$ac_exeext
19518 if { (ac_try="$ac_link"
19519 case "(($ac_try" in
19520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19521 *) ac_try_echo
=$ac_try;;
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_link") 2>conftest.er1
19526 grep -v '^ *+' conftest.er1
>conftest.err
19528 cat conftest.err
>&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } &&
19531 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19532 { (case "(($ac_try" in
19533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537 (eval "$ac_try") 2>&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; } &&
19541 { ac_try='test -s conftest$ac_exeext'
19542 { (case "(($ac_try" in
19543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19544 *) ac_try_echo
=$ac_try;;
19546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547 (eval "$ac_try") 2>&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; }; then
19551 ac_cv_lib_gcc___chkstk
=yes
19553 echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.
$ac_ext >&5
19556 ac_cv_lib_gcc___chkstk
=no
19559 rm -f core conftest.err conftest.
$ac_objext \
19560 conftest
$ac_exeext conftest.
$ac_ext
19561 LIBS
=$ac_check_lib_save_LIBS
19563 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19564 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19565 if test $ac_cv_lib_gcc___chkstk = yes; then
19567 cat >>confdefs.h
<<\_ACEOF
19568 #define HAVE___CHKSTK 1
19573 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19574 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19575 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19578 ac_check_lib_save_LIBS
=$LIBS
19580 cat >conftest.
$ac_ext <<_ACEOF
19583 cat confdefs.h
>>conftest.
$ac_ext
19584 cat >>conftest.
$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19587 /* Override any GCC internal prototype to avoid an error.
19588 Use char because int might match the return type of a GCC
19589 builtin and then its argument prototype would still apply. */
19597 return ___chkstk ();
19602 rm -f conftest.
$ac_objext conftest
$ac_exeext
19603 if { (ac_try
="$ac_link"
19604 case "(($ac_try" in
19605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_link") 2>conftest.er1
19611 grep -v '^ *+' conftest.er1 >conftest.err
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } &&
19616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19617 { (case "(($ac_try" in
19618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19619 *) ac_try_echo
=$ac_try;;
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_try") 2>&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; } &&
19626 { ac_try
='test -s conftest$ac_exeext'
19627 { (case "(($ac_try" in
19628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19629 *) ac_try_echo=$ac_try;;
19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632 (eval "$ac_try") 2>&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; }; then
19636 ac_cv_lib_gcc____chkstk=yes
19638 echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19641 ac_cv_lib_gcc____chkstk=no
19644 rm -f core conftest.err conftest.$ac_objext \
19645 conftest$ac_exeext conftest.$ac_ext
19646 LIBS=$ac_check_lib_save_LIBS
19648 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19649 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19650 if test $ac_cv_lib_gcc____chkstk = yes; then
19652 cat >>confdefs.h <<\_ACEOF
19653 #define HAVE____CHKSTK 1
19659 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19660 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19661 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 ac_check_lib_save_LIBS=$LIBS
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19673 /* Override any GCC internal prototype to avoid an error.
19674 Use char because int might match the return type of a GCC
19675 builtin and then its argument prototype would still apply. */
19683 return __ashldi3 ();
19688 rm -f conftest.$ac_objext conftest$ac_exeext
19689 if { (ac_try="$ac_link"
19690 case "(($ac_try" in
19691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19692 *) ac_try_echo
=$ac_try;;
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_link") 2>conftest.er1
19697 grep -v '^ *+' conftest.er1
>conftest.err
19699 cat conftest.err
>&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } &&
19702 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19703 { (case "(($ac_try" in
19704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_try") 2>&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; } &&
19712 { ac_try='test -s conftest$ac_exeext'
19713 { (case "(($ac_try" in
19714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19715 *) ac_try_echo
=$ac_try;;
19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718 (eval "$ac_try") 2>&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; }; then
19722 ac_cv_lib_gcc___ashldi3
=yes
19724 echo "$as_me: failed program was:" >&5
19725 sed 's/^/| /' conftest.
$ac_ext >&5
19727 ac_cv_lib_gcc___ashldi3
=no
19730 rm -f core conftest.err conftest.
$ac_objext \
19731 conftest
$ac_exeext conftest.
$ac_ext
19732 LIBS
=$ac_check_lib_save_LIBS
19734 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19735 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19736 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19738 cat >>confdefs.h
<<\_ACEOF
19739 #define HAVE___ASHLDI3 1
19744 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19745 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19746 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19749 ac_check_lib_save_LIBS
=$LIBS
19751 cat >conftest.
$ac_ext <<_ACEOF
19754 cat confdefs.h
>>conftest.
$ac_ext
19755 cat >>conftest.
$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19758 /* Override any GCC internal prototype to avoid an error.
19759 Use char because int might match the return type of a GCC
19760 builtin and then its argument prototype would still apply. */
19768 return __ashrdi3 ();
19773 rm -f conftest.
$ac_objext conftest
$ac_exeext
19774 if { (ac_try
="$ac_link"
19775 case "(($ac_try" in
19776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19777 *) ac_try_echo=$ac_try;;
19779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780 (eval "$ac_link") 2>conftest.er1
19782 grep -v '^ *+' conftest.er1 >conftest.err
19784 cat conftest.err >&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
19787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19788 { (case "(($ac_try" in
19789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19790 *) ac_try_echo
=$ac_try;;
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_try") 2>&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; } &&
19797 { ac_try
='test -s conftest$ac_exeext'
19798 { (case "(($ac_try" in
19799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19800 *) ac_try_echo=$ac_try;;
19802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803 (eval "$ac_try") 2>&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 ac_cv_lib_gcc___ashrdi3=yes
19809 echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19812 ac_cv_lib_gcc___ashrdi3=no
19815 rm -f core conftest.err conftest.$ac_objext \
19816 conftest$ac_exeext conftest.$ac_ext
19817 LIBS=$ac_check_lib_save_LIBS
19819 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19820 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19821 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19823 cat >>confdefs.h <<\_ACEOF
19824 #define HAVE___ASHRDI3 1
19829 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19830 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19831 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19834 ac_check_lib_save_LIBS=$LIBS
19836 cat >conftest.$ac_ext <<_ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19843 /* Override any GCC internal prototype to avoid an error.
19844 Use char because int might match the return type of a GCC
19845 builtin and then its argument prototype would still apply. */
19853 return __divdi3 ();
19858 rm -f conftest.$ac_objext conftest$ac_exeext
19859 if { (ac_try="$ac_link"
19860 case "(($ac_try" in
19861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19862 *) ac_try_echo
=$ac_try;;
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_link") 2>conftest.er1
19867 grep -v '^ *+' conftest.er1
>conftest.err
19869 cat conftest.err
>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } &&
19872 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19873 { (case "(($ac_try" in
19874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_try") 2>&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try='test -s conftest$ac_exeext'
19883 { (case "(($ac_try" in
19884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19885 *) ac_try_echo
=$ac_try;;
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_try") 2>&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
19892 ac_cv_lib_gcc___divdi3
=yes
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.
$ac_ext >&5
19897 ac_cv_lib_gcc___divdi3
=no
19900 rm -f core conftest.err conftest.
$ac_objext \
19901 conftest
$ac_exeext conftest.
$ac_ext
19902 LIBS
=$ac_check_lib_save_LIBS
19904 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19905 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19906 if test $ac_cv_lib_gcc___divdi3 = yes; then
19908 cat >>confdefs.h
<<\_ACEOF
19909 #define HAVE___DIVDI3 1
19914 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19915 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19916 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 ac_check_lib_save_LIBS
=$LIBS
19921 cat >conftest.
$ac_ext <<_ACEOF
19924 cat confdefs.h
>>conftest.
$ac_ext
19925 cat >>conftest.
$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19928 /* Override any GCC internal prototype to avoid an error.
19929 Use char because int might match the return type of a GCC
19930 builtin and then its argument prototype would still apply. */
19938 return __fixdfdi ();
19943 rm -f conftest.
$ac_objext conftest
$ac_exeext
19944 if { (ac_try
="$ac_link"
19945 case "(($ac_try" in
19946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_link") 2>conftest.er1
19952 grep -v '^ *+' conftest.er1 >conftest.err
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } &&
19957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19958 { (case "(($ac_try" in
19959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19960 *) ac_try_echo
=$ac_try;;
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_try") 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; } &&
19967 { ac_try
='test -s conftest$ac_exeext'
19968 { (case "(($ac_try" in
19969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_try") 2>&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19977 ac_cv_lib_gcc___fixdfdi=yes
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19982 ac_cv_lib_gcc___fixdfdi=no
19985 rm -f core conftest.err conftest.$ac_objext \
19986 conftest$ac_exeext conftest.$ac_ext
19987 LIBS=$ac_check_lib_save_LIBS
19989 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19990 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19991 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19993 cat >>confdefs.h <<\_ACEOF
19994 #define HAVE___FIXDFDI 1
19999 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20000 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20001 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20004 ac_check_lib_save_LIBS=$LIBS
20006 cat >conftest.$ac_ext <<_ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20013 /* Override any GCC internal prototype to avoid an error.
20014 Use char because int might match the return type of a GCC
20015 builtin and then its argument prototype would still apply. */
20023 return __fixsfdi ();
20028 rm -f conftest.$ac_objext conftest$ac_exeext
20029 if { (ac_try="$ac_link"
20030 case "(($ac_try" in
20031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20032 *) ac_try_echo
=$ac_try;;
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_link") 2>conftest.er1
20037 grep -v '^ *+' conftest.er1
>conftest.err
20039 cat conftest.err
>&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } &&
20042 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20043 { (case "(($ac_try" in
20044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_try") 2>&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; } &&
20052 { ac_try='test -s conftest$ac_exeext'
20053 { (case "(($ac_try" in
20054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20055 *) ac_try_echo
=$ac_try;;
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_try") 2>&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; }; then
20062 ac_cv_lib_gcc___fixsfdi
=yes
20064 echo "$as_me: failed program was:" >&5
20065 sed 's/^/| /' conftest.
$ac_ext >&5
20067 ac_cv_lib_gcc___fixsfdi
=no
20070 rm -f core conftest.err conftest.
$ac_objext \
20071 conftest
$ac_exeext conftest.
$ac_ext
20072 LIBS
=$ac_check_lib_save_LIBS
20074 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20075 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20076 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20078 cat >>confdefs.h
<<\_ACEOF
20079 #define HAVE___FIXSFDI 1
20084 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20085 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20086 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 ac_check_lib_save_LIBS
=$LIBS
20091 cat >conftest.
$ac_ext <<_ACEOF
20094 cat confdefs.h
>>conftest.
$ac_ext
20095 cat >>conftest.
$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20098 /* Override any GCC internal prototype to avoid an error.
20099 Use char because int might match the return type of a GCC
20100 builtin and then its argument prototype would still apply. */
20104 char __floatdidf ();
20108 return __floatdidf ();
20113 rm -f conftest.
$ac_objext conftest
$ac_exeext
20114 if { (ac_try
="$ac_link"
20115 case "(($ac_try" in
20116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_link") 2>conftest.er1
20122 grep -v '^ *+' conftest.er1 >conftest.err
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } &&
20127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20128 { (case "(($ac_try" in
20129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20130 *) ac_try_echo
=$ac_try;;
20132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20133 (eval "$ac_try") 2>&5
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; } &&
20137 { ac_try
='test -s conftest$ac_exeext'
20138 { (case "(($ac_try" in
20139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_try") 2>&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; }; then
20147 ac_cv_lib_gcc___floatdidf=yes
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20152 ac_cv_lib_gcc___floatdidf=no
20155 rm -f core conftest.err conftest.$ac_objext \
20156 conftest$ac_exeext conftest.$ac_ext
20157 LIBS=$ac_check_lib_save_LIBS
20159 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20160 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20161 if test $ac_cv_lib_gcc___floatdidf = yes; then
20163 cat >>confdefs.h <<\_ACEOF
20164 #define HAVE___FLOATDIDF 1
20169 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20170 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20171 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20174 ac_check_lib_save_LIBS=$LIBS
20176 cat >conftest.$ac_ext <<_ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20183 /* Override any GCC internal prototype to avoid an error.
20184 Use char because int might match the return type of a GCC
20185 builtin and then its argument prototype would still apply. */
20193 return __lshrdi3 ();
20198 rm -f conftest.$ac_objext conftest$ac_exeext
20199 if { (ac_try="$ac_link"
20200 case "(($ac_try" in
20201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20202 *) ac_try_echo
=$ac_try;;
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_link") 2>conftest.er1
20207 grep -v '^ *+' conftest.er1
>conftest.err
20209 cat conftest.err
>&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } &&
20212 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20213 { (case "(($ac_try" in
20214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20215 *) ac_try_echo=$ac_try;;
20217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20218 (eval "$ac_try") 2>&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; } &&
20222 { ac_try='test -s conftest$ac_exeext'
20223 { (case "(($ac_try" in
20224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20225 *) ac_try_echo
=$ac_try;;
20227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228 (eval "$ac_try") 2>&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; }; then
20232 ac_cv_lib_gcc___lshrdi3
=yes
20234 echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.
$ac_ext >&5
20237 ac_cv_lib_gcc___lshrdi3
=no
20240 rm -f core conftest.err conftest.
$ac_objext \
20241 conftest
$ac_exeext conftest.
$ac_ext
20242 LIBS
=$ac_check_lib_save_LIBS
20244 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20245 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20246 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20248 cat >>confdefs.h
<<\_ACEOF
20249 #define HAVE___LSHRDI3 1
20254 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20255 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20256 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
20259 ac_check_lib_save_LIBS
=$LIBS
20261 cat >conftest.
$ac_ext <<_ACEOF
20264 cat confdefs.h
>>conftest.
$ac_ext
20265 cat >>conftest.
$ac_ext <<_ACEOF
20266 /* end confdefs.h. */
20268 /* Override any GCC internal prototype to avoid an error.
20269 Use char because int might match the return type of a GCC
20270 builtin and then its argument prototype would still apply. */
20278 return __moddi3 ();
20283 rm -f conftest.
$ac_objext conftest
$ac_exeext
20284 if { (ac_try
="$ac_link"
20285 case "(($ac_try" in
20286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_link") 2>conftest.er1
20292 grep -v '^ *+' conftest.er1 >conftest.err
20294 cat conftest.err >&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } &&
20297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20298 { (case "(($ac_try" in
20299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20300 *) ac_try_echo
=$ac_try;;
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303 (eval "$ac_try") 2>&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; } &&
20307 { ac_try
='test -s conftest$ac_exeext'
20308 { (case "(($ac_try" in
20309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20310 *) ac_try_echo=$ac_try;;
20312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313 (eval "$ac_try") 2>&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; }; then
20317 ac_cv_lib_gcc___moddi3=yes
20319 echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20322 ac_cv_lib_gcc___moddi3=no
20325 rm -f core conftest.err conftest.$ac_objext \
20326 conftest$ac_exeext conftest.$ac_ext
20327 LIBS=$ac_check_lib_save_LIBS
20329 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20330 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20331 if test $ac_cv_lib_gcc___moddi3 = yes; then
20333 cat >>confdefs.h <<\_ACEOF
20334 #define HAVE___MODDI3 1
20339 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20340 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20341 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20344 ac_check_lib_save_LIBS=$LIBS
20346 cat >conftest.$ac_ext <<_ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h. */
20353 /* Override any GCC internal prototype to avoid an error.
20354 Use char because int might match the return type of a GCC
20355 builtin and then its argument prototype would still apply. */
20363 return __udivdi3 ();
20368 rm -f conftest.$ac_objext conftest$ac_exeext
20369 if { (ac_try="$ac_link"
20370 case "(($ac_try" in
20371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20372 *) ac_try_echo
=$ac_try;;
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_link") 2>conftest.er1
20377 grep -v '^ *+' conftest.er1
>conftest.err
20379 cat conftest.err
>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } &&
20382 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20383 { (case "(($ac_try" in
20384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20385 *) ac_try_echo=$ac_try;;
20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388 (eval "$ac_try") 2>&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; } &&
20392 { ac_try='test -s conftest$ac_exeext'
20393 { (case "(($ac_try" in
20394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20395 *) ac_try_echo
=$ac_try;;
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_try") 2>&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; }; then
20402 ac_cv_lib_gcc___udivdi3
=yes
20404 echo "$as_me: failed program was:" >&5
20405 sed 's/^/| /' conftest.
$ac_ext >&5
20407 ac_cv_lib_gcc___udivdi3
=no
20410 rm -f core conftest.err conftest.
$ac_objext \
20411 conftest
$ac_exeext conftest.
$ac_ext
20412 LIBS
=$ac_check_lib_save_LIBS
20414 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20415 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20416 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20418 cat >>confdefs.h
<<\_ACEOF
20419 #define HAVE___UDIVDI3 1
20424 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20425 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20426 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20427 echo $ECHO_N "(cached) $ECHO_C" >&6
20429 ac_check_lib_save_LIBS
=$LIBS
20431 cat >conftest.
$ac_ext <<_ACEOF
20434 cat confdefs.h
>>conftest.
$ac_ext
20435 cat >>conftest.
$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20438 /* Override any GCC internal prototype to avoid an error.
20439 Use char because int might match the return type of a GCC
20440 builtin and then its argument prototype would still apply. */
20448 return __umoddi3 ();
20453 rm -f conftest.
$ac_objext conftest
$ac_exeext
20454 if { (ac_try
="$ac_link"
20455 case "(($ac_try" in
20456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_link") 2>conftest.er1
20462 grep -v '^ *+' conftest.er1 >conftest.err
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } &&
20467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20468 { (case "(($ac_try" in
20469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20470 *) ac_try_echo
=$ac_try;;
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_try") 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; } &&
20477 { ac_try
='test -s conftest$ac_exeext'
20478 { (case "(($ac_try" in
20479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20480 *) ac_try_echo=$ac_try;;
20482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483 (eval "$ac_try") 2>&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; }; then
20487 ac_cv_lib_gcc___umoddi3=yes
20489 echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20492 ac_cv_lib_gcc___umoddi3=no
20495 rm -f core conftest.err conftest.$ac_objext \
20496 conftest$ac_exeext conftest.$ac_ext
20497 LIBS=$ac_check_lib_save_LIBS
20499 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20500 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20501 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20503 cat >>confdefs.h <<\_ACEOF
20504 #define HAVE___UMODDI3 1
20510 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20511 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20512 if test "${ac_cv_lib_gcc___main+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20515 ac_check_lib_save_LIBS=$LIBS
20517 cat >conftest.$ac_ext <<_ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20524 /* Override any GCC internal prototype to avoid an error.
20525 Use char because int might match the return type of a GCC
20526 builtin and then its argument prototype would still apply. */
20539 rm -f conftest.$ac_objext conftest$ac_exeext
20540 if { (ac_try="$ac_link"
20541 case "(($ac_try" in
20542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20543 *) ac_try_echo
=$ac_try;;
20545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_link") 2>conftest.er1
20548 grep -v '^ *+' conftest.er1
>conftest.err
20550 cat conftest.err
>&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } &&
20553 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20554 { (case "(($ac_try" in
20555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_try") 2>&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; } &&
20563 { ac_try='test -s conftest$ac_exeext'
20564 { (case "(($ac_try" in
20565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20566 *) ac_try_echo
=$ac_try;;
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569 (eval "$ac_try") 2>&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 ac_cv_lib_gcc___main
=yes
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.
$ac_ext >&5
20578 ac_cv_lib_gcc___main
=no
20581 rm -f core conftest.err conftest.
$ac_objext \
20582 conftest
$ac_exeext conftest.
$ac_ext
20583 LIBS
=$ac_check_lib_save_LIBS
20585 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20586 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20587 if test $ac_cv_lib_gcc___main = yes; then
20589 cat >>confdefs.h
<<\_ACEOF
20590 #define HAVE___MAIN 1
20595 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20596 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20597 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20600 ac_check_lib_save_LIBS
=$LIBS
20602 cat >conftest.
$ac_ext <<_ACEOF
20605 cat confdefs.h
>>conftest.
$ac_ext
20606 cat >>conftest.
$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20609 /* Override any GCC internal prototype to avoid an error.
20610 Use char because int might match the return type of a GCC
20611 builtin and then its argument prototype would still apply. */
20619 return __cmpdi2 ();
20624 rm -f conftest.
$ac_objext conftest
$ac_exeext
20625 if { (ac_try
="$ac_link"
20626 case "(($ac_try" in
20627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_link") 2>conftest.er1
20633 grep -v '^ *+' conftest.er1 >conftest.err
20635 cat conftest.err >&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
20638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20639 { (case "(($ac_try" in
20640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20641 *) ac_try_echo
=$ac_try;;
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_try") 2>&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; } &&
20648 { ac_try
='test -s conftest$ac_exeext'
20649 { (case "(($ac_try" in
20650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_try") 2>&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_cv_lib_gcc___cmpdi2=yes
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 ac_cv_lib_gcc___cmpdi2=no
20666 rm -f core conftest.err conftest.$ac_objext \
20667 conftest$ac_exeext conftest.$ac_ext
20668 LIBS=$ac_check_lib_save_LIBS
20670 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20671 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20672 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20674 cat >>confdefs.h <<\_ACEOF
20675 #define HAVE___CMPDI2 1
20682 if test "$llvm_cv_os_type" = "MingW" ; then
20683 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20684 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20685 cat >conftest.$ac_ext <<_ACEOF
20686 #include <windows.h>
20687 #include <imagehlp.h>
20688 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20689 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20691 rm -f conftest.$ac_objext
20692 if { (ac_try="$ac_compile"
20693 case "(($ac_try" in
20694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20695 *) ac_try_echo
=$ac_try;;
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_compile") 2>conftest.er1
20700 grep -v '^ *+' conftest.er1
>conftest.err
20702 cat conftest.err
>&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } &&
20705 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20706 { (case "(($ac_try" in
20707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_try") 2>&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; } &&
20715 { ac_try='test -s conftest.$ac_objext'
20716 { (case "(($ac_try" in
20717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20718 *) ac_try_echo
=$ac_try;;
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_try") 2>&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20726 { echo "$as_me:$LINENO: result: yes" >&5
20727 echo "${ECHO_T}yes" >&6; }
20728 llvm_cv_win32_elmcb_pcstr
="PCSTR"
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.
$ac_ext >&5
20735 { echo "$as_me:$LINENO: result: no" >&5
20736 echo "${ECHO_T}no" >&6; }
20737 llvm_cv_win32_elmcb_pcstr
="PSTR"
20741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20743 cat >>confdefs.h
<<_ACEOF
20744 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20750 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20751 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20752 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20756 ac_cpp
='$CXXCPP $CPPFLAGS'
20757 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20758 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20759 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20761 cat >conftest.
$ac_ext <<_ACEOF
20764 cat confdefs.h
>>conftest.
$ac_ext
20765 cat >>conftest.
$ac_ext <<_ACEOF
20766 /* end confdefs.h. */
20776 rm -f conftest.
$ac_objext
20777 if { (ac_try
="$ac_compile"
20778 case "(($ac_try" in
20779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783 (eval "$ac_compile") 2>conftest.er1
20785 grep -v '^ *+' conftest.er1 >conftest.err
20787 cat conftest.err >&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } &&
20790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20791 { (case "(($ac_try" in
20792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20793 *) ac_try_echo
=$ac_try;;
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_try") 2>&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; } &&
20800 { ac_try
='test -s conftest.$ac_objext'
20801 { (case "(($ac_try" in
20802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_try") 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 ac_cv_func_isnan_in_math_h=yes
20812 echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20815 ac_cv_func_isnan_in_math_h=no
20818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20820 ac_cpp='$CPP $CPPFLAGS'
20821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20826 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20827 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20830 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20832 cat >>confdefs.h <<\_ACEOF
20833 #define HAVE_ISNAN_IN_MATH_H 1
20838 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20839 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20840 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20841 echo $ECHO_N "(cached) $ECHO_C" >&6
20844 ac_cpp='$CXXCPP $CPPFLAGS'
20845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20849 cat >conftest.$ac_ext <<_ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20864 rm -f conftest.$ac_objext
20865 if { (ac_try="$ac_compile"
20866 case "(($ac_try" in
20867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20868 *) ac_try_echo
=$ac_try;;
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_compile") 2>conftest.er1
20873 grep -v '^ *+' conftest.er1
>conftest.err
20875 cat conftest.err
>&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } &&
20878 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20879 { (case "(($ac_try" in
20880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20881 *) ac_try_echo=$ac_try;;
20883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20884 (eval "$ac_try") 2>&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); }; } &&
20888 { ac_try='test -s conftest.$ac_objext'
20889 { (case "(($ac_try" in
20890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20891 *) ac_try_echo
=$ac_try;;
20893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894 (eval "$ac_try") 2>&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; }; then
20898 ac_cv_func_isnan_in_cmath
=yes
20900 echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.
$ac_ext >&5
20903 ac_cv_func_isnan_in_cmath
=no
20906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20908 ac_cpp
='$CPP $CPPFLAGS'
20909 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20910 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20911 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20914 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20915 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20917 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20919 cat >>confdefs.h
<<\_ACEOF
20920 #define HAVE_ISNAN_IN_CMATH 1
20925 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20926 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20927 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20928 echo $ECHO_N "(cached) $ECHO_C" >&6
20931 ac_cpp
='$CXXCPP $CPPFLAGS'
20932 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20933 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20936 cat >conftest.
$ac_ext <<_ACEOF
20939 cat confdefs.h
>>conftest.
$ac_ext
20940 cat >>conftest.
$ac_ext <<_ACEOF
20941 /* end confdefs.h. */
20946 float f; std::isnan(f);
20951 rm -f conftest.
$ac_objext
20952 if { (ac_try
="$ac_compile"
20953 case "(($ac_try" in
20954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20955 *) ac_try_echo=$ac_try;;
20957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20958 (eval "$ac_compile") 2>conftest.er1
20960 grep -v '^ *+' conftest.er1 >conftest.err
20962 cat conftest.err >&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } &&
20965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20966 { (case "(($ac_try" in
20967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20968 *) ac_try_echo
=$ac_try;;
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971 (eval "$ac_try") 2>&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; } &&
20975 { ac_try
='test -s conftest.$ac_objext'
20976 { (case "(($ac_try" in
20977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20978 *) ac_try_echo=$ac_try;;
20980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981 (eval "$ac_try") 2>&5
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; }; then
20985 ac_cv_func_std_isnan_in_cmath=yes
20987 echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20990 ac_cv_func_std_isnan_in_cmath=no
20993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995 ac_cpp='$CPP $CPPFLAGS'
20996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21001 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21002 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21004 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21006 cat >>confdefs.h <<\_ACEOF
21007 #define HAVE_STD_ISNAN_IN_CMATH 1
21013 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21014 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21015 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21019 ac_cpp='$CXXCPP $CPPFLAGS'
21020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21024 cat >conftest.$ac_ext <<_ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h. */
21039 rm -f conftest.$ac_objext
21040 if { (ac_try="$ac_compile"
21041 case "(($ac_try" in
21042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21043 *) ac_try_echo
=$ac_try;;
21045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21046 (eval "$ac_compile") 2>conftest.er1
21048 grep -v '^ *+' conftest.er1
>conftest.err
21050 cat conftest.err
>&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } &&
21053 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21054 { (case "(($ac_try" in
21055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_try") 2>&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); }; } &&
21063 { ac_try='test -s conftest.$ac_objext'
21064 { (case "(($ac_try" in
21065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21066 *) ac_try_echo
=$ac_try;;
21068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21069 (eval "$ac_try") 2>&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
21073 ac_cv_func_isinf_in_math_h
=yes
21075 echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.
$ac_ext >&5
21078 ac_cv_func_isinf_in_math_h
=no
21081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21083 ac_cpp
='$CPP $CPPFLAGS'
21084 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21089 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21090 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21092 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21094 cat >>confdefs.h
<<\_ACEOF
21095 #define HAVE_ISINF_IN_MATH_H 1
21100 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21101 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21102 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21103 echo $ECHO_N "(cached) $ECHO_C" >&6
21106 ac_cpp
='$CXXCPP $CPPFLAGS'
21107 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21108 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21111 cat >conftest.
$ac_ext <<_ACEOF
21114 cat confdefs.h
>>conftest.
$ac_ext
21115 cat >>conftest.
$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21126 rm -f conftest.
$ac_objext
21127 if { (ac_try
="$ac_compile"
21128 case "(($ac_try" in
21129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21130 *) ac_try_echo=$ac_try;;
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133 (eval "$ac_compile") 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
21140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21141 { (case "(($ac_try" in
21142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21143 *) ac_try_echo
=$ac_try;;
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_try") 2>&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; } &&
21150 { ac_try
='test -s conftest.$ac_objext'
21151 { (case "(($ac_try" in
21152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_try") 2>&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; }; then
21160 ac_cv_func_isinf_in_cmath=yes
21162 echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21165 ac_cv_func_isinf_in_cmath=no
21168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21170 ac_cpp='$CPP $CPPFLAGS'
21171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21176 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21177 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21179 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21181 cat >>confdefs.h <<\_ACEOF
21182 #define HAVE_ISINF_IN_CMATH 1
21187 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21188 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21189 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 ac_cpp='$CXXCPP $CPPFLAGS'
21194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21198 cat >conftest.$ac_ext <<_ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21208 float f; std::isinf(f)}
21213 rm -f conftest.$ac_objext
21214 if { (ac_try="$ac_compile"
21215 case "(($ac_try" in
21216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21217 *) ac_try_echo
=$ac_try;;
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_compile") 2>conftest.er1
21222 grep -v '^ *+' conftest.er1
>conftest.err
21224 cat conftest.err
>&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } &&
21227 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21228 { (case "(($ac_try" in
21229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_try") 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; } &&
21237 { ac_try='test -s conftest.$ac_objext'
21238 { (case "(($ac_try" in
21239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21240 *) ac_try_echo
=$ac_try;;
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243 (eval "$ac_try") 2>&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; }; then
21247 ac_cv_func_std_isinf_in_cmath
=yes
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.
$ac_ext >&5
21252 ac_cv_func_std_isinf_in_cmath
=no
21255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21257 ac_cpp
='$CPP $CPPFLAGS'
21258 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21259 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21260 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21263 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21264 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21266 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21268 cat >>confdefs.h
<<\_ACEOF
21269 #define HAVE_STD_ISINF_IN_CMATH 1
21274 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21275 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21276 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21280 ac_cpp
='$CXXCPP $CPPFLAGS'
21281 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21282 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21283 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21285 cat >conftest.
$ac_ext <<_ACEOF
21288 cat confdefs.h
>>conftest.
$ac_ext
21289 cat >>conftest.
$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 #include <ieeefp.h>
21295 float f; finite(f);
21300 rm -f conftest.
$ac_objext
21301 if { (ac_try
="$ac_compile"
21302 case "(($ac_try" in
21303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21304 *) ac_try_echo=$ac_try;;
21306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21307 (eval "$ac_compile") 2>conftest.er1
21309 grep -v '^ *+' conftest.er1 >conftest.err
21311 cat conftest.err >&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } &&
21314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21315 { (case "(($ac_try" in
21316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21317 *) ac_try_echo
=$ac_try;;
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_try") 2>&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; } &&
21324 { ac_try
='test -s conftest.$ac_objext'
21325 { (case "(($ac_try" in
21326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21327 *) ac_try_echo=$ac_try;;
21329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21330 (eval "$ac_try") 2>&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; }; then
21334 ac_cv_func_finite_in_ieeefp_h=yes
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21339 ac_cv_func_finite_in_ieeefp_h=no
21342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21344 ac_cpp='$CPP $CPPFLAGS'
21345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21350 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21351 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21353 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21355 cat >>confdefs.h <<\_ACEOF
21356 #define HAVE_FINITE_IN_IEEEFP_H 1
21363 if test "$llvm_cv_platform_type" = "Unix" ; then
21366 for ac_header in stdlib.h unistd.h
21368 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
21369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21373 echo $ECHO_N "(cached) $ECHO_C" >&6
21375 ac_res=`eval echo '${'$as_ac_Header'}'`
21376 { echo "$as_me:$LINENO: result: $ac_res" >&5
21377 echo "${ECHO_T}$ac_res" >&6; }
21379 # Is the header compilable?
21380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21382 cat >conftest.$ac_ext <<_ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 $ac_includes_default
21389 #include <$ac_header>
21391 rm -f conftest.$ac_objext
21392 if { (ac_try="$ac_compile"
21393 case "(($ac_try" in
21394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21395 *) ac_try_echo
=$ac_try;;
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_compile") 2>conftest.er1
21400 grep -v '^ *+' conftest.er1
>conftest.err
21402 cat conftest.err
>&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } &&
21405 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21406 { (case "(($ac_try" in
21407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21408 *) ac_try_echo=$ac_try;;
21410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21411 (eval "$ac_try") 2>&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; } &&
21415 { ac_try='test -s conftest.$ac_objext'
21416 { (case "(($ac_try" in
21417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21418 *) ac_try_echo
=$ac_try;;
21420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21421 (eval "$ac_try") 2>&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; }; then
21425 ac_header_compiler
=yes
21427 echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.
$ac_ext >&5
21430 ac_header_compiler
=no
21433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21435 echo "${ECHO_T}$ac_header_compiler" >&6; }
21437 # Is the header present?
21438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21440 cat >conftest.
$ac_ext <<_ACEOF
21443 cat confdefs.h
>>conftest.
$ac_ext
21444 cat >>conftest.
$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21446 #include <$ac_header>
21448 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21449 case "(($ac_try" in
21450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21456 grep -v '^ *+' conftest.er1 >conftest.err
21458 cat conftest.err >&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); } >/dev/null; then
21461 if test -s conftest.err; then
21462 ac_cpp_err=$ac_c_preproc_warn_flag
21463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21470 if test -z "$ac_cpp_err"; then
21471 ac_header_preproc=yes
21473 echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21476 ac_header_preproc=no
21479 rm -f conftest.err conftest.$ac_ext
21480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21481 echo "${ECHO_T}$ac_header_preproc" >&6; }
21483 # So? What about this header?
21484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21490 ac_header_preproc=yes
21493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21506 ## ----------------------------------- ##
21507 ## Report this to llvmbugs@cs.uiuc.edu ##
21508 ## ----------------------------------- ##
21510 ) | sed "s/^/$as_me: WARNING: /" >&2
21513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 eval "$as_ac_Header=\$ac_header_preproc"
21520 ac_res=`eval echo '${'$as_ac_Header'}'`
21521 { echo "$as_me:$LINENO: result: $ac_res" >&5
21522 echo "${ECHO_T}$ac_res" >&6; }
21525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21526 cat >>confdefs.h <<_ACEOF
21527 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
21535 for ac_func in getpagesize
21537 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21538 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21543 cat >conftest.$ac_ext <<_ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h. */
21549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21551 #define $ac_func innocuous_$ac_func
21553 /* System header to define __stub macros and hopefully few prototypes,
21554 which can conflict with char $ac_func (); below.
21555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21556 <limits.h> exists even on freestanding compilers. */
21559 # include <limits.h>
21561 # include <assert.h>
21566 /* Override any GCC internal prototype to avoid an error.
21567 Use char because int might match the return type of a GCC
21568 builtin and then its argument prototype would still apply. */
21573 /* The GNU C library defines this for functions which it implements
21574 to always fail with ENOSYS. Some functions are actually named
21575 something starting with __ and the normal name is an alias. */
21576 #if defined __stub_$ac_func || defined __stub___$ac_func
21583 return $ac_func ();
21588 rm -f conftest.$ac_objext conftest$ac_exeext
21589 if { (ac_try="$ac_link"
21590 case "(($ac_try" in
21591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21592 *) ac_try_echo
=$ac_try;;
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_link") 2>conftest.er1
21597 grep -v '^ *+' conftest.er1
>conftest.err
21599 cat conftest.err
>&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } &&
21602 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21603 { (case "(($ac_try" in
21604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_try") 2>&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; } &&
21612 { ac_try='test -s conftest$ac_exeext'
21613 { (case "(($ac_try" in
21614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21615 *) ac_try_echo
=$ac_try;;
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_try") 2>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; }; then
21622 eval "$as_ac_var=yes"
21624 echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.
$ac_ext >&5
21627 eval "$as_ac_var=no"
21630 rm -f core conftest.err conftest.
$ac_objext \
21631 conftest
$ac_exeext conftest.
$ac_ext
21633 ac_res
=`eval echo '${'$as_ac_var'}'`
21634 { echo "$as_me:$LINENO: result: $ac_res" >&5
21635 echo "${ECHO_T}$ac_res" >&6; }
21636 if test `eval echo '${'$as_ac_var'}'` = yes; then
21637 cat >>confdefs.h
<<_ACEOF
21638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21644 { echo "$as_me:$LINENO: checking for working mmap" >&5
21645 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21646 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
21649 if test "$cross_compiling" = yes; then
21650 ac_cv_func_mmap_fixed_mapped
=no
21652 cat >conftest.
$ac_ext <<_ACEOF
21655 cat confdefs.h
>>conftest.
$ac_ext
21656 cat >>conftest.
$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21658 $ac_includes_default
21659 /* malloc might have been renamed as rpl_malloc. */
21662 /* Thanks to Mike Haertel and Jim Avera for this test.
21663 Here is a matrix of mmap possibilities:
21664 mmap private not fixed
21665 mmap private fixed at somewhere currently unmapped
21666 mmap private fixed at somewhere already mapped
21667 mmap shared not fixed
21668 mmap shared fixed at somewhere currently unmapped
21669 mmap shared fixed at somewhere already mapped
21670 For private mappings, we should verify that changes cannot be read()
21671 back from the file, nor mmap's back from the file at a different
21672 address. (There have been systems where private was not correctly
21673 implemented like the infamous i386 svr4.0, and systems where the
21674 VM page cache was not coherent with the file system buffer cache
21675 like early versions of FreeBSD and possibly contemporary NetBSD.)
21676 For shared mappings, we should conversely verify that changes get
21677 propagated back to all the places they're supposed to be.
21679 Grep wants private fixed already mapped.
21680 The main things grep needs to know about mmap are:
21681 * does it exist and is it safe to write into the mmap'd area
21682 * how to use it (BSD variants) */
21685 #include <sys/mman.h>
21687 #if !STDC_HEADERS && !HAVE_STDLIB_H
21691 /* This mess was copied from the GNU getpagesize.h. */
21692 #if !HAVE_GETPAGESIZE
21693 /* Assume that all systems that can run configure have sys/param.h. */
21694 # if !HAVE_SYS_PARAM_H
21695 # define HAVE_SYS_PARAM_H 1
21698 # ifdef _SC_PAGESIZE
21699 # define getpagesize() sysconf(_SC_PAGESIZE)
21700 # else /* no _SC_PAGESIZE */
21701 # if HAVE_SYS_PARAM_H
21702 # include <sys/param.h>
21703 # ifdef EXEC_PAGESIZE
21704 # define getpagesize() EXEC_PAGESIZE
21705 # else /* no EXEC_PAGESIZE */
21707 # define getpagesize() NBPG * CLSIZE
21710 # endif /* no CLSIZE */
21711 # else /* no NBPG */
21713 # define getpagesize() NBPC
21714 # else /* no NBPC */
21716 # define getpagesize() PAGESIZE
21717 # endif /* PAGESIZE */
21718 # endif /* no NBPC */
21719 # endif /* no NBPG */
21720 # endif /* no EXEC_PAGESIZE */
21721 # else /* no HAVE_SYS_PARAM_H */
21722 # define getpagesize() 8192 /* punt totally */
21723 # endif /* no HAVE_SYS_PARAM_H */
21724 # endif /* no _SC_PAGESIZE */
21726 #endif /* no HAVE_GETPAGESIZE */
21731 char *data, *data2, *data3;
21735 pagesize = getpagesize ();
21737 /* First, make a file with some known garbage in it. */
21738 data = (char *) malloc (pagesize);
21741 for (i = 0; i < pagesize; ++i)
21742 *(data + i) = rand ();
21744 fd = creat ("conftest.mmap", 0600);
21747 if (write (fd, data, pagesize) != pagesize)
21751 /* Next, try to mmap the file at a fixed address which already has
21752 something else allocated at it. If we can, also make sure that
21753 we see the same garbage. */
21754 fd = open ("conftest.mmap", O_RDWR);
21757 data2 = (char *) malloc (2 * pagesize);
21760 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21761 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21762 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21764 for (i = 0; i < pagesize; ++i)
21765 if (*(data + i) != *(data2 + i))
21768 /* Finally, make sure that changes to the mapped area do not
21769 percolate back to the file as seen by read(). (This is a bug on
21770 some variants of i386 svr4.0.) */
21771 for (i = 0; i < pagesize; ++i)
21772 *(data2 + i) = *(data2 + i) + 1;
21773 data3 = (char *) malloc (pagesize);
21776 if (read (fd, data3, pagesize) != pagesize)
21778 for (i = 0; i < pagesize; ++i)
21779 if (*(data + i) != *(data3 + i))
21785 rm -f conftest
$ac_exeext
21786 if { (ac_try
="$ac_link"
21787 case "(($ac_try" in
21788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792 (eval "$ac_link") 2>&5
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21796 { (case "(($ac_try" in
21797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21798 *) ac_try_echo
=$ac_try;;
21800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_try") 2>&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; }; then
21805 ac_cv_func_mmap_fixed_mapped
=yes
21807 echo "$as_me: program exited with status $ac_status" >&5
21808 echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.
$ac_ext >&5
21811 ( exit $ac_status )
21812 ac_cv_func_mmap_fixed_mapped
=no
21814 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21819 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21820 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21821 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21823 cat >>confdefs.h
<<\_ACEOF
21824 #define HAVE_MMAP 1
21828 rm -f conftest.mmap
21830 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21831 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21832 if test "${ac_cv_func_mmap_file+set}" = set; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21836 ac_cpp
='$CPP $CPPFLAGS'
21837 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21838 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21839 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21841 if test "$cross_compiling" = yes; then
21842 ac_cv_func_mmap_file
=no
21844 cat >conftest.
$ac_ext <<_ACEOF
21848 cat confdefs.h
>>conftest.
$ac_ext
21849 cat >>conftest.
$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21852 #include <sys/types.h>
21853 #include <sys/mman.h>
21861 fd = creat ("foo",0777);
21862 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21864 return (fd != (int) MAP_FAILED);
21869 rm -f conftest
$ac_exeext
21870 if { (ac_try
="$ac_link"
21871 case "(($ac_try" in
21872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876 (eval "$ac_link") 2>&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21880 { (case "(($ac_try" in
21881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21882 *) ac_try_echo
=$ac_try;;
21884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885 (eval "$ac_try") 2>&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; }; then
21889 ac_cv_func_mmap_file
=yes
21891 echo "$as_me: program exited with status $ac_status" >&5
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.
$ac_ext >&5
21895 ( exit $ac_status )
21896 ac_cv_func_mmap_file
=no
21898 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21903 ac_cpp
='$CPP $CPPFLAGS'
21904 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21905 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21906 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21910 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21911 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21912 if test "$ac_cv_func_mmap_file" = yes; then
21914 cat >>confdefs.h
<<\_ACEOF
21915 #define HAVE_MMAP_FILE
21922 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21923 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21924 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 if test "$llvm_cv_os_type" = "Interix" ; then
21928 ac_cv_need_dev_zero_for_mmap
=yes
21930 ac_cv_need_dev_zero_for_mmap
=no
21934 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21935 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21936 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21938 cat >>confdefs.h
<<\_ACEOF
21939 #define NEED_DEV_ZERO_FOR_MMAP 1
21944 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21946 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21947 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21949 if test "$ac_cv_func_mmap_file" = "no"
21951 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21952 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21956 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21957 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21959 ac_cpp
='$CXXCPP $CPPFLAGS'
21960 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21961 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21962 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21964 cat >conftest.
$ac_ext <<_ACEOF
21967 cat confdefs.h
>>conftest.
$ac_ext
21968 cat >>conftest.
$ac_ext <<_ACEOF
21969 /* end confdefs.h. */
21971 volatile unsigned long val = 1;
21972 __sync_synchronize();
21973 __sync_val_compare_and_swap(&val, 1, 0);
21974 __sync_add_and_fetch(&val, 1);
21975 __sync_sub_and_fetch(&val, 1);
21980 rm -f conftest.
$ac_objext conftest
$ac_exeext
21981 if { (ac_try
="$ac_link"
21982 case "(($ac_try" in
21983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_link") 2>conftest.er1
21989 grep -v '^ *+' conftest.er1 >conftest.err
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } &&
21994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21995 { (case "(($ac_try" in
21996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21997 *) ac_try_echo
=$ac_try;;
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000 (eval "$ac_try") 2>&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; } &&
22004 { ac_try
='test -s conftest$ac_exeext'
22005 { (case "(($ac_try" in
22006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_try") 2>&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22015 ac_cpp='$CPP $CPPFLAGS'
22016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22020 { echo "$as_me:$LINENO: result: yes" >&5
22021 echo "${ECHO_T}yes" >&6; }
22023 cat >>confdefs.h <<\_ACEOF
22024 #define LLVM_MULTITHREADED 1
22028 echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22031 { echo "$as_me:$LINENO: result: no" >&5
22032 echo "${ECHO_T}no" >&6; }
22034 cat >>confdefs.h <<\_ACEOF
22035 #define LLVM_MULTITHREADED 0
22038 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22039 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22042 rm -f core conftest.err conftest.$ac_objext \
22043 conftest$ac_exeext conftest.$ac_ext
22046 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22047 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22048 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22049 if test "${llvm_cv_linux_mixed+set}" = set; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22053 ac_cpp='$CPP $CPPFLAGS'
22054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22058 cat >conftest.$ac_ext <<_ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h. */
22065 error: Not x86-64 even if uname says so!
22076 rm -f conftest.$ac_objext
22077 if { (ac_try="$ac_compile"
22078 case "(($ac_try" in
22079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22080 *) ac_try_echo
=$ac_try;;
22082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083 (eval "$ac_compile") 2>conftest.er1
22085 grep -v '^ *+' conftest.er1
>conftest.err
22087 cat conftest.err
>&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } &&
22090 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22091 { (case "(($ac_try" in
22092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22093 *) ac_try_echo=$ac_try;;
22095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22096 (eval "$ac_try") 2>&5
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; } &&
22100 { ac_try='test -s conftest.$ac_objext'
22101 { (case "(($ac_try" in
22102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22103 *) ac_try_echo
=$ac_try;;
22105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22106 (eval "$ac_try") 2>&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); }; }; then
22110 llvm_cv_linux_mixed
=no
22112 echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.
$ac_ext >&5
22115 llvm_cv_linux_mixed
=yes
22118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22120 ac_cpp
='$CPP $CPPFLAGS'
22121 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22122 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22123 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
22127 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22128 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22130 if test "$llvm_cv_linux_mixed" = "yes"; then
22131 llvm_cv_target_arch
="x86"
22137 for ac_func
in __dso_handle
22139 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22142 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22143 echo $ECHO_N "(cached) $ECHO_C" >&6
22145 cat >conftest.
$ac_ext <<_ACEOF
22148 cat confdefs.h
>>conftest.
$ac_ext
22149 cat >>conftest.
$ac_ext <<_ACEOF
22150 /* end confdefs.h. */
22151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22153 #define $ac_func innocuous_$ac_func
22155 /* System header to define __stub macros and hopefully few prototypes,
22156 which can conflict with char $ac_func (); below.
22157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22158 <limits.h> exists even on freestanding compilers. */
22161 # include <limits.h>
22163 # include <assert.h>
22168 /* Override any GCC internal prototype to avoid an error.
22169 Use char because int might match the return type of a GCC
22170 builtin and then its argument prototype would still apply. */
22175 /* The GNU C library defines this for functions which it implements
22176 to always fail with ENOSYS. Some functions are actually named
22177 something starting with __ and the normal name is an alias. */
22178 #if defined __stub_$ac_func || defined __stub___$ac_func
22185 return $ac_func ();
22190 rm -f conftest.
$ac_objext conftest
$ac_exeext
22191 if { (ac_try
="$ac_link"
22192 case "(($ac_try" in
22193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22194 *) ac_try_echo=$ac_try;;
22196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22197 (eval "$ac_link") 2>conftest.er1
22199 grep -v '^ *+' conftest.er1 >conftest.err
22201 cat conftest.err >&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } &&
22204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22205 { (case "(($ac_try" in
22206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22207 *) ac_try_echo
=$ac_try;;
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210 (eval "$ac_try") 2>&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; } &&
22214 { ac_try
='test -s conftest$ac_exeext'
22215 { (case "(($ac_try" in
22216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22217 *) ac_try_echo=$ac_try;;
22219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22220 (eval "$ac_try") 2>&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); }; }; then
22224 eval "$as_ac_var=yes"
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22229 eval "$as_ac_var=no"
22232 rm -f core conftest.err conftest.$ac_objext \
22233 conftest$ac_exeext conftest.$ac_ext
22235 ac_res=`eval echo '${'$as_ac_var'}'`
22236 { echo "$as_me:$LINENO: result: $ac_res" >&5
22237 echo "${ECHO_T}$ac_res" >&6; }
22238 if test `eval echo '${'$as_ac_var'}'` = yes; then
22239 cat >>confdefs.h <<_ACEOF
22240 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22247 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22248 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22249 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22250 echo $ECHO_N "(cached) $ECHO_C" >&6
22252 llvm_cv_llvmgcc_dragonegg="no"
22253 if test -n "$LLVMGCC" ; then
22254 cp /dev/null conftest.c
22255 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22256 if test $? -eq 0 ; then
22257 llvm_cv_llvmgcc_dragonegg="yes"
22262 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22263 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22265 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22266 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22267 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
22269 LLVMCC_EMITIR_FLAG="-emit-llvm"
22270 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22275 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22276 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22277 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22278 echo $ECHO_N "(cached) $ECHO_C" >&6
22280 llvm_cv_llvmgcc_sanity="no"
22281 if test -n "$LLVMGCC" ; then
22282 cp /dev/null conftest.c
22283 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22284 grep 'target datalayout =' > /dev/null 2>&1
22285 if test $? -eq 0 ; then
22286 llvm_cv_llvmgcc_sanity="yes"
22291 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22292 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22294 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22295 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22296 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22297 llvmcc1path=`$LLVMGCC --print-prog-name=cc1
`
22298 LLVMCC1=$llvmcc1path
22300 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus
`
22301 LLVMCC1PLUS=$llvmcc1pluspath
22303 llvmgccdir=`echo "$llvmcc1path" |
sed 's,/libexec/.*,,'`
22304 LLVMGCCDIR=$llvmgccdir
22306 llvmgcclangs=`$LLVMGCC -v --help 2>&1 |
grep '^Configured with:' |
sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22307 LLVMGCC_LANGS=$llvmgcclangs
22309 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22312 { echo "$as_me:$LINENO: result: ok" >&5
22313 echo "${ECHO_T}ok" >&6; }
22316 SHLIBEXT=$libltdl_cv_shlibext
22319 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22322 # Translate the various configuration directories and other basic
22323 # information into substitutions that will end up in Makefile.config.in
22324 # that these configured values can be used by the makefiles
22325 if test "${prefix}" = "NONE" ; then
22326 prefix="/usr/local"
22328 eval LLVM_PREFIX="${prefix}";
22329 eval LLVM_BINDIR="${prefix}/bin";
22330 eval LLVM_LIBDIR="${prefix}/lib";
22331 eval LLVM_DATADIR="${prefix}/share/llvm";
22332 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22333 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22334 eval LLVM_INCLUDEDIR="${prefix}/include";
22335 eval LLVM_INFODIR="${prefix}/info";
22336 eval LLVM_MANDIR="${prefix}/man";
22337 LLVM_CONFIGTIME=`date`
22349 # Place the various directores into the config.h file as #defines so that we
22350 # can know about the installation paths within LLVM.
22352 cat >>confdefs.h <<_ACEOF
22353 #define LLVM_PREFIX "$LLVM_PREFIX"
22357 cat >>confdefs.h <<_ACEOF
22358 #define LLVM_BINDIR "$LLVM_BINDIR"
22362 cat >>confdefs.h <<_ACEOF
22363 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22367 cat >>confdefs.h <<_ACEOF
22368 #define LLVM_DATADIR "$LLVM_DATADIR"
22372 cat >>confdefs.h <<_ACEOF
22373 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22377 cat >>confdefs.h <<_ACEOF
22378 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22382 cat >>confdefs.h <<_ACEOF
22383 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22387 cat >>confdefs.h <<_ACEOF
22388 #define LLVM_INFODIR "$LLVM_INFODIR"
22392 cat >>confdefs.h <<_ACEOF
22393 #define LLVM_MANDIR "$LLVM_MANDIR"
22397 cat >>confdefs.h <<_ACEOF
22398 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22402 cat >>confdefs.h <<_ACEOF
22403 #define LLVM_HOSTTRIPLE "$host"
22407 # Determine which bindings to build.
22408 if test "$BINDINGS_TO_BUILD" = auto ; then
22409 BINDINGS_TO_BUILD=""
22410 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22411 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22414 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22417 # This isn't really configurey, but it avoids having to repeat the list in
22422 # Do any work necessary to ensure that bindings have what they need.
22423 binding_prereqs_failed=0
22424 for a_binding in $BINDINGS_TO_BUILD ; do
22425 case "$a_binding" in
22427 if test "x$OCAMLC" = x ; then
22428 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22429 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22430 binding_prereqs_failed=1
22432 if test "x$OCAMLDEP" = x ; then
22433 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22434 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22435 binding_prereqs_failed=1
22437 if test "x$OCAMLOPT" = x ; then
22438 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22439 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22441 if test "x$with_ocaml_libdir" != xauto ; then
22442 OCAML_LIBDIR=$with_ocaml_libdir
22445 ocaml_stdlib="`"$OCAMLC" -where`"
22446 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22448 # ocaml stdlib is beneath our prefix; use stdlib
22449 OCAML_LIBDIR=$ocaml_stdlib
22452 # ocaml stdlib is outside our prefix; use libdir/ocaml
22453 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22460 if test "$binding_prereqs_failed" = 1 ; then
22461 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22462 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22463 { (exit 1); exit 1; }; }
22466 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22467 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22468 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22469 echo $ECHO_N "(cached) $ECHO_C" >&6
22472 ac_cpp='$CXXCPP $CPPFLAGS'
22473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22477 oldcxxflags="$CXXFLAGS"
22478 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22479 cat >conftest.$ac_ext <<_ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h. */
22494 rm -f conftest.$ac_objext
22495 if { (ac_try="$ac_compile"
22496 case "(($ac_try" in
22497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22498 *) ac_try_echo
=$ac_try;;
22500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22501 (eval "$ac_compile") 2>conftest.er1
22503 grep -v '^ *+' conftest.er1
>conftest.err
22505 cat conftest.err
>&5
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); } &&
22508 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22509 { (case "(($ac_try" in
22510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22511 *) ac_try_echo=$ac_try;;
22513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514 (eval "$ac_try") 2>&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; } &&
22518 { ac_try='test -s conftest.$ac_objext'
22519 { (case "(($ac_try" in
22520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22521 *) ac_try_echo
=$ac_try;;
22523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_try") 2>&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; }; then
22528 llvm_cv_cxx_visibility_inlines_hidden
=yes
22530 echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.
$ac_ext >&5
22533 llvm_cv_cxx_visibility_inlines_hidden
=no
22536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22537 CXXFLAGS
="$oldcxxflags"
22539 ac_cpp
='$CPP $CPPFLAGS'
22540 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22541 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22542 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
22546 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22547 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22548 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22549 ENABLE_VISIBILITY_INLINES_HIDDEN
=1
22552 ENABLE_VISIBILITY_INLINES_HIDDEN
=0
22557 if test "$llvm_cv_link_use_r" = "yes" ; then
22564 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22565 RDYNAMIC
="-Wl,-export-dynamic"
22572 ac_config_headers
="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22579 ac_config_files
="$ac_config_files include/llvm/Config/Targets.def"
22581 ac_config_files
="$ac_config_files include/llvm/Config/AsmPrinters.def"
22583 ac_config_files
="$ac_config_files include/llvm/Config/AsmParsers.def"
22585 ac_config_files
="$ac_config_files include/llvm/Config/Disassemblers.def"
22587 ac_config_headers
="$ac_config_headers include/llvm/Support/DataTypes.h"
22590 ac_config_files
="$ac_config_files Makefile.config"
22593 ac_config_files
="$ac_config_files llvm.spec"
22596 ac_config_files
="$ac_config_files docs/doxygen.cfg"
22598 if test -f ${srcdir}/tools
/clang
/README.txt
; then
22599 ac_config_files
="$ac_config_files tools/clang/docs/doxygen.cfg"
22603 ac_config_files
="$ac_config_files tools/llvmc/src/Base.td"
22606 ac_config_files
="$ac_config_files tools/llvm-config/llvm-config.in"
22609 ac_config_commands
="$ac_config_commands setup"
22611 ac_config_commands
="$ac_config_commands Makefile"
22614 ac_config_commands
="$ac_config_commands Makefile.common"
22617 ac_config_commands
="$ac_config_commands examples/Makefile"
22620 ac_config_commands
="$ac_config_commands lib/Makefile"
22623 ac_config_commands
="$ac_config_commands runtime/Makefile"
22626 ac_config_commands
="$ac_config_commands test/Makefile"
22629 ac_config_commands
="$ac_config_commands test/Makefile.tests"
22632 ac_config_commands
="$ac_config_commands unittests/Makefile"
22635 ac_config_commands
="$ac_config_commands tools/Makefile"
22638 ac_config_commands
="$ac_config_commands utils/Makefile"
22641 ac_config_commands
="$ac_config_commands projects/Makefile"
22644 ac_config_commands
="$ac_config_commands bindings/Makefile"
22647 ac_config_commands
="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22651 cat >confcache
<<\_ACEOF
22652 # This file is a shell script that caches the results of configure
22653 # tests run on this system so they can be shared between configure
22654 # scripts and configure runs, see configure's option --config-cache.
22655 # It is not useful on other systems. If it contains results you don't
22656 # want to keep, you may remove or edit it.
22658 # config.status only pays attention to the cache file if you give it
22659 # the --recheck option to rerun configure.
22661 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22662 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22663 # following values.
22667 # The following way of writing the cache mishandles newlines in values,
22668 # but we know of no workaround that is simple, portable, and efficient.
22669 # So, we kill variables containing newlines.
22670 # Ultrix sh set writes to stderr and can't be redirected directly,
22671 # and sets the high bit in the cache file unless we assign to the vars.
22673 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22674 eval ac_val
=\$
$ac_var
22678 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22679 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22682 _ | IFS | as_nl
) ;; #(
22683 *) $as_unset $ac_var ;;
22689 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22690 *${as_nl}ac_space
=\
*)
22691 # `set' does not quote correctly, so add quotes (double-quote
22692 # substitution turns \\\\ into \\, and sed turns \\ into \).
22695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22698 # `set' quotes correctly as required by POSIX, so do not add quotes.
22699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22708 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22710 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22712 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22713 if test -w "$cache_file"; then
22714 test "x$cache_file" != "x/dev/null" &&
22715 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22716 echo "$as_me: updating cache $cache_file" >&6;}
22717 cat confcache
>$cache_file
22719 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22720 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22725 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22726 # Let make expand exec_prefix.
22727 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22729 DEFS
=-DHAVE_CONFIG_H
22733 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22734 # 1. Remove the extension, and $U if already installed.
22735 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22736 ac_i
=`echo "$ac_i" | sed "$ac_script"`
22737 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22738 # will be set to the directory where LIBOBJS objects are built.
22739 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22740 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22742 LIBOBJS
=$ac_libobjs
22744 LTLIBOBJS
=$ac_ltlibobjs
22747 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22748 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22749 Usually this means the macro was only invoked conditionally." >&5
22750 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22751 Usually this means the macro was only invoked conditionally." >&2;}
22752 { (exit 1); exit 1; }; }
22754 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22755 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22756 Usually this means the macro was only invoked conditionally." >&5
22757 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22758 Usually this means the macro was only invoked conditionally." >&2;}
22759 { (exit 1); exit 1; }; }
22762 : ${CONFIG_STATUS=./config.status}
22763 ac_clean_files_save
=$ac_clean_files
22764 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22765 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22766 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22767 cat >$CONFIG_STATUS <<_ACEOF
22769 # Generated by $as_me.
22770 # Run this file to recreate the current configuration.
22771 # Compiler output produced by configure, useful for debugging
22772 # configure, is in config.log if it exists.
22775 ac_cs_recheck=false
22777 SHELL=\${CONFIG_SHELL-$SHELL}
22780 cat >>$CONFIG_STATUS <<\_ACEOF
22781 ## --------------------- ##
22782 ## M4sh Initialization. ##
22783 ## --------------------- ##
22785 # Be Bourne compatible
22786 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22789 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22790 # is contrary to our usage. Disable this feature.
22791 alias -g '${1+"$@"}'='"$@"'
22792 setopt NO_GLOB_SUBST
22794 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
22796 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
22797 DUALCASE
=1; export DUALCASE
# for MKS sh
22801 # Avoid depending upon Character Ranges.
22802 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22803 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22804 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22805 as_cr_digits
='0123456789'
22806 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22808 # The user is always right.
22809 if test "${PATH_SEPARATOR+set}" != set; then
22810 echo "#! /bin/sh" >conf$$.sh
22811 echo "exit 0" >>conf$$.sh
22813 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22821 # Support unset when possible.
22822 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22830 # We need space, tab and new line, in precisely that order. Quoting is
22831 # there to prevent editors from complaining about space-tab.
22832 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22833 # splitting by setting IFS to empty value.)
22838 # Find who we are. Look in the path if we contain no directory separator.
22840 *[\\/]* ) as_myself
=$0 ;;
22841 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22842 for as_dir
in $PATH
22845 test -z "$as_dir" && as_dir
=.
22846 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22852 # We did not find ourselves, most probably we were run as `sh COMMAND'
22853 # in which case we are not to be found in the path.
22854 if test "x$as_myself" = x
; then
22857 if test ! -f "$as_myself"; then
22858 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22859 { (exit 1); exit 1; }
22862 # Work around bugs in pre-3.0 UWIN ksh.
22863 for as_var
in ENV MAIL MAILPATH
22864 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
22872 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22873 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22874 LC_TELEPHONE LC_TIME
22876 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22877 eval $as_var=C
; export $as_var
22879 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
22883 # Required to use basename.
22884 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22885 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22891 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22892 as_basename
=basename
22898 # Name of the executable.
22899 as_me
=`$as_basename -- "$0" ||
22900 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22901 X"$0" : 'X\(//\)$' \| \
22902 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22904 sed '/^.*\/\([^/][^/]*\)\/*$/{
22923 as_lineno_1
=$LINENO
22924 as_lineno_2
=$LINENO
22925 test "x$as_lineno_1" != "x$as_lineno_2" &&
22926 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
22928 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22929 # uniformly replaced by the line number. The first 'sed' inserts a
22930 # line-number line after each line using $LINENO; the second 'sed'
22931 # does the real work. The second script uses 'N' to pair each
22932 # line-number line with the line containing $LINENO, and appends
22933 # trailing '-' during substitution so that $LINENO is not a special
22934 # case at line end.
22935 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22936 # scripts with optimization help from Paolo Bonzini. Blame Lee
22937 # E. McMahon (1931-1989) for sed's syntax. :-)
22949 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22952 ' >$as_me.lineno
&&
22953 chmod +x
"$as_me.lineno" ||
22954 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22955 { (exit 1); exit 1; }; }
22957 # Don't try to exec as it changes $[0], causing all sort of problems
22958 # (the dirname of $[0] is not the place where we might find the
22959 # original and so on. Autoconf is especially sensitive to this).
22960 .
"./$as_me.lineno"
22961 # Exit status is that of the last command.
22966 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22972 ECHO_C
= ECHO_N
= ECHO_T
=
22973 case `echo -n x` in
22975 case `echo 'x\c'` in
22976 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22983 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22984 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22990 rm -f conf$$ conf$$.exe conf$$.
file
22991 if test -d conf$$.dir
; then
22992 rm -f conf$$.dir
/conf$$.
file
22998 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23000 # ... but there are two gotchas:
23001 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23002 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23003 # In both cases, we have to default to `cp -p'.
23004 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23006 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23011 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23012 rmdir conf$$.dir
2>/dev
/null
23014 if mkdir
-p .
2>/dev
/null
; then
23017 test -d .
/-p && rmdir .
/-p
23021 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23022 # systems may use methods other than mode bits to determine executability.
23023 cat >conf$$.
file <<_ASEOF
23027 chmod +x conf$$.
file
23028 if test -x conf$$.
file >/dev
/null
2>&1; then
23029 as_executable_p
="test -x"
23035 # Sed expression to map a string onto a valid CPP name.
23036 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23038 # Sed expression to map a string onto a valid variable name.
23039 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23044 # Save the log message, to keep $[0] and so on meaningful, and to
23045 # report actual input values of CONFIG_FILES etc. instead of their
23046 # values after options handling.
23048 This file was extended by llvm $as_me 3.0svn, which was
23049 generated by GNU Autoconf 2.60. Invocation command line was
23051 CONFIG_FILES = $CONFIG_FILES
23052 CONFIG_HEADERS = $CONFIG_HEADERS
23053 CONFIG_LINKS = $CONFIG_LINKS
23054 CONFIG_COMMANDS = $CONFIG_COMMANDS
23057 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23062 cat >>$CONFIG_STATUS <<_ACEOF
23063 # Files that config.status was made for.
23064 config_files="$ac_config_files"
23065 config_headers="$ac_config_headers"
23066 config_commands="$ac_config_commands"
23070 cat >>$CONFIG_STATUS <<\_ACEOF
23072 \`$as_me' instantiates files from templates according to the
23073 current configuration.
23075 Usage: $0 [OPTIONS] [FILE]...
23077 -h, --help print this help, then exit
23078 -V, --version print version number, then exit
23079 -q, --quiet do not print progress messages
23080 -d, --debug don't remove temporary files
23081 --recheck update $as_me by reconfiguring in the same conditions
23082 --file=FILE[:TEMPLATE]
23083 instantiate the configuration file FILE
23084 --header=FILE[:TEMPLATE]
23085 instantiate the configuration header FILE
23087 Configuration files:
23090 Configuration headers:
23093 Configuration commands:
23096 Report bugs to <bug-autoconf@gnu.org>."
23099 cat >>$CONFIG_STATUS <<_ACEOF
23101 llvm config.status 3.0svn
23102 configured by $0, generated by GNU Autoconf 2.60,
23103 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23105 Copyright (C) 2006 Free Software Foundation, Inc.
23106 This config.status script is free software; the Free Software Foundation
23107 gives unlimited permission to copy, distribute and modify it."
23114 cat >>$CONFIG_STATUS <<\_ACEOF
23115 # If no file are specified by the user, then we need to provide default
23116 # value. By we need to know if files were specified by the user.
23122 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23123 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23134 # Handling of the options.
23135 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23137 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23138 echo "$ac_cs_version"; exit ;;
23139 --debug |
--debu |
--deb |
--de |
--d |
-d )
23141 --file |
--fil |
--fi |
--f )
23143 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23144 ac_need_defaults
=false
;;
23145 --header |
--heade |
--head |
--hea )
23147 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23148 ac_need_defaults
=false
;;
23150 # Conflict between --help and --header
23151 { echo "$as_me: error: ambiguous option: $1
23152 Try \`$0 --help' for more information." >&2
23153 { (exit 1); exit 1; }; };;
23154 --help |
--hel |
-h )
23155 echo "$ac_cs_usage"; exit ;;
23156 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23157 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23160 # This is an error.
23161 -*) { echo "$as_me: error: unrecognized option: $1
23162 Try \`$0 --help' for more information." >&2
23163 { (exit 1); exit 1; }; } ;;
23165 *) ac_config_targets
="$ac_config_targets $1"
23166 ac_need_defaults
=false
;;
23172 ac_configure_extra_args
=
23174 if $ac_cs_silent; then
23176 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23180 cat >>$CONFIG_STATUS <<_ACEOF
23181 if \$ac_cs_recheck; then
23182 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23183 CONFIG_SHELL=$SHELL
23184 export CONFIG_SHELL
23185 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23189 cat >>$CONFIG_STATUS <<\_ACEOF
23193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23194 ## Running $as_me. ##
23200 cat >>$CONFIG_STATUS <<_ACEOF
23204 llvm_src="${srcdir}"
23208 cat >>$CONFIG_STATUS <<\_ACEOF
23210 # Handling of arguments.
23211 for ac_config_target
in $ac_config_targets
23213 case $ac_config_target in
23214 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23215 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23216 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23217 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23218 "include/llvm/Config/AsmParsers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23219 "include/llvm/Config/Disassemblers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23220 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23221 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
23222 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
23223 "docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES docs/doxygen.cfg" ;;
23224 "tools/clang/docs/doxygen.cfg") CONFIG_FILES
="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
23225 "tools/llvmc/src/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23226 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23227 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
23228 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
23229 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
23230 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
23231 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
23232 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
23233 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
23234 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
23235 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
23236 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
23237 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
23238 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
23239 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
23240 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23242 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23243 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23244 { (exit 1); exit 1; }; };;
23249 # If the user did not use the arguments to specify the items to instantiate,
23250 # then the envvar interface is used. Set only those that are not.
23251 # We use the long form for the default assignment because of an extremely
23252 # bizarre bug on SunOS 4.1.3.
23253 if $ac_need_defaults; then
23254 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23255 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23256 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23259 # Have a temporary directory for convenience. Make it in the build tree
23260 # simply because there is no reason against having it here, and in addition,
23261 # creating and moving files from /tmp can sometimes cause problems.
23262 # Hook for its removal unless debugging.
23263 # Note that there is a small window in which the directory will not be cleaned:
23264 # after its creation but before its name has been assigned to `$tmp'.
23268 trap 'exit_status=$?
23269 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23271 trap '{ (exit 1); exit 1; }' 1 2 13 15
23273 # Create a (secure) tmp directory for tmp files.
23276 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23277 test -n "$tmp" && test -d "$tmp"
23280 tmp
=.
/conf$$
-$RANDOM
23281 (umask 077 && mkdir
"$tmp")
23284 echo "$me: cannot create a temporary directory in ." >&2
23285 { (exit 1); exit 1; }
23289 # Set up the sed scripts for CONFIG_FILES section.
23292 # No need to generate the scripts if there are no CONFIG_FILES.
23293 # This happens for instance when ./config.status config.h
23294 if test -n "$CONFIG_FILES"; then
23301 for ac_last_try
in false false false false false
:; do
23302 cat >conf$
$subs.
sed <<_ACEOF
23303 SHELL!$SHELL$ac_delim
23304 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23305 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23306 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23307 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23308 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23309 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23310 exec_prefix!$exec_prefix$ac_delim
23311 prefix!$prefix$ac_delim
23312 program_transform_name!$program_transform_name$ac_delim
23313 bindir!$bindir$ac_delim
23314 sbindir!$sbindir$ac_delim
23315 libexecdir!$libexecdir$ac_delim
23316 datarootdir!$datarootdir$ac_delim
23317 datadir!$datadir$ac_delim
23318 sysconfdir!$sysconfdir$ac_delim
23319 sharedstatedir!$sharedstatedir$ac_delim
23320 localstatedir!$localstatedir$ac_delim
23321 includedir!$includedir$ac_delim
23322 oldincludedir!$oldincludedir$ac_delim
23323 docdir!$docdir$ac_delim
23324 infodir!$infodir$ac_delim
23325 htmldir!$htmldir$ac_delim
23326 dvidir!$dvidir$ac_delim
23327 pdfdir!$pdfdir$ac_delim
23328 psdir!$psdir$ac_delim
23329 libdir!$libdir$ac_delim
23330 localedir!$localedir$ac_delim
23331 mandir!$mandir$ac_delim
23332 DEFS!$DEFS$ac_delim
23333 ECHO_C!$ECHO_C$ac_delim
23334 ECHO_N!$ECHO_N$ac_delim
23335 ECHO_T!$ECHO_T$ac_delim
23336 LIBS!$LIBS$ac_delim
23337 build_alias!$build_alias$ac_delim
23338 host_alias!$host_alias$ac_delim
23339 target_alias!$target_alias$ac_delim
23340 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23341 subdirs!$subdirs$ac_delim
23342 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23343 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23344 build!$build$ac_delim
23345 build_cpu!$build_cpu$ac_delim
23346 build_vendor!$build_vendor$ac_delim
23347 build_os!$build_os$ac_delim
23348 host!$host$ac_delim
23349 host_cpu!$host_cpu$ac_delim
23350 host_vendor!$host_vendor$ac_delim
23351 host_os!$host_os$ac_delim
23352 target!$target$ac_delim
23353 target_cpu!$target_cpu$ac_delim
23354 target_vendor!$target_vendor$ac_delim
23355 target_os!$target_os$ac_delim
23357 HOST_OS!$HOST_OS$ac_delim
23358 TARGET_OS!$TARGET_OS$ac_delim
23359 LINKALL!$LINKALL$ac_delim
23360 NOLINKALL!$NOLINKALL$ac_delim
23361 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23362 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23363 ARCH!$ARCH$ac_delim
23364 ENDIAN!$ENDIAN$ac_delim
23366 CFLAGS!$CFLAGS$ac_delim
23367 LDFLAGS!$LDFLAGS$ac_delim
23368 CPPFLAGS!$CPPFLAGS$ac_delim
23369 ac_ct_CC!$ac_ct_CC$ac_delim
23370 EXEEXT!$EXEEXT$ac_delim
23371 OBJEXT!$OBJEXT$ac_delim
23373 GREP!$GREP$ac_delim
23374 EGREP!$EGREP$ac_delim
23375 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23376 BUILD_CC!$BUILD_CC$ac_delim
23377 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23378 BUILD_CXX!$BUILD_CXX$ac_delim
23379 CVSBUILD!$CVSBUILD$ac_delim
23380 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23381 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23382 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23383 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23384 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23385 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23386 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23388 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23389 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23390 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23391 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23392 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23393 ENABLE_PIC!$ENABLE_PIC$ac_delim
23394 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23395 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23396 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23397 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23398 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23399 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23402 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23404 elif $ac_last_try; then
23405 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23406 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23407 { (exit 1); exit 1; }; }
23409 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23413 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23414 if test -n "$ac_eof"; then
23415 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23416 ac_eof
=`expr $ac_eof + 1`
23419 cat >>$CONFIG_STATUS <<_ACEOF
23420 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23424 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23425 s/^/s,@/; s/!/@,|#_!!_#|/
23428 s/'"$ac_delim"'$/,g/; t
23430 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23431 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23432 rm -f conf$
$subs.
sed
23433 cat >>$CONFIG_STATUS <<_ACEOF
23439 for ac_last_try
in false false false false false
:; do
23440 cat >conf$
$subs.
sed <<_ACEOF
23441 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23442 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23443 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23444 CLANGPATH!$CLANGPATH$ac_delim
23445 CLANGXXPATH!$CLANGXXPATH$ac_delim
23446 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23447 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23448 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23449 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23450 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23452 CXXFLAGS!$CXXFLAGS$ac_delim
23453 ac_ct_CXX!$ac_ct_CXX$ac_delim
23455 ifGNUmake!$ifGNUmake$ac_delim
23456 LN_S!$LN_S$ac_delim
23459 DATE!$DATE$ac_delim
23460 FIND!$FIND$ac_delim
23461 MKDIR!$MKDIR$ac_delim
23463 RANLIB!$RANLIB$ac_delim
23468 BINPWD!$BINPWD$ac_delim
23469 GRAPHVIZ!$GRAPHVIZ$ac_delim
23472 NEATO!$NEATO$ac_delim
23473 TWOPI!$TWOPI$ac_delim
23474 CIRCO!$CIRCO$ac_delim
23476 DOTTY!$DOTTY$ac_delim
23477 XDOT_PY!$XDOT_PY$ac_delim
23478 PERL!$PERL$ac_delim
23479 HAVE_PERL!$HAVE_PERL$ac_delim
23480 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23481 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23482 INSTALL_DATA!$INSTALL_DATA$ac_delim
23483 BZIP2!$BZIP2$ac_delim
23485 DOXYGEN!$DOXYGEN$ac_delim
23486 GROFF!$GROFF$ac_delim
23487 GZIPBIN!$GZIPBIN$ac_delim
23488 POD2HTML!$POD2HTML$ac_delim
23489 POD2MAN!$POD2MAN$ac_delim
23490 PDFROFF!$PDFROFF$ac_delim
23491 RUNTEST!$RUNTEST$ac_delim
23492 TCLSH!$TCLSH$ac_delim
23494 OCAMLC!$OCAMLC$ac_delim
23495 OCAMLOPT!$OCAMLOPT$ac_delim
23496 OCAMLDEP!$OCAMLDEP$ac_delim
23497 OCAMLDOC!$OCAMLDOC$ac_delim
23499 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23500 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23501 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23502 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23503 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23504 LIBADD_DL!$LIBADD_DL$ac_delim
23505 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23506 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23507 LLVMGCC!$LLVMGCC$ac_delim
23508 LLVMGXX!$LLVMGXX$ac_delim
23509 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23510 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23511 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23512 USE_UDIS86!$USE_UDIS86$ac_delim
23513 USE_OPROFILE!$USE_OPROFILE$ac_delim
23514 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23515 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23516 MMAP_FILE!$MMAP_FILE$ac_delim
23517 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23518 LLVMCC1!$LLVMCC1$ac_delim
23519 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23520 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23521 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23522 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23523 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23524 SHLIBEXT!$SHLIBEXT$ac_delim
23525 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23526 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23527 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23528 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23529 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23530 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23531 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23532 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23533 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23534 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23535 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23536 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23537 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23540 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23542 elif $ac_last_try; then
23543 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23544 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23545 { (exit 1); exit 1; }; }
23547 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23551 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23552 if test -n "$ac_eof"; then
23553 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23554 ac_eof
=`expr $ac_eof + 1`
23557 cat >>$CONFIG_STATUS <<_ACEOF
23558 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23559 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23562 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23563 s/^/s,@/; s/!/@,|#_!!_#|/
23566 s/'"$ac_delim"'$/,g/; t
23568 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23569 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23570 rm -f conf$
$subs.
sed
23571 cat >>$CONFIG_STATUS <<_ACEOF
23577 for ac_last_try
in false false false false false
:; do
23578 cat >conf$
$subs.
sed <<_ACEOF
23579 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23580 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23581 RPATH!$RPATH$ac_delim
23582 RDYNAMIC!$RDYNAMIC$ac_delim
23583 LIBOBJS!$LIBOBJS$ac_delim
23584 LTLIBOBJS!$LTLIBOBJS$ac_delim
23587 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23589 elif $ac_last_try; then
23590 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23591 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23592 { (exit 1); exit 1; }; }
23594 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23598 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23599 if test -n "$ac_eof"; then
23600 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23601 ac_eof
=`expr $ac_eof + 1`
23604 cat >>$CONFIG_STATUS <<_ACEOF
23605 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23606 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23609 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23610 s/^/s,@/; s/!/@,|#_!!_#|/
23613 s/'"$ac_delim"'$/,g/; t
23615 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23616 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23617 rm -f conf$
$subs.
sed
23618 cat >>$CONFIG_STATUS <<_ACEOF
23625 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23626 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23627 # trailing colons and then remove the whole line if VPATH becomes empty
23628 # (actually we leave an empty line to preserve line numbers).
23629 if test "x$srcdir" = x.
; then
23630 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23631 s/:*\$(srcdir):*/:/
23632 s/:*\${srcdir}:*/:/
23634 s/^\([^=]*=[ ]*\):*/\1/
23640 cat >>$CONFIG_STATUS <<\_ACEOF
23641 fi # test -n "$CONFIG_FILES"
23644 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23647 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23649 case $ac_mode$ac_tag in
23651 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23652 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23653 { (exit 1); exit 1; }; };;
23654 :[FH
]-) ac_tag
=-:-;;
23655 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23672 -) ac_f
="$tmp/stdin";;
23673 *) # Look for the file first in the build tree, then in the source tree
23674 # (if the path is not absolute). The absolute path cannot be DOS-style,
23675 # because $ac_f cannot contain `:'.
23679 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23681 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23682 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23683 { (exit 1); exit 1; }; };;
23685 ac_file_inputs
="$ac_file_inputs $ac_f"
23688 # Let's still pretend it is `configure' which instantiates (i.e., don't
23689 # use $as_me), people would be surprised to read:
23690 # /* config.h. Generated by config.status. */
23691 configure_input
="Generated from "`IFS=:
23692 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23693 if test x
"$ac_file" != x-
; then
23694 configure_input
="$ac_file. $configure_input"
23695 { echo "$as_me:$LINENO: creating $ac_file" >&5
23696 echo "$as_me: creating $ac_file" >&6;}
23700 *:-:* |
*:-) cat >"$tmp/stdin";;
23705 ac_dir
=`$as_dirname -- "$ac_file" ||
23706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23707 X"$ac_file" : 'X\(//\)[^/]' \| \
23708 X"$ac_file" : 'X\(//\)$' \| \
23709 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23715 /^X\(\/\/\)[^/].*/{
23730 -*) as_dir
=.
/$as_dir;;
23732 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23736 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23737 *) as_qdir
=$as_dir;;
23739 as_dirs
="'$as_qdir' $as_dirs"
23740 as_dir
=`$as_dirname -- "$as_dir" ||
23741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23742 X"$as_dir" : 'X\(//\)[^/]' \| \
23743 X"$as_dir" : 'X\(//\)$' \| \
23744 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23750 /^X\(\/\/\)[^/].*/{
23763 test -d "$as_dir" && break
23765 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23766 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23767 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23768 { (exit 1); exit 1; }; }; }
23772 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23774 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23775 # A ".." for each directory in $ac_dir_suffix.
23776 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23777 case $ac_top_builddir_sub in
23778 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23779 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23782 ac_abs_top_builddir
=$ac_pwd
23783 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23784 # for backward compatibility:
23785 ac_top_builddir
=$ac_top_build_prefix
23788 .
) # We are building in place.
23790 ac_top_srcdir
=$ac_top_builddir_sub
23791 ac_abs_top_srcdir
=$ac_pwd ;;
23792 [\\/]* | ?
:[\\/]* ) # Absolute name.
23793 ac_srcdir
=$srcdir$ac_dir_suffix;
23794 ac_top_srcdir
=$srcdir
23795 ac_abs_top_srcdir
=$srcdir ;;
23796 *) # Relative name.
23797 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23798 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23799 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23801 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23811 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23812 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23816 cat >>$CONFIG_STATUS <<\_ACEOF
23817 # If the template does not know about datarootdir, expand it.
23818 # FIXME: This hack should be removed a few years after 2.60.
23819 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23821 case `sed -n '/datarootdir/ {
23830 ' $ac_file_inputs` in
23831 *datarootdir
*) ac_datarootdir_seen
=yes;;
23832 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23833 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23834 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23836 cat >>$CONFIG_STATUS <<_ACEOF
23837 ac_datarootdir_hack='
23838 s&@datadir@&$datadir&g
23839 s&@docdir@&$docdir&g
23840 s&@infodir@&$infodir&g
23841 s&@localedir@&$localedir&g
23842 s&@mandir@&$mandir&g
23843 s&\\\${datarootdir}&$datarootdir&g' ;;
23847 # Neutralize VPATH when `$srcdir' = `.'.
23848 # Shell code in configure.ac might set extrasub.
23849 # FIXME: do we really want to maintain this feature?
23850 cat >>$CONFIG_STATUS <<_ACEOF
23854 cat >>$CONFIG_STATUS <<\_ACEOF
23856 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23857 s
&@configure_input@
&$configure_input&;t t
23858 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23859 s
&@srcdir@
&$ac_srcdir&;t t
23860 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23861 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23862 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23863 s
&@builddir@
&$ac_builddir&;t t
23864 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23865 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23866 s
&@INSTALL@
&$ac_INSTALL&;t t
23867 $ac_datarootdir_hack
23868 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" >$tmp/out
23870 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23871 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23872 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23873 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23874 which seems to be undefined. Please make sure it is defined." >&5
23875 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23876 which seems to be undefined. Please make sure it is defined." >&2;}
23880 -) cat "$tmp/out"; rm -f "$tmp/out";;
23881 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23890 # Transform confdefs.h into a sed script `conftest.defines', that
23891 # substitutes the proper values into config.h.in to produce config.h.
23892 rm -f conftest.defines conftest.
tail
23893 # First, append a space to every undef/define line, to ease matching.
23894 echo 's/$/ /' >conftest.defines
23895 # Then, protect against being on the right side of a sed subst, or in
23896 # an unquoted here document, in config.status. If some macros were
23897 # called several times there might be several #defines for the same
23898 # symbol, which is useless. But do not sort them, since the last
23899 # AC_DEFINE must be honored.
23900 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
23901 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23902 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23903 # PARAMS is the parameter list in the macro definition--in most cases, it's
23904 # just an empty string.
23905 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23906 ac_dB
='\\)[ (].*,\\1define\\2'
23914 s/^[ ]*#[ ]*define[ ][ ]*//
23919 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23920 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23921 ' >>conftest.defines
23923 # Remove the space that was appended to ease matching.
23924 # Then replace #undef with comments. This is necessary, for
23925 # example, in the case of _POSIX_SOURCE, which is predefined and required
23926 # on some systems where configure will not decide to define it.
23927 # (The regexp can be short, since the line contains either #define or #undef.)
23929 s,^[ #]*u.*,/* & */,' >>conftest.defines
23931 # Break up conftest.defines:
23932 ac_max_sed_lines
=50
23934 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23935 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23936 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23938 ac_in
='$ac_file_inputs'
23939 ac_out
='"$tmp/out1"'
23940 ac_nxt
='"$tmp/out2"'
23944 # Write a here document:
23945 cat >>$CONFIG_STATUS <<_ACEOF
23946 # First, check the format of the line:
23947 cat >"\$tmp/defines.sed" <<\\CEOF
23948 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23949 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23953 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
23955 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23956 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
23957 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
23958 grep . conftest.
tail >/dev
/null ||
break
23959 rm -f conftest.defines
23960 mv conftest.
tail conftest.defines
23962 rm -f conftest.defines conftest.
tail
23964 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23965 cat >>$CONFIG_STATUS <<\_ACEOF
23966 if test x
"$ac_file" != x-
; then
23967 echo "/* $configure_input */" >"$tmp/config.h"
23968 cat "$ac_result" >>"$tmp/config.h"
23969 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
23970 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23971 echo "$as_me: $ac_file is unchanged" >&6;}
23974 mv "$tmp/config.h" $ac_file
23977 echo "/* $configure_input */"
23983 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23984 echo "$as_me: executing $ac_file commands" >&6;}
23989 case $ac_file$ac_mode in
23990 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
23991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile
;;
23992 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
23993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common
;;
23994 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
23995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
23996 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
23997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
23998 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
23999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
24000 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
24001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile test
/Makefile
;;
24002 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
24003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
24004 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
24005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
24006 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
24007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
24008 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
24009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
24010 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
24011 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
24012 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
24013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
24014 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
24015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
24021 { (exit 0); exit 0; }
24023 chmod +x
$CONFIG_STATUS
24024 ac_clean_files
=$ac_clean_files_save
24027 # configure is writing to config.log, and then calls config.status.
24028 # config.status does its own redirection, appending to config.log.
24029 # Unfortunately, on DOS this fails, as config.log is still kept open
24030 # by configure, so config.status won't be able to write to it; its
24031 # output is simply discarded. So we exec the FD to /dev/null,
24032 # effectively closing config.log, so it can be properly (re)opened and
24033 # appended to by config.status. When coming back to configure, we
24034 # need to make the FD available again.
24035 if test "$no_create" != yes; then
24037 ac_config_status_args
=
24038 test "$silent" = yes &&
24039 ac_config_status_args
="$ac_config_status_args --quiet"
24041 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24043 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24044 # would make configure fail if this is the last instruction.
24045 $ac_cs_success ||
{ (exit 1); exit 1; }
24049 # CONFIG_SUBDIRS section.
24051 if test "$no_recursion" != yes; then
24053 # Remove --cache-file and --srcdir arguments so they do not pile up.
24054 ac_sub_configure_args
=
24056 eval "set x $ac_configure_args"
24060 if test -n "$ac_prev"; then
24065 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
24066 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
24067 ac_prev
=cache_file
;;
24068 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
24069 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
24072 --config-cache |
-C)
24074 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
24076 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
24078 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
24080 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
24084 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24086 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
24090 # Always prepend --prefix to ensure using the same prefix
24091 # in subdir configurations.
24092 ac_arg
="--prefix=$prefix"
24094 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24096 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
24099 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
24101 # Do not complain, so a configure script can configure whichever
24102 # parts of a large source tree are present.
24103 test -d "$srcdir/$ac_dir" ||
continue
24105 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24106 echo "$as_me:$LINENO: $ac_msg" >&5
24110 -*) as_dir
=.
/$as_dir;;
24112 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24116 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24117 *) as_qdir
=$as_dir;;
24119 as_dirs
="'$as_qdir' $as_dirs"
24120 as_dir
=`$as_dirname -- "$as_dir" ||
24121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24122 X"$as_dir" : 'X\(//\)[^/]' \| \
24123 X"$as_dir" : 'X\(//\)$' \| \
24124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24130 /^X\(\/\/\)[^/].*/{
24143 test -d "$as_dir" && break
24145 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24146 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24147 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24148 { (exit 1); exit 1; }; }; }
24152 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24154 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24155 # A ".." for each directory in $ac_dir_suffix.
24156 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24157 case $ac_top_builddir_sub in
24158 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24159 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24162 ac_abs_top_builddir
=$ac_pwd
24163 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24164 # for backward compatibility:
24165 ac_top_builddir
=$ac_top_build_prefix
24168 .
) # We are building in place.
24170 ac_top_srcdir
=$ac_top_builddir_sub
24171 ac_abs_top_srcdir
=$ac_pwd ;;
24172 [\\/]* | ?
:[\\/]* ) # Absolute name.
24173 ac_srcdir
=$srcdir$ac_dir_suffix;
24174 ac_top_srcdir
=$srcdir
24175 ac_abs_top_srcdir
=$srcdir ;;
24176 *) # Relative name.
24177 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24178 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24179 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24181 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24186 # Check for guested configure; otherwise get Cygnus style configure.
24187 if test -f "$ac_srcdir/configure.gnu"; then
24188 ac_sub_configure
=$ac_srcdir/configure.gnu
24189 elif test -f "$ac_srcdir/configure"; then
24190 ac_sub_configure
=$ac_srcdir/configure
24191 elif test -f "$ac_srcdir/configure.in"; then
24192 # This should be Cygnus configure.
24193 ac_sub_configure
=$ac_aux_dir/configure
24195 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24196 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24200 # The recursion is here.
24201 if test -n "$ac_sub_configure"; then
24202 # Make the cache file name correct relative to the subdirectory.
24203 case $cache_file in
24204 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
24205 *) # Relative name.
24206 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
24209 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24210 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24211 # The eval makes quoting arguments work.
24212 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24213 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24214 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24215 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24216 { (exit 1); exit 1; }; }