2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.6.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
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-2014 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.6.0svn'
565 PACKAGE_STRING='LLVM 3.6.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/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
693 ENABLE_CLANG_STATIC_ANALYZER
698 ENABLE_EXPENSIVE_CHECKS
718 LLVM_ENUM_ASM_PRINTERS
719 LLVM_ENUM_ASM_PARSERS
720 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
763 NO_MISSING_FIELD_INITIALIZERS
764 COVERED_SWITCH_DEFAULT
765 NO_MAYBE_UNINITIALIZED
793 ENABLE_VISIBILITY_INLINES_HIDDEN
800 ac_precious_vars='build_alias
812 ac_subdirs_all='projects/test-suite
815 projects/llvm-poolalloc
819 # Initialize some variables set by options.
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
831 program_transform_name=s,x,x,
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 -enable-* | --enable-*)
939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
960 -help | --help | --hel | --he | -h)
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 htmldir=$ac_optarg ;;
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
990 -libdir | --libdir | --libdi | --libd)
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1081 -psdir | --psdir | --psdi | --psd | --ps)
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1109 -site=* | --site=* | --sit=*)
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
1202 # Be sure to have absolute directory names.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures LLVM 3.6.0svn to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of LLVM 3.6.0svn:";;
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-polly Use polly if available (default is YES)
1393 --enable-libcpp Use libc++ if available (default is NO)
1394 --enable-compiler-version-checks
1395 Check the version of the host compiler (default is
1397 --enable-cxx1y Use c++1y if available (default is NO)
1398 --enable-split-dwarf Use split-dwarf if available (default is NO)
1399 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1400 --enable-clang-plugin-support
1401 Enable plugin support in clang (default is YES)
1402 --enable-clang-static-analyzer
1403 Enable building of clang Static Analyzer (default is
1405 --enable-optimized Compile with optimizations enabled (default is NO)
1406 --enable-profiling Compile with profiling enabled (default is NO)
1407 --enable-assertions Compile with assertion checks enabled (default is
1409 --enable-werror Compile with -Werror enabled (default is NO)
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-keep-symbols Do not strip installed executables)
1418 --enable-jit Enable Just In Time Compiling (default is YES)
1419 --enable-docs Build documents (default is YES)
1420 --enable-doxygen Build doxygen documentation (default is NO)
1421 --enable-threads Use threads if available (default is YES)
1422 --enable-pthreads Use pthreads if available (default is YES)
1423 --enable-zlib Use zlib for compression/decompression if available
1425 --enable-pic Build LLVM with Position Independent Code (default
1427 --enable-shared Build a shared library and link tools against it
1429 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1430 Win32 DLL (default is NO)
1431 --enable-timestamps Enable embedding timestamp information in build
1433 --enable-backtraces Enable embedding backtraces on crash (default is
1435 --enable-crash-overrides
1436 Enable crash handling overrides (default is YES)
1437 --enable-targets Build specific host targets: all or
1438 target1,target2,... Valid targets are: host, x86,
1439 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1440 hexagon, xcore, msp430, nvptx, systemz, r600, and
1442 --enable-experimental-targets
1443 Build experimental host targets: disable or
1444 target1,target2,... (default=disable)
1445 --enable-bindings Build specific language bindings:
1446 all,auto,none,{binding-name} (default=auto)
1447 --enable-terminfo Query the terminfo database if available (default is
1449 --enable-libedit Use libedit if available (default is YES)
1450 --enable-libffi Check for the presence of libffi (default is NO)
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
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-srcdir Directory to the out-of-tree Clang source
1462 --with-clang-resource-dir
1463 Relative directory from the Clang binary for
1465 --with-c-include-dirs Colon separated list of directories clang will
1467 --with-gcc-toolchain Directory where gcc is installed.
1468 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1469 --with-binutils-include Specify path to binutils/include/ containing
1470 plugin-api.h file for gold plugin.
1471 --with-bug-report-url Specify the URL where bug reports should be
1472 submitted (default=http://llvm.org/bugs/)
1473 --with-internal-prefix Installation directory for internal files
1474 --with-python path to python
1475 --with-oprofile=<prefix>
1476 Tell OProfile >= 0.9.4 how to symbolize JIT output
1477 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 CXX C++ compiler command
1488 CXXFLAGS C++ compiler flags
1490 CXXCPP C++ preprocessor
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 <http://llvm.org/bugs/>.
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.6.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-2014 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.6.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_VERSION_MAJOR=3
1927 LLVM_VERSION_MINOR=6
1928 LLVM_VERSION_PATCH=0
1929 LLVM_VERSION_SUFFIX=svn
1932 cat >>confdefs.h <<_ACEOF
1933 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1937 cat >>confdefs.h <<_ACEOF
1938 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1942 cat >>confdefs.h <<_ACEOF
1943 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1952 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1961 for ac_dir in autoconf "$srcdir"/autoconf; do
1962 if test -f "$ac_dir/install-sh"; then
1964 ac_install_sh="$ac_aux_dir/install-sh -c"
1966 elif test -f "$ac_dir/install.sh"; then
1968 ac_install_sh="$ac_aux_dir/install.sh -c"
1970 elif test -f "$ac_dir/shtool"; then
1972 ac_install_sh="$ac_aux_dir/shtool install -c"
1976 if test -z "$ac_aux_dir"; then
1977 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1978 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1979 { (exit 1); exit 1; }; }
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1992 if test ${srcdir} != "." ; then
1993 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1994 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1995 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1996 { (exit 1); exit 1; }; }
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009 for ac_prog in clang gcc
2011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC="$CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 if test -n "$CC"; then
2040 { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2048 test -n "$CC" && break
2051 if test -z "$CC"; then
2053 for ac_prog in clang gcc
2055 # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy $ac_prog; ac_word=$2
2057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 if test -n "$ac_ct_CC"; then
2063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2072 ac_cv_prog_ac_ct_CC="$ac_prog"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083 if test -n "$ac_ct_CC"; then
2084 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085 echo "${ECHO_T}$ac_ct_CC" >&6; }
2087 { echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6; }
2092 test -n "$ac_ct_CC" && break
2095 if test "x$ac_ct_CC" = x; then
2098 case $cross_compiling:$ac_tool_warned in
2100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2101 whose name does not start with the host triplet. If you think this
2102 configuration is useful to you, please write to autoconf@gnu.org." >&5
2103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2104 whose name does not start with the host triplet. If you think this
2105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2106 ac_tool_warned=yes ;;
2113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2114 See \`config.log' for more details." >&5
2115 echo "$as_me: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&2;}
2117 { (exit 1); exit 1; }; }
2119 # Provide some information about the compiler.
2120 echo "$as_me:$LINENO: checking for C compiler version" >&5
2121 ac_compiler=`set X $ac_compile; echo $2`
2122 { (ac_try="$ac_compiler --version >&5"
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128 (eval "$ac_compiler --version >&5") 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132 { (ac_try="$ac_compiler -v >&5"
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138 (eval "$ac_compiler -v >&5") 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
2142 { (ac_try="$ac_compiler -V >&5"
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2148 (eval "$ac_compiler -V >&5") 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }
2153 cat >conftest.$ac_ext <<_ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2168 ac_clean_files_save=$ac_clean_files
2169 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2170 # Try to create an executable without -o first, disregard a.out.
2171 # It will help us diagnose broken compilers, and finding out an intuition
2173 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2174 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2175 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2177 # List of possible output files, starting from the most likely.
2178 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2179 # only as a last resort. b.out is created by i960 compilers.
2180 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2182 # The IRIX 6 linker writes into existing files which may not be
2183 # executable, retaining their permissions. Remove them first so a
2184 # subsequent execution test works.
2186 for ac_file in $ac_files
2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2190 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2195 if { (ac_try="$ac_link_default"
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2201 (eval "$ac_link_default") 2>&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; then
2205 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2207 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2208 # so that the user can short-circuit this test for compilers unknown to
2210 for ac_file in $ac_files
2212 test -f "$ac_file" || continue
2214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2217 # We found the default executable, but exeext='' is most
2221 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2225 # We set ac_cv_exeext here because the later test for it is not
2226 # safe: cross compilers may not add the suffix if given an `-o'
2227 # argument, so we may need to know it at that point already.
2228 # Even if this section looks crufty: it has the advantage of
2235 test "$ac_cv_exeext" = no && ac_cv_exeext=
2238 echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2241 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&2;}
2245 { (exit 77); exit 77; }; }
2248 ac_exeext=$ac_cv_exeext
2249 { echo "$as_me:$LINENO: result: $ac_file" >&5
2250 echo "${ECHO_T}$ac_file" >&6; }
2252 # Check that the compiler produces executables we can run. If not, either
2253 # the compiler is broken, or we cross compile.
2254 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2255 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2256 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2257 # If not cross compiling, check that we can run a simple program.
2258 if test "$cross_compiling" != yes; then
2259 if { ac_try='./$ac_file'
2260 { (case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2265 (eval "$ac_try") 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2271 if test "$cross_compiling" = maybe; then
2274 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2275 If you meant to cross compile, use \`--host'.
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot run C compiled programs.
2278 If you meant to cross compile, use \`--host'.
2279 See \`config.log' for more details." >&2;}
2280 { (exit 1); exit 1; }; }
2284 { echo "$as_me:$LINENO: result: yes" >&5
2285 echo "${ECHO_T}yes" >&6; }
2287 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2288 ac_clean_files=$ac_clean_files_save
2289 # Check that the compiler produces executables we can run. If not, either
2290 # the compiler is broken, or we cross compile.
2291 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2292 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2293 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2294 echo "${ECHO_T}$cross_compiling" >&6; }
2296 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2297 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2298 if { (ac_try="$ac_link"
2300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301 *) ac_try_echo=$ac_try;;
2303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2304 (eval "$ac_link") 2>&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; then
2308 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2309 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2310 # work properly (i.e., refer to `conftest.exe'), while it won't with
2312 for ac_file in conftest.exe conftest conftest.*; do
2313 test -f "$ac_file" || continue
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&2;}
2326 { (exit 1); exit 1; }; }
2329 rm -f conftest$ac_cv_exeext
2330 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2331 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2333 rm -f conftest.$ac_ext
2334 EXEEXT=$ac_cv_exeext
2336 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2337 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2338 if test "${ac_cv_objext+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 cat >conftest.$ac_ext <<_ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2356 rm -f conftest.o conftest.obj
2357 if { (ac_try="$ac_compile"
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363 (eval "$ac_compile") 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; then
2367 for ac_file in conftest.o conftest.obj conftest.*; do
2368 test -f "$ac_file" || continue;
2370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2371 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&2;}
2383 { (exit 1); exit 1; }; }
2386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2388 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2389 echo "${ECHO_T}$ac_cv_objext" >&6; }
2390 OBJEXT=$ac_cv_objext
2392 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 cat >conftest.$ac_ext <<_ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2415 rm -f conftest.$ac_objext
2416 if { (ac_try="$ac_compile"
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_compile") 2>conftest.er1
2424 grep -v '^ *+' conftest.er1 >conftest.err
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2430 { (case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_try") 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_try") 2>&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2461 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2462 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2463 GCC=`test $ac_compiler_gnu = yes && echo yes`
2464 ac_test_CFLAGS=${CFLAGS+set}
2465 ac_save_CFLAGS=$CFLAGS
2466 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2467 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_cc_g+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 ac_save_c_werror_flag=$ac_c_werror_flag
2472 ac_c_werror_flag=yes
2475 cat >conftest.$ac_ext <<_ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2490 rm -f conftest.$ac_objext
2491 if { (ac_try="$ac_compile"
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497 (eval "$ac_compile") 2>conftest.er1
2499 grep -v '^ *+' conftest.er1 >conftest.err
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2505 { (case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_try") 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_try") 2>&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; }; then
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2530 cat >conftest.$ac_ext <<_ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2545 rm -f conftest.$ac_objext
2546 if { (ac_try="$ac_compile"
2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552 (eval "$ac_compile") 2>conftest.er1
2554 grep -v '^ *+' conftest.er1 >conftest.err
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2560 { (case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_try") 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_try") 2>&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2584 ac_c_werror_flag=$ac_save_c_werror_flag
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_compile") 2>conftest.er1
2610 grep -v '^ *+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_try") 2>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 ac_c_werror_flag=$ac_save_c_werror_flag
2652 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2654 if test "$ac_test_CFLAGS" = set; then
2655 CFLAGS=$ac_save_CFLAGS
2656 elif test $ac_cv_prog_cc_g = yes; then
2657 if test "$GCC" = yes; then
2663 if test "$GCC" = yes; then
2669 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2670 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_cc_c89+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 ac_cv_prog_cc_c89=no
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2684 #include <sys/types.h>
2685 #include <sys/stat.h>
2686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2687 struct buf { int x; };
2688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2689 static char *e (p, i)
2695 static char *f (char * (*g) (char **, int), char **p, ...)
2700 s = g (p, va_arg (v,int));
2705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2706 function prototypes and stuff, but not '\xHH' hex character constants.
2707 These don't provoke an error unfortunately, instead are silently treated
2708 as 'x'. The following induces an error, until -std is added to get
2709 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2710 array size at least. It's necessary to write '\x00'==0 to get something
2711 that's true only with -std. */
2712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2714 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2715 inside strings and character constants. */
2717 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2719 int test (int i, double x);
2720 struct s1 {int (*f) (int a);};
2721 struct s2 {int (*f) (double a);};
2722 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2728 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2733 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2734 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2736 CC="$ac_save_CC $ac_arg"
2737 rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2746 grep -v '^ *+' conftest.er1 >conftest.err
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2752 { (case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_try") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; } &&
2761 { ac_try='test -s conftest.$ac_objext'
2762 { (case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_try") 2>&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2771 ac_cv_prog_cc_c89=$ac_arg
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2779 rm -f core conftest.err conftest.$ac_objext
2780 test "x$ac_cv_prog_cc_c89" != "xno" && break
2782 rm -f conftest.$ac_ext
2787 case "x$ac_cv_prog_cc_c89" in
2789 { echo "$as_me:$LINENO: result: none needed" >&5
2790 echo "${ECHO_T}none needed" >&6; } ;;
2792 { echo "$as_me:$LINENO: result: unsupported" >&5
2793 echo "${ECHO_T}unsupported" >&6; } ;;
2795 CC="$CC $ac_cv_prog_cc_c89"
2796 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2797 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 ac_cpp='$CXXCPP $CPPFLAGS'
2809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2812 if test -z "$CXX"; then
2813 if test -n "$CCC"; then
2816 if test -n "$ac_tool_prefix"; then
2817 for ac_prog in clang++ g++
2819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_CXX+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 if test -n "$CXX"; then
2827 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 if test -n "$CXX"; then
2848 { echo "$as_me:$LINENO: result: $CXX" >&5
2849 echo "${ECHO_T}$CXX" >&6; }
2851 { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2856 test -n "$CXX" && break
2859 if test -z "$CXX"; then
2861 for ac_prog in clang++ g++
2863 # Extract the first word of "$ac_prog", so it can be a program name with args.
2864 set dummy $ac_prog; ac_word=$2
2865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 if test -n "$ac_ct_CXX"; then
2871 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_ac_ct_CXX="$ac_prog"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2891 if test -n "$ac_ct_CXX"; then
2892 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2893 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2895 { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2900 test -n "$ac_ct_CXX" && break
2903 if test "x$ac_ct_CXX" = x; then
2906 case $cross_compiling:$ac_tool_warned in
2908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2909 whose name does not start with the host triplet. If you think this
2910 configuration is useful to you, please write to autoconf@gnu.org." >&5
2911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2912 whose name does not start with the host triplet. If you think this
2913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2914 ac_tool_warned=yes ;;
2922 # Provide some information about the compiler.
2923 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2924 ac_compiler=`set X $ac_compile; echo $2`
2925 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2935 { (ac_try="$ac_compiler -v >&5"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compiler -v >&5") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }
2945 { (ac_try="$ac_compiler -V >&5"
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_compiler -V >&5") 2>&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }
2956 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2957 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2958 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 cat >conftest.$ac_ext <<_ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_try") 2>&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_try") 2>&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; }; then
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3025 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3026 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3027 GXX=`test $ac_compiler_gnu = yes && echo yes`
3028 ac_test_CXXFLAGS=${CXXFLAGS+set}
3029 ac_save_CXXFLAGS=$CXXFLAGS
3030 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3031 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3032 if test "${ac_cv_prog_cxx_g+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3036 ac_cxx_werror_flag=yes
3039 cat >conftest.$ac_ext <<_ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3054 rm -f conftest.$ac_objext
3055 if { (ac_try="$ac_compile"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compile") 2>conftest.er1
3063 grep -v '^ *+' conftest.er1 >conftest.err
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } &&
3068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_try") 2>&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_prog_cxx_g=yes
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3094 cat >conftest.$ac_ext <<_ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
3118 grep -v '^ *+' conftest.er1 >conftest.err
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } &&
3123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; } &&
3133 { ac_try='test -s conftest.$ac_objext'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 ac_cv_prog_cxx_g=yes
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3216 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3217 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3218 if test "$ac_test_CXXFLAGS" = set; then
3219 CXXFLAGS=$ac_save_CXXFLAGS
3220 elif test $ac_cv_prog_cxx_g = yes; then
3221 if test "$GXX" = yes; then
3227 if test "$GXX" = yes; then
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3245 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3246 # On Suns, sometimes $CPP names a directory.
3247 if test -n "$CPP" && test -d "$CPP"; then
3250 if test -z "$CPP"; then
3251 if test "${ac_cv_prog_CPP+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 # Double quotes because CPP needs to be expanded
3255 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3258 for ac_c_preproc_warn_flag in '' yes
3260 # Use a header file that comes with gcc, so configuring glibc
3261 # with a fresh cross-compiler works.
3262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3263 # <limits.h> exists even on freestanding compilers.
3264 # On the NeXT, cc -E runs the code through the compiler's parser,
3265 # not just through cpp. "Syntax error" is here to catch this case.
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3273 # include <limits.h>
3275 # include <assert.h>
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3301 if test -z "$ac_cpp_err"; then
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 # Broken: fails on valid input.
3311 rm -f conftest.err conftest.$ac_ext
3313 # OK, works on sane cases. Now check whether nonexistent headers
3314 # can be detected and how.
3315 cat >conftest.$ac_ext <<_ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321 #include <ac_nonexistent.h>
3323 if { (ac_try="$ac_cpp conftest.$ac_ext"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3331 grep -v '^ *+' conftest.er1 >conftest.err
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } >/dev/null; then
3336 if test -s conftest.err; then
3337 ac_cpp_err=$ac_c_preproc_warn_flag
3338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3345 if test -z "$ac_cpp_err"; then
3346 # Broken: success on invalid input.
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 # Passes both tests.
3357 rm -f conftest.err conftest.$ac_ext
3360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3361 rm -f conftest.err conftest.$ac_ext
3362 if $ac_preproc_ok; then
3374 { echo "$as_me:$LINENO: result: $CPP" >&5
3375 echo "${ECHO_T}$CPP" >&6; }
3377 for ac_c_preproc_warn_flag in '' yes
3379 # Use a header file that comes with gcc, so configuring glibc
3380 # with a fresh cross-compiler works.
3381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3382 # <limits.h> exists even on freestanding compilers.
3383 # On the NeXT, cc -E runs the code through the compiler's parser,
3384 # not just through cpp. "Syntax error" is here to catch this case.
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3392 # include <limits.h>
3394 # include <assert.h>
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 grep -v '^ *+' conftest.er1 >conftest.err
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev/null; then
3411 if test -s conftest.err; then
3412 ac_cpp_err=$ac_c_preproc_warn_flag
3413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3420 if test -z "$ac_cpp_err"; then
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 # Broken: fails on valid input.
3430 rm -f conftest.err conftest.$ac_ext
3432 # OK, works on sane cases. Now check whether nonexistent headers
3433 # can be detected and how.
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 #include <ac_nonexistent.h>
3442 if { (ac_try="$ac_cpp conftest.$ac_ext"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } >/dev/null; then
3455 if test -s conftest.err; then
3456 ac_cpp_err=$ac_c_preproc_warn_flag
3457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3464 if test -z "$ac_cpp_err"; then
3465 # Broken: success on invalid input.
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 # Passes both tests.
3476 rm -f conftest.err conftest.$ac_ext
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3484 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3485 See \`config.log' for more details." >&5
3486 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&2;}
3488 { (exit 1); exit 1; }; }
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 if test "$CXX" = "clang++" ; then
3499 { echo "$as_me:$LINENO: checking whether clang works" >&5
3500 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3502 ac_cpp='$CXXCPP $CPPFLAGS'
3503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3515 #if __has_include (<cxxabi.h>)
3518 #if __has_include (<unwind.h>)
3530 rm -f conftest.$ac_objext
3531 if { (ac_try="$ac_compile"
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_compile") 2>conftest.er1
3539 grep -v '^ *+' conftest.er1 >conftest.err
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3545 { (case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_try") 2>&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; } &&
3554 { ac_try='test -s conftest.$ac_objext'
3555 { (case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_try") 2>&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3565 { echo "$as_me:$LINENO: result: yes" >&5
3566 echo "${ECHO_T}yes" >&6; }
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3573 { echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6; }
3575 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3576 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3577 { (exit 1); exit 1; }; }
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3591 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3593 ac_cpp='$CXXCPP $CPPFLAGS'
3594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3598 llvm_cv_cxx_compiler=unknown
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_compile") 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3625 { (case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_try") 2>&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; } &&
3634 { ac_try='test -s conftest.$ac_objext'
3635 { (case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_try") 2>&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 llvm_cv_cxx_compiler=clang
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 cat >conftest.$ac_ext <<_ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_compile") 2>conftest.er1
3669 grep -v '^ *+' conftest.er1 >conftest.err
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } &&
3674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3675 { (case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_try") 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; } &&
3684 { ac_try='test -s conftest.$ac_objext'
3685 { (case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_try") 2>&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 llvm_cv_cxx_compiler=gcc
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3713 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3717 if test -d ${srcdir}/projects/test-suite ; then
3718 subdirs="$subdirs projects/test-suite"
3722 if test -d ${srcdir}/projects/llvm-test ; then
3723 subdirs="$subdirs projects/llvm-test"
3727 if test -d ${srcdir}/projects/poolalloc ; then
3728 subdirs="$subdirs projects/poolalloc"
3732 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3733 subdirs="$subdirs projects/llvm-poolalloc"
3737 for i in `ls ${srcdir}/projects`
3739 if test -d ${srcdir}/projects/${i} ; then
3741 safecode) subdirs="$subdirs projects/safecode"
3749 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3750 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3756 # Check whether --enable-polly was given.
3757 if test "${enable_polly+set}" = set; then
3758 enableval=$enable_polly;
3763 case "$enableval" in
3768 default) ENABLE_POLLY=1
3770 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3771 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3772 { (exit 1); exit 1; }; } ;;
3776 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3779 subdirs="$subdirs tools/polly"
3784 # Make sure we can run config.sub.
3785 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3786 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3787 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3788 { (exit 1); exit 1; }; }
3790 { echo "$as_me:$LINENO: checking build system type" >&5
3791 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3792 if test "${ac_cv_build+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 ac_build_alias=$build_alias
3796 test "x$ac_build_alias" = x &&
3797 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3798 test "x$ac_build_alias" = x &&
3799 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3800 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3801 { (exit 1); exit 1; }; }
3802 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3803 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3804 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3805 { (exit 1); exit 1; }; }
3808 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3809 echo "${ECHO_T}$ac_cv_build" >&6; }
3810 case $ac_cv_build in
3812 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3813 echo "$as_me: error: invalid value of canonical build" >&2;}
3814 { (exit 1); exit 1; }; };;
3817 ac_save_IFS=$IFS; IFS='-'
3823 # Remember, the first character of IFS is used to create $*,
3824 # except with old shells:
3827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3830 { echo "$as_me:$LINENO: checking host system type" >&5
3831 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3832 if test "${ac_cv_host+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 if test "x$host_alias" = x; then
3836 ac_cv_host=$ac_cv_build
3838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3839 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3840 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3841 { (exit 1); exit 1; }; }
3845 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3846 echo "${ECHO_T}$ac_cv_host" >&6; }
3849 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3850 echo "$as_me: error: invalid value of canonical host" >&2;}
3851 { (exit 1); exit 1; }; };;
3854 ac_save_IFS=$IFS; IFS='-'
3860 # Remember, the first character of IFS is used to create $*,
3861 # except with old shells:
3864 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3867 { echo "$as_me:$LINENO: checking target system type" >&5
3868 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3869 if test "${ac_cv_target+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 if test "x$target_alias" = x; then
3873 ac_cv_target=$ac_cv_host
3875 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3876 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3877 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3878 { (exit 1); exit 1; }; }
3882 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3883 echo "${ECHO_T}$ac_cv_target" >&6; }
3884 case $ac_cv_target in
3886 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3887 echo "$as_me: error: invalid value of canonical target" >&2;}
3888 { (exit 1); exit 1; }; };;
3890 target=$ac_cv_target
3891 ac_save_IFS=$IFS; IFS='-'
3897 # Remember, the first character of IFS is used to create $*,
3898 # except with old shells:
3901 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3904 # The aliases save the names the user supplied, while $host etc.
3905 # will get canonicalized.
3906 test -n "$target_alias" &&
3907 test "$program_prefix$program_suffix$program_transform_name" = \
3909 program_prefix=${target_alias}-
3911 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3912 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3913 if test "${llvm_cv_os_type+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 llvm_cv_link_all_option="-Wl,--whole-archive"
3919 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3920 llvm_cv_os_type="AIX"
3921 llvm_cv_platform_type="Unix" ;;
3923 llvm_cv_link_all_option="-Wl,--whole-archive"
3924 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3925 llvm_cv_os_type="IRIX"
3926 llvm_cv_platform_type="Unix" ;;
3928 llvm_cv_link_all_option="-Wl,--whole-archive"
3929 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3930 llvm_cv_os_type="Cygwin"
3931 llvm_cv_platform_type="Unix" ;;
3933 llvm_cv_link_all_option="-Wl,-all_load"
3934 llvm_cv_no_link_all_option="-Wl,-noall_load"
3935 llvm_cv_os_type="Darwin"
3936 llvm_cv_platform_type="Unix" ;;
3938 llvm_cv_link_all_option="-Wl,-all_load"
3939 llvm_cv_no_link_all_option="-Wl,-noall_load"
3940 llvm_cv_os_type="Minix"
3941 llvm_cv_platform_type="Unix" ;;
3943 llvm_cv_link_all_option="-Wl,--whole-archive"
3944 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3945 llvm_cv_os_type="FreeBSD"
3946 llvm_cv_platform_type="Unix" ;;
3948 llvm_cv_link_all_option="-Wl,--whole-archive"
3949 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3950 llvm_cv_os_type="GNU/kFreeBSD"
3951 llvm_cv_platform_type="Unix" ;;
3953 llvm_cv_link_all_option="-Wl,--whole-archive"
3954 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3955 llvm_cv_os_type="OpenBSD"
3956 llvm_cv_platform_type="Unix" ;;
3958 llvm_cv_link_all_option="-Wl,--whole-archive"
3959 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3960 llvm_cv_os_type="NetBSD"
3961 llvm_cv_platform_type="Unix" ;;
3963 llvm_cv_link_all_option="-Wl,--whole-archive"
3964 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3965 llvm_cv_os_type="DragonFly"
3966 llvm_cv_platform_type="Unix" ;;
3968 llvm_cv_link_all_option="-Wl,--whole-archive"
3969 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3970 llvm_cv_os_type="HP-UX"
3971 llvm_cv_platform_type="Unix" ;;
3973 llvm_cv_link_all_option="-Wl,--whole-archive"
3974 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3975 llvm_cv_os_type="Interix"
3976 llvm_cv_platform_type="Unix" ;;
3978 llvm_cv_link_all_option="-Wl,--whole-archive"
3979 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3980 llvm_cv_os_type="Linux"
3981 llvm_cv_platform_type="Unix" ;;
3983 llvm_cv_link_all_option="-Wl,--whole-archive"
3984 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3985 llvm_cv_os_type="GNU"
3986 llvm_cv_platform_type="Unix" ;;
3988 llvm_cv_link_all_option="-Wl,-z,allextract"
3989 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3990 llvm_cv_os_type="SunOS"
3991 llvm_cv_platform_type="Unix" ;;
3993 llvm_cv_link_all_option="-Wl,-z,allextract"
3994 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3995 llvm_cv_os_type="AuroraUX"
3996 llvm_cv_platform_type="Unix" ;;
3998 llvm_cv_link_all_option="-Wl,--whole-archive"
3999 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4000 llvm_cv_os_type="Win32"
4001 llvm_cv_platform_type="Win32" ;;
4003 llvm_cv_link_all_option="-Wl,--whole-archive"
4004 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4005 llvm_cv_os_type="MingW"
4006 llvm_cv_platform_type="Win32" ;;
4008 llvm_cv_link_all_option="-Wl,--whole-archive"
4009 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4010 llvm_cv_os_type="Haiku"
4011 llvm_cv_platform_type="Unix" ;;
4013 llvm_cv_link_all_option="-Wl,--whole-archive"
4014 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4015 llvm_cv_os_type="Freestanding"
4016 llvm_cv_platform_type="Unix" ;;
4018 llvm_cv_link_all_option="-Wl,--whole-archive"
4019 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4020 llvm_cv_os_type="Freestanding"
4021 llvm_cv_platform_type="Unix" ;;
4023 llvm_cv_link_all_option=""
4024 llvm_cv_no_link_all_option=""
4025 llvm_cv_os_type="Unknown"
4026 llvm_cv_platform_type="Unknown" ;;
4029 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4030 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4032 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4033 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4034 if test "${llvm_cv_target_os_type+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 llvm_cv_target_os_type="AIX" ;;
4041 llvm_cv_target_os_type="IRIX" ;;
4043 llvm_cv_target_os_type="Cygwin" ;;
4045 llvm_cv_target_os_type="Darwin" ;;
4047 llvm_cv_target_os_type="Minix" ;;
4049 llvm_cv_target_os_type="FreeBSD" ;;
4051 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4053 llvm_cv_target_os_type="OpenBSD" ;;
4055 llvm_cv_target_os_type="NetBSD" ;;
4057 llvm_cv_target_os_type="DragonFly" ;;
4059 llvm_cv_target_os_type="HP-UX" ;;
4061 llvm_cv_target_os_type="Interix" ;;
4063 llvm_cv_target_os_type="Linux" ;;
4065 llvm_cv_target_os_type="GNU" ;;
4067 llvm_cv_target_os_type="SunOS" ;;
4069 llvm_cv_target_os_type="AuroraUX" ;;
4071 llvm_cv_target_os_type="Win32" ;;
4073 llvm_cv_target_os_type="MingW" ;;
4075 llvm_cv_target_os_type="Haiku" ;;
4077 llvm_cv_target_os_type="RTEMS" ;;
4079 llvm_cv_target_os_type="NativeClient" ;;
4081 llvm_cv_target_os_type="Freestanding" ;;
4083 llvm_cv_target_os_type="Unknown" ;;
4086 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4087 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4089 if test "$llvm_cv_os_type" = "Unknown" ; then
4090 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4091 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4092 { (exit 1); exit 1; }; }
4097 HOST_OS=$llvm_cv_os_type
4099 TARGET_OS=$llvm_cv_target_os_type
4102 LINKALL=$llvm_cv_link_all_option
4104 NOLINKALL=$llvm_cv_no_link_all_option
4107 case $llvm_cv_platform_type in
4110 cat >>confdefs.h <<\_ACEOF
4111 #define LLVM_ON_UNIX 1
4121 cat >>confdefs.h <<\_ACEOF
4122 #define LLVM_ON_WIN32 1
4132 { echo "$as_me:$LINENO: checking target architecture" >&5
4133 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4134 if test "${llvm_cv_target_arch+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 i?86-*) llvm_cv_target_arch="x86" ;;
4139 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4140 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4141 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4142 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4143 arm*-*) llvm_cv_target_arch="ARM" ;;
4144 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4145 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4146 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4147 xcore-*) llvm_cv_target_arch="XCore" ;;
4148 msp430-*) llvm_cv_target_arch="MSP430" ;;
4149 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4150 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4151 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4152 *) llvm_cv_target_arch="Unknown" ;;
4155 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4156 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4158 if test "$llvm_cv_target_arch" = "Unknown" ; then
4159 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4160 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4163 case "$llvm_cv_target_arch" in
4164 x86) LLVM_NATIVE_ARCH="X86" ;;
4165 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4166 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4169 ARCH=$llvm_cv_target_arch
4171 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4175 i?86-*) host_arch="x86" ;;
4176 amd64-* | x86_64-*) host_arch="x86_64" ;;
4177 sparc*-*) host_arch="Sparc" ;;
4178 powerpc*-*) host_arch="PowerPC" ;;
4179 arm64*-*) host_arch="AArch64" ;;
4180 arm*-*) host_arch="ARM" ;;
4181 aarch64*-*) host_arch="AArch64" ;;
4182 mips-* | mips64-*) host_arch="Mips" ;;
4183 mipsel-* | mips64el-*) host_arch="Mips" ;;
4184 xcore-*) host_arch="XCore" ;;
4185 msp430-*) host_arch="MSP430" ;;
4186 hexagon-*) host_arch="Hexagon" ;;
4187 s390x-*) host_arch="SystemZ" ;;
4188 *) host_arch="Unknown" ;;
4191 if test "$host_arch" = "Unknown" ; then
4192 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4193 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4196 HOST_ARCH=$host_arch
4199 if test "$cross_compiling" = yes; then
4200 LLVM_CROSS_COMPILING=1
4203 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4204 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4205 if test "${ac_cv_build_exeext+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4209 ac_cv_build_exeext=.exe
4211 ac_build_prefix=${build_alias}-
4213 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4214 set dummy ${ac_build_prefix}gcc; ac_word=$2
4215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4217 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 if test -n "$BUILD_CC"; then
4221 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4230 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 BUILD_CC=$ac_cv_prog_BUILD_CC
4241 if test -n "$BUILD_CC"; then
4242 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4243 echo "${ECHO_T}$BUILD_CC" >&6; }
4245 { echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6; }
4250 if test -z "$BUILD_CC"; then
4251 # Extract the first word of "gcc", so it can be a program name with args.
4252 set dummy gcc; ac_word=$2
4253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 if test -n "$BUILD_CC"; then
4259 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 ac_cv_prog_BUILD_CC="gcc"
4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 BUILD_CC=$ac_cv_prog_BUILD_CC
4279 if test -n "$BUILD_CC"; then
4280 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4281 echo "${ECHO_T}$BUILD_CC" >&6; }
4283 { echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6; }
4288 if test -z "$BUILD_CC"; then
4289 # Extract the first word of "cc", so it can be a program name with args.
4290 set dummy cc; ac_word=$2
4291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4293 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 if test -n "$BUILD_CC"; then
4297 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4308 ac_prog_rejected=yes
4311 ac_cv_prog_BUILD_CC="cc"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 if test $ac_prog_rejected = yes; then
4320 # We found a bogon in the path, so make sure we never use it.
4321 set dummy $ac_cv_prog_BUILD_CC
4323 if test $# != 0; then
4324 # We chose a different compiler from the bogus one.
4325 # However, it has the same basename, so the bogon will be chosen
4326 # first if we set BUILD_CC to just the basename; use the full file name.
4328 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4333 BUILD_CC=$ac_cv_prog_BUILD_CC
4334 if test -n "$BUILD_CC"; then
4335 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4336 echo "${ECHO_T}$BUILD_CC" >&6; }
4338 { echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6; }
4345 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4346 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4347 { (exit 1); exit 1; }; }
4348 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4350 echo 'int main () { return 0; }' > conftest.$ac_ext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4353 (eval $ac_build_link) 2>&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; then
4357 for file in conftest.*; do
4359 *.c | *.o | *.obj | *.dSYM) ;;
4360 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4364 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4365 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4366 { (exit 1); exit 1; }; }
4369 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4374 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4375 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4376 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4377 ac_build_exeext=$BUILD_EXEEXT
4379 ac_build_prefix=${build_alias}-
4380 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4381 set dummy ${ac_build_prefix}g++; ac_word=$2
4382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4384 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 if test -n "$BUILD_CXX"; then
4388 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4408 if test -n "$BUILD_CXX"; then
4409 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4410 echo "${ECHO_T}$BUILD_CXX" >&6; }
4412 { echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6; }
4417 if test -z "$BUILD_CXX"; then
4418 # Extract the first word of "g++", so it can be a program name with args.
4419 set dummy g++; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 if test -n "$BUILD_CXX"; then
4426 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_BUILD_CXX="g++"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4446 if test -n "$BUILD_CXX"; then
4447 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4448 echo "${ECHO_T}$BUILD_CXX" >&6; }
4450 { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4455 if test -z "$BUILD_CXX"; then
4456 # Extract the first word of "c++", so it can be a program name with args.
4457 set dummy c++; ac_word=$2
4458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4460 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 if test -n "$BUILD_CXX"; then
4464 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4475 ac_prog_rejected=yes
4478 ac_cv_prog_BUILD_CXX="c++"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 if test $ac_prog_rejected = yes; then
4487 # We found a bogon in the path, so make sure we never use it.
4488 set dummy $ac_cv_prog_BUILD_CXX
4490 if test $# != 0; then
4491 # We chose a different compiler from the bogus one.
4492 # However, it has the same basename, so the bogon will be chosen
4493 # first if we set BUILD_CXX to just the basename; use the full file name.
4495 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4500 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4501 if test -n "$BUILD_CXX"; then
4502 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4503 echo "${ECHO_T}$BUILD_CXX" >&6; }
4505 { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4513 LLVM_CROSS_COMPILING=0
4517 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4528 # Check whether --enable-libcpp was given.
4529 if test "${enable_libcpp+set}" = set; then
4530 enableval=$enable_libcpp;
4535 case "$enableval" in
4536 yes) ENABLE_LIBCPP=1
4540 default) ENABLE_LIBCPP=0
4542 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4543 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4544 { (exit 1); exit 1; }; } ;;
4547 # Check whether --enable-compiler-version-checks was given.
4548 if test "${enable_compiler_version_checks+set}" = set; then
4549 enableval=$enable_compiler_version_checks;
4554 case "$enableval" in
4559 ac_cpp='$CXXCPP $CPPFLAGS'
4560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4564 case "$llvm_cv_cxx_compiler" in
4566 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4567 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4568 cat >conftest.$ac_ext <<_ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4575 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4576 #error This version of Clang is too old to build LLVM
4580 rm -f conftest.$ac_objext
4581 if { (ac_try="$ac_compile"
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4587 (eval "$ac_compile") 2>conftest.er1
4589 grep -v '^ *+' conftest.er1 >conftest.err
4591 cat conftest.err >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } &&
4594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4595 { (case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_try") 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; } &&
4604 { ac_try='test -s conftest.$ac_objext'
4605 { (case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_try") 2>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 { echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6; }
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4622 { { echo "$as_me:$LINENO: error:
4623 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4624 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4625 bypass these sanity checks." >&5
4626 echo "$as_me: error:
4627 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4628 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4629 bypass these sanity checks." >&2;}
4630 { (exit 1); exit 1; }; }
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 if test "$ENABLE_LIBCPP" -eq 0 ; then
4636 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4637 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4638 llvm_cv_old_cxxflags="$CXXFLAGS"
4639 CXXFLAGS="$CXXFLAGS -std=c++0x"
4640 cat >conftest.$ac_ext <<_ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4648 std::atomic<float> x(0.0f);
4649 int main() { return (float)x; }
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (ac_try="$ac_link"
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_link") 2>conftest.er1
4661 grep -v '^ *+' conftest.er1 >conftest.err
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4667 { (case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672 (eval "$ac_try") 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; } &&
4676 { ac_try='test -s conftest$ac_exeext'
4677 { (case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_try") 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 { echo "$as_me:$LINENO: result: yes" >&5
4687 echo "${ECHO_T}yes" >&6; }
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4694 { { echo "$as_me:$LINENO: error:
4695 We detected a missing feature in the standard C++ library that was known to be
4696 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4697 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4698 than 4.7. You will need to update your system and ensure Clang uses the newer
4701 If this error is incorrect or you need to force things to work, you may pass
4702 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4703 echo "$as_me: error:
4704 We detected a missing feature in the standard C++ library that was known to be
4705 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4706 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4707 than 4.7. You will need to update your system and ensure Clang uses the newer
4710 If this error is incorrect or you need to force things to work, you may pass
4711 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4712 { (exit 1); exit 1; }; }
4715 rm -f core conftest.err conftest.$ac_objext \
4716 conftest$ac_exeext conftest.$ac_ext
4717 CXXFLAGS="$llvm_cv_old_cxxflags"
4721 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4722 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4723 cat >conftest.$ac_ext <<_ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4730 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4731 #error This version of GCC is too old to build LLVM
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742 (eval "$ac_compile") 2>conftest.er1
4744 grep -v '^ *+' conftest.er1 >conftest.err
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4750 { (case "(($ac_try" in
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755 (eval "$ac_try") 2>&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; } &&
4759 { ac_try='test -s conftest.$ac_objext'
4760 { (case "(($ac_try" in
4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762 *) ac_try_echo=$ac_try;;
4764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765 (eval "$ac_try") 2>&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 { echo "$as_me:$LINENO: result: yes" >&5
4770 echo "${ECHO_T}yes" >&6; }
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4775 { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4777 { { echo "$as_me:$LINENO: error:
4778 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4779 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4780 bypass these sanity checks." >&5
4781 echo "$as_me: error:
4782 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4783 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4784 bypass these sanity checks." >&2;}
4785 { (exit 1); exit 1; }; }
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 ac_cpp='$CPP $CPPFLAGS'
4795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4801 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4802 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4803 { (exit 1); exit 1; }; }
4807 # Check whether --enable-cxx1y was given.
4808 if test "${enable_cxx1y+set}" = set; then
4809 enableval=$enable_cxx1y;
4814 case "$enableval" in
4819 default) ENABLE_CXX1Y=0
4821 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4822 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4823 { (exit 1); exit 1; }; } ;;
4826 # Check whether --enable-split-dwarf was given.
4827 if test "${enable_split_dwarf+set}" = set; then
4828 enableval=$enable_split_dwarf;
4833 case "$enableval" in
4834 yes) ENABLE_SPLIT_DWARF=1
4836 no) ENABLE_SPLIT_DWARF=0
4838 default) ENABLE_SPLIT_DWARF=0
4840 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4841 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4842 { (exit 1); exit 1; }; } ;;
4846 # Check whether --enable-clang-arcmt was given.
4847 if test "${enable_clang_arcmt+set}" = set; then
4848 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4853 case "$enableval" in
4854 yes) ENABLE_CLANG_ARCMT=1
4856 no) ENABLE_CLANG_ARCMT=0
4858 default) ENABLE_CLANG_ARCMT=1
4860 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4861 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4862 { (exit 1); exit 1; }; } ;;
4865 clang_plugin_support="yes"
4866 # Check whether --enable-clang-plugin-support was given.
4867 if test "${enable_clang_plugin_support+set}" = set; then
4868 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4873 case "$enableval" in
4874 yes) CLANG_PLUGIN_SUPPORT=1
4876 no) CLANG_PLUGIN_SUPPORT=0
4878 default) CLANG_PLUGIN_SUPPORT=1
4880 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4881 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4882 { (exit 1); exit 1; }; } ;;
4885 clang_static_analyzer="yes"
4886 # Check whether --enable-clang-static-analyzer was given.
4887 if test "${enable_clang_static_analyzer+set}" = set; then
4888 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4893 case "$enableval" in
4894 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4897 if test ${clang_arcmt} != "no" ; then
4898 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4899 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4900 { (exit 1); exit 1; }; }
4902 ENABLE_CLANG_STATIC_ANALYZER=0
4905 default) ENABLE_CLANG_STATIC_ANALYZER=1
4907 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4908 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4909 { (exit 1); exit 1; }; } ;;
4912 # Check whether --enable-optimized was given.
4913 if test "${enable_optimized+set}" = set; then
4914 enableval=$enable_optimized;
4919 if test ${enableval} = "no" ; then
4923 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4927 # Check whether --enable-profiling was given.
4928 if test "${enable_profiling+set}" = set; then
4929 enableval=$enable_profiling;
4934 if test ${enableval} = "no" ; then
4938 ENABLE_PROFILING=ENABLE_PROFILING=1
4942 # Check whether --enable-assertions was given.
4943 if test "${enable_assertions+set}" = set; then
4944 enableval=$enable_assertions;
4949 if test ${enableval} = "yes" ; then
4953 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4957 # Check whether --enable-werror was given.
4958 if test "${enable_werror+set}" = set; then
4959 enableval=$enable_werror;
4964 case "$enableval" in
4965 yes) ENABLE_WERROR=1
4969 default) ENABLE_WERROR=0
4971 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4972 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4973 { (exit 1); exit 1; }; } ;;
4976 # Check whether --enable-expensive-checks was given.
4977 if test "${enable_expensive_checks+set}" = set; then
4978 enableval=$enable_expensive_checks;
4983 if test ${enableval} = "yes" ; then
4984 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4986 EXPENSIVE_CHECKS=yes
4989 ENABLE_EXPENSIVE_CHECKS=
4995 # Check whether --enable-debug-runtime was given.
4996 if test "${enable_debug_runtime+set}" = set; then
4997 enableval=$enable_debug_runtime;
5002 if test ${enableval} = "no" ; then
5006 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5010 # Check whether --enable-debug-symbols was given.
5011 if test "${enable_debug_symbols+set}" = set; then
5012 enableval=$enable_debug_symbols;
5017 if test ${enableval} = "no" ; then
5021 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5025 # Check whether --enable-keep-symbols was given.
5026 if test "${enable_keep_symbols+set}" = set; then
5027 enableval=$enable_keep_symbols;
5032 if test ${enableval} = "no" ; then
5036 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5040 # Check whether --enable-jit was given.
5041 if test "${enable_jit+set}" = set; then
5042 enableval=$enable_jit;
5047 if test ${enableval} = "no"
5052 case "$llvm_cv_target_arch" in
5053 x86) TARGET_HAS_JIT=1
5055 Sparc) TARGET_HAS_JIT=0
5057 PowerPC) TARGET_HAS_JIT=1
5059 x86_64) TARGET_HAS_JIT=1
5061 ARM) TARGET_HAS_JIT=1
5063 Mips) TARGET_HAS_JIT=1
5065 XCore) TARGET_HAS_JIT=0
5067 MSP430) TARGET_HAS_JIT=0
5069 Hexagon) TARGET_HAS_JIT=0
5071 NVPTX) TARGET_HAS_JIT=0
5073 SystemZ) TARGET_HAS_JIT=1
5080 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5081 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5084 # Check whether --enable-docs was given.
5085 if test "${enable_docs+set}" = set; then
5086 enableval=$enable_docs;
5091 case "$enableval" in
5096 default) ENABLE_DOCS=1
5098 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5099 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5100 { (exit 1); exit 1; }; } ;;
5103 # Check whether --enable-doxygen was given.
5104 if test "${enable_doxygen+set}" = set; then
5105 enableval=$enable_doxygen;
5110 case "$enableval" in
5111 yes) ENABLE_DOXYGEN=1
5113 no) ENABLE_DOXYGEN=0
5115 default) ENABLE_DOXYGEN=0
5117 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5118 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5119 { (exit 1); exit 1; }; } ;;
5122 # Check whether --enable-threads was given.
5123 if test "${enable_threads+set}" = set; then
5124 enableval=$enable_threads;
5129 case "$enableval" in
5130 yes) LLVM_ENABLE_THREADS=1
5132 no) LLVM_ENABLE_THREADS=0
5134 default) LLVM_ENABLE_THREADS=1
5136 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5137 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5138 { (exit 1); exit 1; }; } ;;
5141 cat >>confdefs.h <<_ACEOF
5142 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5146 # Check whether --enable-pthreads was given.
5147 if test "${enable_pthreads+set}" = set; then
5148 enableval=$enable_pthreads;
5153 case "$enableval" in
5154 yes) ENABLE_PTHREADS=1
5156 no) ENABLE_PTHREADS=0
5158 default) ENABLE_PTHREADS=1
5160 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5161 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5162 { (exit 1); exit 1; }; } ;;
5165 # Check whether --enable-zlib was given.
5166 if test "${enable_zlib+set}" = set; then
5167 enableval=$enable_zlib;
5172 case "$enableval" in
5173 yes) LLVM_ENABLE_ZLIB=1
5175 no) LLVM_ENABLE_ZLIB=0
5177 default) LLVM_ENABLE_ZLIB=1
5179 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5181 { (exit 1); exit 1; }; } ;;
5184 cat >>confdefs.h <<_ACEOF
5185 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5189 # Check whether --enable-pic was given.
5190 if test "${enable_pic+set}" = set; then
5191 enableval=$enable_pic;
5196 case "$enableval" in
5201 default) ENABLE_PIC=1
5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5205 { (exit 1); exit 1; }; } ;;
5208 cat >>confdefs.h <<_ACEOF
5209 #define ENABLE_PIC $ENABLE_PIC
5213 # Check whether --enable-shared was given.
5214 if test "${enable_shared+set}" = set; then
5215 enableval=$enable_shared;
5220 case "$enableval" in
5221 yes) ENABLE_SHARED=1
5225 default) ENABLE_SHARED=0
5227 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5228 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5229 { (exit 1); exit 1; }; } ;;
5232 # Check whether --enable-embed-stdcxx was given.
5233 if test "${enable_embed_stdcxx+set}" = set; then
5234 enableval=$enable_embed_stdcxx;
5239 case "$enableval" in
5240 yes) ENABLE_EMBED_STDCXX=1
5242 no) ENABLE_EMBED_STDCXX=0
5244 default) ENABLE_EMBED_STDCXX=0
5246 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5248 { (exit 1); exit 1; }; } ;;
5251 # Check whether --enable-timestamps was given.
5252 if test "${enable_timestamps+set}" = set; then
5253 enableval=$enable_timestamps;
5258 case "$enableval" in
5259 yes) ENABLE_TIMESTAMPS=1
5261 no) ENABLE_TIMESTAMPS=0
5263 default) ENABLE_TIMESTAMPS=1
5265 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5266 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5267 { (exit 1); exit 1; }; } ;;
5270 cat >>confdefs.h <<_ACEOF
5271 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5275 # Check whether --enable-backtraces was given.
5276 if test "${enable_backtraces+set}" = set; then
5277 enableval=$enable_backtraces; case "$enableval" in
5278 yes) llvm_cv_enable_backtraces="yes" ;;
5279 no) llvm_cv_enable_backtraces="no" ;;
5280 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5281 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5282 { (exit 1); exit 1; }; } ;;
5285 llvm_cv_enable_backtraces="yes"
5288 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5290 cat >>confdefs.h <<\_ACEOF
5291 #define ENABLE_BACKTRACES 1
5296 # Check whether --enable-crash-overrides was given.
5297 if test "${enable_crash_overrides+set}" = set; then
5298 enableval=$enable_crash_overrides; case "$enableval" in
5299 yes) llvm_cv_enable_crash_overrides="yes" ;;
5300 no) llvm_cv_enable_crash_overrides="no" ;;
5301 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5302 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5303 { (exit 1); exit 1; }; } ;;
5306 llvm_cv_enable_crash_overrides="yes"
5309 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5311 cat >>confdefs.h <<\_ACEOF
5312 #define ENABLE_CRASH_OVERRIDES 1
5317 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5318 ALL_TARGETS=$ALL_TARGETS
5322 # Check whether --enable-targets was given.
5323 if test "${enable_targets+set}" = set; then
5324 enableval=$enable_targets;
5329 if test "$enableval" = host-only ; then
5332 case "$enableval" in
5333 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5334 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5336 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5338 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5339 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5340 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5341 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5342 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5343 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5344 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5345 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5346 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5347 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5348 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5349 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5350 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5351 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5352 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5353 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5354 host) case "$llvm_cv_target_arch" in
5355 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5356 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5357 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5358 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5359 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5360 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5361 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5362 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5363 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5364 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5365 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5366 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5367 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5368 echo "$as_me: error: Can not set target to build" >&2;}
5369 { (exit 1); exit 1; }; } ;;
5371 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5372 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5373 { (exit 1); exit 1; }; } ;;
5379 # Check whether --enable-experimental-targets was given.
5380 if test "${enable_experimental_targets+set}" = set; then
5381 enableval=$enable_experimental_targets;
5387 if test ${enableval} != "disable"
5389 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5392 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5395 for a_target in $TARGETS_TO_BUILD; do
5396 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5398 cat >>confdefs.h <<_ACEOF
5399 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5402 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5403 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5404 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5405 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5406 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5407 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5409 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5410 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5413 cat >>confdefs.h <<_ACEOF
5414 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5428 cat >>confdefs.h <<_ACEOF
5429 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5432 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5434 cat >>confdefs.h <<_ACEOF
5435 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5439 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5441 cat >>confdefs.h <<_ACEOF
5442 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5449 LLVM_ENUM_TARGETS=""
5450 LLVM_ENUM_ASM_PRINTERS=""
5451 LLVM_ENUM_ASM_PARSERS=""
5452 LLVM_ENUM_DISASSEMBLERS=""
5453 for target_to_build in $TARGETS_TO_BUILD; do
5454 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5455 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5456 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5458 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5459 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5461 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5462 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5471 # Check whether --with-optimize-option was given.
5472 if test "${with_optimize_option+set}" = set; then
5473 withval=$with_optimize_option;
5478 { echo "$as_me:$LINENO: checking optimization flags" >&5
5479 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5482 case "$llvm_cv_os_type" in
5483 FreeBSD) optimize_option=-O2 ;;
5484 MingW) optimize_option=-O2 ;;
5485 *) optimize_option=-O3 ;;
5487 *) optimize_option="$withval" ;;
5489 OPTIMIZE_OPTION=$optimize_option
5491 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5492 echo "${ECHO_T}$optimize_option" >&6; }
5495 # Check whether --with-extra-options was given.
5496 if test "${with_extra_options+set}" = set; then
5497 withval=$with_extra_options;
5503 default) EXTRA_OPTIONS= ;;
5504 *) EXTRA_OPTIONS=$withval ;;
5506 EXTRA_OPTIONS=$EXTRA_OPTIONS
5510 # Check whether --with-extra-ld-options was given.
5511 if test "${with_extra_ld_options+set}" = set; then
5512 withval=$with_extra_ld_options;
5518 default) EXTRA_LD_OPTIONS= ;;
5519 *) EXTRA_LD_OPTIONS=$withval ;;
5521 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5524 # Check whether --enable-bindings was given.
5525 if test "${enable_bindings+set}" = set; then
5526 enableval=$enable_bindings;
5531 BINDINGS_TO_BUILD=""
5532 case "$enableval" in
5533 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5534 all ) BINDINGS_TO_BUILD="ocaml" ;;
5535 none | no) BINDINGS_TO_BUILD="" ;;
5536 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5537 case "$a_binding" in
5538 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5539 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5540 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5541 { (exit 1); exit 1; }; } ;;
5548 # Check whether --with-ocaml-libdir was given.
5549 if test "${with_ocaml_libdir+set}" = set; then
5550 withval=$with_ocaml_libdir;
5556 auto) with_ocaml_libdir="$withval" ;;
5557 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5558 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5559 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5560 { (exit 1); exit 1; }; } ;;
5564 # Check whether --with-clang-srcdir was given.
5565 if test "${with_clang_srcdir+set}" = set; then
5566 withval=$with_clang_srcdir;
5572 -) clang_src_root="" ;;
5573 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5574 *) clang_src_root="$ac_pwd/$withval" ;;
5576 CLANG_SRC_ROOT=$clang_src_root
5580 # Check whether --with-clang-resource-dir was given.
5581 if test "${with_clang_resource_dir+set}" = set; then
5582 withval=$with_clang_resource_dir;
5588 cat >>confdefs.h <<_ACEOF
5589 #define CLANG_RESOURCE_DIR "$withval"
5594 # Check whether --with-c-include-dirs was given.
5595 if test "${with_c_include_dirs+set}" = set; then
5596 withval=$with_c_include_dirs;
5602 cat >>confdefs.h <<_ACEOF
5603 #define C_INCLUDE_DIRS "$withval"
5607 # Clang normally uses the system c++ headers and libraries. With this option,
5608 # clang will use the ones provided by a gcc installation instead. This option should
5609 # be passed the same value that was used with --prefix when configuring gcc.
5611 # Check whether --with-gcc-toolchain was given.
5612 if test "${with_gcc_toolchain+set}" = set; then
5613 withval=$with_gcc_toolchain;
5619 cat >>confdefs.h <<_ACEOF
5620 #define GCC_INSTALL_PREFIX "$withval"
5625 # Check whether --with-default-sysroot was given.
5626 if test "${with_default_sysroot+set}" = set; then
5627 withval=$with_default_sysroot;
5633 cat >>confdefs.h <<_ACEOF
5634 #define DEFAULT_SYSROOT "$withval"
5639 # Check whether --with-binutils-include was given.
5640 if test "${with_binutils_include+set}" = set; then
5641 withval=$with_binutils_include;
5647 default) WITH_BINUTILS_INCDIR=default ;;
5648 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5649 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5650 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5651 { (exit 1); exit 1; }; } ;;
5653 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5654 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5656 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5657 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5658 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5659 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5660 { (exit 1); exit 1; }; };
5665 # Check whether --with-bug-report-url was given.
5666 if test "${with_bug_report_url+set}" = set; then
5667 withval=$with_bug_report_url;
5669 withval="http://llvm.org/bugs/"
5673 cat >>confdefs.h <<_ACEOF
5674 #define BUG_REPORT_URL "$withval"
5678 # Check whether --enable-terminfo was given.
5679 if test "${enable_terminfo+set}" = set; then
5680 enableval=$enable_terminfo; case "$enableval" in
5681 yes) llvm_cv_enable_terminfo="yes" ;;
5682 no) llvm_cv_enable_terminfo="no" ;;
5683 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5684 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5685 { (exit 1); exit 1; }; } ;;
5688 llvm_cv_enable_terminfo="yes"
5691 case "$llvm_cv_enable_terminfo" in
5692 yes) ENABLE_TERMINFO=1
5694 no) ENABLE_TERMINFO=0
5698 # Check whether --enable-libedit was given.
5699 if test "${enable_libedit+set}" = set; then
5700 enableval=$enable_libedit; case "$enableval" in
5701 yes) llvm_cv_enable_libedit="yes" ;;
5702 no) llvm_cv_enable_libedit="no" ;;
5703 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5704 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5705 { (exit 1); exit 1; }; } ;;
5708 llvm_cv_enable_libedit="yes"
5712 # Check whether --enable-libffi was given.
5713 if test "${enable_libffi+set}" = set; then
5714 enableval=$enable_libffi; case "$enableval" in
5715 yes) llvm_cv_enable_libffi="yes" ;;
5716 no) llvm_cv_enable_libffi="no" ;;
5717 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5718 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5719 { (exit 1); exit 1; }; } ;;
5722 llvm_cv_enable_libffi=no
5727 # Check whether --with-internal-prefix was given.
5728 if test "${with_internal_prefix+set}" = set; then
5729 withval=$with_internal_prefix;
5734 INTERNAL_PREFIX=$withval
5738 { echo "$as_me:$LINENO: checking for GNU make" >&5
5739 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5740 if test "${llvm_cv_gnu_make_command+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 llvm_cv_gnu_make_command=''
5744 for a in "$MAKE" make gmake gnumake ; do
5745 if test -z "$a" ; then continue ; fi ;
5746 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5748 llvm_cv_gnu_make_command=$a ;
5753 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5754 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5755 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5759 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5760 echo "${ECHO_T}\"Not found\"" >&6; };
5764 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5765 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5767 if test "$LN_S" = "ln -s"; then
5768 { echo "$as_me:$LINENO: result: yes" >&5
5769 echo "${ECHO_T}yes" >&6; }
5771 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5772 echo "${ECHO_T}no, using $LN_S" >&6; }
5775 # Extract the first word of "nm", so it can be a program name with args.
5776 set dummy nm; ac_word=$2
5777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5779 if test "${ac_cv_path_NM+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 test -z "$as_dir" && as_dir=.
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5794 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5807 if test -n "$NM"; then
5808 { echo "$as_me:$LINENO: result: $NM" >&5
5809 echo "${ECHO_T}$NM" >&6; }
5811 { echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6; }
5816 # Extract the first word of "cmp", so it can be a program name with args.
5817 set dummy cmp; ac_word=$2
5818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5820 if test "${ac_cv_path_CMP+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5835 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5848 if test -n "$CMP"; then
5849 { echo "$as_me:$LINENO: result: $CMP" >&5
5850 echo "${ECHO_T}$CMP" >&6; }
5852 { echo "$as_me:$LINENO: result: no" >&5
5853 echo "${ECHO_T}no" >&6; }
5857 # Extract the first word of "cp", so it can be a program name with args.
5858 set dummy cp; ac_word=$2
5859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5861 if test "${ac_cv_path_CP+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5889 if test -n "$CP"; then
5890 { echo "$as_me:$LINENO: result: $CP" >&5
5891 echo "${ECHO_T}$CP" >&6; }
5893 { echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6; }
5898 # Extract the first word of "date", so it can be a program name with args.
5899 set dummy date; ac_word=$2
5900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5902 if test "${ac_cv_path_DATE+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5917 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5929 DATE=$ac_cv_path_DATE
5930 if test -n "$DATE"; then
5931 { echo "$as_me:$LINENO: result: $DATE" >&5
5932 echo "${ECHO_T}$DATE" >&6; }
5934 { echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6; }
5939 # Extract the first word of "find", so it can be a program name with args.
5940 set dummy find; ac_word=$2
5941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943 if test "${ac_cv_path_FIND+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5970 FIND=$ac_cv_path_FIND
5971 if test -n "$FIND"; then
5972 { echo "$as_me:$LINENO: result: $FIND" >&5
5973 echo "${ECHO_T}$FIND" >&6; }
5975 { echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6; }
5980 # Extract the first word of "grep", so it can be a program name with args.
5981 set dummy grep; ac_word=$2
5982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5984 if test "${ac_cv_path_GREP+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5999 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6011 GREP=$ac_cv_path_GREP
6012 if test -n "$GREP"; then
6013 { echo "$as_me:$LINENO: result: $GREP" >&5
6014 echo "${ECHO_T}$GREP" >&6; }
6016 { echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6; }
6021 # Extract the first word of "mkdir", so it can be a program name with args.
6022 set dummy mkdir; ac_word=$2
6023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6025 if test "${ac_cv_path_MKDIR+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6040 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6052 MKDIR=$ac_cv_path_MKDIR
6053 if test -n "$MKDIR"; then
6054 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6055 echo "${ECHO_T}$MKDIR" >&6; }
6057 { echo "$as_me:$LINENO: result: no" >&5
6058 echo "${ECHO_T}no" >&6; }
6062 # Extract the first word of "mv", so it can be a program name with args.
6063 set dummy mv; ac_word=$2
6064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6066 if test "${ac_cv_path_MV+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6081 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6094 if test -n "$MV"; then
6095 { echo "$as_me:$LINENO: result: $MV" >&5
6096 echo "${ECHO_T}$MV" >&6; }
6098 { echo "$as_me:$LINENO: result: no" >&5
6099 echo "${ECHO_T}no" >&6; }
6103 if test -n "$ac_tool_prefix"; then
6104 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6105 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_prog_RANLIB+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 if test -n "$RANLIB"; then
6112 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6121 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 RANLIB=$ac_cv_prog_RANLIB
6132 if test -n "$RANLIB"; then
6133 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6134 echo "${ECHO_T}$RANLIB" >&6; }
6136 { echo "$as_me:$LINENO: result: no" >&5
6137 echo "${ECHO_T}no" >&6; }
6142 if test -z "$ac_cv_prog_RANLIB"; then
6143 ac_ct_RANLIB=$RANLIB
6144 # Extract the first word of "ranlib", so it can be a program name with args.
6145 set dummy ranlib; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 if test -n "$ac_ct_RANLIB"; then
6152 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6161 ac_cv_prog_ac_ct_RANLIB="ranlib"
6162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6172 if test -n "$ac_ct_RANLIB"; then
6173 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6174 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6176 { echo "$as_me:$LINENO: result: no" >&5
6177 echo "${ECHO_T}no" >&6; }
6180 if test "x$ac_ct_RANLIB" = x; then
6183 case $cross_compiling:$ac_tool_warned in
6185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6186 whose name does not start with the host triplet. If you think this
6187 configuration is useful to you, please write to autoconf@gnu.org." >&5
6188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6189 whose name does not start with the host triplet. If you think this
6190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6191 ac_tool_warned=yes ;;
6193 RANLIB=$ac_ct_RANLIB
6196 RANLIB="$ac_cv_prog_RANLIB"
6199 if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6201 set dummy ${ac_tool_prefix}ar; ac_word=$2
6202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6204 if test "${ac_cv_prog_AR+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 if test -n "$AR"; then
6208 ac_cv_prog_AR="$AR" # Let the user override the test.
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_prog_AR="${ac_tool_prefix}ar"
6218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 if test -n "$AR"; then
6229 { echo "$as_me:$LINENO: result: $AR" >&5
6230 echo "${ECHO_T}$AR" >&6; }
6232 { echo "$as_me:$LINENO: result: no" >&5
6233 echo "${ECHO_T}no" >&6; }
6238 if test -z "$ac_cv_prog_AR"; then
6240 # Extract the first word of "ar", so it can be a program name with args.
6241 set dummy ar; ac_word=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 if test -n "$ac_ct_AR"; then
6248 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_ac_ct_AR="ar"
6258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6268 if test -n "$ac_ct_AR"; then
6269 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6270 echo "${ECHO_T}$ac_ct_AR" >&6; }
6272 { echo "$as_me:$LINENO: result: no" >&5
6273 echo "${ECHO_T}no" >&6; }
6276 if test "x$ac_ct_AR" = x; then
6279 case $cross_compiling:$ac_tool_warned in
6281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6282 whose name does not start with the host triplet. If you think this
6283 configuration is useful to you, please write to autoconf@gnu.org." >&5
6284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6285 whose name does not start with the host triplet. If you think this
6286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6287 ac_tool_warned=yes ;;
6295 # Extract the first word of "rm", so it can be a program name with args.
6296 set dummy rm; ac_word=$2
6297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6299 if test "${ac_cv_path_RM+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6327 if test -n "$RM"; then
6328 { echo "$as_me:$LINENO: result: $RM" >&5
6329 echo "${ECHO_T}$RM" >&6; }
6331 { echo "$as_me:$LINENO: result: no" >&5
6332 echo "${ECHO_T}no" >&6; }
6336 # Extract the first word of "sed", so it can be a program name with args.
6337 set dummy sed; ac_word=$2
6338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6340 if test "${ac_cv_path_SED+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6368 if test -n "$SED"; then
6369 { echo "$as_me:$LINENO: result: $SED" >&5
6370 echo "${ECHO_T}$SED" >&6; }
6372 { echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6; }
6377 # Extract the first word of "tar", so it can be a program name with args.
6378 set dummy tar; ac_word=$2
6379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6381 if test "${ac_cv_path_TAR+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6409 if test -n "$TAR"; then
6410 { echo "$as_me:$LINENO: result: $TAR" >&5
6411 echo "${ECHO_T}$TAR" >&6; }
6413 { echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6; }
6418 # Extract the first word of "pwd", so it can be a program name with args.
6419 set dummy pwd; ac_word=$2
6420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6422 if test "${ac_cv_path_BINPWD+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6437 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6449 BINPWD=$ac_cv_path_BINPWD
6450 if test -n "$BINPWD"; then
6451 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6452 echo "${ECHO_T}$BINPWD" >&6; }
6454 { echo "$as_me:$LINENO: result: no" >&5
6455 echo "${ECHO_T}no" >&6; }
6460 # Extract the first word of "dot", so it can be a program name with args.
6461 set dummy dot; ac_word=$2
6462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6464 if test "${ac_cv_path_DOT+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6479 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6492 if test -n "$DOT"; then
6493 { echo "$as_me:$LINENO: result: $DOT" >&5
6494 echo "${ECHO_T}$DOT" >&6; }
6496 { echo "$as_me:$LINENO: result: no" >&5
6497 echo "${ECHO_T}no" >&6; }
6501 if test "$DOT" != "echo dot" ; then
6503 cat >>confdefs.h <<\_ACEOF
6507 if test "$llvm_cv_os_type" = "MingW" ; then
6508 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6511 cat >>confdefs.h <<_ACEOF
6512 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6517 # Find a good install program. We prefer a C program (faster),
6518 # so one script is as good as another. But avoid the broken or
6519 # incompatible versions:
6520 # SysV /etc/install, /usr/sbin/install
6521 # SunOS /usr/etc/install
6522 # IRIX /sbin/install
6524 # AmigaOS /C/install, which installs bootblocks on floppy discs
6525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6528 # OS/2's system install, which has a completely different semantic
6529 # ./install, which can be erroneously created by make from ./install.sh.
6530 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6531 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6532 if test -z "$INSTALL"; then
6533 if test "${ac_cv_path_install+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 test -z "$as_dir" && as_dir=.
6541 # Account for people who put trailing slashes in PATH elements.
6543 ./ | .// | /cC/* | \
6544 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6545 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6548 # OSF1 and SCO ODT 3.0 have their own names for install.
6549 # Don't use installbsd from OSF since it installs stuff as root
6551 for ac_prog in ginstall scoinst install; do
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6554 if test $ac_prog = install &&
6555 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6556 # AIX install. It has an incompatible calling convention.
6558 elif test $ac_prog = install &&
6559 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6560 # program-specific install script used by HP pwplus--don't use.
6563 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6576 if test "${ac_cv_path_install+set}" = set; then
6577 INSTALL=$ac_cv_path_install
6579 # As a last resort, use the slow shell script. Don't cache a
6580 # value for INSTALL within a source directory, because that will
6581 # break other packages using the cache if that directory is
6582 # removed, or if the value is a relative name.
6583 INSTALL=$ac_install_sh
6586 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6587 echo "${ECHO_T}$INSTALL" >&6; }
6589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6590 # It thinks the first close brace ends the variable substitution.
6591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6598 [\\/$]* | ?:[\\/]* ) ;;
6599 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6602 # Extract the first word of "bzip2", so it can be a program name with args.
6603 set dummy bzip2; ac_word=$2
6604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6606 if test "${ac_cv_path_BZIP2+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 BZIP2=$ac_cv_path_BZIP2
6633 if test -n "$BZIP2"; then
6634 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6635 echo "${ECHO_T}$BZIP2" >&6; }
6637 { echo "$as_me:$LINENO: result: no" >&5
6638 echo "${ECHO_T}no" >&6; }
6642 # Extract the first word of "cat", so it can be a program name with args.
6643 set dummy cat; ac_word=$2
6644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6646 if test "${ac_cv_path_CAT+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 if test -n "$CAT"; then
6674 { echo "$as_me:$LINENO: result: $CAT" >&5
6675 echo "${ECHO_T}$CAT" >&6; }
6677 { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6682 # Extract the first word of "doxygen", so it can be a program name with args.
6683 set dummy doxygen; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 DOXYGEN=$ac_cv_path_DOXYGEN
6713 if test -n "$DOXYGEN"; then
6714 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6715 echo "${ECHO_T}$DOXYGEN" >&6; }
6717 { echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6; }
6722 # Extract the first word of "groff", so it can be a program name with args.
6723 set dummy groff; ac_word=$2
6724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726 if test "${ac_cv_path_GROFF+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 GROFF=$ac_cv_path_GROFF
6753 if test -n "$GROFF"; then
6754 { echo "$as_me:$LINENO: result: $GROFF" >&5
6755 echo "${ECHO_T}$GROFF" >&6; }
6757 { echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6; }
6762 # Extract the first word of "gzip", so it can be a program name with args.
6763 set dummy gzip; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 GZIPBIN=$ac_cv_path_GZIPBIN
6793 if test -n "$GZIPBIN"; then
6794 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6795 echo "${ECHO_T}$GZIPBIN" >&6; }
6797 { echo "$as_me:$LINENO: result: no" >&5
6798 echo "${ECHO_T}no" >&6; }
6802 # Extract the first word of "pdfroff", so it can be a program name with args.
6803 set dummy pdfroff; ac_word=$2
6804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806 if test "${ac_cv_path_PDFROFF+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 PDFROFF=$ac_cv_path_PDFROFF
6833 if test -n "$PDFROFF"; then
6834 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6835 echo "${ECHO_T}$PDFROFF" >&6; }
6837 { echo "$as_me:$LINENO: result: no" >&5
6838 echo "${ECHO_T}no" >&6; }
6842 # Extract the first word of "zip", so it can be a program name with args.
6843 set dummy zip; ac_word=$2
6844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846 if test "${ac_cv_path_ZIP+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 if test -n "$ZIP"; then
6874 { echo "$as_me:$LINENO: result: $ZIP" >&5
6875 echo "${ECHO_T}$ZIP" >&6; }
6877 { echo "$as_me:$LINENO: result: no" >&5
6878 echo "${ECHO_T}no" >&6; }
6882 for ac_prog in ocamlc
6884 # Extract the first word of "$ac_prog", so it can be a program name with args.
6885 set dummy $ac_prog; ac_word=$2
6886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6888 if test "${ac_cv_path_OCAMLC+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6903 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
6904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 OCAMLC=$ac_cv_path_OCAMLC
6915 if test -n "$OCAMLC"; then
6916 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
6917 echo "${ECHO_T}$OCAMLC" >&6; }
6919 { echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6; }
6924 test -n "$OCAMLC" && break
6927 for ac_prog in ocamlopt
6929 # Extract the first word of "$ac_prog", so it can be a program name with args.
6930 set dummy $ac_prog; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
6949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 OCAMLOPT=$ac_cv_path_OCAMLOPT
6960 if test -n "$OCAMLOPT"; then
6961 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
6962 echo "${ECHO_T}$OCAMLOPT" >&6; }
6964 { echo "$as_me:$LINENO: result: no" >&5
6965 echo "${ECHO_T}no" >&6; }
6969 test -n "$OCAMLOPT" && break
6972 for ac_prog in ocamldep
6974 # Extract the first word of "$ac_prog", so it can be a program name with args.
6975 set dummy $ac_prog; ac_word=$2
6976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6993 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
6994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 OCAMLDEP=$ac_cv_path_OCAMLDEP
7005 if test -n "$OCAMLDEP"; then
7006 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7007 echo "${ECHO_T}$OCAMLDEP" >&6; }
7009 { echo "$as_me:$LINENO: result: no" >&5
7010 echo "${ECHO_T}no" >&6; }
7014 test -n "$OCAMLDEP" && break
7017 for ac_prog in ocamldoc
7019 # Extract the first word of "$ac_prog", so it can be a program name with args.
7020 set dummy $ac_prog; ac_word=$2
7021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 OCAMLDOC=$ac_cv_path_OCAMLDOC
7050 if test -n "$OCAMLDOC"; then
7051 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7052 echo "${ECHO_T}$OCAMLDOC" >&6; }
7054 { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7059 test -n "$OCAMLDOC" && break
7062 for ac_prog in gas as
7064 # Extract the first word of "$ac_prog", so it can be a program name with args.
7065 set dummy $ac_prog; ac_word=$2
7066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7068 if test "${ac_cv_path_GAS+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 if test -n "$GAS"; then
7096 { echo "$as_me:$LINENO: result: $GAS" >&5
7097 echo "${ECHO_T}$GAS" >&6; }
7099 { echo "$as_me:$LINENO: result: no" >&5
7100 echo "${ECHO_T}no" >&6; }
7104 test -n "$GAS" && break
7108 { echo "$as_me:$LINENO: checking for linker version" >&5
7109 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7110 if test "${llvm_cv_link_version+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7117 if (echo "$version_string" | grep -q "ld64"); then
7118 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7120 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7124 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7125 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7127 cat >>confdefs.h <<_ACEOF
7128 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7134 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7135 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7136 if test "${llvm_cv_link_use_r+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 ac_cpp='$CPP $CPPFLAGS'
7141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7146 CFLAGS="$CFLAGS -Wl,-R."
7147 cat >conftest.$ac_ext <<_ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7162 rm -f conftest.$ac_objext conftest$ac_exeext
7163 if { (ac_try="$ac_link"
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7169 (eval "$ac_link") 2>conftest.er1
7171 grep -v '^ *+' conftest.er1 >conftest.err
7173 cat conftest.err >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } &&
7176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7177 { (case "(($ac_try" in
7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182 (eval "$ac_try") 2>&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try='test -s conftest$ac_exeext'
7187 { (case "(($ac_try" in
7188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189 *) ac_try_echo=$ac_try;;
7191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192 (eval "$ac_try") 2>&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 llvm_cv_link_use_r=yes
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7201 llvm_cv_link_use_r=no
7204 rm -f core conftest.err conftest.$ac_objext \
7205 conftest$ac_exeext conftest.$ac_ext
7208 ac_cpp='$CPP $CPPFLAGS'
7209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7215 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7216 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7217 if test "$llvm_cv_link_use_r" = yes ; then
7219 cat >>confdefs.h <<\_ACEOF
7220 #define HAVE_LINK_R 1
7226 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7227 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7228 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 ac_cpp='$CPP $CPPFLAGS'
7233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7238 CFLAGS="$CFLAGS -rdynamic"
7239 cat >conftest.$ac_ext <<_ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7254 rm -f conftest.$ac_objext conftest$ac_exeext
7255 if { (ac_try="$ac_link"
7257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258 *) ac_try_echo=$ac_try;;
7260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261 (eval "$ac_link") 2>conftest.er1
7263 grep -v '^ *+' conftest.er1 >conftest.err
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7269 { (case "(($ac_try" in
7270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271 *) ac_try_echo=$ac_try;;
7273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274 (eval "$ac_try") 2>&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; } &&
7278 { ac_try='test -s conftest$ac_exeext'
7279 { (case "(($ac_try" in
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_try") 2>&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7288 llvm_cv_link_use_export_dynamic=yes
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293 llvm_cv_link_use_export_dynamic=no
7296 rm -f core conftest.err conftest.$ac_objext \
7297 conftest$ac_exeext conftest.$ac_ext
7300 ac_cpp='$CPP $CPPFLAGS'
7301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7307 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7308 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7309 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7311 cat >>confdefs.h <<\_ACEOF
7312 #define HAVE_LINK_EXPORT_DYNAMIC 1
7318 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7319 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7320 if test "${llvm_cv_link_use_version_script+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 ac_cpp='$CPP $CPPFLAGS'
7325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7331 # The following code is from the autoconf manual,
7332 # "11.13: Limitations of Usual Tools".
7333 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7334 # Use mktemp if possible; otherwise fall back on mkdir,
7335 # with $RANDOM to make collisions less likely.
7339 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7341 test -n "$tmp" && test -d "$tmp"
7343 tmp=$TMPDIR/foo$$-$RANDOM
7344 (umask 077 && mkdir "$tmp")
7347 echo "{" > "$tmp/export.map"
7348 echo " global: main;" >> "$tmp/export.map"
7349 echo " local: *;" >> "$tmp/export.map"
7350 echo "};" >> "$tmp/export.map"
7352 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7353 cat >conftest.$ac_ext <<_ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7368 rm -f conftest.$ac_objext conftest$ac_exeext
7369 if { (ac_try="$ac_link"
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7375 (eval "$ac_link") 2>conftest.er1
7377 grep -v '^ *+' conftest.er1 >conftest.err
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
7382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7383 { (case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_try") 2>&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; } &&
7392 { ac_try='test -s conftest$ac_exeext'
7393 { (case "(($ac_try" in
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_try") 2>&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }; }; then
7402 llvm_cv_link_use_version_script=yes
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7407 llvm_cv_link_use_version_script=no
7410 rm -f core conftest.err conftest.$ac_objext \
7411 conftest$ac_exeext conftest.$ac_ext
7412 rm "$tmp/export.map"
7416 ac_cpp='$CPP $CPPFLAGS'
7417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7423 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7424 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7425 if test "$llvm_cv_link_use_version_script" = yes ; then
7426 HAVE_LINK_VERSION_SCRIPT=1
7432 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7433 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7434 if test "${ac_cv_path_GREP+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 # Extract the first word of "grep ggrep" to use in msg output
7438 if test -z "$GREP"; then
7439 set dummy grep ggrep; ac_prog_name=$2
7440 if test "${ac_cv_path_GREP+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 ac_path_GREP_found=false
7444 # Loop through the user's path and test for each of PROGNAME-LIST
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7449 test -z "$as_dir" && as_dir=.
7450 for ac_prog in grep ggrep; do
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7453 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7454 # Check for GNU ac_path_GREP and select it if it is found.
7455 # Check for GNU $ac_path_GREP
7456 case `"$ac_path_GREP" --version 2>&1` in
7458 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7461 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7464 cat "conftest.in" "conftest.in" >"conftest.tmp"
7465 mv "conftest.tmp" "conftest.in"
7466 cp "conftest.in" "conftest.nl"
7467 echo 'GREP' >> "conftest.nl"
7468 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7470 ac_count=`expr $ac_count + 1`
7471 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7472 # Best one so far, save it but keep looking for a better one
7473 ac_cv_path_GREP="$ac_path_GREP"
7474 ac_path_GREP_max=$ac_count
7476 # 10*(2^10) chars as input seems more than enough
7477 test $ac_count -gt 10 && break
7479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7483 $ac_path_GREP_found && break 3
7493 GREP="$ac_cv_path_GREP"
7494 if test -z "$GREP"; then
7495 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7496 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7497 { (exit 1); exit 1; }; }
7501 ac_cv_path_GREP=$GREP
7506 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7507 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7508 GREP="$ac_cv_path_GREP"
7511 { echo "$as_me:$LINENO: checking for egrep" >&5
7512 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7513 if test "${ac_cv_path_EGREP+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7517 then ac_cv_path_EGREP="$GREP -E"
7519 # Extract the first word of "egrep" to use in msg output
7520 if test -z "$EGREP"; then
7521 set dummy egrep; ac_prog_name=$2
7522 if test "${ac_cv_path_EGREP+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 ac_path_EGREP_found=false
7526 # Loop through the user's path and test for each of PROGNAME-LIST
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7531 test -z "$as_dir" && as_dir=.
7532 for ac_prog in egrep; do
7533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7535 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7536 # Check for GNU ac_path_EGREP and select it if it is found.
7537 # Check for GNU $ac_path_EGREP
7538 case `"$ac_path_EGREP" --version 2>&1` in
7540 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7543 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7546 cat "conftest.in" "conftest.in" >"conftest.tmp"
7547 mv "conftest.tmp" "conftest.in"
7548 cp "conftest.in" "conftest.nl"
7549 echo 'EGREP' >> "conftest.nl"
7550 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7552 ac_count=`expr $ac_count + 1`
7553 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7554 # Best one so far, save it but keep looking for a better one
7555 ac_cv_path_EGREP="$ac_path_EGREP"
7556 ac_path_EGREP_max=$ac_count
7558 # 10*(2^10) chars as input seems more than enough
7559 test $ac_count -gt 10 && break
7561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7565 $ac_path_EGREP_found && break 3
7575 EGREP="$ac_cv_path_EGREP"
7576 if test -z "$EGREP"; then
7577 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7578 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7579 { (exit 1); exit 1; }; }
7583 ac_cv_path_EGREP=$EGREP
7589 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7590 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7591 EGREP="$ac_cv_path_EGREP"
7594 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7595 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7596 if test "${ac_cv_header_stdc+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 cat >conftest.$ac_ext <<_ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7618 rm -f conftest.$ac_objext
7619 if { (ac_try="$ac_compile"
7621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7622 *) ac_try_echo=$ac_try;;
7624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7625 (eval "$ac_compile") 2>conftest.er1
7627 grep -v '^ *+' conftest.er1 >conftest.err
7629 cat conftest.err >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7633 { (case "(($ac_try" in
7634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635 *) ac_try_echo=$ac_try;;
7637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7638 (eval "$ac_try") 2>&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; } &&
7642 { ac_try='test -s conftest.$ac_objext'
7643 { (case "(($ac_try" in
7644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648 (eval "$ac_try") 2>&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; }; then
7652 ac_cv_header_stdc=yes
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7657 ac_cv_header_stdc=no
7660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 if test $ac_cv_header_stdc = yes; then
7663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7664 cat >conftest.$ac_ext <<_ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h. */
7673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7674 $EGREP "memchr" >/dev/null 2>&1; then
7677 ac_cv_header_stdc=no
7683 if test $ac_cv_header_stdc = yes; then
7684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7685 cat >conftest.$ac_ext <<_ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7695 $EGREP "free" >/dev/null 2>&1; then
7698 ac_cv_header_stdc=no
7704 if test $ac_cv_header_stdc = yes; then
7705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7706 if test "$cross_compiling" = yes; then
7709 cat >conftest.$ac_ext <<_ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7717 #if ((' ' & 0x0FF) == 0x020)
7718 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7719 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7721 # define ISLOWER(c) \
7722 (('a' <= (c) && (c) <= 'i') \
7723 || ('j' <= (c) && (c) <= 'r') \
7724 || ('s' <= (c) && (c) <= 'z'))
7725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7733 for (i = 0; i < 256; i++)
7734 if (XOR (islower (i), ISLOWER (i))
7735 || toupper (i) != TOUPPER (i))
7740 rm -f conftest$ac_exeext
7741 if { (ac_try="$ac_link"
7743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744 *) ac_try_echo=$ac_try;;
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747 (eval "$ac_link") 2>&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7751 { (case "(($ac_try" in
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_try") 2>&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; }; then
7762 echo "$as_me: program exited with status $ac_status" >&5
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7767 ac_cv_header_stdc=no
7769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7775 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7776 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7777 if test $ac_cv_header_stdc = yes; then
7779 cat >>confdefs.h <<\_ACEOF
7780 #define STDC_HEADERS 1
7785 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7795 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7796 inttypes.h stdint.h unistd.h
7798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 cat >conftest.$ac_ext <<_ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7810 $ac_includes_default
7812 #include <$ac_header>
7814 rm -f conftest.$ac_objext
7815 if { (ac_try="$ac_compile"
7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821 (eval "$ac_compile") 2>conftest.er1
7823 grep -v '^ *+' conftest.er1 >conftest.err
7825 cat conftest.err >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7829 { (case "(($ac_try" in
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834 (eval "$ac_try") 2>&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try='test -s conftest.$ac_objext'
7839 { (case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844 (eval "$ac_try") 2>&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 eval "$as_ac_Header=yes"
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 eval "$as_ac_Header=no"
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 ac_res=`eval echo '${'$as_ac_Header'}'`
7859 { echo "$as_me:$LINENO: result: $ac_res" >&5
7860 echo "${ECHO_T}$ac_res" >&6; }
7861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7862 cat >>confdefs.h <<_ACEOF
7863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7872 for ac_header in errno.h
7874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 ac_res=`eval echo '${'$as_ac_Header'}'`
7882 { echo "$as_me:$LINENO: result: $ac_res" >&5
7883 echo "${ECHO_T}$ac_res" >&6; }
7885 # Is the header compilable?
7886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7888 cat >conftest.$ac_ext <<_ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 $ac_includes_default
7895 #include <$ac_header>
7897 rm -f conftest.$ac_objext
7898 if { (ac_try="$ac_compile"
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904 (eval "$ac_compile") 2>conftest.er1
7906 grep -v '^ *+' conftest.er1 >conftest.err
7908 cat conftest.err >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
7911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7912 { (case "(($ac_try" in
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_try") 2>&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; } &&
7921 { ac_try='test -s conftest.$ac_objext'
7922 { (case "(($ac_try" in
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927 (eval "$ac_try") 2>&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_header_compiler=yes
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936 ac_header_compiler=no
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7941 echo "${ECHO_T}$ac_header_compiler" >&6; }
7943 # Is the header present?
7944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7946 cat >conftest.$ac_ext <<_ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7952 #include <$ac_header>
7954 if { (ac_try="$ac_cpp conftest.$ac_ext"
7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957 *) ac_try_echo=$ac_try;;
7959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7962 grep -v '^ *+' conftest.er1 >conftest.err
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } >/dev/null; then
7967 if test -s conftest.err; then
7968 ac_cpp_err=$ac_c_preproc_warn_flag
7969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7976 if test -z "$ac_cpp_err"; then
7977 ac_header_preproc=yes
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7982 ac_header_preproc=no
7985 rm -f conftest.err conftest.$ac_ext
7986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7987 echo "${ECHO_T}$ac_header_preproc" >&6; }
7989 # So? What about this header?
7990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7996 ac_header_preproc=yes
7999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8012 ## ------------------------------------ ##
8013 ## Report this to http://llvm.org/bugs/ ##
8014 ## ------------------------------------ ##
8016 ) | sed "s/^/$as_me: WARNING: /" >&2
8019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 eval "$as_ac_Header=\$ac_header_preproc"
8026 ac_res=`eval echo '${'$as_ac_Header'}'`
8027 { echo "$as_me:$LINENO: result: $ac_res" >&5
8028 echo "${ECHO_T}$ac_res" >&6; }
8031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8032 cat >>confdefs.h <<_ACEOF
8033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8041 case "$llvm_cv_os_type" in
8042 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8043 Darwin) llvm_shlib_ext=.dylib ;;
8044 *) llvm_shlib_ext=.so ;;
8048 cat >>confdefs.h <<_ACEOF
8049 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8053 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8054 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8067 if test "$GCC" != "yes" && test "$ICC" != "yes"
8069 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8070 echo "$as_me: error: gcc|icc required but not found" >&2;}
8071 { (exit 1); exit 1; }; }
8074 if test "$GXX" != "yes" && test "$IXX" != "yes"
8076 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8077 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8078 { (exit 1); exit 1; }; }
8081 if test "$GCC" = "yes"
8083 cat >conftest.$ac_ext <<_ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8091 #if !defined(__GNUC__) || __GNUC__ < 3
8092 #error Unsupported GCC version
8097 rm -f conftest.$ac_objext
8098 if { (ac_try="$ac_compile"
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_compile") 2>conftest.er1
8106 grep -v '^ *+' conftest.er1 >conftest.err
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8112 { (case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_try") 2>&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try='test -s conftest.$ac_objext'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8137 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8138 { (exit 1); exit 1; }; }
8141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 if test -z "$llvm_cv_gnu_make_command"
8146 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8147 echo "$as_me: error: GNU Make required but not found" >&2;}
8148 { (exit 1); exit 1; }; }
8151 { echo "$as_me:$LINENO: result: ok" >&5
8152 echo "${ECHO_T}ok" >&6; }
8154 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8155 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8156 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8158 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8160 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8164 NO_MAYBE_UNINITIALIZED=
8165 if test "$GXX" = "yes"
8167 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8169 if test -z "$NO_MAYBE_UNINITIALIZED"
8171 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8175 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8176 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8179 # Check whether --with-python was given.
8180 if test "${with_python+set}" = set; then
8181 withval=$with_python; PYTHON="$withval"
8185 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8186 { echo "$as_me:$LINENO: checking for python" >&5
8187 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8188 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8189 echo "${ECHO_T}user defined: $with_python" >&6; }
8191 if test -n "$PYTHON" ; then
8192 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8193 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8196 # Extract the first word of "python python2 python26", so it can be a program name with args.
8197 set dummy python python2 python26; ac_word=$2
8198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8200 if test "${ac_cv_path_PYTHON+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8215 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8224 echo "${ECHO_T}not found" >&6; }
8225 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8226 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8227 { (exit 1); exit 1; }; }"
8231 PYTHON=$ac_cv_path_PYTHON
8232 if test -n "$PYTHON"; then
8233 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8234 echo "${ECHO_T}$PYTHON" >&6; }
8236 { echo "$as_me:$LINENO: result: no" >&5
8237 echo "${ECHO_T}no" >&6; }
8243 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8244 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8245 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8246 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8247 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8248 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8249 if test "$ac_python_version_major" -gt "2" || \
8250 (test "$ac_python_version_major" -eq "2" && \
8251 test "$ac_python_version_minor" -ge "5") ; then
8252 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8253 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8255 { echo "$as_me:$LINENO: result: not found" >&5
8256 echo "${ECHO_T}not found" >&6; }
8257 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8258 See \`config.log' for more details." >&5
8259 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8260 See \`config.log' for more details." >&2;}
8261 { (exit 1); exit 1; }; }
8266 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8267 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8268 if test "${ac_cv_lib_m_sin+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 ac_check_lib_save_LIBS=$LIBS
8273 cat >conftest.$ac_ext <<_ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8280 /* Override any GCC internal prototype to avoid an error.
8281 Use char because int might match the return type of a GCC
8282 builtin and then its argument prototype would still apply. */
8295 rm -f conftest.$ac_objext conftest$ac_exeext
8296 if { (ac_try="$ac_link"
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_link") 2>conftest.er1
8304 grep -v '^ *+' conftest.er1 >conftest.err
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8310 { (case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_try") 2>&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; } &&
8319 { ac_try='test -s conftest$ac_exeext'
8320 { (case "(($ac_try" in
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325 (eval "$ac_try") 2>&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8337 rm -f core conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
8339 LIBS=$ac_check_lib_save_LIBS
8341 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8342 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8343 if test $ac_cv_lib_m_sin = yes; then
8344 cat >>confdefs.h <<_ACEOF
8352 if test "$llvm_cv_os_type" = "MingW" ; then
8354 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8355 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8356 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 ac_check_lib_save_LIBS=$LIBS
8360 LIBS="-limagehlp $LIBS"
8361 cat >conftest.$ac_ext <<_ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (ac_try="$ac_link"
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_link") 2>conftest.er1
8386 grep -v '^ *+' conftest.er1 >conftest.err
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8392 { (case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_try") 2>&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest$ac_exeext'
8402 { (case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_try") 2>&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_lib_imagehlp_main=yes
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 ac_cv_lib_imagehlp_main=no
8419 rm -f core conftest.err conftest.$ac_objext \
8420 conftest$ac_exeext conftest.$ac_ext
8421 LIBS=$ac_check_lib_save_LIBS
8423 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8424 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8425 if test $ac_cv_lib_imagehlp_main = yes; then
8426 cat >>confdefs.h <<_ACEOF
8427 #define HAVE_LIBIMAGEHLP 1
8430 LIBS="-limagehlp $LIBS"
8435 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8436 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8437 if test "${ac_cv_lib_psapi_main+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 ac_check_lib_save_LIBS=$LIBS
8441 LIBS="-lpsapi $LIBS"
8442 cat >conftest.$ac_ext <<_ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8458 rm -f conftest.$ac_objext conftest$ac_exeext
8459 if { (ac_try="$ac_link"
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_link") 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } &&
8472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8473 { (case "(($ac_try" in
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478 (eval "$ac_try") 2>&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest$ac_exeext'
8483 { (case "(($ac_try" in
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_try") 2>&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8492 ac_cv_lib_psapi_main=yes
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8497 ac_cv_lib_psapi_main=no
8500 rm -f core conftest.err conftest.$ac_objext \
8501 conftest$ac_exeext conftest.$ac_ext
8502 LIBS=$ac_check_lib_save_LIBS
8504 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8505 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8506 if test $ac_cv_lib_psapi_main = yes; then
8507 cat >>confdefs.h <<_ACEOF
8508 #define HAVE_LIBPSAPI 1
8511 LIBS="-lpsapi $LIBS"
8516 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8517 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8518 if test "${ac_cv_lib_shell32_main+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 ac_check_lib_save_LIBS=$LIBS
8522 LIBS="-lshell32 $LIBS"
8523 cat >conftest.$ac_ext <<_ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8539 rm -f conftest.$ac_objext conftest$ac_exeext
8540 if { (ac_try="$ac_link"
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_link") 2>conftest.er1
8548 grep -v '^ *+' conftest.er1 >conftest.err
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8554 { (case "(($ac_try" in
8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559 (eval "$ac_try") 2>&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try='test -s conftest$ac_exeext'
8564 { (case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_try") 2>&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_cv_lib_shell32_main=yes
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8578 ac_cv_lib_shell32_main=no
8581 rm -f core conftest.err conftest.$ac_objext \
8582 conftest$ac_exeext conftest.$ac_ext
8583 LIBS=$ac_check_lib_save_LIBS
8585 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8586 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8587 if test $ac_cv_lib_shell32_main = yes; then
8588 cat >>confdefs.h <<_ACEOF
8589 #define HAVE_LIBSHELL32 1
8592 LIBS="-lshell32 $LIBS"
8598 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8599 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8600 if test "${ac_cv_search_dlopen+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 ac_func_search_save_LIBS=$LIBS
8604 cat >conftest.$ac_ext <<_ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8611 /* Override any GCC internal prototype to avoid an error.
8612 Use char because int might match the return type of a GCC
8613 builtin and then its argument prototype would still apply. */
8626 for ac_lib in '' dl; do
8627 if test -z "$ac_lib"; then
8628 ac_res="none required"
8631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8633 rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (ac_try="$ac_link"
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_link") 2>conftest.er1
8642 grep -v '^ *+' conftest.er1 >conftest.err
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
8647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8648 { (case "(($ac_try" in
8649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650 *) ac_try_echo=$ac_try;;
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653 (eval "$ac_try") 2>&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; } &&
8657 { ac_try='test -s conftest$ac_exeext'
8658 { (case "(($ac_try" in
8659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660 *) ac_try_echo=$ac_try;;
8662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663 (eval "$ac_try") 2>&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; }; then
8667 ac_cv_search_dlopen=$ac_res
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8675 rm -f core conftest.err conftest.$ac_objext \
8677 if test "${ac_cv_search_dlopen+set}" = set; then
8681 if test "${ac_cv_search_dlopen+set}" = set; then
8684 ac_cv_search_dlopen=no
8687 LIBS=$ac_func_search_save_LIBS
8689 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8690 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8691 ac_res=$ac_cv_search_dlopen
8692 if test "$ac_res" != no; then
8693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8696 cat >>confdefs.h <<\_ACEOF
8697 #define HAVE_DLOPEN 1
8704 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8705 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8709 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8710 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8711 if test "${ac_cv_search_clock_gettime+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 ac_func_search_save_LIBS=$LIBS
8715 cat >conftest.$ac_ext <<_ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8722 /* Override any GCC internal prototype to avoid an error.
8723 Use char because int might match the return type of a GCC
8724 builtin and then its argument prototype would still apply. */
8728 char clock_gettime ();
8732 return clock_gettime ();
8737 for ac_lib in '' rt; do
8738 if test -z "$ac_lib"; then
8739 ac_res="none required"
8742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (ac_try="$ac_link"
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751 (eval "$ac_link") 2>conftest.er1
8753 grep -v '^ *+' conftest.er1 >conftest.err
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8759 { (case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_try") 2>&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest$ac_exeext'
8769 { (case "(($ac_try" in
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_try") 2>&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_cv_search_clock_gettime=$ac_res
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8786 rm -f core conftest.err conftest.$ac_objext \
8788 if test "${ac_cv_search_clock_gettime+set}" = set; then
8792 if test "${ac_cv_search_clock_gettime+set}" = set; then
8795 ac_cv_search_clock_gettime=no
8798 LIBS=$ac_func_search_save_LIBS
8800 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8801 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8802 ac_res=$ac_cv_search_clock_gettime
8803 if test "$ac_res" != no; then
8804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8809 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8810 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8811 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8812 if test "${ac_cv_search_setupterm+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 ac_func_search_save_LIBS=$LIBS
8816 cat >conftest.$ac_ext <<_ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h. */
8823 /* Override any GCC internal prototype to avoid an error.
8824 Use char because int might match the return type of a GCC
8825 builtin and then its argument prototype would still apply. */
8833 return setupterm ();
8838 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8839 if test -z "$ac_lib"; then
8840 ac_res="none required"
8843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (ac_try="$ac_link"
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_link") 2>conftest.er1
8854 grep -v '^ *+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8860 { (case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_try") 2>&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; } &&
8869 { ac_try='test -s conftest$ac_exeext'
8870 { (case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_try") 2>&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 ac_cv_search_setupterm=$ac_res
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8887 rm -f core conftest.err conftest.$ac_objext \
8889 if test "${ac_cv_search_setupterm+set}" = set; then
8893 if test "${ac_cv_search_setupterm+set}" = set; then
8896 ac_cv_search_setupterm=no
8899 LIBS=$ac_func_search_save_LIBS
8901 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8902 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8903 ac_res=$ac_cv_search_setupterm
8904 if test "$ac_res" != no; then
8905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_TERMINFO 1
8919 if test "$llvm_cv_enable_libedit" = "yes" ; then
8920 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8921 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8922 if test "${ac_cv_search_el_init+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 ac_func_search_save_LIBS=$LIBS
8926 cat >conftest.$ac_ext <<_ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8933 /* Override any GCC internal prototype to avoid an error.
8934 Use char because int might match the return type of a GCC
8935 builtin and then its argument prototype would still apply. */
8948 for ac_lib in '' edit; do
8949 if test -z "$ac_lib"; then
8950 ac_res="none required"
8953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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 ac_cv_search_el_init=$ac_res
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8997 rm -f core conftest.err conftest.$ac_objext \
8999 if test "${ac_cv_search_el_init+set}" = set; then
9003 if test "${ac_cv_search_el_init+set}" = set; then
9006 ac_cv_search_el_init=no
9009 LIBS=$ac_func_search_save_LIBS
9011 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9012 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9013 ac_res=$ac_cv_search_el_init
9014 if test "$ac_res" != no; then
9015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9017 cat >>confdefs.h <<\_ACEOF
9018 #define HAVE_LIBEDIT 1
9025 if test "$llvm_cv_enable_libffi" = "yes" ; then
9026 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9027 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9028 if test "${ac_cv_search_ffi_call+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9031 ac_func_search_save_LIBS=$LIBS
9032 cat >conftest.$ac_ext <<_ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9039 /* Override any GCC internal prototype to avoid an error.
9040 Use char because int might match the return type of a GCC
9041 builtin and then its argument prototype would still apply. */
9054 for ac_lib in '' ffi; do
9055 if test -z "$ac_lib"; then
9056 ac_res="none required"
9059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9061 rm -f conftest.$ac_objext conftest$ac_exeext
9062 if { (ac_try="$ac_link"
9064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065 *) ac_try_echo=$ac_try;;
9067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9068 (eval "$ac_link") 2>conftest.er1
9070 grep -v '^ *+' conftest.er1 >conftest.err
9072 cat conftest.err >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); } &&
9075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9076 { (case "(($ac_try" in
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_try") 2>&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; } &&
9085 { ac_try='test -s conftest$ac_exeext'
9086 { (case "(($ac_try" in
9087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088 *) ac_try_echo=$ac_try;;
9090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091 (eval "$ac_try") 2>&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9095 ac_cv_search_ffi_call=$ac_res
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9103 rm -f core conftest.err conftest.$ac_objext \
9105 if test "${ac_cv_search_ffi_call+set}" = set; then
9109 if test "${ac_cv_search_ffi_call+set}" = set; then
9112 ac_cv_search_ffi_call=no
9115 LIBS=$ac_func_search_save_LIBS
9117 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9118 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9119 ac_res=$ac_cv_search_ffi_call
9120 if test "$ac_res" != no; then
9121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9123 cat >>confdefs.h <<\_ACEOF
9124 #define HAVE_FFI_CALL 1
9128 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9129 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9130 { (exit 1); exit 1; }; }
9135 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9136 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9137 if test "${ac_cv_search_mallinfo+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 ac_func_search_save_LIBS=$LIBS
9141 cat >conftest.$ac_ext <<_ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9148 /* Override any GCC internal prototype to avoid an error.
9149 Use char because int might match the return type of a GCC
9150 builtin and then its argument prototype would still apply. */
9163 for ac_lib in '' malloc; do
9164 if test -z "$ac_lib"; then
9165 ac_res="none required"
9168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9170 rm -f conftest.$ac_objext conftest$ac_exeext
9171 if { (ac_try="$ac_link"
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177 (eval "$ac_link") 2>conftest.er1
9179 grep -v '^ *+' conftest.er1 >conftest.err
9181 cat conftest.err >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } &&
9184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9185 { (case "(($ac_try" in
9186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187 *) ac_try_echo=$ac_try;;
9189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9190 (eval "$ac_try") 2>&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; } &&
9194 { ac_try='test -s conftest$ac_exeext'
9195 { (case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_try") 2>&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 ac_cv_search_mallinfo=$ac_res
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9212 rm -f core conftest.err conftest.$ac_objext \
9214 if test "${ac_cv_search_mallinfo+set}" = set; then
9218 if test "${ac_cv_search_mallinfo+set}" = set; then
9221 ac_cv_search_mallinfo=no
9224 LIBS=$ac_func_search_save_LIBS
9226 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9227 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9228 ac_res=$ac_cv_search_mallinfo
9229 if test "$ac_res" != no; then
9230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9232 cat >>confdefs.h <<\_ACEOF
9233 #define HAVE_MALLINFO 1
9239 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9241 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9242 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9243 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9246 ac_check_lib_save_LIBS=$LIBS
9247 LIBS="-lpthread $LIBS"
9248 cat >conftest.$ac_ext <<_ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9255 /* Override any GCC internal prototype to avoid an error.
9256 Use char because int might match the return type of a GCC
9257 builtin and then its argument prototype would still apply. */
9261 char pthread_mutex_init ();
9265 return pthread_mutex_init ();
9270 rm -f conftest.$ac_objext conftest$ac_exeext
9271 if { (ac_try="$ac_link"
9273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274 *) ac_try_echo=$ac_try;;
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277 (eval "$ac_link") 2>conftest.er1
9279 grep -v '^ *+' conftest.er1 >conftest.err
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9285 { (case "(($ac_try" in
9286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287 *) ac_try_echo=$ac_try;;
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_try") 2>&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; } &&
9294 { ac_try='test -s conftest$ac_exeext'
9295 { (case "(($ac_try" in
9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300 (eval "$ac_try") 2>&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 ac_cv_lib_pthread_pthread_mutex_init=yes
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9309 ac_cv_lib_pthread_pthread_mutex_init=no
9312 rm -f core conftest.err conftest.$ac_objext \
9313 conftest$ac_exeext conftest.$ac_ext
9314 LIBS=$ac_check_lib_save_LIBS
9316 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9317 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9318 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9319 cat >>confdefs.h <<_ACEOF
9320 #define HAVE_LIBPTHREAD 1
9323 LIBS="-lpthread $LIBS"
9327 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9328 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9329 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 ac_func_search_save_LIBS=$LIBS
9333 cat >conftest.$ac_ext <<_ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9340 /* Override any GCC internal prototype to avoid an error.
9341 Use char because int might match the return type of a GCC
9342 builtin and then its argument prototype would still apply. */
9346 char pthread_mutex_lock ();
9350 return pthread_mutex_lock ();
9355 for ac_lib in '' pthread; do
9356 if test -z "$ac_lib"; then
9357 ac_res="none required"
9360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9362 rm -f conftest.$ac_objext conftest$ac_exeext
9363 if { (ac_try="$ac_link"
9365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366 *) ac_try_echo=$ac_try;;
9368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369 (eval "$ac_link") 2>conftest.er1
9371 grep -v '^ *+' conftest.er1 >conftest.err
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9377 { (case "(($ac_try" in
9378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379 *) ac_try_echo=$ac_try;;
9381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382 (eval "$ac_try") 2>&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); }; } &&
9386 { ac_try='test -s conftest$ac_exeext'
9387 { (case "(($ac_try" in
9388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389 *) ac_try_echo=$ac_try;;
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_try") 2>&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 ac_cv_search_pthread_mutex_lock=$ac_res
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9404 rm -f core conftest.err conftest.$ac_objext \
9406 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9410 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9413 ac_cv_search_pthread_mutex_lock=no
9416 LIBS=$ac_func_search_save_LIBS
9418 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9419 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9420 ac_res=$ac_cv_search_pthread_mutex_lock
9421 if test "$ac_res" != no; then
9422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9424 cat >>confdefs.h <<\_ACEOF
9425 #define HAVE_PTHREAD_MUTEX_LOCK 1
9430 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9431 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9432 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 ac_func_search_save_LIBS=$LIBS
9436 cat >conftest.$ac_ext <<_ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9443 /* Override any GCC internal prototype to avoid an error.
9444 Use char because int might match the return type of a GCC
9445 builtin and then its argument prototype would still apply. */
9449 char pthread_rwlock_init ();
9453 return pthread_rwlock_init ();
9458 for ac_lib in '' pthread; do
9459 if test -z "$ac_lib"; then
9460 ac_res="none required"
9463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9465 rm -f conftest.$ac_objext conftest$ac_exeext
9466 if { (ac_try="$ac_link"
9468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 (eval "$ac_link") 2>conftest.er1
9474 grep -v '^ *+' conftest.er1 >conftest.err
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } &&
9479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9480 { (case "(($ac_try" in
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_try") 2>&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; } &&
9489 { ac_try='test -s conftest$ac_exeext'
9490 { (case "(($ac_try" in
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_try") 2>&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; }; then
9499 ac_cv_search_pthread_rwlock_init=$ac_res
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9507 rm -f core conftest.err conftest.$ac_objext \
9509 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9513 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9516 ac_cv_search_pthread_rwlock_init=no
9519 LIBS=$ac_func_search_save_LIBS
9521 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9522 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9523 ac_res=$ac_cv_search_pthread_rwlock_init
9524 if test "$ac_res" != no; then
9525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9527 cat >>confdefs.h <<\_ACEOF
9528 #define HAVE_PTHREAD_RWLOCK_INIT 1
9533 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9534 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9535 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 ac_func_search_save_LIBS=$LIBS
9539 cat >conftest.$ac_ext <<_ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9546 /* Override any GCC internal prototype to avoid an error.
9547 Use char because int might match the return type of a GCC
9548 builtin and then its argument prototype would still apply. */
9552 char pthread_getspecific ();
9556 return pthread_getspecific ();
9561 for ac_lib in '' pthread; do
9562 if test -z "$ac_lib"; then
9563 ac_res="none required"
9566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9568 rm -f conftest.$ac_objext conftest$ac_exeext
9569 if { (ac_try="$ac_link"
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575 (eval "$ac_link") 2>conftest.er1
9577 grep -v '^ *+' conftest.er1 >conftest.err
9579 cat conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9583 { (case "(($ac_try" in
9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585 *) ac_try_echo=$ac_try;;
9587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588 (eval "$ac_try") 2>&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; } &&
9592 { ac_try='test -s conftest$ac_exeext'
9593 { (case "(($ac_try" in
9594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595 *) ac_try_echo=$ac_try;;
9597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598 (eval "$ac_try") 2>&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; }; then
9602 ac_cv_search_pthread_getspecific=$ac_res
9604 echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9610 rm -f core conftest.err conftest.$ac_objext \
9612 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9616 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9619 ac_cv_search_pthread_getspecific=no
9622 LIBS=$ac_func_search_save_LIBS
9624 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9625 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9626 ac_res=$ac_cv_search_pthread_getspecific
9627 if test "$ac_res" != no; then
9628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9630 cat >>confdefs.h <<\_ACEOF
9631 #define HAVE_PTHREAD_GETSPECIFIC 1
9638 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9640 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9641 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9642 if test "${ac_cv_lib_z_compress2+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 ac_check_lib_save_LIBS=$LIBS
9647 cat >conftest.$ac_ext <<_ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9654 /* Override any GCC internal prototype to avoid an error.
9655 Use char because int might match the return type of a GCC
9656 builtin and then its argument prototype would still apply. */
9664 return compress2 ();
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (ac_try="$ac_link"
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_link") 2>conftest.er1
9678 grep -v '^ *+' conftest.er1 >conftest.err
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } &&
9683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9684 { (case "(($ac_try" in
9685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9686 *) ac_try_echo=$ac_try;;
9688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9689 (eval "$ac_try") 2>&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; } &&
9693 { ac_try='test -s conftest$ac_exeext'
9694 { (case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_try") 2>&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }; then
9703 ac_cv_lib_z_compress2=yes
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9708 ac_cv_lib_z_compress2=no
9711 rm -f core conftest.err conftest.$ac_objext \
9712 conftest$ac_exeext conftest.$ac_ext
9713 LIBS=$ac_check_lib_save_LIBS
9715 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9716 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9717 if test $ac_cv_lib_z_compress2 = yes; then
9718 cat >>confdefs.h <<_ACEOF
9729 # Check whether --with-oprofile was given.
9730 if test "${with_oprofile+set}" = set; then
9731 withval=$with_oprofile;
9735 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9739 *) llvm_cv_oppath="${withval}/lib/oprofile"
9740 CPPFLAGS="-I${withval}/include";;
9742 case $llvm_cv_os_type in
9744 if test -n "$llvm_cv_oppath" ; then
9745 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9746 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9747 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9748 if test "${ac_cv_search_bfd_init+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 ac_func_search_save_LIBS=$LIBS
9752 cat >conftest.$ac_ext <<_ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9759 /* Override any GCC internal prototype to avoid an error.
9760 Use char because int might match the return type of a GCC
9761 builtin and then its argument prototype would still apply. */
9774 for ac_lib in '' bfd; do
9775 if test -z "$ac_lib"; then
9776 ac_res="none required"
9779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_link") 2>conftest.er1
9790 grep -v '^ *+' conftest.er1 >conftest.err
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } &&
9795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9796 { (case "(($ac_try" in
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_try") 2>&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; } &&
9805 { ac_try='test -s conftest$ac_exeext'
9806 { (case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_try") 2>&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_cv_search_bfd_init=$ac_res
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9823 rm -f core conftest.err conftest.$ac_objext \
9825 if test "${ac_cv_search_bfd_init+set}" = set; then
9829 if test "${ac_cv_search_bfd_init+set}" = set; then
9832 ac_cv_search_bfd_init=no
9835 LIBS=$ac_func_search_save_LIBS
9837 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9838 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9839 ac_res=$ac_cv_search_bfd_init
9840 if test "$ac_res" != no; then
9841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9845 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9846 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9847 if test "${ac_cv_search_op_open_agent+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 ac_func_search_save_LIBS=$LIBS
9851 cat >conftest.$ac_ext <<_ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9858 /* Override any GCC internal prototype to avoid an error.
9859 Use char because int might match the return type of a GCC
9860 builtin and then its argument prototype would still apply. */
9864 char op_open_agent ();
9868 return op_open_agent ();
9873 for ac_lib in '' opagent; do
9874 if test -z "$ac_lib"; then
9875 ac_res="none required"
9878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (ac_try="$ac_link"
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887 (eval "$ac_link") 2>conftest.er1
9889 grep -v '^ *+' conftest.er1 >conftest.err
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9895 { (case "(($ac_try" in
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_try") 2>&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; } &&
9904 { ac_try='test -s conftest$ac_exeext'
9905 { (case "(($ac_try" in
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_try") 2>&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
9914 ac_cv_search_op_open_agent=$ac_res
9916 echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9922 rm -f core conftest.err conftest.$ac_objext \
9924 if test "${ac_cv_search_op_open_agent+set}" = set; then
9928 if test "${ac_cv_search_op_open_agent+set}" = set; then
9931 ac_cv_search_op_open_agent=no
9934 LIBS=$ac_func_search_save_LIBS
9936 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9937 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9938 ac_res=$ac_cv_search_op_open_agent
9939 if test "$ac_res" != no; then
9940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9944 echo "Error! You need to have libopagent around."
9949 if test "${ac_cv_header_opagent_h+set}" = set; then
9950 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9951 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9952 if test "${ac_cv_header_opagent_h+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9956 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9958 # Is the header compilable?
9959 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9960 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 $ac_includes_default
9968 #include <opagent.h>
9970 rm -f conftest.$ac_objext
9971 if { (ac_try="$ac_compile"
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_compile") 2>conftest.er1
9979 grep -v '^ *+' conftest.er1 >conftest.err
9981 cat conftest.err >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } &&
9984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9985 { (case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_try") 2>&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; } &&
9994 { ac_try='test -s conftest.$ac_objext'
9995 { (case "(($ac_try" in
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_try") 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; }; then
10004 ac_header_compiler=yes
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10009 ac_header_compiler=no
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10014 echo "${ECHO_T}$ac_header_compiler" >&6; }
10016 # Is the header present?
10017 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10018 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10019 cat >conftest.$ac_ext <<_ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 #include <opagent.h>
10027 if { (ac_try="$ac_cpp conftest.$ac_ext"
10028 case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10035 grep -v '^ *+' conftest.er1 >conftest.err
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } >/dev/null; then
10040 if test -s conftest.err; then
10041 ac_cpp_err=$ac_c_preproc_warn_flag
10042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10049 if test -z "$ac_cpp_err"; then
10050 ac_header_preproc=yes
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ac_header_preproc=no
10058 rm -f conftest.err conftest.$ac_ext
10059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10060 echo "${ECHO_T}$ac_header_preproc" >&6; }
10062 # So? What about this header?
10063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10065 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10066 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10068 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10069 ac_header_preproc=yes
10072 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10073 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10075 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10076 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10077 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10078 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10079 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10081 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10082 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10083 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10085 ## ------------------------------------ ##
10086 ## Report this to http://llvm.org/bugs/ ##
10087 ## ------------------------------------ ##
10089 ) | sed "s/^/$as_me: WARNING: /" >&2
10092 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10093 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10094 if test "${ac_cv_header_opagent_h+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 ac_cv_header_opagent_h=$ac_header_preproc
10099 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10100 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10103 if test $ac_cv_header_opagent_h = yes; then
10107 echo "Error! You need to have opagent.h around."
10115 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10116 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10117 { (exit 1); exit 1; }; } ;;
10128 cat >>confdefs.h <<_ACEOF
10129 #define LLVM_USE_OPROFILE $USE_OPROFILE
10134 # Check whether --with-intel-jitevents was given.
10135 if test "${with_intel_jitevents+set}" = set; then
10136 withval=$with_intel_jitevents;
10138 yes) USE_INTEL_JITEVENTS=1
10140 no) USE_INTEL_JITEVENTS=0
10142 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10143 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10144 { (exit 1); exit 1; }; };;
10147 case $llvm_cv_os_type in
10148 Linux|Win32|Cygwin|MingW) ;;
10149 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10150 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10151 { (exit 1); exit 1; }; };;
10154 case "$llvm_cv_target_arch" in
10156 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10157 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10158 { (exit 1); exit 1; }; };;
10163 USE_INTEL_JITEVENTS=0
10169 cat >>confdefs.h <<_ACEOF
10170 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10174 for ac_prog in xml2-config
10176 # Extract the first word of "$ac_prog", so it can be a program name with args.
10177 set dummy $ac_prog; ac_word=$2
10178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10180 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 if test -n "$XML2CONFIG"; then
10184 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187 for as_dir in $PATH
10190 test -z "$as_dir" && as_dir=.
10191 for ac_exec_ext in '' $ac_executable_extensions; do
10192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10193 ac_cv_prog_XML2CONFIG="$ac_prog"
10194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10204 if test -n "$XML2CONFIG"; then
10205 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10206 echo "${ECHO_T}$XML2CONFIG" >&6; }
10208 { echo "$as_me:$LINENO: result: no" >&5
10209 echo "${ECHO_T}no" >&6; }
10213 test -n "$XML2CONFIG" && break
10217 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10218 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10219 if test "x$XML2CONFIG" = "x"; then
10220 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10221 echo "${ECHO_T}xml2-config not found" >&6; }
10223 LIBXML2_INC=`$XML2CONFIG --cflags`
10224 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10225 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10226 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10227 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10228 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 ac_check_lib_save_LIBS=$LIBS
10232 LIBS="-lxml2 $LIBS"
10233 cat >conftest.$ac_ext <<_ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10246 char xmlReadFile ();
10250 return xmlReadFile ();
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (ac_try="$ac_link"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_link") 2>conftest.er1
10264 grep -v '^ *+' conftest.er1 >conftest.err
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } &&
10269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10270 { (case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_try") 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; } &&
10279 { ac_try='test -s conftest$ac_exeext'
10280 { (case "(($ac_try" in
10281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282 *) ac_try_echo=$ac_try;;
10284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285 (eval "$ac_try") 2>&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; }; then
10289 ac_cv_lib_xml2_xmlReadFile=yes
10291 echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 ac_cv_lib_xml2_xmlReadFile=no
10297 rm -f core conftest.err conftest.$ac_objext \
10298 conftest$ac_exeext conftest.$ac_ext
10299 LIBS=$ac_check_lib_save_LIBS
10301 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10302 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10303 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10305 cat >>confdefs.h <<\_ACEOF
10306 #define CLANG_HAVE_LIBXML 1
10309 LIBXML2_LIBS="-lxml2"
10322 ac_header_dirent=no
10323 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10324 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10325 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10326 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 cat >conftest.$ac_ext <<_ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10336 #include <sys/types.h>
10348 rm -f conftest.$ac_objext
10349 if { (ac_try="$ac_compile"
10350 case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_compile") 2>conftest.er1
10357 grep -v '^ *+' conftest.er1 >conftest.err
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } &&
10362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10363 { (case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368 (eval "$ac_try") 2>&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; } &&
10372 { ac_try='test -s conftest.$ac_objext'
10373 { (case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_try") 2>&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); }; }; then
10382 eval "$as_ac_Header=yes"
10384 echo "$as_me: failed program was:" >&5
10385 sed 's/^/| /' conftest.$ac_ext >&5
10387 eval "$as_ac_Header=no"
10390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10392 ac_res=`eval echo '${'$as_ac_Header'}'`
10393 { echo "$as_me:$LINENO: result: $ac_res" >&5
10394 echo "${ECHO_T}$ac_res" >&6; }
10395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10396 cat >>confdefs.h <<_ACEOF
10397 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10400 ac_header_dirent=$ac_hdr; break
10404 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10405 if test $ac_header_dirent = dirent.h; then
10406 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10407 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10408 if test "${ac_cv_search_opendir+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 ac_func_search_save_LIBS=$LIBS
10412 cat >conftest.$ac_ext <<_ACEOF
10415 cat confdefs.h >>conftest.$ac_ext
10416 cat >>conftest.$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10419 /* Override any GCC internal prototype to avoid an error.
10420 Use char because int might match the return type of a GCC
10421 builtin and then its argument prototype would still apply. */
10434 for ac_lib in '' dir; do
10435 if test -z "$ac_lib"; then
10436 ac_res="none required"
10439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10441 rm -f conftest.$ac_objext conftest$ac_exeext
10442 if { (ac_try="$ac_link"
10443 case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448 (eval "$ac_link") 2>conftest.er1
10450 grep -v '^ *+' conftest.er1 >conftest.err
10452 cat conftest.err >&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); } &&
10455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10456 { (case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_try") 2>&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; } &&
10465 { ac_try='test -s conftest$ac_exeext'
10466 { (case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_try") 2>&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; }; then
10475 ac_cv_search_opendir=$ac_res
10477 echo "$as_me: failed program was:" >&5
10478 sed 's/^/| /' conftest.$ac_ext >&5
10483 rm -f core conftest.err conftest.$ac_objext \
10485 if test "${ac_cv_search_opendir+set}" = set; then
10489 if test "${ac_cv_search_opendir+set}" = set; then
10492 ac_cv_search_opendir=no
10494 rm conftest.$ac_ext
10495 LIBS=$ac_func_search_save_LIBS
10497 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10498 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10499 ac_res=$ac_cv_search_opendir
10500 if test "$ac_res" != no; then
10501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10506 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10507 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10508 if test "${ac_cv_search_opendir+set}" = set; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 ac_func_search_save_LIBS=$LIBS
10512 cat >conftest.$ac_ext <<_ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10519 /* Override any GCC internal prototype to avoid an error.
10520 Use char because int might match the return type of a GCC
10521 builtin and then its argument prototype would still apply. */
10534 for ac_lib in '' x; do
10535 if test -z "$ac_lib"; then
10536 ac_res="none required"
10539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10541 rm -f conftest.$ac_objext conftest$ac_exeext
10542 if { (ac_try="$ac_link"
10543 case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_link") 2>conftest.er1
10550 grep -v '^ *+' conftest.er1 >conftest.err
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } &&
10555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10556 { (case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_try") 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; } &&
10565 { ac_try='test -s conftest$ac_exeext'
10566 { (case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_try") 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 ac_cv_search_opendir=$ac_res
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10583 rm -f core conftest.err conftest.$ac_objext \
10585 if test "${ac_cv_search_opendir+set}" = set; then
10589 if test "${ac_cv_search_opendir+set}" = set; then
10592 ac_cv_search_opendir=no
10594 rm conftest.$ac_ext
10595 LIBS=$ac_func_search_save_LIBS
10597 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10598 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10599 ac_res=$ac_cv_search_opendir
10600 if test "$ac_res" != no; then
10601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10607 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10608 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10609 if test "${ac_cv_header_mmap_anon+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 ac_cpp='$CPP $CPPFLAGS'
10614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10618 cat >conftest.$ac_ext <<_ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10624 #include <sys/mman.h>
10625 #include <unistd.h>
10630 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10635 rm -f conftest.$ac_objext
10636 if { (ac_try="$ac_compile"
10637 case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_compile") 2>conftest.er1
10644 grep -v '^ *+' conftest.er1 >conftest.err
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } &&
10649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10650 { (case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_try") 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; } &&
10659 { ac_try='test -s conftest.$ac_objext'
10660 { (case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_try") 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 ac_cv_header_mmap_anon=yes
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 ac_cv_header_mmap_anon=no
10677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10679 ac_cpp='$CPP $CPPFLAGS'
10680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10686 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10687 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10688 if test "$ac_cv_header_mmap_anon" = yes; then
10690 cat >>confdefs.h <<\_ACEOF
10691 #define HAVE_MMAP_ANONYMOUS 1
10696 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10697 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10698 if test "${ac_cv_header_stat_broken+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 cat >conftest.$ac_ext <<_ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10707 #include <sys/types.h>
10708 #include <sys/stat.h>
10710 #if defined S_ISBLK && defined S_IFDIR
10711 # if S_ISBLK (S_IFDIR)
10716 #if defined S_ISBLK && defined S_IFCHR
10717 # if S_ISBLK (S_IFCHR)
10722 #if defined S_ISLNK && defined S_IFREG
10723 # if S_ISLNK (S_IFREG)
10728 #if defined S_ISSOCK && defined S_IFREG
10729 # if S_ISSOCK (S_IFREG)
10735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10736 $EGREP "You lose" >/dev/null 2>&1; then
10737 ac_cv_header_stat_broken=yes
10739 ac_cv_header_stat_broken=no
10744 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10745 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10746 if test $ac_cv_header_stat_broken = yes; then
10748 cat >>confdefs.h <<\_ACEOF
10749 #define STAT_MACROS_BROKEN 1
10754 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10755 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10756 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 cat >conftest.$ac_ext <<_ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10765 #include <sys/types.h>
10766 #include <sys/wait.h>
10767 #ifndef WEXITSTATUS
10768 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10771 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10779 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10784 rm -f conftest.$ac_objext
10785 if { (ac_try="$ac_compile"
10786 case "(($ac_try" in
10787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10788 *) ac_try_echo=$ac_try;;
10790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10791 (eval "$ac_compile") 2>conftest.er1
10793 grep -v '^ *+' conftest.er1 >conftest.err
10795 cat conftest.err >&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } &&
10798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10799 { (case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_try") 2>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } &&
10808 { ac_try='test -s conftest.$ac_objext'
10809 { (case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_try") 2>&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; }; then
10818 ac_cv_header_sys_wait_h=yes
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 ac_cv_header_sys_wait_h=no
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10828 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10829 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10830 if test $ac_cv_header_sys_wait_h = yes; then
10832 cat >>confdefs.h <<\_ACEOF
10833 #define HAVE_SYS_WAIT_H 1
10838 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10839 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10840 if test "${ac_cv_header_time+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10843 cat >conftest.$ac_ext <<_ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10849 #include <sys/types.h>
10850 #include <sys/time.h>
10856 if ((struct tm *) 0)
10862 rm -f conftest.$ac_objext
10863 if { (ac_try="$ac_compile"
10864 case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_compile") 2>conftest.er1
10871 grep -v '^ *+' conftest.er1 >conftest.err
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } &&
10876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10877 { (case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_try") 2>&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; } &&
10886 { ac_try='test -s conftest.$ac_objext'
10887 { (case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_try") 2>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 ac_cv_header_time=yes
10898 echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10901 ac_cv_header_time=no
10904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10906 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10907 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10908 if test $ac_cv_header_time = yes; then
10910 cat >>confdefs.h <<\_ACEOF
10911 #define TIME_WITH_SYS_TIME 1
10918 ac_cpp='$CXXCPP $CPPFLAGS'
10919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10924 ac_cpp='$CXXCPP $CPPFLAGS'
10925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10928 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10929 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10930 if test -z "$CXXCPP"; then
10931 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 # Double quotes because CXXCPP needs to be expanded
10935 for CXXCPP in "$CXX -E" "/lib/cpp"
10937 ac_preproc_ok=false
10938 for ac_cxx_preproc_warn_flag in '' yes
10940 # Use a header file that comes with gcc, so configuring glibc
10941 # with a fresh cross-compiler works.
10942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10943 # <limits.h> exists even on freestanding compilers.
10944 # On the NeXT, cc -E runs the code through the compiler's parser,
10945 # not just through cpp. "Syntax error" is here to catch this case.
10946 cat >conftest.$ac_ext <<_ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h. */
10953 # include <limits.h>
10955 # include <assert.h>
10959 if { (ac_try="$ac_cpp conftest.$ac_ext"
10960 case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10967 grep -v '^ *+' conftest.er1 >conftest.err
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } >/dev/null; then
10972 if test -s conftest.err; then
10973 ac_cpp_err=$ac_cxx_preproc_warn_flag
10974 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10981 if test -z "$ac_cpp_err"; then
10984 echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10987 # Broken: fails on valid input.
10991 rm -f conftest.err conftest.$ac_ext
10993 # OK, works on sane cases. Now check whether nonexistent headers
10994 # can be detected and how.
10995 cat >conftest.$ac_ext <<_ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 #include <ac_nonexistent.h>
11003 if { (ac_try="$ac_cpp conftest.$ac_ext"
11004 case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11011 grep -v '^ *+' conftest.er1 >conftest.err
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } >/dev/null; then
11016 if test -s conftest.err; then
11017 ac_cpp_err=$ac_cxx_preproc_warn_flag
11018 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11025 if test -z "$ac_cpp_err"; then
11026 # Broken: success on invalid input.
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 # Passes both tests.
11037 rm -f conftest.err conftest.$ac_ext
11040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11041 rm -f conftest.err conftest.$ac_ext
11042 if $ac_preproc_ok; then
11047 ac_cv_prog_CXXCPP=$CXXCPP
11050 CXXCPP=$ac_cv_prog_CXXCPP
11052 ac_cv_prog_CXXCPP=$CXXCPP
11054 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11055 echo "${ECHO_T}$CXXCPP" >&6; }
11056 ac_preproc_ok=false
11057 for ac_cxx_preproc_warn_flag in '' yes
11059 # Use a header file that comes with gcc, so configuring glibc
11060 # with a fresh cross-compiler works.
11061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11062 # <limits.h> exists even on freestanding compilers.
11063 # On the NeXT, cc -E runs the code through the compiler's parser,
11064 # not just through cpp. "Syntax error" is here to catch this case.
11065 cat >conftest.$ac_ext <<_ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11072 # include <limits.h>
11074 # include <assert.h>
11078 if { (ac_try="$ac_cpp conftest.$ac_ext"
11079 case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11086 grep -v '^ *+' conftest.er1 >conftest.err
11088 cat conftest.err >&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } >/dev/null; then
11091 if test -s conftest.err; then
11092 ac_cpp_err=$ac_cxx_preproc_warn_flag
11093 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11100 if test -z "$ac_cpp_err"; then
11103 echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11106 # Broken: fails on valid input.
11110 rm -f conftest.err conftest.$ac_ext
11112 # OK, works on sane cases. Now check whether nonexistent headers
11113 # can be detected and how.
11114 cat >conftest.$ac_ext <<_ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h. */
11120 #include <ac_nonexistent.h>
11122 if { (ac_try="$ac_cpp conftest.$ac_ext"
11123 case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11130 grep -v '^ *+' conftest.er1 >conftest.err
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } >/dev/null; then
11135 if test -s conftest.err; then
11136 ac_cpp_err=$ac_cxx_preproc_warn_flag
11137 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11144 if test -z "$ac_cpp_err"; then
11145 # Broken: success on invalid input.
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 # Passes both tests.
11156 rm -f conftest.err conftest.$ac_ext
11159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11160 rm -f conftest.err conftest.$ac_ext
11161 if $ac_preproc_ok; then
11164 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11165 See \`config.log' for more details." >&5
11166 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11167 See \`config.log' for more details." >&2;}
11168 { (exit 1); exit 1; }; }
11172 ac_cpp='$CXXCPP $CPPFLAGS'
11173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11179 for ac_header in cxxabi.h
11181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 ac_res=`eval echo '${'$as_ac_Header'}'`
11189 { echo "$as_me:$LINENO: result: $ac_res" >&5
11190 echo "${ECHO_T}$ac_res" >&6; }
11192 # Is the header compilable?
11193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11195 cat >conftest.$ac_ext <<_ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11201 $ac_includes_default
11202 #include <$ac_header>
11204 rm -f conftest.$ac_objext
11205 if { (ac_try="$ac_compile"
11206 case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_compile") 2>conftest.er1
11213 grep -v '^ *+' conftest.er1 >conftest.err
11215 cat conftest.err >&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } &&
11218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11219 { (case "(($ac_try" in
11220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221 *) ac_try_echo=$ac_try;;
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224 (eval "$ac_try") 2>&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; } &&
11228 { ac_try='test -s conftest.$ac_objext'
11229 { (case "(($ac_try" in
11230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231 *) ac_try_echo=$ac_try;;
11233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234 (eval "$ac_try") 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }; then
11238 ac_header_compiler=yes
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11243 ac_header_compiler=no
11246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11248 echo "${ECHO_T}$ac_header_compiler" >&6; }
11250 # Is the header present?
11251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11253 cat >conftest.$ac_ext <<_ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 #include <$ac_header>
11261 if { (ac_try="$ac_cpp conftest.$ac_ext"
11262 case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11269 grep -v '^ *+' conftest.er1 >conftest.err
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } >/dev/null; then
11274 if test -s conftest.err; then
11275 ac_cpp_err=$ac_cxx_preproc_warn_flag
11276 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11283 if test -z "$ac_cpp_err"; then
11284 ac_header_preproc=yes
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 ac_header_preproc=no
11292 rm -f conftest.err conftest.$ac_ext
11293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11294 echo "${ECHO_T}$ac_header_preproc" >&6; }
11296 # So? What about this header?
11297 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11303 ac_header_preproc=yes
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11319 ## ------------------------------------ ##
11320 ## Report this to http://llvm.org/bugs/ ##
11321 ## ------------------------------------ ##
11323 ) | sed "s/^/$as_me: WARNING: /" >&2
11326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 eval "$as_ac_Header=\$ac_header_preproc"
11333 ac_res=`eval echo '${'$as_ac_Header'}'`
11334 { echo "$as_me:$LINENO: result: $ac_res" >&5
11335 echo "${ECHO_T}$ac_res" >&6; }
11338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11339 cat >>confdefs.h <<_ACEOF
11340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11348 ac_cpp='$CPP $CPPFLAGS'
11349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11358 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 ac_res=`eval echo '${'$as_ac_Header'}'`
11368 { echo "$as_me:$LINENO: result: $ac_res" >&5
11369 echo "${ECHO_T}$ac_res" >&6; }
11371 # Is the header compilable?
11372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11374 cat >conftest.$ac_ext <<_ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 $ac_includes_default
11381 #include <$ac_header>
11383 rm -f conftest.$ac_objext
11384 if { (ac_try="$ac_compile"
11385 case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_compile") 2>conftest.er1
11392 grep -v '^ *+' conftest.er1 >conftest.err
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11398 { (case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_try") 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest.$ac_objext'
11408 { (case "(($ac_try" in
11409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11410 *) ac_try_echo=$ac_try;;
11412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11413 (eval "$ac_try") 2>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; }; then
11417 ac_header_compiler=yes
11419 echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11422 ac_header_compiler=no
11425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11427 echo "${ECHO_T}$ac_header_compiler" >&6; }
11429 # Is the header present?
11430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11432 cat >conftest.$ac_ext <<_ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 #include <$ac_header>
11440 if { (ac_try="$ac_cpp conftest.$ac_ext"
11441 case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11448 grep -v '^ *+' conftest.er1 >conftest.err
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } >/dev/null; then
11453 if test -s conftest.err; then
11454 ac_cpp_err=$ac_c_preproc_warn_flag
11455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11462 if test -z "$ac_cpp_err"; then
11463 ac_header_preproc=yes
11465 echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11468 ac_header_preproc=no
11471 rm -f conftest.err conftest.$ac_ext
11472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11473 echo "${ECHO_T}$ac_header_preproc" >&6; }
11475 # So? What about this header?
11476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11482 ac_header_preproc=yes
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11498 ## ------------------------------------ ##
11499 ## Report this to http://llvm.org/bugs/ ##
11500 ## ------------------------------------ ##
11502 ) | sed "s/^/$as_me: WARNING: /" >&2
11505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 eval "$as_ac_Header=\$ac_header_preproc"
11512 ac_res=`eval echo '${'$as_ac_Header'}'`
11513 { echo "$as_me:$LINENO: result: $ac_res" >&5
11514 echo "${ECHO_T}$ac_res" >&6; }
11517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11518 cat >>confdefs.h <<_ACEOF
11519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11532 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 ac_res=`eval echo '${'$as_ac_Header'}'`
11542 { echo "$as_me:$LINENO: result: $ac_res" >&5
11543 echo "${ECHO_T}$ac_res" >&6; }
11545 # Is the header compilable?
11546 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11548 cat >conftest.$ac_ext <<_ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11554 $ac_includes_default
11555 #include <$ac_header>
11557 rm -f conftest.$ac_objext
11558 if { (ac_try="$ac_compile"
11559 case "(($ac_try" in
11560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564 (eval "$ac_compile") 2>conftest.er1
11566 grep -v '^ *+' conftest.er1 >conftest.err
11568 cat conftest.err >&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } &&
11571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11572 { (case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_try") 2>&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; } &&
11581 { ac_try='test -s conftest.$ac_objext'
11582 { (case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_try") 2>&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; }; then
11591 ac_header_compiler=yes
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11596 ac_header_compiler=no
11599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11601 echo "${ECHO_T}$ac_header_compiler" >&6; }
11603 # Is the header present?
11604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11606 cat >conftest.$ac_ext <<_ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 #include <$ac_header>
11614 if { (ac_try="$ac_cpp conftest.$ac_ext"
11615 case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11622 grep -v '^ *+' conftest.er1 >conftest.err
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } >/dev/null; then
11627 if test -s conftest.err; then
11628 ac_cpp_err=$ac_c_preproc_warn_flag
11629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11636 if test -z "$ac_cpp_err"; then
11637 ac_header_preproc=yes
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 ac_header_preproc=no
11645 rm -f conftest.err conftest.$ac_ext
11646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11647 echo "${ECHO_T}$ac_header_preproc" >&6; }
11649 # So? What about this header?
11650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11656 ac_header_preproc=yes
11659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11672 ## ------------------------------------ ##
11673 ## Report this to http://llvm.org/bugs/ ##
11674 ## ------------------------------------ ##
11676 ) | sed "s/^/$as_me: WARNING: /" >&2
11679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11684 eval "$as_ac_Header=\$ac_header_preproc"
11686 ac_res=`eval echo '${'$as_ac_Header'}'`
11687 { echo "$as_me:$LINENO: result: $ac_res" >&5
11688 echo "${ECHO_T}$ac_res" >&6; }
11691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11692 cat >>confdefs.h <<_ACEOF
11693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11701 for ac_header in utime.h
11703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11710 ac_res=`eval echo '${'$as_ac_Header'}'`
11711 { echo "$as_me:$LINENO: result: $ac_res" >&5
11712 echo "${ECHO_T}$ac_res" >&6; }
11714 # Is the header compilable?
11715 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11717 cat >conftest.$ac_ext <<_ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 $ac_includes_default
11724 #include <$ac_header>
11726 rm -f conftest.$ac_objext
11727 if { (ac_try="$ac_compile"
11728 case "(($ac_try" in
11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 *) ac_try_echo=$ac_try;;
11732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733 (eval "$ac_compile") 2>conftest.er1
11735 grep -v '^ *+' conftest.er1 >conftest.err
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11741 { (case "(($ac_try" in
11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746 (eval "$ac_try") 2>&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; } &&
11750 { ac_try='test -s conftest.$ac_objext'
11751 { (case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11756 (eval "$ac_try") 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11760 ac_header_compiler=yes
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11765 ac_header_compiler=no
11768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11769 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11770 echo "${ECHO_T}$ac_header_compiler" >&6; }
11772 # Is the header present?
11773 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11775 cat >conftest.$ac_ext <<_ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 #include <$ac_header>
11783 if { (ac_try="$ac_cpp conftest.$ac_ext"
11784 case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11791 grep -v '^ *+' conftest.er1 >conftest.err
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } >/dev/null; then
11796 if test -s conftest.err; then
11797 ac_cpp_err=$ac_c_preproc_warn_flag
11798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11805 if test -z "$ac_cpp_err"; then
11806 ac_header_preproc=yes
11808 echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.$ac_ext >&5
11811 ac_header_preproc=no
11814 rm -f conftest.err conftest.$ac_ext
11815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11816 echo "${ECHO_T}$ac_header_preproc" >&6; }
11818 # So? What about this header?
11819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11825 ac_header_preproc=yes
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11835 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11841 ## ------------------------------------ ##
11842 ## Report this to http://llvm.org/bugs/ ##
11843 ## ------------------------------------ ##
11845 ) | sed "s/^/$as_me: WARNING: /" >&2
11848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 eval "$as_ac_Header=\$ac_header_preproc"
11855 ac_res=`eval echo '${'$as_ac_Header'}'`
11856 { echo "$as_me:$LINENO: result: $ac_res" >&5
11857 echo "${ECHO_T}$ac_res" >&6; }
11860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11861 cat >>confdefs.h <<_ACEOF
11862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11874 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11881 echo $ECHO_N "(cached) $ECHO_C" >&6
11883 ac_res=`eval echo '${'$as_ac_Header'}'`
11884 { echo "$as_me:$LINENO: result: $ac_res" >&5
11885 echo "${ECHO_T}$ac_res" >&6; }
11887 # Is the header compilable?
11888 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11890 cat >conftest.$ac_ext <<_ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 $ac_includes_default
11897 #include <$ac_header>
11899 rm -f conftest.$ac_objext
11900 if { (ac_try="$ac_compile"
11901 case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_compile") 2>conftest.er1
11908 grep -v '^ *+' conftest.er1 >conftest.err
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11914 { (case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_try") 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; } &&
11923 { ac_try='test -s conftest.$ac_objext'
11924 { (case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_try") 2>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 ac_header_compiler=yes
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 ac_header_compiler=no
11941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11943 echo "${ECHO_T}$ac_header_compiler" >&6; }
11945 # Is the header present?
11946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11948 cat >conftest.$ac_ext <<_ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 #include <$ac_header>
11956 if { (ac_try="$ac_cpp conftest.$ac_ext"
11957 case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11964 grep -v '^ *+' conftest.er1 >conftest.err
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } >/dev/null; then
11969 if test -s conftest.err; then
11970 ac_cpp_err=$ac_c_preproc_warn_flag
11971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11978 if test -z "$ac_cpp_err"; then
11979 ac_header_preproc=yes
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 ac_header_preproc=no
11987 rm -f conftest.err conftest.$ac_ext
11988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11989 echo "${ECHO_T}$ac_header_preproc" >&6; }
11991 # So? What about this header?
11992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11998 ac_header_preproc=yes
12001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12014 ## ------------------------------------ ##
12015 ## Report this to http://llvm.org/bugs/ ##
12016 ## ------------------------------------ ##
12018 ) | sed "s/^/$as_me: WARNING: /" >&2
12021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 eval "$as_ac_Header=\$ac_header_preproc"
12028 ac_res=`eval echo '${'$as_ac_Header'}'`
12029 { echo "$as_me:$LINENO: result: $ac_res" >&5
12030 echo "${ECHO_T}$ac_res" >&6; }
12033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12034 cat >>confdefs.h <<_ACEOF
12035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12045 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 ac_res=`eval echo '${'$as_ac_Header'}'`
12055 { echo "$as_me:$LINENO: result: $ac_res" >&5
12056 echo "${ECHO_T}$ac_res" >&6; }
12058 # Is the header compilable?
12059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12061 cat >conftest.$ac_ext <<_ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12067 $ac_includes_default
12068 #include <$ac_header>
12070 rm -f conftest.$ac_objext
12071 if { (ac_try="$ac_compile"
12072 case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_compile") 2>conftest.er1
12079 grep -v '^ *+' conftest.er1 >conftest.err
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
12084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085 { (case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_try") 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; } &&
12094 { ac_try='test -s conftest.$ac_objext'
12095 { (case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100 (eval "$ac_try") 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_header_compiler=yes
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 ac_header_compiler=no
12112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12114 echo "${ECHO_T}$ac_header_compiler" >&6; }
12116 # Is the header present?
12117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12119 cat >conftest.$ac_ext <<_ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 #include <$ac_header>
12127 if { (ac_try="$ac_cpp conftest.$ac_ext"
12128 case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12135 grep -v '^ *+' conftest.er1 >conftest.err
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } >/dev/null; then
12140 if test -s conftest.err; then
12141 ac_cpp_err=$ac_c_preproc_warn_flag
12142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12149 if test -z "$ac_cpp_err"; then
12150 ac_header_preproc=yes
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 ac_header_preproc=no
12158 rm -f conftest.err conftest.$ac_ext
12159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12160 echo "${ECHO_T}$ac_header_preproc" >&6; }
12162 # So? What about this header?
12163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12169 ac_header_preproc=yes
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12185 ## ------------------------------------ ##
12186 ## Report this to http://llvm.org/bugs/ ##
12187 ## ------------------------------------ ##
12189 ) | sed "s/^/$as_me: WARNING: /" >&2
12192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 eval "$as_ac_Header=\$ac_header_preproc"
12199 ac_res=`eval echo '${'$as_ac_Header'}'`
12200 { echo "$as_me:$LINENO: result: $ac_res" >&5
12201 echo "${ECHO_T}$ac_res" >&6; }
12204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12205 cat >>confdefs.h <<_ACEOF
12206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12214 for ac_header in valgrind/valgrind.h
12216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 ac_res=`eval echo '${'$as_ac_Header'}'`
12224 { echo "$as_me:$LINENO: result: $ac_res" >&5
12225 echo "${ECHO_T}$ac_res" >&6; }
12227 # Is the header compilable?
12228 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12230 cat >conftest.$ac_ext <<_ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 $ac_includes_default
12237 #include <$ac_header>
12239 rm -f conftest.$ac_objext
12240 if { (ac_try="$ac_compile"
12241 case "(($ac_try" in
12242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243 *) ac_try_echo=$ac_try;;
12245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246 (eval "$ac_compile") 2>conftest.er1
12248 grep -v '^ *+' conftest.er1 >conftest.err
12250 cat conftest.err >&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } &&
12253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12254 { (case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_try") 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; } &&
12263 { ac_try='test -s conftest.$ac_objext'
12264 { (case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269 (eval "$ac_try") 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_header_compiler=yes
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12278 ac_header_compiler=no
12281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12283 echo "${ECHO_T}$ac_header_compiler" >&6; }
12285 # Is the header present?
12286 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12288 cat >conftest.$ac_ext <<_ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294 #include <$ac_header>
12296 if { (ac_try="$ac_cpp conftest.$ac_ext"
12297 case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12304 grep -v '^ *+' conftest.er1 >conftest.err
12306 cat conftest.err >&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } >/dev/null; then
12309 if test -s conftest.err; then
12310 ac_cpp_err=$ac_c_preproc_warn_flag
12311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12318 if test -z "$ac_cpp_err"; then
12319 ac_header_preproc=yes
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12324 ac_header_preproc=no
12327 rm -f conftest.err conftest.$ac_ext
12328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12329 echo "${ECHO_T}$ac_header_preproc" >&6; }
12331 # So? What about this header?
12332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12338 ac_header_preproc=yes
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12354 ## ------------------------------------ ##
12355 ## Report this to http://llvm.org/bugs/ ##
12356 ## ------------------------------------ ##
12358 ) | sed "s/^/$as_me: WARNING: /" >&2
12361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12366 eval "$as_ac_Header=\$ac_header_preproc"
12368 ac_res=`eval echo '${'$as_ac_Header'}'`
12369 { echo "$as_me:$LINENO: result: $ac_res" >&5
12370 echo "${ECHO_T}$ac_res" >&6; }
12373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12374 cat >>confdefs.h <<_ACEOF
12375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12383 for ac_header in fenv.h
12385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 ac_res=`eval echo '${'$as_ac_Header'}'`
12393 { echo "$as_me:$LINENO: result: $ac_res" >&5
12394 echo "${ECHO_T}$ac_res" >&6; }
12396 # Is the header compilable?
12397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12399 cat >conftest.$ac_ext <<_ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12405 $ac_includes_default
12406 #include <$ac_header>
12408 rm -f conftest.$ac_objext
12409 if { (ac_try="$ac_compile"
12410 case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_compile") 2>conftest.er1
12417 grep -v '^ *+' conftest.er1 >conftest.err
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } &&
12422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12423 { (case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_try") 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest.$ac_objext'
12433 { (case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_try") 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_header_compiler=yes
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_header_compiler=no
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12452 echo "${ECHO_T}$ac_header_compiler" >&6; }
12454 # Is the header present?
12455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12457 cat >conftest.$ac_ext <<_ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 #include <$ac_header>
12465 if { (ac_try="$ac_cpp conftest.$ac_ext"
12466 case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12473 grep -v '^ *+' conftest.er1 >conftest.err
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } >/dev/null; then
12478 if test -s conftest.err; then
12479 ac_cpp_err=$ac_c_preproc_warn_flag
12480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12487 if test -z "$ac_cpp_err"; then
12488 ac_header_preproc=yes
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 ac_header_preproc=no
12496 rm -f conftest.err conftest.$ac_ext
12497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12498 echo "${ECHO_T}$ac_header_preproc" >&6; }
12500 # So? What about this header?
12501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12507 ac_header_preproc=yes
12510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12523 ## ------------------------------------ ##
12524 ## Report this to http://llvm.org/bugs/ ##
12525 ## ------------------------------------ ##
12527 ) | sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
12537 ac_res=`eval echo '${'$as_ac_Header'}'`
12538 { echo "$as_me:$LINENO: result: $ac_res" >&5
12539 echo "${ECHO_T}$ac_res" >&6; }
12542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12543 cat >>confdefs.h <<_ACEOF
12544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12551 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12552 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12553 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12556 cat >conftest.$ac_ext <<_ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12567 #ifndef FE_ALL_EXCEPT
12568 char *p = (char *) FE_ALL_EXCEPT;
12576 rm -f conftest.$ac_objext
12577 if { (ac_try="$ac_compile"
12578 case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_compile") 2>conftest.er1
12585 grep -v '^ *+' conftest.er1 >conftest.err
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12591 { (case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_try") 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest.$ac_objext'
12601 { (case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_try") 2>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12610 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12612 echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12615 ac_cv_have_decl_FE_ALL_EXCEPT=no
12618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12620 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12621 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12622 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12624 cat >>confdefs.h <<_ACEOF
12625 #define HAVE_DECL_FE_ALL_EXCEPT 1
12630 cat >>confdefs.h <<_ACEOF
12631 #define HAVE_DECL_FE_ALL_EXCEPT 0
12636 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12637 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12638 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 cat >conftest.$ac_ext <<_ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12653 char *p = (char *) FE_INEXACT;
12661 rm -f conftest.$ac_objext
12662 if { (ac_try="$ac_compile"
12663 case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_compile") 2>conftest.er1
12670 grep -v '^ *+' conftest.er1 >conftest.err
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12676 { (case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_try") 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest.$ac_objext'
12686 { (case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_try") 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 ac_cv_have_decl_FE_INEXACT=yes
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12700 ac_cv_have_decl_FE_INEXACT=no
12703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12705 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12706 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12707 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12709 cat >>confdefs.h <<_ACEOF
12710 #define HAVE_DECL_FE_INEXACT 1
12715 cat >>confdefs.h <<_ACEOF
12716 #define HAVE_DECL_FE_INEXACT 0
12723 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12725 for ac_header in pthread.h
12727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 ac_res=`eval echo '${'$as_ac_Header'}'`
12735 { echo "$as_me:$LINENO: result: $ac_res" >&5
12736 echo "${ECHO_T}$ac_res" >&6; }
12738 # Is the header compilable?
12739 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12741 cat >conftest.$ac_ext <<_ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h. */
12747 $ac_includes_default
12748 #include <$ac_header>
12750 rm -f conftest.$ac_objext
12751 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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 ac_header_compiler=yes
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 ac_header_compiler=no
12792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12794 echo "${ECHO_T}$ac_header_compiler" >&6; }
12796 # Is the header present?
12797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12799 cat >conftest.$ac_ext <<_ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12805 #include <$ac_header>
12807 if { (ac_try="$ac_cpp conftest.$ac_ext"
12808 case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12815 grep -v '^ *+' conftest.er1 >conftest.err
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } >/dev/null; then
12820 if test -s conftest.err; then
12821 ac_cpp_err=$ac_c_preproc_warn_flag
12822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12829 if test -z "$ac_cpp_err"; then
12830 ac_header_preproc=yes
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12835 ac_header_preproc=no
12838 rm -f conftest.err conftest.$ac_ext
12839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12840 echo "${ECHO_T}$ac_header_preproc" >&6; }
12842 # So? What about this header?
12843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12849 ac_header_preproc=yes
12852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12865 ## ------------------------------------ ##
12866 ## Report this to http://llvm.org/bugs/ ##
12867 ## ------------------------------------ ##
12869 ) | sed "s/^/$as_me: WARNING: /" >&2
12872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 eval "$as_ac_Header=\$ac_header_preproc"
12879 ac_res=`eval echo '${'$as_ac_Header'}'`
12880 { echo "$as_me:$LINENO: result: $ac_res" >&5
12881 echo "${ECHO_T}$ac_res" >&6; }
12884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12885 cat >>confdefs.h <<_ACEOF
12886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12901 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12903 for ac_header in zlib.h
12905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12912 ac_res=`eval echo '${'$as_ac_Header'}'`
12913 { echo "$as_me:$LINENO: result: $ac_res" >&5
12914 echo "${ECHO_T}$ac_res" >&6; }
12916 # Is the header compilable?
12917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12919 cat >conftest.$ac_ext <<_ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 $ac_includes_default
12926 #include <$ac_header>
12928 rm -f conftest.$ac_objext
12929 if { (ac_try="$ac_compile"
12930 case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_compile") 2>conftest.er1
12937 grep -v '^ *+' conftest.er1 >conftest.err
12939 cat conftest.err >&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); } &&
12942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12943 { (case "(($ac_try" in
12944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945 *) ac_try_echo=$ac_try;;
12947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948 (eval "$ac_try") 2>&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; } &&
12952 { ac_try='test -s conftest.$ac_objext'
12953 { (case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_try") 2>&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_header_compiler=yes
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12967 ac_header_compiler=no
12970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12972 echo "${ECHO_T}$ac_header_compiler" >&6; }
12974 # Is the header present?
12975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12977 cat >conftest.$ac_ext <<_ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12983 #include <$ac_header>
12985 if { (ac_try="$ac_cpp conftest.$ac_ext"
12986 case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12993 grep -v '^ *+' conftest.er1 >conftest.err
12995 cat conftest.err >&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } >/dev/null; then
12998 if test -s conftest.err; then
12999 ac_cpp_err=$ac_c_preproc_warn_flag
13000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13007 if test -z "$ac_cpp_err"; then
13008 ac_header_preproc=yes
13010 echo "$as_me: failed program was:" >&5
13011 sed 's/^/| /' conftest.$ac_ext >&5
13013 ac_header_preproc=no
13016 rm -f conftest.err conftest.$ac_ext
13017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13018 echo "${ECHO_T}$ac_header_preproc" >&6; }
13020 # So? What about this header?
13021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13027 ac_header_preproc=yes
13030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13043 ## ------------------------------------ ##
13044 ## Report this to http://llvm.org/bugs/ ##
13045 ## ------------------------------------ ##
13047 ) | sed "s/^/$as_me: WARNING: /" >&2
13050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13055 eval "$as_ac_Header=\$ac_header_preproc"
13057 ac_res=`eval echo '${'$as_ac_Header'}'`
13058 { echo "$as_me:$LINENO: result: $ac_res" >&5
13059 echo "${ECHO_T}$ac_res" >&6; }
13062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13063 cat >>confdefs.h <<_ACEOF
13064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13080 if test "$llvm_cv_enable_libffi" = "yes" ; then
13083 for ac_header in ffi.h ffi/ffi.h
13085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13092 ac_res=`eval echo '${'$as_ac_Header'}'`
13093 { echo "$as_me:$LINENO: result: $ac_res" >&5
13094 echo "${ECHO_T}$ac_res" >&6; }
13096 # Is the header compilable?
13097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13099 cat >conftest.$ac_ext <<_ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13105 $ac_includes_default
13106 #include <$ac_header>
13108 rm -f conftest.$ac_objext
13109 if { (ac_try="$ac_compile"
13110 case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_compile") 2>conftest.er1
13117 grep -v '^ *+' conftest.er1 >conftest.err
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
13122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13123 { (case "(($ac_try" in
13124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125 *) ac_try_echo=$ac_try;;
13127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13128 (eval "$ac_try") 2>&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; } &&
13132 { ac_try='test -s conftest.$ac_objext'
13133 { (case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_try") 2>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; }; then
13142 ac_header_compiler=yes
13144 echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13147 ac_header_compiler=no
13150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13152 echo "${ECHO_T}$ac_header_compiler" >&6; }
13154 # Is the header present?
13155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13157 cat >conftest.$ac_ext <<_ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13163 #include <$ac_header>
13165 if { (ac_try="$ac_cpp conftest.$ac_ext"
13166 case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13173 grep -v '^ *+' conftest.er1 >conftest.err
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } >/dev/null; then
13178 if test -s conftest.err; then
13179 ac_cpp_err=$ac_c_preproc_warn_flag
13180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13187 if test -z "$ac_cpp_err"; then
13188 ac_header_preproc=yes
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ac_header_preproc=no
13196 rm -f conftest.err conftest.$ac_ext
13197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13198 echo "${ECHO_T}$ac_header_preproc" >&6; }
13200 # So? What about this header?
13201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13207 ac_header_preproc=yes
13210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13223 ## ------------------------------------ ##
13224 ## Report this to http://llvm.org/bugs/ ##
13225 ## ------------------------------------ ##
13227 ) | sed "s/^/$as_me: WARNING: /" >&2
13230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 eval "$as_ac_Header=\$ac_header_preproc"
13237 ac_res=`eval echo '${'$as_ac_Header'}'`
13238 { echo "$as_me:$LINENO: result: $ac_res" >&5
13239 echo "${ECHO_T}$ac_res" >&6; }
13242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13243 cat >>confdefs.h <<_ACEOF
13244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13254 for ac_header in CrashReporterClient.h
13256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13263 ac_res=`eval echo '${'$as_ac_Header'}'`
13264 { echo "$as_me:$LINENO: result: $ac_res" >&5
13265 echo "${ECHO_T}$ac_res" >&6; }
13267 # Is the header compilable?
13268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13270 cat >conftest.$ac_ext <<_ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276 $ac_includes_default
13277 #include <$ac_header>
13279 rm -f conftest.$ac_objext
13280 if { (ac_try="$ac_compile"
13281 case "(($ac_try" in
13282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283 *) ac_try_echo=$ac_try;;
13285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286 (eval "$ac_compile") 2>conftest.er1
13288 grep -v '^ *+' conftest.er1 >conftest.err
13290 cat conftest.err >&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } &&
13293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13294 { (case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_try") 2>&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; } &&
13303 { ac_try='test -s conftest.$ac_objext'
13304 { (case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_try") 2>&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; }; then
13313 ac_header_compiler=yes
13315 echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13318 ac_header_compiler=no
13321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13323 echo "${ECHO_T}$ac_header_compiler" >&6; }
13325 # Is the header present?
13326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13328 cat >conftest.$ac_ext <<_ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13334 #include <$ac_header>
13336 if { (ac_try="$ac_cpp conftest.$ac_ext"
13337 case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13344 grep -v '^ *+' conftest.er1 >conftest.err
13346 cat conftest.err >&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } >/dev/null; then
13349 if test -s conftest.err; then
13350 ac_cpp_err=$ac_c_preproc_warn_flag
13351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13358 if test -z "$ac_cpp_err"; then
13359 ac_header_preproc=yes
13361 echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13364 ac_header_preproc=no
13367 rm -f conftest.err conftest.$ac_ext
13368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13369 echo "${ECHO_T}$ac_header_preproc" >&6; }
13371 # So? What about this header?
13372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13378 ac_header_preproc=yes
13381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13394 ## ------------------------------------ ##
13395 ## Report this to http://llvm.org/bugs/ ##
13396 ## ------------------------------------ ##
13398 ) | sed "s/^/$as_me: WARNING: /" >&2
13401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13406 eval "$as_ac_Header=\$ac_header_preproc"
13408 ac_res=`eval echo '${'$as_ac_Header'}'`
13409 { echo "$as_me:$LINENO: result: $ac_res" >&5
13410 echo "${ECHO_T}$ac_res" >&6; }
13413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13414 cat >>confdefs.h <<_ACEOF
13415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13423 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13424 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13425 cat >conftest.$ac_ext <<_ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h. */
13433 extern const char *__crashreporter_info__;
13435 __crashreporter_info__ = "test";
13441 rm -f conftest.$ac_objext conftest$ac_exeext
13442 if { (ac_try="$ac_link"
13443 case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_link") 2>conftest.er1
13450 grep -v '^ *+' conftest.er1 >conftest.err
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13456 { (case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_try") 2>&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; } &&
13465 { ac_try='test -s conftest$ac_exeext'
13466 { (case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_try") 2>&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13476 { echo "$as_me:$LINENO: result: yes" >&5
13477 echo "${ECHO_T}yes" >&6; }
13479 cat >>confdefs.h <<\_ACEOF
13480 #define HAVE_CRASHREPORTER_INFO 1
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13489 { echo "$as_me:$LINENO: result: no" >&5
13490 echo "${ECHO_T}no" >&6; }
13492 cat >>confdefs.h <<\_ACEOF
13493 #define HAVE_CRASHREPORTER_INFO 0
13499 rm -f core conftest.err conftest.$ac_objext \
13500 conftest$ac_exeext conftest.$ac_ext
13504 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13505 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13506 if test "${ac_cv_huge_val_sanity+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 ac_cpp='$CXXCPP $CPPFLAGS'
13512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13516 ac_save_CXXFLAGS=$CXXFLAGS
13517 CXXFLAGS="$CXXFLAGS -pedantic"
13518 if test "$cross_compiling" = yes; then
13519 ac_cv_huge_val_sanity=yes
13521 cat >conftest.$ac_ext <<_ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13531 double x = HUGE_VAL; return x != x;
13536 rm -f conftest$ac_exeext
13537 if { (ac_try="$ac_link"
13538 case "(($ac_try" in
13539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540 *) ac_try_echo=$ac_try;;
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543 (eval "$ac_link") 2>&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13547 { (case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_try") 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 ac_cv_huge_val_sanity=yes
13558 echo "$as_me: program exited with status $ac_status" >&5
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13562 ( exit $ac_status )
13563 ac_cv_huge_val_sanity=no
13565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13569 CXXFLAGS=$ac_save_CXXFLAGS
13571 ac_cpp='$CPP $CPPFLAGS'
13572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13578 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13579 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13580 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13583 { echo "$as_me:$LINENO: checking for pid_t" >&5
13584 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13585 if test "${ac_cv_type_pid_t+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 cat >conftest.$ac_ext <<_ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13594 $ac_includes_default
13595 typedef pid_t ac__type_new_;
13599 if ((ac__type_new_ *) 0)
13601 if (sizeof (ac__type_new_))
13607 rm -f conftest.$ac_objext
13608 if { (ac_try="$ac_compile"
13609 case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_compile") 2>conftest.er1
13616 grep -v '^ *+' conftest.er1 >conftest.err
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } &&
13621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13622 { (case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_try") 2>&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; } &&
13631 { ac_try='test -s conftest.$ac_objext'
13632 { (case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_try") 2>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
13641 ac_cv_type_pid_t=yes
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13646 ac_cv_type_pid_t=no
13649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13651 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13652 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13653 if test $ac_cv_type_pid_t = yes; then
13657 cat >>confdefs.h <<_ACEOF
13663 { echo "$as_me:$LINENO: checking for size_t" >&5
13664 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13665 if test "${ac_cv_type_size_t+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 cat >conftest.$ac_ext <<_ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13674 $ac_includes_default
13675 typedef size_t ac__type_new_;
13679 if ((ac__type_new_ *) 0)
13681 if (sizeof (ac__type_new_))
13687 rm -f conftest.$ac_objext
13688 if { (ac_try="$ac_compile"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_compile") 2>conftest.er1
13696 grep -v '^ *+' conftest.er1 >conftest.err
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13702 { (case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest.$ac_objext'
13712 { (case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_try") 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 ac_cv_type_size_t=yes
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13726 ac_cv_type_size_t=no
13729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13731 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13732 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13733 if test $ac_cv_type_size_t = yes; then
13737 cat >>confdefs.h <<_ACEOF
13738 #define size_t unsigned int
13744 cat >>confdefs.h <<_ACEOF
13745 #define RETSIGTYPE void
13748 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13749 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13750 if test "${ac_cv_struct_tm+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 cat >conftest.$ac_ext <<_ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13759 #include <sys/types.h>
13765 struct tm *tp; tp->tm_sec;
13770 rm -f conftest.$ac_objext
13771 if { (ac_try="$ac_compile"
13772 case "(($ac_try" in
13773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774 *) ac_try_echo=$ac_try;;
13776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13777 (eval "$ac_compile") 2>conftest.er1
13779 grep -v '^ *+' conftest.er1 >conftest.err
13781 cat conftest.err >&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } &&
13784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; } &&
13794 { ac_try='test -s conftest.$ac_objext'
13795 { (case "(($ac_try" in
13796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797 *) ac_try_echo=$ac_try;;
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_try") 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13804 ac_cv_struct_tm=time.h
13806 echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13809 ac_cv_struct_tm=sys/time.h
13812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13814 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13815 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13816 if test $ac_cv_struct_tm = sys/time.h; then
13818 cat >>confdefs.h <<\_ACEOF
13819 #define TM_IN_SYS_TIME 1
13824 { echo "$as_me:$LINENO: checking for int64_t" >&5
13825 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13826 if test "${ac_cv_type_int64_t+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 cat >conftest.$ac_ext <<_ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13835 $ac_includes_default
13836 typedef int64_t ac__type_new_;
13840 if ((ac__type_new_ *) 0)
13842 if (sizeof (ac__type_new_))
13848 rm -f conftest.$ac_objext
13849 if { (ac_try="$ac_compile"
13850 case "(($ac_try" in
13851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852 *) ac_try_echo=$ac_try;;
13854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855 (eval "$ac_compile") 2>conftest.er1
13857 grep -v '^ *+' conftest.er1 >conftest.err
13859 cat conftest.err >&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } &&
13862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13863 { (case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_try") 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; } &&
13872 { ac_try='test -s conftest.$ac_objext'
13873 { (case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878 (eval "$ac_try") 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 ac_cv_type_int64_t=yes
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13887 ac_cv_type_int64_t=no
13890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13893 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13894 if test $ac_cv_type_int64_t = yes; then
13896 cat >>confdefs.h <<_ACEOF
13897 #define HAVE_INT64_T 1
13902 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13903 echo "$as_me: error: Type int64_t required but not found" >&2;}
13904 { (exit 1); exit 1; }; }
13907 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13908 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13909 if test "${ac_cv_type_uint64_t+set}" = set; then
13910 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 cat >conftest.$ac_ext <<_ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13918 $ac_includes_default
13919 typedef uint64_t ac__type_new_;
13923 if ((ac__type_new_ *) 0)
13925 if (sizeof (ac__type_new_))
13931 rm -f conftest.$ac_objext
13932 if { (ac_try="$ac_compile"
13933 case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_compile") 2>conftest.er1
13940 grep -v '^ *+' conftest.er1 >conftest.err
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } &&
13945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13946 { (case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_try") 2>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; } &&
13955 { ac_try='test -s conftest.$ac_objext'
13956 { (case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_try") 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; }; then
13965 ac_cv_type_uint64_t=yes
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13970 ac_cv_type_uint64_t=no
13973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13975 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13976 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13977 if test $ac_cv_type_uint64_t = yes; then
13979 cat >>confdefs.h <<_ACEOF
13980 #define HAVE_UINT64_T 1
13985 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13986 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13987 if test "${ac_cv_type_u_int64_t+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 cat >conftest.$ac_ext <<_ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h. */
13996 $ac_includes_default
13997 typedef u_int64_t ac__type_new_;
14001 if ((ac__type_new_ *) 0)
14003 if (sizeof (ac__type_new_))
14009 rm -f conftest.$ac_objext
14010 if { (ac_try="$ac_compile"
14011 case "(($ac_try" in
14012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013 *) ac_try_echo=$ac_try;;
14015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016 (eval "$ac_compile") 2>conftest.er1
14018 grep -v '^ *+' conftest.er1 >conftest.err
14020 cat conftest.err >&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } &&
14023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14024 { (case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_try") 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; } &&
14033 { ac_try='test -s conftest.$ac_objext'
14034 { (case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_try") 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
14043 ac_cv_type_u_int64_t=yes
14045 echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048 ac_cv_type_u_int64_t=no
14051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14054 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14055 if test $ac_cv_type_u_int64_t = yes; then
14057 cat >>confdefs.h <<_ACEOF
14058 #define HAVE_U_INT64_T 1
14063 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14064 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14065 { (exit 1); exit 1; }; }
14079 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 cat >conftest.$ac_ext <<_ACEOF
14090 cat confdefs.h >>conftest.$ac_ext
14091 cat >>conftest.$ac_ext <<_ACEOF
14092 /* end confdefs.h. */
14093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14095 #define $ac_func innocuous_$ac_func
14097 /* System header to define __stub macros and hopefully few prototypes,
14098 which can conflict with char $ac_func (); below.
14099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14100 <limits.h> exists even on freestanding compilers. */
14103 # include <limits.h>
14105 # include <assert.h>
14110 /* Override any GCC internal prototype to avoid an error.
14111 Use char because int might match the return type of a GCC
14112 builtin and then its argument prototype would still apply. */
14117 /* The GNU C library defines this for functions which it implements
14118 to always fail with ENOSYS. Some functions are actually named
14119 something starting with __ and the normal name is an alias. */
14120 #if defined __stub_$ac_func || defined __stub___$ac_func
14127 return $ac_func ();
14132 rm -f conftest.$ac_objext conftest$ac_exeext
14133 if { (ac_try="$ac_link"
14134 case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_link") 2>conftest.er1
14141 grep -v '^ *+' conftest.er1 >conftest.err
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } &&
14146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14147 { (case "(($ac_try" in
14148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149 *) ac_try_echo=$ac_try;;
14151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152 (eval "$ac_try") 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; } &&
14156 { ac_try='test -s conftest$ac_exeext'
14157 { (case "(($ac_try" in
14158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_try") 2>&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; }; then
14166 eval "$as_ac_var=yes"
14168 echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14171 eval "$as_ac_var=no"
14174 rm -f core conftest.err conftest.$ac_objext \
14175 conftest$ac_exeext conftest.$ac_ext
14177 ac_res=`eval echo '${'$as_ac_var'}'`
14178 { echo "$as_me:$LINENO: result: $ac_res" >&5
14179 echo "${ECHO_T}$ac_res" >&6; }
14180 if test `eval echo '${'$as_ac_var'}'` = yes; then
14181 cat >>confdefs.h <<_ACEOF
14182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14192 for ac_func in powf fmodf strtof round
14194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14195 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 cat >conftest.$ac_ext <<_ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14208 #define $ac_func innocuous_$ac_func
14210 /* System header to define __stub macros and hopefully few prototypes,
14211 which can conflict with char $ac_func (); below.
14212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14213 <limits.h> exists even on freestanding compilers. */
14216 # include <limits.h>
14218 # include <assert.h>
14223 /* Override any GCC internal prototype to avoid an error.
14224 Use char because int might match the return type of a GCC
14225 builtin and then its argument prototype would still apply. */
14230 /* The GNU C library defines this for functions which it implements
14231 to always fail with ENOSYS. Some functions are actually named
14232 something starting with __ and the normal name is an alias. */
14233 #if defined __stub_$ac_func || defined __stub___$ac_func
14240 return $ac_func ();
14245 rm -f conftest.$ac_objext conftest$ac_exeext
14246 if { (ac_try="$ac_link"
14247 case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_link") 2>conftest.er1
14254 grep -v '^ *+' conftest.er1 >conftest.err
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
14259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14260 { (case "(($ac_try" in
14261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262 *) ac_try_echo=$ac_try;;
14264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265 (eval "$ac_try") 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try='test -s conftest$ac_exeext'
14270 { (case "(($ac_try" in
14271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272 *) ac_try_echo=$ac_try;;
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_try") 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 eval "$as_ac_var=yes"
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14284 eval "$as_ac_var=no"
14287 rm -f core conftest.err conftest.$ac_objext \
14288 conftest$ac_exeext conftest.$ac_ext
14290 ac_res=`eval echo '${'$as_ac_var'}'`
14291 { echo "$as_me:$LINENO: result: $ac_res" >&5
14292 echo "${ECHO_T}$ac_res" >&6; }
14293 if test `eval echo '${'$as_ac_var'}'` = yes; then
14294 cat >>confdefs.h <<_ACEOF
14295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14306 for ac_func in log log2 log10 exp exp2
14308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 cat >conftest.$ac_ext <<_ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h. */
14320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14322 #define $ac_func innocuous_$ac_func
14324 /* System header to define __stub macros and hopefully few prototypes,
14325 which can conflict with char $ac_func (); below.
14326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14327 <limits.h> exists even on freestanding compilers. */
14330 # include <limits.h>
14332 # include <assert.h>
14337 /* Override any GCC internal prototype to avoid an error.
14338 Use char because int might match the return type of a GCC
14339 builtin and then its argument prototype would still apply. */
14344 /* The GNU C library defines this for functions which it implements
14345 to always fail with ENOSYS. Some functions are actually named
14346 something starting with __ and the normal name is an alias. */
14347 #if defined __stub_$ac_func || defined __stub___$ac_func
14354 return $ac_func ();
14359 rm -f conftest.$ac_objext conftest$ac_exeext
14360 if { (ac_try="$ac_link"
14361 case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_link") 2>conftest.er1
14368 grep -v '^ *+' conftest.er1 >conftest.err
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14374 { (case "(($ac_try" in
14375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379 (eval "$ac_try") 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; } &&
14383 { ac_try='test -s conftest$ac_exeext'
14384 { (case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_try") 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 eval "$as_ac_var=yes"
14395 echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14398 eval "$as_ac_var=no"
14401 rm -f core conftest.err conftest.$ac_objext \
14402 conftest$ac_exeext conftest.$ac_ext
14404 ac_res=`eval echo '${'$as_ac_var'}'`
14405 { echo "$as_me:$LINENO: result: $ac_res" >&5
14406 echo "${ECHO_T}$ac_res" >&6; }
14407 if test `eval echo '${'$as_ac_var'}'` = yes; then
14408 cat >>confdefs.h <<_ACEOF
14409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14420 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14423 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 cat >conftest.$ac_ext <<_ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h. */
14434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14436 #define $ac_func innocuous_$ac_func
14438 /* System header to define __stub macros and hopefully few prototypes,
14439 which can conflict with char $ac_func (); below.
14440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14441 <limits.h> exists even on freestanding compilers. */
14444 # include <limits.h>
14446 # include <assert.h>
14451 /* Override any GCC internal prototype to avoid an error.
14452 Use char because int might match the return type of a GCC
14453 builtin and then its argument prototype would still apply. */
14458 /* The GNU C library defines this for functions which it implements
14459 to always fail with ENOSYS. Some functions are actually named
14460 something starting with __ and the normal name is an alias. */
14461 #if defined __stub_$ac_func || defined __stub___$ac_func
14468 return $ac_func ();
14473 rm -f conftest.$ac_objext conftest$ac_exeext
14474 if { (ac_try="$ac_link"
14475 case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480 (eval "$ac_link") 2>conftest.er1
14482 grep -v '^ *+' conftest.er1 >conftest.err
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } &&
14487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14488 { (case "(($ac_try" in
14489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490 *) ac_try_echo=$ac_try;;
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493 (eval "$ac_try") 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; } &&
14497 { ac_try='test -s conftest$ac_exeext'
14498 { (case "(($ac_try" in
14499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500 *) ac_try_echo=$ac_try;;
14502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14503 (eval "$ac_try") 2>&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }; then
14507 eval "$as_ac_var=yes"
14509 echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14512 eval "$as_ac_var=no"
14515 rm -f core conftest.err conftest.$ac_objext \
14516 conftest$ac_exeext conftest.$ac_ext
14518 ac_res=`eval echo '${'$as_ac_var'}'`
14519 { echo "$as_me:$LINENO: result: $ac_res" >&5
14520 echo "${ECHO_T}$ac_res" >&6; }
14521 if test `eval echo '${'$as_ac_var'}'` = yes; then
14522 cat >>confdefs.h <<_ACEOF
14523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14532 for ac_func in isatty mkdtemp mkstemp
14534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 cat >conftest.$ac_ext <<_ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14548 #define $ac_func innocuous_$ac_func
14550 /* System header to define __stub macros and hopefully few prototypes,
14551 which can conflict with char $ac_func (); below.
14552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14553 <limits.h> exists even on freestanding compilers. */
14556 # include <limits.h>
14558 # include <assert.h>
14563 /* Override any GCC internal prototype to avoid an error.
14564 Use char because int might match the return type of a GCC
14565 builtin and then its argument prototype would still apply. */
14570 /* The GNU C library defines this for functions which it implements
14571 to always fail with ENOSYS. Some functions are actually named
14572 something starting with __ and the normal name is an alias. */
14573 #if defined __stub_$ac_func || defined __stub___$ac_func
14580 return $ac_func ();
14585 rm -f conftest.$ac_objext conftest$ac_exeext
14586 if { (ac_try="$ac_link"
14587 case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_link") 2>conftest.er1
14594 grep -v '^ *+' conftest.er1 >conftest.err
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
14599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14600 { (case "(($ac_try" in
14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605 (eval "$ac_try") 2>&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; } &&
14609 { ac_try='test -s conftest$ac_exeext'
14610 { (case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_try") 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 eval "$as_ac_var=yes"
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 eval "$as_ac_var=no"
14627 rm -f core conftest.err conftest.$ac_objext \
14628 conftest$ac_exeext conftest.$ac_ext
14630 ac_res=`eval echo '${'$as_ac_var'}'`
14631 { echo "$as_me:$LINENO: result: $ac_res" >&5
14632 echo "${ECHO_T}$ac_res" >&6; }
14633 if test `eval echo '${'$as_ac_var'}'` = yes; then
14634 cat >>confdefs.h <<_ACEOF
14635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14647 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14650 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14655 cat >conftest.$ac_ext <<_ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14663 #define $ac_func innocuous_$ac_func
14665 /* System header to define __stub macros and hopefully few prototypes,
14666 which can conflict with char $ac_func (); below.
14667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14668 <limits.h> exists even on freestanding compilers. */
14671 # include <limits.h>
14673 # include <assert.h>
14678 /* Override any GCC internal prototype to avoid an error.
14679 Use char because int might match the return type of a GCC
14680 builtin and then its argument prototype would still apply. */
14685 /* The GNU C library defines this for functions which it implements
14686 to always fail with ENOSYS. Some functions are actually named
14687 something starting with __ and the normal name is an alias. */
14688 #if defined __stub_$ac_func || defined __stub___$ac_func
14695 return $ac_func ();
14700 rm -f conftest.$ac_objext conftest$ac_exeext
14701 if { (ac_try="$ac_link"
14702 case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_link") 2>conftest.er1
14709 grep -v '^ *+' conftest.er1 >conftest.err
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } &&
14714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14715 { (case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_try") 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; } &&
14724 { ac_try='test -s conftest$ac_exeext'
14725 { (case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_try") 2>&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; }; then
14734 eval "$as_ac_var=yes"
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14739 eval "$as_ac_var=no"
14742 rm -f core conftest.err conftest.$ac_objext \
14743 conftest$ac_exeext conftest.$ac_ext
14745 ac_res=`eval echo '${'$as_ac_var'}'`
14746 { echo "$as_me:$LINENO: result: $ac_res" >&5
14747 echo "${ECHO_T}$ac_res" >&6; }
14748 if test `eval echo '${'$as_ac_var'}'` = yes; then
14749 cat >>confdefs.h <<_ACEOF
14750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14759 for ac_func in strerror strerror_r setenv
14761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14762 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 cat >conftest.$ac_ext <<_ACEOF
14770 cat confdefs.h >>conftest.$ac_ext
14771 cat >>conftest.$ac_ext <<_ACEOF
14772 /* end confdefs.h. */
14773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14775 #define $ac_func innocuous_$ac_func
14777 /* System header to define __stub macros and hopefully few prototypes,
14778 which can conflict with char $ac_func (); below.
14779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14780 <limits.h> exists even on freestanding compilers. */
14783 # include <limits.h>
14785 # include <assert.h>
14790 /* Override any GCC internal prototype to avoid an error.
14791 Use char because int might match the return type of a GCC
14792 builtin and then its argument prototype would still apply. */
14797 /* The GNU C library defines this for functions which it implements
14798 to always fail with ENOSYS. Some functions are actually named
14799 something starting with __ and the normal name is an alias. */
14800 #if defined __stub_$ac_func || defined __stub___$ac_func
14807 return $ac_func ();
14812 rm -f conftest.$ac_objext conftest$ac_exeext
14813 if { (ac_try="$ac_link"
14814 case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_link") 2>conftest.er1
14821 grep -v '^ *+' conftest.er1 >conftest.err
14823 cat conftest.err >&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } &&
14826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14827 { (case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832 (eval "$ac_try") 2>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; } &&
14836 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14846 eval "$as_ac_var=yes"
14848 echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14851 eval "$as_ac_var=no"
14854 rm -f core conftest.err conftest.$ac_objext \
14855 conftest$ac_exeext conftest.$ac_ext
14857 ac_res=`eval echo '${'$as_ac_var'}'`
14858 { echo "$as_me:$LINENO: result: $ac_res" >&5
14859 echo "${ECHO_T}$ac_res" >&6; }
14860 if test `eval echo '${'$as_ac_var'}'` = yes; then
14861 cat >>confdefs.h <<_ACEOF
14862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14872 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 cat >conftest.$ac_ext <<_ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14888 #define $ac_func innocuous_$ac_func
14890 /* System header to define __stub macros and hopefully few prototypes,
14891 which can conflict with char $ac_func (); below.
14892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14893 <limits.h> exists even on freestanding compilers. */
14896 # include <limits.h>
14898 # include <assert.h>
14903 /* Override any GCC internal prototype to avoid an error.
14904 Use char because int might match the return type of a GCC
14905 builtin and then its argument prototype would still apply. */
14910 /* The GNU C library defines this for functions which it implements
14911 to always fail with ENOSYS. Some functions are actually named
14912 something starting with __ and the normal name is an alias. */
14913 #if defined __stub_$ac_func || defined __stub___$ac_func
14920 return $ac_func ();
14925 rm -f conftest.$ac_objext conftest$ac_exeext
14926 if { (ac_try="$ac_link"
14927 case "(($ac_try" in
14928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14929 *) ac_try_echo=$ac_try;;
14931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14932 (eval "$ac_link") 2>conftest.er1
14934 grep -v '^ *+' conftest.er1 >conftest.err
14936 cat conftest.err >&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
14939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14940 { (case "(($ac_try" in
14941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942 *) ac_try_echo=$ac_try;;
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945 (eval "$ac_try") 2>&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; } &&
14949 { ac_try='test -s conftest$ac_exeext'
14950 { (case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955 (eval "$ac_try") 2>&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14959 eval "$as_ac_var=yes"
14961 echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14964 eval "$as_ac_var=no"
14967 rm -f core conftest.err conftest.$ac_objext \
14968 conftest$ac_exeext conftest.$ac_ext
14970 ac_res=`eval echo '${'$as_ac_var'}'`
14971 { echo "$as_me:$LINENO: result: $ac_res" >&5
14972 echo "${ECHO_T}$ac_res" >&6; }
14973 if test `eval echo '${'$as_ac_var'}'` = yes; then
14974 cat >>confdefs.h <<_ACEOF
14975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14986 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14991 if { as_var=$as_ac_var; 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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15002 #define $ac_func innocuous_$ac_func
15004 /* System header to define __stub macros and hopefully few prototypes,
15005 which can conflict with char $ac_func (); below.
15006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15007 <limits.h> exists even on freestanding compilers. */
15010 # include <limits.h>
15012 # include <assert.h>
15017 /* Override any GCC internal prototype to avoid an error.
15018 Use char because int might match the return type of a GCC
15019 builtin and then its argument prototype would still apply. */
15024 /* The GNU C library defines this for functions which it implements
15025 to always fail with ENOSYS. Some functions are actually named
15026 something starting with __ and the normal name is an alias. */
15027 #if defined __stub_$ac_func || defined __stub___$ac_func
15034 return $ac_func ();
15039 rm -f conftest.$ac_objext conftest$ac_exeext
15040 if { (ac_try="$ac_link"
15041 case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046 (eval "$ac_link") 2>conftest.er1
15048 grep -v '^ *+' conftest.er1 >conftest.err
15050 cat conftest.err >&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } &&
15053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15054 { (case "(($ac_try" in
15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056 *) ac_try_echo=$ac_try;;
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059 (eval "$ac_try") 2>&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; } &&
15063 { ac_try='test -s conftest$ac_exeext'
15064 { (case "(($ac_try" in
15065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066 *) ac_try_echo=$ac_try;;
15068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069 (eval "$ac_try") 2>&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }; then
15073 eval "$as_ac_var=yes"
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 eval "$as_ac_var=no"
15081 rm -f core conftest.err conftest.$ac_objext \
15082 conftest$ac_exeext conftest.$ac_ext
15084 ac_res=`eval echo '${'$as_ac_var'}'`
15085 { echo "$as_me:$LINENO: result: $ac_res" >&5
15086 echo "${ECHO_T}$ac_res" >&6; }
15087 if test `eval echo '${'$as_ac_var'}'` = yes; then
15088 cat >>confdefs.h <<_ACEOF
15089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15097 for ac_func in futimes futimens
15099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15100 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15105 cat >conftest.$ac_ext <<_ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15113 #define $ac_func innocuous_$ac_func
15115 /* System header to define __stub macros and hopefully few prototypes,
15116 which can conflict with char $ac_func (); below.
15117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15118 <limits.h> exists even on freestanding compilers. */
15121 # include <limits.h>
15123 # include <assert.h>
15128 /* Override any GCC internal prototype to avoid an error.
15129 Use char because int might match the return type of a GCC
15130 builtin and then its argument prototype would still apply. */
15135 /* The GNU C library defines this for functions which it implements
15136 to always fail with ENOSYS. Some functions are actually named
15137 something starting with __ and the normal name is an alias. */
15138 #if defined __stub_$ac_func || defined __stub___$ac_func
15145 return $ac_func ();
15150 rm -f conftest.$ac_objext conftest$ac_exeext
15151 if { (ac_try="$ac_link"
15152 case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_link") 2>conftest.er1
15159 grep -v '^ *+' conftest.er1 >conftest.err
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
15164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15165 { (case "(($ac_try" in
15166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167 *) ac_try_echo=$ac_try;;
15169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15170 (eval "$ac_try") 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; } &&
15174 { ac_try='test -s conftest$ac_exeext'
15175 { (case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180 (eval "$ac_try") 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15184 eval "$as_ac_var=yes"
15186 echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15189 eval "$as_ac_var=no"
15192 rm -f core conftest.err conftest.$ac_objext \
15193 conftest$ac_exeext conftest.$ac_ext
15195 ac_res=`eval echo '${'$as_ac_var'}'`
15196 { echo "$as_me:$LINENO: result: $ac_res" >&5
15197 echo "${ECHO_T}$ac_res" >&6; }
15198 if test `eval echo '${'$as_ac_var'}'` = yes; then
15199 cat >>confdefs.h <<_ACEOF
15200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15206 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15207 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15208 if test "${llvm_cv_c_printf_a+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 ac_cpp='$CPP $CPPFLAGS'
15213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15217 if test "$cross_compiling" = yes; then
15218 llvmac_cv_c_printf_a=no
15220 cat >conftest.$ac_ext <<_ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h. */
15229 #include <stdlib.h>
15235 volatile double A, B;
15239 sprintf(Buffer, "%a", A);
15243 if (A != 0x1.999999999999ap-4)
15250 rm -f conftest$ac_exeext
15251 if { (ac_try="$ac_link"
15252 case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_link") 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15261 { (case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_try") 2>&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }; then
15270 llvm_cv_c_printf_a=yes
15272 echo "$as_me: program exited with status $ac_status" >&5
15273 echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15276 ( exit $ac_status )
15277 llvmac_cv_c_printf_a=no
15279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15284 ac_cpp='$CPP $CPPFLAGS'
15285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15290 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15291 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15292 if test "$llvm_cv_c_printf_a" = "yes"; then
15294 cat >>confdefs.h <<\_ACEOF
15295 #define HAVE_PRINTF_A 1
15302 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15303 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15304 if test "${ac_cv_func_rand48+set}" = set; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15309 ac_cpp='$CXXCPP $CPPFLAGS'
15310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15314 cat >conftest.$ac_ext <<_ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h. */
15320 #include <stdlib.h>
15324 srand48(0);lrand48();drand48();
15329 rm -f conftest.$ac_objext
15330 if { (ac_try="$ac_compile"
15331 case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_compile") 2>conftest.er1
15338 grep -v '^ *+' conftest.er1 >conftest.err
15340 cat conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } &&
15343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15344 { (case "(($ac_try" in
15345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346 *) ac_try_echo=$ac_try;;
15348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349 (eval "$ac_try") 2>&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; } &&
15353 { ac_try='test -s conftest.$ac_objext'
15354 { (case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_try") 2>&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); }; }; then
15363 ac_cv_func_rand48=yes
15365 echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15368 ac_cv_func_rand48=no
15371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15373 ac_cpp='$CPP $CPPFLAGS'
15374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15380 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15381 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15383 if test "$ac_cv_func_rand48" = "yes" ; then
15385 cat >>confdefs.h <<\_ACEOF
15386 #define HAVE_RAND48 1
15392 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15393 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15394 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15395 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 cat >conftest.$ac_ext <<_ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15403 $ac_includes_default
15408 char *p = (char *) arc4random;
15416 rm -f conftest.$ac_objext
15417 if { (ac_try="$ac_compile"
15418 case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_compile") 2>conftest.er1
15425 grep -v '^ *+' conftest.er1 >conftest.err
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } &&
15430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15431 { (case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_try") 2>&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; } &&
15440 { ac_try='test -s conftest.$ac_objext'
15441 { (case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_try") 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_cv_have_decl_arc4random=yes
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ac_cv_have_decl_arc4random=no
15458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15461 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15462 if test $ac_cv_have_decl_arc4random = yes; then
15464 cat >>confdefs.h <<_ACEOF
15465 #define HAVE_DECL_ARC4RANDOM 1
15470 cat >>confdefs.h <<_ACEOF
15471 #define HAVE_DECL_ARC4RANDOM 0
15479 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15480 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15481 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15482 echo $ECHO_N "(cached) $ECHO_C" >&6
15484 cat >conftest.$ac_ext <<_ACEOF
15487 cat confdefs.h >>conftest.$ac_ext
15488 cat >>conftest.$ac_ext <<_ACEOF
15489 /* end confdefs.h. */
15490 $ac_includes_default
15495 char *p = (char *) strerror_s;
15503 rm -f conftest.$ac_objext
15504 if { (ac_try="$ac_compile"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510 (eval "$ac_compile") 2>conftest.er1
15512 grep -v '^ *+' conftest.er1 >conftest.err
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } &&
15517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15518 { (case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_try") 2>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; } &&
15527 { ac_try='test -s conftest.$ac_objext'
15528 { (case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_try") 2>&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 ac_cv_have_decl_strerror_s=yes
15539 echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15542 ac_cv_have_decl_strerror_s=no
15545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15547 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15548 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15549 if test $ac_cv_have_decl_strerror_s = yes; then
15551 cat >>confdefs.h <<_ACEOF
15552 #define HAVE_DECL_STRERROR_S 1
15557 cat >>confdefs.h <<_ACEOF
15558 #define HAVE_DECL_STRERROR_S 0
15566 if test "$llvm_cv_os_type" = "MingW" ; then
15567 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15568 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15569 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15570 echo $ECHO_N "(cached) $ECHO_C" >&6
15572 ac_check_lib_save_LIBS=$LIBS
15574 cat >conftest.$ac_ext <<_ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15581 /* Override any GCC internal prototype to avoid an error.
15582 Use char because int might match the return type of a GCC
15583 builtin and then its argument prototype would still apply. */
15596 rm -f conftest.$ac_objext conftest$ac_exeext
15597 if { (ac_try="$ac_link"
15598 case "(($ac_try" in
15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_link") 2>conftest.er1
15605 grep -v '^ *+' conftest.er1 >conftest.err
15607 cat conftest.err >&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } &&
15610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15611 { (case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_try") 2>&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; } &&
15620 { ac_try='test -s conftest$ac_exeext'
15621 { (case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_try") 2>&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; }; then
15630 ac_cv_lib_gcc__alloca=yes
15632 echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15635 ac_cv_lib_gcc__alloca=no
15638 rm -f core conftest.err conftest.$ac_objext \
15639 conftest$ac_exeext conftest.$ac_ext
15640 LIBS=$ac_check_lib_save_LIBS
15642 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15643 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15644 if test $ac_cv_lib_gcc__alloca = yes; then
15646 cat >>confdefs.h <<\_ACEOF
15647 #define HAVE__ALLOCA 1
15652 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15653 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15654 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15655 echo $ECHO_N "(cached) $ECHO_C" >&6
15657 ac_check_lib_save_LIBS=$LIBS
15659 cat >conftest.$ac_ext <<_ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h. */
15666 /* Override any GCC internal prototype to avoid an error.
15667 Use char because int might match the return type of a GCC
15668 builtin and then its argument prototype would still apply. */
15676 return __alloca ();
15681 rm -f conftest.$ac_objext conftest$ac_exeext
15682 if { (ac_try="$ac_link"
15683 case "(($ac_try" in
15684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685 *) ac_try_echo=$ac_try;;
15687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688 (eval "$ac_link") 2>conftest.er1
15690 grep -v '^ *+' conftest.er1 >conftest.err
15692 cat conftest.err >&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } &&
15695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15696 { (case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_try") 2>&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; } &&
15705 { ac_try='test -s conftest$ac_exeext'
15706 { (case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_try") 2>&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15715 ac_cv_lib_gcc___alloca=yes
15717 echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.$ac_ext >&5
15720 ac_cv_lib_gcc___alloca=no
15723 rm -f core conftest.err conftest.$ac_objext \
15724 conftest$ac_exeext conftest.$ac_ext
15725 LIBS=$ac_check_lib_save_LIBS
15727 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15728 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15729 if test $ac_cv_lib_gcc___alloca = yes; then
15731 cat >>confdefs.h <<\_ACEOF
15732 #define HAVE___ALLOCA 1
15737 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15738 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15739 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15740 echo $ECHO_N "(cached) $ECHO_C" >&6
15742 ac_check_lib_save_LIBS=$LIBS
15744 cat >conftest.$ac_ext <<_ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h. */
15751 /* Override any GCC internal prototype to avoid an error.
15752 Use char because int might match the return type of a GCC
15753 builtin and then its argument prototype would still apply. */
15761 return __chkstk ();
15766 rm -f conftest.$ac_objext conftest$ac_exeext
15767 if { (ac_try="$ac_link"
15768 case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_link") 2>conftest.er1
15775 grep -v '^ *+' conftest.er1 >conftest.err
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } &&
15780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15781 { (case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_try") 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; } &&
15790 { ac_try='test -s conftest$ac_exeext'
15791 { (case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_try") 2>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800 ac_cv_lib_gcc___chkstk=yes
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 ac_cv_lib_gcc___chkstk=no
15808 rm -f core conftest.err conftest.$ac_objext \
15809 conftest$ac_exeext conftest.$ac_ext
15810 LIBS=$ac_check_lib_save_LIBS
15812 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15813 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15814 if test $ac_cv_lib_gcc___chkstk = yes; then
15816 cat >>confdefs.h <<\_ACEOF
15817 #define HAVE___CHKSTK 1
15822 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15823 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15824 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 ac_check_lib_save_LIBS=$LIBS
15829 cat >conftest.$ac_ext <<_ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15836 /* Override any GCC internal prototype to avoid an error.
15837 Use char because int might match the return type of a GCC
15838 builtin and then its argument prototype would still apply. */
15846 return ___chkstk ();
15851 rm -f conftest.$ac_objext conftest$ac_exeext
15852 if { (ac_try="$ac_link"
15853 case "(($ac_try" in
15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858 (eval "$ac_link") 2>conftest.er1
15860 grep -v '^ *+' conftest.er1 >conftest.err
15862 cat conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } &&
15865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15866 { (case "(($ac_try" in
15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868 *) ac_try_echo=$ac_try;;
15870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871 (eval "$ac_try") 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; } &&
15875 { ac_try='test -s conftest$ac_exeext'
15876 { (case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881 (eval "$ac_try") 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; }; then
15885 ac_cv_lib_gcc____chkstk=yes
15887 echo "$as_me: failed program was:" >&5
15888 sed 's/^/| /' conftest.$ac_ext >&5
15890 ac_cv_lib_gcc____chkstk=no
15893 rm -f core conftest.err conftest.$ac_objext \
15894 conftest$ac_exeext conftest.$ac_ext
15895 LIBS=$ac_check_lib_save_LIBS
15897 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15898 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15899 if test $ac_cv_lib_gcc____chkstk = yes; then
15901 cat >>confdefs.h <<\_ACEOF
15902 #define HAVE____CHKSTK 1
15908 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15909 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15910 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15911 echo $ECHO_N "(cached) $ECHO_C" >&6
15913 ac_check_lib_save_LIBS=$LIBS
15915 cat >conftest.$ac_ext <<_ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15922 /* Override any GCC internal prototype to avoid an error.
15923 Use char because int might match the return type of a GCC
15924 builtin and then its argument prototype would still apply. */
15932 return __ashldi3 ();
15937 rm -f conftest.$ac_objext conftest$ac_exeext
15938 if { (ac_try="$ac_link"
15939 case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_link") 2>conftest.er1
15946 grep -v '^ *+' conftest.er1 >conftest.err
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15952 { (case "(($ac_try" in
15953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954 *) ac_try_echo=$ac_try;;
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957 (eval "$ac_try") 2>&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } &&
15961 { ac_try='test -s conftest$ac_exeext'
15962 { (case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_try") 2>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_cv_lib_gcc___ashldi3=yes
15973 echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15976 ac_cv_lib_gcc___ashldi3=no
15979 rm -f core conftest.err conftest.$ac_objext \
15980 conftest$ac_exeext conftest.$ac_ext
15981 LIBS=$ac_check_lib_save_LIBS
15983 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15984 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15985 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15987 cat >>confdefs.h <<\_ACEOF
15988 #define HAVE___ASHLDI3 1
15993 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15994 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15995 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15996 echo $ECHO_N "(cached) $ECHO_C" >&6
15998 ac_check_lib_save_LIBS=$LIBS
16000 cat >conftest.$ac_ext <<_ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16007 /* Override any GCC internal prototype to avoid an error.
16008 Use char because int might match the return type of a GCC
16009 builtin and then its argument prototype would still apply. */
16017 return __ashrdi3 ();
16022 rm -f conftest.$ac_objext conftest$ac_exeext
16023 if { (ac_try="$ac_link"
16024 case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029 (eval "$ac_link") 2>conftest.er1
16031 grep -v '^ *+' conftest.er1 >conftest.err
16033 cat conftest.err >&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } &&
16036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16037 { (case "(($ac_try" in
16038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16039 *) ac_try_echo=$ac_try;;
16041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16042 (eval "$ac_try") 2>&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; } &&
16046 { ac_try='test -s conftest$ac_exeext'
16047 { (case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_try") 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16056 ac_cv_lib_gcc___ashrdi3=yes
16058 echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16061 ac_cv_lib_gcc___ashrdi3=no
16064 rm -f core conftest.err conftest.$ac_objext \
16065 conftest$ac_exeext conftest.$ac_ext
16066 LIBS=$ac_check_lib_save_LIBS
16068 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16069 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16070 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16072 cat >>confdefs.h <<\_ACEOF
16073 #define HAVE___ASHRDI3 1
16078 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16079 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16080 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16081 echo $ECHO_N "(cached) $ECHO_C" >&6
16083 ac_check_lib_save_LIBS=$LIBS
16085 cat >conftest.$ac_ext <<_ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16092 /* Override any GCC internal prototype to avoid an error.
16093 Use char because int might match the return type of a GCC
16094 builtin and then its argument prototype would still apply. */
16102 return __divdi3 ();
16107 rm -f conftest.$ac_objext conftest$ac_exeext
16108 if { (ac_try="$ac_link"
16109 case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_link") 2>conftest.er1
16116 grep -v '^ *+' conftest.er1 >conftest.err
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122 { (case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_try") 2>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest$ac_exeext'
16132 { (case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_try") 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_cv_lib_gcc___divdi3=yes
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16146 ac_cv_lib_gcc___divdi3=no
16149 rm -f core conftest.err conftest.$ac_objext \
16150 conftest$ac_exeext conftest.$ac_ext
16151 LIBS=$ac_check_lib_save_LIBS
16153 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16154 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16155 if test $ac_cv_lib_gcc___divdi3 = yes; then
16157 cat >>confdefs.h <<\_ACEOF
16158 #define HAVE___DIVDI3 1
16163 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16164 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16165 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 ac_check_lib_save_LIBS=$LIBS
16170 cat >conftest.$ac_ext <<_ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16177 /* Override any GCC internal prototype to avoid an error.
16178 Use char because int might match the return type of a GCC
16179 builtin and then its argument prototype would still apply. */
16187 return __fixdfdi ();
16192 rm -f conftest.$ac_objext conftest$ac_exeext
16193 if { (ac_try="$ac_link"
16194 case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_link") 2>conftest.er1
16201 grep -v '^ *+' conftest.er1 >conftest.err
16203 cat conftest.err >&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
16206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16207 { (case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_try") 2>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; } &&
16216 { ac_try='test -s conftest$ac_exeext'
16217 { (case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_try") 2>&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; }; then
16226 ac_cv_lib_gcc___fixdfdi=yes
16228 echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231 ac_cv_lib_gcc___fixdfdi=no
16234 rm -f core conftest.err conftest.$ac_objext \
16235 conftest$ac_exeext conftest.$ac_ext
16236 LIBS=$ac_check_lib_save_LIBS
16238 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16239 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16240 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16242 cat >>confdefs.h <<\_ACEOF
16243 #define HAVE___FIXDFDI 1
16248 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16249 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16250 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16253 ac_check_lib_save_LIBS=$LIBS
16255 cat >conftest.$ac_ext <<_ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h. */
16262 /* Override any GCC internal prototype to avoid an error.
16263 Use char because int might match the return type of a GCC
16264 builtin and then its argument prototype would still apply. */
16272 return __fixsfdi ();
16277 rm -f conftest.$ac_objext conftest$ac_exeext
16278 if { (ac_try="$ac_link"
16279 case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_link") 2>conftest.er1
16286 grep -v '^ *+' conftest.er1 >conftest.err
16288 cat conftest.err >&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } &&
16291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16292 { (case "(($ac_try" in
16293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294 *) ac_try_echo=$ac_try;;
16296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297 (eval "$ac_try") 2>&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; } &&
16301 { ac_try='test -s conftest$ac_exeext'
16302 { (case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307 (eval "$ac_try") 2>&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); }; }; then
16311 ac_cv_lib_gcc___fixsfdi=yes
16313 echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16316 ac_cv_lib_gcc___fixsfdi=no
16319 rm -f core conftest.err conftest.$ac_objext \
16320 conftest$ac_exeext conftest.$ac_ext
16321 LIBS=$ac_check_lib_save_LIBS
16323 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16324 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16325 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16327 cat >>confdefs.h <<\_ACEOF
16328 #define HAVE___FIXSFDI 1
16333 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16334 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16335 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16336 echo $ECHO_N "(cached) $ECHO_C" >&6
16338 ac_check_lib_save_LIBS=$LIBS
16340 cat >conftest.$ac_ext <<_ACEOF
16343 cat confdefs.h >>conftest.$ac_ext
16344 cat >>conftest.$ac_ext <<_ACEOF
16345 /* end confdefs.h. */
16347 /* Override any GCC internal prototype to avoid an error.
16348 Use char because int might match the return type of a GCC
16349 builtin and then its argument prototype would still apply. */
16353 char __floatdidf ();
16357 return __floatdidf ();
16362 rm -f conftest.$ac_objext conftest$ac_exeext
16363 if { (ac_try="$ac_link"
16364 case "(($ac_try" in
16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369 (eval "$ac_link") 2>conftest.er1
16371 grep -v '^ *+' conftest.er1 >conftest.err
16373 cat conftest.err >&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } &&
16376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16377 { (case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_try") 2>&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; } &&
16386 { ac_try='test -s conftest$ac_exeext'
16387 { (case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_try") 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; }; then
16396 ac_cv_lib_gcc___floatdidf=yes
16398 echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16401 ac_cv_lib_gcc___floatdidf=no
16404 rm -f core conftest.err conftest.$ac_objext \
16405 conftest$ac_exeext conftest.$ac_ext
16406 LIBS=$ac_check_lib_save_LIBS
16408 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16409 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16410 if test $ac_cv_lib_gcc___floatdidf = yes; then
16412 cat >>confdefs.h <<\_ACEOF
16413 #define HAVE___FLOATDIDF 1
16418 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16419 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16420 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16423 ac_check_lib_save_LIBS=$LIBS
16425 cat >conftest.$ac_ext <<_ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16432 /* Override any GCC internal prototype to avoid an error.
16433 Use char because int might match the return type of a GCC
16434 builtin and then its argument prototype would still apply. */
16442 return __lshrdi3 ();
16447 rm -f conftest.$ac_objext conftest$ac_exeext
16448 if { (ac_try="$ac_link"
16449 case "(($ac_try" in
16450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451 *) ac_try_echo=$ac_try;;
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454 (eval "$ac_link") 2>conftest.er1
16456 grep -v '^ *+' conftest.er1 >conftest.err
16458 cat conftest.err >&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } &&
16461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16462 { (case "(($ac_try" in
16463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16464 *) ac_try_echo=$ac_try;;
16466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16467 (eval "$ac_try") 2>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; } &&
16471 { ac_try='test -s conftest$ac_exeext'
16472 { (case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_try") 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16481 ac_cv_lib_gcc___lshrdi3=yes
16483 echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16486 ac_cv_lib_gcc___lshrdi3=no
16489 rm -f core conftest.err conftest.$ac_objext \
16490 conftest$ac_exeext conftest.$ac_ext
16491 LIBS=$ac_check_lib_save_LIBS
16493 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16494 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16495 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16497 cat >>confdefs.h <<\_ACEOF
16498 #define HAVE___LSHRDI3 1
16503 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16504 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16505 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16508 ac_check_lib_save_LIBS=$LIBS
16510 cat >conftest.$ac_ext <<_ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16517 /* Override any GCC internal prototype to avoid an error.
16518 Use char because int might match the return type of a GCC
16519 builtin and then its argument prototype would still apply. */
16527 return __moddi3 ();
16532 rm -f conftest.$ac_objext conftest$ac_exeext
16533 if { (ac_try="$ac_link"
16534 case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_link") 2>conftest.er1
16541 grep -v '^ *+' conftest.er1 >conftest.err
16543 cat conftest.err >&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } &&
16546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16547 { (case "(($ac_try" in
16548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552 (eval "$ac_try") 2>&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; } &&
16556 { ac_try='test -s conftest$ac_exeext'
16557 { (case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_try") 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_cv_lib_gcc___moddi3=yes
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16571 ac_cv_lib_gcc___moddi3=no
16574 rm -f core conftest.err conftest.$ac_objext \
16575 conftest$ac_exeext conftest.$ac_ext
16576 LIBS=$ac_check_lib_save_LIBS
16578 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16579 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16580 if test $ac_cv_lib_gcc___moddi3 = yes; then
16582 cat >>confdefs.h <<\_ACEOF
16583 #define HAVE___MODDI3 1
16588 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16589 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16590 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 ac_check_lib_save_LIBS=$LIBS
16595 cat >conftest.$ac_ext <<_ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16602 /* Override any GCC internal prototype to avoid an error.
16603 Use char because int might match the return type of a GCC
16604 builtin and then its argument prototype would still apply. */
16612 return __udivdi3 ();
16617 rm -f conftest.$ac_objext conftest$ac_exeext
16618 if { (ac_try="$ac_link"
16619 case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_link") 2>conftest.er1
16626 grep -v '^ *+' conftest.er1 >conftest.err
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632 { (case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_try") 2>&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try='test -s conftest$ac_exeext'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_cv_lib_gcc___udivdi3=yes
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_cv_lib_gcc___udivdi3=no
16659 rm -f core conftest.err conftest.$ac_objext \
16660 conftest$ac_exeext conftest.$ac_ext
16661 LIBS=$ac_check_lib_save_LIBS
16663 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16664 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16665 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16667 cat >>confdefs.h <<\_ACEOF
16668 #define HAVE___UDIVDI3 1
16673 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16674 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16675 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16678 ac_check_lib_save_LIBS=$LIBS
16680 cat >conftest.$ac_ext <<_ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16687 /* Override any GCC internal prototype to avoid an error.
16688 Use char because int might match the return type of a GCC
16689 builtin and then its argument prototype would still apply. */
16697 return __umoddi3 ();
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (ac_try="$ac_link"
16704 case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_link") 2>conftest.er1
16711 grep -v '^ *+' conftest.er1 >conftest.err
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest$ac_exeext'
16727 { (case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_try") 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 ac_cv_lib_gcc___umoddi3=yes
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16741 ac_cv_lib_gcc___umoddi3=no
16744 rm -f core conftest.err conftest.$ac_objext \
16745 conftest$ac_exeext conftest.$ac_ext
16746 LIBS=$ac_check_lib_save_LIBS
16748 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16749 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16750 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16752 cat >>confdefs.h <<\_ACEOF
16753 #define HAVE___UMODDI3 1
16759 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16760 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16761 if test "${ac_cv_lib_gcc___main+set}" = set; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16764 ac_check_lib_save_LIBS=$LIBS
16766 cat >conftest.$ac_ext <<_ACEOF
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h. */
16773 /* Override any GCC internal prototype to avoid an error.
16774 Use char because int might match the return type of a GCC
16775 builtin and then its argument prototype would still apply. */
16788 rm -f conftest.$ac_objext conftest$ac_exeext
16789 if { (ac_try="$ac_link"
16790 case "(($ac_try" in
16791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792 *) ac_try_echo=$ac_try;;
16794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16795 (eval "$ac_link") 2>conftest.er1
16797 grep -v '^ *+' conftest.er1 >conftest.err
16799 cat conftest.err >&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } &&
16802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16803 { (case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_try") 2>&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try='test -s conftest$ac_exeext'
16813 { (case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_try") 2>&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 ac_cv_lib_gcc___main=yes
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16827 ac_cv_lib_gcc___main=no
16830 rm -f core conftest.err conftest.$ac_objext \
16831 conftest$ac_exeext conftest.$ac_ext
16832 LIBS=$ac_check_lib_save_LIBS
16834 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16835 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16836 if test $ac_cv_lib_gcc___main = yes; then
16838 cat >>confdefs.h <<\_ACEOF
16839 #define HAVE___MAIN 1
16844 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16845 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16846 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 ac_check_lib_save_LIBS=$LIBS
16851 cat >conftest.$ac_ext <<_ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16858 /* Override any GCC internal prototype to avoid an error.
16859 Use char because int might match the return type of a GCC
16860 builtin and then its argument prototype would still apply. */
16868 return __cmpdi2 ();
16873 rm -f conftest.$ac_objext conftest$ac_exeext
16874 if { (ac_try="$ac_link"
16875 case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_link") 2>conftest.er1
16882 grep -v '^ *+' conftest.er1 >conftest.err
16884 cat conftest.err >&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; } &&
16897 { ac_try='test -s conftest$ac_exeext'
16898 { (case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_try") 2>&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 ac_cv_lib_gcc___cmpdi2=yes
16909 echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16912 ac_cv_lib_gcc___cmpdi2=no
16915 rm -f core conftest.err conftest.$ac_objext \
16916 conftest$ac_exeext conftest.$ac_ext
16917 LIBS=$ac_check_lib_save_LIBS
16919 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16920 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16921 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16923 cat >>confdefs.h <<\_ACEOF
16924 #define HAVE___CMPDI2 1
16931 if test "$llvm_cv_os_type" = "MingW" ; then
16932 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16933 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16934 cat >conftest.$ac_ext <<_ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16942 #include <windows.h>
16943 #include <imagehlp.h>
16944 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16945 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16949 rm -f conftest.$ac_objext
16950 if { (ac_try="$ac_compile"
16951 case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956 (eval "$ac_compile") 2>conftest.er1
16958 grep -v '^ *+' conftest.er1 >conftest.err
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16964 { (case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_try") 2>&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try='test -s conftest.$ac_objext'
16974 { (case "(($ac_try" in
16975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976 *) ac_try_echo=$ac_try;;
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979 (eval "$ac_try") 2>&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; }; then
16984 { echo "$as_me:$LINENO: result: yes" >&5
16985 echo "${ECHO_T}yes" >&6; }
16986 llvm_cv_win32_elmcb_pcstr="PCSTR"
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16993 { echo "$as_me:$LINENO: result: no" >&5
16994 echo "${ECHO_T}no" >&6; }
16995 llvm_cv_win32_elmcb_pcstr="PSTR"
16999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001 cat >>confdefs.h <<_ACEOF
17002 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17009 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17010 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17011 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 ac_cpp='$CXXCPP $CPPFLAGS'
17017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17021 cat >conftest.$ac_ext <<_ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17036 rm -f conftest.$ac_objext
17037 if { (ac_try="$ac_compile"
17038 case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_compile") 2>conftest.er1
17045 grep -v '^ *+' conftest.er1 >conftest.err
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17051 { (case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_try") 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest.$ac_objext'
17061 { (case "(($ac_try" in
17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063 *) ac_try_echo=$ac_try;;
17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066 (eval "$ac_try") 2>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_cv_func_isnan_in_math_h=yes
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17075 ac_cv_func_isnan_in_math_h=no
17078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080 ac_cpp='$CPP $CPPFLAGS'
17081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17087 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17088 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17091 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17093 cat >>confdefs.h <<\_ACEOF
17094 #define HAVE_ISNAN_IN_MATH_H 1
17100 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17101 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17102 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17103 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 ac_cpp='$CXXCPP $CPPFLAGS'
17108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17112 cat >conftest.$ac_ext <<_ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h. */
17127 rm -f conftest.$ac_objext
17128 if { (ac_try="$ac_compile"
17129 case "(($ac_try" in
17130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131 *) ac_try_echo=$ac_try;;
17133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17134 (eval "$ac_compile") 2>conftest.er1
17136 grep -v '^ *+' conftest.er1 >conftest.err
17138 cat conftest.err >&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17142 { (case "(($ac_try" in
17143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144 *) ac_try_echo=$ac_try;;
17146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147 (eval "$ac_try") 2>&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; } &&
17151 { ac_try='test -s conftest.$ac_objext'
17152 { (case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157 (eval "$ac_try") 2>&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; }; then
17161 ac_cv_func_isnan_in_cmath=yes
17163 echo "$as_me: failed program was:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17166 ac_cv_func_isnan_in_cmath=no
17169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17171 ac_cpp='$CPP $CPPFLAGS'
17172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17178 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17179 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17181 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17183 cat >>confdefs.h <<\_ACEOF
17184 #define HAVE_ISNAN_IN_CMATH 1
17190 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17191 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17192 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17197 ac_cpp='$CXXCPP $CPPFLAGS'
17198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17212 float f; std::isnan(f);
17217 rm -f conftest.$ac_objext
17218 if { (ac_try="$ac_compile"
17219 case "(($ac_try" in
17220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221 *) ac_try_echo=$ac_try;;
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224 (eval "$ac_compile") 2>conftest.er1
17226 grep -v '^ *+' conftest.er1 >conftest.err
17228 cat conftest.err >&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } &&
17231 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17232 { (case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_try") 2>&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; } &&
17241 { ac_try='test -s conftest.$ac_objext'
17242 { (case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_try") 2>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; }; then
17251 ac_cv_func_std_isnan_in_cmath=yes
17253 echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17256 ac_cv_func_std_isnan_in_cmath=no
17259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17261 ac_cpp='$CPP $CPPFLAGS'
17262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17268 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17269 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17271 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17273 cat >>confdefs.h <<\_ACEOF
17274 #define HAVE_STD_ISNAN_IN_CMATH 1
17282 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17283 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17284 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17289 ac_cpp='$CXXCPP $CPPFLAGS'
17290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17294 cat >conftest.$ac_ext <<_ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17309 rm -f conftest.$ac_objext
17310 if { (ac_try="$ac_compile"
17311 case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_compile") 2>conftest.er1
17318 grep -v '^ *+' conftest.er1 >conftest.err
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
17323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17324 { (case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_try") 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; } &&
17333 { ac_try='test -s conftest.$ac_objext'
17334 { (case "(($ac_try" in
17335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336 *) ac_try_echo=$ac_try;;
17338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339 (eval "$ac_try") 2>&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 ac_cv_func_isinf_in_math_h=yes
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17348 ac_cv_func_isinf_in_math_h=no
17351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17353 ac_cpp='$CPP $CPPFLAGS'
17354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17360 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17361 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17363 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17365 cat >>confdefs.h <<\_ACEOF
17366 #define HAVE_ISINF_IN_MATH_H 1
17372 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17373 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17374 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17379 ac_cpp='$CXXCPP $CPPFLAGS'
17380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17384 cat >conftest.$ac_ext <<_ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h. */
17399 rm -f conftest.$ac_objext
17400 if { (ac_try="$ac_compile"
17401 case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406 (eval "$ac_compile") 2>conftest.er1
17408 grep -v '^ *+' conftest.er1 >conftest.err
17410 cat conftest.err >&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } &&
17413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17414 { (case "(($ac_try" in
17415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17416 *) ac_try_echo=$ac_try;;
17418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17419 (eval "$ac_try") 2>&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; } &&
17423 { ac_try='test -s conftest.$ac_objext'
17424 { (case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_try") 2>&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; }; then
17433 ac_cv_func_isinf_in_cmath=yes
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17438 ac_cv_func_isinf_in_cmath=no
17441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17443 ac_cpp='$CPP $CPPFLAGS'
17444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17450 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17451 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17453 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17455 cat >>confdefs.h <<\_ACEOF
17456 #define HAVE_ISINF_IN_CMATH 1
17462 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17463 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17464 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17469 ac_cpp='$CXXCPP $CPPFLAGS'
17470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17474 cat >conftest.$ac_ext <<_ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17484 float f; std::isinf(f);
17489 rm -f conftest.$ac_objext
17490 if { (ac_try="$ac_compile"
17491 case "(($ac_try" in
17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493 *) ac_try_echo=$ac_try;;
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496 (eval "$ac_compile") 2>conftest.er1
17498 grep -v '^ *+' conftest.er1 >conftest.err
17500 cat conftest.err >&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } &&
17503 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17504 { (case "(($ac_try" in
17505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17506 *) ac_try_echo=$ac_try;;
17508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17509 (eval "$ac_try") 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; } &&
17513 { ac_try='test -s conftest.$ac_objext'
17514 { (case "(($ac_try" in
17515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516 *) ac_try_echo=$ac_try;;
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519 (eval "$ac_try") 2>&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; }; then
17523 ac_cv_func_std_isinf_in_cmath=yes
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17528 ac_cv_func_std_isinf_in_cmath=no
17531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17533 ac_cpp='$CPP $CPPFLAGS'
17534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17540 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17541 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17543 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17545 cat >>confdefs.h <<\_ACEOF
17546 #define HAVE_STD_ISINF_IN_CMATH 1
17552 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17553 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17554 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17555 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 ac_cpp='$CXXCPP $CPPFLAGS'
17560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 #include <ieeefp.h>
17574 float f; finite(f);
17579 rm -f conftest.$ac_objext
17580 if { (ac_try="$ac_compile"
17581 case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_compile") 2>conftest.er1
17588 grep -v '^ *+' conftest.er1 >conftest.err
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try='test -s conftest.$ac_objext'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 ac_cv_func_finite_in_ieeefp_h=yes
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17618 ac_cv_func_finite_in_ieeefp_h=no
17621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17623 ac_cpp='$CPP $CPPFLAGS'
17624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17630 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17631 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17633 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17635 cat >>confdefs.h <<\_ACEOF
17636 #define HAVE_FINITE_IN_IEEEFP_H 1
17643 if test "$llvm_cv_platform_type" = "Unix" ; then
17646 for ac_header in stdlib.h unistd.h
17648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17655 ac_res=`eval echo '${'$as_ac_Header'}'`
17656 { echo "$as_me:$LINENO: result: $ac_res" >&5
17657 echo "${ECHO_T}$ac_res" >&6; }
17659 # Is the header compilable?
17660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17662 cat >conftest.$ac_ext <<_ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h. */
17668 $ac_includes_default
17669 #include <$ac_header>
17671 rm -f conftest.$ac_objext
17672 if { (ac_try="$ac_compile"
17673 case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_compile") 2>conftest.er1
17680 grep -v '^ *+' conftest.er1 >conftest.err
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686 { (case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_try") 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest.$ac_objext'
17696 { (case "(($ac_try" in
17697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698 *) ac_try_echo=$ac_try;;
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_try") 2>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 ac_header_compiler=yes
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_header_compiler=no
17713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17715 echo "${ECHO_T}$ac_header_compiler" >&6; }
17717 # Is the header present?
17718 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17720 cat >conftest.$ac_ext <<_ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 #include <$ac_header>
17728 if { (ac_try="$ac_cpp conftest.$ac_ext"
17729 case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17736 grep -v '^ *+' conftest.er1 >conftest.err
17738 cat conftest.err >&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } >/dev/null; then
17741 if test -s conftest.err; then
17742 ac_cpp_err=$ac_c_preproc_warn_flag
17743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17750 if test -z "$ac_cpp_err"; then
17751 ac_header_preproc=yes
17753 echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17756 ac_header_preproc=no
17759 rm -f conftest.err conftest.$ac_ext
17760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17761 echo "${ECHO_T}$ac_header_preproc" >&6; }
17763 # So? What about this header?
17764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17770 ac_header_preproc=yes
17773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17786 ## ------------------------------------ ##
17787 ## Report this to http://llvm.org/bugs/ ##
17788 ## ------------------------------------ ##
17790 ) | sed "s/^/$as_me: WARNING: /" >&2
17793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17798 eval "$as_ac_Header=\$ac_header_preproc"
17800 ac_res=`eval echo '${'$as_ac_Header'}'`
17801 { echo "$as_me:$LINENO: result: $ac_res" >&5
17802 echo "${ECHO_T}$ac_res" >&6; }
17805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17806 cat >>confdefs.h <<_ACEOF
17807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17815 for ac_func in getpagesize
17817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17821 echo $ECHO_N "(cached) $ECHO_C" >&6
17823 cat >conftest.$ac_ext <<_ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17831 #define $ac_func innocuous_$ac_func
17833 /* System header to define __stub macros and hopefully few prototypes,
17834 which can conflict with char $ac_func (); below.
17835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17836 <limits.h> exists even on freestanding compilers. */
17839 # include <limits.h>
17841 # include <assert.h>
17846 /* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17853 /* The GNU C library defines this for functions which it implements
17854 to always fail with ENOSYS. Some functions are actually named
17855 something starting with __ and the normal name is an alias. */
17856 #if defined __stub_$ac_func || defined __stub___$ac_func
17863 return $ac_func ();
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (ac_try="$ac_link"
17870 case "(($ac_try" in
17871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872 *) ac_try_echo=$ac_try;;
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875 (eval "$ac_link") 2>conftest.er1
17877 grep -v '^ *+' conftest.er1 >conftest.err
17879 cat conftest.err >&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } &&
17882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17883 { (case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_try") 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest$ac_exeext'
17893 { (case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_try") 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 eval "$as_ac_var=yes"
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17907 eval "$as_ac_var=no"
17910 rm -f core conftest.err conftest.$ac_objext \
17911 conftest$ac_exeext conftest.$ac_ext
17913 ac_res=`eval echo '${'$as_ac_var'}'`
17914 { echo "$as_me:$LINENO: result: $ac_res" >&5
17915 echo "${ECHO_T}$ac_res" >&6; }
17916 if test `eval echo '${'$as_ac_var'}'` = yes; then
17917 cat >>confdefs.h <<_ACEOF
17918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17924 { echo "$as_me:$LINENO: checking for working mmap" >&5
17925 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17926 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17927 echo $ECHO_N "(cached) $ECHO_C" >&6
17929 if test "$cross_compiling" = yes; then
17930 ac_cv_func_mmap_fixed_mapped=no
17932 cat >conftest.$ac_ext <<_ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 $ac_includes_default
17939 /* malloc might have been renamed as rpl_malloc. */
17942 /* Thanks to Mike Haertel and Jim Avera for this test.
17943 Here is a matrix of mmap possibilities:
17944 mmap private not fixed
17945 mmap private fixed at somewhere currently unmapped
17946 mmap private fixed at somewhere already mapped
17947 mmap shared not fixed
17948 mmap shared fixed at somewhere currently unmapped
17949 mmap shared fixed at somewhere already mapped
17950 For private mappings, we should verify that changes cannot be read()
17951 back from the file, nor mmap's back from the file at a different
17952 address. (There have been systems where private was not correctly
17953 implemented like the infamous i386 svr4.0, and systems where the
17954 VM page cache was not coherent with the file system buffer cache
17955 like early versions of FreeBSD and possibly contemporary NetBSD.)
17956 For shared mappings, we should conversely verify that changes get
17957 propagated back to all the places they're supposed to be.
17959 Grep wants private fixed already mapped.
17960 The main things grep needs to know about mmap are:
17961 * does it exist and is it safe to write into the mmap'd area
17962 * how to use it (BSD variants) */
17965 #include <sys/mman.h>
17967 #if !STDC_HEADERS && !HAVE_STDLIB_H
17971 /* This mess was copied from the GNU getpagesize.h. */
17972 #if !HAVE_GETPAGESIZE
17973 /* Assume that all systems that can run configure have sys/param.h. */
17974 # if !HAVE_SYS_PARAM_H
17975 # define HAVE_SYS_PARAM_H 1
17978 # ifdef _SC_PAGESIZE
17979 # define getpagesize() sysconf(_SC_PAGESIZE)
17980 # else /* no _SC_PAGESIZE */
17981 # if HAVE_SYS_PARAM_H
17982 # include <sys/param.h>
17983 # ifdef EXEC_PAGESIZE
17984 # define getpagesize() EXEC_PAGESIZE
17985 # else /* no EXEC_PAGESIZE */
17987 # define getpagesize() NBPG * CLSIZE
17990 # endif /* no CLSIZE */
17991 # else /* no NBPG */
17993 # define getpagesize() NBPC
17994 # else /* no NBPC */
17996 # define getpagesize() PAGESIZE
17997 # endif /* PAGESIZE */
17998 # endif /* no NBPC */
17999 # endif /* no NBPG */
18000 # endif /* no EXEC_PAGESIZE */
18001 # else /* no HAVE_SYS_PARAM_H */
18002 # define getpagesize() 8192 /* punt totally */
18003 # endif /* no HAVE_SYS_PARAM_H */
18004 # endif /* no _SC_PAGESIZE */
18006 #endif /* no HAVE_GETPAGESIZE */
18011 char *data, *data2, *data3;
18015 pagesize = getpagesize ();
18017 /* First, make a file with some known garbage in it. */
18018 data = (char *) malloc (pagesize);
18021 for (i = 0; i < pagesize; ++i)
18022 *(data + i) = rand ();
18024 fd = creat ("conftest.mmap", 0600);
18027 if (write (fd, data, pagesize) != pagesize)
18031 /* Next, try to mmap the file at a fixed address which already has
18032 something else allocated at it. If we can, also make sure that
18033 we see the same garbage. */
18034 fd = open ("conftest.mmap", O_RDWR);
18037 data2 = (char *) malloc (2 * pagesize);
18040 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18041 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18042 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18044 for (i = 0; i < pagesize; ++i)
18045 if (*(data + i) != *(data2 + i))
18048 /* Finally, make sure that changes to the mapped area do not
18049 percolate back to the file as seen by read(). (This is a bug on
18050 some variants of i386 svr4.0.) */
18051 for (i = 0; i < pagesize; ++i)
18052 *(data2 + i) = *(data2 + i) + 1;
18053 data3 = (char *) malloc (pagesize);
18056 if (read (fd, data3, pagesize) != pagesize)
18058 for (i = 0; i < pagesize; ++i)
18059 if (*(data + i) != *(data3 + i))
18065 rm -f conftest$ac_exeext
18066 if { (ac_try="$ac_link"
18067 case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072 (eval "$ac_link") 2>&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18076 { (case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_try") 2>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; }; then
18085 ac_cv_func_mmap_fixed_mapped=yes
18087 echo "$as_me: program exited with status $ac_status" >&5
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 ( exit $ac_status )
18092 ac_cv_func_mmap_fixed_mapped=no
18094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18099 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18100 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18101 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18103 cat >>confdefs.h <<\_ACEOF
18104 #define HAVE_MMAP 1
18108 rm -f conftest.mmap
18110 { echo "$as_me:$LINENO: checking for mmap of files" >&5
18111 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18112 if test "${ac_cv_func_mmap_file+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18116 ac_cpp='$CPP $CPPFLAGS'
18117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18121 if test "$cross_compiling" = yes; then
18122 ac_cv_func_mmap_file=no
18124 cat >conftest.$ac_ext <<_ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18132 #include <sys/types.h>
18133 #include <sys/mman.h>
18141 fd = creat ("foo",0777);
18142 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18144 return (fd != (int) MAP_FAILED);
18149 rm -f conftest$ac_exeext
18150 if { (ac_try="$ac_link"
18151 case "(($ac_try" in
18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156 (eval "$ac_link") 2>&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18160 { (case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_try") 2>&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 ac_cv_func_mmap_file=yes
18171 echo "$as_me: program exited with status $ac_status" >&5
18172 echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18175 ( exit $ac_status )
18176 ac_cv_func_mmap_file=no
18178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18183 ac_cpp='$CPP $CPPFLAGS'
18184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18190 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18191 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18192 if test "$ac_cv_func_mmap_file" = yes; then
18194 cat >>confdefs.h <<\_ACEOF
18195 #define HAVE_MMAP_FILE
18202 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18203 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18204 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18205 echo $ECHO_N "(cached) $ECHO_C" >&6
18207 if test "$llvm_cv_os_type" = "Interix" ; then
18208 ac_cv_need_dev_zero_for_mmap=yes
18210 ac_cv_need_dev_zero_for_mmap=no
18214 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18215 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18216 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18218 cat >>confdefs.h <<\_ACEOF
18219 #define NEED_DEV_ZERO_FOR_MMAP 1
18224 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18226 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18227 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18229 if test "$ac_cv_func_mmap_file" = "no"
18231 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18232 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18236 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18237 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18239 ac_cpp='$CXXCPP $CPPFLAGS'
18240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18244 cat >conftest.$ac_ext <<_ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h. */
18253 volatile unsigned long val = 1;
18254 __sync_synchronize();
18255 __sync_val_compare_and_swap(&val, 1, 0);
18256 __sync_add_and_fetch(&val, 1);
18257 __sync_sub_and_fetch(&val, 1);
18263 rm -f conftest.$ac_objext conftest$ac_exeext
18264 if { (ac_try="$ac_link"
18265 case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_link") 2>conftest.er1
18272 grep -v '^ *+' conftest.er1 >conftest.err
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18278 { (case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_try") 2>&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest$ac_exeext'
18288 { (case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_try") 2>&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18298 { echo "$as_me:$LINENO: result: yes" >&5
18299 echo "${ECHO_T}yes" >&6; }
18301 cat >>confdefs.h <<\_ACEOF
18302 #define LLVM_HAS_ATOMICS 1
18307 echo "$as_me: failed program was:" >&5
18308 sed 's/^/| /' conftest.$ac_ext >&5
18311 { echo "$as_me:$LINENO: result: no" >&5
18312 echo "${ECHO_T}no" >&6; }
18314 cat >>confdefs.h <<\_ACEOF
18315 #define LLVM_HAS_ATOMICS 0
18318 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18319 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18323 rm -f core conftest.err conftest.$ac_objext \
18324 conftest$ac_exeext conftest.$ac_ext
18326 ac_cpp='$CPP $CPPFLAGS'
18327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18333 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18334 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18335 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18336 if test "${llvm_cv_linux_mixed+set}" = set; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
18340 ac_cpp='$CPP $CPPFLAGS'
18341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18345 cat >conftest.$ac_ext <<_ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h. */
18352 error: Not x86-64 even if uname says so!
18363 rm -f conftest.$ac_objext
18364 if { (ac_try="$ac_compile"
18365 case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_compile") 2>conftest.er1
18372 grep -v '^ *+' conftest.er1 >conftest.err
18374 cat conftest.err >&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); } &&
18377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18378 { (case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383 (eval "$ac_try") 2>&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; } &&
18387 { ac_try='test -s conftest.$ac_objext'
18388 { (case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_try") 2>&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397 llvm_cv_linux_mixed=no
18399 echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18402 llvm_cv_linux_mixed=yes
18405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18407 ac_cpp='$CPP $CPPFLAGS'
18408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18414 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18415 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18417 if test "$llvm_cv_linux_mixed" = "yes"; then
18418 llvm_cv_target_arch="x86"
18424 for ac_func in __dso_handle
18426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18432 cat >conftest.$ac_ext <<_ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18440 #define $ac_func innocuous_$ac_func
18442 /* System header to define __stub macros and hopefully few prototypes,
18443 which can conflict with char $ac_func (); below.
18444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18445 <limits.h> exists even on freestanding compilers. */
18448 # include <limits.h>
18450 # include <assert.h>
18455 /* Override any GCC internal prototype to avoid an error.
18456 Use char because int might match the return type of a GCC
18457 builtin and then its argument prototype would still apply. */
18462 /* The GNU C library defines this for functions which it implements
18463 to always fail with ENOSYS. Some functions are actually named
18464 something starting with __ and the normal name is an alias. */
18465 #if defined __stub_$ac_func || defined __stub___$ac_func
18472 return $ac_func ();
18477 rm -f conftest.$ac_objext conftest$ac_exeext
18478 if { (ac_try="$ac_link"
18479 case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_link") 2>conftest.er1
18486 grep -v '^ *+' conftest.er1 >conftest.err
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } &&
18491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18492 { (case "(($ac_try" in
18493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494 *) ac_try_echo=$ac_try;;
18496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497 (eval "$ac_try") 2>&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; } &&
18501 { ac_try='test -s conftest$ac_exeext'
18502 { (case "(($ac_try" in
18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504 *) ac_try_echo=$ac_try;;
18506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507 (eval "$ac_try") 2>&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; }; then
18511 eval "$as_ac_var=yes"
18513 echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18516 eval "$as_ac_var=no"
18519 rm -f core conftest.err conftest.$ac_objext \
18520 conftest$ac_exeext conftest.$ac_ext
18522 ac_res=`eval echo '${'$as_ac_var'}'`
18523 { echo "$as_me:$LINENO: result: $ac_res" >&5
18524 echo "${ECHO_T}$ac_res" >&6; }
18525 if test `eval echo '${'$as_ac_var'}'` = yes; then
18526 cat >>confdefs.h <<_ACEOF
18527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18534 SHLIBEXT=$llvm_shlib_ext
18537 if test "${prefix}" = "NONE" ; then
18538 prefix="/usr/local"
18540 eval LLVM_PREFIX="${prefix}";
18541 eval LLVM_BINDIR="${prefix}/bin";
18542 eval LLVM_DATADIR="${prefix}/share/llvm";
18543 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18544 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18545 eval LLVM_INCLUDEDIR="${prefix}/include";
18546 eval LLVM_INFODIR="${prefix}/info";
18547 eval LLVM_MANDIR="${prefix}/man";
18548 LLVM_CONFIGTIME=`date`
18559 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18560 LLVM_CONFIGTIME="(timestamp not enabled)"
18564 cat >>confdefs.h <<_ACEOF
18565 #define LLVM_PREFIX "$LLVM_PREFIX"
18569 cat >>confdefs.h <<_ACEOF
18570 #define LLVM_BINDIR "$LLVM_BINDIR"
18574 cat >>confdefs.h <<_ACEOF
18575 #define LLVM_DATADIR "$LLVM_DATADIR"
18579 cat >>confdefs.h <<_ACEOF
18580 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18584 cat >>confdefs.h <<_ACEOF
18585 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18589 cat >>confdefs.h <<_ACEOF
18590 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18594 cat >>confdefs.h <<_ACEOF
18595 #define LLVM_INFODIR "$LLVM_INFODIR"
18599 cat >>confdefs.h <<_ACEOF
18600 #define LLVM_MANDIR "$LLVM_MANDIR"
18604 cat >>confdefs.h <<_ACEOF
18605 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18609 cat >>confdefs.h <<_ACEOF
18610 #define LLVM_HOST_TRIPLE "$host"
18614 cat >>confdefs.h <<_ACEOF
18615 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18619 if test "$BINDINGS_TO_BUILD" = auto ; then
18620 BINDINGS_TO_BUILD=""
18621 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
18622 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18625 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18631 binding_prereqs_failed=0
18632 for a_binding in $BINDINGS_TO_BUILD ; do
18633 case "$a_binding" in
18635 if test "x$OCAMLC" = x ; then
18636 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
18637 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
18638 binding_prereqs_failed=1
18640 if test "x$OCAMLDEP" = x ; then
18641 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
18642 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
18643 binding_prereqs_failed=1
18645 if test "x$OCAMLOPT" = x ; then
18646 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
18647 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
18649 if test "x$with_ocaml_libdir" != xauto ; then
18650 OCAML_LIBDIR=$with_ocaml_libdir
18653 ocaml_stdlib="`"$OCAMLC" -where`"
18654 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18656 # ocaml stdlib is beneath our prefix; use stdlib
18657 OCAML_LIBDIR=$ocaml_stdlib
18660 # ocaml stdlib is outside our prefix; use libdir/ocaml
18661 OCAML_LIBDIR=${prefix}/lib/ocaml
18668 if test "$binding_prereqs_failed" = 1 ; then
18669 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18670 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18671 { (exit 1); exit 1; }; }
18674 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18675 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18676 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18680 ac_cpp='$CXXCPP $CPPFLAGS'
18681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18685 oldcxxflags="$CXXFLAGS"
18686 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18687 cat >conftest.$ac_ext <<_ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18693 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18702 rm -f conftest.$ac_objext
18703 if { (ac_try="$ac_compile"
18704 case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709 (eval "$ac_compile") 2>conftest.er1
18711 grep -v '^ *+' conftest.er1 >conftest.err
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } &&
18716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18717 { (case "(($ac_try" in
18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719 *) ac_try_echo=$ac_try;;
18721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18722 (eval "$ac_try") 2>&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; } &&
18726 { ac_try='test -s conftest.$ac_objext'
18727 { (case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_try") 2>&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; }; then
18736 llvm_cv_cxx_visibility_inlines_hidden=yes
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18741 llvm_cv_cxx_visibility_inlines_hidden=no
18744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18745 CXXFLAGS="$oldcxxflags"
18747 ac_cpp='$CPP $CPPFLAGS'
18748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18754 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18755 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18756 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18757 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18760 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18765 if test "$llvm_cv_link_use_r" = "yes" ; then
18772 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18773 RDYNAMIC="-rdynamic"
18780 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18787 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18789 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18791 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18793 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18795 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18798 ac_config_files="$ac_config_files Makefile.config"
18801 ac_config_files="$ac_config_files llvm.spec"
18804 ac_config_files="$ac_config_files docs/doxygen.cfg"
18807 if test "${clang_src_root}" = ""; then
18808 clang_src_root="$srcdir/tools/clang"
18810 if test -f ${clang_src_root}/README.txt; then
18811 configh="include/clang/Config/config.h"
18812 doxy="docs/doxygen.cfg"
18813 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18815 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18819 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18822 test "x$program_prefix" = "xNONE" && program_prefix=""
18826 ac_config_commands="$ac_config_commands setup"
18828 ac_config_commands="$ac_config_commands Makefile"
18831 ac_config_commands="$ac_config_commands Makefile.common"
18834 ac_config_commands="$ac_config_commands examples/Makefile"
18837 ac_config_commands="$ac_config_commands lib/Makefile"
18840 ac_config_commands="$ac_config_commands test/Makefile"
18843 ac_config_commands="$ac_config_commands test/Makefile.tests"
18846 ac_config_commands="$ac_config_commands unittests/Makefile"
18849 ac_config_commands="$ac_config_commands tools/Makefile"
18852 ac_config_commands="$ac_config_commands utils/Makefile"
18855 ac_config_commands="$ac_config_commands projects/Makefile"
18858 ac_config_commands="$ac_config_commands bindings/Makefile"
18861 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18865 cat >confcache <<\_ACEOF
18866 # This file is a shell script that caches the results of configure
18867 # tests run on this system so they can be shared between configure
18868 # scripts and configure runs, see configure's option --config-cache.
18869 # It is not useful on other systems. If it contains results you don't
18870 # want to keep, you may remove or edit it.
18872 # config.status only pays attention to the cache file if you give it
18873 # the --recheck option to rerun configure.
18875 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18876 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18877 # following values.
18881 # The following way of writing the cache mishandles newlines in values,
18882 # but we know of no workaround that is simple, portable, and efficient.
18883 # So, we kill variables containing newlines.
18884 # Ultrix sh set writes to stderr and can't be redirected directly,
18885 # and sets the high bit in the cache file unless we assign to the vars.
18887 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18888 eval ac_val=\$$ac_var
18892 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18893 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18896 _ | IFS | as_nl) ;; #(
18897 *) $as_unset $ac_var ;;
18903 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18904 *${as_nl}ac_space=\ *)
18905 # `set' does not quote correctly, so add quotes (double-quote
18906 # substitution turns \\\\ into \\, and sed turns \\ into \).
18909 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18912 # `set' quotes correctly as required by POSIX, so do not add quotes.
18913 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18922 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18924 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18926 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18927 if test -w "$cache_file"; then
18928 test "x$cache_file" != "x/dev/null" &&
18929 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18930 echo "$as_me: updating cache $cache_file" >&6;}
18931 cat confcache >$cache_file
18933 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18934 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18939 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18940 # Let make expand exec_prefix.
18941 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18943 DEFS=-DHAVE_CONFIG_H
18947 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18948 # 1. Remove the extension, and $U if already installed.
18949 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18950 ac_i=`echo "$ac_i" | sed "$ac_script"`
18951 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18952 # will be set to the directory where LIBOBJS objects are built.
18953 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18954 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18956 LIBOBJS=$ac_libobjs
18958 LTLIBOBJS=$ac_ltlibobjs
18962 : ${CONFIG_STATUS=./config.status}
18963 ac_clean_files_save=$ac_clean_files
18964 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18965 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18966 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18967 cat >$CONFIG_STATUS <<_ACEOF
18969 # Generated by $as_me.
18970 # Run this file to recreate the current configuration.
18971 # Compiler output produced by configure, useful for debugging
18972 # configure, is in config.log if it exists.
18975 ac_cs_recheck=false
18977 SHELL=\${CONFIG_SHELL-$SHELL}
18980 cat >>$CONFIG_STATUS <<\_ACEOF
18981 ## --------------------- ##
18982 ## M4sh Initialization. ##
18983 ## --------------------- ##
18985 # Be Bourne compatible
18986 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18989 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18990 # is contrary to our usage. Disable this feature.
18991 alias -g '${1+"$@"}'='"$@"'
18992 setopt NO_GLOB_SUBST
18994 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18996 BIN_SH=xpg4; export BIN_SH # for Tru64
18997 DUALCASE=1; export DUALCASE # for MKS sh
19001 # Avoid depending upon Character Ranges.
19002 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19003 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19004 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19005 as_cr_digits='0123456789'
19006 as_cr_alnum=$as_cr_Letters$as_cr_digits
19008 # The user is always right.
19009 if test "${PATH_SEPARATOR+set}" != set; then
19010 echo "#! /bin/sh" >conf$$.sh
19011 echo "exit 0" >>conf$$.sh
19013 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19021 # Support unset when possible.
19022 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19030 # We need space, tab and new line, in precisely that order. Quoting is
19031 # there to prevent editors from complaining about space-tab.
19032 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19033 # splitting by setting IFS to empty value.)
19038 # Find who we are. Look in the path if we contain no directory separator.
19040 *[\\/]* ) as_myself=$0 ;;
19041 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19042 for as_dir in $PATH
19045 test -z "$as_dir" && as_dir=.
19046 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19052 # We did not find ourselves, most probably we were run as `sh COMMAND'
19053 # in which case we are not to be found in the path.
19054 if test "x$as_myself" = x; then
19057 if test ! -f "$as_myself"; then
19058 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19059 { (exit 1); exit 1; }
19062 # Work around bugs in pre-3.0 UWIN ksh.
19063 for as_var in ENV MAIL MAILPATH
19064 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19072 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19073 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19074 LC_TELEPHONE LC_TIME
19076 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19077 eval $as_var=C; export $as_var
19079 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19083 # Required to use basename.
19084 if expr a : '\(a\)' >/dev/null 2>&1 &&
19085 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19091 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19092 as_basename=basename
19098 # Name of the executable.
19099 as_me=`$as_basename -- "$0" ||
19100 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19101 X"$0" : 'X\(//\)$' \| \
19102 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19104 sed '/^.*\/\([^/][^/]*\)\/*$/{
19123 as_lineno_1=$LINENO
19124 as_lineno_2=$LINENO
19125 test "x$as_lineno_1" != "x$as_lineno_2" &&
19126 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19128 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19129 # uniformly replaced by the line number. The first 'sed' inserts a
19130 # line-number line after each line using $LINENO; the second 'sed'
19131 # does the real work. The second script uses 'N' to pair each
19132 # line-number line with the line containing $LINENO, and appends
19133 # trailing '-' during substitution so that $LINENO is not a special
19134 # case at line end.
19135 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19136 # scripts with optimization help from Paolo Bonzini. Blame Lee
19137 # E. McMahon (1931-1989) for sed's syntax. :-)
19149 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19152 ' >$as_me.lineno &&
19153 chmod +x "$as_me.lineno" ||
19154 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19155 { (exit 1); exit 1; }; }
19157 # Don't try to exec as it changes $[0], causing all sort of problems
19158 # (the dirname of $[0] is not the place where we might find the
19159 # original and so on. Autoconf is especially sensitive to this).
19160 . "./$as_me.lineno"
19161 # Exit status is that of the last command.
19166 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19172 ECHO_C= ECHO_N= ECHO_T=
19173 case `echo -n x` in
19175 case `echo 'x\c'` in
19176 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19183 if expr a : '\(a\)' >/dev/null 2>&1 &&
19184 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19190 rm -f conf$$ conf$$.exe conf$$.file
19191 if test -d conf$$.dir; then
19192 rm -f conf$$.dir/conf$$.file
19198 if ln -s conf$$.file conf$$ 2>/dev/null; then
19200 # ... but there are two gotchas:
19201 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19202 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19203 # In both cases, we have to default to `cp -p'.
19204 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19206 elif ln conf$$.file conf$$ 2>/dev/null; then
19211 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19212 rmdir conf$$.dir 2>/dev/null
19214 if mkdir -p . 2>/dev/null; then
19217 test -d ./-p && rmdir ./-p
19221 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
19222 # systems may use methods other than mode bits to determine executability.
19223 cat >conf$$.file <<_ASEOF
19227 chmod +x conf$$.file
19228 if test -x conf$$.file >/dev/null 2>&1; then
19229 as_executable_p="test -x"
19235 # Sed expression to map a string onto a valid CPP name.
19236 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19238 # Sed expression to map a string onto a valid variable name.
19239 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19244 # Save the log message, to keep $[0] and so on meaningful, and to
19245 # report actual input values of CONFIG_FILES etc. instead of their
19246 # values after options handling.
19248 This file was extended by LLVM $as_me 3.6.0svn, which was
19249 generated by GNU Autoconf 2.60. Invocation command line was
19251 CONFIG_FILES = $CONFIG_FILES
19252 CONFIG_HEADERS = $CONFIG_HEADERS
19253 CONFIG_LINKS = $CONFIG_LINKS
19254 CONFIG_COMMANDS = $CONFIG_COMMANDS
19257 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19262 cat >>$CONFIG_STATUS <<_ACEOF
19263 # Files that config.status was made for.
19264 config_files="$ac_config_files"
19265 config_headers="$ac_config_headers"
19266 config_commands="$ac_config_commands"
19270 cat >>$CONFIG_STATUS <<\_ACEOF
19272 \`$as_me' instantiates files from templates according to the
19273 current configuration.
19275 Usage: $0 [OPTIONS] [FILE]...
19277 -h, --help print this help, then exit
19278 -V, --version print version number, then exit
19279 -q, --quiet do not print progress messages
19280 -d, --debug don't remove temporary files
19281 --recheck update $as_me by reconfiguring in the same conditions
19282 --file=FILE[:TEMPLATE]
19283 instantiate the configuration file FILE
19284 --header=FILE[:TEMPLATE]
19285 instantiate the configuration header FILE
19287 Configuration files:
19290 Configuration headers:
19293 Configuration commands:
19296 Report bugs to <bug-autoconf@gnu.org>."
19299 cat >>$CONFIG_STATUS <<_ACEOF
19301 LLVM config.status 3.6.0svn
19302 configured by $0, generated by GNU Autoconf 2.60,
19303 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19305 Copyright (C) 2006 Free Software Foundation, Inc.
19306 This config.status script is free software; the Free Software Foundation
19307 gives unlimited permission to copy, distribute and modify it."
19314 cat >>$CONFIG_STATUS <<\_ACEOF
19315 # If no file are specified by the user, then we need to provide default
19316 # value. By we need to know if files were specified by the user.
19322 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19323 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19334 # Handling of the options.
19335 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19337 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19338 echo "$ac_cs_version"; exit ;;
19339 --debug | --debu | --deb | --de | --d | -d )
19341 --file | --fil | --fi | --f )
19343 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19344 ac_need_defaults=false;;
19345 --header | --heade | --head | --hea )
19347 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19348 ac_need_defaults=false;;
19350 # Conflict between --help and --header
19351 { echo "$as_me: error: ambiguous option: $1
19352 Try \`$0 --help' for more information." >&2
19353 { (exit 1); exit 1; }; };;
19354 --help | --hel | -h )
19355 echo "$ac_cs_usage"; exit ;;
19356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19357 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19360 # This is an error.
19361 -*) { echo "$as_me: error: unrecognized option: $1
19362 Try \`$0 --help' for more information." >&2
19363 { (exit 1); exit 1; }; } ;;
19365 *) ac_config_targets="$ac_config_targets $1"
19366 ac_need_defaults=false ;;
19372 ac_configure_extra_args=
19374 if $ac_cs_silent; then
19376 ac_configure_extra_args="$ac_configure_extra_args --silent"
19380 cat >>$CONFIG_STATUS <<_ACEOF
19381 if \$ac_cs_recheck; then
19382 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19383 CONFIG_SHELL=$SHELL
19384 export CONFIG_SHELL
19385 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19389 cat >>$CONFIG_STATUS <<\_ACEOF
19393 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19394 ## Running $as_me. ##
19400 cat >>$CONFIG_STATUS <<_ACEOF
19404 llvm_src="${srcdir}"
19408 cat >>$CONFIG_STATUS <<\_ACEOF
19410 # Handling of arguments.
19411 for ac_config_target in $ac_config_targets
19413 case $ac_config_target in
19414 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19415 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19416 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19417 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19418 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19419 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19420 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19421 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19422 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19423 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19424 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19425 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19426 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19427 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19428 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19429 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19430 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19431 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19432 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19433 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19434 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19435 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19436 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19437 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19438 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19439 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19441 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19442 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19443 { (exit 1); exit 1; }; };;
19448 # If the user did not use the arguments to specify the items to instantiate,
19449 # then the envvar interface is used. Set only those that are not.
19450 # We use the long form for the default assignment because of an extremely
19451 # bizarre bug on SunOS 4.1.3.
19452 if $ac_need_defaults; then
19453 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19454 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19455 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19458 # Have a temporary directory for convenience. Make it in the build tree
19459 # simply because there is no reason against having it here, and in addition,
19460 # creating and moving files from /tmp can sometimes cause problems.
19461 # Hook for its removal unless debugging.
19462 # Note that there is a small window in which the directory will not be cleaned:
19463 # after its creation but before its name has been assigned to `$tmp'.
19467 trap 'exit_status=$?
19468 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19470 trap '{ (exit 1); exit 1; }' 1 2 13 15
19472 # Create a (secure) tmp directory for tmp files.
19475 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19476 test -n "$tmp" && test -d "$tmp"
19479 tmp=./conf$$-$RANDOM
19480 (umask 077 && mkdir "$tmp")
19483 echo "$me: cannot create a temporary directory in ." >&2
19484 { (exit 1); exit 1; }
19488 # Set up the sed scripts for CONFIG_FILES section.
19491 # No need to generate the scripts if there are no CONFIG_FILES.
19492 # This happens for instance when ./config.status config.h
19493 if test -n "$CONFIG_FILES"; then
19500 for ac_last_try in false false false false false :; do
19501 cat >conf$$subs.sed <<_ACEOF
19502 SHELL!$SHELL$ac_delim
19503 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19504 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19505 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19506 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19507 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19508 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19509 exec_prefix!$exec_prefix$ac_delim
19510 prefix!$prefix$ac_delim
19511 program_transform_name!$program_transform_name$ac_delim
19512 bindir!$bindir$ac_delim
19513 sbindir!$sbindir$ac_delim
19514 libexecdir!$libexecdir$ac_delim
19515 datarootdir!$datarootdir$ac_delim
19516 datadir!$datadir$ac_delim
19517 sysconfdir!$sysconfdir$ac_delim
19518 sharedstatedir!$sharedstatedir$ac_delim
19519 localstatedir!$localstatedir$ac_delim
19520 includedir!$includedir$ac_delim
19521 oldincludedir!$oldincludedir$ac_delim
19522 docdir!$docdir$ac_delim
19523 infodir!$infodir$ac_delim
19524 htmldir!$htmldir$ac_delim
19525 dvidir!$dvidir$ac_delim
19526 pdfdir!$pdfdir$ac_delim
19527 psdir!$psdir$ac_delim
19528 libdir!$libdir$ac_delim
19529 localedir!$localedir$ac_delim
19530 mandir!$mandir$ac_delim
19531 DEFS!$DEFS$ac_delim
19532 ECHO_C!$ECHO_C$ac_delim
19533 ECHO_N!$ECHO_N$ac_delim
19534 ECHO_T!$ECHO_T$ac_delim
19535 LIBS!$LIBS$ac_delim
19536 build_alias!$build_alias$ac_delim
19537 host_alias!$host_alias$ac_delim
19538 target_alias!$target_alias$ac_delim
19539 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19540 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19541 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19542 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19543 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19545 CFLAGS!$CFLAGS$ac_delim
19546 LDFLAGS!$LDFLAGS$ac_delim
19547 CPPFLAGS!$CPPFLAGS$ac_delim
19548 ac_ct_CC!$ac_ct_CC$ac_delim
19549 EXEEXT!$EXEEXT$ac_delim
19550 OBJEXT!$OBJEXT$ac_delim
19552 CXXFLAGS!$CXXFLAGS$ac_delim
19553 ac_ct_CXX!$ac_ct_CXX$ac_delim
19555 subdirs!$subdirs$ac_delim
19556 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19557 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19558 build!$build$ac_delim
19559 build_cpu!$build_cpu$ac_delim
19560 build_vendor!$build_vendor$ac_delim
19561 build_os!$build_os$ac_delim
19562 host!$host$ac_delim
19563 host_cpu!$host_cpu$ac_delim
19564 host_vendor!$host_vendor$ac_delim
19565 host_os!$host_os$ac_delim
19566 target!$target$ac_delim
19567 target_cpu!$target_cpu$ac_delim
19568 target_vendor!$target_vendor$ac_delim
19569 target_os!$target_os$ac_delim
19571 HOST_OS!$HOST_OS$ac_delim
19572 TARGET_OS!$TARGET_OS$ac_delim
19573 LINKALL!$LINKALL$ac_delim
19574 NOLINKALL!$NOLINKALL$ac_delim
19575 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19576 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19577 ARCH!$ARCH$ac_delim
19578 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19579 HOST_ARCH!$HOST_ARCH$ac_delim
19580 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19581 BUILD_CC!$BUILD_CC$ac_delim
19582 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19583 BUILD_CXX!$BUILD_CXX$ac_delim
19584 CVSBUILD!$CVSBUILD$ac_delim
19585 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19586 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19587 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19588 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19589 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19590 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19591 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19592 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19593 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19594 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19595 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19596 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19597 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19598 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19601 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19603 elif $ac_last_try; then
19604 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19605 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19606 { (exit 1); exit 1; }; }
19608 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19612 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19613 if test -n "$ac_eof"; then
19614 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19615 ac_eof=`expr $ac_eof + 1`
19618 cat >>$CONFIG_STATUS <<_ACEOF
19619 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19623 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19624 s/^/s,@/; s/!/@,|#_!!_#|/
19627 s/'"$ac_delim"'$/,g/; t
19629 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19630 ' >>$CONFIG_STATUS <conf$$subs.sed
19631 rm -f conf$$subs.sed
19632 cat >>$CONFIG_STATUS <<_ACEOF
19638 for ac_last_try in false false false false false :; do
19639 cat >conf$$subs.sed <<_ACEOF
19640 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19642 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19643 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19644 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19645 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19646 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19647 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19648 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19649 ENABLE_PIC!$ENABLE_PIC$ac_delim
19650 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19651 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19652 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19653 ALL_TARGETS!$ALL_TARGETS$ac_delim
19654 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19655 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19656 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19657 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19658 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19659 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19660 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19661 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19662 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19663 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19664 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19665 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19666 ifGNUmake!$ifGNUmake$ac_delim
19667 LN_S!$LN_S$ac_delim
19671 DATE!$DATE$ac_delim
19672 FIND!$FIND$ac_delim
19673 GREP!$GREP$ac_delim
19674 MKDIR!$MKDIR$ac_delim
19676 RANLIB!$RANLIB$ac_delim
19681 BINPWD!$BINPWD$ac_delim
19683 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19684 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19685 INSTALL_DATA!$INSTALL_DATA$ac_delim
19686 BZIP2!$BZIP2$ac_delim
19688 DOXYGEN!$DOXYGEN$ac_delim
19689 GROFF!$GROFF$ac_delim
19690 GZIPBIN!$GZIPBIN$ac_delim
19691 PDFROFF!$PDFROFF$ac_delim
19693 OCAMLC!$OCAMLC$ac_delim
19694 OCAMLOPT!$OCAMLOPT$ac_delim
19695 OCAMLDEP!$OCAMLDEP$ac_delim
19696 OCAMLDOC!$OCAMLDOC$ac_delim
19698 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19699 EGREP!$EGREP$ac_delim
19700 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19701 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19702 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19703 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19704 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19705 PYTHON!$PYTHON$ac_delim
19706 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19707 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19708 USE_OPROFILE!$USE_OPROFILE$ac_delim
19709 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19710 XML2CONFIG!$XML2CONFIG$ac_delim
19711 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19712 LIBXML2_INC!$LIBXML2_INC$ac_delim
19713 CXXCPP!$CXXCPP$ac_delim
19714 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19715 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19716 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19717 MMAP_FILE!$MMAP_FILE$ac_delim
19718 SHLIBEXT!$SHLIBEXT$ac_delim
19719 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19720 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19721 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19722 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19723 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19724 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19725 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19726 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19727 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19728 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19729 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
19730 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19731 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19732 RPATH!$RPATH$ac_delim
19733 RDYNAMIC!$RDYNAMIC$ac_delim
19734 program_prefix!$program_prefix$ac_delim
19735 LIBOBJS!$LIBOBJS$ac_delim
19736 LTLIBOBJS!$LTLIBOBJS$ac_delim
19739 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19741 elif $ac_last_try; then
19742 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19743 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19744 { (exit 1); exit 1; }; }
19746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19750 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19751 if test -n "$ac_eof"; then
19752 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19753 ac_eof=`expr $ac_eof + 1`
19756 cat >>$CONFIG_STATUS <<_ACEOF
19757 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19761 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19762 s/^/s,@/; s/!/@,|#_!!_#|/
19765 s/'"$ac_delim"'$/,g/; t
19767 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19768 ' >>$CONFIG_STATUS <conf$$subs.sed
19769 rm -f conf$$subs.sed
19770 cat >>$CONFIG_STATUS <<_ACEOF
19775 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19776 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19777 # trailing colons and then remove the whole line if VPATH becomes empty
19778 # (actually we leave an empty line to preserve line numbers).
19779 if test "x$srcdir" = x.; then
19780 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19781 s/:*\$(srcdir):*/:/
19782 s/:*\${srcdir}:*/:/
19784 s/^\([^=]*=[ ]*\):*/\1/
19790 cat >>$CONFIG_STATUS <<\_ACEOF
19791 fi # test -n "$CONFIG_FILES"
19794 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19797 :[FHLC]) ac_mode=$ac_tag; continue;;
19799 case $ac_mode$ac_tag in
19801 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19802 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19803 { (exit 1); exit 1; }; };;
19804 :[FH]-) ac_tag=-:-;;
19805 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19822 -) ac_f="$tmp/stdin";;
19823 *) # Look for the file first in the build tree, then in the source tree
19824 # (if the path is not absolute). The absolute path cannot be DOS-style,
19825 # because $ac_f cannot contain `:'.
19829 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19831 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19832 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19833 { (exit 1); exit 1; }; };;
19835 ac_file_inputs="$ac_file_inputs $ac_f"
19838 # Let's still pretend it is `configure' which instantiates (i.e., don't
19839 # use $as_me), people would be surprised to read:
19840 # /* config.h. Generated by config.status. */
19841 configure_input="Generated from "`IFS=:
19842 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19843 if test x"$ac_file" != x-; then
19844 configure_input="$ac_file. $configure_input"
19845 { echo "$as_me:$LINENO: creating $ac_file" >&5
19846 echo "$as_me: creating $ac_file" >&6;}
19850 *:-:* | *:-) cat >"$tmp/stdin";;
19855 ac_dir=`$as_dirname -- "$ac_file" ||
19856 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19857 X"$ac_file" : 'X\(//\)[^/]' \| \
19858 X"$ac_file" : 'X\(//\)$' \| \
19859 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19865 /^X\(\/\/\)[^/].*/{
19880 -*) as_dir=./$as_dir;;
19882 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19886 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19887 *) as_qdir=$as_dir;;
19889 as_dirs="'$as_qdir' $as_dirs"
19890 as_dir=`$as_dirname -- "$as_dir" ||
19891 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19892 X"$as_dir" : 'X\(//\)[^/]' \| \
19893 X"$as_dir" : 'X\(//\)$' \| \
19894 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19900 /^X\(\/\/\)[^/].*/{
19913 test -d "$as_dir" && break
19915 test -z "$as_dirs" || eval "mkdir $as_dirs"
19916 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19917 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19918 { (exit 1); exit 1; }; }; }
19922 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19924 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19925 # A ".." for each directory in $ac_dir_suffix.
19926 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19927 case $ac_top_builddir_sub in
19928 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19929 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19932 ac_abs_top_builddir=$ac_pwd
19933 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19934 # for backward compatibility:
19935 ac_top_builddir=$ac_top_build_prefix
19938 .) # We are building in place.
19940 ac_top_srcdir=$ac_top_builddir_sub
19941 ac_abs_top_srcdir=$ac_pwd ;;
19942 [\\/]* | ?:[\\/]* ) # Absolute name.
19943 ac_srcdir=$srcdir$ac_dir_suffix;
19944 ac_top_srcdir=$srcdir
19945 ac_abs_top_srcdir=$srcdir ;;
19946 *) # Relative name.
19947 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19948 ac_top_srcdir=$ac_top_build_prefix$srcdir
19949 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19951 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19961 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19962 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19966 cat >>$CONFIG_STATUS <<\_ACEOF
19967 # If the template does not know about datarootdir, expand it.
19968 # FIXME: This hack should be removed a few years after 2.60.
19969 ac_datarootdir_hack=; ac_datarootdir_seen=
19971 case `sed -n '/datarootdir/ {
19980 ' $ac_file_inputs` in
19981 *datarootdir*) ac_datarootdir_seen=yes;;
19982 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19983 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19984 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19986 cat >>$CONFIG_STATUS <<_ACEOF
19987 ac_datarootdir_hack='
19988 s&@datadir@&$datadir&g
19989 s&@docdir@&$docdir&g
19990 s&@infodir@&$infodir&g
19991 s&@localedir@&$localedir&g
19992 s&@mandir@&$mandir&g
19993 s&\\\${datarootdir}&$datarootdir&g' ;;
19997 # Neutralize VPATH when `$srcdir' = `.'.
19998 # Shell code in configure.ac might set extrasub.
19999 # FIXME: do we really want to maintain this feature?
20000 cat >>$CONFIG_STATUS <<_ACEOF
20004 cat >>$CONFIG_STATUS <<\_ACEOF
20006 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20007 s&@configure_input@&$configure_input&;t t
20008 s&@top_builddir@&$ac_top_builddir_sub&;t t
20009 s&@srcdir@&$ac_srcdir&;t t
20010 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20011 s&@top_srcdir@&$ac_top_srcdir&;t t
20012 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20013 s&@builddir@&$ac_builddir&;t t
20014 s&@abs_builddir@&$ac_abs_builddir&;t t
20015 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20016 s&@INSTALL@&$ac_INSTALL&;t t
20017 $ac_datarootdir_hack
20018 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
20020 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20021 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20022 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20023 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20024 which seems to be undefined. Please make sure it is defined." >&5
20025 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20026 which seems to be undefined. Please make sure it is defined." >&2;}
20030 -) cat "$tmp/out"; rm -f "$tmp/out";;
20031 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20040 # Transform confdefs.h into a sed script `conftest.defines', that
20041 # substitutes the proper values into config.h.in to produce config.h.
20042 rm -f conftest.defines conftest.tail
20043 # First, append a space to every undef/define line, to ease matching.
20044 echo 's/$/ /' >conftest.defines
20045 # Then, protect against being on the right side of a sed subst, or in
20046 # an unquoted here document, in config.status. If some macros were
20047 # called several times there might be several #defines for the same
20048 # symbol, which is useless. But do not sort them, since the last
20049 # AC_DEFINE must be honored.
20050 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20051 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20052 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20053 # PARAMS is the parameter list in the macro definition--in most cases, it's
20054 # just an empty string.
20055 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20056 ac_dB='\\)[ (].*,\\1define\\2'
20064 s/^[ ]*#[ ]*define[ ][ ]*//
20069 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20070 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20071 ' >>conftest.defines
20073 # Remove the space that was appended to ease matching.
20074 # Then replace #undef with comments. This is necessary, for
20075 # example, in the case of _POSIX_SOURCE, which is predefined and required
20076 # on some systems where configure will not decide to define it.
20077 # (The regexp can be short, since the line contains either #define or #undef.)
20079 s,^[ #]*u.*,/* & */,' >>conftest.defines
20081 # Break up conftest.defines:
20082 ac_max_sed_lines=50
20084 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20085 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20086 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20088 ac_in='$ac_file_inputs'
20089 ac_out='"$tmp/out1"'
20090 ac_nxt='"$tmp/out2"'
20094 # Write a here document:
20095 cat >>$CONFIG_STATUS <<_ACEOF
20096 # First, check the format of the line:
20097 cat >"\$tmp/defines.sed" <<\\CEOF
20098 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20099 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20103 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20105 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20106 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20107 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20108 grep . conftest.tail >/dev/null || break
20109 rm -f conftest.defines
20110 mv conftest.tail conftest.defines
20112 rm -f conftest.defines conftest.tail
20114 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20115 cat >>$CONFIG_STATUS <<\_ACEOF
20116 if test x"$ac_file" != x-; then
20117 echo "/* $configure_input */" >"$tmp/config.h"
20118 cat "$ac_result" >>"$tmp/config.h"
20119 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20120 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20121 echo "$as_me: $ac_file is unchanged" >&6;}
20124 mv "$tmp/config.h" $ac_file
20127 echo "/* $configure_input */"
20133 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20134 echo "$as_me: executing $ac_file commands" >&6;}
20139 case $ac_file$ac_mode in
20140 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20141 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20142 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20143 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20144 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20145 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20146 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20147 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20148 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20149 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20150 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20151 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20152 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20153 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20154 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20155 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20156 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20157 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20158 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20159 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20160 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20161 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20162 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20163 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20169 { (exit 0); exit 0; }
20171 chmod +x $CONFIG_STATUS
20172 ac_clean_files=$ac_clean_files_save
20175 # configure is writing to config.log, and then calls config.status.
20176 # config.status does its own redirection, appending to config.log.
20177 # Unfortunately, on DOS this fails, as config.log is still kept open
20178 # by configure, so config.status won't be able to write to it; its
20179 # output is simply discarded. So we exec the FD to /dev/null,
20180 # effectively closing config.log, so it can be properly (re)opened and
20181 # appended to by config.status. When coming back to configure, we
20182 # need to make the FD available again.
20183 if test "$no_create" != yes; then
20185 ac_config_status_args=
20186 test "$silent" = yes &&
20187 ac_config_status_args="$ac_config_status_args --quiet"
20189 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20191 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20192 # would make configure fail if this is the last instruction.
20193 $ac_cs_success || { (exit 1); exit 1; }
20197 # CONFIG_SUBDIRS section.
20199 if test "$no_recursion" != yes; then
20201 # Remove --cache-file and --srcdir arguments so they do not pile up.
20202 ac_sub_configure_args=
20204 eval "set x $ac_configure_args"
20208 if test -n "$ac_prev"; then
20213 -cache-file | --cache-file | --cache-fil | --cache-fi \
20214 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20215 ac_prev=cache_file ;;
20216 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20217 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20220 --config-cache | -C)
20222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20226 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20228 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20232 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20234 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20238 # Always prepend --prefix to ensure using the same prefix
20239 # in subdir configurations.
20240 ac_arg="--prefix=$prefix"
20242 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20244 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20247 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20249 # Do not complain, so a configure script can configure whichever
20250 # parts of a large source tree are present.
20251 test -d "$srcdir/$ac_dir" || continue
20253 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20254 echo "$as_me:$LINENO: $ac_msg" >&5
20258 -*) as_dir=./$as_dir;;
20260 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20264 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20265 *) as_qdir=$as_dir;;
20267 as_dirs="'$as_qdir' $as_dirs"
20268 as_dir=`$as_dirname -- "$as_dir" ||
20269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20270 X"$as_dir" : 'X\(//\)[^/]' \| \
20271 X"$as_dir" : 'X\(//\)$' \| \
20272 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20278 /^X\(\/\/\)[^/].*/{
20291 test -d "$as_dir" && break
20293 test -z "$as_dirs" || eval "mkdir $as_dirs"
20294 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20295 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20296 { (exit 1); exit 1; }; }; }
20300 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20302 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20303 # A ".." for each directory in $ac_dir_suffix.
20304 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20305 case $ac_top_builddir_sub in
20306 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20307 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20310 ac_abs_top_builddir=$ac_pwd
20311 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20312 # for backward compatibility:
20313 ac_top_builddir=$ac_top_build_prefix
20316 .) # We are building in place.
20318 ac_top_srcdir=$ac_top_builddir_sub
20319 ac_abs_top_srcdir=$ac_pwd ;;
20320 [\\/]* | ?:[\\/]* ) # Absolute name.
20321 ac_srcdir=$srcdir$ac_dir_suffix;
20322 ac_top_srcdir=$srcdir
20323 ac_abs_top_srcdir=$srcdir ;;
20324 *) # Relative name.
20325 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20326 ac_top_srcdir=$ac_top_build_prefix$srcdir
20327 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20329 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20334 # Check for guested configure; otherwise get Cygnus style configure.
20335 if test -f "$ac_srcdir/configure.gnu"; then
20336 ac_sub_configure=$ac_srcdir/configure.gnu
20337 elif test -f "$ac_srcdir/configure"; then
20338 ac_sub_configure=$ac_srcdir/configure
20339 elif test -f "$ac_srcdir/configure.in"; then
20340 # This should be Cygnus configure.
20341 ac_sub_configure=$ac_aux_dir/configure
20343 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20344 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20348 # The recursion is here.
20349 if test -n "$ac_sub_configure"; then
20350 # Make the cache file name correct relative to the subdirectory.
20351 case $cache_file in
20352 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20353 *) # Relative name.
20354 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20357 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20358 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20359 # The eval makes quoting arguments work.
20360 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20361 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20362 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20363 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20364 { (exit 1); exit 1; }; }