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
792 ENABLE_VISIBILITY_INLINES_HIDDEN
799 ac_precious_vars='build_alias
811 ac_subdirs_all='projects/test-suite
814 projects/llvm-poolalloc
818 # Initialize some variables set by options.
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
830 program_transform_name=s,x,x,
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 -enable-* | --enable-*)
938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
959 -help | --help | --hel | --he | -h)
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1108 -site=* | --site=* | --sit=*)
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
1153 # Obsolete; use --with-x.
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
1201 # Be sure to have absolute directory names.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val=\$$ac_var
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237 test "$silent" = yes && exec 6>/dev/null
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1318 \`configure' configures LLVM 3.6.0svn to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of LLVM 3.6.0svn:";;
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-polly Use polly if available (default is YES)
1392 --enable-libcpp Use libc++ if available (default is NO)
1393 --enable-compiler-version-checks
1394 Check the version of the host compiler (default is
1396 --enable-cxx1y Use c++1y if available (default is NO)
1397 --enable-split-dwarf Use split-dwarf if available (default is NO)
1398 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1399 --enable-clang-plugin-support
1400 Enable plugin support in clang (default is YES)
1401 --enable-clang-static-analyzer
1402 Enable building of clang Static Analyzer (default is
1404 --enable-optimized Compile with optimizations enabled (default is NO)
1405 --enable-profiling Compile with profiling enabled (default is NO)
1406 --enable-assertions Compile with assertion checks enabled (default is
1408 --enable-werror Compile with -Werror enabled (default is NO)
1409 --enable-expensive-checks
1410 Compile with expensive debug checks enabled (default
1412 --enable-debug-runtime Build runtime libs with debug symbols (default is
1414 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1415 optimization is on and YES if it's off)
1416 --enable-keep-symbols Do not strip installed executables)
1417 --enable-jit Enable Just In Time Compiling (default is YES)
1418 --enable-docs Build documents (default is YES)
1419 --enable-doxygen Build doxygen documentation (default is NO)
1420 --enable-threads Use threads if available (default is YES)
1421 --enable-pthreads Use pthreads if available (default is YES)
1422 --enable-zlib Use zlib for compression/decompression if available
1424 --enable-pic Build LLVM with Position Independent Code (default
1426 --enable-shared Build a shared library and link tools against it
1428 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1429 Win32 DLL (default is NO)
1430 --enable-timestamps Enable embedding timestamp information in build
1432 --enable-backtraces Enable embedding backtraces on crash (default is
1434 --enable-crash-overrides
1435 Enable crash handling overrides (default is YES)
1436 --enable-targets Build specific host targets: all or
1437 target1,target2,... Valid targets are: host, x86,
1438 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1439 hexagon, xcore, msp430, nvptx, systemz, r600, and
1441 --enable-experimental-targets
1442 Build experimental host targets: disable or
1443 target1,target2,... (default=disable)
1444 --enable-bindings Build specific language bindings:
1445 all,auto,none,{binding-name} (default=auto)
1446 --enable-terminfo Query the terminfo database if available (default is
1448 --enable-libedit Use libedit if available (default is YES)
1449 --enable-libffi Check for the presence of libffi (default is NO)
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454 --with-optimize-option Select the compiler options to use for optimized
1456 --with-extra-options Specify additional options to compile LLVM with
1457 --with-extra-ld-options Specify additional options to link LLVM with
1458 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 --with-clang-srcdir Directory to the out-of-tree Clang source
1461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1464 --with-c-include-dirs Colon separated list of directories clang will
1466 --with-gcc-toolchain Directory where gcc is installed.
1467 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1468 --with-binutils-include Specify path to binutils/include/ containing
1469 plugin-api.h file for gold plugin.
1470 --with-bug-report-url Specify the URL where bug reports should be
1471 submitted (default=http://llvm.org/bugs/)
1472 --with-internal-prefix Installation directory for internal files
1473 --with-python path to python
1474 --with-oprofile=<prefix>
1475 Tell OProfile >= 0.9.4 how to symbolize JIT output
1476 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1485 you have headers in a nonstandard directory <include dir>
1486 CXX C++ compiler command
1487 CXXFLAGS C++ compiler flags
1489 CXXCPP C++ preprocessor
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1494 Report bugs to <http://llvm.org/bugs/>.
1499 if test "$ac_init_help" = "recursive"; then
1500 # If there are subdirs, report their specific --help.
1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502 test -d "$ac_dir" || continue
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1522 .) # We are building in place.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1546 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1555 LLVM configure 3.6.0svn
1556 generated by GNU Autoconf 2.60
1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1559 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1563 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1567 cat >config.log <<_ACEOF
1568 This file contains any messages produced by compilers while
1569 running configure, to aid debugging if configure makes a mistake.
1571 It was created by LLVM $as_me 3.6.0svn, which was
1572 generated by GNU Autoconf 2.60. Invocation command line was
1584 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1585 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1586 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1587 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1588 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1590 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1591 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1593 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1594 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1595 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1596 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1597 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1598 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1599 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 test -z "$as_dir" && as_dir=.
1608 echo "PATH: $as_dir"
1624 # Keep a trace of the command line.
1625 # Strip out --no-create and --no-recursion so they do not pile up.
1626 # Strip out --silent because we don't want to record it for future runs.
1627 # Also quote any args containing shell meta-characters.
1628 # Make two passes to allow for proper duplicate-argument suppression.
1632 ac_must_keep_next=false
1638 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1640 | -silent | --silent | --silen | --sile | --sil)
1643 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1646 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1648 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1649 if test $ac_must_keep_next = true; then
1650 ac_must_keep_next=false # Got value, back to normal.
1653 *=* | --config-cache | -C | -disable-* | --disable-* \
1654 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1655 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1656 | -with-* | --with-* | -without-* | --without-* | --x)
1657 case "$ac_configure_args0 " in
1658 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1661 -* ) ac_must_keep_next=true ;;
1664 ac_configure_args="$ac_configure_args '$ac_arg'"
1669 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1670 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1672 # When interrupted or exit'd, cleanup temporary files, and complete
1673 # config.log. We remove comments because anyway the quotes in there
1674 # would cause problems or look ugly.
1675 # WARNING: Use '\'' to represent an apostrophe within the trap.
1676 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1677 trap 'exit_status=$?
1678 # Save into config.log some information that might help in debugging.
1683 ## ---------------- ##
1684 ## Cache variables. ##
1685 ## ---------------- ##
1688 # The following way of writing the cache mishandles newlines in values,
1690 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1691 eval ac_val=\$$ac_var
1695 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1696 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1699 _ | IFS | as_nl) ;; #(
1700 *) $as_unset $ac_var ;;
1705 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1706 *${as_nl}ac_space=\ *)
1708 "s/'\''/'\''\\\\'\'''\''/g;
1709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1712 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720 ## ----------------- ##
1721 ## Output variables. ##
1722 ## ----------------- ##
1725 for ac_var in $ac_subst_vars
1727 eval ac_val=\$$ac_var
1729 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731 echo "$ac_var='\''$ac_val'\''"
1735 if test -n "$ac_subst_files"; then
1737 ## ------------------- ##
1738 ## File substitutions. ##
1739 ## ------------------- ##
1742 for ac_var in $ac_subst_files
1744 eval ac_val=\$$ac_var
1746 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 echo "$ac_var='\''$ac_val'\''"
1753 if test -s confdefs.h; then
1763 test "$ac_signal" != 0 &&
1764 echo "$as_me: caught signal $ac_signal"
1765 echo "$as_me: exit $exit_status"
1767 rm -f core *.core core.conftest.* &&
1768 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1771 for ac_signal in 1 2 13 15; do
1772 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1776 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1777 rm -f -r conftest* confdefs.h
1779 # Predefined preprocessor variables.
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_NAME "$PACKAGE_NAME"
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_STRING "$PACKAGE_STRING"
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806 # Let the site file select an alternate cache file if it wants to.
1807 # Prefer explicitly selected file to automatically selected ones.
1808 if test -n "$CONFIG_SITE"; then
1809 set x "$CONFIG_SITE"
1810 elif test "x$prefix" != xNONE; then
1811 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1813 set x "$ac_default_prefix/share/config.site" \
1814 "$ac_default_prefix/etc/config.site"
1819 if test -r "$ac_site_file"; then
1820 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1821 echo "$as_me: loading site script $ac_site_file" >&6;}
1822 sed 's/^/| /' "$ac_site_file" >&5
1827 if test -r "$cache_file"; then
1828 # Some versions of bash will fail to source /dev/null (special
1829 # files actually), so we avoid doing that.
1830 if test -f "$cache_file"; then
1831 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1832 echo "$as_me: loading cache $cache_file" >&6;}
1834 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1835 *) . "./$cache_file";;
1839 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1840 echo "$as_me: creating cache $cache_file" >&6;}
1844 # Check that the precious variables saved in the cache have kept the same
1846 ac_cache_corrupted=false
1847 for ac_var in $ac_precious_vars; do
1848 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1849 eval ac_new_set=\$ac_env_${ac_var}_set
1850 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1851 eval ac_new_val=\$ac_env_${ac_var}_value
1852 case $ac_old_set,$ac_new_set in
1854 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1855 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1856 ac_cache_corrupted=: ;;
1858 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1859 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1860 ac_cache_corrupted=: ;;
1863 if test "x$ac_old_val" != "x$ac_new_val"; then
1864 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1865 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1866 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1867 echo "$as_me: former value: $ac_old_val" >&2;}
1868 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1869 echo "$as_me: current value: $ac_new_val" >&2;}
1870 ac_cache_corrupted=:
1873 # Pass precious variables to config.status.
1874 if test "$ac_new_set" = set; then
1876 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1877 *) ac_arg=$ac_var=$ac_new_val ;;
1879 case " $ac_configure_args " in
1880 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1881 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1885 if $ac_cache_corrupted; then
1886 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1887 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1888 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1889 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1890 { (exit 1); exit 1; }; }
1918 ac_cpp='$CPP $CPPFLAGS'
1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925 LLVM_VERSION_MAJOR=3
1926 LLVM_VERSION_MINOR=6
1927 LLVM_VERSION_PATCH=0
1928 LLVM_VERSION_SUFFIX=svn
1931 cat >>confdefs.h <<_ACEOF
1932 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1936 cat >>confdefs.h <<_ACEOF
1937 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1941 cat >>confdefs.h <<_ACEOF
1942 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1951 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1960 for ac_dir in autoconf "$srcdir"/autoconf; do
1961 if test -f "$ac_dir/install-sh"; then
1963 ac_install_sh="$ac_aux_dir/install-sh -c"
1965 elif test -f "$ac_dir/install.sh"; then
1967 ac_install_sh="$ac_aux_dir/install.sh -c"
1969 elif test -f "$ac_dir/shtool"; then
1971 ac_install_sh="$ac_aux_dir/shtool install -c"
1975 if test -z "$ac_aux_dir"; then
1976 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1977 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1978 { (exit 1); exit 1; }; }
1981 # These three variables are undocumented and unsupported,
1982 # and are intended to be withdrawn in a future Autoconf release.
1983 # They can cause serious problems if a builder's source tree is in a directory
1984 # whose full name contains unusual characters.
1985 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1986 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1987 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1991 if test ${srcdir} != "." ; then
1992 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1993 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1994 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1995 { (exit 1); exit 1; }; }
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007 if test -n "$ac_tool_prefix"; then
2008 for ac_prog in clang gcc
2010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2027 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 if test -n "$CC"; then
2039 { echo "$as_me:$LINENO: result: $CC" >&5
2040 echo "${ECHO_T}$CC" >&6; }
2042 { echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6; }
2047 test -n "$CC" && break
2050 if test -z "$CC"; then
2052 for ac_prog in clang gcc
2054 # Extract the first word of "$ac_prog", so it can be a program name with args.
2055 set dummy $ac_prog; ac_word=$2
2056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 if test -n "$ac_ct_CC"; then
2062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2071 ac_cv_prog_ac_ct_CC="$ac_prog"
2072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2082 if test -n "$ac_ct_CC"; then
2083 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2084 echo "${ECHO_T}$ac_ct_CC" >&6; }
2086 { echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6; }
2091 test -n "$ac_ct_CC" && break
2094 if test "x$ac_ct_CC" = x; then
2097 case $cross_compiling:$ac_tool_warned in
2099 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2100 whose name does not start with the host triplet. If you think this
2101 configuration is useful to you, please write to autoconf@gnu.org." >&5
2102 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2103 whose name does not start with the host triplet. If you think this
2104 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2105 ac_tool_warned=yes ;;
2112 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2113 See \`config.log' for more details." >&5
2114 echo "$as_me: error: no acceptable C compiler found in \$PATH
2115 See \`config.log' for more details." >&2;}
2116 { (exit 1); exit 1; }; }
2118 # Provide some information about the compiler.
2119 echo "$as_me:$LINENO: checking for C compiler version" >&5
2120 ac_compiler=`set X $ac_compile; echo $2`
2121 { (ac_try="$ac_compiler --version >&5"
2123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124 *) ac_try_echo=$ac_try;;
2126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2127 (eval "$ac_compiler --version >&5") 2>&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }
2131 { (ac_try="$ac_compiler -v >&5"
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2137 (eval "$ac_compiler -v >&5") 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2141 { (ac_try="$ac_compiler -V >&5"
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2147 (eval "$ac_compiler -V >&5") 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }
2152 cat >conftest.$ac_ext <<_ACEOF
2155 cat confdefs.h >>conftest.$ac_ext
2156 cat >>conftest.$ac_ext <<_ACEOF
2157 /* end confdefs.h. */
2167 ac_clean_files_save=$ac_clean_files
2168 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2169 # Try to create an executable without -o first, disregard a.out.
2170 # It will help us diagnose broken compilers, and finding out an intuition
2172 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2173 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2174 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2176 # List of possible output files, starting from the most likely.
2177 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2178 # only as a last resort. b.out is created by i960 compilers.
2179 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2181 # The IRIX 6 linker writes into existing files which may not be
2182 # executable, retaining their permissions. Remove them first so a
2183 # subsequent execution test works.
2185 for ac_file in $ac_files
2188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2189 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2194 if { (ac_try="$ac_link_default"
2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197 *) ac_try_echo=$ac_try;;
2199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2200 (eval "$ac_link_default") 2>&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; then
2204 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2205 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2206 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2207 # so that the user can short-circuit this test for compilers unknown to
2209 for ac_file in $ac_files
2211 test -f "$ac_file" || continue
2213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2216 # We found the default executable, but exeext='' is most
2220 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2222 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224 # We set ac_cv_exeext here because the later test for it is not
2225 # safe: cross compilers may not add the suffix if given an `-o'
2226 # argument, so we may need to know it at that point already.
2227 # Even if this section looks crufty: it has the advantage of
2234 test "$ac_cv_exeext" = no && ac_cv_exeext=
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2240 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: C compiler cannot create executables
2243 See \`config.log' for more details." >&2;}
2244 { (exit 77); exit 77; }; }
2247 ac_exeext=$ac_cv_exeext
2248 { echo "$as_me:$LINENO: result: $ac_file" >&5
2249 echo "${ECHO_T}$ac_file" >&6; }
2251 # Check that the compiler produces executables we can run. If not, either
2252 # the compiler is broken, or we cross compile.
2253 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2254 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2255 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2256 # If not cross compiling, check that we can run a simple program.
2257 if test "$cross_compiling" != yes; then
2258 if { ac_try='./$ac_file'
2259 { (case "(($ac_try" in
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264 (eval "$ac_try") 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; }; then
2270 if test "$cross_compiling" = maybe; then
2273 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2274 If you meant to cross compile, use \`--host'.
2275 See \`config.log' for more details." >&5
2276 echo "$as_me: error: cannot run C compiled programs.
2277 If you meant to cross compile, use \`--host'.
2278 See \`config.log' for more details." >&2;}
2279 { (exit 1); exit 1; }; }
2283 { echo "$as_me:$LINENO: result: yes" >&5
2284 echo "${ECHO_T}yes" >&6; }
2286 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2287 ac_clean_files=$ac_clean_files_save
2288 # Check that the compiler produces executables we can run. If not, either
2289 # the compiler is broken, or we cross compile.
2290 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2291 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2292 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2293 echo "${ECHO_T}$cross_compiling" >&6; }
2295 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2296 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2297 if { (ac_try="$ac_link"
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2303 (eval "$ac_link") 2>&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; then
2307 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2308 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2309 # work properly (i.e., refer to `conftest.exe'), while it won't with
2311 for ac_file in conftest.exe conftest conftest.*; do
2312 test -f "$ac_file" || continue
2314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2315 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2321 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2324 See \`config.log' for more details." >&2;}
2325 { (exit 1); exit 1; }; }
2328 rm -f conftest$ac_cv_exeext
2329 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2330 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2332 rm -f conftest.$ac_ext
2333 EXEEXT=$ac_cv_exeext
2335 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2336 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2337 if test "${ac_cv_objext+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 cat >conftest.$ac_ext <<_ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2355 rm -f conftest.o conftest.obj
2356 if { (ac_try="$ac_compile"
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2362 (eval "$ac_compile") 2>&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; then
2366 for ac_file in conftest.o conftest.obj conftest.*; do
2367 test -f "$ac_file" || continue;
2369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2370 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2378 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }
2385 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2387 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2388 echo "${ECHO_T}$ac_cv_objext" >&6; }
2389 OBJEXT=$ac_cv_objext
2391 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2392 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2393 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 cat >conftest.$ac_ext <<_ACEOF
2399 cat confdefs.h >>conftest.$ac_ext
2400 cat >>conftest.$ac_ext <<_ACEOF
2401 /* end confdefs.h. */
2414 rm -f conftest.$ac_objext
2415 if { (ac_try="$ac_compile"
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421 (eval "$ac_compile") 2>conftest.er1
2423 grep -v '^ *+' conftest.er1 >conftest.err
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2429 { (case "(($ac_try" in
2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431 *) ac_try_echo=$ac_try;;
2433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434 (eval "$ac_try") 2>&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; } &&
2438 { ac_try='test -s conftest.$ac_objext'
2439 { (case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444 (eval "$ac_try") 2>&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
2450 echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2460 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2461 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2462 GCC=`test $ac_compiler_gnu = yes && echo yes`
2463 ac_test_CFLAGS=${CFLAGS+set}
2464 ac_save_CFLAGS=$CFLAGS
2465 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2466 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_cc_g+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 ac_save_c_werror_flag=$ac_c_werror_flag
2471 ac_c_werror_flag=yes
2474 cat >conftest.$ac_ext <<_ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2489 rm -f conftest.$ac_objext
2490 if { (ac_try="$ac_compile"
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496 (eval "$ac_compile") 2>conftest.er1
2498 grep -v '^ *+' conftest.er1 >conftest.err
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2504 { (case "(($ac_try" in
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509 (eval "$ac_try") 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_try") 2>&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2529 cat >conftest.$ac_ext <<_ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2544 rm -f conftest.$ac_objext
2545 if { (ac_try="$ac_compile"
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_compile") 2>conftest.er1
2553 grep -v '^ *+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2559 { (case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_try") 2>&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest.$ac_objext'
2569 { (case "(($ac_try" in
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574 (eval "$ac_try") 2>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2583 ac_c_werror_flag=$ac_save_c_werror_flag
2585 cat >conftest.$ac_ext <<_ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2600 rm -f conftest.$ac_objext
2601 if { (ac_try="$ac_compile"
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607 (eval "$ac_compile") 2>conftest.er1
2609 grep -v '^ *+' conftest.er1 >conftest.err
2611 cat conftest.err >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2615 { (case "(($ac_try" in
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620 (eval "$ac_try") 2>&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; } &&
2624 { ac_try='test -s conftest.$ac_objext'
2625 { (case "(($ac_try" in
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2630 (eval "$ac_try") 2>&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 ac_c_werror_flag=$ac_save_c_werror_flag
2651 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2653 if test "$ac_test_CFLAGS" = set; then
2654 CFLAGS=$ac_save_CFLAGS
2655 elif test $ac_cv_prog_cc_g = yes; then
2656 if test "$GCC" = yes; then
2662 if test "$GCC" = yes; then
2668 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2669 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2670 if test "${ac_cv_prog_cc_c89+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 ac_cv_prog_cc_c89=no
2675 cat >conftest.$ac_ext <<_ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2683 #include <sys/types.h>
2684 #include <sys/stat.h>
2685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2686 struct buf { int x; };
2687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2688 static char *e (p, i)
2694 static char *f (char * (*g) (char **, int), char **p, ...)
2699 s = g (p, va_arg (v,int));
2704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2705 function prototypes and stuff, but not '\xHH' hex character constants.
2706 These don't provoke an error unfortunately, instead are silently treated
2707 as 'x'. The following induces an error, until -std is added to get
2708 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2709 array size at least. It's necessary to write '\x00'==0 to get something
2710 that's true only with -std. */
2711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2713 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2714 inside strings and character constants. */
2716 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2718 int test (int i, double x);
2719 struct s1 {int (*f) (int a);};
2720 struct s2 {int (*f) (double a);};
2721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2727 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2732 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2733 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2735 CC="$ac_save_CC $ac_arg"
2736 rm -f conftest.$ac_objext
2737 if { (ac_try="$ac_compile"
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_compile") 2>conftest.er1
2745 grep -v '^ *+' conftest.er1 >conftest.err
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } &&
2750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2751 { (case "(($ac_try" in
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_try") 2>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_try") 2>&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; }; then
2770 ac_cv_prog_cc_c89=$ac_arg
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2778 rm -f core conftest.err conftest.$ac_objext
2779 test "x$ac_cv_prog_cc_c89" != "xno" && break
2781 rm -f conftest.$ac_ext
2786 case "x$ac_cv_prog_cc_c89" in
2788 { echo "$as_me:$LINENO: result: none needed" >&5
2789 echo "${ECHO_T}none needed" >&6; } ;;
2791 { echo "$as_me:$LINENO: result: unsupported" >&5
2792 echo "${ECHO_T}unsupported" >&6; } ;;
2794 CC="$CC $ac_cv_prog_cc_c89"
2795 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2796 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807 ac_cpp='$CXXCPP $CPPFLAGS'
2808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2811 if test -z "$CXX"; then
2812 if test -n "$CCC"; then
2815 if test -n "$ac_tool_prefix"; then
2816 for ac_prog in clang++ g++
2818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2822 if test "${ac_cv_prog_CXX+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 if test -n "$CXX"; then
2826 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 if test -n "$CXX"; then
2847 { echo "$as_me:$LINENO: result: $CXX" >&5
2848 echo "${ECHO_T}$CXX" >&6; }
2850 { echo "$as_me:$LINENO: result: no" >&5
2851 echo "${ECHO_T}no" >&6; }
2855 test -n "$CXX" && break
2858 if test -z "$CXX"; then
2860 for ac_prog in clang++ g++
2862 # Extract the first word of "$ac_prog", so it can be a program name with args.
2863 set dummy $ac_prog; ac_word=$2
2864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2866 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 if test -n "$ac_ct_CXX"; then
2870 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_ac_ct_CXX="$ac_prog"
2880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2890 if test -n "$ac_ct_CXX"; then
2891 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2892 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2894 { echo "$as_me:$LINENO: result: no" >&5
2895 echo "${ECHO_T}no" >&6; }
2899 test -n "$ac_ct_CXX" && break
2902 if test "x$ac_ct_CXX" = x; then
2905 case $cross_compiling:$ac_tool_warned in
2907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2908 whose name does not start with the host triplet. If you think this
2909 configuration is useful to you, please write to autoconf@gnu.org." >&5
2910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2911 whose name does not start with the host triplet. If you think this
2912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2913 ac_tool_warned=yes ;;
2921 # Provide some information about the compiler.
2922 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2923 ac_compiler=`set X $ac_compile; echo $2`
2924 { (ac_try="$ac_compiler --version >&5"
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_compiler --version >&5") 2>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }
2934 { (ac_try="$ac_compiler -v >&5"
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2940 (eval "$ac_compiler -v >&5") 2>&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }
2944 { (ac_try="$ac_compiler -V >&5"
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_compiler -V >&5") 2>&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }
2955 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2956 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2957 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2978 rm -f conftest.$ac_objext
2979 if { (ac_try="$ac_compile"
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compile") 2>conftest.er1
2987 grep -v '^ *+' conftest.er1 >conftest.err
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } &&
2992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2993 { (case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_try") 2>&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_try") 2>&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3021 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3024 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3025 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3026 GXX=`test $ac_compiler_gnu = yes && echo yes`
3027 ac_test_CXXFLAGS=${CXXFLAGS+set}
3028 ac_save_CXXFLAGS=$CXXFLAGS
3029 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3030 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3031 if test "${ac_cv_prog_cxx_g+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3035 ac_cxx_werror_flag=yes
3038 cat >conftest.$ac_ext <<_ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3053 rm -f conftest.$ac_objext
3054 if { (ac_try="$ac_compile"
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_compile") 2>conftest.er1
3062 grep -v '^ *+' conftest.er1 >conftest.err
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
3067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3068 { (case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_try") 2>&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; } &&
3077 { ac_try='test -s conftest.$ac_objext'
3078 { (case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_try") 2>&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3087 ac_cv_prog_cxx_g=yes
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3093 cat >conftest.$ac_ext <<_ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3108 rm -f conftest.$ac_objext
3109 if { (ac_try="$ac_compile"
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compile") 2>conftest.er1
3117 grep -v '^ *+' conftest.er1 >conftest.err
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3123 { (case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_try") 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; } &&
3132 { ac_try='test -s conftest.$ac_objext'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3149 cat >conftest.$ac_ext <<_ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3198 ac_cv_prog_cxx_g=yes
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3215 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3216 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3217 if test "$ac_test_CXXFLAGS" = set; then
3218 CXXFLAGS=$ac_save_CXXFLAGS
3219 elif test $ac_cv_prog_cxx_g = yes; then
3220 if test "$GXX" = yes; then
3226 if test "$GXX" = yes; then
3233 ac_cpp='$CPP $CPPFLAGS'
3234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3244 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3245 # On Suns, sometimes $CPP names a directory.
3246 if test -n "$CPP" && test -d "$CPP"; then
3249 if test -z "$CPP"; then
3250 if test "${ac_cv_prog_CPP+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 # Double quotes because CPP needs to be expanded
3254 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3257 for ac_c_preproc_warn_flag in '' yes
3259 # Use a header file that comes with gcc, so configuring glibc
3260 # with a fresh cross-compiler works.
3261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3262 # <limits.h> exists even on freestanding compilers.
3263 # On the NeXT, cc -E runs the code through the compiler's parser,
3264 # not just through cpp. "Syntax error" is here to catch this case.
3265 cat >conftest.$ac_ext <<_ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3272 # include <limits.h>
3274 # include <assert.h>
3278 if { (ac_try="$ac_cpp conftest.$ac_ext"
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3286 grep -v '^ *+' conftest.er1 >conftest.err
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } >/dev/null; then
3291 if test -s conftest.err; then
3292 ac_cpp_err=$ac_c_preproc_warn_flag
3293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3300 if test -z "$ac_cpp_err"; then
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 # Broken: fails on valid input.
3310 rm -f conftest.err conftest.$ac_ext
3312 # OK, works on sane cases. Now check whether nonexistent headers
3313 # can be detected and how.
3314 cat >conftest.$ac_ext <<_ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3320 #include <ac_nonexistent.h>
3322 if { (ac_try="$ac_cpp conftest.$ac_ext"
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3330 grep -v '^ *+' conftest.er1 >conftest.err
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } >/dev/null; then
3335 if test -s conftest.err; then
3336 ac_cpp_err=$ac_c_preproc_warn_flag
3337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3344 if test -z "$ac_cpp_err"; then
3345 # Broken: success on invalid input.
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3351 # Passes both tests.
3356 rm -f conftest.err conftest.$ac_ext
3359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3360 rm -f conftest.err conftest.$ac_ext
3361 if $ac_preproc_ok; then
3373 { echo "$as_me:$LINENO: result: $CPP" >&5
3374 echo "${ECHO_T}$CPP" >&6; }
3376 for ac_c_preproc_warn_flag in '' yes
3378 # Use a header file that comes with gcc, so configuring glibc
3379 # with a fresh cross-compiler works.
3380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381 # <limits.h> exists even on freestanding compilers.
3382 # On the NeXT, cc -E runs the code through the compiler's parser,
3383 # not just through cpp. "Syntax error" is here to catch this case.
3384 cat >conftest.$ac_ext <<_ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3391 # include <limits.h>
3393 # include <assert.h>
3397 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405 grep -v '^ *+' conftest.er1 >conftest.err
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null; then
3410 if test -s conftest.err; then
3411 ac_cpp_err=$ac_c_preproc_warn_flag
3412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3419 if test -z "$ac_cpp_err"; then
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3425 # Broken: fails on valid input.
3429 rm -f conftest.err conftest.$ac_ext
3431 # OK, works on sane cases. Now check whether nonexistent headers
3432 # can be detected and how.
3433 cat >conftest.$ac_ext <<_ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 #include <ac_nonexistent.h>
3441 if { (ac_try="$ac_cpp conftest.$ac_ext"
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3449 grep -v '^ *+' conftest.er1 >conftest.err
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } >/dev/null; then
3454 if test -s conftest.err; then
3455 ac_cpp_err=$ac_c_preproc_warn_flag
3456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3463 if test -z "$ac_cpp_err"; then
3464 # Broken: success on invalid input.
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 # Passes both tests.
3475 rm -f conftest.err conftest.$ac_ext
3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479 rm -f conftest.err conftest.$ac_ext
3480 if $ac_preproc_ok; then
3483 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3484 See \`config.log' for more details." >&5
3485 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3486 See \`config.log' for more details." >&2;}
3487 { (exit 1); exit 1; }; }
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497 if test "$CXX" = "clang++" ; then
3498 { echo "$as_me:$LINENO: checking whether clang works" >&5
3499 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3501 ac_cpp='$CXXCPP $CPPFLAGS'
3502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3507 cat >conftest.$ac_ext <<_ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3514 #if __has_include (<cxxabi.h>)
3517 #if __has_include (<unwind.h>)
3529 rm -f conftest.$ac_objext
3530 if { (ac_try="$ac_compile"
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536 (eval "$ac_compile") 2>conftest.er1
3538 grep -v '^ *+' conftest.er1 >conftest.err
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } &&
3543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3544 { (case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_try") 2>&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; } &&
3553 { ac_try='test -s conftest.$ac_objext'
3554 { (case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_try") 2>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3564 { echo "$as_me:$LINENO: result: yes" >&5
3565 echo "${ECHO_T}yes" >&6; }
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3572 { echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6; }
3574 { { 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
3575 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;}
3576 { (exit 1); exit 1; }; }
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3590 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3592 ac_cpp='$CXXCPP $CPPFLAGS'
3593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3597 llvm_cv_cxx_compiler=unknown
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3609 rm -f conftest.$ac_objext
3610 if { (ac_try="$ac_compile"
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_compile") 2>conftest.er1
3618 grep -v '^ *+' conftest.er1 >conftest.err
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3624 { (case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629 (eval "$ac_try") 2>&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; } &&
3633 { ac_try='test -s conftest.$ac_objext'
3634 { (case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639 (eval "$ac_try") 2>&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3643 llvm_cv_cxx_compiler=clang
3645 echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3648 cat >conftest.$ac_ext <<_ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3659 rm -f conftest.$ac_objext
3660 if { (ac_try="$ac_compile"
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_compile") 2>conftest.er1
3668 grep -v '^ *+' conftest.er1 >conftest.err
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } &&
3673 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3674 { (case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_try") 2>&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; } &&
3683 { ac_try='test -s conftest.$ac_objext'
3684 { (case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_try") 2>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; }; then
3693 llvm_cv_cxx_compiler=gcc
3695 echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3712 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3716 if test -d ${srcdir}/projects/test-suite ; then
3717 subdirs="$subdirs projects/test-suite"
3721 if test -d ${srcdir}/projects/llvm-test ; then
3722 subdirs="$subdirs projects/llvm-test"
3726 if test -d ${srcdir}/projects/poolalloc ; then
3727 subdirs="$subdirs projects/poolalloc"
3731 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3732 subdirs="$subdirs projects/llvm-poolalloc"
3736 for i in `ls ${srcdir}/projects`
3738 if test -d ${srcdir}/projects/${i} ; then
3740 safecode) subdirs="$subdirs projects/safecode"
3748 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3749 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3755 # Check whether --enable-polly was given.
3756 if test "${enable_polly+set}" = set; then
3757 enableval=$enable_polly;
3762 case "$enableval" in
3767 default) ENABLE_POLLY=1
3769 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3770 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3771 { (exit 1); exit 1; }; } ;;
3775 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3778 subdirs="$subdirs tools/polly"
3783 # Make sure we can run config.sub.
3784 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3785 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3786 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3787 { (exit 1); exit 1; }; }
3789 { echo "$as_me:$LINENO: checking build system type" >&5
3790 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3791 if test "${ac_cv_build+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 ac_build_alias=$build_alias
3795 test "x$ac_build_alias" = x &&
3796 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3797 test "x$ac_build_alias" = x &&
3798 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3799 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3800 { (exit 1); exit 1; }; }
3801 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3802 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3803 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3804 { (exit 1); exit 1; }; }
3807 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3808 echo "${ECHO_T}$ac_cv_build" >&6; }
3809 case $ac_cv_build in
3811 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3812 echo "$as_me: error: invalid value of canonical build" >&2;}
3813 { (exit 1); exit 1; }; };;
3816 ac_save_IFS=$IFS; IFS='-'
3822 # Remember, the first character of IFS is used to create $*,
3823 # except with old shells:
3826 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3829 { echo "$as_me:$LINENO: checking host system type" >&5
3830 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3831 if test "${ac_cv_host+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 if test "x$host_alias" = x; then
3835 ac_cv_host=$ac_cv_build
3837 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3838 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3839 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3840 { (exit 1); exit 1; }; }
3844 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3845 echo "${ECHO_T}$ac_cv_host" >&6; }
3848 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3849 echo "$as_me: error: invalid value of canonical host" >&2;}
3850 { (exit 1); exit 1; }; };;
3853 ac_save_IFS=$IFS; IFS='-'
3859 # Remember, the first character of IFS is used to create $*,
3860 # except with old shells:
3863 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3866 { echo "$as_me:$LINENO: checking target system type" >&5
3867 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3868 if test "${ac_cv_target+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 if test "x$target_alias" = x; then
3872 ac_cv_target=$ac_cv_host
3874 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3875 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3876 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3877 { (exit 1); exit 1; }; }
3881 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3882 echo "${ECHO_T}$ac_cv_target" >&6; }
3883 case $ac_cv_target in
3885 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3886 echo "$as_me: error: invalid value of canonical target" >&2;}
3887 { (exit 1); exit 1; }; };;
3889 target=$ac_cv_target
3890 ac_save_IFS=$IFS; IFS='-'
3896 # Remember, the first character of IFS is used to create $*,
3897 # except with old shells:
3900 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3903 # The aliases save the names the user supplied, while $host etc.
3904 # will get canonicalized.
3905 test -n "$target_alias" &&
3906 test "$program_prefix$program_suffix$program_transform_name" = \
3908 program_prefix=${target_alias}-
3910 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3911 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3912 if test "${llvm_cv_os_type+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 llvm_cv_link_all_option="-Wl,--whole-archive"
3918 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3919 llvm_cv_os_type="AIX"
3920 llvm_cv_platform_type="Unix" ;;
3922 llvm_cv_link_all_option="-Wl,--whole-archive"
3923 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3924 llvm_cv_os_type="IRIX"
3925 llvm_cv_platform_type="Unix" ;;
3927 llvm_cv_link_all_option="-Wl,--whole-archive"
3928 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3929 llvm_cv_os_type="Cygwin"
3930 llvm_cv_platform_type="Unix" ;;
3932 llvm_cv_link_all_option="-Wl,-all_load"
3933 llvm_cv_no_link_all_option="-Wl,-noall_load"
3934 llvm_cv_os_type="Darwin"
3935 llvm_cv_platform_type="Unix" ;;
3937 llvm_cv_link_all_option="-Wl,-all_load"
3938 llvm_cv_no_link_all_option="-Wl,-noall_load"
3939 llvm_cv_os_type="Minix"
3940 llvm_cv_platform_type="Unix" ;;
3942 llvm_cv_link_all_option="-Wl,--whole-archive"
3943 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3944 llvm_cv_os_type="FreeBSD"
3945 llvm_cv_platform_type="Unix" ;;
3947 llvm_cv_link_all_option="-Wl,--whole-archive"
3948 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3949 llvm_cv_os_type="GNU/kFreeBSD"
3950 llvm_cv_platform_type="Unix" ;;
3952 llvm_cv_link_all_option="-Wl,--whole-archive"
3953 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3954 llvm_cv_os_type="OpenBSD"
3955 llvm_cv_platform_type="Unix" ;;
3957 llvm_cv_link_all_option="-Wl,--whole-archive"
3958 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3959 llvm_cv_os_type="NetBSD"
3960 llvm_cv_platform_type="Unix" ;;
3962 llvm_cv_link_all_option="-Wl,--whole-archive"
3963 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3964 llvm_cv_os_type="DragonFly"
3965 llvm_cv_platform_type="Unix" ;;
3967 llvm_cv_link_all_option="-Wl,--whole-archive"
3968 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3969 llvm_cv_os_type="HP-UX"
3970 llvm_cv_platform_type="Unix" ;;
3972 llvm_cv_link_all_option="-Wl,--whole-archive"
3973 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3974 llvm_cv_os_type="Interix"
3975 llvm_cv_platform_type="Unix" ;;
3977 llvm_cv_link_all_option="-Wl,--whole-archive"
3978 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3979 llvm_cv_os_type="Linux"
3980 llvm_cv_platform_type="Unix" ;;
3982 llvm_cv_link_all_option="-Wl,--whole-archive"
3983 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3984 llvm_cv_os_type="GNU"
3985 llvm_cv_platform_type="Unix" ;;
3987 llvm_cv_link_all_option="-Wl,-z,allextract"
3988 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3989 llvm_cv_os_type="SunOS"
3990 llvm_cv_platform_type="Unix" ;;
3992 llvm_cv_link_all_option="-Wl,--whole-archive"
3993 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3994 llvm_cv_os_type="Win32"
3995 llvm_cv_platform_type="Win32" ;;
3997 llvm_cv_link_all_option="-Wl,--whole-archive"
3998 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3999 llvm_cv_os_type="MingW"
4000 llvm_cv_platform_type="Win32" ;;
4002 llvm_cv_link_all_option="-Wl,--whole-archive"
4003 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4004 llvm_cv_os_type="Haiku"
4005 llvm_cv_platform_type="Unix" ;;
4007 llvm_cv_link_all_option="-Wl,--whole-archive"
4008 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4009 llvm_cv_os_type="Freestanding"
4010 llvm_cv_platform_type="Unix" ;;
4012 llvm_cv_link_all_option="-Wl,--whole-archive"
4013 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4014 llvm_cv_os_type="Freestanding"
4015 llvm_cv_platform_type="Unix" ;;
4017 llvm_cv_link_all_option=""
4018 llvm_cv_no_link_all_option=""
4019 llvm_cv_os_type="Unknown"
4020 llvm_cv_platform_type="Unknown" ;;
4023 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4024 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4026 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4027 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4028 if test "${llvm_cv_target_os_type+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 llvm_cv_target_os_type="AIX" ;;
4035 llvm_cv_target_os_type="IRIX" ;;
4037 llvm_cv_target_os_type="Cygwin" ;;
4039 llvm_cv_target_os_type="Darwin" ;;
4041 llvm_cv_target_os_type="Minix" ;;
4043 llvm_cv_target_os_type="FreeBSD" ;;
4045 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4047 llvm_cv_target_os_type="OpenBSD" ;;
4049 llvm_cv_target_os_type="NetBSD" ;;
4051 llvm_cv_target_os_type="DragonFly" ;;
4053 llvm_cv_target_os_type="HP-UX" ;;
4055 llvm_cv_target_os_type="Interix" ;;
4057 llvm_cv_target_os_type="Linux" ;;
4059 llvm_cv_target_os_type="GNU" ;;
4061 llvm_cv_target_os_type="SunOS" ;;
4063 llvm_cv_target_os_type="Win32" ;;
4065 llvm_cv_target_os_type="MingW" ;;
4067 llvm_cv_target_os_type="Haiku" ;;
4069 llvm_cv_target_os_type="RTEMS" ;;
4071 llvm_cv_target_os_type="NativeClient" ;;
4073 llvm_cv_target_os_type="Freestanding" ;;
4075 llvm_cv_target_os_type="Unknown" ;;
4078 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4079 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4081 if test "$llvm_cv_os_type" = "Unknown" ; then
4082 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4083 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4084 { (exit 1); exit 1; }; }
4089 HOST_OS=$llvm_cv_os_type
4091 TARGET_OS=$llvm_cv_target_os_type
4094 LINKALL=$llvm_cv_link_all_option
4096 NOLINKALL=$llvm_cv_no_link_all_option
4099 case $llvm_cv_platform_type in
4102 cat >>confdefs.h <<\_ACEOF
4103 #define LLVM_ON_UNIX 1
4113 cat >>confdefs.h <<\_ACEOF
4114 #define LLVM_ON_WIN32 1
4124 { echo "$as_me:$LINENO: checking target architecture" >&5
4125 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4126 if test "${llvm_cv_target_arch+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 i?86-*) llvm_cv_target_arch="x86" ;;
4131 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4132 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4133 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4134 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4135 arm*-*) llvm_cv_target_arch="ARM" ;;
4136 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4137 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4138 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4139 xcore-*) llvm_cv_target_arch="XCore" ;;
4140 msp430-*) llvm_cv_target_arch="MSP430" ;;
4141 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4142 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4143 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4144 *) llvm_cv_target_arch="Unknown" ;;
4147 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4148 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4150 if test "$llvm_cv_target_arch" = "Unknown" ; then
4151 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4152 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4155 case "$llvm_cv_target_arch" in
4156 x86) LLVM_NATIVE_ARCH="X86" ;;
4157 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4158 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4161 ARCH=$llvm_cv_target_arch
4163 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4167 i?86-*) host_arch="x86" ;;
4168 amd64-* | x86_64-*) host_arch="x86_64" ;;
4169 sparc*-*) host_arch="Sparc" ;;
4170 powerpc*-*) host_arch="PowerPC" ;;
4171 arm64*-*) host_arch="AArch64" ;;
4172 arm*-*) host_arch="ARM" ;;
4173 aarch64*-*) host_arch="AArch64" ;;
4174 mips-* | mips64-*) host_arch="Mips" ;;
4175 mipsel-* | mips64el-*) host_arch="Mips" ;;
4176 xcore-*) host_arch="XCore" ;;
4177 msp430-*) host_arch="MSP430" ;;
4178 hexagon-*) host_arch="Hexagon" ;;
4179 s390x-*) host_arch="SystemZ" ;;
4180 *) host_arch="Unknown" ;;
4183 if test "$host_arch" = "Unknown" ; then
4184 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4185 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4188 HOST_ARCH=$host_arch
4191 if test "$cross_compiling" = yes; then
4192 LLVM_CROSS_COMPILING=1
4195 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4196 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4197 if test "${ac_cv_build_exeext+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4201 ac_cv_build_exeext=.exe
4203 ac_build_prefix=${build_alias}-
4205 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4206 set dummy ${ac_build_prefix}gcc; ac_word=$2
4207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4209 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 if test -n "$BUILD_CC"; then
4213 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4222 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 BUILD_CC=$ac_cv_prog_BUILD_CC
4233 if test -n "$BUILD_CC"; then
4234 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4235 echo "${ECHO_T}$BUILD_CC" >&6; }
4237 { echo "$as_me:$LINENO: result: no" >&5
4238 echo "${ECHO_T}no" >&6; }
4242 if test -z "$BUILD_CC"; then
4243 # Extract the first word of "gcc", so it can be a program name with args.
4244 set dummy gcc; ac_word=$2
4245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4247 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 if test -n "$BUILD_CC"; then
4251 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_BUILD_CC="gcc"
4261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 BUILD_CC=$ac_cv_prog_BUILD_CC
4271 if test -n "$BUILD_CC"; then
4272 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4273 echo "${ECHO_T}$BUILD_CC" >&6; }
4275 { echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6; }
4280 if test -z "$BUILD_CC"; then
4281 # Extract the first word of "cc", so it can be a program name with args.
4282 set dummy cc; ac_word=$2
4283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4285 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 if test -n "$BUILD_CC"; then
4289 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4300 ac_prog_rejected=yes
4303 ac_cv_prog_BUILD_CC="cc"
4304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 if test $ac_prog_rejected = yes; then
4312 # We found a bogon in the path, so make sure we never use it.
4313 set dummy $ac_cv_prog_BUILD_CC
4315 if test $# != 0; then
4316 # We chose a different compiler from the bogus one.
4317 # However, it has the same basename, so the bogon will be chosen
4318 # first if we set BUILD_CC to just the basename; use the full file name.
4320 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4325 BUILD_CC=$ac_cv_prog_BUILD_CC
4326 if test -n "$BUILD_CC"; then
4327 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4328 echo "${ECHO_T}$BUILD_CC" >&6; }
4330 { echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6; }
4337 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4338 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4339 { (exit 1); exit 1; }; }
4340 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4342 echo 'int main () { return 0; }' > conftest.$ac_ext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4345 (eval $ac_build_link) 2>&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; then
4349 for file in conftest.*; do
4351 *.c | *.o | *.obj | *.dSYM) ;;
4352 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4356 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4357 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4358 { (exit 1); exit 1; }; }
4361 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4366 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4367 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4368 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4369 ac_build_exeext=$BUILD_EXEEXT
4371 ac_build_prefix=${build_alias}-
4372 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4373 set dummy ${ac_build_prefix}g++; ac_word=$2
4374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4376 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 if test -n "$BUILD_CXX"; then
4380 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4389 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4400 if test -n "$BUILD_CXX"; then
4401 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4402 echo "${ECHO_T}$BUILD_CXX" >&6; }
4404 { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4409 if test -z "$BUILD_CXX"; then
4410 # Extract the first word of "g++", so it can be a program name with args.
4411 set dummy g++; ac_word=$2
4412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4414 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 if test -n "$BUILD_CXX"; then
4418 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 test -z "$as_dir" && as_dir=.
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4427 ac_cv_prog_BUILD_CXX="g++"
4428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4438 if test -n "$BUILD_CXX"; then
4439 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4440 echo "${ECHO_T}$BUILD_CXX" >&6; }
4442 { echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6; }
4447 if test -z "$BUILD_CXX"; then
4448 # Extract the first word of "c++", so it can be a program name with args.
4449 set dummy c++; ac_word=$2
4450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4452 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 if test -n "$BUILD_CXX"; then
4456 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4467 ac_prog_rejected=yes
4470 ac_cv_prog_BUILD_CXX="c++"
4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 if test $ac_prog_rejected = yes; then
4479 # We found a bogon in the path, so make sure we never use it.
4480 set dummy $ac_cv_prog_BUILD_CXX
4482 if test $# != 0; then
4483 # We chose a different compiler from the bogus one.
4484 # However, it has the same basename, so the bogon will be chosen
4485 # first if we set BUILD_CXX to just the basename; use the full file name.
4487 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4492 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4493 if test -n "$BUILD_CXX"; then
4494 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4495 echo "${ECHO_T}$BUILD_CXX" >&6; }
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4505 LLVM_CROSS_COMPILING=0
4509 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4520 # Check whether --enable-libcpp was given.
4521 if test "${enable_libcpp+set}" = set; then
4522 enableval=$enable_libcpp;
4527 case "$enableval" in
4528 yes) ENABLE_LIBCPP=1
4532 default) ENABLE_LIBCPP=0
4534 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4535 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4536 { (exit 1); exit 1; }; } ;;
4539 # Check whether --enable-compiler-version-checks was given.
4540 if test "${enable_compiler_version_checks+set}" = set; then
4541 enableval=$enable_compiler_version_checks;
4546 case "$enableval" in
4551 ac_cpp='$CXXCPP $CPPFLAGS'
4552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4556 case "$llvm_cv_cxx_compiler" in
4558 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4559 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4560 cat >conftest.$ac_ext <<_ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4567 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4568 #error This version of Clang is too old to build LLVM
4572 rm -f conftest.$ac_objext
4573 if { (ac_try="$ac_compile"
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_compile") 2>conftest.er1
4581 grep -v '^ *+' conftest.er1 >conftest.err
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
4586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4587 { (case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592 (eval "$ac_try") 2>&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_try") 2>&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 { echo "$as_me:$LINENO: result: yes" >&5
4607 echo "${ECHO_T}yes" >&6; }
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4612 { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4614 { { echo "$as_me:$LINENO: error:
4615 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4616 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4617 bypass these sanity checks." >&5
4618 echo "$as_me: error:
4619 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4620 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4621 bypass these sanity checks." >&2;}
4622 { (exit 1); exit 1; }; }
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 if test "$ENABLE_LIBCPP" -eq 0 ; then
4628 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4629 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4630 llvm_cv_old_cxxflags="$CXXFLAGS"
4631 CXXFLAGS="$CXXFLAGS -std=c++0x"
4632 cat >conftest.$ac_ext <<_ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4640 std::atomic<float> x(0.0f);
4641 int main() { return (float)x; }
4644 rm -f conftest.$ac_objext conftest$ac_exeext
4645 if { (ac_try="$ac_link"
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4651 (eval "$ac_link") 2>conftest.er1
4653 grep -v '^ *+' conftest.er1 >conftest.err
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4659 { (case "(($ac_try" in
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664 (eval "$ac_try") 2>&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest$ac_exeext'
4669 { (case "(($ac_try" in
4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671 *) ac_try_echo=$ac_try;;
4673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4674 (eval "$ac_try") 2>&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 { echo "$as_me:$LINENO: result: yes" >&5
4679 echo "${ECHO_T}yes" >&6; }
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4684 { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4686 { { echo "$as_me:$LINENO: error:
4687 We detected a missing feature in the standard C++ library that was known to be
4688 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4689 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4690 than 4.7. You will need to update your system and ensure Clang uses the newer
4693 If this error is incorrect or you need to force things to work, you may pass
4694 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4695 echo "$as_me: error:
4696 We detected a missing feature in the standard C++ library that was known to be
4697 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4698 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4699 than 4.7. You will need to update your system and ensure Clang uses the newer
4702 If this error is incorrect or you need to force things to work, you may pass
4703 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4704 { (exit 1); exit 1; }; }
4707 rm -f core conftest.err conftest.$ac_objext \
4708 conftest$ac_exeext conftest.$ac_ext
4709 CXXFLAGS="$llvm_cv_old_cxxflags"
4713 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4714 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4715 cat >conftest.$ac_ext <<_ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4722 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4723 #error This version of GCC is too old to build LLVM
4727 rm -f conftest.$ac_objext
4728 if { (ac_try="$ac_compile"
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734 (eval "$ac_compile") 2>conftest.er1
4736 grep -v '^ *+' conftest.er1 >conftest.err
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } &&
4741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4742 { (case "(($ac_try" in
4743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744 *) ac_try_echo=$ac_try;;
4746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4747 (eval "$ac_try") 2>&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; } &&
4751 { ac_try='test -s conftest.$ac_objext'
4752 { (case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757 (eval "$ac_try") 2>&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 { echo "$as_me:$LINENO: result: yes" >&5
4762 echo "${ECHO_T}yes" >&6; }
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4767 { echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6; }
4769 { { echo "$as_me:$LINENO: error:
4770 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4771 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4772 bypass these sanity checks." >&5
4773 echo "$as_me: error:
4774 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4775 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4776 bypass these sanity checks." >&2;}
4777 { (exit 1); exit 1; }; }
4780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 ac_cpp='$CPP $CPPFLAGS'
4787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4794 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4795 { (exit 1); exit 1; }; }
4799 # Check whether --enable-cxx1y was given.
4800 if test "${enable_cxx1y+set}" = set; then
4801 enableval=$enable_cxx1y;
4806 case "$enableval" in
4811 default) ENABLE_CXX1Y=0
4813 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4814 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4815 { (exit 1); exit 1; }; } ;;
4818 # Check whether --enable-split-dwarf was given.
4819 if test "${enable_split_dwarf+set}" = set; then
4820 enableval=$enable_split_dwarf;
4825 case "$enableval" in
4826 yes) ENABLE_SPLIT_DWARF=1
4828 no) ENABLE_SPLIT_DWARF=0
4830 default) ENABLE_SPLIT_DWARF=0
4832 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4833 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4834 { (exit 1); exit 1; }; } ;;
4838 # Check whether --enable-clang-arcmt was given.
4839 if test "${enable_clang_arcmt+set}" = set; then
4840 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4845 case "$enableval" in
4846 yes) ENABLE_CLANG_ARCMT=1
4848 no) ENABLE_CLANG_ARCMT=0
4850 default) ENABLE_CLANG_ARCMT=1
4852 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4854 { (exit 1); exit 1; }; } ;;
4857 clang_plugin_support="yes"
4858 # Check whether --enable-clang-plugin-support was given.
4859 if test "${enable_clang_plugin_support+set}" = set; then
4860 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4865 case "$enableval" in
4866 yes) CLANG_PLUGIN_SUPPORT=1
4868 no) CLANG_PLUGIN_SUPPORT=0
4870 default) CLANG_PLUGIN_SUPPORT=1
4872 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4874 { (exit 1); exit 1; }; } ;;
4877 clang_static_analyzer="yes"
4878 # Check whether --enable-clang-static-analyzer was given.
4879 if test "${enable_clang_static_analyzer+set}" = set; then
4880 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4885 case "$enableval" in
4886 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4889 if test ${clang_arcmt} != "no" ; then
4890 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4891 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4892 { (exit 1); exit 1; }; }
4894 ENABLE_CLANG_STATIC_ANALYZER=0
4897 default) ENABLE_CLANG_STATIC_ANALYZER=1
4899 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4900 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4901 { (exit 1); exit 1; }; } ;;
4904 # Check whether --enable-optimized was given.
4905 if test "${enable_optimized+set}" = set; then
4906 enableval=$enable_optimized;
4911 if test ${enableval} = "no" ; then
4915 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4919 # Check whether --enable-profiling was given.
4920 if test "${enable_profiling+set}" = set; then
4921 enableval=$enable_profiling;
4926 if test ${enableval} = "no" ; then
4930 ENABLE_PROFILING=ENABLE_PROFILING=1
4934 # Check whether --enable-assertions was given.
4935 if test "${enable_assertions+set}" = set; then
4936 enableval=$enable_assertions;
4941 if test ${enableval} = "yes" ; then
4945 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4949 # Check whether --enable-werror was given.
4950 if test "${enable_werror+set}" = set; then
4951 enableval=$enable_werror;
4956 case "$enableval" in
4957 yes) ENABLE_WERROR=1
4961 default) ENABLE_WERROR=0
4963 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4964 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4965 { (exit 1); exit 1; }; } ;;
4968 # Check whether --enable-expensive-checks was given.
4969 if test "${enable_expensive_checks+set}" = set; then
4970 enableval=$enable_expensive_checks;
4975 if test ${enableval} = "yes" ; then
4976 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4978 EXPENSIVE_CHECKS=yes
4981 ENABLE_EXPENSIVE_CHECKS=
4987 # Check whether --enable-debug-runtime was given.
4988 if test "${enable_debug_runtime+set}" = set; then
4989 enableval=$enable_debug_runtime;
4994 if test ${enableval} = "no" ; then
4998 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5002 # Check whether --enable-debug-symbols was given.
5003 if test "${enable_debug_symbols+set}" = set; then
5004 enableval=$enable_debug_symbols;
5009 if test ${enableval} = "no" ; then
5013 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5017 # Check whether --enable-keep-symbols was given.
5018 if test "${enable_keep_symbols+set}" = set; then
5019 enableval=$enable_keep_symbols;
5024 if test ${enableval} = "no" ; then
5028 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5032 # Check whether --enable-jit was given.
5033 if test "${enable_jit+set}" = set; then
5034 enableval=$enable_jit;
5039 if test ${enableval} = "no"
5044 case "$llvm_cv_target_arch" in
5045 x86) TARGET_HAS_JIT=1
5047 Sparc) TARGET_HAS_JIT=0
5049 PowerPC) TARGET_HAS_JIT=1
5051 x86_64) TARGET_HAS_JIT=1
5053 ARM) TARGET_HAS_JIT=1
5055 Mips) TARGET_HAS_JIT=1
5057 XCore) TARGET_HAS_JIT=0
5059 MSP430) TARGET_HAS_JIT=0
5061 Hexagon) TARGET_HAS_JIT=0
5063 NVPTX) TARGET_HAS_JIT=0
5065 SystemZ) TARGET_HAS_JIT=1
5072 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5073 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5076 # Check whether --enable-docs was given.
5077 if test "${enable_docs+set}" = set; then
5078 enableval=$enable_docs;
5083 case "$enableval" in
5088 default) ENABLE_DOCS=1
5090 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5091 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5092 { (exit 1); exit 1; }; } ;;
5095 # Check whether --enable-doxygen was given.
5096 if test "${enable_doxygen+set}" = set; then
5097 enableval=$enable_doxygen;
5102 case "$enableval" in
5103 yes) ENABLE_DOXYGEN=1
5105 no) ENABLE_DOXYGEN=0
5107 default) ENABLE_DOXYGEN=0
5109 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5110 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5111 { (exit 1); exit 1; }; } ;;
5114 # Check whether --enable-threads was given.
5115 if test "${enable_threads+set}" = set; then
5116 enableval=$enable_threads;
5121 case "$enableval" in
5122 yes) LLVM_ENABLE_THREADS=1
5124 no) LLVM_ENABLE_THREADS=0
5126 default) LLVM_ENABLE_THREADS=1
5128 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5129 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5130 { (exit 1); exit 1; }; } ;;
5133 cat >>confdefs.h <<_ACEOF
5134 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5138 # Check whether --enable-pthreads was given.
5139 if test "${enable_pthreads+set}" = set; then
5140 enableval=$enable_pthreads;
5145 case "$enableval" in
5146 yes) ENABLE_PTHREADS=1
5148 no) ENABLE_PTHREADS=0
5150 default) ENABLE_PTHREADS=1
5152 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5153 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5154 { (exit 1); exit 1; }; } ;;
5157 # Check whether --enable-zlib was given.
5158 if test "${enable_zlib+set}" = set; then
5159 enableval=$enable_zlib;
5164 case "$enableval" in
5165 yes) LLVM_ENABLE_ZLIB=1
5167 no) LLVM_ENABLE_ZLIB=0
5169 default) LLVM_ENABLE_ZLIB=1
5171 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5172 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5173 { (exit 1); exit 1; }; } ;;
5176 cat >>confdefs.h <<_ACEOF
5177 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5181 # Check whether --enable-pic was given.
5182 if test "${enable_pic+set}" = set; then
5183 enableval=$enable_pic;
5188 case "$enableval" in
5193 default) ENABLE_PIC=1
5195 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5196 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5197 { (exit 1); exit 1; }; } ;;
5200 cat >>confdefs.h <<_ACEOF
5201 #define ENABLE_PIC $ENABLE_PIC
5205 # Check whether --enable-shared was given.
5206 if test "${enable_shared+set}" = set; then
5207 enableval=$enable_shared;
5212 case "$enableval" in
5213 yes) ENABLE_SHARED=1
5217 default) ENABLE_SHARED=0
5219 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5220 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5221 { (exit 1); exit 1; }; } ;;
5224 # Check whether --enable-embed-stdcxx was given.
5225 if test "${enable_embed_stdcxx+set}" = set; then
5226 enableval=$enable_embed_stdcxx;
5231 case "$enableval" in
5232 yes) ENABLE_EMBED_STDCXX=1
5234 no) ENABLE_EMBED_STDCXX=0
5236 default) ENABLE_EMBED_STDCXX=0
5238 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5239 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5240 { (exit 1); exit 1; }; } ;;
5243 # Check whether --enable-timestamps was given.
5244 if test "${enable_timestamps+set}" = set; then
5245 enableval=$enable_timestamps;
5250 case "$enableval" in
5251 yes) ENABLE_TIMESTAMPS=1
5253 no) ENABLE_TIMESTAMPS=0
5255 default) ENABLE_TIMESTAMPS=1
5257 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5258 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5259 { (exit 1); exit 1; }; } ;;
5262 cat >>confdefs.h <<_ACEOF
5263 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5267 # Check whether --enable-backtraces was given.
5268 if test "${enable_backtraces+set}" = set; then
5269 enableval=$enable_backtraces; case "$enableval" in
5270 yes) llvm_cv_enable_backtraces="yes" ;;
5271 no) llvm_cv_enable_backtraces="no" ;;
5272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5274 { (exit 1); exit 1; }; } ;;
5277 llvm_cv_enable_backtraces="yes"
5280 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5282 cat >>confdefs.h <<\_ACEOF
5283 #define ENABLE_BACKTRACES 1
5288 # Check whether --enable-crash-overrides was given.
5289 if test "${enable_crash_overrides+set}" = set; then
5290 enableval=$enable_crash_overrides; case "$enableval" in
5291 yes) llvm_cv_enable_crash_overrides="yes" ;;
5292 no) llvm_cv_enable_crash_overrides="no" ;;
5293 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5294 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5295 { (exit 1); exit 1; }; } ;;
5298 llvm_cv_enable_crash_overrides="yes"
5301 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5303 cat >>confdefs.h <<\_ACEOF
5304 #define ENABLE_CRASH_OVERRIDES 1
5309 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5310 ALL_TARGETS=$ALL_TARGETS
5314 # Check whether --enable-targets was given.
5315 if test "${enable_targets+set}" = set; then
5316 enableval=$enable_targets;
5321 if test "$enableval" = host-only ; then
5324 case "$enableval" in
5325 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5326 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5328 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5329 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5331 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5332 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5333 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5334 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5335 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5338 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5340 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5341 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5342 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5343 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5344 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5345 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5346 host) case "$llvm_cv_target_arch" in
5347 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5348 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5349 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5350 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5351 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5352 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5353 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5354 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5355 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5356 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5357 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5358 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5359 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5360 echo "$as_me: error: Can not set target to build" >&2;}
5361 { (exit 1); exit 1; }; } ;;
5363 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5364 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5365 { (exit 1); exit 1; }; } ;;
5371 # Check whether --enable-experimental-targets was given.
5372 if test "${enable_experimental_targets+set}" = set; then
5373 enableval=$enable_experimental_targets;
5379 if test ${enableval} != "disable"
5381 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5384 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5387 for a_target in $TARGETS_TO_BUILD; do
5388 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5390 cat >>confdefs.h <<_ACEOF
5391 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5394 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5395 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5396 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5397 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5398 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5399 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5401 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5402 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5405 cat >>confdefs.h <<_ACEOF
5406 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5410 cat >>confdefs.h <<_ACEOF
5411 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5415 cat >>confdefs.h <<_ACEOF
5416 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5420 cat >>confdefs.h <<_ACEOF
5421 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5424 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5426 cat >>confdefs.h <<_ACEOF
5427 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5431 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5433 cat >>confdefs.h <<_ACEOF
5434 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5441 LLVM_ENUM_TARGETS=""
5442 LLVM_ENUM_ASM_PRINTERS=""
5443 LLVM_ENUM_ASM_PARSERS=""
5444 LLVM_ENUM_DISASSEMBLERS=""
5445 for target_to_build in $TARGETS_TO_BUILD; do
5446 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5447 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5448 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5450 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5451 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5453 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5454 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5463 # Check whether --with-optimize-option was given.
5464 if test "${with_optimize_option+set}" = set; then
5465 withval=$with_optimize_option;
5470 { echo "$as_me:$LINENO: checking optimization flags" >&5
5471 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5474 case "$llvm_cv_os_type" in
5475 FreeBSD) optimize_option=-O2 ;;
5476 MingW) optimize_option=-O2 ;;
5477 *) optimize_option=-O3 ;;
5479 *) optimize_option="$withval" ;;
5481 OPTIMIZE_OPTION=$optimize_option
5483 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5484 echo "${ECHO_T}$optimize_option" >&6; }
5487 # Check whether --with-extra-options was given.
5488 if test "${with_extra_options+set}" = set; then
5489 withval=$with_extra_options;
5495 default) EXTRA_OPTIONS= ;;
5496 *) EXTRA_OPTIONS=$withval ;;
5498 EXTRA_OPTIONS=$EXTRA_OPTIONS
5502 # Check whether --with-extra-ld-options was given.
5503 if test "${with_extra_ld_options+set}" = set; then
5504 withval=$with_extra_ld_options;
5510 default) EXTRA_LD_OPTIONS= ;;
5511 *) EXTRA_LD_OPTIONS=$withval ;;
5513 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5516 # Check whether --enable-bindings was given.
5517 if test "${enable_bindings+set}" = set; then
5518 enableval=$enable_bindings;
5523 BINDINGS_TO_BUILD=""
5524 case "$enableval" in
5525 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5526 all ) BINDINGS_TO_BUILD="ocaml" ;;
5527 none | no) BINDINGS_TO_BUILD="" ;;
5528 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5529 case "$a_binding" in
5530 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5531 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5532 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5533 { (exit 1); exit 1; }; } ;;
5540 # Check whether --with-ocaml-libdir was given.
5541 if test "${with_ocaml_libdir+set}" = set; then
5542 withval=$with_ocaml_libdir;
5548 auto) with_ocaml_libdir="$withval" ;;
5549 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5550 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5551 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5552 { (exit 1); exit 1; }; } ;;
5556 # Check whether --with-clang-srcdir was given.
5557 if test "${with_clang_srcdir+set}" = set; then
5558 withval=$with_clang_srcdir;
5564 -) clang_src_root="" ;;
5565 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5566 *) clang_src_root="$ac_pwd/$withval" ;;
5568 CLANG_SRC_ROOT=$clang_src_root
5572 # Check whether --with-clang-resource-dir was given.
5573 if test "${with_clang_resource_dir+set}" = set; then
5574 withval=$with_clang_resource_dir;
5580 cat >>confdefs.h <<_ACEOF
5581 #define CLANG_RESOURCE_DIR "$withval"
5586 # Check whether --with-c-include-dirs was given.
5587 if test "${with_c_include_dirs+set}" = set; then
5588 withval=$with_c_include_dirs;
5594 cat >>confdefs.h <<_ACEOF
5595 #define C_INCLUDE_DIRS "$withval"
5599 # Clang normally uses the system c++ headers and libraries. With this option,
5600 # clang will use the ones provided by a gcc installation instead. This option should
5601 # be passed the same value that was used with --prefix when configuring gcc.
5603 # Check whether --with-gcc-toolchain was given.
5604 if test "${with_gcc_toolchain+set}" = set; then
5605 withval=$with_gcc_toolchain;
5611 cat >>confdefs.h <<_ACEOF
5612 #define GCC_INSTALL_PREFIX "$withval"
5617 # Check whether --with-default-sysroot was given.
5618 if test "${with_default_sysroot+set}" = set; then
5619 withval=$with_default_sysroot;
5625 cat >>confdefs.h <<_ACEOF
5626 #define DEFAULT_SYSROOT "$withval"
5631 # Check whether --with-binutils-include was given.
5632 if test "${with_binutils_include+set}" = set; then
5633 withval=$with_binutils_include;
5639 default) WITH_BINUTILS_INCDIR=default ;;
5640 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5641 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5642 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5643 { (exit 1); exit 1; }; } ;;
5645 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5646 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5648 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5649 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5650 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5651 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5652 { (exit 1); exit 1; }; };
5657 # Check whether --with-bug-report-url was given.
5658 if test "${with_bug_report_url+set}" = set; then
5659 withval=$with_bug_report_url;
5661 withval="http://llvm.org/bugs/"
5665 cat >>confdefs.h <<_ACEOF
5666 #define BUG_REPORT_URL "$withval"
5670 # Check whether --enable-terminfo was given.
5671 if test "${enable_terminfo+set}" = set; then
5672 enableval=$enable_terminfo; case "$enableval" in
5673 yes) llvm_cv_enable_terminfo="yes" ;;
5674 no) llvm_cv_enable_terminfo="no" ;;
5675 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5676 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5677 { (exit 1); exit 1; }; } ;;
5680 llvm_cv_enable_terminfo="yes"
5683 case "$llvm_cv_enable_terminfo" in
5684 yes) ENABLE_TERMINFO=1
5686 no) ENABLE_TERMINFO=0
5690 # Check whether --enable-libedit was given.
5691 if test "${enable_libedit+set}" = set; then
5692 enableval=$enable_libedit; case "$enableval" in
5693 yes) llvm_cv_enable_libedit="yes" ;;
5694 no) llvm_cv_enable_libedit="no" ;;
5695 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5696 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5697 { (exit 1); exit 1; }; } ;;
5700 llvm_cv_enable_libedit="yes"
5704 # Check whether --enable-libffi was given.
5705 if test "${enable_libffi+set}" = set; then
5706 enableval=$enable_libffi; case "$enableval" in
5707 yes) llvm_cv_enable_libffi="yes" ;;
5708 no) llvm_cv_enable_libffi="no" ;;
5709 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5710 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5711 { (exit 1); exit 1; }; } ;;
5714 llvm_cv_enable_libffi=no
5719 # Check whether --with-internal-prefix was given.
5720 if test "${with_internal_prefix+set}" = set; then
5721 withval=$with_internal_prefix;
5726 INTERNAL_PREFIX=$withval
5730 { echo "$as_me:$LINENO: checking for GNU make" >&5
5731 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5732 if test "${llvm_cv_gnu_make_command+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 llvm_cv_gnu_make_command=''
5736 for a in "$MAKE" make gmake gnumake ; do
5737 if test -z "$a" ; then continue ; fi ;
5738 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5740 llvm_cv_gnu_make_command=$a ;
5745 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5746 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5747 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5751 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5752 echo "${ECHO_T}\"Not found\"" >&6; };
5756 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5757 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5759 if test "$LN_S" = "ln -s"; then
5760 { echo "$as_me:$LINENO: result: yes" >&5
5761 echo "${ECHO_T}yes" >&6; }
5763 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5764 echo "${ECHO_T}no, using $LN_S" >&6; }
5767 # Extract the first word of "nm", so it can be a program name with args.
5768 set dummy nm; ac_word=$2
5769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5771 if test "${ac_cv_path_NM+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5786 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5799 if test -n "$NM"; then
5800 { echo "$as_me:$LINENO: result: $NM" >&5
5801 echo "${ECHO_T}$NM" >&6; }
5803 { echo "$as_me:$LINENO: result: no" >&5
5804 echo "${ECHO_T}no" >&6; }
5808 # Extract the first word of "cmp", so it can be a program name with args.
5809 set dummy cmp; ac_word=$2
5810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5812 if test "${ac_cv_path_CMP+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5840 if test -n "$CMP"; then
5841 { echo "$as_me:$LINENO: result: $CMP" >&5
5842 echo "${ECHO_T}$CMP" >&6; }
5844 { echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6; }
5849 # Extract the first word of "cp", so it can be a program name with args.
5850 set dummy cp; ac_word=$2
5851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5853 if test "${ac_cv_path_CP+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5881 if test -n "$CP"; then
5882 { echo "$as_me:$LINENO: result: $CP" >&5
5883 echo "${ECHO_T}$CP" >&6; }
5885 { echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6; }
5890 # Extract the first word of "date", so it can be a program name with args.
5891 set dummy date; ac_word=$2
5892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5894 if test "${ac_cv_path_DATE+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5909 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5921 DATE=$ac_cv_path_DATE
5922 if test -n "$DATE"; then
5923 { echo "$as_me:$LINENO: result: $DATE" >&5
5924 echo "${ECHO_T}$DATE" >&6; }
5926 { echo "$as_me:$LINENO: result: no" >&5
5927 echo "${ECHO_T}no" >&6; }
5931 # Extract the first word of "find", so it can be a program name with args.
5932 set dummy find; ac_word=$2
5933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5935 if test "${ac_cv_path_FIND+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5962 FIND=$ac_cv_path_FIND
5963 if test -n "$FIND"; then
5964 { echo "$as_me:$LINENO: result: $FIND" >&5
5965 echo "${ECHO_T}$FIND" >&6; }
5967 { echo "$as_me:$LINENO: result: no" >&5
5968 echo "${ECHO_T}no" >&6; }
5972 # Extract the first word of "grep", so it can be a program name with args.
5973 set dummy grep; ac_word=$2
5974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5976 if test "${ac_cv_path_GREP+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5991 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6003 GREP=$ac_cv_path_GREP
6004 if test -n "$GREP"; then
6005 { echo "$as_me:$LINENO: result: $GREP" >&5
6006 echo "${ECHO_T}$GREP" >&6; }
6008 { echo "$as_me:$LINENO: result: no" >&5
6009 echo "${ECHO_T}no" >&6; }
6013 # Extract the first word of "mkdir", so it can be a program name with args.
6014 set dummy mkdir; ac_word=$2
6015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6017 if test "${ac_cv_path_MKDIR+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6044 MKDIR=$ac_cv_path_MKDIR
6045 if test -n "$MKDIR"; then
6046 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6047 echo "${ECHO_T}$MKDIR" >&6; }
6049 { echo "$as_me:$LINENO: result: no" >&5
6050 echo "${ECHO_T}no" >&6; }
6054 # Extract the first word of "mv", so it can be a program name with args.
6055 set dummy mv; ac_word=$2
6056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058 if test "${ac_cv_path_MV+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6073 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6086 if test -n "$MV"; then
6087 { echo "$as_me:$LINENO: result: $MV" >&5
6088 echo "${ECHO_T}$MV" >&6; }
6090 { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6095 if test -n "$ac_tool_prefix"; then
6096 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6097 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6100 if test "${ac_cv_prog_RANLIB+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 if test -n "$RANLIB"; then
6104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6113 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 RANLIB=$ac_cv_prog_RANLIB
6124 if test -n "$RANLIB"; then
6125 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6126 echo "${ECHO_T}$RANLIB" >&6; }
6128 { echo "$as_me:$LINENO: result: no" >&5
6129 echo "${ECHO_T}no" >&6; }
6134 if test -z "$ac_cv_prog_RANLIB"; then
6135 ac_ct_RANLIB=$RANLIB
6136 # Extract the first word of "ranlib", so it can be a program name with args.
6137 set dummy ranlib; ac_word=$2
6138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6140 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 if test -n "$ac_ct_RANLIB"; then
6144 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_prog_ac_ct_RANLIB="ranlib"
6154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6164 if test -n "$ac_ct_RANLIB"; then
6165 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6166 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6168 { echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6; }
6172 if test "x$ac_ct_RANLIB" = x; then
6175 case $cross_compiling:$ac_tool_warned in
6177 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6178 whose name does not start with the host triplet. If you think this
6179 configuration is useful to you, please write to autoconf@gnu.org." >&5
6180 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6181 whose name does not start with the host triplet. If you think this
6182 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6183 ac_tool_warned=yes ;;
6185 RANLIB=$ac_ct_RANLIB
6188 RANLIB="$ac_cv_prog_RANLIB"
6191 if test -n "$ac_tool_prefix"; then
6192 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}ar; ac_word=$2
6194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6196 if test "${ac_cv_prog_AR+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 if test -n "$AR"; then
6200 ac_cv_prog_AR="$AR" # Let the user override the test.
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_prog_AR="${ac_tool_prefix}ar"
6210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 if test -n "$AR"; then
6221 { echo "$as_me:$LINENO: result: $AR" >&5
6222 echo "${ECHO_T}$AR" >&6; }
6224 { echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6; }
6230 if test -z "$ac_cv_prog_AR"; then
6232 # Extract the first word of "ar", so it can be a program name with args.
6233 set dummy ar; ac_word=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 if test -n "$ac_ct_AR"; then
6240 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_prog_ac_ct_AR="ar"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6260 if test -n "$ac_ct_AR"; then
6261 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6262 echo "${ECHO_T}$ac_ct_AR" >&6; }
6264 { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6268 if test "x$ac_ct_AR" = x; then
6271 case $cross_compiling:$ac_tool_warned in
6273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6274 whose name does not start with the host triplet. If you think this
6275 configuration is useful to you, please write to autoconf@gnu.org." >&5
6276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6277 whose name does not start with the host triplet. If you think this
6278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6279 ac_tool_warned=yes ;;
6287 # Extract the first word of "rm", so it can be a program name with args.
6288 set dummy rm; ac_word=$2
6289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6291 if test "${ac_cv_path_RM+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6319 if test -n "$RM"; then
6320 { echo "$as_me:$LINENO: result: $RM" >&5
6321 echo "${ECHO_T}$RM" >&6; }
6323 { echo "$as_me:$LINENO: result: no" >&5
6324 echo "${ECHO_T}no" >&6; }
6328 # Extract the first word of "sed", so it can be a program name with args.
6329 set dummy sed; ac_word=$2
6330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6332 if test "${ac_cv_path_SED+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6360 if test -n "$SED"; then
6361 { echo "$as_me:$LINENO: result: $SED" >&5
6362 echo "${ECHO_T}$SED" >&6; }
6364 { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6369 # Extract the first word of "tar", so it can be a program name with args.
6370 set dummy tar; ac_word=$2
6371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6373 if test "${ac_cv_path_TAR+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6401 if test -n "$TAR"; then
6402 { echo "$as_me:$LINENO: result: $TAR" >&5
6403 echo "${ECHO_T}$TAR" >&6; }
6405 { echo "$as_me:$LINENO: result: no" >&5
6406 echo "${ECHO_T}no" >&6; }
6410 # Extract the first word of "pwd", so it can be a program name with args.
6411 set dummy pwd; ac_word=$2
6412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6414 if test "${ac_cv_path_BINPWD+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6441 BINPWD=$ac_cv_path_BINPWD
6442 if test -n "$BINPWD"; then
6443 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6444 echo "${ECHO_T}$BINPWD" >&6; }
6446 { echo "$as_me:$LINENO: result: no" >&5
6447 echo "${ECHO_T}no" >&6; }
6452 # Extract the first word of "dot", so it can be a program name with args.
6453 set dummy dot; ac_word=$2
6454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6456 if test "${ac_cv_path_DOT+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6484 if test -n "$DOT"; then
6485 { echo "$as_me:$LINENO: result: $DOT" >&5
6486 echo "${ECHO_T}$DOT" >&6; }
6488 { echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6; }
6493 if test "$DOT" != "echo dot" ; then
6495 cat >>confdefs.h <<\_ACEOF
6499 if test "$llvm_cv_os_type" = "MingW" ; then
6500 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6503 cat >>confdefs.h <<_ACEOF
6504 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6509 # Find a good install program. We prefer a C program (faster),
6510 # so one script is as good as another. But avoid the broken or
6511 # incompatible versions:
6512 # SysV /etc/install, /usr/sbin/install
6513 # SunOS /usr/etc/install
6514 # IRIX /sbin/install
6516 # AmigaOS /C/install, which installs bootblocks on floppy discs
6517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6520 # OS/2's system install, which has a completely different semantic
6521 # ./install, which can be erroneously created by make from ./install.sh.
6522 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6523 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6524 if test -z "$INSTALL"; then
6525 if test "${ac_cv_path_install+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 test -z "$as_dir" && as_dir=.
6533 # Account for people who put trailing slashes in PATH elements.
6535 ./ | .// | /cC/* | \
6536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6537 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6540 # OSF1 and SCO ODT 3.0 have their own names for install.
6541 # Don't use installbsd from OSF since it installs stuff as root
6543 for ac_prog in ginstall scoinst install; do
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6546 if test $ac_prog = install &&
6547 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6548 # AIX install. It has an incompatible calling convention.
6550 elif test $ac_prog = install &&
6551 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6552 # program-specific install script used by HP pwplus--don't use.
6555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6568 if test "${ac_cv_path_install+set}" = set; then
6569 INSTALL=$ac_cv_path_install
6571 # As a last resort, use the slow shell script. Don't cache a
6572 # value for INSTALL within a source directory, because that will
6573 # break other packages using the cache if that directory is
6574 # removed, or if the value is a relative name.
6575 INSTALL=$ac_install_sh
6578 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6579 echo "${ECHO_T}$INSTALL" >&6; }
6581 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6582 # It thinks the first close brace ends the variable substitution.
6583 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6585 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6587 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6590 [\\/$]* | ?:[\\/]* ) ;;
6591 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6594 # Extract the first word of "bzip2", so it can be a program name with args.
6595 set dummy bzip2; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_path_BZIP2+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 BZIP2=$ac_cv_path_BZIP2
6625 if test -n "$BZIP2"; then
6626 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6627 echo "${ECHO_T}$BZIP2" >&6; }
6629 { echo "$as_me:$LINENO: result: no" >&5
6630 echo "${ECHO_T}no" >&6; }
6634 # Extract the first word of "cat", so it can be a program name with args.
6635 set dummy cat; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_path_CAT+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 if test -n "$CAT"; then
6666 { echo "$as_me:$LINENO: result: $CAT" >&5
6667 echo "${ECHO_T}$CAT" >&6; }
6669 { echo "$as_me:$LINENO: result: no" >&5
6670 echo "${ECHO_T}no" >&6; }
6674 # Extract the first word of "doxygen", so it can be a program name with args.
6675 set dummy doxygen; ac_word=$2
6676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6678 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 DOXYGEN=$ac_cv_path_DOXYGEN
6705 if test -n "$DOXYGEN"; then
6706 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6707 echo "${ECHO_T}$DOXYGEN" >&6; }
6709 { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6714 # Extract the first word of "groff", so it can be a program name with args.
6715 set dummy groff; ac_word=$2
6716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718 if test "${ac_cv_path_GROFF+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 GROFF=$ac_cv_path_GROFF
6745 if test -n "$GROFF"; then
6746 { echo "$as_me:$LINENO: result: $GROFF" >&5
6747 echo "${ECHO_T}$GROFF" >&6; }
6749 { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6754 # Extract the first word of "gzip", so it can be a program name with args.
6755 set dummy gzip; ac_word=$2
6756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 GZIPBIN=$ac_cv_path_GZIPBIN
6785 if test -n "$GZIPBIN"; then
6786 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6787 echo "${ECHO_T}$GZIPBIN" >&6; }
6789 { echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6; }
6794 # Extract the first word of "pdfroff", so it can be a program name with args.
6795 set dummy pdfroff; ac_word=$2
6796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6798 if test "${ac_cv_path_PDFROFF+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6813 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 PDFROFF=$ac_cv_path_PDFROFF
6825 if test -n "$PDFROFF"; then
6826 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6827 echo "${ECHO_T}$PDFROFF" >&6; }
6829 { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6834 # Extract the first word of "zip", so it can be a program name with args.
6835 set dummy zip; ac_word=$2
6836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6838 if test "${ac_cv_path_ZIP+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6853 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 if test -n "$ZIP"; then
6866 { echo "$as_me:$LINENO: result: $ZIP" >&5
6867 echo "${ECHO_T}$ZIP" >&6; }
6869 { echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6; }
6874 for ac_prog in ocamlc
6876 # Extract the first word of "$ac_prog", so it can be a program name with args.
6877 set dummy $ac_prog; ac_word=$2
6878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6880 if test "${ac_cv_path_OCAMLC+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6895 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 OCAMLC=$ac_cv_path_OCAMLC
6907 if test -n "$OCAMLC"; then
6908 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
6909 echo "${ECHO_T}$OCAMLC" >&6; }
6911 { echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6; }
6916 test -n "$OCAMLC" && break
6919 for ac_prog in ocamlopt
6921 # Extract the first word of "$ac_prog", so it can be a program name with args.
6922 set dummy $ac_prog; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
6941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 OCAMLOPT=$ac_cv_path_OCAMLOPT
6952 if test -n "$OCAMLOPT"; then
6953 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
6954 echo "${ECHO_T}$OCAMLOPT" >&6; }
6956 { echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6; }
6961 test -n "$OCAMLOPT" && break
6964 for ac_prog in ocamldep
6966 # Extract the first word of "$ac_prog", so it can be a program name with args.
6967 set dummy $ac_prog; ac_word=$2
6968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6970 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
6986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 OCAMLDEP=$ac_cv_path_OCAMLDEP
6997 if test -n "$OCAMLDEP"; then
6998 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
6999 echo "${ECHO_T}$OCAMLDEP" >&6; }
7001 { echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6; }
7006 test -n "$OCAMLDEP" && break
7009 for ac_prog in ocamldoc
7011 # Extract the first word of "$ac_prog", so it can be a program name with args.
7012 set dummy $ac_prog; ac_word=$2
7013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7030 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 OCAMLDOC=$ac_cv_path_OCAMLDOC
7042 if test -n "$OCAMLDOC"; then
7043 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7044 echo "${ECHO_T}$OCAMLDOC" >&6; }
7046 { echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6; }
7051 test -n "$OCAMLDOC" && break
7054 for ac_prog in gas as
7056 # Extract the first word of "$ac_prog", so it can be a program name with args.
7057 set dummy $ac_prog; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_path_GAS+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 if test -n "$GAS"; then
7088 { echo "$as_me:$LINENO: result: $GAS" >&5
7089 echo "${ECHO_T}$GAS" >&6; }
7091 { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7096 test -n "$GAS" && break
7100 { echo "$as_me:$LINENO: checking for linker version" >&5
7101 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7102 if test "${llvm_cv_link_version+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7109 if (echo "$version_string" | grep -q "ld64"); then
7110 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7112 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7116 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7117 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7119 cat >>confdefs.h <<_ACEOF
7120 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7126 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7127 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7128 if test "${llvm_cv_link_use_r+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 ac_cpp='$CPP $CPPFLAGS'
7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7138 CFLAGS="$CFLAGS -Wl,-R."
7139 cat >conftest.$ac_ext <<_ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7154 rm -f conftest.$ac_objext conftest$ac_exeext
7155 if { (ac_try="$ac_link"
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161 (eval "$ac_link") 2>conftest.er1
7163 grep -v '^ *+' conftest.er1 >conftest.err
7165 cat conftest.err >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } &&
7168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7169 { (case "(($ac_try" in
7170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171 *) ac_try_echo=$ac_try;;
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174 (eval "$ac_try") 2>&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; } &&
7178 { ac_try='test -s conftest$ac_exeext'
7179 { (case "(($ac_try" in
7180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7181 *) ac_try_echo=$ac_try;;
7183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184 (eval "$ac_try") 2>&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; }; then
7188 llvm_cv_link_use_r=yes
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7193 llvm_cv_link_use_r=no
7196 rm -f core conftest.err conftest.$ac_objext \
7197 conftest$ac_exeext conftest.$ac_ext
7200 ac_cpp='$CPP $CPPFLAGS'
7201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7207 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7208 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7209 if test "$llvm_cv_link_use_r" = yes ; then
7211 cat >>confdefs.h <<\_ACEOF
7212 #define HAVE_LINK_R 1
7218 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7219 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7220 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 ac_cpp='$CPP $CPPFLAGS'
7225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7230 CFLAGS="$CFLAGS -rdynamic"
7231 cat >conftest.$ac_ext <<_ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7246 rm -f conftest.$ac_objext conftest$ac_exeext
7247 if { (ac_try="$ac_link"
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_link") 2>conftest.er1
7255 grep -v '^ *+' conftest.er1 >conftest.err
7257 cat conftest.err >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7261 { (case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_try") 2>&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; } &&
7270 { ac_try='test -s conftest$ac_exeext'
7271 { (case "(($ac_try" in
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_try") 2>&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; }; then
7280 llvm_cv_link_use_export_dynamic=yes
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7285 llvm_cv_link_use_export_dynamic=no
7288 rm -f core conftest.err conftest.$ac_objext \
7289 conftest$ac_exeext conftest.$ac_ext
7292 ac_cpp='$CPP $CPPFLAGS'
7293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7299 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7300 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7301 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7303 cat >>confdefs.h <<\_ACEOF
7304 #define HAVE_LINK_EXPORT_DYNAMIC 1
7310 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7311 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7312 if test "${llvm_cv_link_use_version_script+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7323 # The following code is from the autoconf manual,
7324 # "11.13: Limitations of Usual Tools".
7325 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7326 # Use mktemp if possible; otherwise fall back on mkdir,
7327 # with $RANDOM to make collisions less likely.
7331 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7333 test -n "$tmp" && test -d "$tmp"
7335 tmp=$TMPDIR/foo$$-$RANDOM
7336 (umask 077 && mkdir "$tmp")
7339 echo "{" > "$tmp/export.map"
7340 echo " global: main;" >> "$tmp/export.map"
7341 echo " local: *;" >> "$tmp/export.map"
7342 echo "};" >> "$tmp/export.map"
7344 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7345 cat >conftest.$ac_ext <<_ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h. */
7360 rm -f conftest.$ac_objext conftest$ac_exeext
7361 if { (ac_try="$ac_link"
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367 (eval "$ac_link") 2>conftest.er1
7369 grep -v '^ *+' conftest.er1 >conftest.err
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } &&
7374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7375 { (case "(($ac_try" in
7376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7377 *) ac_try_echo=$ac_try;;
7379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7380 (eval "$ac_try") 2>&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; } &&
7384 { ac_try='test -s conftest$ac_exeext'
7385 { (case "(($ac_try" in
7386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_try") 2>&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 llvm_cv_link_use_version_script=yes
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7399 llvm_cv_link_use_version_script=no
7402 rm -f core conftest.err conftest.$ac_objext \
7403 conftest$ac_exeext conftest.$ac_ext
7404 rm "$tmp/export.map"
7408 ac_cpp='$CPP $CPPFLAGS'
7409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7415 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7416 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7417 if test "$llvm_cv_link_use_version_script" = yes ; then
7418 HAVE_LINK_VERSION_SCRIPT=1
7424 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7425 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7426 if test "${ac_cv_path_GREP+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 # Extract the first word of "grep ggrep" to use in msg output
7430 if test -z "$GREP"; then
7431 set dummy grep ggrep; ac_prog_name=$2
7432 if test "${ac_cv_path_GREP+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 ac_path_GREP_found=false
7436 # Loop through the user's path and test for each of PROGNAME-LIST
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7441 test -z "$as_dir" && as_dir=.
7442 for ac_prog in grep ggrep; do
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7445 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7446 # Check for GNU ac_path_GREP and select it if it is found.
7447 # Check for GNU $ac_path_GREP
7448 case `"$ac_path_GREP" --version 2>&1` in
7450 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7453 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7456 cat "conftest.in" "conftest.in" >"conftest.tmp"
7457 mv "conftest.tmp" "conftest.in"
7458 cp "conftest.in" "conftest.nl"
7459 echo 'GREP' >> "conftest.nl"
7460 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7461 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7462 ac_count=`expr $ac_count + 1`
7463 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7464 # Best one so far, save it but keep looking for a better one
7465 ac_cv_path_GREP="$ac_path_GREP"
7466 ac_path_GREP_max=$ac_count
7468 # 10*(2^10) chars as input seems more than enough
7469 test $ac_count -gt 10 && break
7471 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7475 $ac_path_GREP_found && break 3
7485 GREP="$ac_cv_path_GREP"
7486 if test -z "$GREP"; then
7487 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7488 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7489 { (exit 1); exit 1; }; }
7493 ac_cv_path_GREP=$GREP
7498 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7499 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7500 GREP="$ac_cv_path_GREP"
7503 { echo "$as_me:$LINENO: checking for egrep" >&5
7504 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7505 if test "${ac_cv_path_EGREP+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7509 then ac_cv_path_EGREP="$GREP -E"
7511 # Extract the first word of "egrep" to use in msg output
7512 if test -z "$EGREP"; then
7513 set dummy egrep; ac_prog_name=$2
7514 if test "${ac_cv_path_EGREP+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 ac_path_EGREP_found=false
7518 # Loop through the user's path and test for each of PROGNAME-LIST
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7523 test -z "$as_dir" && as_dir=.
7524 for ac_prog in egrep; do
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7527 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7528 # Check for GNU ac_path_EGREP and select it if it is found.
7529 # Check for GNU $ac_path_EGREP
7530 case `"$ac_path_EGREP" --version 2>&1` in
7532 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7535 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7538 cat "conftest.in" "conftest.in" >"conftest.tmp"
7539 mv "conftest.tmp" "conftest.in"
7540 cp "conftest.in" "conftest.nl"
7541 echo 'EGREP' >> "conftest.nl"
7542 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7543 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7544 ac_count=`expr $ac_count + 1`
7545 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7546 # Best one so far, save it but keep looking for a better one
7547 ac_cv_path_EGREP="$ac_path_EGREP"
7548 ac_path_EGREP_max=$ac_count
7550 # 10*(2^10) chars as input seems more than enough
7551 test $ac_count -gt 10 && break
7553 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7557 $ac_path_EGREP_found && break 3
7567 EGREP="$ac_cv_path_EGREP"
7568 if test -z "$EGREP"; then
7569 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7570 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7571 { (exit 1); exit 1; }; }
7575 ac_cv_path_EGREP=$EGREP
7581 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7582 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7583 EGREP="$ac_cv_path_EGREP"
7586 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7587 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7588 if test "${ac_cv_header_stdc+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 cat >conftest.$ac_ext <<_ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h. */
7610 rm -f conftest.$ac_objext
7611 if { (ac_try="$ac_compile"
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617 (eval "$ac_compile") 2>conftest.er1
7619 grep -v '^ *+' conftest.er1 >conftest.err
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } &&
7624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7625 { (case "(($ac_try" in
7626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630 (eval "$ac_try") 2>&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; } &&
7634 { ac_try='test -s conftest.$ac_objext'
7635 { (case "(($ac_try" in
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640 (eval "$ac_try") 2>&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 ac_cv_header_stdc=yes
7646 echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7649 ac_cv_header_stdc=no
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 if test $ac_cv_header_stdc = yes; then
7655 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7656 cat >conftest.$ac_ext <<_ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7666 $EGREP "memchr" >/dev/null 2>&1; then
7669 ac_cv_header_stdc=no
7675 if test $ac_cv_header_stdc = yes; then
7676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7677 cat >conftest.$ac_ext <<_ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7687 $EGREP "free" >/dev/null 2>&1; then
7690 ac_cv_header_stdc=no
7696 if test $ac_cv_header_stdc = yes; then
7697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7698 if test "$cross_compiling" = yes; then
7701 cat >conftest.$ac_ext <<_ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h. */
7709 #if ((' ' & 0x0FF) == 0x020)
7710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7713 # define ISLOWER(c) \
7714 (('a' <= (c) && (c) <= 'i') \
7715 || ('j' <= (c) && (c) <= 'r') \
7716 || ('s' <= (c) && (c) <= 'z'))
7717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7725 for (i = 0; i < 256; i++)
7726 if (XOR (islower (i), ISLOWER (i))
7727 || toupper (i) != TOUPPER (i))
7732 rm -f conftest$ac_exeext
7733 if { (ac_try="$ac_link"
7735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736 *) ac_try_echo=$ac_try;;
7738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7739 (eval "$ac_link") 2>&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7743 { (case "(($ac_try" in
7744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745 *) ac_try_echo=$ac_try;;
7747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7748 (eval "$ac_try") 2>&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7754 echo "$as_me: program exited with status $ac_status" >&5
7755 echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7759 ac_cv_header_stdc=no
7761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7767 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7768 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7769 if test $ac_cv_header_stdc = yes; then
7771 cat >>confdefs.h <<\_ACEOF
7772 #define STDC_HEADERS 1
7777 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7787 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7788 inttypes.h stdint.h unistd.h
7790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 cat >conftest.$ac_ext <<_ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802 $ac_includes_default
7804 #include <$ac_header>
7806 rm -f conftest.$ac_objext
7807 if { (ac_try="$ac_compile"
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_compile") 2>conftest.er1
7815 grep -v '^ *+' conftest.er1 >conftest.err
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7821 { (case "(($ac_try" in
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_try") 2>&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try='test -s conftest.$ac_objext'
7831 { (case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_try") 2>&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7840 eval "$as_ac_Header=yes"
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7845 eval "$as_ac_Header=no"
7848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 ac_res=`eval echo '${'$as_ac_Header'}'`
7851 { echo "$as_me:$LINENO: result: $ac_res" >&5
7852 echo "${ECHO_T}$ac_res" >&6; }
7853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7854 cat >>confdefs.h <<_ACEOF
7855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7864 for ac_header in errno.h
7866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 ac_res=`eval echo '${'$as_ac_Header'}'`
7874 { echo "$as_me:$LINENO: result: $ac_res" >&5
7875 echo "${ECHO_T}$ac_res" >&6; }
7877 # Is the header compilable?
7878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7880 cat >conftest.$ac_ext <<_ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7886 $ac_includes_default
7887 #include <$ac_header>
7889 rm -f conftest.$ac_objext
7890 if { (ac_try="$ac_compile"
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_compile") 2>conftest.er1
7898 grep -v '^ *+' conftest.er1 >conftest.err
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } &&
7903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7904 { (case "(($ac_try" in
7905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7906 *) ac_try_echo=$ac_try;;
7908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7909 (eval "$ac_try") 2>&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; } &&
7913 { ac_try='test -s conftest.$ac_objext'
7914 { (case "(($ac_try" in
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919 (eval "$ac_try") 2>&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 ac_header_compiler=yes
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 ac_header_compiler=no
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7933 echo "${ECHO_T}$ac_header_compiler" >&6; }
7935 # Is the header present?
7936 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7938 cat >conftest.$ac_ext <<_ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 #include <$ac_header>
7946 if { (ac_try="$ac_cpp conftest.$ac_ext"
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7954 grep -v '^ *+' conftest.er1 >conftest.err
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } >/dev/null; then
7959 if test -s conftest.err; then
7960 ac_cpp_err=$ac_c_preproc_warn_flag
7961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7968 if test -z "$ac_cpp_err"; then
7969 ac_header_preproc=yes
7971 echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7974 ac_header_preproc=no
7977 rm -f conftest.err conftest.$ac_ext
7978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7979 echo "${ECHO_T}$ac_header_preproc" >&6; }
7981 # So? What about this header?
7982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7988 ac_header_preproc=yes
7991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8004 ## ------------------------------------ ##
8005 ## Report this to http://llvm.org/bugs/ ##
8006 ## ------------------------------------ ##
8008 ) | sed "s/^/$as_me: WARNING: /" >&2
8011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 eval "$as_ac_Header=\$ac_header_preproc"
8018 ac_res=`eval echo '${'$as_ac_Header'}'`
8019 { echo "$as_me:$LINENO: result: $ac_res" >&5
8020 echo "${ECHO_T}$ac_res" >&6; }
8023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8024 cat >>confdefs.h <<_ACEOF
8025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8033 case "$llvm_cv_os_type" in
8034 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8035 Darwin) llvm_shlib_ext=.dylib ;;
8036 *) llvm_shlib_ext=.so ;;
8040 cat >>confdefs.h <<_ACEOF
8041 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8045 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8046 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8059 if test "$GCC" != "yes" && test "$ICC" != "yes"
8061 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8062 echo "$as_me: error: gcc|icc required but not found" >&2;}
8063 { (exit 1); exit 1; }; }
8066 if test "$GXX" != "yes" && test "$IXX" != "yes"
8068 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8069 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8070 { (exit 1); exit 1; }; }
8073 if test "$GCC" = "yes"
8075 cat >conftest.$ac_ext <<_ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8083 #if !defined(__GNUC__) || __GNUC__ < 3
8084 #error Unsupported GCC version
8089 rm -f conftest.$ac_objext
8090 if { (ac_try="$ac_compile"
8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093 *) ac_try_echo=$ac_try;;
8095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096 (eval "$ac_compile") 2>conftest.er1
8098 grep -v '^ *+' conftest.er1 >conftest.err
8100 cat conftest.err >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } &&
8103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8104 { (case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_try") 2>&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; } &&
8113 { ac_try='test -s conftest.$ac_objext'
8114 { (case "(($ac_try" in
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_try") 2>&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8129 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8130 { (exit 1); exit 1; }; }
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 if test -z "$llvm_cv_gnu_make_command"
8138 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8139 echo "$as_me: error: GNU Make required but not found" >&2;}
8140 { (exit 1); exit 1; }; }
8143 { echo "$as_me:$LINENO: result: ok" >&5
8144 echo "${ECHO_T}ok" >&6; }
8146 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8147 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8148 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8150 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8152 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8156 NO_MAYBE_UNINITIALIZED=
8157 if test "$GXX" = "yes"
8159 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8161 if test -z "$NO_MAYBE_UNINITIALIZED"
8163 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8167 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8168 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8171 # Check whether --with-python was given.
8172 if test "${with_python+set}" = set; then
8173 withval=$with_python; PYTHON="$withval"
8177 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8178 { echo "$as_me:$LINENO: checking for python" >&5
8179 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8180 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8181 echo "${ECHO_T}user defined: $with_python" >&6; }
8183 if test -n "$PYTHON" ; then
8184 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8185 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8188 # Extract the first word of "python python2 python26", so it can be a program name with args.
8189 set dummy python python2 python26; ac_word=$2
8190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8192 if test "${ac_cv_path_PYTHON+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204 test -z "$as_dir" && as_dir=.
8205 for ac_exec_ext in '' $ac_executable_extensions; do
8206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8207 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8216 echo "${ECHO_T}not found" >&6; }
8217 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8218 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8219 { (exit 1); exit 1; }; }"
8223 PYTHON=$ac_cv_path_PYTHON
8224 if test -n "$PYTHON"; then
8225 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8226 echo "${ECHO_T}$PYTHON" >&6; }
8228 { echo "$as_me:$LINENO: result: no" >&5
8229 echo "${ECHO_T}no" >&6; }
8235 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8236 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8237 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8238 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8239 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8240 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8241 if test "$ac_python_version_major" -gt "2" || \
8242 (test "$ac_python_version_major" -eq "2" && \
8243 test "$ac_python_version_minor" -ge "5") ; then
8244 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8245 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8247 { echo "$as_me:$LINENO: result: not found" >&5
8248 echo "${ECHO_T}not found" >&6; }
8249 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8250 See \`config.log' for more details." >&5
8251 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8252 See \`config.log' for more details." >&2;}
8253 { (exit 1); exit 1; }; }
8258 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8259 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8260 if test "${ac_cv_lib_m_sin+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 ac_check_lib_save_LIBS=$LIBS
8265 cat >conftest.$ac_ext <<_ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8272 /* Override any GCC internal prototype to avoid an error.
8273 Use char because int might match the return type of a GCC
8274 builtin and then its argument prototype would still apply. */
8287 rm -f conftest.$ac_objext conftest$ac_exeext
8288 if { (ac_try="$ac_link"
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_link") 2>conftest.er1
8296 grep -v '^ *+' conftest.er1 >conftest.err
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8302 { (case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_try") 2>&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; } &&
8311 { ac_try='test -s conftest$ac_exeext'
8312 { (case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_try") 2>&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8329 rm -f core conftest.err conftest.$ac_objext \
8330 conftest$ac_exeext conftest.$ac_ext
8331 LIBS=$ac_check_lib_save_LIBS
8333 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8334 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8335 if test $ac_cv_lib_m_sin = yes; then
8336 cat >>confdefs.h <<_ACEOF
8344 if test "$llvm_cv_os_type" = "MingW" ; then
8346 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8347 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8348 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 ac_check_lib_save_LIBS=$LIBS
8352 LIBS="-limagehlp $LIBS"
8353 cat >conftest.$ac_ext <<_ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8369 rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (ac_try="$ac_link"
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_link") 2>conftest.er1
8378 grep -v '^ *+' conftest.er1 >conftest.err
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8384 { (case "(($ac_try" in
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389 (eval "$ac_try") 2>&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; } &&
8393 { ac_try='test -s conftest$ac_exeext'
8394 { (case "(($ac_try" in
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_try") 2>&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_lib_imagehlp_main=yes
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8408 ac_cv_lib_imagehlp_main=no
8411 rm -f core conftest.err conftest.$ac_objext \
8412 conftest$ac_exeext conftest.$ac_ext
8413 LIBS=$ac_check_lib_save_LIBS
8415 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8416 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8417 if test $ac_cv_lib_imagehlp_main = yes; then
8418 cat >>confdefs.h <<_ACEOF
8419 #define HAVE_LIBIMAGEHLP 1
8422 LIBS="-limagehlp $LIBS"
8427 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8428 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8429 if test "${ac_cv_lib_psapi_main+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 ac_check_lib_save_LIBS=$LIBS
8433 LIBS="-lpsapi $LIBS"
8434 cat >conftest.$ac_ext <<_ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (ac_try="$ac_link"
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_link") 2>conftest.er1
8459 grep -v '^ *+' conftest.er1 >conftest.err
8461 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } &&
8464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8465 { (case "(($ac_try" in
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_try") 2>&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; } &&
8474 { ac_try='test -s conftest$ac_exeext'
8475 { (case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_try") 2>&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 ac_cv_lib_psapi_main=yes
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 ac_cv_lib_psapi_main=no
8492 rm -f core conftest.err conftest.$ac_objext \
8493 conftest$ac_exeext conftest.$ac_ext
8494 LIBS=$ac_check_lib_save_LIBS
8496 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8497 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8498 if test $ac_cv_lib_psapi_main = yes; then
8499 cat >>confdefs.h <<_ACEOF
8500 #define HAVE_LIBPSAPI 1
8503 LIBS="-lpsapi $LIBS"
8508 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8509 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8510 if test "${ac_cv_lib_shell32_main+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
8513 ac_check_lib_save_LIBS=$LIBS
8514 LIBS="-lshell32 $LIBS"
8515 cat >conftest.$ac_ext <<_ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (ac_try="$ac_link"
8534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_link") 2>conftest.er1
8540 grep -v '^ *+' conftest.er1 >conftest.err
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
8545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8546 { (case "(($ac_try" in
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8551 (eval "$ac_try") 2>&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; } &&
8555 { ac_try='test -s conftest$ac_exeext'
8556 { (case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_try") 2>&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_cv_lib_shell32_main=yes
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8570 ac_cv_lib_shell32_main=no
8573 rm -f core conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575 LIBS=$ac_check_lib_save_LIBS
8577 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8578 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8579 if test $ac_cv_lib_shell32_main = yes; then
8580 cat >>confdefs.h <<_ACEOF
8581 #define HAVE_LIBSHELL32 1
8584 LIBS="-lshell32 $LIBS"
8590 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8591 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8592 if test "${ac_cv_search_dlopen+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 ac_func_search_save_LIBS=$LIBS
8596 cat >conftest.$ac_ext <<_ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8603 /* Override any GCC internal prototype to avoid an error.
8604 Use char because int might match the return type of a GCC
8605 builtin and then its argument prototype would still apply. */
8618 for ac_lib in '' dl; do
8619 if test -z "$ac_lib"; then
8620 ac_res="none required"
8623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8625 rm -f conftest.$ac_objext conftest$ac_exeext
8626 if { (ac_try="$ac_link"
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_link") 2>conftest.er1
8634 grep -v '^ *+' conftest.er1 >conftest.err
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8640 { (case "(($ac_try" in
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645 (eval "$ac_try") 2>&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; } &&
8649 { ac_try='test -s conftest$ac_exeext'
8650 { (case "(($ac_try" in
8651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652 *) ac_try_echo=$ac_try;;
8654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8655 (eval "$ac_try") 2>&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 ac_cv_search_dlopen=$ac_res
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8667 rm -f core conftest.err conftest.$ac_objext \
8669 if test "${ac_cv_search_dlopen+set}" = set; then
8673 if test "${ac_cv_search_dlopen+set}" = set; then
8676 ac_cv_search_dlopen=no
8679 LIBS=$ac_func_search_save_LIBS
8681 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8682 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8683 ac_res=$ac_cv_search_dlopen
8684 if test "$ac_res" != no; then
8685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8688 cat >>confdefs.h <<\_ACEOF
8689 #define HAVE_DLOPEN 1
8696 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8697 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8701 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8702 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8703 if test "${ac_cv_search_clock_gettime+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 ac_func_search_save_LIBS=$LIBS
8707 cat >conftest.$ac_ext <<_ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8714 /* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
8720 char clock_gettime ();
8724 return clock_gettime ();
8729 for ac_lib in '' rt; do
8730 if test -z "$ac_lib"; then
8731 ac_res="none required"
8734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8736 rm -f conftest.$ac_objext conftest$ac_exeext
8737 if { (ac_try="$ac_link"
8739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740 *) ac_try_echo=$ac_try;;
8742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8743 (eval "$ac_link") 2>conftest.er1
8745 grep -v '^ *+' conftest.er1 >conftest.err
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } &&
8750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8751 { (case "(($ac_try" in
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_try") 2>&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try='test -s conftest$ac_exeext'
8761 { (case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_try") 2>&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_search_clock_gettime=$ac_res
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8778 rm -f core conftest.err conftest.$ac_objext \
8780 if test "${ac_cv_search_clock_gettime+set}" = set; then
8784 if test "${ac_cv_search_clock_gettime+set}" = set; then
8787 ac_cv_search_clock_gettime=no
8790 LIBS=$ac_func_search_save_LIBS
8792 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8793 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8794 ac_res=$ac_cv_search_clock_gettime
8795 if test "$ac_res" != no; then
8796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8801 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8802 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8803 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8804 if test "${ac_cv_search_setupterm+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 ac_func_search_save_LIBS=$LIBS
8808 cat >conftest.$ac_ext <<_ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8815 /* Override any GCC internal prototype to avoid an error.
8816 Use char because int might match the return type of a GCC
8817 builtin and then its argument prototype would still apply. */
8825 return setupterm ();
8830 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8831 if test -z "$ac_lib"; then
8832 ac_res="none required"
8835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8837 rm -f conftest.$ac_objext conftest$ac_exeext
8838 if { (ac_try="$ac_link"
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_link") 2>conftest.er1
8846 grep -v '^ *+' conftest.er1 >conftest.err
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8852 { (case "(($ac_try" in
8853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8854 *) ac_try_echo=$ac_try;;
8856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8857 (eval "$ac_try") 2>&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest$ac_exeext'
8862 { (case "(($ac_try" in
8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867 (eval "$ac_try") 2>&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 ac_cv_search_setupterm=$ac_res
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8879 rm -f core conftest.err conftest.$ac_objext \
8881 if test "${ac_cv_search_setupterm+set}" = set; then
8885 if test "${ac_cv_search_setupterm+set}" = set; then
8888 ac_cv_search_setupterm=no
8891 LIBS=$ac_func_search_save_LIBS
8893 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8894 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8895 ac_res=$ac_cv_search_setupterm
8896 if test "$ac_res" != no; then
8897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8900 cat >>confdefs.h <<\_ACEOF
8901 #define HAVE_TERMINFO 1
8911 if test "$llvm_cv_enable_libedit" = "yes" ; then
8912 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8913 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8914 if test "${ac_cv_search_el_init+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 ac_func_search_save_LIBS=$LIBS
8918 cat >conftest.$ac_ext <<_ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8925 /* Override any GCC internal prototype to avoid an error.
8926 Use char because int might match the return type of a GCC
8927 builtin and then its argument prototype would still apply. */
8940 for ac_lib in '' edit; do
8941 if test -z "$ac_lib"; then
8942 ac_res="none required"
8945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8947 rm -f conftest.$ac_objext conftest$ac_exeext
8948 if { (ac_try="$ac_link"
8950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8951 *) ac_try_echo=$ac_try;;
8953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954 (eval "$ac_link") 2>conftest.er1
8956 grep -v '^ *+' conftest.er1 >conftest.err
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } &&
8961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8962 { (case "(($ac_try" in
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_try") 2>&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; } &&
8971 { ac_try='test -s conftest$ac_exeext'
8972 { (case "(($ac_try" in
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_try") 2>&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; }; then
8981 ac_cv_search_el_init=$ac_res
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8989 rm -f core conftest.err conftest.$ac_objext \
8991 if test "${ac_cv_search_el_init+set}" = set; then
8995 if test "${ac_cv_search_el_init+set}" = set; then
8998 ac_cv_search_el_init=no
9001 LIBS=$ac_func_search_save_LIBS
9003 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9004 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9005 ac_res=$ac_cv_search_el_init
9006 if test "$ac_res" != no; then
9007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9009 cat >>confdefs.h <<\_ACEOF
9010 #define HAVE_LIBEDIT 1
9017 if test "$llvm_cv_enable_libffi" = "yes" ; then
9018 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9019 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9020 if test "${ac_cv_search_ffi_call+set}" = set; then
9021 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 ac_func_search_save_LIBS=$LIBS
9024 cat >conftest.$ac_ext <<_ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9031 /* Override any GCC internal prototype to avoid an error.
9032 Use char because int might match the return type of a GCC
9033 builtin and then its argument prototype would still apply. */
9046 for ac_lib in '' ffi; do
9047 if test -z "$ac_lib"; then
9048 ac_res="none required"
9051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (ac_try="$ac_link"
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060 (eval "$ac_link") 2>conftest.er1
9062 grep -v '^ *+' conftest.er1 >conftest.err
9064 cat conftest.err >&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } &&
9067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9068 { (case "(($ac_try" in
9069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070 *) ac_try_echo=$ac_try;;
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073 (eval "$ac_try") 2>&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; } &&
9077 { ac_try='test -s conftest$ac_exeext'
9078 { (case "(($ac_try" in
9079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080 *) ac_try_echo=$ac_try;;
9082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083 (eval "$ac_try") 2>&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; }; then
9087 ac_cv_search_ffi_call=$ac_res
9089 echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9095 rm -f core conftest.err conftest.$ac_objext \
9097 if test "${ac_cv_search_ffi_call+set}" = set; then
9101 if test "${ac_cv_search_ffi_call+set}" = set; then
9104 ac_cv_search_ffi_call=no
9107 LIBS=$ac_func_search_save_LIBS
9109 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9110 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9111 ac_res=$ac_cv_search_ffi_call
9112 if test "$ac_res" != no; then
9113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9115 cat >>confdefs.h <<\_ACEOF
9116 #define HAVE_FFI_CALL 1
9120 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9121 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9122 { (exit 1); exit 1; }; }
9127 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9128 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9129 if test "${ac_cv_search_mallinfo+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 ac_func_search_save_LIBS=$LIBS
9133 cat >conftest.$ac_ext <<_ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9140 /* Override any GCC internal prototype to avoid an error.
9141 Use char because int might match the return type of a GCC
9142 builtin and then its argument prototype would still apply. */
9155 for ac_lib in '' malloc; do
9156 if test -z "$ac_lib"; then
9157 ac_res="none required"
9160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9162 rm -f conftest.$ac_objext conftest$ac_exeext
9163 if { (ac_try="$ac_link"
9165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166 *) ac_try_echo=$ac_try;;
9168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169 (eval "$ac_link") 2>conftest.er1
9171 grep -v '^ *+' conftest.er1 >conftest.err
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } &&
9176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9177 { (case "(($ac_try" in
9178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9179 *) ac_try_echo=$ac_try;;
9181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9182 (eval "$ac_try") 2>&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest$ac_exeext'
9187 { (case "(($ac_try" in
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_try") 2>&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; }; then
9196 ac_cv_search_mallinfo=$ac_res
9198 echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9204 rm -f core conftest.err conftest.$ac_objext \
9206 if test "${ac_cv_search_mallinfo+set}" = set; then
9210 if test "${ac_cv_search_mallinfo+set}" = set; then
9213 ac_cv_search_mallinfo=no
9216 LIBS=$ac_func_search_save_LIBS
9218 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9219 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9220 ac_res=$ac_cv_search_mallinfo
9221 if test "$ac_res" != no; then
9222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9224 cat >>confdefs.h <<\_ACEOF
9225 #define HAVE_MALLINFO 1
9231 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9233 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9234 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9235 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 ac_check_lib_save_LIBS=$LIBS
9239 LIBS="-lpthread $LIBS"
9240 cat >conftest.$ac_ext <<_ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9247 /* Override any GCC internal prototype to avoid an error.
9248 Use char because int might match the return type of a GCC
9249 builtin and then its argument prototype would still apply. */
9253 char pthread_mutex_init ();
9257 return pthread_mutex_init ();
9262 rm -f conftest.$ac_objext conftest$ac_exeext
9263 if { (ac_try="$ac_link"
9265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9266 *) ac_try_echo=$ac_try;;
9268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9269 (eval "$ac_link") 2>conftest.er1
9271 grep -v '^ *+' conftest.er1 >conftest.err
9273 cat conftest.err >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } &&
9276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9277 { (case "(($ac_try" in
9278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9279 *) ac_try_echo=$ac_try;;
9281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9282 (eval "$ac_try") 2>&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; } &&
9286 { ac_try='test -s conftest$ac_exeext'
9287 { (case "(($ac_try" in
9288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_try") 2>&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; }; then
9296 ac_cv_lib_pthread_pthread_mutex_init=yes
9298 echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9301 ac_cv_lib_pthread_pthread_mutex_init=no
9304 rm -f core conftest.err conftest.$ac_objext \
9305 conftest$ac_exeext conftest.$ac_ext
9306 LIBS=$ac_check_lib_save_LIBS
9308 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9309 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9310 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9311 cat >>confdefs.h <<_ACEOF
9312 #define HAVE_LIBPTHREAD 1
9315 LIBS="-lpthread $LIBS"
9319 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9320 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9321 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 ac_func_search_save_LIBS=$LIBS
9325 cat >conftest.$ac_ext <<_ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9332 /* Override any GCC internal prototype to avoid an error.
9333 Use char because int might match the return type of a GCC
9334 builtin and then its argument prototype would still apply. */
9338 char pthread_mutex_lock ();
9342 return pthread_mutex_lock ();
9347 for ac_lib in '' pthread; do
9348 if test -z "$ac_lib"; then
9349 ac_res="none required"
9352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9354 rm -f conftest.$ac_objext conftest$ac_exeext
9355 if { (ac_try="$ac_link"
9357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9358 *) ac_try_echo=$ac_try;;
9360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9361 (eval "$ac_link") 2>conftest.er1
9363 grep -v '^ *+' conftest.er1 >conftest.err
9365 cat conftest.err >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } &&
9368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9369 { (case "(($ac_try" in
9370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9371 *) ac_try_echo=$ac_try;;
9373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9374 (eval "$ac_try") 2>&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; } &&
9378 { ac_try='test -s conftest$ac_exeext'
9379 { (case "(($ac_try" in
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384 (eval "$ac_try") 2>&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 ac_cv_search_pthread_mutex_lock=$ac_res
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9396 rm -f core conftest.err conftest.$ac_objext \
9398 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9402 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9405 ac_cv_search_pthread_mutex_lock=no
9408 LIBS=$ac_func_search_save_LIBS
9410 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9411 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9412 ac_res=$ac_cv_search_pthread_mutex_lock
9413 if test "$ac_res" != no; then
9414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9416 cat >>confdefs.h <<\_ACEOF
9417 #define HAVE_PTHREAD_MUTEX_LOCK 1
9422 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9423 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9424 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 ac_func_search_save_LIBS=$LIBS
9428 cat >conftest.$ac_ext <<_ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9435 /* Override any GCC internal prototype to avoid an error.
9436 Use char because int might match the return type of a GCC
9437 builtin and then its argument prototype would still apply. */
9441 char pthread_rwlock_init ();
9445 return pthread_rwlock_init ();
9450 for ac_lib in '' pthread; do
9451 if test -z "$ac_lib"; then
9452 ac_res="none required"
9455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (ac_try="$ac_link"
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_link") 2>conftest.er1
9466 grep -v '^ *+' conftest.er1 >conftest.err
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9472 { (case "(($ac_try" in
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_try") 2>&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; } &&
9481 { ac_try='test -s conftest$ac_exeext'
9482 { (case "(($ac_try" in
9483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484 *) ac_try_echo=$ac_try;;
9486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9487 (eval "$ac_try") 2>&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; }; then
9491 ac_cv_search_pthread_rwlock_init=$ac_res
9493 echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9499 rm -f core conftest.err conftest.$ac_objext \
9501 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9505 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9508 ac_cv_search_pthread_rwlock_init=no
9511 LIBS=$ac_func_search_save_LIBS
9513 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9514 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9515 ac_res=$ac_cv_search_pthread_rwlock_init
9516 if test "$ac_res" != no; then
9517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9519 cat >>confdefs.h <<\_ACEOF
9520 #define HAVE_PTHREAD_RWLOCK_INIT 1
9525 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9526 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9527 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 ac_func_search_save_LIBS=$LIBS
9531 cat >conftest.$ac_ext <<_ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9538 /* Override any GCC internal prototype to avoid an error.
9539 Use char because int might match the return type of a GCC
9540 builtin and then its argument prototype would still apply. */
9544 char pthread_getspecific ();
9548 return pthread_getspecific ();
9553 for ac_lib in '' pthread; do
9554 if test -z "$ac_lib"; then
9555 ac_res="none required"
9558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9560 rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (ac_try="$ac_link"
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_link") 2>conftest.er1
9569 grep -v '^ *+' conftest.er1 >conftest.err
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } &&
9574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9575 { (case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_try") 2>&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; } &&
9584 { ac_try='test -s conftest$ac_exeext'
9585 { (case "(($ac_try" in
9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590 (eval "$ac_try") 2>&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; }; then
9594 ac_cv_search_pthread_getspecific=$ac_res
9596 echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9602 rm -f core conftest.err conftest.$ac_objext \
9604 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9608 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9611 ac_cv_search_pthread_getspecific=no
9614 LIBS=$ac_func_search_save_LIBS
9616 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9617 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9618 ac_res=$ac_cv_search_pthread_getspecific
9619 if test "$ac_res" != no; then
9620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9622 cat >>confdefs.h <<\_ACEOF
9623 #define HAVE_PTHREAD_GETSPECIFIC 1
9630 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9632 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9633 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9634 if test "${ac_cv_lib_z_compress2+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 ac_check_lib_save_LIBS=$LIBS
9639 cat >conftest.$ac_ext <<_ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9646 /* Override any GCC internal prototype to avoid an error.
9647 Use char because int might match the return type of a GCC
9648 builtin and then its argument prototype would still apply. */
9656 return compress2 ();
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (ac_try="$ac_link"
9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665 *) ac_try_echo=$ac_try;;
9667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668 (eval "$ac_link") 2>conftest.er1
9670 grep -v '^ *+' conftest.er1 >conftest.err
9672 cat conftest.err >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9676 { (case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_try") 2>&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest$ac_exeext'
9686 { (case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_try") 2>&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_lib_z_compress2=yes
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9700 ac_cv_lib_z_compress2=no
9703 rm -f core conftest.err conftest.$ac_objext \
9704 conftest$ac_exeext conftest.$ac_ext
9705 LIBS=$ac_check_lib_save_LIBS
9707 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9708 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9709 if test $ac_cv_lib_z_compress2 = yes; then
9710 cat >>confdefs.h <<_ACEOF
9721 # Check whether --with-oprofile was given.
9722 if test "${with_oprofile+set}" = set; then
9723 withval=$with_oprofile;
9727 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9731 *) llvm_cv_oppath="${withval}/lib/oprofile"
9732 CPPFLAGS="-I${withval}/include";;
9734 case $llvm_cv_os_type in
9736 if test -n "$llvm_cv_oppath" ; then
9737 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9738 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9739 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9740 if test "${ac_cv_search_bfd_init+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 ac_func_search_save_LIBS=$LIBS
9744 cat >conftest.$ac_ext <<_ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9751 /* Override any GCC internal prototype to avoid an error.
9752 Use char because int might match the return type of a GCC
9753 builtin and then its argument prototype would still apply. */
9766 for ac_lib in '' bfd; do
9767 if test -z "$ac_lib"; then
9768 ac_res="none required"
9771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (ac_try="$ac_link"
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_link") 2>conftest.er1
9782 grep -v '^ *+' conftest.er1 >conftest.err
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } &&
9787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9788 { (case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_try") 2>&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; } &&
9797 { ac_try='test -s conftest$ac_exeext'
9798 { (case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_try") 2>&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9807 ac_cv_search_bfd_init=$ac_res
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9815 rm -f core conftest.err conftest.$ac_objext \
9817 if test "${ac_cv_search_bfd_init+set}" = set; then
9821 if test "${ac_cv_search_bfd_init+set}" = set; then
9824 ac_cv_search_bfd_init=no
9827 LIBS=$ac_func_search_save_LIBS
9829 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9830 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9831 ac_res=$ac_cv_search_bfd_init
9832 if test "$ac_res" != no; then
9833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9837 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9838 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9839 if test "${ac_cv_search_op_open_agent+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 ac_func_search_save_LIBS=$LIBS
9843 cat >conftest.$ac_ext <<_ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9850 /* Override any GCC internal prototype to avoid an error.
9851 Use char because int might match the return type of a GCC
9852 builtin and then its argument prototype would still apply. */
9856 char op_open_agent ();
9860 return op_open_agent ();
9865 for ac_lib in '' opagent; do
9866 if test -z "$ac_lib"; then
9867 ac_res="none required"
9870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9872 rm -f conftest.$ac_objext conftest$ac_exeext
9873 if { (ac_try="$ac_link"
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_link") 2>conftest.er1
9881 grep -v '^ *+' conftest.er1 >conftest.err
9883 cat conftest.err >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9887 { (case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_try") 2>&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; } &&
9896 { ac_try='test -s conftest$ac_exeext'
9897 { (case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_try") 2>&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9906 ac_cv_search_op_open_agent=$ac_res
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9914 rm -f core conftest.err conftest.$ac_objext \
9916 if test "${ac_cv_search_op_open_agent+set}" = set; then
9920 if test "${ac_cv_search_op_open_agent+set}" = set; then
9923 ac_cv_search_op_open_agent=no
9926 LIBS=$ac_func_search_save_LIBS
9928 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9929 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9930 ac_res=$ac_cv_search_op_open_agent
9931 if test "$ac_res" != no; then
9932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9936 echo "Error! You need to have libopagent around."
9941 if test "${ac_cv_header_opagent_h+set}" = set; then
9942 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9943 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9944 if test "${ac_cv_header_opagent_h+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9948 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9950 # Is the header compilable?
9951 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9952 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9953 cat >conftest.$ac_ext <<_ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 $ac_includes_default
9960 #include <opagent.h>
9962 rm -f conftest.$ac_objext
9963 if { (ac_try="$ac_compile"
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_compile") 2>conftest.er1
9971 grep -v '^ *+' conftest.er1 >conftest.err
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9977 { (case "(($ac_try" in
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_try") 2>&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try='test -s conftest.$ac_objext'
9987 { (case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_try") 2>&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9996 ac_header_compiler=yes
9998 echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10001 ac_header_compiler=no
10004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10006 echo "${ECHO_T}$ac_header_compiler" >&6; }
10008 # Is the header present?
10009 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10010 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10011 cat >conftest.$ac_ext <<_ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h. */
10017 #include <opagent.h>
10019 if { (ac_try="$ac_cpp conftest.$ac_ext"
10020 case "(($ac_try" in
10021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022 *) ac_try_echo=$ac_try;;
10024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10027 grep -v '^ *+' conftest.er1 >conftest.err
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } >/dev/null; then
10032 if test -s conftest.err; then
10033 ac_cpp_err=$ac_c_preproc_warn_flag
10034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10041 if test -z "$ac_cpp_err"; then
10042 ac_header_preproc=yes
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10047 ac_header_preproc=no
10050 rm -f conftest.err conftest.$ac_ext
10051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10052 echo "${ECHO_T}$ac_header_preproc" >&6; }
10054 # So? What about this header?
10055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10057 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10058 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10059 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10060 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10061 ac_header_preproc=yes
10064 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10065 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10066 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10067 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10068 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10069 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10070 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10071 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10072 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10073 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10075 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10077 ## ------------------------------------ ##
10078 ## Report this to http://llvm.org/bugs/ ##
10079 ## ------------------------------------ ##
10081 ) | sed "s/^/$as_me: WARNING: /" >&2
10084 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10085 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10086 if test "${ac_cv_header_opagent_h+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 ac_cv_header_opagent_h=$ac_header_preproc
10091 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10092 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10095 if test $ac_cv_header_opagent_h = yes; then
10099 echo "Error! You need to have opagent.h around."
10107 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10108 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10109 { (exit 1); exit 1; }; } ;;
10120 cat >>confdefs.h <<_ACEOF
10121 #define LLVM_USE_OPROFILE $USE_OPROFILE
10126 # Check whether --with-intel-jitevents was given.
10127 if test "${with_intel_jitevents+set}" = set; then
10128 withval=$with_intel_jitevents;
10130 yes) USE_INTEL_JITEVENTS=1
10132 no) USE_INTEL_JITEVENTS=0
10134 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10135 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10136 { (exit 1); exit 1; }; };;
10139 case $llvm_cv_os_type in
10140 Linux|Win32|Cygwin|MingW) ;;
10141 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10142 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10143 { (exit 1); exit 1; }; };;
10146 case "$llvm_cv_target_arch" in
10148 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10149 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10150 { (exit 1); exit 1; }; };;
10155 USE_INTEL_JITEVENTS=0
10161 cat >>confdefs.h <<_ACEOF
10162 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10166 for ac_prog in xml2-config
10168 # Extract the first word of "$ac_prog", so it can be a program name with args.
10169 set dummy $ac_prog; ac_word=$2
10170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10172 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 if test -n "$XML2CONFIG"; then
10176 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179 for as_dir in $PATH
10182 test -z "$as_dir" && as_dir=.
10183 for ac_exec_ext in '' $ac_executable_extensions; do
10184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10185 ac_cv_prog_XML2CONFIG="$ac_prog"
10186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10195 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10196 if test -n "$XML2CONFIG"; then
10197 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10198 echo "${ECHO_T}$XML2CONFIG" >&6; }
10200 { echo "$as_me:$LINENO: result: no" >&5
10201 echo "${ECHO_T}no" >&6; }
10205 test -n "$XML2CONFIG" && break
10209 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10210 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10211 if test "x$XML2CONFIG" = "x"; then
10212 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10213 echo "${ECHO_T}xml2-config not found" >&6; }
10215 LIBXML2_INC=`$XML2CONFIG --cflags`
10216 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10217 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10218 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10219 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10220 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 ac_check_lib_save_LIBS=$LIBS
10224 LIBS="-lxml2 $LIBS"
10225 cat >conftest.$ac_ext <<_ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h. */
10232 /* Override any GCC internal prototype to avoid an error.
10233 Use char because int might match the return type of a GCC
10234 builtin and then its argument prototype would still apply. */
10238 char xmlReadFile ();
10242 return xmlReadFile ();
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (ac_try="$ac_link"
10249 case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_link") 2>conftest.er1
10256 grep -v '^ *+' conftest.er1 >conftest.err
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10262 { (case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_try") 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; } &&
10271 { ac_try='test -s conftest$ac_exeext'
10272 { (case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_try") 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; }; then
10281 ac_cv_lib_xml2_xmlReadFile=yes
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10286 ac_cv_lib_xml2_xmlReadFile=no
10289 rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
10291 LIBS=$ac_check_lib_save_LIBS
10293 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10294 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10295 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10297 cat >>confdefs.h <<\_ACEOF
10298 #define CLANG_HAVE_LIBXML 1
10301 LIBXML2_LIBS="-lxml2"
10314 ac_header_dirent=no
10315 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10316 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10317 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10318 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 cat >conftest.$ac_ext <<_ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 #include <sys/types.h>
10340 rm -f conftest.$ac_objext
10341 if { (ac_try="$ac_compile"
10342 case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347 (eval "$ac_compile") 2>conftest.er1
10349 grep -v '^ *+' conftest.er1 >conftest.err
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10355 { (case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_try") 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; } &&
10364 { ac_try='test -s conftest.$ac_objext'
10365 { (case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_try") 2>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 eval "$as_ac_Header=yes"
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 eval "$as_ac_Header=no"
10382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10384 ac_res=`eval echo '${'$as_ac_Header'}'`
10385 { echo "$as_me:$LINENO: result: $ac_res" >&5
10386 echo "${ECHO_T}$ac_res" >&6; }
10387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10388 cat >>confdefs.h <<_ACEOF
10389 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10392 ac_header_dirent=$ac_hdr; break
10396 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10397 if test $ac_header_dirent = dirent.h; then
10398 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10399 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10400 if test "${ac_cv_search_opendir+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 ac_func_search_save_LIBS=$LIBS
10404 cat >conftest.$ac_ext <<_ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10411 /* Override any GCC internal prototype to avoid an error.
10412 Use char because int might match the return type of a GCC
10413 builtin and then its argument prototype would still apply. */
10426 for ac_lib in '' dir; do
10427 if test -z "$ac_lib"; then
10428 ac_res="none required"
10431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10433 rm -f conftest.$ac_objext conftest$ac_exeext
10434 if { (ac_try="$ac_link"
10435 case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440 (eval "$ac_link") 2>conftest.er1
10442 grep -v '^ *+' conftest.er1 >conftest.err
10444 cat conftest.err >&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } &&
10447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10448 { (case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_try") 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; } &&
10457 { ac_try='test -s conftest$ac_exeext'
10458 { (case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463 (eval "$ac_try") 2>&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
10467 ac_cv_search_opendir=$ac_res
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10475 rm -f core conftest.err conftest.$ac_objext \
10477 if test "${ac_cv_search_opendir+set}" = set; then
10481 if test "${ac_cv_search_opendir+set}" = set; then
10484 ac_cv_search_opendir=no
10486 rm conftest.$ac_ext
10487 LIBS=$ac_func_search_save_LIBS
10489 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10490 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10491 ac_res=$ac_cv_search_opendir
10492 if test "$ac_res" != no; then
10493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10498 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10499 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10500 if test "${ac_cv_search_opendir+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 ac_func_search_save_LIBS=$LIBS
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10511 /* Override any GCC internal prototype to avoid an error.
10512 Use char because int might match the return type of a GCC
10513 builtin and then its argument prototype would still apply. */
10526 for ac_lib in '' x; do
10527 if test -z "$ac_lib"; then
10528 ac_res="none required"
10531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10533 rm -f conftest.$ac_objext conftest$ac_exeext
10534 if { (ac_try="$ac_link"
10535 case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_link") 2>conftest.er1
10542 grep -v '^ *+' conftest.er1 >conftest.err
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
10547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10548 { (case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553 (eval "$ac_try") 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; } &&
10557 { ac_try='test -s conftest$ac_exeext'
10558 { (case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_try") 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 ac_cv_search_opendir=$ac_res
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10575 rm -f core conftest.err conftest.$ac_objext \
10577 if test "${ac_cv_search_opendir+set}" = set; then
10581 if test "${ac_cv_search_opendir+set}" = set; then
10584 ac_cv_search_opendir=no
10586 rm conftest.$ac_ext
10587 LIBS=$ac_func_search_save_LIBS
10589 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10590 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10591 ac_res=$ac_cv_search_opendir
10592 if test "$ac_res" != no; then
10593 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10599 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10600 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10601 if test "${ac_cv_header_mmap_anon+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 ac_cpp='$CPP $CPPFLAGS'
10606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10610 cat >conftest.$ac_ext <<_ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10616 #include <sys/mman.h>
10617 #include <unistd.h>
10622 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10627 rm -f conftest.$ac_objext
10628 if { (ac_try="$ac_compile"
10629 case "(($ac_try" in
10630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631 *) ac_try_echo=$ac_try;;
10633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634 (eval "$ac_compile") 2>conftest.er1
10636 grep -v '^ *+' conftest.er1 >conftest.err
10638 cat conftest.err >&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } &&
10641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10642 { (case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647 (eval "$ac_try") 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; } &&
10651 { ac_try='test -s conftest.$ac_objext'
10652 { (case "(($ac_try" in
10653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654 *) ac_try_echo=$ac_try;;
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657 (eval "$ac_try") 2>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; }; then
10661 ac_cv_header_mmap_anon=yes
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 ac_cv_header_mmap_anon=no
10669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671 ac_cpp='$CPP $CPPFLAGS'
10672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10678 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10679 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10680 if test "$ac_cv_header_mmap_anon" = yes; then
10682 cat >>confdefs.h <<\_ACEOF
10683 #define HAVE_MMAP_ANONYMOUS 1
10688 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10689 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10690 if test "${ac_cv_header_stat_broken+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 cat >conftest.$ac_ext <<_ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10699 #include <sys/types.h>
10700 #include <sys/stat.h>
10702 #if defined S_ISBLK && defined S_IFDIR
10703 # if S_ISBLK (S_IFDIR)
10708 #if defined S_ISBLK && defined S_IFCHR
10709 # if S_ISBLK (S_IFCHR)
10714 #if defined S_ISLNK && defined S_IFREG
10715 # if S_ISLNK (S_IFREG)
10720 #if defined S_ISSOCK && defined S_IFREG
10721 # if S_ISSOCK (S_IFREG)
10727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10728 $EGREP "You lose" >/dev/null 2>&1; then
10729 ac_cv_header_stat_broken=yes
10731 ac_cv_header_stat_broken=no
10736 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10737 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10738 if test $ac_cv_header_stat_broken = yes; then
10740 cat >>confdefs.h <<\_ACEOF
10741 #define STAT_MACROS_BROKEN 1
10746 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10747 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10748 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 cat >conftest.$ac_ext <<_ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757 #include <sys/types.h>
10758 #include <sys/wait.h>
10759 #ifndef WEXITSTATUS
10760 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10763 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10771 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10776 rm -f conftest.$ac_objext
10777 if { (ac_try="$ac_compile"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_compile") 2>conftest.er1
10785 grep -v '^ *+' conftest.er1 >conftest.err
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791 { (case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_try") 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest.$ac_objext'
10801 { (case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_try") 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 ac_cv_header_sys_wait_h=yes
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 ac_cv_header_sys_wait_h=no
10818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10821 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10822 if test $ac_cv_header_sys_wait_h = yes; then
10824 cat >>confdefs.h <<\_ACEOF
10825 #define HAVE_SYS_WAIT_H 1
10830 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10831 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10832 if test "${ac_cv_header_time+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10835 cat >conftest.$ac_ext <<_ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h. */
10841 #include <sys/types.h>
10842 #include <sys/time.h>
10848 if ((struct tm *) 0)
10854 rm -f conftest.$ac_objext
10855 if { (ac_try="$ac_compile"
10856 case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_compile") 2>conftest.er1
10863 grep -v '^ *+' conftest.er1 >conftest.err
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869 { (case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_try") 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest.$ac_objext'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10888 ac_cv_header_time=yes
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 ac_cv_header_time=no
10896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10898 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10899 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10900 if test $ac_cv_header_time = yes; then
10902 cat >>confdefs.h <<\_ACEOF
10903 #define TIME_WITH_SYS_TIME 1
10910 ac_cpp='$CXXCPP $CPPFLAGS'
10911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10916 ac_cpp='$CXXCPP $CPPFLAGS'
10917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10920 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10921 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10922 if test -z "$CXXCPP"; then
10923 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 # Double quotes because CXXCPP needs to be expanded
10927 for CXXCPP in "$CXX -E" "/lib/cpp"
10929 ac_preproc_ok=false
10930 for ac_cxx_preproc_warn_flag in '' yes
10932 # Use a header file that comes with gcc, so configuring glibc
10933 # with a fresh cross-compiler works.
10934 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10935 # <limits.h> exists even on freestanding compilers.
10936 # On the NeXT, cc -E runs the code through the compiler's parser,
10937 # not just through cpp. "Syntax error" is here to catch this case.
10938 cat >conftest.$ac_ext <<_ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10945 # include <limits.h>
10947 # include <assert.h>
10951 if { (ac_try="$ac_cpp conftest.$ac_ext"
10952 case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10959 grep -v '^ *+' conftest.er1 >conftest.err
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } >/dev/null; then
10964 if test -s conftest.err; then
10965 ac_cpp_err=$ac_cxx_preproc_warn_flag
10966 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10973 if test -z "$ac_cpp_err"; then
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10979 # Broken: fails on valid input.
10983 rm -f conftest.err conftest.$ac_ext
10985 # OK, works on sane cases. Now check whether nonexistent headers
10986 # can be detected and how.
10987 cat >conftest.$ac_ext <<_ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10993 #include <ac_nonexistent.h>
10995 if { (ac_try="$ac_cpp conftest.$ac_ext"
10996 case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11003 grep -v '^ *+' conftest.er1 >conftest.err
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } >/dev/null; then
11008 if test -s conftest.err; then
11009 ac_cpp_err=$ac_cxx_preproc_warn_flag
11010 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11017 if test -z "$ac_cpp_err"; then
11018 # Broken: success on invalid input.
11021 echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11024 # Passes both tests.
11029 rm -f conftest.err conftest.$ac_ext
11032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11033 rm -f conftest.err conftest.$ac_ext
11034 if $ac_preproc_ok; then
11039 ac_cv_prog_CXXCPP=$CXXCPP
11042 CXXCPP=$ac_cv_prog_CXXCPP
11044 ac_cv_prog_CXXCPP=$CXXCPP
11046 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11047 echo "${ECHO_T}$CXXCPP" >&6; }
11048 ac_preproc_ok=false
11049 for ac_cxx_preproc_warn_flag in '' yes
11051 # Use a header file that comes with gcc, so configuring glibc
11052 # with a fresh cross-compiler works.
11053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11054 # <limits.h> exists even on freestanding compilers.
11055 # On the NeXT, cc -E runs the code through the compiler's parser,
11056 # not just through cpp. "Syntax error" is here to catch this case.
11057 cat >conftest.$ac_ext <<_ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11064 # include <limits.h>
11066 # include <assert.h>
11070 if { (ac_try="$ac_cpp conftest.$ac_ext"
11071 case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11078 grep -v '^ *+' conftest.er1 >conftest.err
11080 cat conftest.err >&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } >/dev/null; then
11083 if test -s conftest.err; then
11084 ac_cpp_err=$ac_cxx_preproc_warn_flag
11085 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11092 if test -z "$ac_cpp_err"; then
11095 echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11098 # Broken: fails on valid input.
11102 rm -f conftest.err conftest.$ac_ext
11104 # OK, works on sane cases. Now check whether nonexistent headers
11105 # can be detected and how.
11106 cat >conftest.$ac_ext <<_ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11112 #include <ac_nonexistent.h>
11114 if { (ac_try="$ac_cpp conftest.$ac_ext"
11115 case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11122 grep -v '^ *+' conftest.er1 >conftest.err
11124 cat conftest.err >&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } >/dev/null; then
11127 if test -s conftest.err; then
11128 ac_cpp_err=$ac_cxx_preproc_warn_flag
11129 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11136 if test -z "$ac_cpp_err"; then
11137 # Broken: success on invalid input.
11140 echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 # Passes both tests.
11148 rm -f conftest.err conftest.$ac_ext
11151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11152 rm -f conftest.err conftest.$ac_ext
11153 if $ac_preproc_ok; then
11156 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11157 See \`config.log' for more details." >&5
11158 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11159 See \`config.log' for more details." >&2;}
11160 { (exit 1); exit 1; }; }
11164 ac_cpp='$CXXCPP $CPPFLAGS'
11165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11171 for ac_header in cxxabi.h
11173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 ac_res=`eval echo '${'$as_ac_Header'}'`
11181 { echo "$as_me:$LINENO: result: $ac_res" >&5
11182 echo "${ECHO_T}$ac_res" >&6; }
11184 # Is the header compilable?
11185 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11187 cat >conftest.$ac_ext <<_ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 $ac_includes_default
11194 #include <$ac_header>
11196 rm -f conftest.$ac_objext
11197 if { (ac_try="$ac_compile"
11198 case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_compile") 2>conftest.er1
11205 grep -v '^ *+' conftest.er1 >conftest.err
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11211 { (case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_try") 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; } &&
11220 { ac_try='test -s conftest.$ac_objext'
11221 { (case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_try") 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 ac_header_compiler=yes
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 ac_header_compiler=no
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11240 echo "${ECHO_T}$ac_header_compiler" >&6; }
11242 # Is the header present?
11243 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11245 cat >conftest.$ac_ext <<_ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251 #include <$ac_header>
11253 if { (ac_try="$ac_cpp conftest.$ac_ext"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } >/dev/null; then
11266 if test -s conftest.err; then
11267 ac_cpp_err=$ac_cxx_preproc_warn_flag
11268 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11275 if test -z "$ac_cpp_err"; then
11276 ac_header_preproc=yes
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11281 ac_header_preproc=no
11284 rm -f conftest.err conftest.$ac_ext
11285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11286 echo "${ECHO_T}$ac_header_preproc" >&6; }
11288 # So? What about this header?
11289 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11295 ac_header_preproc=yes
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11311 ## ------------------------------------ ##
11312 ## Report this to http://llvm.org/bugs/ ##
11313 ## ------------------------------------ ##
11315 ) | sed "s/^/$as_me: WARNING: /" >&2
11318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 eval "$as_ac_Header=\$ac_header_preproc"
11325 ac_res=`eval echo '${'$as_ac_Header'}'`
11326 { echo "$as_me:$LINENO: result: $ac_res" >&5
11327 echo "${ECHO_T}$ac_res" >&6; }
11330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11331 cat >>confdefs.h <<_ACEOF
11332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11340 ac_cpp='$CPP $CPPFLAGS'
11341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11350 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 ac_res=`eval echo '${'$as_ac_Header'}'`
11360 { echo "$as_me:$LINENO: result: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11363 # Is the header compilable?
11364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 $ac_includes_default
11373 #include <$ac_header>
11375 rm -f conftest.$ac_objext
11376 if { (ac_try="$ac_compile"
11377 case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_compile") 2>conftest.er1
11384 grep -v '^ *+' conftest.er1 >conftest.err
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11390 { (case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_try") 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; } &&
11399 { ac_try='test -s conftest.$ac_objext'
11400 { (case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_try") 2>&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 ac_header_compiler=yes
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11414 ac_header_compiler=no
11417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11419 echo "${ECHO_T}$ac_header_compiler" >&6; }
11421 # Is the header present?
11422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11424 cat >conftest.$ac_ext <<_ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 #include <$ac_header>
11432 if { (ac_try="$ac_cpp conftest.$ac_ext"
11433 case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11440 grep -v '^ *+' conftest.er1 >conftest.err
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } >/dev/null; then
11445 if test -s conftest.err; then
11446 ac_cpp_err=$ac_c_preproc_warn_flag
11447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11454 if test -z "$ac_cpp_err"; then
11455 ac_header_preproc=yes
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 ac_header_preproc=no
11463 rm -f conftest.err conftest.$ac_ext
11464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11465 echo "${ECHO_T}$ac_header_preproc" >&6; }
11467 # So? What about this header?
11468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11474 ac_header_preproc=yes
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11490 ## ------------------------------------ ##
11491 ## Report this to http://llvm.org/bugs/ ##
11492 ## ------------------------------------ ##
11494 ) | sed "s/^/$as_me: WARNING: /" >&2
11497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 eval "$as_ac_Header=\$ac_header_preproc"
11504 ac_res=`eval echo '${'$as_ac_Header'}'`
11505 { echo "$as_me:$LINENO: result: $ac_res" >&5
11506 echo "${ECHO_T}$ac_res" >&6; }
11509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11510 cat >>confdefs.h <<_ACEOF
11511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11524 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 ac_res=`eval echo '${'$as_ac_Header'}'`
11534 { echo "$as_me:$LINENO: result: $ac_res" >&5
11535 echo "${ECHO_T}$ac_res" >&6; }
11537 # Is the header compilable?
11538 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11540 cat >conftest.$ac_ext <<_ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 $ac_includes_default
11547 #include <$ac_header>
11549 rm -f conftest.$ac_objext
11550 if { (ac_try="$ac_compile"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_compile") 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
11563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11564 { (case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_try") 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try='test -s conftest.$ac_objext'
11574 { (case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_try") 2>&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 ac_header_compiler=yes
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 ac_header_compiler=no
11591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11593 echo "${ECHO_T}$ac_header_compiler" >&6; }
11595 # Is the header present?
11596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11598 cat >conftest.$ac_ext <<_ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 #include <$ac_header>
11606 if { (ac_try="$ac_cpp conftest.$ac_ext"
11607 case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11614 grep -v '^ *+' conftest.er1 >conftest.err
11616 cat conftest.err >&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } >/dev/null; then
11619 if test -s conftest.err; then
11620 ac_cpp_err=$ac_c_preproc_warn_flag
11621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11628 if test -z "$ac_cpp_err"; then
11629 ac_header_preproc=yes
11631 echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11634 ac_header_preproc=no
11637 rm -f conftest.err conftest.$ac_ext
11638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11639 echo "${ECHO_T}$ac_header_preproc" >&6; }
11641 # So? What about this header?
11642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11648 ac_header_preproc=yes
11651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11664 ## ------------------------------------ ##
11665 ## Report this to http://llvm.org/bugs/ ##
11666 ## ------------------------------------ ##
11668 ) | sed "s/^/$as_me: WARNING: /" >&2
11671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 eval "$as_ac_Header=\$ac_header_preproc"
11678 ac_res=`eval echo '${'$as_ac_Header'}'`
11679 { echo "$as_me:$LINENO: result: $ac_res" >&5
11680 echo "${ECHO_T}$ac_res" >&6; }
11683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11684 cat >>confdefs.h <<_ACEOF
11685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11693 for ac_header in utime.h
11695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11702 ac_res=`eval echo '${'$as_ac_Header'}'`
11703 { echo "$as_me:$LINENO: result: $ac_res" >&5
11704 echo "${ECHO_T}$ac_res" >&6; }
11706 # Is the header compilable?
11707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11709 cat >conftest.$ac_ext <<_ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11715 $ac_includes_default
11716 #include <$ac_header>
11718 rm -f conftest.$ac_objext
11719 if { (ac_try="$ac_compile"
11720 case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_compile") 2>conftest.er1
11727 grep -v '^ *+' conftest.er1 >conftest.err
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11733 { (case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_try") 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; } &&
11742 { ac_try='test -s conftest.$ac_objext'
11743 { (case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_try") 2>&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; }; then
11752 ac_header_compiler=yes
11754 echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11757 ac_header_compiler=no
11760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11762 echo "${ECHO_T}$ac_header_compiler" >&6; }
11764 # Is the header present?
11765 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11767 cat >conftest.$ac_ext <<_ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11773 #include <$ac_header>
11775 if { (ac_try="$ac_cpp conftest.$ac_ext"
11776 case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11783 grep -v '^ *+' conftest.er1 >conftest.err
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } >/dev/null; then
11788 if test -s conftest.err; then
11789 ac_cpp_err=$ac_c_preproc_warn_flag
11790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11797 if test -z "$ac_cpp_err"; then
11798 ac_header_preproc=yes
11800 echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11803 ac_header_preproc=no
11806 rm -f conftest.err conftest.$ac_ext
11807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11808 echo "${ECHO_T}$ac_header_preproc" >&6; }
11810 # So? What about this header?
11811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11817 ac_header_preproc=yes
11820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11833 ## ------------------------------------ ##
11834 ## Report this to http://llvm.org/bugs/ ##
11835 ## ------------------------------------ ##
11837 ) | sed "s/^/$as_me: WARNING: /" >&2
11840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11843 echo $ECHO_N "(cached) $ECHO_C" >&6
11845 eval "$as_ac_Header=\$ac_header_preproc"
11847 ac_res=`eval echo '${'$as_ac_Header'}'`
11848 { echo "$as_me:$LINENO: result: $ac_res" >&5
11849 echo "${ECHO_T}$ac_res" >&6; }
11852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11853 cat >>confdefs.h <<_ACEOF
11854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11866 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 ac_res=`eval echo '${'$as_ac_Header'}'`
11876 { echo "$as_me:$LINENO: result: $ac_res" >&5
11877 echo "${ECHO_T}$ac_res" >&6; }
11879 # Is the header compilable?
11880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11882 cat >conftest.$ac_ext <<_ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 $ac_includes_default
11889 #include <$ac_header>
11891 rm -f conftest.$ac_objext
11892 if { (ac_try="$ac_compile"
11893 case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898 (eval "$ac_compile") 2>conftest.er1
11900 grep -v '^ *+' conftest.er1 >conftest.err
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } &&
11905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11906 { (case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_try") 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; } &&
11915 { ac_try='test -s conftest.$ac_objext'
11916 { (case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_try") 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 ac_header_compiler=yes
11927 echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11930 ac_header_compiler=no
11933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11935 echo "${ECHO_T}$ac_header_compiler" >&6; }
11937 # Is the header present?
11938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11940 cat >conftest.$ac_ext <<_ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 #include <$ac_header>
11948 if { (ac_try="$ac_cpp conftest.$ac_ext"
11949 case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11956 grep -v '^ *+' conftest.er1 >conftest.err
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } >/dev/null; then
11961 if test -s conftest.err; then
11962 ac_cpp_err=$ac_c_preproc_warn_flag
11963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11970 if test -z "$ac_cpp_err"; then
11971 ac_header_preproc=yes
11973 echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11976 ac_header_preproc=no
11979 rm -f conftest.err conftest.$ac_ext
11980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11981 echo "${ECHO_T}$ac_header_preproc" >&6; }
11983 # So? What about this header?
11984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11990 ac_header_preproc=yes
11993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12006 ## ------------------------------------ ##
12007 ## Report this to http://llvm.org/bugs/ ##
12008 ## ------------------------------------ ##
12010 ) | sed "s/^/$as_me: WARNING: /" >&2
12013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 eval "$as_ac_Header=\$ac_header_preproc"
12020 ac_res=`eval echo '${'$as_ac_Header'}'`
12021 { echo "$as_me:$LINENO: result: $ac_res" >&5
12022 echo "${ECHO_T}$ac_res" >&6; }
12025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12026 cat >>confdefs.h <<_ACEOF
12027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12037 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 ac_res=`eval echo '${'$as_ac_Header'}'`
12047 { echo "$as_me:$LINENO: result: $ac_res" >&5
12048 echo "${ECHO_T}$ac_res" >&6; }
12050 # Is the header compilable?
12051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12053 cat >conftest.$ac_ext <<_ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 $ac_includes_default
12060 #include <$ac_header>
12062 rm -f conftest.$ac_objext
12063 if { (ac_try="$ac_compile"
12064 case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_compile") 2>conftest.er1
12071 grep -v '^ *+' conftest.er1 >conftest.err
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12077 { (case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_try") 2>&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; } &&
12086 { ac_try='test -s conftest.$ac_objext'
12087 { (case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092 (eval "$ac_try") 2>&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
12096 ac_header_compiler=yes
12098 echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12101 ac_header_compiler=no
12104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12106 echo "${ECHO_T}$ac_header_compiler" >&6; }
12108 # Is the header present?
12109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12111 cat >conftest.$ac_ext <<_ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117 #include <$ac_header>
12119 if { (ac_try="$ac_cpp conftest.$ac_ext"
12120 case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12127 grep -v '^ *+' conftest.er1 >conftest.err
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } >/dev/null; then
12132 if test -s conftest.err; then
12133 ac_cpp_err=$ac_c_preproc_warn_flag
12134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12141 if test -z "$ac_cpp_err"; then
12142 ac_header_preproc=yes
12144 echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12147 ac_header_preproc=no
12150 rm -f conftest.err conftest.$ac_ext
12151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12152 echo "${ECHO_T}$ac_header_preproc" >&6; }
12154 # So? What about this header?
12155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12161 ac_header_preproc=yes
12164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12177 ## ------------------------------------ ##
12178 ## Report this to http://llvm.org/bugs/ ##
12179 ## ------------------------------------ ##
12181 ) | sed "s/^/$as_me: WARNING: /" >&2
12184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 eval "$as_ac_Header=\$ac_header_preproc"
12191 ac_res=`eval echo '${'$as_ac_Header'}'`
12192 { echo "$as_me:$LINENO: result: $ac_res" >&5
12193 echo "${ECHO_T}$ac_res" >&6; }
12196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12197 cat >>confdefs.h <<_ACEOF
12198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12206 for ac_header in valgrind/valgrind.h
12208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 ac_res=`eval echo '${'$as_ac_Header'}'`
12216 { echo "$as_me:$LINENO: result: $ac_res" >&5
12217 echo "${ECHO_T}$ac_res" >&6; }
12219 # Is the header compilable?
12220 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12222 cat >conftest.$ac_ext <<_ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 $ac_includes_default
12229 #include <$ac_header>
12231 rm -f conftest.$ac_objext
12232 if { (ac_try="$ac_compile"
12233 case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_compile") 2>conftest.er1
12240 grep -v '^ *+' conftest.er1 >conftest.err
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } &&
12245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12246 { (case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_try") 2>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; } &&
12255 { ac_try='test -s conftest.$ac_objext'
12256 { (case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_try") 2>&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; }; then
12265 ac_header_compiler=yes
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 ac_header_compiler=no
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12275 echo "${ECHO_T}$ac_header_compiler" >&6; }
12277 # Is the header present?
12278 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12280 cat >conftest.$ac_ext <<_ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 #include <$ac_header>
12288 if { (ac_try="$ac_cpp conftest.$ac_ext"
12289 case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12296 grep -v '^ *+' conftest.er1 >conftest.err
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } >/dev/null; then
12301 if test -s conftest.err; then
12302 ac_cpp_err=$ac_c_preproc_warn_flag
12303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12310 if test -z "$ac_cpp_err"; then
12311 ac_header_preproc=yes
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12316 ac_header_preproc=no
12319 rm -f conftest.err conftest.$ac_ext
12320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12321 echo "${ECHO_T}$ac_header_preproc" >&6; }
12323 # So? What about this header?
12324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12330 ac_header_preproc=yes
12333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12346 ## ------------------------------------ ##
12347 ## Report this to http://llvm.org/bugs/ ##
12348 ## ------------------------------------ ##
12350 ) | sed "s/^/$as_me: WARNING: /" >&2
12353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12358 eval "$as_ac_Header=\$ac_header_preproc"
12360 ac_res=`eval echo '${'$as_ac_Header'}'`
12361 { echo "$as_me:$LINENO: result: $ac_res" >&5
12362 echo "${ECHO_T}$ac_res" >&6; }
12365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12366 cat >>confdefs.h <<_ACEOF
12367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12375 for ac_header in fenv.h
12377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 ac_res=`eval echo '${'$as_ac_Header'}'`
12385 { echo "$as_me:$LINENO: result: $ac_res" >&5
12386 echo "${ECHO_T}$ac_res" >&6; }
12388 # Is the header compilable?
12389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12391 cat >conftest.$ac_ext <<_ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12397 $ac_includes_default
12398 #include <$ac_header>
12400 rm -f conftest.$ac_objext
12401 if { (ac_try="$ac_compile"
12402 case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_compile") 2>conftest.er1
12409 grep -v '^ *+' conftest.er1 >conftest.err
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } &&
12414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12415 { (case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_try") 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest.$ac_objext'
12425 { (case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_try") 2>&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
12434 ac_header_compiler=yes
12436 echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12439 ac_header_compiler=no
12442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12444 echo "${ECHO_T}$ac_header_compiler" >&6; }
12446 # Is the header present?
12447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12449 cat >conftest.$ac_ext <<_ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12455 #include <$ac_header>
12457 if { (ac_try="$ac_cpp conftest.$ac_ext"
12458 case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12465 grep -v '^ *+' conftest.er1 >conftest.err
12467 cat conftest.err >&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } >/dev/null; then
12470 if test -s conftest.err; then
12471 ac_cpp_err=$ac_c_preproc_warn_flag
12472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12479 if test -z "$ac_cpp_err"; then
12480 ac_header_preproc=yes
12482 echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12485 ac_header_preproc=no
12488 rm -f conftest.err conftest.$ac_ext
12489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12490 echo "${ECHO_T}$ac_header_preproc" >&6; }
12492 # So? What about this header?
12493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12499 ac_header_preproc=yes
12502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12515 ## ------------------------------------ ##
12516 ## Report this to http://llvm.org/bugs/ ##
12517 ## ------------------------------------ ##
12519 ) | sed "s/^/$as_me: WARNING: /" >&2
12522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12527 eval "$as_ac_Header=\$ac_header_preproc"
12529 ac_res=`eval echo '${'$as_ac_Header'}'`
12530 { echo "$as_me:$LINENO: result: $ac_res" >&5
12531 echo "${ECHO_T}$ac_res" >&6; }
12534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12535 cat >>confdefs.h <<_ACEOF
12536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12543 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12544 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12545 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12548 cat >conftest.$ac_ext <<_ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12559 #ifndef FE_ALL_EXCEPT
12560 char *p = (char *) FE_ALL_EXCEPT;
12568 rm -f conftest.$ac_objext
12569 if { (ac_try="$ac_compile"
12570 case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_compile") 2>conftest.er1
12577 grep -v '^ *+' conftest.er1 >conftest.err
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } &&
12582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12583 { (case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588 (eval "$ac_try") 2>&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; } &&
12592 { ac_try='test -s conftest.$ac_objext'
12593 { (case "(($ac_try" in
12594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12595 *) ac_try_echo=$ac_try;;
12597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12598 (eval "$ac_try") 2>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; }; then
12602 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12604 echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12607 ac_cv_have_decl_FE_ALL_EXCEPT=no
12610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12613 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12614 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12616 cat >>confdefs.h <<_ACEOF
12617 #define HAVE_DECL_FE_ALL_EXCEPT 1
12622 cat >>confdefs.h <<_ACEOF
12623 #define HAVE_DECL_FE_ALL_EXCEPT 0
12628 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12629 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12630 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 cat >conftest.$ac_ext <<_ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12645 char *p = (char *) FE_INEXACT;
12653 rm -f conftest.$ac_objext
12654 if { (ac_try="$ac_compile"
12655 case "(($ac_try" in
12656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657 *) ac_try_echo=$ac_try;;
12659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12660 (eval "$ac_compile") 2>conftest.er1
12662 grep -v '^ *+' conftest.er1 >conftest.err
12664 cat conftest.err >&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } &&
12667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12668 { (case "(($ac_try" in
12669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12670 *) ac_try_echo=$ac_try;;
12672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12673 (eval "$ac_try") 2>&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; } &&
12677 { ac_try='test -s conftest.$ac_objext'
12678 { (case "(($ac_try" in
12679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680 *) ac_try_echo=$ac_try;;
12682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683 (eval "$ac_try") 2>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12687 ac_cv_have_decl_FE_INEXACT=yes
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12692 ac_cv_have_decl_FE_INEXACT=no
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12698 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12699 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12701 cat >>confdefs.h <<_ACEOF
12702 #define HAVE_DECL_FE_INEXACT 1
12707 cat >>confdefs.h <<_ACEOF
12708 #define HAVE_DECL_FE_INEXACT 0
12715 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12717 for ac_header in pthread.h
12719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 ac_res=`eval echo '${'$as_ac_Header'}'`
12727 { echo "$as_me:$LINENO: result: $ac_res" >&5
12728 echo "${ECHO_T}$ac_res" >&6; }
12730 # Is the header compilable?
12731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12733 cat >conftest.$ac_ext <<_ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12739 $ac_includes_default
12740 #include <$ac_header>
12742 rm -f conftest.$ac_objext
12743 if { (ac_try="$ac_compile"
12744 case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_compile") 2>conftest.er1
12751 grep -v '^ *+' conftest.er1 >conftest.err
12753 cat conftest.err >&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12757 { (case "(($ac_try" in
12758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759 *) ac_try_echo=$ac_try;;
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762 (eval "$ac_try") 2>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; } &&
12766 { ac_try='test -s conftest.$ac_objext'
12767 { (case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_try") 2>&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
12776 ac_header_compiler=yes
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12781 ac_header_compiler=no
12784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12786 echo "${ECHO_T}$ac_header_compiler" >&6; }
12788 # Is the header present?
12789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12791 cat >conftest.$ac_ext <<_ACEOF
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h. */
12797 #include <$ac_header>
12799 if { (ac_try="$ac_cpp conftest.$ac_ext"
12800 case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12807 grep -v '^ *+' conftest.er1 >conftest.err
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } >/dev/null; then
12812 if test -s conftest.err; then
12813 ac_cpp_err=$ac_c_preproc_warn_flag
12814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12821 if test -z "$ac_cpp_err"; then
12822 ac_header_preproc=yes
12824 echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12827 ac_header_preproc=no
12830 rm -f conftest.err conftest.$ac_ext
12831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12832 echo "${ECHO_T}$ac_header_preproc" >&6; }
12834 # So? What about this header?
12835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12841 ac_header_preproc=yes
12844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12857 ## ------------------------------------ ##
12858 ## Report this to http://llvm.org/bugs/ ##
12859 ## ------------------------------------ ##
12861 ) | sed "s/^/$as_me: WARNING: /" >&2
12864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 eval "$as_ac_Header=\$ac_header_preproc"
12871 ac_res=`eval echo '${'$as_ac_Header'}'`
12872 { echo "$as_me:$LINENO: result: $ac_res" >&5
12873 echo "${ECHO_T}$ac_res" >&6; }
12876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12877 cat >>confdefs.h <<_ACEOF
12878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12893 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12895 for ac_header in zlib.h
12897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 ac_res=`eval echo '${'$as_ac_Header'}'`
12905 { echo "$as_me:$LINENO: result: $ac_res" >&5
12906 echo "${ECHO_T}$ac_res" >&6; }
12908 # Is the header compilable?
12909 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12911 cat >conftest.$ac_ext <<_ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h. */
12917 $ac_includes_default
12918 #include <$ac_header>
12920 rm -f conftest.$ac_objext
12921 if { (ac_try="$ac_compile"
12922 case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_compile") 2>conftest.er1
12929 grep -v '^ *+' conftest.er1 >conftest.err
12931 cat conftest.err >&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } &&
12934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12935 { (case "(($ac_try" in
12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937 *) ac_try_echo=$ac_try;;
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940 (eval "$ac_try") 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try='test -s conftest.$ac_objext'
12945 { (case "(($ac_try" in
12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947 *) ac_try_echo=$ac_try;;
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950 (eval "$ac_try") 2>&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12954 ac_header_compiler=yes
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12959 ac_header_compiler=no
12962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12964 echo "${ECHO_T}$ac_header_compiler" >&6; }
12966 # Is the header present?
12967 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12969 cat >conftest.$ac_ext <<_ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12975 #include <$ac_header>
12977 if { (ac_try="$ac_cpp conftest.$ac_ext"
12978 case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12985 grep -v '^ *+' conftest.er1 >conftest.err
12987 cat conftest.err >&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } >/dev/null; then
12990 if test -s conftest.err; then
12991 ac_cpp_err=$ac_c_preproc_warn_flag
12992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12999 if test -z "$ac_cpp_err"; then
13000 ac_header_preproc=yes
13002 echo "$as_me: failed program was:" >&5
13003 sed 's/^/| /' conftest.$ac_ext >&5
13005 ac_header_preproc=no
13008 rm -f conftest.err conftest.$ac_ext
13009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13010 echo "${ECHO_T}$ac_header_preproc" >&6; }
13012 # So? What about this header?
13013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13019 ac_header_preproc=yes
13022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13035 ## ------------------------------------ ##
13036 ## Report this to http://llvm.org/bugs/ ##
13037 ## ------------------------------------ ##
13039 ) | sed "s/^/$as_me: WARNING: /" >&2
13042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13047 eval "$as_ac_Header=\$ac_header_preproc"
13049 ac_res=`eval echo '${'$as_ac_Header'}'`
13050 { echo "$as_me:$LINENO: result: $ac_res" >&5
13051 echo "${ECHO_T}$ac_res" >&6; }
13054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13055 cat >>confdefs.h <<_ACEOF
13056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13072 if test "$llvm_cv_enable_libffi" = "yes" ; then
13075 for ac_header in ffi.h ffi/ffi.h
13077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 ac_res=`eval echo '${'$as_ac_Header'}'`
13085 { echo "$as_me:$LINENO: result: $ac_res" >&5
13086 echo "${ECHO_T}$ac_res" >&6; }
13088 # Is the header compilable?
13089 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13091 cat >conftest.$ac_ext <<_ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13097 $ac_includes_default
13098 #include <$ac_header>
13100 rm -f conftest.$ac_objext
13101 if { (ac_try="$ac_compile"
13102 case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_compile") 2>conftest.er1
13109 grep -v '^ *+' conftest.er1 >conftest.err
13111 cat conftest.err >&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } &&
13114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13115 { (case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_try") 2>&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; } &&
13124 { ac_try='test -s conftest.$ac_objext'
13125 { (case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_try") 2>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; }; then
13134 ac_header_compiler=yes
13136 echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13139 ac_header_compiler=no
13142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13144 echo "${ECHO_T}$ac_header_compiler" >&6; }
13146 # Is the header present?
13147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13149 cat >conftest.$ac_ext <<_ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 #include <$ac_header>
13157 if { (ac_try="$ac_cpp conftest.$ac_ext"
13158 case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13165 grep -v '^ *+' conftest.er1 >conftest.err
13167 cat conftest.err >&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } >/dev/null; then
13170 if test -s conftest.err; then
13171 ac_cpp_err=$ac_c_preproc_warn_flag
13172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13179 if test -z "$ac_cpp_err"; then
13180 ac_header_preproc=yes
13182 echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13185 ac_header_preproc=no
13188 rm -f conftest.err conftest.$ac_ext
13189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13190 echo "${ECHO_T}$ac_header_preproc" >&6; }
13192 # So? What about this header?
13193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13199 ac_header_preproc=yes
13202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13215 ## ------------------------------------ ##
13216 ## Report this to http://llvm.org/bugs/ ##
13217 ## ------------------------------------ ##
13219 ) | sed "s/^/$as_me: WARNING: /" >&2
13222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 eval "$as_ac_Header=\$ac_header_preproc"
13229 ac_res=`eval echo '${'$as_ac_Header'}'`
13230 { echo "$as_me:$LINENO: result: $ac_res" >&5
13231 echo "${ECHO_T}$ac_res" >&6; }
13234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13235 cat >>confdefs.h <<_ACEOF
13236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13246 for ac_header in CrashReporterClient.h
13248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 ac_res=`eval echo '${'$as_ac_Header'}'`
13256 { echo "$as_me:$LINENO: result: $ac_res" >&5
13257 echo "${ECHO_T}$ac_res" >&6; }
13259 # Is the header compilable?
13260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13262 cat >conftest.$ac_ext <<_ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h. */
13268 $ac_includes_default
13269 #include <$ac_header>
13271 rm -f conftest.$ac_objext
13272 if { (ac_try="$ac_compile"
13273 case "(($ac_try" in
13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275 *) ac_try_echo=$ac_try;;
13277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278 (eval "$ac_compile") 2>conftest.er1
13280 grep -v '^ *+' conftest.er1 >conftest.err
13282 cat conftest.err >&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); } &&
13285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13286 { (case "(($ac_try" in
13287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288 *) ac_try_echo=$ac_try;;
13290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13291 (eval "$ac_try") 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; } &&
13295 { ac_try='test -s conftest.$ac_objext'
13296 { (case "(($ac_try" in
13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301 (eval "$ac_try") 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
13305 ac_header_compiler=yes
13307 echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13310 ac_header_compiler=no
13313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13315 echo "${ECHO_T}$ac_header_compiler" >&6; }
13317 # Is the header present?
13318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13320 cat >conftest.$ac_ext <<_ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13326 #include <$ac_header>
13328 if { (ac_try="$ac_cpp conftest.$ac_ext"
13329 case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13336 grep -v '^ *+' conftest.er1 >conftest.err
13338 cat conftest.err >&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } >/dev/null; then
13341 if test -s conftest.err; then
13342 ac_cpp_err=$ac_c_preproc_warn_flag
13343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13350 if test -z "$ac_cpp_err"; then
13351 ac_header_preproc=yes
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13356 ac_header_preproc=no
13359 rm -f conftest.err conftest.$ac_ext
13360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13361 echo "${ECHO_T}$ac_header_preproc" >&6; }
13363 # So? What about this header?
13364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13370 ac_header_preproc=yes
13373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13386 ## ------------------------------------ ##
13387 ## Report this to http://llvm.org/bugs/ ##
13388 ## ------------------------------------ ##
13390 ) | sed "s/^/$as_me: WARNING: /" >&2
13393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 eval "$as_ac_Header=\$ac_header_preproc"
13400 ac_res=`eval echo '${'$as_ac_Header'}'`
13401 { echo "$as_me:$LINENO: result: $ac_res" >&5
13402 echo "${ECHO_T}$ac_res" >&6; }
13405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13406 cat >>confdefs.h <<_ACEOF
13407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13415 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13416 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13417 cat >conftest.$ac_ext <<_ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h. */
13425 extern const char *__crashreporter_info__;
13427 __crashreporter_info__ = "test";
13433 rm -f conftest.$ac_objext conftest$ac_exeext
13434 if { (ac_try="$ac_link"
13435 case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_link") 2>conftest.er1
13442 grep -v '^ *+' conftest.er1 >conftest.err
13444 cat conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
13447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13448 { (case "(($ac_try" in
13449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450 *) ac_try_echo=$ac_try;;
13452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13453 (eval "$ac_try") 2>&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; } &&
13457 { ac_try='test -s conftest$ac_exeext'
13458 { (case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_try") 2>&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; }; then
13468 { echo "$as_me:$LINENO: result: yes" >&5
13469 echo "${ECHO_T}yes" >&6; }
13471 cat >>confdefs.h <<\_ACEOF
13472 #define HAVE_CRASHREPORTER_INFO 1
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13481 { echo "$as_me:$LINENO: result: no" >&5
13482 echo "${ECHO_T}no" >&6; }
13484 cat >>confdefs.h <<\_ACEOF
13485 #define HAVE_CRASHREPORTER_INFO 0
13491 rm -f core conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
13496 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13497 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13498 if test "${ac_cv_huge_val_sanity+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13503 ac_cpp='$CXXCPP $CPPFLAGS'
13504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13508 ac_save_CXXFLAGS=$CXXFLAGS
13509 CXXFLAGS="$CXXFLAGS -pedantic"
13510 if test "$cross_compiling" = yes; then
13511 ac_cv_huge_val_sanity=yes
13513 cat >conftest.$ac_ext <<_ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13523 double x = HUGE_VAL; return x != x;
13528 rm -f conftest$ac_exeext
13529 if { (ac_try="$ac_link"
13530 case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_link") 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13539 { (case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_try") 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_cv_huge_val_sanity=yes
13550 echo "$as_me: program exited with status $ac_status" >&5
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13554 ( exit $ac_status )
13555 ac_cv_huge_val_sanity=no
13557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13561 CXXFLAGS=$ac_save_CXXFLAGS
13563 ac_cpp='$CPP $CPPFLAGS'
13564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13570 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13571 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13572 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13575 { echo "$as_me:$LINENO: checking for pid_t" >&5
13576 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13577 if test "${ac_cv_type_pid_t+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 cat >conftest.$ac_ext <<_ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h. */
13586 $ac_includes_default
13587 typedef pid_t ac__type_new_;
13591 if ((ac__type_new_ *) 0)
13593 if (sizeof (ac__type_new_))
13599 rm -f conftest.$ac_objext
13600 if { (ac_try="$ac_compile"
13601 case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_compile") 2>conftest.er1
13608 grep -v '^ *+' conftest.er1 >conftest.err
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13614 { (case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_try") 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; } &&
13623 { ac_try='test -s conftest.$ac_objext'
13624 { (case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629 (eval "$ac_try") 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 ac_cv_type_pid_t=yes
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13638 ac_cv_type_pid_t=no
13641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13644 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13645 if test $ac_cv_type_pid_t = yes; then
13649 cat >>confdefs.h <<_ACEOF
13655 { echo "$as_me:$LINENO: checking for size_t" >&5
13656 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13657 if test "${ac_cv_type_size_t+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 cat >conftest.$ac_ext <<_ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13666 $ac_includes_default
13667 typedef size_t ac__type_new_;
13671 if ((ac__type_new_ *) 0)
13673 if (sizeof (ac__type_new_))
13679 rm -f conftest.$ac_objext
13680 if { (ac_try="$ac_compile"
13681 case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_compile") 2>conftest.er1
13688 grep -v '^ *+' conftest.er1 >conftest.err
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13694 { (case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_try") 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest.$ac_objext'
13704 { (case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 ac_cv_type_size_t=yes
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13718 ac_cv_type_size_t=no
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13723 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13724 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13725 if test $ac_cv_type_size_t = yes; then
13729 cat >>confdefs.h <<_ACEOF
13730 #define size_t unsigned int
13736 cat >>confdefs.h <<_ACEOF
13737 #define RETSIGTYPE void
13740 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13741 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13742 if test "${ac_cv_struct_tm+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 cat >conftest.$ac_ext <<_ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751 #include <sys/types.h>
13757 struct tm *tp; tp->tm_sec;
13762 rm -f conftest.$ac_objext
13763 if { (ac_try="$ac_compile"
13764 case "(($ac_try" in
13765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766 *) ac_try_echo=$ac_try;;
13768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13769 (eval "$ac_compile") 2>conftest.er1
13771 grep -v '^ *+' conftest.er1 >conftest.err
13773 cat conftest.err >&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); } &&
13776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13777 { (case "(($ac_try" in
13778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779 *) ac_try_echo=$ac_try;;
13781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782 (eval "$ac_try") 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; } &&
13786 { ac_try='test -s conftest.$ac_objext'
13787 { (case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_try") 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_cv_struct_tm=time.h
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13801 ac_cv_struct_tm=sys/time.h
13804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13807 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13808 if test $ac_cv_struct_tm = sys/time.h; then
13810 cat >>confdefs.h <<\_ACEOF
13811 #define TM_IN_SYS_TIME 1
13816 { echo "$as_me:$LINENO: checking for int64_t" >&5
13817 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13818 if test "${ac_cv_type_int64_t+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 cat >conftest.$ac_ext <<_ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 $ac_includes_default
13828 typedef int64_t ac__type_new_;
13832 if ((ac__type_new_ *) 0)
13834 if (sizeof (ac__type_new_))
13840 rm -f conftest.$ac_objext
13841 if { (ac_try="$ac_compile"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_compile") 2>conftest.er1
13849 grep -v '^ *+' conftest.er1 >conftest.err
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855 { (case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_try") 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest.$ac_objext'
13865 { (case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_try") 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_type_int64_t=yes
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 ac_cv_type_int64_t=no
13882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13884 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13885 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13886 if test $ac_cv_type_int64_t = yes; then
13888 cat >>confdefs.h <<_ACEOF
13889 #define HAVE_INT64_T 1
13894 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13895 echo "$as_me: error: Type int64_t required but not found" >&2;}
13896 { (exit 1); exit 1; }; }
13899 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13900 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13901 if test "${ac_cv_type_uint64_t+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 cat >conftest.$ac_ext <<_ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13910 $ac_includes_default
13911 typedef uint64_t ac__type_new_;
13915 if ((ac__type_new_ *) 0)
13917 if (sizeof (ac__type_new_))
13923 rm -f conftest.$ac_objext
13924 if { (ac_try="$ac_compile"
13925 case "(($ac_try" in
13926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927 *) ac_try_echo=$ac_try;;
13929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930 (eval "$ac_compile") 2>conftest.er1
13932 grep -v '^ *+' conftest.er1 >conftest.err
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13938 { (case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_try") 2>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; } &&
13947 { ac_try='test -s conftest.$ac_objext'
13948 { (case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_try") 2>&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }; then
13957 ac_cv_type_uint64_t=yes
13959 echo "$as_me: failed program was:" >&5
13960 sed 's/^/| /' conftest.$ac_ext >&5
13962 ac_cv_type_uint64_t=no
13965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13967 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13968 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13969 if test $ac_cv_type_uint64_t = yes; then
13971 cat >>confdefs.h <<_ACEOF
13972 #define HAVE_UINT64_T 1
13977 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13978 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13979 if test "${ac_cv_type_u_int64_t+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 cat >conftest.$ac_ext <<_ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 $ac_includes_default
13989 typedef u_int64_t ac__type_new_;
13993 if ((ac__type_new_ *) 0)
13995 if (sizeof (ac__type_new_))
14001 rm -f conftest.$ac_objext
14002 if { (ac_try="$ac_compile"
14003 case "(($ac_try" in
14004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005 *) ac_try_echo=$ac_try;;
14007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008 (eval "$ac_compile") 2>conftest.er1
14010 grep -v '^ *+' conftest.er1 >conftest.err
14012 cat conftest.err >&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } &&
14015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14016 { (case "(($ac_try" in
14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021 (eval "$ac_try") 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; } &&
14025 { ac_try='test -s conftest.$ac_objext'
14026 { (case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_try") 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; }; then
14035 ac_cv_type_u_int64_t=yes
14037 echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14040 ac_cv_type_u_int64_t=no
14043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14045 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14046 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14047 if test $ac_cv_type_u_int64_t = yes; then
14049 cat >>confdefs.h <<_ACEOF
14050 #define HAVE_U_INT64_T 1
14055 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14056 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14057 { (exit 1); exit 1; }; }
14071 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14079 cat >conftest.$ac_ext <<_ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h. */
14085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14087 #define $ac_func innocuous_$ac_func
14089 /* System header to define __stub macros and hopefully few prototypes,
14090 which can conflict with char $ac_func (); below.
14091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14092 <limits.h> exists even on freestanding compilers. */
14095 # include <limits.h>
14097 # include <assert.h>
14102 /* Override any GCC internal prototype to avoid an error.
14103 Use char because int might match the return type of a GCC
14104 builtin and then its argument prototype would still apply. */
14109 /* The GNU C library defines this for functions which it implements
14110 to always fail with ENOSYS. Some functions are actually named
14111 something starting with __ and the normal name is an alias. */
14112 #if defined __stub_$ac_func || defined __stub___$ac_func
14119 return $ac_func ();
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (ac_try="$ac_link"
14126 case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_link") 2>conftest.er1
14133 grep -v '^ *+' conftest.er1 >conftest.err
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
14138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14139 { (case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144 (eval "$ac_try") 2>&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
14148 { ac_try='test -s conftest$ac_exeext'
14149 { (case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_try") 2>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
14158 eval "$as_ac_var=yes"
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14163 eval "$as_ac_var=no"
14166 rm -f core conftest.err conftest.$ac_objext \
14167 conftest$ac_exeext conftest.$ac_ext
14169 ac_res=`eval echo '${'$as_ac_var'}'`
14170 { echo "$as_me:$LINENO: result: $ac_res" >&5
14171 echo "${ECHO_T}$ac_res" >&6; }
14172 if test `eval echo '${'$as_ac_var'}'` = yes; then
14173 cat >>confdefs.h <<_ACEOF
14174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14184 for ac_func in powf fmodf strtof round
14186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 cat >conftest.$ac_ext <<_ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h. */
14198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14200 #define $ac_func innocuous_$ac_func
14202 /* System header to define __stub macros and hopefully few prototypes,
14203 which can conflict with char $ac_func (); below.
14204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14205 <limits.h> exists even on freestanding compilers. */
14208 # include <limits.h>
14210 # include <assert.h>
14215 /* Override any GCC internal prototype to avoid an error.
14216 Use char because int might match the return type of a GCC
14217 builtin and then its argument prototype would still apply. */
14222 /* The GNU C library defines this for functions which it implements
14223 to always fail with ENOSYS. Some functions are actually named
14224 something starting with __ and the normal name is an alias. */
14225 #if defined __stub_$ac_func || defined __stub___$ac_func
14232 return $ac_func ();
14237 rm -f conftest.$ac_objext conftest$ac_exeext
14238 if { (ac_try="$ac_link"
14239 case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_link") 2>conftest.er1
14246 grep -v '^ *+' conftest.er1 >conftest.err
14248 cat conftest.err >&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } &&
14251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14252 { (case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_try") 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; } &&
14261 { ac_try='test -s conftest$ac_exeext'
14262 { (case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_try") 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 eval "$as_ac_var=yes"
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 eval "$as_ac_var=no"
14279 rm -f core conftest.err conftest.$ac_objext \
14280 conftest$ac_exeext conftest.$ac_ext
14282 ac_res=`eval echo '${'$as_ac_var'}'`
14283 { echo "$as_me:$LINENO: result: $ac_res" >&5
14284 echo "${ECHO_T}$ac_res" >&6; }
14285 if test `eval echo '${'$as_ac_var'}'` = yes; then
14286 cat >>confdefs.h <<_ACEOF
14287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14298 for ac_func in log log2 log10 exp exp2
14300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 cat >conftest.$ac_ext <<_ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14314 #define $ac_func innocuous_$ac_func
14316 /* System header to define __stub macros and hopefully few prototypes,
14317 which can conflict with char $ac_func (); below.
14318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14319 <limits.h> exists even on freestanding compilers. */
14322 # include <limits.h>
14324 # include <assert.h>
14329 /* Override any GCC internal prototype to avoid an error.
14330 Use char because int might match the return type of a GCC
14331 builtin and then its argument prototype would still apply. */
14336 /* The GNU C library defines this for functions which it implements
14337 to always fail with ENOSYS. Some functions are actually named
14338 something starting with __ and the normal name is an alias. */
14339 #if defined __stub_$ac_func || defined __stub___$ac_func
14346 return $ac_func ();
14351 rm -f conftest.$ac_objext conftest$ac_exeext
14352 if { (ac_try="$ac_link"
14353 case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_link") 2>conftest.er1
14360 grep -v '^ *+' conftest.er1 >conftest.err
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } &&
14365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14366 { (case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371 (eval "$ac_try") 2>&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; } &&
14375 { ac_try='test -s conftest$ac_exeext'
14376 { (case "(($ac_try" in
14377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381 (eval "$ac_try") 2>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; }; then
14385 eval "$as_ac_var=yes"
14387 echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14390 eval "$as_ac_var=no"
14393 rm -f core conftest.err conftest.$ac_objext \
14394 conftest$ac_exeext conftest.$ac_ext
14396 ac_res=`eval echo '${'$as_ac_var'}'`
14397 { echo "$as_me:$LINENO: result: $ac_res" >&5
14398 echo "${ECHO_T}$ac_res" >&6; }
14399 if test `eval echo '${'$as_ac_var'}'` = yes; then
14400 cat >>confdefs.h <<_ACEOF
14401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14412 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 cat >conftest.$ac_ext <<_ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14428 #define $ac_func innocuous_$ac_func
14430 /* System header to define __stub macros and hopefully few prototypes,
14431 which can conflict with char $ac_func (); below.
14432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14433 <limits.h> exists even on freestanding compilers. */
14436 # include <limits.h>
14438 # include <assert.h>
14443 /* Override any GCC internal prototype to avoid an error.
14444 Use char because int might match the return type of a GCC
14445 builtin and then its argument prototype would still apply. */
14450 /* The GNU C library defines this for functions which it implements
14451 to always fail with ENOSYS. Some functions are actually named
14452 something starting with __ and the normal name is an alias. */
14453 #if defined __stub_$ac_func || defined __stub___$ac_func
14460 return $ac_func ();
14465 rm -f conftest.$ac_objext conftest$ac_exeext
14466 if { (ac_try="$ac_link"
14467 case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_link") 2>conftest.er1
14474 grep -v '^ *+' conftest.er1 >conftest.err
14476 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
14479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14480 { (case "(($ac_try" in
14481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482 *) ac_try_echo=$ac_try;;
14484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485 (eval "$ac_try") 2>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; } &&
14489 { ac_try='test -s conftest$ac_exeext'
14490 { (case "(($ac_try" in
14491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14492 *) ac_try_echo=$ac_try;;
14494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14495 (eval "$ac_try") 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 eval "$as_ac_var=yes"
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 eval "$as_ac_var=no"
14507 rm -f core conftest.err conftest.$ac_objext \
14508 conftest$ac_exeext conftest.$ac_ext
14510 ac_res=`eval echo '${'$as_ac_var'}'`
14511 { echo "$as_me:$LINENO: result: $ac_res" >&5
14512 echo "${ECHO_T}$ac_res" >&6; }
14513 if test `eval echo '${'$as_ac_var'}'` = yes; then
14514 cat >>confdefs.h <<_ACEOF
14515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14524 for ac_func in isatty mkdtemp mkstemp
14526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14532 cat >conftest.$ac_ext <<_ACEOF
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h. */
14538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14540 #define $ac_func innocuous_$ac_func
14542 /* System header to define __stub macros and hopefully few prototypes,
14543 which can conflict with char $ac_func (); below.
14544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14545 <limits.h> exists even on freestanding compilers. */
14548 # include <limits.h>
14550 # include <assert.h>
14555 /* Override any GCC internal prototype to avoid an error.
14556 Use char because int might match the return type of a GCC
14557 builtin and then its argument prototype would still apply. */
14562 /* The GNU C library defines this for functions which it implements
14563 to always fail with ENOSYS. Some functions are actually named
14564 something starting with __ and the normal name is an alias. */
14565 #if defined __stub_$ac_func || defined __stub___$ac_func
14572 return $ac_func ();
14577 rm -f conftest.$ac_objext conftest$ac_exeext
14578 if { (ac_try="$ac_link"
14579 case "(($ac_try" in
14580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581 *) ac_try_echo=$ac_try;;
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584 (eval "$ac_link") 2>conftest.er1
14586 grep -v '^ *+' conftest.er1 >conftest.err
14588 cat conftest.err >&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
14591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14592 { (case "(($ac_try" in
14593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594 *) ac_try_echo=$ac_try;;
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_try") 2>&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }; } &&
14601 { ac_try='test -s conftest$ac_exeext'
14602 { (case "(($ac_try" in
14603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14604 *) ac_try_echo=$ac_try;;
14606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14607 (eval "$ac_try") 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14611 eval "$as_ac_var=yes"
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14616 eval "$as_ac_var=no"
14619 rm -f core conftest.err conftest.$ac_objext \
14620 conftest$ac_exeext conftest.$ac_ext
14622 ac_res=`eval echo '${'$as_ac_var'}'`
14623 { echo "$as_me:$LINENO: result: $ac_res" >&5
14624 echo "${ECHO_T}$ac_res" >&6; }
14625 if test `eval echo '${'$as_ac_var'}'` = yes; then
14626 cat >>confdefs.h <<_ACEOF
14627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14639 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14647 cat >conftest.$ac_ext <<_ACEOF
14650 cat confdefs.h >>conftest.$ac_ext
14651 cat >>conftest.$ac_ext <<_ACEOF
14652 /* end confdefs.h. */
14653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14655 #define $ac_func innocuous_$ac_func
14657 /* System header to define __stub macros and hopefully few prototypes,
14658 which can conflict with char $ac_func (); below.
14659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14660 <limits.h> exists even on freestanding compilers. */
14663 # include <limits.h>
14665 # include <assert.h>
14670 /* Override any GCC internal prototype to avoid an error.
14671 Use char because int might match the return type of a GCC
14672 builtin and then its argument prototype would still apply. */
14677 /* The GNU C library defines this for functions which it implements
14678 to always fail with ENOSYS. Some functions are actually named
14679 something starting with __ and the normal name is an alias. */
14680 #if defined __stub_$ac_func || defined __stub___$ac_func
14687 return $ac_func ();
14692 rm -f conftest.$ac_objext conftest$ac_exeext
14693 if { (ac_try="$ac_link"
14694 case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699 (eval "$ac_link") 2>conftest.er1
14701 grep -v '^ *+' conftest.er1 >conftest.err
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
14706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14707 { (case "(($ac_try" in
14708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709 *) ac_try_echo=$ac_try;;
14711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712 (eval "$ac_try") 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try='test -s conftest$ac_exeext'
14717 { (case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_try") 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14726 eval "$as_ac_var=yes"
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14731 eval "$as_ac_var=no"
14734 rm -f core conftest.err conftest.$ac_objext \
14735 conftest$ac_exeext conftest.$ac_ext
14737 ac_res=`eval echo '${'$as_ac_var'}'`
14738 { echo "$as_me:$LINENO: result: $ac_res" >&5
14739 echo "${ECHO_T}$ac_res" >&6; }
14740 if test `eval echo '${'$as_ac_var'}'` = yes; then
14741 cat >>confdefs.h <<_ACEOF
14742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14751 for ac_func in strerror strerror_r setenv
14753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14759 cat >conftest.$ac_ext <<_ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h. */
14765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14767 #define $ac_func innocuous_$ac_func
14769 /* System header to define __stub macros and hopefully few prototypes,
14770 which can conflict with char $ac_func (); below.
14771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14772 <limits.h> exists even on freestanding compilers. */
14775 # include <limits.h>
14777 # include <assert.h>
14782 /* Override any GCC internal prototype to avoid an error.
14783 Use char because int might match the return type of a GCC
14784 builtin and then its argument prototype would still apply. */
14789 /* The GNU C library defines this for functions which it implements
14790 to always fail with ENOSYS. Some functions are actually named
14791 something starting with __ and the normal name is an alias. */
14792 #if defined __stub_$ac_func || defined __stub___$ac_func
14799 return $ac_func ();
14804 rm -f conftest.$ac_objext conftest$ac_exeext
14805 if { (ac_try="$ac_link"
14806 case "(($ac_try" in
14807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808 *) ac_try_echo=$ac_try;;
14810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811 (eval "$ac_link") 2>conftest.er1
14813 grep -v '^ *+' conftest.er1 >conftest.err
14815 cat conftest.err >&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } &&
14818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14819 { (case "(($ac_try" in
14820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_try") 2>&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; } &&
14828 { ac_try='test -s conftest$ac_exeext'
14829 { (case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_try") 2>&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; }; then
14838 eval "$as_ac_var=yes"
14840 echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14843 eval "$as_ac_var=no"
14846 rm -f core conftest.err conftest.$ac_objext \
14847 conftest$ac_exeext conftest.$ac_ext
14849 ac_res=`eval echo '${'$as_ac_var'}'`
14850 { echo "$as_me:$LINENO: result: $ac_res" >&5
14851 echo "${ECHO_T}$ac_res" >&6; }
14852 if test `eval echo '${'$as_ac_var'}'` = yes; then
14853 cat >>confdefs.h <<_ACEOF
14854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14864 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14870 echo $ECHO_N "(cached) $ECHO_C" >&6
14872 cat >conftest.$ac_ext <<_ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14880 #define $ac_func innocuous_$ac_func
14882 /* System header to define __stub macros and hopefully few prototypes,
14883 which can conflict with char $ac_func (); below.
14884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14885 <limits.h> exists even on freestanding compilers. */
14888 # include <limits.h>
14890 # include <assert.h>
14895 /* Override any GCC internal prototype to avoid an error.
14896 Use char because int might match the return type of a GCC
14897 builtin and then its argument prototype would still apply. */
14902 /* The GNU C library defines this for functions which it implements
14903 to always fail with ENOSYS. Some functions are actually named
14904 something starting with __ and the normal name is an alias. */
14905 #if defined __stub_$ac_func || defined __stub___$ac_func
14912 return $ac_func ();
14917 rm -f conftest.$ac_objext conftest$ac_exeext
14918 if { (ac_try="$ac_link"
14919 case "(($ac_try" in
14920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921 *) ac_try_echo=$ac_try;;
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924 (eval "$ac_link") 2>conftest.er1
14926 grep -v '^ *+' conftest.er1 >conftest.err
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } &&
14931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14932 { (case "(($ac_try" in
14933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934 *) ac_try_echo=$ac_try;;
14936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14937 (eval "$ac_try") 2>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; } &&
14941 { ac_try='test -s conftest$ac_exeext'
14942 { (case "(($ac_try" in
14943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944 *) ac_try_echo=$ac_try;;
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947 (eval "$ac_try") 2>&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }; then
14951 eval "$as_ac_var=yes"
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14956 eval "$as_ac_var=no"
14959 rm -f core conftest.err conftest.$ac_objext \
14960 conftest$ac_exeext conftest.$ac_ext
14962 ac_res=`eval echo '${'$as_ac_var'}'`
14963 { echo "$as_me:$LINENO: result: $ac_res" >&5
14964 echo "${ECHO_T}$ac_res" >&6; }
14965 if test `eval echo '${'$as_ac_var'}'` = yes; then
14966 cat >>confdefs.h <<_ACEOF
14967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14978 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14986 cat >conftest.$ac_ext <<_ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14994 #define $ac_func innocuous_$ac_func
14996 /* System header to define __stub macros and hopefully few prototypes,
14997 which can conflict with char $ac_func (); below.
14998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14999 <limits.h> exists even on freestanding compilers. */
15002 # include <limits.h>
15004 # include <assert.h>
15009 /* Override any GCC internal prototype to avoid an error.
15010 Use char because int might match the return type of a GCC
15011 builtin and then its argument prototype would still apply. */
15016 /* The GNU C library defines this for functions which it implements
15017 to always fail with ENOSYS. Some functions are actually named
15018 something starting with __ and the normal name is an alias. */
15019 #if defined __stub_$ac_func || defined __stub___$ac_func
15026 return $ac_func ();
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (ac_try="$ac_link"
15033 case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_link") 2>conftest.er1
15040 grep -v '^ *+' conftest.er1 >conftest.err
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15046 { (case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_try") 2>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; } &&
15055 { ac_try='test -s conftest$ac_exeext'
15056 { (case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061 (eval "$ac_try") 2>&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; }; then
15065 eval "$as_ac_var=yes"
15067 echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15070 eval "$as_ac_var=no"
15073 rm -f core conftest.err conftest.$ac_objext \
15074 conftest$ac_exeext conftest.$ac_ext
15076 ac_res=`eval echo '${'$as_ac_var'}'`
15077 { echo "$as_me:$LINENO: result: $ac_res" >&5
15078 echo "${ECHO_T}$ac_res" >&6; }
15079 if test `eval echo '${'$as_ac_var'}'` = yes; then
15080 cat >>confdefs.h <<_ACEOF
15081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15089 for ac_func in futimes futimens
15091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15097 cat >conftest.$ac_ext <<_ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15105 #define $ac_func innocuous_$ac_func
15107 /* System header to define __stub macros and hopefully few prototypes,
15108 which can conflict with char $ac_func (); below.
15109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15110 <limits.h> exists even on freestanding compilers. */
15113 # include <limits.h>
15115 # include <assert.h>
15120 /* Override any GCC internal prototype to avoid an error.
15121 Use char because int might match the return type of a GCC
15122 builtin and then its argument prototype would still apply. */
15127 /* The GNU C library defines this for functions which it implements
15128 to always fail with ENOSYS. Some functions are actually named
15129 something starting with __ and the normal name is an alias. */
15130 #if defined __stub_$ac_func || defined __stub___$ac_func
15137 return $ac_func ();
15142 rm -f conftest.$ac_objext conftest$ac_exeext
15143 if { (ac_try="$ac_link"
15144 case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_link") 2>conftest.er1
15151 grep -v '^ *+' conftest.er1 >conftest.err
15153 cat conftest.err >&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } &&
15156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15157 { (case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_try") 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; } &&
15166 { ac_try='test -s conftest$ac_exeext'
15167 { (case "(($ac_try" in
15168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169 *) ac_try_echo=$ac_try;;
15171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172 (eval "$ac_try") 2>&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; }; then
15176 eval "$as_ac_var=yes"
15178 echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15181 eval "$as_ac_var=no"
15184 rm -f core conftest.err conftest.$ac_objext \
15185 conftest$ac_exeext conftest.$ac_ext
15187 ac_res=`eval echo '${'$as_ac_var'}'`
15188 { echo "$as_me:$LINENO: result: $ac_res" >&5
15189 echo "${ECHO_T}$ac_res" >&6; }
15190 if test `eval echo '${'$as_ac_var'}'` = yes; then
15191 cat >>confdefs.h <<_ACEOF
15192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15198 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15199 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15200 if test "${llvm_cv_c_printf_a+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 ac_cpp='$CPP $CPPFLAGS'
15205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15209 if test "$cross_compiling" = yes; then
15210 llvmac_cv_c_printf_a=no
15212 cat >conftest.$ac_ext <<_ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15221 #include <stdlib.h>
15227 volatile double A, B;
15231 sprintf(Buffer, "%a", A);
15235 if (A != 0x1.999999999999ap-4)
15242 rm -f conftest$ac_exeext
15243 if { (ac_try="$ac_link"
15244 case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_link") 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15253 { (case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15258 (eval "$ac_try") 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }; then
15262 llvm_cv_c_printf_a=yes
15264 echo "$as_me: program exited with status $ac_status" >&5
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15268 ( exit $ac_status )
15269 llvmac_cv_c_printf_a=no
15271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15276 ac_cpp='$CPP $CPPFLAGS'
15277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15282 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15283 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15284 if test "$llvm_cv_c_printf_a" = "yes"; then
15286 cat >>confdefs.h <<\_ACEOF
15287 #define HAVE_PRINTF_A 1
15294 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15295 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15296 if test "${ac_cv_func_rand48+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15301 ac_cpp='$CXXCPP $CPPFLAGS'
15302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15306 cat >conftest.$ac_ext <<_ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15312 #include <stdlib.h>
15316 srand48(0);lrand48();drand48();
15321 rm -f conftest.$ac_objext
15322 if { (ac_try="$ac_compile"
15323 case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_compile") 2>conftest.er1
15330 grep -v '^ *+' conftest.er1 >conftest.err
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15336 { (case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_try") 2>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; } &&
15345 { ac_try='test -s conftest.$ac_objext'
15346 { (case "(($ac_try" in
15347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348 *) ac_try_echo=$ac_try;;
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351 (eval "$ac_try") 2>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }; then
15355 ac_cv_func_rand48=yes
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15360 ac_cv_func_rand48=no
15363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15365 ac_cpp='$CPP $CPPFLAGS'
15366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15372 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15373 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15375 if test "$ac_cv_func_rand48" = "yes" ; then
15377 cat >>confdefs.h <<\_ACEOF
15378 #define HAVE_RAND48 1
15384 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15385 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15386 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 cat >conftest.$ac_ext <<_ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15395 $ac_includes_default
15400 char *p = (char *) arc4random;
15408 rm -f conftest.$ac_objext
15409 if { (ac_try="$ac_compile"
15410 case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_compile") 2>conftest.er1
15417 grep -v '^ *+' conftest.er1 >conftest.err
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } &&
15422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15423 { (case "(($ac_try" in
15424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425 *) ac_try_echo=$ac_try;;
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428 (eval "$ac_try") 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; } &&
15432 { ac_try='test -s conftest.$ac_objext'
15433 { (case "(($ac_try" in
15434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 *) ac_try_echo=$ac_try;;
15437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438 (eval "$ac_try") 2>&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then
15442 ac_cv_have_decl_arc4random=yes
15444 echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 ac_cv_have_decl_arc4random=no
15450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15453 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15454 if test $ac_cv_have_decl_arc4random = yes; then
15456 cat >>confdefs.h <<_ACEOF
15457 #define HAVE_DECL_ARC4RANDOM 1
15462 cat >>confdefs.h <<_ACEOF
15463 #define HAVE_DECL_ARC4RANDOM 0
15471 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15472 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15473 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 cat >conftest.$ac_ext <<_ACEOF
15479 cat confdefs.h >>conftest.$ac_ext
15480 cat >>conftest.$ac_ext <<_ACEOF
15481 /* end confdefs.h. */
15482 $ac_includes_default
15487 char *p = (char *) strerror_s;
15495 rm -f conftest.$ac_objext
15496 if { (ac_try="$ac_compile"
15497 case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502 (eval "$ac_compile") 2>conftest.er1
15504 grep -v '^ *+' conftest.er1 >conftest.err
15506 cat conftest.err >&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } &&
15509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15510 { (case "(($ac_try" in
15511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512 *) ac_try_echo=$ac_try;;
15514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15515 (eval "$ac_try") 2>&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; } &&
15519 { ac_try='test -s conftest.$ac_objext'
15520 { (case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_try") 2>&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15529 ac_cv_have_decl_strerror_s=yes
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15534 ac_cv_have_decl_strerror_s=no
15537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15539 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15540 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15541 if test $ac_cv_have_decl_strerror_s = yes; then
15543 cat >>confdefs.h <<_ACEOF
15544 #define HAVE_DECL_STRERROR_S 1
15549 cat >>confdefs.h <<_ACEOF
15550 #define HAVE_DECL_STRERROR_S 0
15558 if test "$llvm_cv_os_type" = "MingW" ; then
15559 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15560 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15561 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15564 ac_check_lib_save_LIBS=$LIBS
15566 cat >conftest.$ac_ext <<_ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h. */
15573 /* Override any GCC internal prototype to avoid an error.
15574 Use char because int might match the return type of a GCC
15575 builtin and then its argument prototype would still apply. */
15588 rm -f conftest.$ac_objext conftest$ac_exeext
15589 if { (ac_try="$ac_link"
15590 case "(($ac_try" in
15591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_link") 2>conftest.er1
15597 grep -v '^ *+' conftest.er1 >conftest.err
15599 cat conftest.err >&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
15602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15603 { (case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_try") 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; } &&
15612 { ac_try='test -s conftest$ac_exeext'
15613 { (case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_try") 2>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 ac_cv_lib_gcc__alloca=yes
15624 echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15627 ac_cv_lib_gcc__alloca=no
15630 rm -f core conftest.err conftest.$ac_objext \
15631 conftest$ac_exeext conftest.$ac_ext
15632 LIBS=$ac_check_lib_save_LIBS
15634 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15635 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15636 if test $ac_cv_lib_gcc__alloca = yes; then
15638 cat >>confdefs.h <<\_ACEOF
15639 #define HAVE__ALLOCA 1
15644 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15645 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15646 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15649 ac_check_lib_save_LIBS=$LIBS
15651 cat >conftest.$ac_ext <<_ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15658 /* Override any GCC internal prototype to avoid an error.
15659 Use char because int might match the return type of a GCC
15660 builtin and then its argument prototype would still apply. */
15668 return __alloca ();
15673 rm -f conftest.$ac_objext conftest$ac_exeext
15674 if { (ac_try="$ac_link"
15675 case "(($ac_try" in
15676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677 *) ac_try_echo=$ac_try;;
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680 (eval "$ac_link") 2>conftest.er1
15682 grep -v '^ *+' conftest.er1 >conftest.err
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } &&
15687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15688 { (case "(($ac_try" in
15689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_try") 2>&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; } &&
15697 { ac_try='test -s conftest$ac_exeext'
15698 { (case "(($ac_try" in
15699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700 *) ac_try_echo=$ac_try;;
15702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703 (eval "$ac_try") 2>&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 ac_cv_lib_gcc___alloca=yes
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15712 ac_cv_lib_gcc___alloca=no
15715 rm -f core conftest.err conftest.$ac_objext \
15716 conftest$ac_exeext conftest.$ac_ext
15717 LIBS=$ac_check_lib_save_LIBS
15719 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15720 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15721 if test $ac_cv_lib_gcc___alloca = yes; then
15723 cat >>confdefs.h <<\_ACEOF
15724 #define HAVE___ALLOCA 1
15729 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15730 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15731 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15734 ac_check_lib_save_LIBS=$LIBS
15736 cat >conftest.$ac_ext <<_ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15743 /* Override any GCC internal prototype to avoid an error.
15744 Use char because int might match the return type of a GCC
15745 builtin and then its argument prototype would still apply. */
15753 return __chkstk ();
15758 rm -f conftest.$ac_objext conftest$ac_exeext
15759 if { (ac_try="$ac_link"
15760 case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_link") 2>conftest.er1
15767 grep -v '^ *+' conftest.er1 >conftest.err
15769 cat conftest.err >&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } &&
15772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15773 { (case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_try") 2>&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; } &&
15782 { ac_try='test -s conftest$ac_exeext'
15783 { (case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_try") 2>&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; }; then
15792 ac_cv_lib_gcc___chkstk=yes
15794 echo "$as_me: failed program was:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15797 ac_cv_lib_gcc___chkstk=no
15800 rm -f core conftest.err conftest.$ac_objext \
15801 conftest$ac_exeext conftest.$ac_ext
15802 LIBS=$ac_check_lib_save_LIBS
15804 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15805 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15806 if test $ac_cv_lib_gcc___chkstk = yes; then
15808 cat >>confdefs.h <<\_ACEOF
15809 #define HAVE___CHKSTK 1
15814 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15815 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15816 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15819 ac_check_lib_save_LIBS=$LIBS
15821 cat >conftest.$ac_ext <<_ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15828 /* Override any GCC internal prototype to avoid an error.
15829 Use char because int might match the return type of a GCC
15830 builtin and then its argument prototype would still apply. */
15838 return ___chkstk ();
15843 rm -f conftest.$ac_objext conftest$ac_exeext
15844 if { (ac_try="$ac_link"
15845 case "(($ac_try" in
15846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847 *) ac_try_echo=$ac_try;;
15849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850 (eval "$ac_link") 2>conftest.er1
15852 grep -v '^ *+' conftest.er1 >conftest.err
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } &&
15857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15858 { (case "(($ac_try" in
15859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860 *) ac_try_echo=$ac_try;;
15862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863 (eval "$ac_try") 2>&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; } &&
15867 { ac_try='test -s conftest$ac_exeext'
15868 { (case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_try") 2>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 ac_cv_lib_gcc____chkstk=yes
15879 echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 ac_cv_lib_gcc____chkstk=no
15885 rm -f core conftest.err conftest.$ac_objext \
15886 conftest$ac_exeext conftest.$ac_ext
15887 LIBS=$ac_check_lib_save_LIBS
15889 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15890 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15891 if test $ac_cv_lib_gcc____chkstk = yes; then
15893 cat >>confdefs.h <<\_ACEOF
15894 #define HAVE____CHKSTK 1
15900 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15901 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15902 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15905 ac_check_lib_save_LIBS=$LIBS
15907 cat >conftest.$ac_ext <<_ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h. */
15914 /* Override any GCC internal prototype to avoid an error.
15915 Use char because int might match the return type of a GCC
15916 builtin and then its argument prototype would still apply. */
15924 return __ashldi3 ();
15929 rm -f conftest.$ac_objext conftest$ac_exeext
15930 if { (ac_try="$ac_link"
15931 case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_link") 2>conftest.er1
15938 grep -v '^ *+' conftest.er1 >conftest.err
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15944 { (case "(($ac_try" in
15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949 (eval "$ac_try") 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; } &&
15953 { ac_try='test -s conftest$ac_exeext'
15954 { (case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_try") 2>&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; }; then
15963 ac_cv_lib_gcc___ashldi3=yes
15965 echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15968 ac_cv_lib_gcc___ashldi3=no
15971 rm -f core conftest.err conftest.$ac_objext \
15972 conftest$ac_exeext conftest.$ac_ext
15973 LIBS=$ac_check_lib_save_LIBS
15975 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15976 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15977 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15979 cat >>confdefs.h <<\_ACEOF
15980 #define HAVE___ASHLDI3 1
15985 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15986 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15987 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 ac_check_lib_save_LIBS=$LIBS
15992 cat >conftest.$ac_ext <<_ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15999 /* Override any GCC internal prototype to avoid an error.
16000 Use char because int might match the return type of a GCC
16001 builtin and then its argument prototype would still apply. */
16009 return __ashrdi3 ();
16014 rm -f conftest.$ac_objext conftest$ac_exeext
16015 if { (ac_try="$ac_link"
16016 case "(($ac_try" in
16017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018 *) ac_try_echo=$ac_try;;
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021 (eval "$ac_link") 2>conftest.er1
16023 grep -v '^ *+' conftest.er1 >conftest.err
16025 cat conftest.err >&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); } &&
16028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16029 { (case "(($ac_try" in
16030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031 *) ac_try_echo=$ac_try;;
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034 (eval "$ac_try") 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; } &&
16038 { ac_try='test -s conftest$ac_exeext'
16039 { (case "(($ac_try" in
16040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041 *) ac_try_echo=$ac_try;;
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044 (eval "$ac_try") 2>&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
16048 ac_cv_lib_gcc___ashrdi3=yes
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 ac_cv_lib_gcc___ashrdi3=no
16056 rm -f core conftest.err conftest.$ac_objext \
16057 conftest$ac_exeext conftest.$ac_ext
16058 LIBS=$ac_check_lib_save_LIBS
16060 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16061 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16062 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16064 cat >>confdefs.h <<\_ACEOF
16065 #define HAVE___ASHRDI3 1
16070 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16071 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16072 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16075 ac_check_lib_save_LIBS=$LIBS
16077 cat >conftest.$ac_ext <<_ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16084 /* Override any GCC internal prototype to avoid an error.
16085 Use char because int might match the return type of a GCC
16086 builtin and then its argument prototype would still apply. */
16094 return __divdi3 ();
16099 rm -f conftest.$ac_objext conftest$ac_exeext
16100 if { (ac_try="$ac_link"
16101 case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_link") 2>conftest.er1
16108 grep -v '^ *+' conftest.er1 >conftest.err
16110 cat conftest.err >&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } &&
16113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16114 { (case "(($ac_try" in
16115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16119 (eval "$ac_try") 2>&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; } &&
16123 { ac_try='test -s conftest$ac_exeext'
16124 { (case "(($ac_try" in
16125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16126 *) ac_try_echo=$ac_try;;
16128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16129 (eval "$ac_try") 2>&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); }; }; then
16133 ac_cv_lib_gcc___divdi3=yes
16135 echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16138 ac_cv_lib_gcc___divdi3=no
16141 rm -f core conftest.err conftest.$ac_objext \
16142 conftest$ac_exeext conftest.$ac_ext
16143 LIBS=$ac_check_lib_save_LIBS
16145 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16146 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16147 if test $ac_cv_lib_gcc___divdi3 = yes; then
16149 cat >>confdefs.h <<\_ACEOF
16150 #define HAVE___DIVDI3 1
16155 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16156 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16157 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 ac_check_lib_save_LIBS=$LIBS
16162 cat >conftest.$ac_ext <<_ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h. */
16169 /* Override any GCC internal prototype to avoid an error.
16170 Use char because int might match the return type of a GCC
16171 builtin and then its argument prototype would still apply. */
16179 return __fixdfdi ();
16184 rm -f conftest.$ac_objext conftest$ac_exeext
16185 if { (ac_try="$ac_link"
16186 case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_link") 2>conftest.er1
16193 grep -v '^ *+' conftest.er1 >conftest.err
16195 cat conftest.err >&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } &&
16198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16199 { (case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_try") 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; } &&
16208 { ac_try='test -s conftest$ac_exeext'
16209 { (case "(($ac_try" in
16210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211 *) ac_try_echo=$ac_try;;
16213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16214 (eval "$ac_try") 2>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; }; then
16218 ac_cv_lib_gcc___fixdfdi=yes
16220 echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 ac_cv_lib_gcc___fixdfdi=no
16226 rm -f core conftest.err conftest.$ac_objext \
16227 conftest$ac_exeext conftest.$ac_ext
16228 LIBS=$ac_check_lib_save_LIBS
16230 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16231 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16232 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16234 cat >>confdefs.h <<\_ACEOF
16235 #define HAVE___FIXDFDI 1
16240 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16241 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16242 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16243 echo $ECHO_N "(cached) $ECHO_C" >&6
16245 ac_check_lib_save_LIBS=$LIBS
16247 cat >conftest.$ac_ext <<_ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16254 /* Override any GCC internal prototype to avoid an error.
16255 Use char because int might match the return type of a GCC
16256 builtin and then its argument prototype would still apply. */
16264 return __fixsfdi ();
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (ac_try="$ac_link"
16271 case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_link") 2>conftest.er1
16278 grep -v '^ *+' conftest.er1 >conftest.err
16280 cat conftest.err >&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } &&
16283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16284 { (case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_try") 2>&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; } &&
16293 { ac_try='test -s conftest$ac_exeext'
16294 { (case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_try") 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; }; then
16303 ac_cv_lib_gcc___fixsfdi=yes
16305 echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16308 ac_cv_lib_gcc___fixsfdi=no
16311 rm -f core conftest.err conftest.$ac_objext \
16312 conftest$ac_exeext conftest.$ac_ext
16313 LIBS=$ac_check_lib_save_LIBS
16315 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16316 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16317 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16319 cat >>confdefs.h <<\_ACEOF
16320 #define HAVE___FIXSFDI 1
16325 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16326 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16327 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 ac_check_lib_save_LIBS=$LIBS
16332 cat >conftest.$ac_ext <<_ACEOF
16335 cat confdefs.h >>conftest.$ac_ext
16336 cat >>conftest.$ac_ext <<_ACEOF
16337 /* end confdefs.h. */
16339 /* Override any GCC internal prototype to avoid an error.
16340 Use char because int might match the return type of a GCC
16341 builtin and then its argument prototype would still apply. */
16345 char __floatdidf ();
16349 return __floatdidf ();
16354 rm -f conftest.$ac_objext conftest$ac_exeext
16355 if { (ac_try="$ac_link"
16356 case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361 (eval "$ac_link") 2>conftest.er1
16363 grep -v '^ *+' conftest.er1 >conftest.err
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16369 { (case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_try") 2>&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; } &&
16378 { ac_try='test -s conftest$ac_exeext'
16379 { (case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16384 (eval "$ac_try") 2>&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); }; }; then
16388 ac_cv_lib_gcc___floatdidf=yes
16390 echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16393 ac_cv_lib_gcc___floatdidf=no
16396 rm -f core conftest.err conftest.$ac_objext \
16397 conftest$ac_exeext conftest.$ac_ext
16398 LIBS=$ac_check_lib_save_LIBS
16400 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16401 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16402 if test $ac_cv_lib_gcc___floatdidf = yes; then
16404 cat >>confdefs.h <<\_ACEOF
16405 #define HAVE___FLOATDIDF 1
16410 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16411 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16412 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 ac_check_lib_save_LIBS=$LIBS
16417 cat >conftest.$ac_ext <<_ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16424 /* Override any GCC internal prototype to avoid an error.
16425 Use char because int might match the return type of a GCC
16426 builtin and then its argument prototype would still apply. */
16434 return __lshrdi3 ();
16439 rm -f conftest.$ac_objext conftest$ac_exeext
16440 if { (ac_try="$ac_link"
16441 case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_link") 2>conftest.er1
16448 grep -v '^ *+' conftest.er1 >conftest.err
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16454 { (case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_try") 2>&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; } &&
16463 { ac_try='test -s conftest$ac_exeext'
16464 { (case "(($ac_try" in
16465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16466 *) ac_try_echo=$ac_try;;
16468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16469 (eval "$ac_try") 2>&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 ac_cv_lib_gcc___lshrdi3=yes
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16478 ac_cv_lib_gcc___lshrdi3=no
16481 rm -f core conftest.err conftest.$ac_objext \
16482 conftest$ac_exeext conftest.$ac_ext
16483 LIBS=$ac_check_lib_save_LIBS
16485 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16486 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16487 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16489 cat >>confdefs.h <<\_ACEOF
16490 #define HAVE___LSHRDI3 1
16495 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16496 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16497 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 ac_check_lib_save_LIBS=$LIBS
16502 cat >conftest.$ac_ext <<_ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16509 /* Override any GCC internal prototype to avoid an error.
16510 Use char because int might match the return type of a GCC
16511 builtin and then its argument prototype would still apply. */
16519 return __moddi3 ();
16524 rm -f conftest.$ac_objext conftest$ac_exeext
16525 if { (ac_try="$ac_link"
16526 case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531 (eval "$ac_link") 2>conftest.er1
16533 grep -v '^ *+' conftest.er1 >conftest.err
16535 cat conftest.err >&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
16538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16539 { (case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_try") 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; } &&
16548 { ac_try='test -s conftest$ac_exeext'
16549 { (case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554 (eval "$ac_try") 2>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
16558 ac_cv_lib_gcc___moddi3=yes
16560 echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16563 ac_cv_lib_gcc___moddi3=no
16566 rm -f core conftest.err conftest.$ac_objext \
16567 conftest$ac_exeext conftest.$ac_ext
16568 LIBS=$ac_check_lib_save_LIBS
16570 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16571 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16572 if test $ac_cv_lib_gcc___moddi3 = yes; then
16574 cat >>confdefs.h <<\_ACEOF
16575 #define HAVE___MODDI3 1
16580 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16581 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16582 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16585 ac_check_lib_save_LIBS=$LIBS
16587 cat >conftest.$ac_ext <<_ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16594 /* Override any GCC internal prototype to avoid an error.
16595 Use char because int might match the return type of a GCC
16596 builtin and then its argument prototype would still apply. */
16604 return __udivdi3 ();
16609 rm -f conftest.$ac_objext conftest$ac_exeext
16610 if { (ac_try="$ac_link"
16611 case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_link") 2>conftest.er1
16618 grep -v '^ *+' conftest.er1 >conftest.err
16620 cat conftest.err >&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } &&
16623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16624 { (case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629 (eval "$ac_try") 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try='test -s conftest$ac_exeext'
16634 { (case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_try") 2>&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; }; then
16643 ac_cv_lib_gcc___udivdi3=yes
16645 echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16648 ac_cv_lib_gcc___udivdi3=no
16651 rm -f core conftest.err conftest.$ac_objext \
16652 conftest$ac_exeext conftest.$ac_ext
16653 LIBS=$ac_check_lib_save_LIBS
16655 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16656 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16657 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16659 cat >>confdefs.h <<\_ACEOF
16660 #define HAVE___UDIVDI3 1
16665 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16666 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16667 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16668 echo $ECHO_N "(cached) $ECHO_C" >&6
16670 ac_check_lib_save_LIBS=$LIBS
16672 cat >conftest.$ac_ext <<_ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h. */
16679 /* Override any GCC internal prototype to avoid an error.
16680 Use char because int might match the return type of a GCC
16681 builtin and then its argument prototype would still apply. */
16689 return __umoddi3 ();
16694 rm -f conftest.$ac_objext conftest$ac_exeext
16695 if { (ac_try="$ac_link"
16696 case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_link") 2>conftest.er1
16703 grep -v '^ *+' conftest.er1 >conftest.err
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
16708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16709 { (case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_try") 2>&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest$ac_exeext'
16719 { (case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_try") 2>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
16728 ac_cv_lib_gcc___umoddi3=yes
16730 echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16733 ac_cv_lib_gcc___umoddi3=no
16736 rm -f core conftest.err conftest.$ac_objext \
16737 conftest$ac_exeext conftest.$ac_ext
16738 LIBS=$ac_check_lib_save_LIBS
16740 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16741 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16742 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16744 cat >>confdefs.h <<\_ACEOF
16745 #define HAVE___UMODDI3 1
16751 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16752 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16753 if test "${ac_cv_lib_gcc___main+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 ac_check_lib_save_LIBS=$LIBS
16758 cat >conftest.$ac_ext <<_ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16765 /* Override any GCC internal prototype to avoid an error.
16766 Use char because int might match the return type of a GCC
16767 builtin and then its argument prototype would still apply. */
16780 rm -f conftest.$ac_objext conftest$ac_exeext
16781 if { (ac_try="$ac_link"
16782 case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_link") 2>conftest.er1
16789 grep -v '^ *+' conftest.er1 >conftest.err
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16795 { (case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_try") 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; } &&
16804 { ac_try='test -s conftest$ac_exeext'
16805 { (case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_try") 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_cv_lib_gcc___main=yes
16816 echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16819 ac_cv_lib_gcc___main=no
16822 rm -f core conftest.err conftest.$ac_objext \
16823 conftest$ac_exeext conftest.$ac_ext
16824 LIBS=$ac_check_lib_save_LIBS
16826 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16827 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16828 if test $ac_cv_lib_gcc___main = yes; then
16830 cat >>confdefs.h <<\_ACEOF
16831 #define HAVE___MAIN 1
16836 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16837 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16838 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16841 ac_check_lib_save_LIBS=$LIBS
16843 cat >conftest.$ac_ext <<_ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16850 /* Override any GCC internal prototype to avoid an error.
16851 Use char because int might match the return type of a GCC
16852 builtin and then its argument prototype would still apply. */
16860 return __cmpdi2 ();
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (ac_try="$ac_link"
16867 case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_link") 2>conftest.er1
16874 grep -v '^ *+' conftest.er1 >conftest.err
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } &&
16879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16880 { (case "(($ac_try" in
16881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882 *) ac_try_echo=$ac_try;;
16884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885 (eval "$ac_try") 2>&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; } &&
16889 { ac_try='test -s conftest$ac_exeext'
16890 { (case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_try") 2>&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 ac_cv_lib_gcc___cmpdi2=yes
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16904 ac_cv_lib_gcc___cmpdi2=no
16907 rm -f core conftest.err conftest.$ac_objext \
16908 conftest$ac_exeext conftest.$ac_ext
16909 LIBS=$ac_check_lib_save_LIBS
16911 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16912 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16913 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16915 cat >>confdefs.h <<\_ACEOF
16916 #define HAVE___CMPDI2 1
16923 if test "$llvm_cv_os_type" = "MingW" ; then
16924 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16925 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16926 cat >conftest.$ac_ext <<_ACEOF
16930 cat confdefs.h >>conftest.$ac_ext
16931 cat >>conftest.$ac_ext <<_ACEOF
16932 /* end confdefs.h. */
16934 #include <windows.h>
16935 #include <imagehlp.h>
16936 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16937 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16941 rm -f conftest.$ac_objext
16942 if { (ac_try="$ac_compile"
16943 case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_compile") 2>conftest.er1
16950 grep -v '^ *+' conftest.er1 >conftest.err
16952 cat conftest.err >&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } &&
16955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; } &&
16965 { ac_try='test -s conftest.$ac_objext'
16966 { (case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971 (eval "$ac_try") 2>&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16976 { echo "$as_me:$LINENO: result: yes" >&5
16977 echo "${ECHO_T}yes" >&6; }
16978 llvm_cv_win32_elmcb_pcstr="PCSTR"
16981 echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16985 { echo "$as_me:$LINENO: result: no" >&5
16986 echo "${ECHO_T}no" >&6; }
16987 llvm_cv_win32_elmcb_pcstr="PSTR"
16991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993 cat >>confdefs.h <<_ACEOF
16994 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17001 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17002 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17003 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 ac_cpp='$CXXCPP $CPPFLAGS'
17009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17013 cat >conftest.$ac_ext <<_ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17028 rm -f conftest.$ac_objext
17029 if { (ac_try="$ac_compile"
17030 case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_compile") 2>conftest.er1
17037 grep -v '^ *+' conftest.er1 >conftest.err
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17043 { (case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_try") 2>&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; } &&
17052 { ac_try='test -s conftest.$ac_objext'
17053 { (case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058 (eval "$ac_try") 2>&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 ac_cv_func_isnan_in_math_h=yes
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17067 ac_cv_func_isnan_in_math_h=no
17070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17072 ac_cpp='$CPP $CPPFLAGS'
17073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17079 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17080 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17083 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17085 cat >>confdefs.h <<\_ACEOF
17086 #define HAVE_ISNAN_IN_MATH_H 1
17092 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17093 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17094 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17099 ac_cpp='$CXXCPP $CPPFLAGS'
17100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17104 cat >conftest.$ac_ext <<_ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h. */
17119 rm -f conftest.$ac_objext
17120 if { (ac_try="$ac_compile"
17121 case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126 (eval "$ac_compile") 2>conftest.er1
17128 grep -v '^ *+' conftest.er1 >conftest.err
17130 cat conftest.err >&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } &&
17133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17134 { (case "(($ac_try" in
17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136 *) ac_try_echo=$ac_try;;
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139 (eval "$ac_try") 2>&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; } &&
17143 { ac_try='test -s conftest.$ac_objext'
17144 { (case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_try") 2>&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
17153 ac_cv_func_isnan_in_cmath=yes
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 ac_cv_func_isnan_in_cmath=no
17161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17163 ac_cpp='$CPP $CPPFLAGS'
17164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17170 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17171 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17173 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17175 cat >>confdefs.h <<\_ACEOF
17176 #define HAVE_ISNAN_IN_CMATH 1
17182 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17183 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17184 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17189 ac_cpp='$CXXCPP $CPPFLAGS'
17190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17194 cat >conftest.$ac_ext <<_ACEOF
17197 cat confdefs.h >>conftest.$ac_ext
17198 cat >>conftest.$ac_ext <<_ACEOF
17199 /* end confdefs.h. */
17204 float f; std::isnan(f);
17209 rm -f conftest.$ac_objext
17210 if { (ac_try="$ac_compile"
17211 case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_compile") 2>conftest.er1
17218 grep -v '^ *+' conftest.er1 >conftest.err
17220 cat conftest.err >&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } &&
17223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17224 { (case "(($ac_try" in
17225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226 *) ac_try_echo=$ac_try;;
17228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229 (eval "$ac_try") 2>&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; } &&
17233 { ac_try='test -s conftest.$ac_objext'
17234 { (case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_try") 2>&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; }; then
17243 ac_cv_func_std_isnan_in_cmath=yes
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17248 ac_cv_func_std_isnan_in_cmath=no
17251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17253 ac_cpp='$CPP $CPPFLAGS'
17254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17260 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17261 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17263 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17265 cat >>confdefs.h <<\_ACEOF
17266 #define HAVE_STD_ISNAN_IN_CMATH 1
17274 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17275 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17276 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17281 ac_cpp='$CXXCPP $CPPFLAGS'
17282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17286 cat >conftest.$ac_ext <<_ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17301 rm -f conftest.$ac_objext
17302 if { (ac_try="$ac_compile"
17303 case "(($ac_try" in
17304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305 *) ac_try_echo=$ac_try;;
17307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308 (eval "$ac_compile") 2>conftest.er1
17310 grep -v '^ *+' conftest.er1 >conftest.err
17312 cat conftest.err >&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } &&
17315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17316 { (case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_try") 2>&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; } &&
17325 { ac_try='test -s conftest.$ac_objext'
17326 { (case "(($ac_try" in
17327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328 *) ac_try_echo=$ac_try;;
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331 (eval "$ac_try") 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_cv_func_isinf_in_math_h=yes
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 ac_cv_func_isinf_in_math_h=no
17343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345 ac_cpp='$CPP $CPPFLAGS'
17346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17352 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17353 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17355 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17357 cat >>confdefs.h <<\_ACEOF
17358 #define HAVE_ISINF_IN_MATH_H 1
17364 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17365 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17366 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17367 echo $ECHO_N "(cached) $ECHO_C" >&6
17371 ac_cpp='$CXXCPP $CPPFLAGS'
17372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17376 cat >conftest.$ac_ext <<_ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h. */
17391 rm -f conftest.$ac_objext
17392 if { (ac_try="$ac_compile"
17393 case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_compile") 2>conftest.er1
17400 grep -v '^ *+' conftest.er1 >conftest.err
17402 cat conftest.err >&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } &&
17405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17406 { (case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_try") 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try='test -s conftest.$ac_objext'
17416 { (case "(($ac_try" in
17417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418 *) ac_try_echo=$ac_try;;
17420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421 (eval "$ac_try") 2>&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; }; then
17425 ac_cv_func_isinf_in_cmath=yes
17427 echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17430 ac_cv_func_isinf_in_cmath=no
17433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17435 ac_cpp='$CPP $CPPFLAGS'
17436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17442 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17443 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17445 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17447 cat >>confdefs.h <<\_ACEOF
17448 #define HAVE_ISINF_IN_CMATH 1
17454 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17455 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17456 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17461 ac_cpp='$CXXCPP $CPPFLAGS'
17462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17466 cat >conftest.$ac_ext <<_ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17476 float f; std::isinf(f);
17481 rm -f conftest.$ac_objext
17482 if { (ac_try="$ac_compile"
17483 case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_compile") 2>conftest.er1
17490 grep -v '^ *+' conftest.er1 >conftest.err
17492 cat conftest.err >&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } &&
17495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17496 { (case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_try") 2>&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; } &&
17505 { ac_try='test -s conftest.$ac_objext'
17506 { (case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_try") 2>&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; }; then
17515 ac_cv_func_std_isinf_in_cmath=yes
17517 echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17520 ac_cv_func_std_isinf_in_cmath=no
17523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17525 ac_cpp='$CPP $CPPFLAGS'
17526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17532 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17533 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17535 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17537 cat >>confdefs.h <<\_ACEOF
17538 #define HAVE_STD_ISINF_IN_CMATH 1
17544 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17545 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17546 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17551 ac_cpp='$CXXCPP $CPPFLAGS'
17552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17556 cat >conftest.$ac_ext <<_ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h. */
17562 #include <ieeefp.h>
17566 float f; finite(f);
17571 rm -f conftest.$ac_objext
17572 if { (ac_try="$ac_compile"
17573 case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578 (eval "$ac_compile") 2>conftest.er1
17580 grep -v '^ *+' conftest.er1 >conftest.err
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } &&
17585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17586 { (case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_try") 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; } &&
17595 { ac_try='test -s conftest.$ac_objext'
17596 { (case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_try") 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 ac_cv_func_finite_in_ieeefp_h=yes
17607 echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17610 ac_cv_func_finite_in_ieeefp_h=no
17613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17615 ac_cpp='$CPP $CPPFLAGS'
17616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17622 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17623 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17625 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17627 cat >>confdefs.h <<\_ACEOF
17628 #define HAVE_FINITE_IN_IEEEFP_H 1
17635 if test "$llvm_cv_platform_type" = "Unix" ; then
17638 for ac_header in stdlib.h unistd.h
17640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17645 echo $ECHO_N "(cached) $ECHO_C" >&6
17647 ac_res=`eval echo '${'$as_ac_Header'}'`
17648 { echo "$as_me:$LINENO: result: $ac_res" >&5
17649 echo "${ECHO_T}$ac_res" >&6; }
17651 # Is the header compilable?
17652 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17654 cat >conftest.$ac_ext <<_ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17660 $ac_includes_default
17661 #include <$ac_header>
17663 rm -f conftest.$ac_objext
17664 if { (ac_try="$ac_compile"
17665 case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_compile") 2>conftest.er1
17672 grep -v '^ *+' conftest.er1 >conftest.err
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
17677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17678 { (case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683 (eval "$ac_try") 2>&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; } &&
17687 { ac_try='test -s conftest.$ac_objext'
17688 { (case "(($ac_try" in
17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_try") 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 ac_header_compiler=yes
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17702 ac_header_compiler=no
17705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17707 echo "${ECHO_T}$ac_header_compiler" >&6; }
17709 # Is the header present?
17710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17712 cat >conftest.$ac_ext <<_ACEOF
17715 cat confdefs.h >>conftest.$ac_ext
17716 cat >>conftest.$ac_ext <<_ACEOF
17717 /* end confdefs.h. */
17718 #include <$ac_header>
17720 if { (ac_try="$ac_cpp conftest.$ac_ext"
17721 case "(($ac_try" in
17722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723 *) ac_try_echo=$ac_try;;
17725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17728 grep -v '^ *+' conftest.er1 >conftest.err
17730 cat conftest.err >&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } >/dev/null; then
17733 if test -s conftest.err; then
17734 ac_cpp_err=$ac_c_preproc_warn_flag
17735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17742 if test -z "$ac_cpp_err"; then
17743 ac_header_preproc=yes
17745 echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.$ac_ext >&5
17748 ac_header_preproc=no
17751 rm -f conftest.err conftest.$ac_ext
17752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17753 echo "${ECHO_T}$ac_header_preproc" >&6; }
17755 # So? What about this header?
17756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17762 ac_header_preproc=yes
17765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17778 ## ------------------------------------ ##
17779 ## Report this to http://llvm.org/bugs/ ##
17780 ## ------------------------------------ ##
17782 ) | sed "s/^/$as_me: WARNING: /" >&2
17785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 eval "$as_ac_Header=\$ac_header_preproc"
17792 ac_res=`eval echo '${'$as_ac_Header'}'`
17793 { echo "$as_me:$LINENO: result: $ac_res" >&5
17794 echo "${ECHO_T}$ac_res" >&6; }
17797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17798 cat >>confdefs.h <<_ACEOF
17799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17807 for ac_func in getpagesize
17809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 cat >conftest.$ac_ext <<_ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17823 #define $ac_func innocuous_$ac_func
17825 /* System header to define __stub macros and hopefully few prototypes,
17826 which can conflict with char $ac_func (); below.
17827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17828 <limits.h> exists even on freestanding compilers. */
17831 # include <limits.h>
17833 # include <assert.h>
17838 /* Override any GCC internal prototype to avoid an error.
17839 Use char because int might match the return type of a GCC
17840 builtin and then its argument prototype would still apply. */
17845 /* The GNU C library defines this for functions which it implements
17846 to always fail with ENOSYS. Some functions are actually named
17847 something starting with __ and the normal name is an alias. */
17848 #if defined __stub_$ac_func || defined __stub___$ac_func
17855 return $ac_func ();
17860 rm -f conftest.$ac_objext conftest$ac_exeext
17861 if { (ac_try="$ac_link"
17862 case "(($ac_try" in
17863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864 *) ac_try_echo=$ac_try;;
17866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17867 (eval "$ac_link") 2>conftest.er1
17869 grep -v '^ *+' conftest.er1 >conftest.err
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17875 { (case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_try") 2>&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; } &&
17884 { ac_try='test -s conftest$ac_exeext'
17885 { (case "(($ac_try" in
17886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17887 *) ac_try_echo=$ac_try;;
17889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17890 (eval "$ac_try") 2>&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; }; then
17894 eval "$as_ac_var=yes"
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17899 eval "$as_ac_var=no"
17902 rm -f core conftest.err conftest.$ac_objext \
17903 conftest$ac_exeext conftest.$ac_ext
17905 ac_res=`eval echo '${'$as_ac_var'}'`
17906 { echo "$as_me:$LINENO: result: $ac_res" >&5
17907 echo "${ECHO_T}$ac_res" >&6; }
17908 if test `eval echo '${'$as_ac_var'}'` = yes; then
17909 cat >>confdefs.h <<_ACEOF
17910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17916 { echo "$as_me:$LINENO: checking for working mmap" >&5
17917 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17918 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17919 echo $ECHO_N "(cached) $ECHO_C" >&6
17921 if test "$cross_compiling" = yes; then
17922 ac_cv_func_mmap_fixed_mapped=no
17924 cat >conftest.$ac_ext <<_ACEOF
17927 cat confdefs.h >>conftest.$ac_ext
17928 cat >>conftest.$ac_ext <<_ACEOF
17929 /* end confdefs.h. */
17930 $ac_includes_default
17931 /* malloc might have been renamed as rpl_malloc. */
17934 /* Thanks to Mike Haertel and Jim Avera for this test.
17935 Here is a matrix of mmap possibilities:
17936 mmap private not fixed
17937 mmap private fixed at somewhere currently unmapped
17938 mmap private fixed at somewhere already mapped
17939 mmap shared not fixed
17940 mmap shared fixed at somewhere currently unmapped
17941 mmap shared fixed at somewhere already mapped
17942 For private mappings, we should verify that changes cannot be read()
17943 back from the file, nor mmap's back from the file at a different
17944 address. (There have been systems where private was not correctly
17945 implemented like the infamous i386 svr4.0, and systems where the
17946 VM page cache was not coherent with the file system buffer cache
17947 like early versions of FreeBSD and possibly contemporary NetBSD.)
17948 For shared mappings, we should conversely verify that changes get
17949 propagated back to all the places they're supposed to be.
17951 Grep wants private fixed already mapped.
17952 The main things grep needs to know about mmap are:
17953 * does it exist and is it safe to write into the mmap'd area
17954 * how to use it (BSD variants) */
17957 #include <sys/mman.h>
17959 #if !STDC_HEADERS && !HAVE_STDLIB_H
17963 /* This mess was copied from the GNU getpagesize.h. */
17964 #if !HAVE_GETPAGESIZE
17965 /* Assume that all systems that can run configure have sys/param.h. */
17966 # if !HAVE_SYS_PARAM_H
17967 # define HAVE_SYS_PARAM_H 1
17970 # ifdef _SC_PAGESIZE
17971 # define getpagesize() sysconf(_SC_PAGESIZE)
17972 # else /* no _SC_PAGESIZE */
17973 # if HAVE_SYS_PARAM_H
17974 # include <sys/param.h>
17975 # ifdef EXEC_PAGESIZE
17976 # define getpagesize() EXEC_PAGESIZE
17977 # else /* no EXEC_PAGESIZE */
17979 # define getpagesize() NBPG * CLSIZE
17982 # endif /* no CLSIZE */
17983 # else /* no NBPG */
17985 # define getpagesize() NBPC
17986 # else /* no NBPC */
17988 # define getpagesize() PAGESIZE
17989 # endif /* PAGESIZE */
17990 # endif /* no NBPC */
17991 # endif /* no NBPG */
17992 # endif /* no EXEC_PAGESIZE */
17993 # else /* no HAVE_SYS_PARAM_H */
17994 # define getpagesize() 8192 /* punt totally */
17995 # endif /* no HAVE_SYS_PARAM_H */
17996 # endif /* no _SC_PAGESIZE */
17998 #endif /* no HAVE_GETPAGESIZE */
18003 char *data, *data2, *data3;
18007 pagesize = getpagesize ();
18009 /* First, make a file with some known garbage in it. */
18010 data = (char *) malloc (pagesize);
18013 for (i = 0; i < pagesize; ++i)
18014 *(data + i) = rand ();
18016 fd = creat ("conftest.mmap", 0600);
18019 if (write (fd, data, pagesize) != pagesize)
18023 /* Next, try to mmap the file at a fixed address which already has
18024 something else allocated at it. If we can, also make sure that
18025 we see the same garbage. */
18026 fd = open ("conftest.mmap", O_RDWR);
18029 data2 = (char *) malloc (2 * pagesize);
18032 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18033 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18034 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18036 for (i = 0; i < pagesize; ++i)
18037 if (*(data + i) != *(data2 + i))
18040 /* Finally, make sure that changes to the mapped area do not
18041 percolate back to the file as seen by read(). (This is a bug on
18042 some variants of i386 svr4.0.) */
18043 for (i = 0; i < pagesize; ++i)
18044 *(data2 + i) = *(data2 + i) + 1;
18045 data3 = (char *) malloc (pagesize);
18048 if (read (fd, data3, pagesize) != pagesize)
18050 for (i = 0; i < pagesize; ++i)
18051 if (*(data + i) != *(data3 + i))
18057 rm -f conftest$ac_exeext
18058 if { (ac_try="$ac_link"
18059 case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_link") 2>&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18068 { (case "(($ac_try" in
18069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070 *) ac_try_echo=$ac_try;;
18072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18073 (eval "$ac_try") 2>&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; }; then
18077 ac_cv_func_mmap_fixed_mapped=yes
18079 echo "$as_me: program exited with status $ac_status" >&5
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 ( exit $ac_status )
18084 ac_cv_func_mmap_fixed_mapped=no
18086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18091 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18092 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18093 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18095 cat >>confdefs.h <<\_ACEOF
18096 #define HAVE_MMAP 1
18100 rm -f conftest.mmap
18102 { echo "$as_me:$LINENO: checking for mmap of files" >&5
18103 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18104 if test "${ac_cv_func_mmap_file+set}" = set; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 ac_cpp='$CPP $CPPFLAGS'
18109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18113 if test "$cross_compiling" = yes; then
18114 ac_cv_func_mmap_file=no
18116 cat >conftest.$ac_ext <<_ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18124 #include <sys/types.h>
18125 #include <sys/mman.h>
18133 fd = creat ("foo",0777);
18134 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18136 return (fd != (int) MAP_FAILED);
18141 rm -f conftest$ac_exeext
18142 if { (ac_try="$ac_link"
18143 case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_link") 2>&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18152 { (case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157 (eval "$ac_try") 2>&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
18161 ac_cv_func_mmap_file=yes
18163 echo "$as_me: program exited with status $ac_status" >&5
18164 echo "$as_me: failed program was:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18167 ( exit $ac_status )
18168 ac_cv_func_mmap_file=no
18170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18175 ac_cpp='$CPP $CPPFLAGS'
18176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18182 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18183 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18184 if test "$ac_cv_func_mmap_file" = yes; then
18186 cat >>confdefs.h <<\_ACEOF
18187 #define HAVE_MMAP_FILE
18194 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18195 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18196 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18197 echo $ECHO_N "(cached) $ECHO_C" >&6
18199 if test "$llvm_cv_os_type" = "Interix" ; then
18200 ac_cv_need_dev_zero_for_mmap=yes
18202 ac_cv_need_dev_zero_for_mmap=no
18206 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18207 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18208 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18210 cat >>confdefs.h <<\_ACEOF
18211 #define NEED_DEV_ZERO_FOR_MMAP 1
18216 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18218 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18219 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18221 if test "$ac_cv_func_mmap_file" = "no"
18223 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18224 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18228 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18229 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18231 ac_cpp='$CXXCPP $CPPFLAGS'
18232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18236 cat >conftest.$ac_ext <<_ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h. */
18245 volatile unsigned long val = 1;
18246 __sync_synchronize();
18247 __sync_val_compare_and_swap(&val, 1, 0);
18248 __sync_add_and_fetch(&val, 1);
18249 __sync_sub_and_fetch(&val, 1);
18255 rm -f conftest.$ac_objext conftest$ac_exeext
18256 if { (ac_try="$ac_link"
18257 case "(($ac_try" in
18258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259 *) ac_try_echo=$ac_try;;
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262 (eval "$ac_link") 2>conftest.er1
18264 grep -v '^ *+' conftest.er1 >conftest.err
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
18269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18270 { (case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_try") 2>&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; } &&
18279 { ac_try='test -s conftest$ac_exeext'
18280 { (case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_try") 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18290 { echo "$as_me:$LINENO: result: yes" >&5
18291 echo "${ECHO_T}yes" >&6; }
18293 cat >>confdefs.h <<\_ACEOF
18294 #define LLVM_HAS_ATOMICS 1
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18303 { echo "$as_me:$LINENO: result: no" >&5
18304 echo "${ECHO_T}no" >&6; }
18306 cat >>confdefs.h <<\_ACEOF
18307 #define LLVM_HAS_ATOMICS 0
18310 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18311 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18315 rm -f core conftest.err conftest.$ac_objext \
18316 conftest$ac_exeext conftest.$ac_ext
18318 ac_cpp='$CPP $CPPFLAGS'
18319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18325 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18326 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18327 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18328 if test "${llvm_cv_linux_mixed+set}" = set; then
18329 echo $ECHO_N "(cached) $ECHO_C" >&6
18332 ac_cpp='$CPP $CPPFLAGS'
18333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18337 cat >conftest.$ac_ext <<_ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18344 error: Not x86-64 even if uname says so!
18355 rm -f conftest.$ac_objext
18356 if { (ac_try="$ac_compile"
18357 case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_compile") 2>conftest.er1
18364 grep -v '^ *+' conftest.er1 >conftest.err
18366 cat conftest.err >&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
18369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18370 { (case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_try") 2>&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; } &&
18379 { ac_try='test -s conftest.$ac_objext'
18380 { (case "(($ac_try" in
18381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382 *) ac_try_echo=$ac_try;;
18384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385 (eval "$ac_try") 2>&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; }; then
18389 llvm_cv_linux_mixed=no
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18394 llvm_cv_linux_mixed=yes
18397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399 ac_cpp='$CPP $CPPFLAGS'
18400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18406 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18407 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18409 if test "$llvm_cv_linux_mixed" = "yes"; then
18410 llvm_cv_target_arch="x86"
18416 for ac_func in __dso_handle
18418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18422 echo $ECHO_N "(cached) $ECHO_C" >&6
18424 cat >conftest.$ac_ext <<_ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18432 #define $ac_func innocuous_$ac_func
18434 /* System header to define __stub macros and hopefully few prototypes,
18435 which can conflict with char $ac_func (); below.
18436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18437 <limits.h> exists even on freestanding compilers. */
18440 # include <limits.h>
18442 # include <assert.h>
18447 /* Override any GCC internal prototype to avoid an error.
18448 Use char because int might match the return type of a GCC
18449 builtin and then its argument prototype would still apply. */
18454 /* The GNU C library defines this for functions which it implements
18455 to always fail with ENOSYS. Some functions are actually named
18456 something starting with __ and the normal name is an alias. */
18457 #if defined __stub_$ac_func || defined __stub___$ac_func
18464 return $ac_func ();
18469 rm -f conftest.$ac_objext conftest$ac_exeext
18470 if { (ac_try="$ac_link"
18471 case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_link") 2>conftest.er1
18478 grep -v '^ *+' conftest.er1 >conftest.err
18480 cat conftest.err >&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } &&
18483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18484 { (case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_try") 2>&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; } &&
18493 { ac_try='test -s conftest$ac_exeext'
18494 { (case "(($ac_try" in
18495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18496 *) ac_try_echo=$ac_try;;
18498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18499 (eval "$ac_try") 2>&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; }; then
18503 eval "$as_ac_var=yes"
18505 echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18508 eval "$as_ac_var=no"
18511 rm -f core conftest.err conftest.$ac_objext \
18512 conftest$ac_exeext conftest.$ac_ext
18514 ac_res=`eval echo '${'$as_ac_var'}'`
18515 { echo "$as_me:$LINENO: result: $ac_res" >&5
18516 echo "${ECHO_T}$ac_res" >&6; }
18517 if test `eval echo '${'$as_ac_var'}'` = yes; then
18518 cat >>confdefs.h <<_ACEOF
18519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18526 SHLIBEXT=$llvm_shlib_ext
18529 if test "${prefix}" = "NONE" ; then
18530 prefix="/usr/local"
18532 eval LLVM_PREFIX="${prefix}";
18533 eval LLVM_BINDIR="${prefix}/bin";
18534 eval LLVM_DATADIR="${prefix}/share/llvm";
18535 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18536 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18537 eval LLVM_INCLUDEDIR="${prefix}/include";
18538 eval LLVM_INFODIR="${prefix}/info";
18539 eval LLVM_MANDIR="${prefix}/man";
18540 LLVM_CONFIGTIME=`date`
18551 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18552 LLVM_CONFIGTIME="(timestamp not enabled)"
18556 cat >>confdefs.h <<_ACEOF
18557 #define LLVM_PREFIX "$LLVM_PREFIX"
18561 cat >>confdefs.h <<_ACEOF
18562 #define LLVM_BINDIR "$LLVM_BINDIR"
18566 cat >>confdefs.h <<_ACEOF
18567 #define LLVM_DATADIR "$LLVM_DATADIR"
18571 cat >>confdefs.h <<_ACEOF
18572 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18576 cat >>confdefs.h <<_ACEOF
18577 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18581 cat >>confdefs.h <<_ACEOF
18582 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18586 cat >>confdefs.h <<_ACEOF
18587 #define LLVM_INFODIR "$LLVM_INFODIR"
18591 cat >>confdefs.h <<_ACEOF
18592 #define LLVM_MANDIR "$LLVM_MANDIR"
18596 cat >>confdefs.h <<_ACEOF
18597 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18601 cat >>confdefs.h <<_ACEOF
18602 #define LLVM_HOST_TRIPLE "$host"
18606 cat >>confdefs.h <<_ACEOF
18607 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18611 if test "$BINDINGS_TO_BUILD" = auto ; then
18612 BINDINGS_TO_BUILD=""
18613 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
18614 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18617 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18620 binding_prereqs_failed=0
18621 for a_binding in $BINDINGS_TO_BUILD ; do
18622 case "$a_binding" in
18624 if test "x$OCAMLC" = x ; then
18625 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
18626 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
18627 binding_prereqs_failed=1
18629 if test "x$OCAMLDEP" = x ; then
18630 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
18631 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
18632 binding_prereqs_failed=1
18634 if test "x$OCAMLOPT" = x ; then
18635 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
18636 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
18638 if test "x$with_ocaml_libdir" != xauto ; then
18639 OCAML_LIBDIR=$with_ocaml_libdir
18642 ocaml_stdlib="`"$OCAMLC" -where`"
18643 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18645 # ocaml stdlib is beneath our prefix; use stdlib
18646 OCAML_LIBDIR=$ocaml_stdlib
18649 # ocaml stdlib is outside our prefix; use libdir/ocaml
18650 OCAML_LIBDIR=${prefix}/lib/ocaml
18657 if test "$binding_prereqs_failed" = 1 ; then
18658 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18659 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18660 { (exit 1); exit 1; }; }
18663 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18664 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18665 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18669 ac_cpp='$CXXCPP $CPPFLAGS'
18670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18674 oldcxxflags="$CXXFLAGS"
18675 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18676 cat >conftest.$ac_ext <<_ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18682 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18691 rm -f conftest.$ac_objext
18692 if { (ac_try="$ac_compile"
18693 case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698 (eval "$ac_compile") 2>conftest.er1
18700 grep -v '^ *+' conftest.er1 >conftest.err
18702 cat conftest.err >&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); } &&
18705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18706 { (case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711 (eval "$ac_try") 2>&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; } &&
18715 { ac_try='test -s conftest.$ac_objext'
18716 { (case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_try") 2>&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; }; then
18725 llvm_cv_cxx_visibility_inlines_hidden=yes
18727 echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18730 llvm_cv_cxx_visibility_inlines_hidden=no
18733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18734 CXXFLAGS="$oldcxxflags"
18736 ac_cpp='$CPP $CPPFLAGS'
18737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18743 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18744 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18745 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18746 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18749 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18754 if test "$llvm_cv_link_use_r" = "yes" ; then
18761 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18762 RDYNAMIC="-rdynamic"
18769 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18776 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18778 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18780 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18782 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18784 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18787 ac_config_files="$ac_config_files Makefile.config"
18790 ac_config_files="$ac_config_files llvm.spec"
18793 ac_config_files="$ac_config_files docs/doxygen.cfg"
18796 if test "${clang_src_root}" = ""; then
18797 clang_src_root="$srcdir/tools/clang"
18799 if test -f ${clang_src_root}/README.txt; then
18800 configh="include/clang/Config/config.h"
18801 doxy="docs/doxygen.cfg"
18802 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18804 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18808 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18811 test "x$program_prefix" = "xNONE" && program_prefix=""
18815 ac_config_commands="$ac_config_commands setup"
18817 ac_config_commands="$ac_config_commands Makefile"
18820 ac_config_commands="$ac_config_commands Makefile.common"
18823 ac_config_commands="$ac_config_commands examples/Makefile"
18826 ac_config_commands="$ac_config_commands lib/Makefile"
18829 ac_config_commands="$ac_config_commands test/Makefile"
18832 ac_config_commands="$ac_config_commands test/Makefile.tests"
18835 ac_config_commands="$ac_config_commands unittests/Makefile"
18838 ac_config_commands="$ac_config_commands tools/Makefile"
18841 ac_config_commands="$ac_config_commands utils/Makefile"
18844 ac_config_commands="$ac_config_commands projects/Makefile"
18847 ac_config_commands="$ac_config_commands bindings/Makefile"
18850 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18854 cat >confcache <<\_ACEOF
18855 # This file is a shell script that caches the results of configure
18856 # tests run on this system so they can be shared between configure
18857 # scripts and configure runs, see configure's option --config-cache.
18858 # It is not useful on other systems. If it contains results you don't
18859 # want to keep, you may remove or edit it.
18861 # config.status only pays attention to the cache file if you give it
18862 # the --recheck option to rerun configure.
18864 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18865 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18866 # following values.
18870 # The following way of writing the cache mishandles newlines in values,
18871 # but we know of no workaround that is simple, portable, and efficient.
18872 # So, we kill variables containing newlines.
18873 # Ultrix sh set writes to stderr and can't be redirected directly,
18874 # and sets the high bit in the cache file unless we assign to the vars.
18876 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18877 eval ac_val=\$$ac_var
18881 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18882 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18885 _ | IFS | as_nl) ;; #(
18886 *) $as_unset $ac_var ;;
18892 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18893 *${as_nl}ac_space=\ *)
18894 # `set' does not quote correctly, so add quotes (double-quote
18895 # substitution turns \\\\ into \\, and sed turns \\ into \).
18898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18901 # `set' quotes correctly as required by POSIX, so do not add quotes.
18902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18911 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18913 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18915 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18916 if test -w "$cache_file"; then
18917 test "x$cache_file" != "x/dev/null" &&
18918 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18919 echo "$as_me: updating cache $cache_file" >&6;}
18920 cat confcache >$cache_file
18922 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18923 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18929 # Let make expand exec_prefix.
18930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18932 DEFS=-DHAVE_CONFIG_H
18936 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18937 # 1. Remove the extension, and $U if already installed.
18938 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18939 ac_i=`echo "$ac_i" | sed "$ac_script"`
18940 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18941 # will be set to the directory where LIBOBJS objects are built.
18942 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18943 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18945 LIBOBJS=$ac_libobjs
18947 LTLIBOBJS=$ac_ltlibobjs
18951 : ${CONFIG_STATUS=./config.status}
18952 ac_clean_files_save=$ac_clean_files
18953 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18954 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18955 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18956 cat >$CONFIG_STATUS <<_ACEOF
18958 # Generated by $as_me.
18959 # Run this file to recreate the current configuration.
18960 # Compiler output produced by configure, useful for debugging
18961 # configure, is in config.log if it exists.
18964 ac_cs_recheck=false
18966 SHELL=\${CONFIG_SHELL-$SHELL}
18969 cat >>$CONFIG_STATUS <<\_ACEOF
18970 ## --------------------- ##
18971 ## M4sh Initialization. ##
18972 ## --------------------- ##
18974 # Be Bourne compatible
18975 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18978 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18979 # is contrary to our usage. Disable this feature.
18980 alias -g '${1+"$@"}'='"$@"'
18981 setopt NO_GLOB_SUBST
18983 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18985 BIN_SH=xpg4; export BIN_SH # for Tru64
18986 DUALCASE=1; export DUALCASE # for MKS sh
18990 # Avoid depending upon Character Ranges.
18991 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18992 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18993 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18994 as_cr_digits='0123456789'
18995 as_cr_alnum=$as_cr_Letters$as_cr_digits
18997 # The user is always right.
18998 if test "${PATH_SEPARATOR+set}" != set; then
18999 echo "#! /bin/sh" >conf$$.sh
19000 echo "exit 0" >>conf$$.sh
19002 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19010 # Support unset when possible.
19011 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19019 # We need space, tab and new line, in precisely that order. Quoting is
19020 # there to prevent editors from complaining about space-tab.
19021 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19022 # splitting by setting IFS to empty value.)
19027 # Find who we are. Look in the path if we contain no directory separator.
19029 *[\\/]* ) as_myself=$0 ;;
19030 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19031 for as_dir in $PATH
19034 test -z "$as_dir" && as_dir=.
19035 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19041 # We did not find ourselves, most probably we were run as `sh COMMAND'
19042 # in which case we are not to be found in the path.
19043 if test "x$as_myself" = x; then
19046 if test ! -f "$as_myself"; then
19047 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19048 { (exit 1); exit 1; }
19051 # Work around bugs in pre-3.0 UWIN ksh.
19052 for as_var in ENV MAIL MAILPATH
19053 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19061 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19062 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19063 LC_TELEPHONE LC_TIME
19065 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19066 eval $as_var=C; export $as_var
19068 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19072 # Required to use basename.
19073 if expr a : '\(a\)' >/dev/null 2>&1 &&
19074 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19080 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19081 as_basename=basename
19087 # Name of the executable.
19088 as_me=`$as_basename -- "$0" ||
19089 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19090 X"$0" : 'X\(//\)$' \| \
19091 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19093 sed '/^.*\/\([^/][^/]*\)\/*$/{
19112 as_lineno_1=$LINENO
19113 as_lineno_2=$LINENO
19114 test "x$as_lineno_1" != "x$as_lineno_2" &&
19115 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19117 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19118 # uniformly replaced by the line number. The first 'sed' inserts a
19119 # line-number line after each line using $LINENO; the second 'sed'
19120 # does the real work. The second script uses 'N' to pair each
19121 # line-number line with the line containing $LINENO, and appends
19122 # trailing '-' during substitution so that $LINENO is not a special
19123 # case at line end.
19124 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19125 # scripts with optimization help from Paolo Bonzini. Blame Lee
19126 # E. McMahon (1931-1989) for sed's syntax. :-)
19138 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19141 ' >$as_me.lineno &&
19142 chmod +x "$as_me.lineno" ||
19143 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19144 { (exit 1); exit 1; }; }
19146 # Don't try to exec as it changes $[0], causing all sort of problems
19147 # (the dirname of $[0] is not the place where we might find the
19148 # original and so on. Autoconf is especially sensitive to this).
19149 . "./$as_me.lineno"
19150 # Exit status is that of the last command.
19155 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19161 ECHO_C= ECHO_N= ECHO_T=
19162 case `echo -n x` in
19164 case `echo 'x\c'` in
19165 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19172 if expr a : '\(a\)' >/dev/null 2>&1 &&
19173 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19179 rm -f conf$$ conf$$.exe conf$$.file
19180 if test -d conf$$.dir; then
19181 rm -f conf$$.dir/conf$$.file
19187 if ln -s conf$$.file conf$$ 2>/dev/null; then
19189 # ... but there are two gotchas:
19190 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19191 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19192 # In both cases, we have to default to `cp -p'.
19193 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19195 elif ln conf$$.file conf$$ 2>/dev/null; then
19200 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19201 rmdir conf$$.dir 2>/dev/null
19203 if mkdir -p . 2>/dev/null; then
19206 test -d ./-p && rmdir ./-p
19210 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
19211 # systems may use methods other than mode bits to determine executability.
19212 cat >conf$$.file <<_ASEOF
19216 chmod +x conf$$.file
19217 if test -x conf$$.file >/dev/null 2>&1; then
19218 as_executable_p="test -x"
19224 # Sed expression to map a string onto a valid CPP name.
19225 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19227 # Sed expression to map a string onto a valid variable name.
19228 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19233 # Save the log message, to keep $[0] and so on meaningful, and to
19234 # report actual input values of CONFIG_FILES etc. instead of their
19235 # values after options handling.
19237 This file was extended by LLVM $as_me 3.6.0svn, which was
19238 generated by GNU Autoconf 2.60. Invocation command line was
19240 CONFIG_FILES = $CONFIG_FILES
19241 CONFIG_HEADERS = $CONFIG_HEADERS
19242 CONFIG_LINKS = $CONFIG_LINKS
19243 CONFIG_COMMANDS = $CONFIG_COMMANDS
19246 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19251 cat >>$CONFIG_STATUS <<_ACEOF
19252 # Files that config.status was made for.
19253 config_files="$ac_config_files"
19254 config_headers="$ac_config_headers"
19255 config_commands="$ac_config_commands"
19259 cat >>$CONFIG_STATUS <<\_ACEOF
19261 \`$as_me' instantiates files from templates according to the
19262 current configuration.
19264 Usage: $0 [OPTIONS] [FILE]...
19266 -h, --help print this help, then exit
19267 -V, --version print version number, then exit
19268 -q, --quiet do not print progress messages
19269 -d, --debug don't remove temporary files
19270 --recheck update $as_me by reconfiguring in the same conditions
19271 --file=FILE[:TEMPLATE]
19272 instantiate the configuration file FILE
19273 --header=FILE[:TEMPLATE]
19274 instantiate the configuration header FILE
19276 Configuration files:
19279 Configuration headers:
19282 Configuration commands:
19285 Report bugs to <bug-autoconf@gnu.org>."
19288 cat >>$CONFIG_STATUS <<_ACEOF
19290 LLVM config.status 3.6.0svn
19291 configured by $0, generated by GNU Autoconf 2.60,
19292 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19294 Copyright (C) 2006 Free Software Foundation, Inc.
19295 This config.status script is free software; the Free Software Foundation
19296 gives unlimited permission to copy, distribute and modify it."
19303 cat >>$CONFIG_STATUS <<\_ACEOF
19304 # If no file are specified by the user, then we need to provide default
19305 # value. By we need to know if files were specified by the user.
19311 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19312 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19323 # Handling of the options.
19324 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19326 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19327 echo "$ac_cs_version"; exit ;;
19328 --debug | --debu | --deb | --de | --d | -d )
19330 --file | --fil | --fi | --f )
19332 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19333 ac_need_defaults=false;;
19334 --header | --heade | --head | --hea )
19336 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19337 ac_need_defaults=false;;
19339 # Conflict between --help and --header
19340 { echo "$as_me: error: ambiguous option: $1
19341 Try \`$0 --help' for more information." >&2
19342 { (exit 1); exit 1; }; };;
19343 --help | --hel | -h )
19344 echo "$ac_cs_usage"; exit ;;
19345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19346 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19349 # This is an error.
19350 -*) { echo "$as_me: error: unrecognized option: $1
19351 Try \`$0 --help' for more information." >&2
19352 { (exit 1); exit 1; }; } ;;
19354 *) ac_config_targets="$ac_config_targets $1"
19355 ac_need_defaults=false ;;
19361 ac_configure_extra_args=
19363 if $ac_cs_silent; then
19365 ac_configure_extra_args="$ac_configure_extra_args --silent"
19369 cat >>$CONFIG_STATUS <<_ACEOF
19370 if \$ac_cs_recheck; then
19371 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19372 CONFIG_SHELL=$SHELL
19373 export CONFIG_SHELL
19374 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19378 cat >>$CONFIG_STATUS <<\_ACEOF
19382 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19383 ## Running $as_me. ##
19389 cat >>$CONFIG_STATUS <<_ACEOF
19393 llvm_src="${srcdir}"
19397 cat >>$CONFIG_STATUS <<\_ACEOF
19399 # Handling of arguments.
19400 for ac_config_target in $ac_config_targets
19402 case $ac_config_target in
19403 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19404 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19405 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19406 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19407 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19408 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19409 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19410 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19411 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19412 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19413 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19414 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19415 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19416 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19417 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19418 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19419 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19420 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19421 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19422 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19423 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19424 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19425 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19426 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19427 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19428 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19430 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19431 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19432 { (exit 1); exit 1; }; };;
19437 # If the user did not use the arguments to specify the items to instantiate,
19438 # then the envvar interface is used. Set only those that are not.
19439 # We use the long form for the default assignment because of an extremely
19440 # bizarre bug on SunOS 4.1.3.
19441 if $ac_need_defaults; then
19442 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19443 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19444 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19447 # Have a temporary directory for convenience. Make it in the build tree
19448 # simply because there is no reason against having it here, and in addition,
19449 # creating and moving files from /tmp can sometimes cause problems.
19450 # Hook for its removal unless debugging.
19451 # Note that there is a small window in which the directory will not be cleaned:
19452 # after its creation but before its name has been assigned to `$tmp'.
19456 trap 'exit_status=$?
19457 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19459 trap '{ (exit 1); exit 1; }' 1 2 13 15
19461 # Create a (secure) tmp directory for tmp files.
19464 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19465 test -n "$tmp" && test -d "$tmp"
19468 tmp=./conf$$-$RANDOM
19469 (umask 077 && mkdir "$tmp")
19472 echo "$me: cannot create a temporary directory in ." >&2
19473 { (exit 1); exit 1; }
19477 # Set up the sed scripts for CONFIG_FILES section.
19480 # No need to generate the scripts if there are no CONFIG_FILES.
19481 # This happens for instance when ./config.status config.h
19482 if test -n "$CONFIG_FILES"; then
19489 for ac_last_try in false false false false false :; do
19490 cat >conf$$subs.sed <<_ACEOF
19491 SHELL!$SHELL$ac_delim
19492 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19493 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19494 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19495 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19496 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19497 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19498 exec_prefix!$exec_prefix$ac_delim
19499 prefix!$prefix$ac_delim
19500 program_transform_name!$program_transform_name$ac_delim
19501 bindir!$bindir$ac_delim
19502 sbindir!$sbindir$ac_delim
19503 libexecdir!$libexecdir$ac_delim
19504 datarootdir!$datarootdir$ac_delim
19505 datadir!$datadir$ac_delim
19506 sysconfdir!$sysconfdir$ac_delim
19507 sharedstatedir!$sharedstatedir$ac_delim
19508 localstatedir!$localstatedir$ac_delim
19509 includedir!$includedir$ac_delim
19510 oldincludedir!$oldincludedir$ac_delim
19511 docdir!$docdir$ac_delim
19512 infodir!$infodir$ac_delim
19513 htmldir!$htmldir$ac_delim
19514 dvidir!$dvidir$ac_delim
19515 pdfdir!$pdfdir$ac_delim
19516 psdir!$psdir$ac_delim
19517 libdir!$libdir$ac_delim
19518 localedir!$localedir$ac_delim
19519 mandir!$mandir$ac_delim
19520 DEFS!$DEFS$ac_delim
19521 ECHO_C!$ECHO_C$ac_delim
19522 ECHO_N!$ECHO_N$ac_delim
19523 ECHO_T!$ECHO_T$ac_delim
19524 LIBS!$LIBS$ac_delim
19525 build_alias!$build_alias$ac_delim
19526 host_alias!$host_alias$ac_delim
19527 target_alias!$target_alias$ac_delim
19528 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19529 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19530 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19531 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19532 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19534 CFLAGS!$CFLAGS$ac_delim
19535 LDFLAGS!$LDFLAGS$ac_delim
19536 CPPFLAGS!$CPPFLAGS$ac_delim
19537 ac_ct_CC!$ac_ct_CC$ac_delim
19538 EXEEXT!$EXEEXT$ac_delim
19539 OBJEXT!$OBJEXT$ac_delim
19541 CXXFLAGS!$CXXFLAGS$ac_delim
19542 ac_ct_CXX!$ac_ct_CXX$ac_delim
19544 subdirs!$subdirs$ac_delim
19545 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19546 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19547 build!$build$ac_delim
19548 build_cpu!$build_cpu$ac_delim
19549 build_vendor!$build_vendor$ac_delim
19550 build_os!$build_os$ac_delim
19551 host!$host$ac_delim
19552 host_cpu!$host_cpu$ac_delim
19553 host_vendor!$host_vendor$ac_delim
19554 host_os!$host_os$ac_delim
19555 target!$target$ac_delim
19556 target_cpu!$target_cpu$ac_delim
19557 target_vendor!$target_vendor$ac_delim
19558 target_os!$target_os$ac_delim
19560 HOST_OS!$HOST_OS$ac_delim
19561 TARGET_OS!$TARGET_OS$ac_delim
19562 LINKALL!$LINKALL$ac_delim
19563 NOLINKALL!$NOLINKALL$ac_delim
19564 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19565 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19566 ARCH!$ARCH$ac_delim
19567 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19568 HOST_ARCH!$HOST_ARCH$ac_delim
19569 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19570 BUILD_CC!$BUILD_CC$ac_delim
19571 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19572 BUILD_CXX!$BUILD_CXX$ac_delim
19573 CVSBUILD!$CVSBUILD$ac_delim
19574 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19575 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19576 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19577 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19578 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19579 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19580 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19581 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19582 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19583 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19584 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19585 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19586 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19587 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19590 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19592 elif $ac_last_try; then
19593 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19594 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19595 { (exit 1); exit 1; }; }
19597 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19601 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19602 if test -n "$ac_eof"; then
19603 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19604 ac_eof=`expr $ac_eof + 1`
19607 cat >>$CONFIG_STATUS <<_ACEOF
19608 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19612 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19613 s/^/s,@/; s/!/@,|#_!!_#|/
19616 s/'"$ac_delim"'$/,g/; t
19618 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19619 ' >>$CONFIG_STATUS <conf$$subs.sed
19620 rm -f conf$$subs.sed
19621 cat >>$CONFIG_STATUS <<_ACEOF
19627 for ac_last_try in false false false false false :; do
19628 cat >conf$$subs.sed <<_ACEOF
19629 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19631 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19632 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19633 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19634 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19635 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19636 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19637 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19638 ENABLE_PIC!$ENABLE_PIC$ac_delim
19639 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19640 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19641 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19642 ALL_TARGETS!$ALL_TARGETS$ac_delim
19643 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19644 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19645 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19646 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19647 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19648 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19649 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19650 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19651 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19652 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19653 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19654 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19655 ifGNUmake!$ifGNUmake$ac_delim
19656 LN_S!$LN_S$ac_delim
19660 DATE!$DATE$ac_delim
19661 FIND!$FIND$ac_delim
19662 GREP!$GREP$ac_delim
19663 MKDIR!$MKDIR$ac_delim
19665 RANLIB!$RANLIB$ac_delim
19670 BINPWD!$BINPWD$ac_delim
19672 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19673 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19674 INSTALL_DATA!$INSTALL_DATA$ac_delim
19675 BZIP2!$BZIP2$ac_delim
19677 DOXYGEN!$DOXYGEN$ac_delim
19678 GROFF!$GROFF$ac_delim
19679 GZIPBIN!$GZIPBIN$ac_delim
19680 PDFROFF!$PDFROFF$ac_delim
19682 OCAMLC!$OCAMLC$ac_delim
19683 OCAMLOPT!$OCAMLOPT$ac_delim
19684 OCAMLDEP!$OCAMLDEP$ac_delim
19685 OCAMLDOC!$OCAMLDOC$ac_delim
19687 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19688 EGREP!$EGREP$ac_delim
19689 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19690 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19691 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19692 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19693 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19694 PYTHON!$PYTHON$ac_delim
19695 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19696 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19697 USE_OPROFILE!$USE_OPROFILE$ac_delim
19698 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19699 XML2CONFIG!$XML2CONFIG$ac_delim
19700 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19701 LIBXML2_INC!$LIBXML2_INC$ac_delim
19702 CXXCPP!$CXXCPP$ac_delim
19703 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19704 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19705 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19706 MMAP_FILE!$MMAP_FILE$ac_delim
19707 SHLIBEXT!$SHLIBEXT$ac_delim
19708 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19709 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19710 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19711 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19712 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19713 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19714 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19715 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19716 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19717 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19718 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19719 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19720 RPATH!$RPATH$ac_delim
19721 RDYNAMIC!$RDYNAMIC$ac_delim
19722 program_prefix!$program_prefix$ac_delim
19723 LIBOBJS!$LIBOBJS$ac_delim
19724 LTLIBOBJS!$LTLIBOBJS$ac_delim
19727 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
19729 elif $ac_last_try; then
19730 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19731 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19732 { (exit 1); exit 1; }; }
19734 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19738 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19739 if test -n "$ac_eof"; then
19740 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19741 ac_eof=`expr $ac_eof + 1`
19744 cat >>$CONFIG_STATUS <<_ACEOF
19745 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19749 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19750 s/^/s,@/; s/!/@,|#_!!_#|/
19753 s/'"$ac_delim"'$/,g/; t
19755 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19756 ' >>$CONFIG_STATUS <conf$$subs.sed
19757 rm -f conf$$subs.sed
19758 cat >>$CONFIG_STATUS <<_ACEOF
19763 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19764 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19765 # trailing colons and then remove the whole line if VPATH becomes empty
19766 # (actually we leave an empty line to preserve line numbers).
19767 if test "x$srcdir" = x.; then
19768 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19769 s/:*\$(srcdir):*/:/
19770 s/:*\${srcdir}:*/:/
19772 s/^\([^=]*=[ ]*\):*/\1/
19778 cat >>$CONFIG_STATUS <<\_ACEOF
19779 fi # test -n "$CONFIG_FILES"
19782 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19785 :[FHLC]) ac_mode=$ac_tag; continue;;
19787 case $ac_mode$ac_tag in
19789 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19790 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19791 { (exit 1); exit 1; }; };;
19792 :[FH]-) ac_tag=-:-;;
19793 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19810 -) ac_f="$tmp/stdin";;
19811 *) # Look for the file first in the build tree, then in the source tree
19812 # (if the path is not absolute). The absolute path cannot be DOS-style,
19813 # because $ac_f cannot contain `:'.
19817 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19819 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19820 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19821 { (exit 1); exit 1; }; };;
19823 ac_file_inputs="$ac_file_inputs $ac_f"
19826 # Let's still pretend it is `configure' which instantiates (i.e., don't
19827 # use $as_me), people would be surprised to read:
19828 # /* config.h. Generated by config.status. */
19829 configure_input="Generated from "`IFS=:
19830 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19831 if test x"$ac_file" != x-; then
19832 configure_input="$ac_file. $configure_input"
19833 { echo "$as_me:$LINENO: creating $ac_file" >&5
19834 echo "$as_me: creating $ac_file" >&6;}
19838 *:-:* | *:-) cat >"$tmp/stdin";;
19843 ac_dir=`$as_dirname -- "$ac_file" ||
19844 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19845 X"$ac_file" : 'X\(//\)[^/]' \| \
19846 X"$ac_file" : 'X\(//\)$' \| \
19847 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19853 /^X\(\/\/\)[^/].*/{
19868 -*) as_dir=./$as_dir;;
19870 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19874 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19875 *) as_qdir=$as_dir;;
19877 as_dirs="'$as_qdir' $as_dirs"
19878 as_dir=`$as_dirname -- "$as_dir" ||
19879 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19880 X"$as_dir" : 'X\(//\)[^/]' \| \
19881 X"$as_dir" : 'X\(//\)$' \| \
19882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19888 /^X\(\/\/\)[^/].*/{
19901 test -d "$as_dir" && break
19903 test -z "$as_dirs" || eval "mkdir $as_dirs"
19904 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19905 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19906 { (exit 1); exit 1; }; }; }
19910 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19913 # A ".." for each directory in $ac_dir_suffix.
19914 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19915 case $ac_top_builddir_sub in
19916 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19917 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19920 ac_abs_top_builddir=$ac_pwd
19921 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19922 # for backward compatibility:
19923 ac_top_builddir=$ac_top_build_prefix
19926 .) # We are building in place.
19928 ac_top_srcdir=$ac_top_builddir_sub
19929 ac_abs_top_srcdir=$ac_pwd ;;
19930 [\\/]* | ?:[\\/]* ) # Absolute name.
19931 ac_srcdir=$srcdir$ac_dir_suffix;
19932 ac_top_srcdir=$srcdir
19933 ac_abs_top_srcdir=$srcdir ;;
19934 *) # Relative name.
19935 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19936 ac_top_srcdir=$ac_top_build_prefix$srcdir
19937 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19939 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19949 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19950 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19954 cat >>$CONFIG_STATUS <<\_ACEOF
19955 # If the template does not know about datarootdir, expand it.
19956 # FIXME: This hack should be removed a few years after 2.60.
19957 ac_datarootdir_hack=; ac_datarootdir_seen=
19959 case `sed -n '/datarootdir/ {
19968 ' $ac_file_inputs` in
19969 *datarootdir*) ac_datarootdir_seen=yes;;
19970 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19971 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19972 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19974 cat >>$CONFIG_STATUS <<_ACEOF
19975 ac_datarootdir_hack='
19976 s&@datadir@&$datadir&g
19977 s&@docdir@&$docdir&g
19978 s&@infodir@&$infodir&g
19979 s&@localedir@&$localedir&g
19980 s&@mandir@&$mandir&g
19981 s&\\\${datarootdir}&$datarootdir&g' ;;
19985 # Neutralize VPATH when `$srcdir' = `.'.
19986 # Shell code in configure.ac might set extrasub.
19987 # FIXME: do we really want to maintain this feature?
19988 cat >>$CONFIG_STATUS <<_ACEOF
19992 cat >>$CONFIG_STATUS <<\_ACEOF
19994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19995 s&@configure_input@&$configure_input&;t t
19996 s&@top_builddir@&$ac_top_builddir_sub&;t t
19997 s&@srcdir@&$ac_srcdir&;t t
19998 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19999 s&@top_srcdir@&$ac_top_srcdir&;t t
20000 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20001 s&@builddir@&$ac_builddir&;t t
20002 s&@abs_builddir@&$ac_abs_builddir&;t t
20003 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20004 s&@INSTALL@&$ac_INSTALL&;t t
20005 $ac_datarootdir_hack
20006 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
20008 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20009 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20010 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20011 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20012 which seems to be undefined. Please make sure it is defined." >&5
20013 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20014 which seems to be undefined. Please make sure it is defined." >&2;}
20018 -) cat "$tmp/out"; rm -f "$tmp/out";;
20019 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20028 # Transform confdefs.h into a sed script `conftest.defines', that
20029 # substitutes the proper values into config.h.in to produce config.h.
20030 rm -f conftest.defines conftest.tail
20031 # First, append a space to every undef/define line, to ease matching.
20032 echo 's/$/ /' >conftest.defines
20033 # Then, protect against being on the right side of a sed subst, or in
20034 # an unquoted here document, in config.status. If some macros were
20035 # called several times there might be several #defines for the same
20036 # symbol, which is useless. But do not sort them, since the last
20037 # AC_DEFINE must be honored.
20038 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20039 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20040 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20041 # PARAMS is the parameter list in the macro definition--in most cases, it's
20042 # just an empty string.
20043 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20044 ac_dB='\\)[ (].*,\\1define\\2'
20052 s/^[ ]*#[ ]*define[ ][ ]*//
20057 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20058 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20059 ' >>conftest.defines
20061 # Remove the space that was appended to ease matching.
20062 # Then replace #undef with comments. This is necessary, for
20063 # example, in the case of _POSIX_SOURCE, which is predefined and required
20064 # on some systems where configure will not decide to define it.
20065 # (The regexp can be short, since the line contains either #define or #undef.)
20067 s,^[ #]*u.*,/* & */,' >>conftest.defines
20069 # Break up conftest.defines:
20070 ac_max_sed_lines=50
20072 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20073 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20074 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20076 ac_in='$ac_file_inputs'
20077 ac_out='"$tmp/out1"'
20078 ac_nxt='"$tmp/out2"'
20082 # Write a here document:
20083 cat >>$CONFIG_STATUS <<_ACEOF
20084 # First, check the format of the line:
20085 cat >"\$tmp/defines.sed" <<\\CEOF
20086 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20087 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20091 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20093 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20094 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20095 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20096 grep . conftest.tail >/dev/null || break
20097 rm -f conftest.defines
20098 mv conftest.tail conftest.defines
20100 rm -f conftest.defines conftest.tail
20102 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20103 cat >>$CONFIG_STATUS <<\_ACEOF
20104 if test x"$ac_file" != x-; then
20105 echo "/* $configure_input */" >"$tmp/config.h"
20106 cat "$ac_result" >>"$tmp/config.h"
20107 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20108 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20109 echo "$as_me: $ac_file is unchanged" >&6;}
20112 mv "$tmp/config.h" $ac_file
20115 echo "/* $configure_input */"
20121 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20122 echo "$as_me: executing $ac_file commands" >&6;}
20127 case $ac_file$ac_mode in
20128 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20129 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20130 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20131 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20132 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20133 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20134 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20135 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20136 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20137 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20138 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20139 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20140 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20141 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20142 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20143 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20144 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20145 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20146 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20147 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20148 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20149 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20150 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20151 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20157 { (exit 0); exit 0; }
20159 chmod +x $CONFIG_STATUS
20160 ac_clean_files=$ac_clean_files_save
20163 # configure is writing to config.log, and then calls config.status.
20164 # config.status does its own redirection, appending to config.log.
20165 # Unfortunately, on DOS this fails, as config.log is still kept open
20166 # by configure, so config.status won't be able to write to it; its
20167 # output is simply discarded. So we exec the FD to /dev/null,
20168 # effectively closing config.log, so it can be properly (re)opened and
20169 # appended to by config.status. When coming back to configure, we
20170 # need to make the FD available again.
20171 if test "$no_create" != yes; then
20173 ac_config_status_args=
20174 test "$silent" = yes &&
20175 ac_config_status_args="$ac_config_status_args --quiet"
20177 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20179 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20180 # would make configure fail if this is the last instruction.
20181 $ac_cs_success || { (exit 1); exit 1; }
20185 # CONFIG_SUBDIRS section.
20187 if test "$no_recursion" != yes; then
20189 # Remove --cache-file and --srcdir arguments so they do not pile up.
20190 ac_sub_configure_args=
20192 eval "set x $ac_configure_args"
20196 if test -n "$ac_prev"; then
20201 -cache-file | --cache-file | --cache-fil | --cache-fi \
20202 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20203 ac_prev=cache_file ;;
20204 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20205 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20208 --config-cache | -C)
20210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20214 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20216 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20220 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20222 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20226 # Always prepend --prefix to ensure using the same prefix
20227 # in subdir configurations.
20228 ac_arg="--prefix=$prefix"
20230 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20232 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20235 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20237 # Do not complain, so a configure script can configure whichever
20238 # parts of a large source tree are present.
20239 test -d "$srcdir/$ac_dir" || continue
20241 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20242 echo "$as_me:$LINENO: $ac_msg" >&5
20246 -*) as_dir=./$as_dir;;
20248 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20252 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20253 *) as_qdir=$as_dir;;
20255 as_dirs="'$as_qdir' $as_dirs"
20256 as_dir=`$as_dirname -- "$as_dir" ||
20257 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20258 X"$as_dir" : 'X\(//\)[^/]' \| \
20259 X"$as_dir" : 'X\(//\)$' \| \
20260 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20266 /^X\(\/\/\)[^/].*/{
20279 test -d "$as_dir" && break
20281 test -z "$as_dirs" || eval "mkdir $as_dirs"
20282 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20283 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20284 { (exit 1); exit 1; }; }; }
20288 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20290 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20291 # A ".." for each directory in $ac_dir_suffix.
20292 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20293 case $ac_top_builddir_sub in
20294 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20295 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20298 ac_abs_top_builddir=$ac_pwd
20299 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20300 # for backward compatibility:
20301 ac_top_builddir=$ac_top_build_prefix
20304 .) # We are building in place.
20306 ac_top_srcdir=$ac_top_builddir_sub
20307 ac_abs_top_srcdir=$ac_pwd ;;
20308 [\\/]* | ?:[\\/]* ) # Absolute name.
20309 ac_srcdir=$srcdir$ac_dir_suffix;
20310 ac_top_srcdir=$srcdir
20311 ac_abs_top_srcdir=$srcdir ;;
20312 *) # Relative name.
20313 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20314 ac_top_srcdir=$ac_top_build_prefix$srcdir
20315 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20317 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20322 # Check for guested configure; otherwise get Cygnus style configure.
20323 if test -f "$ac_srcdir/configure.gnu"; then
20324 ac_sub_configure=$ac_srcdir/configure.gnu
20325 elif test -f "$ac_srcdir/configure"; then
20326 ac_sub_configure=$ac_srcdir/configure
20327 elif test -f "$ac_srcdir/configure.in"; then
20328 # This should be Cygnus configure.
20329 ac_sub_configure=$ac_aux_dir/configure
20331 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20332 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20336 # The recursion is here.
20337 if test -n "$ac_sub_configure"; then
20338 # Make the cache file name correct relative to the subdirectory.
20339 case $cache_file in
20340 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20341 *) # Relative name.
20342 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20345 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20346 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20347 # The eval makes quoting arguments work.
20348 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20349 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20350 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20351 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20352 { (exit 1); exit 1; }; }