2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.7.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.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.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
758 HAVE_LINK_VERSION_SCRIPT
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
763 NO_MAYBE_UNINITIALIZED
792 ENABLE_VISIBILITY_INLINES_HIDDEN
799 ac_precious_vars='build_alias
810 ac_subdirs_all='projects/test-suite
813 projects/llvm-poolalloc
817 # Initialize some variables set by options.
819 ac_init_version=false
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
829 program_transform_name=s,x,x,
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
903 cache_file=config.cache ;;
905 -datadir | --datadir | --datadi | --datad)
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
917 -disable-* | --disable-*)
918 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922 { (exit 1); exit 1; }; }
923 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924 eval enable_$ac_feature=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 -enable-* | --enable-*)
937 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
958 -help | --help | --hel | --he | -h)
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1107 -site=* | --site=* | --sit=*)
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1134 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137 { echo "$as_me: error: invalid package name: $ac_package" >&2
1138 { (exit 1); exit 1; }; }
1139 ac_package=`echo $ac_package| sed 's/-/_/g'`
1140 eval with_$ac_package=\$ac_optarg ;;
1142 -without-* | --without-*)
1143 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid package name: $ac_package" >&2
1147 { (exit 1); exit 1; }; }
1148 ac_package=`echo $ac_package | sed 's/-/_/g'`
1149 eval with_$ac_package=no ;;
1152 # Obsolete; use --with-x.
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1169 -*) { echo "$as_me: error: unrecognized option: $ac_option
1170 Try \`$0 --help' for more information." >&2
1171 { (exit 1); exit 1; }; }
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179 { (exit 1); exit 1; }; }
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 { echo "$as_me: error: missing argument to $ac_option" >&2
1197 { (exit 1); exit 1; }; }
1200 # Be sure to have absolute directory names.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1206 eval ac_val=\$$ac_var
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212 { (exit 1); exit 1; }; }
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1220 target=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 { echo "$as_me: error: Working directory cannot be determined" >&2
1243 { (exit 1); exit 1; }; }
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245 { echo "$as_me: error: pwd does not report name of working directory" >&2
1246 { (exit 1); exit 1; }; }
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$0" ||
1254 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$0" : 'X\(//\)[^/]' \| \
1256 X"$0" : 'X\(//\)$' \| \
1257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1281 ac_srcdir_defaulted=no
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286 { (exit 1); exit 1; }; }
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291 { (exit 1); exit 1; }; }
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-polly Use polly if available (default is YES)
1391 --enable-libcpp Use libc++ if available (default is NO)
1392 --enable-compiler-version-checks
1393 Check the version of the host compiler (default is
1395 --enable-cxx1y Use c++1y if available (default is NO)
1396 --enable-split-dwarf Use split-dwarf if available (default is NO)
1397 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1398 --enable-clang-plugin-support
1399 Enable plugin support in clang (default is YES)
1400 --enable-clang-static-analyzer
1401 Enable building of clang Static Analyzer (default is
1403 --enable-optimized Compile with optimizations enabled (default is NO)
1404 --enable-profiling Compile with profiling enabled (default is NO)
1405 --enable-assertions Compile with assertion checks enabled (default is
1407 --enable-werror Compile with -Werror enabled (default is NO)
1408 --enable-expensive-checks
1409 Compile with expensive debug checks enabled (default
1411 --enable-debug-runtime Build runtime libs with debug symbols (default is
1413 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1414 optimization is on and YES if it's off)
1415 --enable-keep-symbols Do not strip installed executables)
1416 --enable-jit Enable Just In Time Compiling (default is YES)
1417 --enable-docs Build documents (default is YES)
1418 --enable-doxygen Build doxygen documentation (default is NO)
1419 --enable-threads Use threads if available (default is YES)
1420 --enable-pthreads Use pthreads if available (default is YES)
1421 --enable-zlib Use zlib for compression/decompression if available
1423 --enable-pic Build LLVM with Position Independent Code (default
1425 --enable-shared Build a shared library and link tools against it
1427 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1428 Win32 DLL (default is NO)
1429 --enable-timestamps Enable embedding timestamp information in build
1431 --enable-backtraces Enable embedding backtraces on crash (default is
1433 --enable-crash-overrides
1434 Enable crash handling overrides (default is YES)
1435 --enable-targets Build specific host targets: all or
1436 target1,target2,... Valid targets are: host, x86,
1437 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1438 hexagon, xcore, msp430, nvptx, systemz, r600, and
1440 --enable-experimental-targets
1441 Build experimental host targets: disable or
1442 target1,target2,... (default=disable)
1443 --enable-bindings Build specific language bindings:
1444 all,auto,none,{binding-name} (default=auto)
1445 --enable-terminfo Query the terminfo database if available (default is
1447 --enable-libedit Use libedit if available (default is YES)
1448 --enable-libffi Check for the presence of libffi (default is NO)
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-optimize-option Select the compiler options to use for optimized
1455 --with-extra-options Specify additional options to compile LLVM with
1456 --with-extra-ld-options Specify additional options to link LLVM with
1457 --with-ocaml-libdir Specify install location for ocaml bindings (default
1459 --with-clang-srcdir Directory to the out-of-tree Clang source
1460 --with-clang-resource-dir
1461 Relative directory from the Clang binary for
1463 --with-c-include-dirs Colon separated list of directories clang will
1465 --with-gcc-toolchain Directory where gcc is installed.
1466 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1467 --with-binutils-include Specify path to binutils/include/ containing
1468 plugin-api.h file for gold plugin.
1469 --with-bug-report-url Specify the URL where bug reports should be
1470 submitted (default=http://llvm.org/bugs/)
1471 --with-internal-prefix Installation directory for internal files
1472 --with-python path to python
1473 --with-oprofile=<prefix>
1474 Tell OProfile >= 0.9.4 how to symbolize JIT output
1475 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1478 Some influential environment variables:
1479 CC C compiler command
1480 CFLAGS C compiler flags
1481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482 nonstandard directory <lib dir>
1483 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CXX C++ compiler command
1486 CXXFLAGS C++ compiler flags
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1492 Report bugs to <http://llvm.org/bugs/>.
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" || continue
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1520 .) # We are building in place.
1522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
1525 ac_srcdir=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1544 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 cd "$ac_pwd" || { ac_status=$?; break; }
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1553 LLVM configure 3.7.0svn
1554 generated by GNU Autoconf 2.60
1556 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1557 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1561 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1569 It was created by LLVM $as_me 3.7.0svn, which was
1570 generated by GNU Autoconf 2.60. Invocation command line was
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1591 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1595 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir=.
1606 echo "PATH: $as_dir"
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_must_keep_next=false
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1641 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1644 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1646 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647 if test $ac_must_keep_next = true; then
1648 ac_must_keep_next=false # Got value, back to normal.
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1659 -* ) ac_must_keep_next=true ;;
1662 ac_configure_args="$ac_configure_args '$ac_arg'"
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log. We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1686 # The following way of writing the cache mishandles newlines in values,
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1693 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1697 _ | IFS | as_nl) ;; #(
1698 *) $as_unset $ac_var ;;
1703 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704 *${as_nl}ac_space=\ *)
1706 "s/'\''/'\''\\\\'\'''\''/g;
1707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1718 ## ----------------- ##
1719 ## Output variables. ##
1720 ## ----------------- ##
1723 for ac_var in $ac_subst_vars
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1733 if test -n "$ac_subst_files"; then
1735 ## ------------------- ##
1736 ## File substitutions. ##
1737 ## ------------------- ##
1740 for ac_var in $ac_subst_files
1742 eval ac_val=\$$ac_var
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 echo "$ac_var='\''$ac_val'\''"
1751 if test -s confdefs.h; then
1761 test "$ac_signal" != 0 &&
1762 echo "$as_me: caught signal $ac_signal"
1763 echo "$as_me: exit $exit_status"
1765 rm -f core *.core core.conftest.* &&
1766 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1769 for ac_signal in 1 2 13 15; do
1770 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1774 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1775 rm -f -r conftest* confdefs.h
1777 # Predefined preprocessor variables.
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_NAME "$PACKAGE_NAME"
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804 # Let the site file select an alternate cache file if it wants to.
1805 # Prefer explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807 set x "$CONFIG_SITE"
1808 elif test "x$prefix" != xNONE; then
1809 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1811 set x "$ac_default_prefix/share/config.site" \
1812 "$ac_default_prefix/etc/config.site"
1817 if test -r "$ac_site_file"; then
1818 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 echo "$as_me: loading site script $ac_site_file" >&6;}
1820 sed 's/^/| /' "$ac_site_file" >&5
1825 if test -r "$cache_file"; then
1826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 echo "$as_me: loading cache $cache_file" >&6;}
1832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
1837 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 echo "$as_me: creating cache $cache_file" >&6;}
1842 # Check that the precious variables saved in the cache have kept the same
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
1848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
1850 case $ac_old_set,$ac_new_set in
1852 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1856 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
1862 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1865 echo "$as_me: former value: $ac_old_val" >&2;}
1866 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1867 echo "$as_me: current value: $ac_new_val" >&2;}
1868 ac_cache_corrupted=:
1871 # Pass precious variables to config.status.
1872 if test "$ac_new_set" = set; then
1874 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 *) ac_arg=$ac_var=$ac_new_val ;;
1877 case " $ac_configure_args " in
1878 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1879 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883 if $ac_cache_corrupted; then
1884 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888 { (exit 1); exit 1; }; }
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923 LLVM_VERSION_MAJOR=3
1924 LLVM_VERSION_MINOR=7
1925 LLVM_VERSION_PATCH=0
1926 LLVM_VERSION_SUFFIX=svn
1929 cat >>confdefs.h <<_ACEOF
1930 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1934 cat >>confdefs.h <<_ACEOF
1935 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1939 cat >>confdefs.h <<_ACEOF
1940 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1944 cat >>confdefs.h <<_ACEOF
1945 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1954 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1963 for ac_dir in autoconf "$srcdir"/autoconf; do
1964 if test -f "$ac_dir/install-sh"; then
1966 ac_install_sh="$ac_aux_dir/install-sh -c"
1968 elif test -f "$ac_dir/install.sh"; then
1970 ac_install_sh="$ac_aux_dir/install.sh -c"
1972 elif test -f "$ac_dir/shtool"; then
1974 ac_install_sh="$ac_aux_dir/shtool install -c"
1978 if test -z "$ac_aux_dir"; then
1979 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1980 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1981 { (exit 1); exit 1; }; }
1984 # These three variables are undocumented and unsupported,
1985 # and are intended to be withdrawn in a future Autoconf release.
1986 # They can cause serious problems if a builder's source tree is in a directory
1987 # whose full name contains unusual characters.
1988 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1989 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1990 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1994 if test ${srcdir} != "." ; then
1995 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1996 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1997 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1998 { (exit 1); exit 1; }; }
2006 ac_cpp='$CPP $CPPFLAGS'
2007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010 if test -n "$ac_tool_prefix"; then
2011 for ac_prog in clang gcc
2013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2030 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 if test -n "$CC"; then
2042 { echo "$as_me:$LINENO: result: $CC" >&5
2043 echo "${ECHO_T}$CC" >&6; }
2045 { echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6; }
2050 test -n "$CC" && break
2053 if test -z "$CC"; then
2055 for ac_prog in clang gcc
2057 # Extract the first word of "$ac_prog", so it can be a program name with args.
2058 set dummy $ac_prog; ac_word=$2
2059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 if test -n "$ac_ct_CC"; then
2065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2074 ac_cv_prog_ac_ct_CC="$ac_prog"
2075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085 if test -n "$ac_ct_CC"; then
2086 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087 echo "${ECHO_T}$ac_ct_CC" >&6; }
2089 { echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6; }
2094 test -n "$ac_ct_CC" && break
2097 if test "x$ac_ct_CC" = x; then
2100 case $cross_compiling:$ac_tool_warned in
2102 { echo "$as_me:$LINENO: 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." >&5
2105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2106 whose name does not start with the host triplet. If you think this
2107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2108 ac_tool_warned=yes ;;
2115 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2121 # Provide some information about the compiler.
2122 echo "$as_me:$LINENO: checking for C compiler version" >&5
2123 ac_compiler=`set X $ac_compile; echo $2`
2124 { (ac_try="$ac_compiler --version >&5"
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130 (eval "$ac_compiler --version >&5") 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134 { (ac_try="$ac_compiler -v >&5"
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140 (eval "$ac_compiler -v >&5") 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144 { (ac_try="$ac_compiler -V >&5"
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150 (eval "$ac_compiler -V >&5") 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2155 cat >conftest.$ac_ext <<_ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2170 ac_clean_files_save=$ac_clean_files
2171 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2172 # Try to create an executable without -o first, disregard a.out.
2173 # It will help us diagnose broken compilers, and finding out an intuition
2175 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2177 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2179 # List of possible output files, starting from the most likely.
2180 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2181 # only as a last resort. b.out is created by i960 compilers.
2182 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2184 # The IRIX 6 linker writes into existing files which may not be
2185 # executable, retaining their permissions. Remove them first so a
2186 # subsequent execution test works.
2188 for ac_file in $ac_files
2191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2197 if { (ac_try="$ac_link_default"
2199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200 *) ac_try_echo=$ac_try;;
2202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2203 (eval "$ac_link_default") 2>&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; then
2207 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2208 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2209 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2210 # so that the user can short-circuit this test for compilers unknown to
2212 for ac_file in $ac_files
2214 test -f "$ac_file" || continue
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2219 # We found the default executable, but exeext='' is most
2223 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2225 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227 # We set ac_cv_exeext here because the later test for it is not
2228 # safe: cross compilers may not add the suffix if given an `-o'
2229 # argument, so we may need to know it at that point already.
2230 # Even if this section looks crufty: it has the advantage of
2237 test "$ac_cv_exeext" = no && ac_cv_exeext=
2240 echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2243 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: C compiler cannot create executables
2246 See \`config.log' for more details." >&2;}
2247 { (exit 77); exit 77; }; }
2250 ac_exeext=$ac_cv_exeext
2251 { echo "$as_me:$LINENO: result: $ac_file" >&5
2252 echo "${ECHO_T}$ac_file" >&6; }
2254 # Check that the compiler produces executables we can run. If not, either
2255 # the compiler is broken, or we cross compile.
2256 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2257 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2258 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2259 # If not cross compiling, check that we can run a simple program.
2260 if test "$cross_compiling" != yes; then
2261 if { ac_try='./$ac_file'
2262 { (case "(($ac_try" in
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267 (eval "$ac_try") 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2273 if test "$cross_compiling" = maybe; then
2276 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2277 If you meant to cross compile, use \`--host'.
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot run C compiled programs.
2280 If you meant to cross compile, use \`--host'.
2281 See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
2286 { echo "$as_me:$LINENO: result: yes" >&5
2287 echo "${ECHO_T}yes" >&6; }
2289 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2290 ac_clean_files=$ac_clean_files_save
2291 # Check that the compiler produces executables we can run. If not, either
2292 # the compiler is broken, or we cross compile.
2293 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2294 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2295 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2296 echo "${ECHO_T}$cross_compiling" >&6; }
2298 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2299 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2300 if { (ac_try="$ac_link"
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306 (eval "$ac_link") 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; then
2310 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2311 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2312 # work properly (i.e., refer to `conftest.exe'), while it won't with
2314 for ac_file in conftest.exe conftest conftest.*; do
2315 test -f "$ac_file" || continue
2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2318 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2324 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2327 See \`config.log' for more details." >&2;}
2328 { (exit 1); exit 1; }; }
2331 rm -f conftest$ac_cv_exeext
2332 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2333 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2335 rm -f conftest.$ac_ext
2336 EXEEXT=$ac_cv_exeext
2338 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2339 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2340 if test "${ac_cv_objext+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 cat >conftest.$ac_ext <<_ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h. */
2358 rm -f conftest.o conftest.obj
2359 if { (ac_try="$ac_compile"
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365 (eval "$ac_compile") 2>&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; then
2369 for ac_file in conftest.o conftest.obj conftest.*; do
2370 test -f "$ac_file" || continue;
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2373 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2381 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&5
2383 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2384 See \`config.log' for more details." >&2;}
2385 { (exit 1); exit 1; }; }
2388 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2390 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2391 echo "${ECHO_T}$ac_cv_objext" >&6; }
2392 OBJEXT=$ac_cv_objext
2394 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2395 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2396 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 cat >conftest.$ac_ext <<_ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2417 rm -f conftest.$ac_objext
2418 if { (ac_try="$ac_compile"
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_compile") 2>conftest.er1
2426 grep -v '^ *+' conftest.er1 >conftest.err
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2432 { (case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_try") 2>&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_try") 2>&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2463 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2464 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2465 GCC=`test $ac_compiler_gnu = yes && echo yes`
2466 ac_test_CFLAGS=${CFLAGS+set}
2467 ac_save_CFLAGS=$CFLAGS
2468 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2469 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_cc_g+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 ac_save_c_werror_flag=$ac_c_werror_flag
2474 ac_c_werror_flag=yes
2477 cat >conftest.$ac_ext <<_ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2492 rm -f conftest.$ac_objext
2493 if { (ac_try="$ac_compile"
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_compile") 2>conftest.er1
2501 grep -v '^ *+' conftest.er1 >conftest.err
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2507 { (case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_try") 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2532 cat >conftest.$ac_ext <<_ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2547 rm -f conftest.$ac_objext
2548 if { (ac_try="$ac_compile"
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554 (eval "$ac_compile") 2>conftest.er1
2556 grep -v '^ *+' conftest.er1 >conftest.err
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2562 { (case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_try") 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2586 ac_c_werror_flag=$ac_save_c_werror_flag
2588 cat >conftest.$ac_ext <<_ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h. */
2603 rm -f conftest.$ac_objext
2604 if { (ac_try="$ac_compile"
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2610 (eval "$ac_compile") 2>conftest.er1
2612 grep -v '^ *+' conftest.er1 >conftest.err
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2618 { (case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_try") 2>&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633 (eval "$ac_try") 2>&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652 ac_c_werror_flag=$ac_save_c_werror_flag
2654 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2655 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2656 if test "$ac_test_CFLAGS" = set; then
2657 CFLAGS=$ac_save_CFLAGS
2658 elif test $ac_cv_prog_cc_g = yes; then
2659 if test "$GCC" = yes; then
2665 if test "$GCC" = yes; then
2671 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2672 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2673 if test "${ac_cv_prog_cc_c89+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 ac_cv_prog_cc_c89=no
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2686 #include <sys/types.h>
2687 #include <sys/stat.h>
2688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2689 struct buf { int x; };
2690 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2691 static char *e (p, i)
2697 static char *f (char * (*g) (char **, int), char **p, ...)
2702 s = g (p, va_arg (v,int));
2707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2708 function prototypes and stuff, but not '\xHH' hex character constants.
2709 These don't provoke an error unfortunately, instead are silently treated
2710 as 'x'. The following induces an error, until -std is added to get
2711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2712 array size at least. It's necessary to write '\x00'==0 to get something
2713 that's true only with -std. */
2714 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2716 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2717 inside strings and character constants. */
2719 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2721 int test (int i, double x);
2722 struct s1 {int (*f) (int a);};
2723 struct s2 {int (*f) (double a);};
2724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2735 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2736 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2738 CC="$ac_save_CC $ac_arg"
2739 rm -f conftest.$ac_objext
2740 if { (ac_try="$ac_compile"
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compile") 2>conftest.er1
2748 grep -v '^ *+' conftest.er1 >conftest.err
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2754 { (case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_try") 2>&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_try") 2>&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2773 ac_cv_prog_cc_c89=$ac_arg
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2781 rm -f core conftest.err conftest.$ac_objext
2782 test "x$ac_cv_prog_cc_c89" != "xno" && break
2784 rm -f conftest.$ac_ext
2789 case "x$ac_cv_prog_cc_c89" in
2791 { echo "$as_me:$LINENO: result: none needed" >&5
2792 echo "${ECHO_T}none needed" >&6; } ;;
2794 { echo "$as_me:$LINENO: result: unsupported" >&5
2795 echo "${ECHO_T}unsupported" >&6; } ;;
2797 CC="$CC $ac_cv_prog_cc_c89"
2798 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2799 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2810 ac_cpp='$CXXCPP $CPPFLAGS'
2811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2814 if test -z "$CXX"; then
2815 if test -n "$CCC"; then
2818 if test -n "$ac_tool_prefix"; then
2819 for ac_prog in clang++ g++
2821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825 if test "${ac_cv_prog_CXX+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 if test -n "$CXX"; then
2829 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 if test -n "$CXX"; then
2850 { echo "$as_me:$LINENO: result: $CXX" >&5
2851 echo "${ECHO_T}$CXX" >&6; }
2853 { echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6; }
2858 test -n "$CXX" && break
2861 if test -z "$CXX"; then
2863 for ac_prog in clang++ g++
2865 # Extract the first word of "$ac_prog", so it can be a program name with args.
2866 set dummy $ac_prog; ac_word=$2
2867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2869 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 if test -n "$ac_ct_CXX"; then
2873 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 ac_cv_prog_ac_ct_CXX="$ac_prog"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2893 if test -n "$ac_ct_CXX"; then
2894 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2895 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2897 { echo "$as_me:$LINENO: result: no" >&5
2898 echo "${ECHO_T}no" >&6; }
2902 test -n "$ac_ct_CXX" && break
2905 if test "x$ac_ct_CXX" = x; then
2908 case $cross_compiling:$ac_tool_warned in
2910 { echo "$as_me:$LINENO: 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." >&5
2913 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2914 whose name does not start with the host triplet. If you think this
2915 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2916 ac_tool_warned=yes ;;
2924 # Provide some information about the compiler.
2925 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2926 ac_compiler=`set X $ac_compile; echo $2`
2927 { (ac_try="$ac_compiler --version >&5"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compiler --version >&5") 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937 { (ac_try="$ac_compiler -v >&5"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compiler -v >&5") 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2947 { (ac_try="$ac_compiler -V >&5"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compiler -V >&5") 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2958 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2959 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2960 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 cat >conftest.$ac_ext <<_ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2981 rm -f conftest.$ac_objext
2982 if { (ac_try="$ac_compile"
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>conftest.er1
2990 grep -v '^ *+' conftest.er1 >conftest.err
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } &&
2995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2996 { (case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_try") 2>&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; } &&
3005 { ac_try='test -s conftest.$ac_objext'
3006 { (case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_try") 2>&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3027 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3028 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3029 GXX=`test $ac_compiler_gnu = yes && echo yes`
3030 ac_test_CXXFLAGS=${CXXFLAGS+set}
3031 ac_save_CXXFLAGS=$CXXFLAGS
3032 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3033 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3034 if test "${ac_cv_prog_cxx_g+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3038 ac_cxx_werror_flag=yes
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 ac_cv_prog_cxx_g=yes
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3096 cat >conftest.$ac_ext <<_ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3111 rm -f conftest.$ac_objext
3112 if { (ac_try="$ac_compile"
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_compile") 2>conftest.er1
3120 grep -v '^ *+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } &&
3125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3152 cat >conftest.$ac_ext <<_ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3167 rm -f conftest.$ac_objext
3168 if { (ac_try="$ac_compile"
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_compile") 2>conftest.er1
3176 grep -v '^ *+' conftest.er1 >conftest.err
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 ac_cv_prog_cxx_g=yes
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3218 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3219 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3220 if test "$ac_test_CXXFLAGS" = set; then
3221 CXXFLAGS=$ac_save_CXXFLAGS
3222 elif test $ac_cv_prog_cxx_g = yes; then
3223 if test "$GXX" = yes; then
3229 if test "$GXX" = yes; then
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3247 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3248 # On Suns, sometimes $CPP names a directory.
3249 if test -n "$CPP" && test -d "$CPP"; then
3252 if test -z "$CPP"; then
3253 if test "${ac_cv_prog_CPP+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 # Double quotes because CPP needs to be expanded
3257 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3260 for ac_c_preproc_warn_flag in '' yes
3262 # Use a header file that comes with gcc, so configuring glibc
3263 # with a fresh cross-compiler works.
3264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3265 # <limits.h> exists even on freestanding compilers.
3266 # On the NeXT, cc -E runs the code through the compiler's parser,
3267 # not just through cpp. "Syntax error" is here to catch this case.
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3275 # include <limits.h>
3277 # include <assert.h>
3281 if { (ac_try="$ac_cpp conftest.$ac_ext"
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3289 grep -v '^ *+' conftest.er1 >conftest.err
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } >/dev/null; then
3294 if test -s conftest.err; then
3295 ac_cpp_err=$ac_c_preproc_warn_flag
3296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303 if test -z "$ac_cpp_err"; then
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 # Broken: fails on valid input.
3313 rm -f conftest.err conftest.$ac_ext
3315 # OK, works on sane cases. Now check whether nonexistent headers
3316 # can be detected and how.
3317 cat >conftest.$ac_ext <<_ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3323 #include <ac_nonexistent.h>
3325 if { (ac_try="$ac_cpp conftest.$ac_ext"
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3333 grep -v '^ *+' conftest.er1 >conftest.err
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } >/dev/null; then
3338 if test -s conftest.err; then
3339 ac_cpp_err=$ac_c_preproc_warn_flag
3340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3347 if test -z "$ac_cpp_err"; then
3348 # Broken: success on invalid input.
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 # Passes both tests.
3359 rm -f conftest.err conftest.$ac_ext
3362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3363 rm -f conftest.err conftest.$ac_ext
3364 if $ac_preproc_ok; then
3376 { echo "$as_me:$LINENO: result: $CPP" >&5
3377 echo "${ECHO_T}$CPP" >&6; }
3379 for ac_c_preproc_warn_flag in '' yes
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
3383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
3385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
3387 cat >conftest.$ac_ext <<_ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3394 # include <limits.h>
3396 # include <assert.h>
3400 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408 grep -v '^ *+' conftest.er1 >conftest.err
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
3415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422 if test -z "$ac_cpp_err"; then
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 # Broken: fails on valid input.
3432 rm -f conftest.err conftest.$ac_ext
3434 # OK, works on sane cases. Now check whether nonexistent headers
3435 # can be detected and how.
3436 cat >conftest.$ac_ext <<_ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #include <ac_nonexistent.h>
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3466 if test -z "$ac_cpp_err"; then
3467 # Broken: success on invalid input.
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 # Passes both tests.
3478 rm -f conftest.err conftest.$ac_ext
3481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482 rm -f conftest.err conftest.$ac_ext
3483 if $ac_preproc_ok; then
3486 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&5
3488 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3489 See \`config.log' for more details." >&2;}
3490 { (exit 1); exit 1; }; }
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 if test "$CXX" = "clang++" ; then
3501 { echo "$as_me:$LINENO: checking whether clang works" >&5
3502 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3504 ac_cpp='$CXXCPP $CPPFLAGS'
3505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3510 cat >conftest.$ac_ext <<_ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3517 #if __has_include (<cxxabi.h>)
3520 #if __has_include (<unwind.h>)
3532 rm -f conftest.$ac_objext
3533 if { (ac_try="$ac_compile"
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_compile") 2>conftest.er1
3541 grep -v '^ *+' conftest.er1 >conftest.err
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3547 { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_try") 2>&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; } &&
3556 { ac_try='test -s conftest.$ac_objext'
3557 { (case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_try") 2>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3567 { echo "$as_me:$LINENO: result: yes" >&5
3568 echo "${ECHO_T}yes" >&6; }
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3575 { echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6; }
3577 { { 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
3578 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;}
3579 { (exit 1); exit 1; }; }
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_cpp='$CPP $CPPFLAGS'
3586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3592 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3593 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3595 ac_cpp='$CXXCPP $CPPFLAGS'
3596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3600 llvm_cv_cxx_compiler=unknown
3601 cat >conftest.$ac_ext <<_ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_compile") 2>conftest.er1
3621 grep -v '^ *+' conftest.er1 >conftest.err
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3627 { (case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_try") 2>&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; } &&
3636 { ac_try='test -s conftest.$ac_objext'
3637 { (case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_try") 2>&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 llvm_cv_cxx_compiler=clang
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3651 cat >conftest.$ac_ext <<_ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3662 rm -f conftest.$ac_objext
3663 if { (ac_try="$ac_compile"
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_compile") 2>conftest.er1
3671 grep -v '^ *+' conftest.er1 >conftest.err
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3677 { (case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_try") 2>&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; } &&
3686 { ac_try='test -s conftest.$ac_objext'
3687 { (case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_try") 2>&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; }; then
3696 llvm_cv_cxx_compiler=gcc
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3715 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3719 if test -d ${srcdir}/projects/test-suite ; then
3720 subdirs="$subdirs projects/test-suite"
3724 if test -d ${srcdir}/projects/llvm-test ; then
3725 subdirs="$subdirs projects/llvm-test"
3729 if test -d ${srcdir}/projects/poolalloc ; then
3730 subdirs="$subdirs projects/poolalloc"
3734 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3735 subdirs="$subdirs projects/llvm-poolalloc"
3739 for i in `ls ${srcdir}/projects`
3741 if test -d ${srcdir}/projects/${i} ; then
3743 safecode) subdirs="$subdirs projects/safecode"
3751 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3752 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3758 # Check whether --enable-polly was given.
3759 if test "${enable_polly+set}" = set; then
3760 enableval=$enable_polly;
3765 case "$enableval" in
3770 default) ENABLE_POLLY=1
3772 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3773 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3774 { (exit 1); exit 1; }; } ;;
3778 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3781 subdirs="$subdirs tools/polly"
3786 # Make sure we can run config.sub.
3787 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3788 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3789 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3790 { (exit 1); exit 1; }; }
3792 { echo "$as_me:$LINENO: checking build system type" >&5
3793 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3794 if test "${ac_cv_build+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 ac_build_alias=$build_alias
3798 test "x$ac_build_alias" = x &&
3799 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3800 test "x$ac_build_alias" = x &&
3801 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3802 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3803 { (exit 1); exit 1; }; }
3804 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3805 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3806 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3807 { (exit 1); exit 1; }; }
3810 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3811 echo "${ECHO_T}$ac_cv_build" >&6; }
3812 case $ac_cv_build in
3814 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3815 echo "$as_me: error: invalid value of canonical build" >&2;}
3816 { (exit 1); exit 1; }; };;
3819 ac_save_IFS=$IFS; IFS='-'
3825 # Remember, the first character of IFS is used to create $*,
3826 # except with old shells:
3829 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3832 { echo "$as_me:$LINENO: checking host system type" >&5
3833 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3834 if test "${ac_cv_host+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 if test "x$host_alias" = x; then
3838 ac_cv_host=$ac_cv_build
3840 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3841 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3842 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3843 { (exit 1); exit 1; }; }
3847 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3848 echo "${ECHO_T}$ac_cv_host" >&6; }
3851 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3852 echo "$as_me: error: invalid value of canonical host" >&2;}
3853 { (exit 1); exit 1; }; };;
3856 ac_save_IFS=$IFS; IFS='-'
3862 # Remember, the first character of IFS is used to create $*,
3863 # except with old shells:
3866 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3869 { echo "$as_me:$LINENO: checking target system type" >&5
3870 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3871 if test "${ac_cv_target+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 if test "x$target_alias" = x; then
3875 ac_cv_target=$ac_cv_host
3877 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3878 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3879 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3880 { (exit 1); exit 1; }; }
3884 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3885 echo "${ECHO_T}$ac_cv_target" >&6; }
3886 case $ac_cv_target in
3888 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3889 echo "$as_me: error: invalid value of canonical target" >&2;}
3890 { (exit 1); exit 1; }; };;
3892 target=$ac_cv_target
3893 ac_save_IFS=$IFS; IFS='-'
3899 # Remember, the first character of IFS is used to create $*,
3900 # except with old shells:
3903 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3906 # The aliases save the names the user supplied, while $host etc.
3907 # will get canonicalized.
3908 test -n "$target_alias" &&
3909 test "$program_prefix$program_suffix$program_transform_name" = \
3911 program_prefix=${target_alias}-
3913 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3914 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3915 if test "${llvm_cv_os_type+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 llvm_cv_link_all_option="-Wl,--whole-archive"
3921 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3922 llvm_cv_os_type="AIX"
3923 llvm_cv_platform_type="Unix" ;;
3925 llvm_cv_link_all_option="-Wl,--whole-archive"
3926 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3927 llvm_cv_os_type="IRIX"
3928 llvm_cv_platform_type="Unix" ;;
3930 llvm_cv_link_all_option="-Wl,--whole-archive"
3931 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3932 llvm_cv_os_type="Cygwin"
3933 llvm_cv_platform_type="Unix" ;;
3935 llvm_cv_link_all_option="-Wl,-all_load"
3936 llvm_cv_no_link_all_option="-Wl,-noall_load"
3937 llvm_cv_os_type="Darwin"
3938 llvm_cv_platform_type="Unix" ;;
3940 llvm_cv_link_all_option="-Wl,-all_load"
3941 llvm_cv_no_link_all_option="-Wl,-noall_load"
3942 llvm_cv_os_type="Minix"
3943 llvm_cv_platform_type="Unix" ;;
3945 llvm_cv_link_all_option="-Wl,--whole-archive"
3946 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3947 llvm_cv_os_type="FreeBSD"
3948 llvm_cv_platform_type="Unix" ;;
3950 llvm_cv_link_all_option="-Wl,--whole-archive"
3951 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952 llvm_cv_os_type="GNU/kFreeBSD"
3953 llvm_cv_platform_type="Unix" ;;
3955 llvm_cv_link_all_option="-Wl,--whole-archive"
3956 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957 llvm_cv_os_type="OpenBSD"
3958 llvm_cv_platform_type="Unix" ;;
3960 llvm_cv_link_all_option="-Wl,--whole-archive"
3961 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962 llvm_cv_os_type="NetBSD"
3963 llvm_cv_platform_type="Unix" ;;
3965 llvm_cv_link_all_option="-Wl,--whole-archive"
3966 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967 llvm_cv_os_type="DragonFly"
3968 llvm_cv_platform_type="Unix" ;;
3970 llvm_cv_link_all_option="-Wl,--whole-archive"
3971 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972 llvm_cv_os_type="Bitrig"
3973 llvm_cv_platform_type="Unix" ;;
3975 llvm_cv_link_all_option="-Wl,--whole-archive"
3976 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977 llvm_cv_os_type="HP-UX"
3978 llvm_cv_platform_type="Unix" ;;
3980 llvm_cv_link_all_option="-Wl,--whole-archive"
3981 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982 llvm_cv_os_type="Interix"
3983 llvm_cv_platform_type="Unix" ;;
3985 llvm_cv_link_all_option="-Wl,--whole-archive"
3986 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987 llvm_cv_os_type="Linux"
3988 llvm_cv_platform_type="Unix" ;;
3990 llvm_cv_link_all_option="-Wl,--whole-archive"
3991 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992 llvm_cv_os_type="GNU"
3993 llvm_cv_platform_type="Unix" ;;
3995 llvm_cv_link_all_option="-Wl,-z,allextract"
3996 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3997 llvm_cv_os_type="SunOS"
3998 llvm_cv_platform_type="Unix" ;;
4000 llvm_cv_link_all_option="-Wl,--whole-archive"
4001 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002 llvm_cv_os_type="Win32"
4003 llvm_cv_platform_type="Win32" ;;
4005 llvm_cv_link_all_option="-Wl,--whole-archive"
4006 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007 llvm_cv_os_type="MingW"
4008 llvm_cv_platform_type="Win32" ;;
4010 llvm_cv_link_all_option="-Wl,--whole-archive"
4011 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012 llvm_cv_os_type="Haiku"
4013 llvm_cv_platform_type="Unix" ;;
4015 llvm_cv_link_all_option="-Wl,--whole-archive"
4016 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017 llvm_cv_os_type="Freestanding"
4018 llvm_cv_platform_type="Unix" ;;
4020 llvm_cv_link_all_option="-Wl,--whole-archive"
4021 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4022 llvm_cv_os_type="Freestanding"
4023 llvm_cv_platform_type="Unix" ;;
4025 llvm_cv_link_all_option=""
4026 llvm_cv_no_link_all_option=""
4027 llvm_cv_os_type="Unknown"
4028 llvm_cv_platform_type="Unknown" ;;
4031 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4032 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4034 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4035 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4036 if test "${llvm_cv_target_os_type+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 llvm_cv_target_os_type="AIX" ;;
4043 llvm_cv_target_os_type="IRIX" ;;
4045 llvm_cv_target_os_type="Cygwin" ;;
4047 llvm_cv_target_os_type="Darwin" ;;
4049 llvm_cv_target_os_type="Minix" ;;
4051 llvm_cv_target_os_type="FreeBSD" ;;
4053 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4055 llvm_cv_target_os_type="OpenBSD" ;;
4057 llvm_cv_target_os_type="NetBSD" ;;
4059 llvm_cv_target_os_type="DragonFly" ;;
4061 llvm_cv_target_os_type="Bitrig" ;;
4063 llvm_cv_target_os_type="HP-UX" ;;
4065 llvm_cv_target_os_type="Interix" ;;
4067 llvm_cv_target_os_type="Linux" ;;
4069 llvm_cv_target_os_type="GNU" ;;
4071 llvm_cv_target_os_type="SunOS" ;;
4073 llvm_cv_target_os_type="Win32" ;;
4075 llvm_cv_target_os_type="MingW" ;;
4077 llvm_cv_target_os_type="Haiku" ;;
4079 llvm_cv_target_os_type="RTEMS" ;;
4081 llvm_cv_target_os_type="NativeClient" ;;
4083 llvm_cv_target_os_type="Freestanding" ;;
4085 llvm_cv_target_os_type="PS4" ;;
4087 llvm_cv_target_os_type="Unknown" ;;
4090 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4091 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4093 if test "$llvm_cv_os_type" = "Unknown" ; then
4094 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4095 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4096 { (exit 1); exit 1; }; }
4101 HOST_OS=$llvm_cv_os_type
4103 TARGET_OS=$llvm_cv_target_os_type
4106 LINKALL=$llvm_cv_link_all_option
4108 NOLINKALL=$llvm_cv_no_link_all_option
4111 case $llvm_cv_platform_type in
4114 cat >>confdefs.h <<\_ACEOF
4115 #define LLVM_ON_UNIX 1
4125 cat >>confdefs.h <<\_ACEOF
4126 #define LLVM_ON_WIN32 1
4136 { echo "$as_me:$LINENO: checking target architecture" >&5
4137 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4138 if test "${llvm_cv_target_arch+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 i?86-*) llvm_cv_target_arch="x86" ;;
4143 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4144 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4145 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4146 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4147 arm*-*) llvm_cv_target_arch="ARM" ;;
4148 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4149 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4150 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4151 xcore-*) llvm_cv_target_arch="XCore" ;;
4152 msp430-*) llvm_cv_target_arch="MSP430" ;;
4153 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4154 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4155 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4156 *) llvm_cv_target_arch="Unknown" ;;
4159 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4160 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4162 if test "$llvm_cv_target_arch" = "Unknown" ; then
4163 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4164 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4167 case "$llvm_cv_target_arch" in
4168 x86) LLVM_NATIVE_ARCH="X86" ;;
4169 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4170 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4173 ARCH=$llvm_cv_target_arch
4175 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4179 i?86-*) host_arch="x86" ;;
4180 amd64-* | x86_64-*) host_arch="x86_64" ;;
4181 sparc*-*) host_arch="Sparc" ;;
4182 powerpc*-*) host_arch="PowerPC" ;;
4183 arm64*-*) host_arch="AArch64" ;;
4184 arm*-*) host_arch="ARM" ;;
4185 aarch64*-*) host_arch="AArch64" ;;
4186 mips-* | mips64-*) host_arch="Mips" ;;
4187 mipsel-* | mips64el-*) host_arch="Mips" ;;
4188 xcore-*) host_arch="XCore" ;;
4189 msp430-*) host_arch="MSP430" ;;
4190 hexagon-*) host_arch="Hexagon" ;;
4191 s390x-*) host_arch="SystemZ" ;;
4192 *) host_arch="Unknown" ;;
4195 if test "$host_arch" = "Unknown" ; then
4196 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4197 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4200 HOST_ARCH=$host_arch
4203 if test "$cross_compiling" = yes; then
4204 LLVM_CROSS_COMPILING=1
4207 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4208 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4209 if test "${ac_cv_build_exeext+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4213 ac_cv_build_exeext=.exe
4215 ac_build_prefix=${build_alias}-
4217 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4218 set dummy ${ac_build_prefix}gcc; ac_word=$2
4219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4221 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 if test -n "$BUILD_CC"; then
4225 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 test -z "$as_dir" && as_dir=.
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4234 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 BUILD_CC=$ac_cv_prog_BUILD_CC
4245 if test -n "$BUILD_CC"; then
4246 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4247 echo "${ECHO_T}$BUILD_CC" >&6; }
4249 { echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6; }
4254 if test -z "$BUILD_CC"; then
4255 # Extract the first word of "gcc", so it can be a program name with args.
4256 set dummy gcc; ac_word=$2
4257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4259 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 if test -n "$BUILD_CC"; then
4263 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_prog_BUILD_CC="gcc"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 BUILD_CC=$ac_cv_prog_BUILD_CC
4283 if test -n "$BUILD_CC"; then
4284 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4285 echo "${ECHO_T}$BUILD_CC" >&6; }
4287 { echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6; }
4292 if test -z "$BUILD_CC"; then
4293 # Extract the first word of "cc", so it can be a program name with args.
4294 set dummy cc; ac_word=$2
4295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4297 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 if test -n "$BUILD_CC"; then
4301 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4312 ac_prog_rejected=yes
4315 ac_cv_prog_BUILD_CC="cc"
4316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 if test $ac_prog_rejected = yes; then
4324 # We found a bogon in the path, so make sure we never use it.
4325 set dummy $ac_cv_prog_BUILD_CC
4327 if test $# != 0; then
4328 # We chose a different compiler from the bogus one.
4329 # However, it has the same basename, so the bogon will be chosen
4330 # first if we set BUILD_CC to just the basename; use the full file name.
4332 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4337 BUILD_CC=$ac_cv_prog_BUILD_CC
4338 if test -n "$BUILD_CC"; then
4339 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4340 echo "${ECHO_T}$BUILD_CC" >&6; }
4342 { echo "$as_me:$LINENO: result: no" >&5
4343 echo "${ECHO_T}no" >&6; }
4349 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4350 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4351 { (exit 1); exit 1; }; }
4352 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4354 echo 'int main () { return 0; }' > conftest.$ac_ext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4357 (eval $ac_build_link) 2>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; then
4361 for file in conftest.*; do
4363 *.c | *.o | *.obj | *.dSYM) ;;
4364 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4368 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4369 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4370 { (exit 1); exit 1; }; }
4373 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4378 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4379 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4380 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4381 ac_build_exeext=$BUILD_EXEEXT
4383 ac_build_prefix=${build_alias}-
4384 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4385 set dummy ${ac_build_prefix}g++; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 if test -n "$BUILD_CXX"; then
4392 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4412 if test -n "$BUILD_CXX"; then
4413 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4414 echo "${ECHO_T}$BUILD_CXX" >&6; }
4416 { echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6; }
4421 if test -z "$BUILD_CXX"; then
4422 # Extract the first word of "g++", so it can be a program name with args.
4423 set dummy g++; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 if test -n "$BUILD_CXX"; then
4430 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_BUILD_CXX="g++"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4450 if test -n "$BUILD_CXX"; then
4451 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4452 echo "${ECHO_T}$BUILD_CXX" >&6; }
4454 { echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6; }
4459 if test -z "$BUILD_CXX"; then
4460 # Extract the first word of "c++", so it can be a program name with args.
4461 set dummy c++; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 if test -n "$BUILD_CXX"; then
4468 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4479 ac_prog_rejected=yes
4482 ac_cv_prog_BUILD_CXX="c++"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 if test $ac_prog_rejected = yes; then
4491 # We found a bogon in the path, so make sure we never use it.
4492 set dummy $ac_cv_prog_BUILD_CXX
4494 if test $# != 0; then
4495 # We chose a different compiler from the bogus one.
4496 # However, it has the same basename, so the bogon will be chosen
4497 # first if we set BUILD_CXX to just the basename; use the full file name.
4499 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4504 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4505 if test -n "$BUILD_CXX"; then
4506 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4507 echo "${ECHO_T}$BUILD_CXX" >&6; }
4509 { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4517 LLVM_CROSS_COMPILING=0
4521 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4532 # Check whether --enable-libcpp was given.
4533 if test "${enable_libcpp+set}" = set; then
4534 enableval=$enable_libcpp;
4539 case "$enableval" in
4540 yes) ENABLE_LIBCPP=1
4544 default) ENABLE_LIBCPP=0
4546 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4547 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4548 { (exit 1); exit 1; }; } ;;
4551 # Check whether --enable-compiler-version-checks was given.
4552 if test "${enable_compiler_version_checks+set}" = set; then
4553 enableval=$enable_compiler_version_checks;
4558 case "$enableval" in
4563 ac_cpp='$CXXCPP $CPPFLAGS'
4564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4568 case "$llvm_cv_cxx_compiler" in
4570 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4571 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4579 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4580 #error This version of Clang is too old to build LLVM
4584 rm -f conftest.$ac_objext
4585 if { (ac_try="$ac_compile"
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591 (eval "$ac_compile") 2>conftest.er1
4593 grep -v '^ *+' conftest.er1 >conftest.err
4595 cat conftest.err >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } &&
4598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4599 { (case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_try") 2>&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; } &&
4608 { ac_try='test -s conftest.$ac_objext'
4609 { (case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_try") 2>&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 { echo "$as_me:$LINENO: result: yes" >&5
4619 echo "${ECHO_T}yes" >&6; }
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4624 { echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6; }
4626 { { echo "$as_me:$LINENO: error:
4627 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4628 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4629 bypass these sanity checks." >&5
4630 echo "$as_me: error:
4631 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4632 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4633 bypass these sanity checks." >&2;}
4634 { (exit 1); exit 1; }; }
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 if test "$ENABLE_LIBCPP" -eq 0 ; then
4640 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4641 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4642 llvm_cv_old_cxxflags="$CXXFLAGS"
4643 CXXFLAGS="$CXXFLAGS -std=c++0x"
4644 cat >conftest.$ac_ext <<_ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4652 std::atomic<float> x(0.0f);
4653 int main() { return (float)x; }
4656 rm -f conftest.$ac_objext conftest$ac_exeext
4657 if { (ac_try="$ac_link"
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663 (eval "$ac_link") 2>conftest.er1
4665 grep -v '^ *+' conftest.er1 >conftest.err
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4671 { (case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_try") 2>&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; } &&
4680 { ac_try='test -s conftest$ac_exeext'
4681 { (case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_try") 2>&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 { echo "$as_me:$LINENO: result: yes" >&5
4691 echo "${ECHO_T}yes" >&6; }
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4696 { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4698 { { echo "$as_me:$LINENO: error:
4699 We detected a missing feature in the standard C++ library that was known to be
4700 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4701 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4702 than 4.7. You will need to update your system and ensure Clang uses the newer
4705 If this error is incorrect or you need to force things to work, you may pass
4706 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4707 echo "$as_me: error:
4708 We detected a missing feature in the standard C++ library that was known to be
4709 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4710 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4711 than 4.7. You will need to update your system and ensure Clang uses the newer
4714 If this error is incorrect or you need to force things to work, you may pass
4715 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4716 { (exit 1); exit 1; }; }
4719 rm -f core conftest.err conftest.$ac_objext \
4720 conftest$ac_exeext conftest.$ac_ext
4721 CXXFLAGS="$llvm_cv_old_cxxflags"
4725 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4726 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4727 cat >conftest.$ac_ext <<_ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4734 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4735 #error This version of GCC is too old to build LLVM
4739 rm -f conftest.$ac_objext
4740 if { (ac_try="$ac_compile"
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_compile") 2>conftest.er1
4748 grep -v '^ *+' conftest.er1 >conftest.err
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4754 { (case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_try") 2>&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; } &&
4763 { ac_try='test -s conftest.$ac_objext'
4764 { (case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_try") 2>&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; }; then
4773 { echo "$as_me:$LINENO: result: yes" >&5
4774 echo "${ECHO_T}yes" >&6; }
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4779 { echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6; }
4781 { { echo "$as_me:$LINENO: error:
4782 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4783 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4784 bypass these sanity checks." >&5
4785 echo "$as_me: error:
4786 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4787 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4788 bypass these sanity checks." >&2;}
4789 { (exit 1); exit 1; }; }
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 ac_cpp='$CPP $CPPFLAGS'
4799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4806 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4807 { (exit 1); exit 1; }; }
4811 # Check whether --enable-cxx1y was given.
4812 if test "${enable_cxx1y+set}" = set; then
4813 enableval=$enable_cxx1y;
4818 case "$enableval" in
4823 default) ENABLE_CXX1Y=0
4825 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4826 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4827 { (exit 1); exit 1; }; } ;;
4830 # Check whether --enable-split-dwarf was given.
4831 if test "${enable_split_dwarf+set}" = set; then
4832 enableval=$enable_split_dwarf;
4837 case "$enableval" in
4838 yes) ENABLE_SPLIT_DWARF=1
4840 no) ENABLE_SPLIT_DWARF=0
4842 default) ENABLE_SPLIT_DWARF=0
4844 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4845 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4846 { (exit 1); exit 1; }; } ;;
4850 # Check whether --enable-clang-arcmt was given.
4851 if test "${enable_clang_arcmt+set}" = set; then
4852 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4857 case "$enableval" in
4858 yes) ENABLE_CLANG_ARCMT=1
4860 no) ENABLE_CLANG_ARCMT=0
4862 default) ENABLE_CLANG_ARCMT=1
4864 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4865 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4866 { (exit 1); exit 1; }; } ;;
4869 clang_plugin_support="yes"
4870 # Check whether --enable-clang-plugin-support was given.
4871 if test "${enable_clang_plugin_support+set}" = set; then
4872 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4877 case "$enableval" in
4878 yes) CLANG_PLUGIN_SUPPORT=1
4880 no) CLANG_PLUGIN_SUPPORT=0
4882 default) CLANG_PLUGIN_SUPPORT=1
4884 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4885 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4886 { (exit 1); exit 1; }; } ;;
4889 clang_static_analyzer="yes"
4890 # Check whether --enable-clang-static-analyzer was given.
4891 if test "${enable_clang_static_analyzer+set}" = set; then
4892 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4897 case "$enableval" in
4898 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4901 if test ${clang_arcmt} != "no" ; then
4902 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4903 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4904 { (exit 1); exit 1; }; }
4906 ENABLE_CLANG_STATIC_ANALYZER=0
4909 default) ENABLE_CLANG_STATIC_ANALYZER=1
4911 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4912 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4913 { (exit 1); exit 1; }; } ;;
4916 # Check whether --enable-optimized was given.
4917 if test "${enable_optimized+set}" = set; then
4918 enableval=$enable_optimized;
4923 if test ${enableval} = "no" ; then
4927 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4931 # Check whether --enable-profiling was given.
4932 if test "${enable_profiling+set}" = set; then
4933 enableval=$enable_profiling;
4938 if test ${enableval} = "no" ; then
4942 ENABLE_PROFILING=ENABLE_PROFILING=1
4946 # Check whether --enable-assertions was given.
4947 if test "${enable_assertions+set}" = set; then
4948 enableval=$enable_assertions;
4953 if test ${enableval} = "yes" ; then
4957 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4961 # Check whether --enable-werror was given.
4962 if test "${enable_werror+set}" = set; then
4963 enableval=$enable_werror;
4968 case "$enableval" in
4969 yes) ENABLE_WERROR=1
4973 default) ENABLE_WERROR=0
4975 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4976 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4977 { (exit 1); exit 1; }; } ;;
4980 # Check whether --enable-expensive-checks was given.
4981 if test "${enable_expensive_checks+set}" = set; then
4982 enableval=$enable_expensive_checks;
4987 if test ${enableval} = "yes" ; then
4988 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4990 EXPENSIVE_CHECKS=yes
4993 ENABLE_EXPENSIVE_CHECKS=
4999 # Check whether --enable-debug-runtime was given.
5000 if test "${enable_debug_runtime+set}" = set; then
5001 enableval=$enable_debug_runtime;
5006 if test ${enableval} = "no" ; then
5010 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5014 # Check whether --enable-debug-symbols was given.
5015 if test "${enable_debug_symbols+set}" = set; then
5016 enableval=$enable_debug_symbols;
5021 if test ${enableval} = "no" ; then
5025 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5029 # Check whether --enable-keep-symbols was given.
5030 if test "${enable_keep_symbols+set}" = set; then
5031 enableval=$enable_keep_symbols;
5036 if test ${enableval} = "no" ; then
5040 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5044 # Check whether --enable-jit was given.
5045 if test "${enable_jit+set}" = set; then
5046 enableval=$enable_jit;
5051 if test ${enableval} = "no"
5056 case "$llvm_cv_target_arch" in
5057 x86) TARGET_HAS_JIT=1
5059 Sparc) TARGET_HAS_JIT=0
5061 PowerPC) TARGET_HAS_JIT=1
5063 x86_64) TARGET_HAS_JIT=1
5065 ARM) TARGET_HAS_JIT=1
5067 Mips) TARGET_HAS_JIT=1
5069 XCore) TARGET_HAS_JIT=0
5071 MSP430) TARGET_HAS_JIT=0
5073 Hexagon) TARGET_HAS_JIT=0
5075 NVPTX) TARGET_HAS_JIT=0
5077 SystemZ) TARGET_HAS_JIT=1
5084 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5085 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5088 # Check whether --enable-docs was given.
5089 if test "${enable_docs+set}" = set; then
5090 enableval=$enable_docs;
5095 case "$enableval" in
5100 default) ENABLE_DOCS=1
5102 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5103 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5104 { (exit 1); exit 1; }; } ;;
5107 # Check whether --enable-doxygen was given.
5108 if test "${enable_doxygen+set}" = set; then
5109 enableval=$enable_doxygen;
5114 case "$enableval" in
5115 yes) ENABLE_DOXYGEN=1
5117 no) ENABLE_DOXYGEN=0
5119 default) ENABLE_DOXYGEN=0
5121 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5122 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5123 { (exit 1); exit 1; }; } ;;
5126 # Check whether --enable-threads was given.
5127 if test "${enable_threads+set}" = set; then
5128 enableval=$enable_threads;
5133 case "$enableval" in
5134 yes) LLVM_ENABLE_THREADS=1
5136 no) LLVM_ENABLE_THREADS=0
5138 default) LLVM_ENABLE_THREADS=1
5140 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5141 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5142 { (exit 1); exit 1; }; } ;;
5145 cat >>confdefs.h <<_ACEOF
5146 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5150 # Check whether --enable-pthreads was given.
5151 if test "${enable_pthreads+set}" = set; then
5152 enableval=$enable_pthreads;
5157 case "$enableval" in
5158 yes) ENABLE_PTHREADS=1
5160 no) ENABLE_PTHREADS=0
5162 default) ENABLE_PTHREADS=1
5164 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5165 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5166 { (exit 1); exit 1; }; } ;;
5169 # Check whether --enable-zlib was given.
5170 if test "${enable_zlib+set}" = set; then
5171 enableval=$enable_zlib;
5176 case "$enableval" in
5177 yes) LLVM_ENABLE_ZLIB=1
5179 no) LLVM_ENABLE_ZLIB=0
5181 default) LLVM_ENABLE_ZLIB=1
5183 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5184 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5185 { (exit 1); exit 1; }; } ;;
5188 cat >>confdefs.h <<_ACEOF
5189 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5193 # Check whether --enable-pic was given.
5194 if test "${enable_pic+set}" = set; then
5195 enableval=$enable_pic;
5200 case "$enableval" in
5205 default) ENABLE_PIC=1
5207 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5208 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5209 { (exit 1); exit 1; }; } ;;
5212 cat >>confdefs.h <<_ACEOF
5213 #define ENABLE_PIC $ENABLE_PIC
5217 # Check whether --enable-shared was given.
5218 if test "${enable_shared+set}" = set; then
5219 enableval=$enable_shared;
5224 case "$enableval" in
5225 yes) ENABLE_SHARED=1
5229 default) ENABLE_SHARED=0
5231 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5233 { (exit 1); exit 1; }; } ;;
5236 # Check whether --enable-embed-stdcxx was given.
5237 if test "${enable_embed_stdcxx+set}" = set; then
5238 enableval=$enable_embed_stdcxx;
5243 case "$enableval" in
5244 yes) ENABLE_EMBED_STDCXX=1
5246 no) ENABLE_EMBED_STDCXX=0
5248 default) ENABLE_EMBED_STDCXX=0
5250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5255 # Check whether --enable-timestamps was given.
5256 if test "${enable_timestamps+set}" = set; then
5257 enableval=$enable_timestamps;
5262 case "$enableval" in
5263 yes) ENABLE_TIMESTAMPS=1
5265 no) ENABLE_TIMESTAMPS=0
5267 default) ENABLE_TIMESTAMPS=1
5269 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5274 cat >>confdefs.h <<_ACEOF
5275 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5279 # Check whether --enable-backtraces was given.
5280 if test "${enable_backtraces+set}" = set; then
5281 enableval=$enable_backtraces; case "$enableval" in
5282 yes) llvm_cv_enable_backtraces="yes" ;;
5283 no) llvm_cv_enable_backtraces="no" ;;
5284 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5286 { (exit 1); exit 1; }; } ;;
5289 llvm_cv_enable_backtraces="yes"
5292 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5294 cat >>confdefs.h <<\_ACEOF
5295 #define ENABLE_BACKTRACES 1
5300 # Check whether --enable-crash-overrides was given.
5301 if test "${enable_crash_overrides+set}" = set; then
5302 enableval=$enable_crash_overrides; case "$enableval" in
5303 yes) llvm_cv_enable_crash_overrides="yes" ;;
5304 no) llvm_cv_enable_crash_overrides="no" ;;
5305 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5306 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5307 { (exit 1); exit 1; }; } ;;
5310 llvm_cv_enable_crash_overrides="yes"
5313 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5315 cat >>confdefs.h <<\_ACEOF
5316 #define ENABLE_CRASH_OVERRIDES 1
5321 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5322 ALL_TARGETS=$ALL_TARGETS
5326 # Check whether --enable-targets was given.
5327 if test "${enable_targets+set}" = set; then
5328 enableval=$enable_targets;
5333 if test "$enableval" = host-only ; then
5336 case "$enableval" in
5337 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5338 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5340 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5341 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5342 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5343 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5344 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5345 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5346 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5347 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5348 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5349 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5350 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5351 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5352 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5353 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5354 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5355 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5356 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5357 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5358 host) case "$llvm_cv_target_arch" in
5359 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5360 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5361 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5362 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5363 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5364 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5365 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5366 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5367 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5368 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5369 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5370 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5371 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5372 echo "$as_me: error: Can not set target to build" >&2;}
5373 { (exit 1); exit 1; }; } ;;
5375 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5376 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5377 { (exit 1); exit 1; }; } ;;
5383 # Check whether --enable-experimental-targets was given.
5384 if test "${enable_experimental_targets+set}" = set; then
5385 enableval=$enable_experimental_targets;
5391 if test ${enableval} != "disable"
5393 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5396 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5399 for a_target in $TARGETS_TO_BUILD; do
5400 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5402 cat >>confdefs.h <<_ACEOF
5403 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5406 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5407 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5408 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5409 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5410 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5411 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5413 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5414 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5417 cat >>confdefs.h <<_ACEOF
5418 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5422 cat >>confdefs.h <<_ACEOF
5423 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5427 cat >>confdefs.h <<_ACEOF
5428 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5432 cat >>confdefs.h <<_ACEOF
5433 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5436 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5438 cat >>confdefs.h <<_ACEOF
5439 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5443 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5445 cat >>confdefs.h <<_ACEOF
5446 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5453 LLVM_ENUM_TARGETS=""
5454 LLVM_ENUM_ASM_PRINTERS=""
5455 LLVM_ENUM_ASM_PARSERS=""
5456 LLVM_ENUM_DISASSEMBLERS=""
5457 for target_to_build in $TARGETS_TO_BUILD; do
5458 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5459 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5460 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5462 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5463 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5465 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5466 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5475 # Check whether --with-optimize-option was given.
5476 if test "${with_optimize_option+set}" = set; then
5477 withval=$with_optimize_option;
5482 { echo "$as_me:$LINENO: checking optimization flags" >&5
5483 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5486 case "$llvm_cv_os_type" in
5487 FreeBSD) optimize_option=-O2 ;;
5488 MingW) optimize_option=-O2 ;;
5489 *) optimize_option=-O3 ;;
5491 *) optimize_option="$withval" ;;
5493 OPTIMIZE_OPTION=$optimize_option
5495 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5496 echo "${ECHO_T}$optimize_option" >&6; }
5499 # Check whether --with-extra-options was given.
5500 if test "${with_extra_options+set}" = set; then
5501 withval=$with_extra_options;
5507 default) EXTRA_OPTIONS= ;;
5508 *) EXTRA_OPTIONS=$withval ;;
5510 EXTRA_OPTIONS=$EXTRA_OPTIONS
5514 # Check whether --with-extra-ld-options was given.
5515 if test "${with_extra_ld_options+set}" = set; then
5516 withval=$with_extra_ld_options;
5522 default) EXTRA_LD_OPTIONS= ;;
5523 *) EXTRA_LD_OPTIONS=$withval ;;
5525 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5528 # Check whether --enable-bindings was given.
5529 if test "${enable_bindings+set}" = set; then
5530 enableval=$enable_bindings;
5535 BINDINGS_TO_BUILD=""
5536 case "$enableval" in
5537 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5538 all ) BINDINGS_TO_BUILD="ocaml" ;;
5539 none | no) BINDINGS_TO_BUILD="" ;;
5540 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5541 case "$a_binding" in
5542 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5543 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5544 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5545 { (exit 1); exit 1; }; } ;;
5552 # Check whether --with-ocaml-libdir was given.
5553 if test "${with_ocaml_libdir+set}" = set; then
5554 withval=$with_ocaml_libdir;
5560 auto) with_ocaml_libdir="$withval" ;;
5561 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5562 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5563 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5564 { (exit 1); exit 1; }; } ;;
5568 # Check whether --with-clang-srcdir was given.
5569 if test "${with_clang_srcdir+set}" = set; then
5570 withval=$with_clang_srcdir;
5576 -) clang_src_root="" ;;
5577 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5578 *) clang_src_root="$ac_pwd/$withval" ;;
5580 CLANG_SRC_ROOT=$clang_src_root
5584 # Check whether --with-clang-resource-dir was given.
5585 if test "${with_clang_resource_dir+set}" = set; then
5586 withval=$with_clang_resource_dir;
5592 cat >>confdefs.h <<_ACEOF
5593 #define CLANG_RESOURCE_DIR "$withval"
5598 # Check whether --with-c-include-dirs was given.
5599 if test "${with_c_include_dirs+set}" = set; then
5600 withval=$with_c_include_dirs;
5606 cat >>confdefs.h <<_ACEOF
5607 #define C_INCLUDE_DIRS "$withval"
5611 # Clang normally uses the system c++ headers and libraries. With this option,
5612 # clang will use the ones provided by a gcc installation instead. This option should
5613 # be passed the same value that was used with --prefix when configuring gcc.
5615 # Check whether --with-gcc-toolchain was given.
5616 if test "${with_gcc_toolchain+set}" = set; then
5617 withval=$with_gcc_toolchain;
5623 cat >>confdefs.h <<_ACEOF
5624 #define GCC_INSTALL_PREFIX "$withval"
5629 # Check whether --with-default-sysroot was given.
5630 if test "${with_default_sysroot+set}" = set; then
5631 withval=$with_default_sysroot;
5637 cat >>confdefs.h <<_ACEOF
5638 #define DEFAULT_SYSROOT "$withval"
5643 # Check whether --with-binutils-include was given.
5644 if test "${with_binutils_include+set}" = set; then
5645 withval=$with_binutils_include;
5651 default) WITH_BINUTILS_INCDIR=default ;;
5652 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5653 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5654 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5655 { (exit 1); exit 1; }; } ;;
5657 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5658 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5660 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5661 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5662 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5663 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5664 { (exit 1); exit 1; }; };
5669 # Check whether --with-bug-report-url was given.
5670 if test "${with_bug_report_url+set}" = set; then
5671 withval=$with_bug_report_url;
5673 withval="http://llvm.org/bugs/"
5677 cat >>confdefs.h <<_ACEOF
5678 #define BUG_REPORT_URL "$withval"
5682 # Check whether --enable-terminfo was given.
5683 if test "${enable_terminfo+set}" = set; then
5684 enableval=$enable_terminfo; case "$enableval" in
5685 yes) llvm_cv_enable_terminfo="yes" ;;
5686 no) llvm_cv_enable_terminfo="no" ;;
5687 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5688 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5689 { (exit 1); exit 1; }; } ;;
5692 llvm_cv_enable_terminfo="yes"
5695 case "$llvm_cv_enable_terminfo" in
5696 yes) ENABLE_TERMINFO=1
5698 no) ENABLE_TERMINFO=0
5702 # Check whether --enable-libedit was given.
5703 if test "${enable_libedit+set}" = set; then
5704 enableval=$enable_libedit; case "$enableval" in
5705 yes) llvm_cv_enable_libedit="yes" ;;
5706 no) llvm_cv_enable_libedit="no" ;;
5707 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5708 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5709 { (exit 1); exit 1; }; } ;;
5712 llvm_cv_enable_libedit="yes"
5716 # Check whether --enable-libffi was given.
5717 if test "${enable_libffi+set}" = set; then
5718 enableval=$enable_libffi; case "$enableval" in
5719 yes) llvm_cv_enable_libffi="yes" ;;
5720 no) llvm_cv_enable_libffi="no" ;;
5721 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5722 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5723 { (exit 1); exit 1; }; } ;;
5726 llvm_cv_enable_libffi=no
5731 # Check whether --with-internal-prefix was given.
5732 if test "${with_internal_prefix+set}" = set; then
5733 withval=$with_internal_prefix;
5738 INTERNAL_PREFIX=$withval
5742 { echo "$as_me:$LINENO: checking for GNU make" >&5
5743 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5744 if test "${llvm_cv_gnu_make_command+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 llvm_cv_gnu_make_command=''
5748 for a in "$MAKE" make gmake gnumake ; do
5749 if test -z "$a" ; then continue ; fi ;
5750 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5752 llvm_cv_gnu_make_command=$a ;
5757 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5758 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5759 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5763 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5764 echo "${ECHO_T}\"Not found\"" >&6; };
5768 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5769 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5771 if test "$LN_S" = "ln -s"; then
5772 { echo "$as_me:$LINENO: result: yes" >&5
5773 echo "${ECHO_T}yes" >&6; }
5775 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5776 echo "${ECHO_T}no, using $LN_S" >&6; }
5779 # Extract the first word of "nm", so it can be a program name with args.
5780 set dummy nm; ac_word=$2
5781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783 if test "${ac_cv_path_NM+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5798 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5811 if test -n "$NM"; then
5812 { echo "$as_me:$LINENO: result: $NM" >&5
5813 echo "${ECHO_T}$NM" >&6; }
5815 { echo "$as_me:$LINENO: result: no" >&5
5816 echo "${ECHO_T}no" >&6; }
5820 # Extract the first word of "cmp", so it can be a program name with args.
5821 set dummy cmp; ac_word=$2
5822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824 if test "${ac_cv_path_CMP+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5852 if test -n "$CMP"; then
5853 { echo "$as_me:$LINENO: result: $CMP" >&5
5854 echo "${ECHO_T}$CMP" >&6; }
5856 { echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6; }
5861 # Extract the first word of "cp", so it can be a program name with args.
5862 set dummy cp; ac_word=$2
5863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865 if test "${ac_cv_path_CP+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5880 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5893 if test -n "$CP"; then
5894 { echo "$as_me:$LINENO: result: $CP" >&5
5895 echo "${ECHO_T}$CP" >&6; }
5897 { echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6; }
5902 # Extract the first word of "date", so it can be a program name with args.
5903 set dummy date; ac_word=$2
5904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906 if test "${ac_cv_path_DATE+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5933 DATE=$ac_cv_path_DATE
5934 if test -n "$DATE"; then
5935 { echo "$as_me:$LINENO: result: $DATE" >&5
5936 echo "${ECHO_T}$DATE" >&6; }
5938 { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5943 # Extract the first word of "find", so it can be a program name with args.
5944 set dummy find; ac_word=$2
5945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947 if test "${ac_cv_path_FIND+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5974 FIND=$ac_cv_path_FIND
5975 if test -n "$FIND"; then
5976 { echo "$as_me:$LINENO: result: $FIND" >&5
5977 echo "${ECHO_T}$FIND" >&6; }
5979 { echo "$as_me:$LINENO: result: no" >&5
5980 echo "${ECHO_T}no" >&6; }
5984 # Extract the first word of "grep", so it can be a program name with args.
5985 set dummy grep; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_path_GREP+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6003 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6015 GREP=$ac_cv_path_GREP
6016 if test -n "$GREP"; then
6017 { echo "$as_me:$LINENO: result: $GREP" >&5
6018 echo "${ECHO_T}$GREP" >&6; }
6020 { echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6; }
6025 # Extract the first word of "mkdir", so it can be a program name with args.
6026 set dummy mkdir; ac_word=$2
6027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6029 if test "${ac_cv_path_MKDIR+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6044 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6056 MKDIR=$ac_cv_path_MKDIR
6057 if test -n "$MKDIR"; then
6058 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6059 echo "${ECHO_T}$MKDIR" >&6; }
6061 { echo "$as_me:$LINENO: result: no" >&5
6062 echo "${ECHO_T}no" >&6; }
6066 # Extract the first word of "mv", so it can be a program name with args.
6067 set dummy mv; ac_word=$2
6068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070 if test "${ac_cv_path_MV+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6098 if test -n "$MV"; then
6099 { echo "$as_me:$LINENO: result: $MV" >&5
6100 echo "${ECHO_T}$MV" >&6; }
6102 { echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6; }
6107 if test -n "$ac_tool_prefix"; then
6108 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6109 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6112 if test "${ac_cv_prog_RANLIB+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 if test -n "$RANLIB"; then
6116 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 RANLIB=$ac_cv_prog_RANLIB
6136 if test -n "$RANLIB"; then
6137 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6138 echo "${ECHO_T}$RANLIB" >&6; }
6140 { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6146 if test -z "$ac_cv_prog_RANLIB"; then
6147 ac_ct_RANLIB=$RANLIB
6148 # Extract the first word of "ranlib", so it can be a program name with args.
6149 set dummy ranlib; ac_word=$2
6150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6152 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 if test -n "$ac_ct_RANLIB"; then
6156 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_prog_ac_ct_RANLIB="ranlib"
6166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6176 if test -n "$ac_ct_RANLIB"; then
6177 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6178 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6180 { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6184 if test "x$ac_ct_RANLIB" = x; then
6187 case $cross_compiling:$ac_tool_warned in
6189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6190 whose name does not start with the host triplet. If you think this
6191 configuration is useful to you, please write to autoconf@gnu.org." >&5
6192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6193 whose name does not start with the host triplet. If you think this
6194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6195 ac_tool_warned=yes ;;
6197 RANLIB=$ac_ct_RANLIB
6200 RANLIB="$ac_cv_prog_RANLIB"
6203 if test -n "$ac_tool_prefix"; then
6204 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6205 set dummy ${ac_tool_prefix}ar; ac_word=$2
6206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6208 if test "${ac_cv_prog_AR+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 if test -n "$AR"; then
6212 ac_cv_prog_AR="$AR" # Let the user override the test.
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_prog_AR="${ac_tool_prefix}ar"
6222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 if test -n "$AR"; then
6233 { echo "$as_me:$LINENO: result: $AR" >&5
6234 echo "${ECHO_T}$AR" >&6; }
6236 { echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6; }
6242 if test -z "$ac_cv_prog_AR"; then
6244 # Extract the first word of "ar", so it can be a program name with args.
6245 set dummy ar; ac_word=$2
6246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6248 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 if test -n "$ac_ct_AR"; then
6252 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_ac_ct_AR="ar"
6262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6272 if test -n "$ac_ct_AR"; then
6273 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6274 echo "${ECHO_T}$ac_ct_AR" >&6; }
6276 { echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6; }
6280 if test "x$ac_ct_AR" = x; then
6283 case $cross_compiling:$ac_tool_warned in
6285 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6286 whose name does not start with the host triplet. If you think this
6287 configuration is useful to you, please write to autoconf@gnu.org." >&5
6288 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6289 whose name does not start with the host triplet. If you think this
6290 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6291 ac_tool_warned=yes ;;
6299 # Extract the first word of "rm", so it can be a program name with args.
6300 set dummy rm; ac_word=$2
6301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303 if test "${ac_cv_path_RM+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6331 if test -n "$RM"; then
6332 { echo "$as_me:$LINENO: result: $RM" >&5
6333 echo "${ECHO_T}$RM" >&6; }
6335 { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6340 # Extract the first word of "sed", so it can be a program name with args.
6341 set dummy sed; ac_word=$2
6342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344 if test "${ac_cv_path_SED+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6359 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6372 if test -n "$SED"; then
6373 { echo "$as_me:$LINENO: result: $SED" >&5
6374 echo "${ECHO_T}$SED" >&6; }
6376 { echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6; }
6381 # Extract the first word of "tar", so it can be a program name with args.
6382 set dummy tar; ac_word=$2
6383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385 if test "${ac_cv_path_TAR+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6413 if test -n "$TAR"; then
6414 { echo "$as_me:$LINENO: result: $TAR" >&5
6415 echo "${ECHO_T}$TAR" >&6; }
6417 { echo "$as_me:$LINENO: result: no" >&5
6418 echo "${ECHO_T}no" >&6; }
6422 # Extract the first word of "pwd", so it can be a program name with args.
6423 set dummy pwd; ac_word=$2
6424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6426 if test "${ac_cv_path_BINPWD+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6453 BINPWD=$ac_cv_path_BINPWD
6454 if test -n "$BINPWD"; then
6455 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6456 echo "${ECHO_T}$BINPWD" >&6; }
6458 { echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6; }
6464 # Extract the first word of "dot", so it can be a program name with args.
6465 set dummy dot; ac_word=$2
6466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6468 if test "${ac_cv_path_DOT+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 test -z "$as_dir" && as_dir=.
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6483 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6496 if test -n "$DOT"; then
6497 { echo "$as_me:$LINENO: result: $DOT" >&5
6498 echo "${ECHO_T}$DOT" >&6; }
6500 { echo "$as_me:$LINENO: result: no" >&5
6501 echo "${ECHO_T}no" >&6; }
6505 if test "$DOT" != "echo dot" ; then
6507 cat >>confdefs.h <<\_ACEOF
6511 if test "$llvm_cv_os_type" = "MingW" ; then
6512 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6515 cat >>confdefs.h <<_ACEOF
6516 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6521 # Find a good install program. We prefer a C program (faster),
6522 # so one script is as good as another. But avoid the broken or
6523 # incompatible versions:
6524 # SysV /etc/install, /usr/sbin/install
6525 # SunOS /usr/etc/install
6526 # IRIX /sbin/install
6528 # AmigaOS /C/install, which installs bootblocks on floppy discs
6529 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6530 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6531 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6532 # OS/2's system install, which has a completely different semantic
6533 # ./install, which can be erroneously created by make from ./install.sh.
6534 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6535 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6536 if test -z "$INSTALL"; then
6537 if test "${ac_cv_path_install+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 # Account for people who put trailing slashes in PATH elements.
6547 ./ | .// | /cC/* | \
6548 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6549 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6552 # OSF1 and SCO ODT 3.0 have their own names for install.
6553 # Don't use installbsd from OSF since it installs stuff as root
6555 for ac_prog in ginstall scoinst install; do
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6558 if test $ac_prog = install &&
6559 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6560 # AIX install. It has an incompatible calling convention.
6562 elif test $ac_prog = install &&
6563 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6564 # program-specific install script used by HP pwplus--don't use.
6567 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6580 if test "${ac_cv_path_install+set}" = set; then
6581 INSTALL=$ac_cv_path_install
6583 # As a last resort, use the slow shell script. Don't cache a
6584 # value for INSTALL within a source directory, because that will
6585 # break other packages using the cache if that directory is
6586 # removed, or if the value is a relative name.
6587 INSTALL=$ac_install_sh
6590 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6591 echo "${ECHO_T}$INSTALL" >&6; }
6593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6594 # It thinks the first close brace ends the variable substitution.
6595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6597 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6599 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6602 [\\/$]* | ?:[\\/]* ) ;;
6603 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6606 # Extract the first word of "bzip2", so it can be a program name with args.
6607 set dummy bzip2; ac_word=$2
6608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6610 if test "${ac_cv_path_BZIP2+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 BZIP2=$ac_cv_path_BZIP2
6637 if test -n "$BZIP2"; then
6638 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6639 echo "${ECHO_T}$BZIP2" >&6; }
6641 { echo "$as_me:$LINENO: result: no" >&5
6642 echo "${ECHO_T}no" >&6; }
6646 # Extract the first word of "cat", so it can be a program name with args.
6647 set dummy cat; ac_word=$2
6648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6650 if test "${ac_cv_path_CAT+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 if test -n "$CAT"; then
6678 { echo "$as_me:$LINENO: result: $CAT" >&5
6679 echo "${ECHO_T}$CAT" >&6; }
6681 { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6686 # Extract the first word of "doxygen", so it can be a program name with args.
6687 set dummy doxygen; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 DOXYGEN=$ac_cv_path_DOXYGEN
6717 if test -n "$DOXYGEN"; then
6718 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6719 echo "${ECHO_T}$DOXYGEN" >&6; }
6721 { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6726 # Extract the first word of "groff", so it can be a program name with args.
6727 set dummy groff; ac_word=$2
6728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730 if test "${ac_cv_path_GROFF+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 GROFF=$ac_cv_path_GROFF
6757 if test -n "$GROFF"; then
6758 { echo "$as_me:$LINENO: result: $GROFF" >&5
6759 echo "${ECHO_T}$GROFF" >&6; }
6761 { echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6; }
6766 # Extract the first word of "gzip", so it can be a program name with args.
6767 set dummy gzip; ac_word=$2
6768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6770 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6785 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 GZIPBIN=$ac_cv_path_GZIPBIN
6797 if test -n "$GZIPBIN"; then
6798 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6799 echo "${ECHO_T}$GZIPBIN" >&6; }
6801 { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6806 # Extract the first word of "pdfroff", so it can be a program name with args.
6807 set dummy pdfroff; ac_word=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_path_PDFROFF+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6825 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 PDFROFF=$ac_cv_path_PDFROFF
6837 if test -n "$PDFROFF"; then
6838 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6839 echo "${ECHO_T}$PDFROFF" >&6; }
6841 { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6846 # Extract the first word of "zip", so it can be a program name with args.
6847 set dummy zip; ac_word=$2
6848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6850 if test "${ac_cv_path_ZIP+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 test -z "$as_dir" && as_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6865 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 if test -n "$ZIP"; then
6878 { echo "$as_me:$LINENO: result: $ZIP" >&5
6879 echo "${ECHO_T}$ZIP" >&6; }
6881 { echo "$as_me:$LINENO: result: no" >&5
6882 echo "${ECHO_T}no" >&6; }
6886 # Extract the first word of "go", so it can be a program name with args.
6887 set dummy go; ac_word=$2
6888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890 if test "${ac_cv_path_GO+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 ac_cv_path_GO="$GO" # Let the user override the test with a path.
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 if test -n "$GO"; then
6918 { echo "$as_me:$LINENO: result: $GO" >&5
6919 echo "${ECHO_T}$GO" >&6; }
6921 { echo "$as_me:$LINENO: result: no" >&5
6922 echo "${ECHO_T}no" >&6; }
6926 for ac_prog in ocamlfind
6928 # Extract the first word of "$ac_prog", so it can be a program name with args.
6929 set dummy $ac_prog; ac_word=$2
6930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6947 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
6948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 OCAMLFIND=$ac_cv_path_OCAMLFIND
6959 if test -n "$OCAMLFIND"; then
6960 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
6961 echo "${ECHO_T}$OCAMLFIND" >&6; }
6963 { echo "$as_me:$LINENO: result: no" >&5
6964 echo "${ECHO_T}no" >&6; }
6968 test -n "$OCAMLFIND" && break
6971 for ac_prog in gas as
6973 # Extract the first word of "$ac_prog", so it can be a program name with args.
6974 set dummy $ac_prog; ac_word=$2
6975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6977 if test "${ac_cv_path_GAS+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6992 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 if test -n "$GAS"; then
7005 { echo "$as_me:$LINENO: result: $GAS" >&5
7006 echo "${ECHO_T}$GAS" >&6; }
7008 { echo "$as_me:$LINENO: result: no" >&5
7009 echo "${ECHO_T}no" >&6; }
7013 test -n "$GAS" && break
7017 { echo "$as_me:$LINENO: checking for linker version" >&5
7018 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7019 if test "${llvm_cv_link_version+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7026 if (echo "$version_string" | grep -q "ld64"); then
7027 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7029 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7033 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7034 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7036 cat >>confdefs.h <<_ACEOF
7037 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7043 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7044 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7045 if test "${llvm_cv_link_use_r+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 ac_cpp='$CPP $CPPFLAGS'
7050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7055 CFLAGS="$CFLAGS -Wl,-R."
7056 cat >conftest.$ac_ext <<_ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (ac_try="$ac_link"
7074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075 *) ac_try_echo=$ac_try;;
7077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078 (eval "$ac_link") 2>conftest.er1
7080 grep -v '^ *+' conftest.er1 >conftest.err
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7086 { (case "(($ac_try" in
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_try") 2>&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; } &&
7095 { ac_try='test -s conftest$ac_exeext'
7096 { (case "(($ac_try" in
7097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7098 *) ac_try_echo=$ac_try;;
7100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7101 (eval "$ac_try") 2>&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7105 llvm_cv_link_use_r=yes
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7110 llvm_cv_link_use_r=no
7113 rm -f core conftest.err conftest.$ac_objext \
7114 conftest$ac_exeext conftest.$ac_ext
7117 ac_cpp='$CPP $CPPFLAGS'
7118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7124 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7125 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7126 if test "$llvm_cv_link_use_r" = yes ; then
7128 cat >>confdefs.h <<\_ACEOF
7129 #define HAVE_LINK_R 1
7135 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7136 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7137 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 ac_cpp='$CPP $CPPFLAGS'
7142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147 CFLAGS="$CFLAGS -rdynamic"
7148 cat >conftest.$ac_ext <<_ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7163 rm -f conftest.$ac_objext conftest$ac_exeext
7164 if { (ac_try="$ac_link"
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170 (eval "$ac_link") 2>conftest.er1
7172 grep -v '^ *+' conftest.er1 >conftest.err
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7178 { (case "(($ac_try" in
7179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180 *) ac_try_echo=$ac_try;;
7182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7183 (eval "$ac_try") 2>&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; } &&
7187 { ac_try='test -s conftest$ac_exeext'
7188 { (case "(($ac_try" in
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_try") 2>&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 llvm_cv_link_use_export_dynamic=yes
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7202 llvm_cv_link_use_export_dynamic=no
7205 rm -f core conftest.err conftest.$ac_objext \
7206 conftest$ac_exeext conftest.$ac_ext
7209 ac_cpp='$CPP $CPPFLAGS'
7210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7216 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7217 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7218 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7220 cat >>confdefs.h <<\_ACEOF
7221 #define HAVE_LINK_EXPORT_DYNAMIC 1
7227 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7228 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7229 if test "${llvm_cv_link_use_version_script+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 ac_cpp='$CPP $CPPFLAGS'
7234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7240 # The following code is from the autoconf manual,
7241 # "11.13: Limitations of Usual Tools".
7242 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7243 # Use mktemp if possible; otherwise fall back on mkdir,
7244 # with $RANDOM to make collisions less likely.
7248 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7250 test -n "$tmp" && test -d "$tmp"
7252 tmp=$TMPDIR/foo$$-$RANDOM
7253 (umask 077 && mkdir "$tmp")
7256 echo "{" > "$tmp/export.map"
7257 echo " global: main;" >> "$tmp/export.map"
7258 echo " local: *;" >> "$tmp/export.map"
7259 echo "};" >> "$tmp/export.map"
7261 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7262 cat >conftest.$ac_ext <<_ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7277 rm -f conftest.$ac_objext conftest$ac_exeext
7278 if { (ac_try="$ac_link"
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_link") 2>conftest.er1
7286 grep -v '^ *+' conftest.er1 >conftest.err
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } &&
7291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7292 { (case "(($ac_try" in
7293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 (eval "$ac_try") 2>&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; } &&
7301 { ac_try='test -s conftest$ac_exeext'
7302 { (case "(($ac_try" in
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307 (eval "$ac_try") 2>&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 llvm_cv_link_use_version_script=yes
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7316 llvm_cv_link_use_version_script=no
7319 rm -f core conftest.err conftest.$ac_objext \
7320 conftest$ac_exeext conftest.$ac_ext
7321 rm "$tmp/export.map"
7325 ac_cpp='$CPP $CPPFLAGS'
7326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7332 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7333 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7334 if test "$llvm_cv_link_use_version_script" = yes ; then
7335 HAVE_LINK_VERSION_SCRIPT=1
7341 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7342 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7343 if test "${ac_cv_path_GREP+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 # Extract the first word of "grep ggrep" to use in msg output
7347 if test -z "$GREP"; then
7348 set dummy grep ggrep; ac_prog_name=$2
7349 if test "${ac_cv_path_GREP+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 ac_path_GREP_found=false
7353 # Loop through the user's path and test for each of PROGNAME-LIST
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7358 test -z "$as_dir" && as_dir=.
7359 for ac_prog in grep ggrep; do
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7362 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7363 # Check for GNU ac_path_GREP and select it if it is found.
7364 # Check for GNU $ac_path_GREP
7365 case `"$ac_path_GREP" --version 2>&1` in
7367 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7370 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7373 cat "conftest.in" "conftest.in" >"conftest.tmp"
7374 mv "conftest.tmp" "conftest.in"
7375 cp "conftest.in" "conftest.nl"
7376 echo 'GREP' >> "conftest.nl"
7377 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7379 ac_count=`expr $ac_count + 1`
7380 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7381 # Best one so far, save it but keep looking for a better one
7382 ac_cv_path_GREP="$ac_path_GREP"
7383 ac_path_GREP_max=$ac_count
7385 # 10*(2^10) chars as input seems more than enough
7386 test $ac_count -gt 10 && break
7388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7392 $ac_path_GREP_found && break 3
7402 GREP="$ac_cv_path_GREP"
7403 if test -z "$GREP"; then
7404 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7405 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7406 { (exit 1); exit 1; }; }
7410 ac_cv_path_GREP=$GREP
7415 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7416 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7417 GREP="$ac_cv_path_GREP"
7420 { echo "$as_me:$LINENO: checking for egrep" >&5
7421 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7422 if test "${ac_cv_path_EGREP+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7426 then ac_cv_path_EGREP="$GREP -E"
7428 # Extract the first word of "egrep" to use in msg output
7429 if test -z "$EGREP"; then
7430 set dummy egrep; ac_prog_name=$2
7431 if test "${ac_cv_path_EGREP+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 ac_path_EGREP_found=false
7435 # Loop through the user's path and test for each of PROGNAME-LIST
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7440 test -z "$as_dir" && as_dir=.
7441 for ac_prog in egrep; do
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7444 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7445 # Check for GNU ac_path_EGREP and select it if it is found.
7446 # Check for GNU $ac_path_EGREP
7447 case `"$ac_path_EGREP" --version 2>&1` in
7449 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7452 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7455 cat "conftest.in" "conftest.in" >"conftest.tmp"
7456 mv "conftest.tmp" "conftest.in"
7457 cp "conftest.in" "conftest.nl"
7458 echo 'EGREP' >> "conftest.nl"
7459 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7461 ac_count=`expr $ac_count + 1`
7462 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7463 # Best one so far, save it but keep looking for a better one
7464 ac_cv_path_EGREP="$ac_path_EGREP"
7465 ac_path_EGREP_max=$ac_count
7467 # 10*(2^10) chars as input seems more than enough
7468 test $ac_count -gt 10 && break
7470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7474 $ac_path_EGREP_found && break 3
7484 EGREP="$ac_cv_path_EGREP"
7485 if test -z "$EGREP"; then
7486 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7487 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7488 { (exit 1); exit 1; }; }
7492 ac_cv_path_EGREP=$EGREP
7498 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7499 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7500 EGREP="$ac_cv_path_EGREP"
7503 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7504 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7505 if test "${ac_cv_header_stdc+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 cat >conftest.$ac_ext <<_ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7527 rm -f conftest.$ac_objext
7528 if { (ac_try="$ac_compile"
7530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531 *) ac_try_echo=$ac_try;;
7533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7534 (eval "$ac_compile") 2>conftest.er1
7536 grep -v '^ *+' conftest.er1 >conftest.err
7538 cat conftest.err >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7542 { (case "(($ac_try" in
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547 (eval "$ac_try") 2>&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }; } &&
7551 { ac_try='test -s conftest.$ac_objext'
7552 { (case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_try") 2>&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
7561 ac_cv_header_stdc=yes
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7566 ac_cv_header_stdc=no
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7571 if test $ac_cv_header_stdc = yes; then
7572 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7573 cat >conftest.$ac_ext <<_ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7583 $EGREP "memchr" >/dev/null 2>&1; then
7586 ac_cv_header_stdc=no
7592 if test $ac_cv_header_stdc = yes; then
7593 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7594 cat >conftest.$ac_ext <<_ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7604 $EGREP "free" >/dev/null 2>&1; then
7607 ac_cv_header_stdc=no
7613 if test $ac_cv_header_stdc = yes; then
7614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7615 if test "$cross_compiling" = yes; then
7618 cat >conftest.$ac_ext <<_ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7626 #if ((' ' & 0x0FF) == 0x020)
7627 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7628 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7630 # define ISLOWER(c) \
7631 (('a' <= (c) && (c) <= 'i') \
7632 || ('j' <= (c) && (c) <= 'r') \
7633 || ('s' <= (c) && (c) <= 'z'))
7634 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7642 for (i = 0; i < 256; i++)
7643 if (XOR (islower (i), ISLOWER (i))
7644 || toupper (i) != TOUPPER (i))
7649 rm -f conftest$ac_exeext
7650 if { (ac_try="$ac_link"
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_link") 2>&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7660 { (case "(($ac_try" in
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7665 (eval "$ac_try") 2>&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7671 echo "$as_me: program exited with status $ac_status" >&5
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7676 ac_cv_header_stdc=no
7678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7684 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7685 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7686 if test $ac_cv_header_stdc = yes; then
7688 cat >>confdefs.h <<\_ACEOF
7689 #define STDC_HEADERS 1
7694 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7704 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7705 inttypes.h stdint.h unistd.h
7707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 cat >conftest.$ac_ext <<_ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7719 $ac_includes_default
7721 #include <$ac_header>
7723 rm -f conftest.$ac_objext
7724 if { (ac_try="$ac_compile"
7726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7727 *) ac_try_echo=$ac_try;;
7729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7730 (eval "$ac_compile") 2>conftest.er1
7732 grep -v '^ *+' conftest.er1 >conftest.err
7734 cat conftest.err >&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } &&
7737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7738 { (case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_try") 2>&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; } &&
7747 { ac_try='test -s conftest.$ac_objext'
7748 { (case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_try") 2>&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 eval "$as_ac_Header=yes"
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7762 eval "$as_ac_Header=no"
7765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 ac_res=`eval echo '${'$as_ac_Header'}'`
7768 { echo "$as_me:$LINENO: result: $ac_res" >&5
7769 echo "${ECHO_T}$ac_res" >&6; }
7770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7771 cat >>confdefs.h <<_ACEOF
7772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7781 for ac_header in errno.h
7783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 ac_res=`eval echo '${'$as_ac_Header'}'`
7791 { echo "$as_me:$LINENO: result: $ac_res" >&5
7792 echo "${ECHO_T}$ac_res" >&6; }
7794 # Is the header compilable?
7795 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7797 cat >conftest.$ac_ext <<_ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7803 $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 ac_header_compiler=yes
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7845 ac_header_compiler=no
7848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7850 echo "${ECHO_T}$ac_header_compiler" >&6; }
7852 # Is the header present?
7853 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7855 cat >conftest.$ac_ext <<_ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 #include <$ac_header>
7863 if { (ac_try="$ac_cpp conftest.$ac_ext"
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } >/dev/null; then
7876 if test -s conftest.err; then
7877 ac_cpp_err=$ac_c_preproc_warn_flag
7878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7885 if test -z "$ac_cpp_err"; then
7886 ac_header_preproc=yes
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 ac_header_preproc=no
7894 rm -f conftest.err conftest.$ac_ext
7895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7896 echo "${ECHO_T}$ac_header_preproc" >&6; }
7898 # So? What about this header?
7899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7905 ac_header_preproc=yes
7908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7921 ## ------------------------------------ ##
7922 ## Report this to http://llvm.org/bugs/ ##
7923 ## ------------------------------------ ##
7925 ) | sed "s/^/$as_me: WARNING: /" >&2
7928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 eval "$as_ac_Header=\$ac_header_preproc"
7935 ac_res=`eval echo '${'$as_ac_Header'}'`
7936 { echo "$as_me:$LINENO: result: $ac_res" >&5
7937 echo "${ECHO_T}$ac_res" >&6; }
7940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7941 cat >>confdefs.h <<_ACEOF
7942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7950 case "$llvm_cv_os_type" in
7951 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
7952 Darwin) llvm_shlib_ext=.dylib ;;
7953 *) llvm_shlib_ext=.so ;;
7957 cat >>confdefs.h <<_ACEOF
7958 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
7962 { echo "$as_me:$LINENO: checking tool compatibility" >&5
7963 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
7976 if test "$GCC" != "yes" && test "$ICC" != "yes"
7978 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
7979 echo "$as_me: error: gcc|icc required but not found" >&2;}
7980 { (exit 1); exit 1; }; }
7983 if test "$GXX" != "yes" && test "$IXX" != "yes"
7985 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
7986 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
7987 { (exit 1); exit 1; }; }
7990 if test "$GCC" = "yes"
7992 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
8000 #if !defined(__GNUC__) || __GNUC__ < 3
8001 #error Unsupported GCC version
8006 rm -f conftest.$ac_objext
8007 if { (ac_try="$ac_compile"
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_compile") 2>conftest.er1
8015 grep -v '^ *+' conftest.er1 >conftest.err
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } &&
8020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8021 { (case "(($ac_try" in
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026 (eval "$ac_try") 2>&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; } &&
8030 { ac_try='test -s conftest.$ac_objext'
8031 { (case "(($ac_try" in
8032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_try") 2>&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8042 echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8045 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8046 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8047 { (exit 1); exit 1; }; }
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 if test -z "$llvm_cv_gnu_make_command"
8055 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8056 echo "$as_me: error: GNU Make required but not found" >&2;}
8057 { (exit 1); exit 1; }; }
8060 { echo "$as_me:$LINENO: result: ok" >&5
8061 echo "${ECHO_T}ok" >&6; }
8063 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8064 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8065 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8067 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8069 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8073 NO_MAYBE_UNINITIALIZED=
8074 if test "$GXX" = "yes"
8076 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8078 if test -z "$NO_MAYBE_UNINITIALIZED"
8080 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8086 llvm_cv_old_cxxflags="$CXXFLAGS"
8087 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8088 cat >conftest.$ac_ext <<_ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8097 int main() { return 0; }
8101 rm -f conftest.$ac_objext
8102 if { (ac_try="$ac_compile"
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_compile") 2>conftest.er1
8110 grep -v '^ *+' conftest.er1 >conftest.err
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } &&
8115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8116 { (case "(($ac_try" in
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_try") 2>&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; } &&
8125 { ac_try='test -s conftest.$ac_objext'
8126 { (case "(($ac_try" in
8127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131 (eval "$ac_try") 2>&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8136 no_comment=-Wno-comment
8139 echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146 NO_COMMENT=$no_comment
8148 CXXFLAGS="$llvm_cv_old_cxxflags"
8150 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8151 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8154 # Check whether --with-python was given.
8155 if test "${with_python+set}" = set; then
8156 withval=$with_python; PYTHON="$withval"
8160 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8161 { echo "$as_me:$LINENO: checking for python" >&5
8162 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8163 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8164 echo "${ECHO_T}user defined: $with_python" >&6; }
8166 if test -n "$PYTHON" ; then
8167 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8168 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8171 # Extract the first word of "python python2 python27", so it can be a program name with args.
8172 set dummy python python2 python27; ac_word=$2
8173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8175 if test "${ac_cv_path_PYTHON+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8199 echo "${ECHO_T}not found" >&6; }
8200 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8201 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8202 { (exit 1); exit 1; }; }"
8206 PYTHON=$ac_cv_path_PYTHON
8207 if test -n "$PYTHON"; then
8208 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8209 echo "${ECHO_T}$PYTHON" >&6; }
8211 { echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6; }
8218 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8219 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8220 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8221 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8222 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8223 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8224 if test "$ac_python_version_major" -gt "2" || \
8225 (test "$ac_python_version_major" -eq "2" && \
8226 test "$ac_python_version_minor" -ge "7") ; then
8227 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8228 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8230 { echo "$as_me:$LINENO: result: not found" >&5
8231 echo "${ECHO_T}not found" >&6; }
8232 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8233 See \`config.log' for more details." >&5
8234 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8235 See \`config.log' for more details." >&2;}
8236 { (exit 1); exit 1; }; }
8241 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8242 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8243 if test "${ac_cv_lib_m_sin+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 ac_check_lib_save_LIBS=$LIBS
8248 cat >conftest.$ac_ext <<_ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8255 /* Override any GCC internal prototype to avoid an error.
8256 Use char because int might match the return type of a GCC
8257 builtin and then its argument prototype would still apply. */
8270 rm -f conftest.$ac_objext conftest$ac_exeext
8271 if { (ac_try="$ac_link"
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_link") 2>conftest.er1
8279 grep -v '^ *+' conftest.er1 >conftest.err
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8285 { (case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_try") 2>&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try='test -s conftest$ac_exeext'
8295 { (case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_try") 2>&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8312 rm -f core conftest.err conftest.$ac_objext \
8313 conftest$ac_exeext conftest.$ac_ext
8314 LIBS=$ac_check_lib_save_LIBS
8316 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8317 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8318 if test $ac_cv_lib_m_sin = yes; then
8319 cat >>confdefs.h <<_ACEOF
8327 if test "$llvm_cv_os_type" = "MingW" ; then
8329 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8330 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8331 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 ac_check_lib_save_LIBS=$LIBS
8335 LIBS="-limagehlp $LIBS"
8336 cat >conftest.$ac_ext <<_ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (ac_try="$ac_link"
8355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8359 (eval "$ac_link") 2>conftest.er1
8361 grep -v '^ *+' conftest.er1 >conftest.err
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8367 { (case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_try") 2>&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest$ac_exeext'
8377 { (case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_try") 2>&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
8386 ac_cv_lib_imagehlp_main=yes
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8391 ac_cv_lib_imagehlp_main=no
8394 rm -f core conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8396 LIBS=$ac_check_lib_save_LIBS
8398 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8399 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8400 if test $ac_cv_lib_imagehlp_main = yes; then
8401 cat >>confdefs.h <<_ACEOF
8402 #define HAVE_LIBIMAGEHLP 1
8405 LIBS="-limagehlp $LIBS"
8410 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8411 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8412 if test "${ac_cv_lib_psapi_main+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 ac_check_lib_save_LIBS=$LIBS
8416 LIBS="-lpsapi $LIBS"
8417 cat >conftest.$ac_ext <<_ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8433 rm -f conftest.$ac_objext conftest$ac_exeext
8434 if { (ac_try="$ac_link"
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_link") 2>conftest.er1
8442 grep -v '^ *+' conftest.er1 >conftest.err
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8448 { (case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_try") 2>&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try='test -s conftest$ac_exeext'
8458 { (case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_try") 2>&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_cv_lib_psapi_main=yes
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8472 ac_cv_lib_psapi_main=no
8475 rm -f core conftest.err conftest.$ac_objext \
8476 conftest$ac_exeext conftest.$ac_ext
8477 LIBS=$ac_check_lib_save_LIBS
8479 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8480 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8481 if test $ac_cv_lib_psapi_main = yes; then
8482 cat >>confdefs.h <<_ACEOF
8483 #define HAVE_LIBPSAPI 1
8486 LIBS="-lpsapi $LIBS"
8491 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8492 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8493 if test "${ac_cv_lib_shell32_main+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 ac_check_lib_save_LIBS=$LIBS
8497 LIBS="-lshell32 $LIBS"
8498 cat >conftest.$ac_ext <<_ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (ac_try="$ac_link"
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521 (eval "$ac_link") 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8529 { (case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534 (eval "$ac_try") 2>&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest$ac_exeext'
8539 { (case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_try") 2>&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_cv_lib_shell32_main=yes
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8553 ac_cv_lib_shell32_main=no
8556 rm -f core conftest.err conftest.$ac_objext \
8557 conftest$ac_exeext conftest.$ac_ext
8558 LIBS=$ac_check_lib_save_LIBS
8560 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8561 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8562 if test $ac_cv_lib_shell32_main = yes; then
8563 cat >>confdefs.h <<_ACEOF
8564 #define HAVE_LIBSHELL32 1
8567 LIBS="-lshell32 $LIBS"
8573 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8574 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8575 if test "${ac_cv_search_dlopen+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 ac_func_search_save_LIBS=$LIBS
8579 cat >conftest.$ac_ext <<_ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8586 /* Override any GCC internal prototype to avoid an error.
8587 Use char because int might match the return type of a GCC
8588 builtin and then its argument prototype would still apply. */
8601 for ac_lib in '' dl; do
8602 if test -z "$ac_lib"; then
8603 ac_res="none required"
8606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8608 rm -f conftest.$ac_objext conftest$ac_exeext
8609 if { (ac_try="$ac_link"
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615 (eval "$ac_link") 2>conftest.er1
8617 grep -v '^ *+' conftest.er1 >conftest.err
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } &&
8622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8623 { (case "(($ac_try" in
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_try") 2>&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; } &&
8632 { ac_try='test -s conftest$ac_exeext'
8633 { (case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_try") 2>&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
8642 ac_cv_search_dlopen=$ac_res
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8650 rm -f core conftest.err conftest.$ac_objext \
8652 if test "${ac_cv_search_dlopen+set}" = set; then
8656 if test "${ac_cv_search_dlopen+set}" = set; then
8659 ac_cv_search_dlopen=no
8662 LIBS=$ac_func_search_save_LIBS
8664 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8665 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8666 ac_res=$ac_cv_search_dlopen
8667 if test "$ac_res" != no; then
8668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8671 cat >>confdefs.h <<\_ACEOF
8672 #define HAVE_DLOPEN 1
8679 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8680 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8684 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8685 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8686 if test "${ac_cv_search_clock_gettime+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 ac_func_search_save_LIBS=$LIBS
8690 cat >conftest.$ac_ext <<_ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8697 /* Override any GCC internal prototype to avoid an error.
8698 Use char because int might match the return type of a GCC
8699 builtin and then its argument prototype would still apply. */
8703 char clock_gettime ();
8707 return clock_gettime ();
8712 for ac_lib in '' rt; do
8713 if test -z "$ac_lib"; then
8714 ac_res="none required"
8717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8719 rm -f conftest.$ac_objext conftest$ac_exeext
8720 if { (ac_try="$ac_link"
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_link") 2>conftest.er1
8728 grep -v '^ *+' conftest.er1 >conftest.err
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } &&
8733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8734 { (case "(($ac_try" in
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_try") 2>&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; } &&
8743 { ac_try='test -s conftest$ac_exeext'
8744 { (case "(($ac_try" in
8745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746 *) ac_try_echo=$ac_try;;
8748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8749 (eval "$ac_try") 2>&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
8753 ac_cv_search_clock_gettime=$ac_res
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8761 rm -f core conftest.err conftest.$ac_objext \
8763 if test "${ac_cv_search_clock_gettime+set}" = set; then
8767 if test "${ac_cv_search_clock_gettime+set}" = set; then
8770 ac_cv_search_clock_gettime=no
8773 LIBS=$ac_func_search_save_LIBS
8775 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8776 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8777 ac_res=$ac_cv_search_clock_gettime
8778 if test "$ac_res" != no; then
8779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8784 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8785 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8786 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8787 if test "${ac_cv_search_setupterm+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 ac_func_search_save_LIBS=$LIBS
8791 cat >conftest.$ac_ext <<_ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8798 /* Override any GCC internal prototype to avoid an error.
8799 Use char because int might match the return type of a GCC
8800 builtin and then its argument prototype would still apply. */
8808 return setupterm ();
8813 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8814 if test -z "$ac_lib"; then
8815 ac_res="none required"
8818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (ac_try="$ac_link"
8823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8824 *) ac_try_echo=$ac_try;;
8826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8827 (eval "$ac_link") 2>conftest.er1
8829 grep -v '^ *+' conftest.er1 >conftest.err
8831 cat conftest.err >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } &&
8834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8835 { (case "(($ac_try" in
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840 (eval "$ac_try") 2>&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; } &&
8844 { ac_try='test -s conftest$ac_exeext'
8845 { (case "(($ac_try" in
8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8850 (eval "$ac_try") 2>&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_cv_search_setupterm=$ac_res
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8862 rm -f core conftest.err conftest.$ac_objext \
8864 if test "${ac_cv_search_setupterm+set}" = set; then
8868 if test "${ac_cv_search_setupterm+set}" = set; then
8871 ac_cv_search_setupterm=no
8874 LIBS=$ac_func_search_save_LIBS
8876 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8877 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8878 ac_res=$ac_cv_search_setupterm
8879 if test "$ac_res" != no; then
8880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8883 cat >>confdefs.h <<\_ACEOF
8884 #define HAVE_TERMINFO 1
8894 if test "$llvm_cv_enable_libedit" = "yes" ; then
8895 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8896 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8897 if test "${ac_cv_search_el_init+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 ac_func_search_save_LIBS=$LIBS
8901 cat >conftest.$ac_ext <<_ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h. */
8908 /* Override any GCC internal prototype to avoid an error.
8909 Use char because int might match the return type of a GCC
8910 builtin and then its argument prototype would still apply. */
8923 for ac_lib in '' edit; do
8924 if test -z "$ac_lib"; then
8925 ac_res="none required"
8928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8930 rm -f conftest.$ac_objext conftest$ac_exeext
8931 if { (ac_try="$ac_link"
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937 (eval "$ac_link") 2>conftest.er1
8939 grep -v '^ *+' conftest.er1 >conftest.err
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8945 { (case "(($ac_try" in
8946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8947 *) ac_try_echo=$ac_try;;
8949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8950 (eval "$ac_try") 2>&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest$ac_exeext'
8955 { (case "(($ac_try" in
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_try") 2>&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 ac_cv_search_el_init=$ac_res
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8972 rm -f core conftest.err conftest.$ac_objext \
8974 if test "${ac_cv_search_el_init+set}" = set; then
8978 if test "${ac_cv_search_el_init+set}" = set; then
8981 ac_cv_search_el_init=no
8984 LIBS=$ac_func_search_save_LIBS
8986 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
8987 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
8988 ac_res=$ac_cv_search_el_init
8989 if test "$ac_res" != no; then
8990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8992 cat >>confdefs.h <<\_ACEOF
8993 #define HAVE_LIBEDIT 1
9000 if test "$llvm_cv_enable_libffi" = "yes" ; then
9001 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9002 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9003 if test "${ac_cv_search_ffi_call+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 ac_func_search_save_LIBS=$LIBS
9007 cat >conftest.$ac_ext <<_ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9014 /* Override any GCC internal prototype to avoid an error.
9015 Use char because int might match the return type of a GCC
9016 builtin and then its argument prototype would still apply. */
9029 for ac_lib in '' ffi; do
9030 if test -z "$ac_lib"; then
9031 ac_res="none required"
9034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9036 rm -f conftest.$ac_objext conftest$ac_exeext
9037 if { (ac_try="$ac_link"
9039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9040 *) ac_try_echo=$ac_try;;
9042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9043 (eval "$ac_link") 2>conftest.er1
9045 grep -v '^ *+' conftest.er1 >conftest.err
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9051 { (case "(($ac_try" in
9052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9056 (eval "$ac_try") 2>&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try='test -s conftest$ac_exeext'
9061 { (case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_try") 2>&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 ac_cv_search_ffi_call=$ac_res
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9078 rm -f core conftest.err conftest.$ac_objext \
9080 if test "${ac_cv_search_ffi_call+set}" = set; then
9084 if test "${ac_cv_search_ffi_call+set}" = set; then
9087 ac_cv_search_ffi_call=no
9090 LIBS=$ac_func_search_save_LIBS
9092 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9093 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9094 ac_res=$ac_cv_search_ffi_call
9095 if test "$ac_res" != no; then
9096 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9098 cat >>confdefs.h <<\_ACEOF
9099 #define HAVE_FFI_CALL 1
9103 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9104 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9105 { (exit 1); exit 1; }; }
9110 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9111 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9112 if test "${ac_cv_search_mallinfo+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 ac_func_search_save_LIBS=$LIBS
9116 cat >conftest.$ac_ext <<_ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9123 /* Override any GCC internal prototype to avoid an error.
9124 Use char because int might match the return type of a GCC
9125 builtin and then its argument prototype would still apply. */
9138 for ac_lib in '' malloc; do
9139 if test -z "$ac_lib"; then
9140 ac_res="none required"
9143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9145 rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_link") 2>conftest.er1
9154 grep -v '^ *+' conftest.er1 >conftest.err
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9160 { (case "(($ac_try" in
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165 (eval "$ac_try") 2>&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; } &&
9169 { ac_try='test -s conftest$ac_exeext'
9170 { (case "(($ac_try" in
9171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172 *) ac_try_echo=$ac_try;;
9174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175 (eval "$ac_try") 2>&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179 ac_cv_search_mallinfo=$ac_res
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9187 rm -f core conftest.err conftest.$ac_objext \
9189 if test "${ac_cv_search_mallinfo+set}" = set; then
9193 if test "${ac_cv_search_mallinfo+set}" = set; then
9196 ac_cv_search_mallinfo=no
9199 LIBS=$ac_func_search_save_LIBS
9201 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9202 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9203 ac_res=$ac_cv_search_mallinfo
9204 if test "$ac_res" != no; then
9205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9207 cat >>confdefs.h <<\_ACEOF
9208 #define HAVE_MALLINFO 1
9214 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9216 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9217 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9218 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 ac_check_lib_save_LIBS=$LIBS
9222 LIBS="-lpthread $LIBS"
9223 cat >conftest.$ac_ext <<_ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9230 /* Override any GCC internal prototype to avoid an error.
9231 Use char because int might match the return type of a GCC
9232 builtin and then its argument prototype would still apply. */
9236 char pthread_mutex_init ();
9240 return pthread_mutex_init ();
9245 rm -f conftest.$ac_objext conftest$ac_exeext
9246 if { (ac_try="$ac_link"
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_link") 2>conftest.er1
9254 grep -v '^ *+' conftest.er1 >conftest.err
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9260 { (case "(($ac_try" in
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_try") 2>&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; } &&
9269 { ac_try='test -s conftest$ac_exeext'
9270 { (case "(($ac_try" in
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_try") 2>&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9279 ac_cv_lib_pthread_pthread_mutex_init=yes
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9284 ac_cv_lib_pthread_pthread_mutex_init=no
9287 rm -f core conftest.err conftest.$ac_objext \
9288 conftest$ac_exeext conftest.$ac_ext
9289 LIBS=$ac_check_lib_save_LIBS
9291 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9292 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9293 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9294 cat >>confdefs.h <<_ACEOF
9295 #define HAVE_LIBPTHREAD 1
9298 LIBS="-lpthread $LIBS"
9302 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9303 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9304 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 ac_func_search_save_LIBS=$LIBS
9308 cat >conftest.$ac_ext <<_ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h. */
9315 /* Override any GCC internal prototype to avoid an error.
9316 Use char because int might match the return type of a GCC
9317 builtin and then its argument prototype would still apply. */
9321 char pthread_mutex_lock ();
9325 return pthread_mutex_lock ();
9330 for ac_lib in '' pthread; do
9331 if test -z "$ac_lib"; then
9332 ac_res="none required"
9335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (ac_try="$ac_link"
9340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341 *) ac_try_echo=$ac_try;;
9343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9344 (eval "$ac_link") 2>conftest.er1
9346 grep -v '^ *+' conftest.er1 >conftest.err
9348 cat conftest.err >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } &&
9351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9352 { (case "(($ac_try" in
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357 (eval "$ac_try") 2>&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; } &&
9361 { ac_try='test -s conftest$ac_exeext'
9362 { (case "(($ac_try" in
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_try") 2>&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 ac_cv_search_pthread_mutex_lock=$ac_res
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9379 rm -f core conftest.err conftest.$ac_objext \
9381 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9385 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9388 ac_cv_search_pthread_mutex_lock=no
9391 LIBS=$ac_func_search_save_LIBS
9393 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9394 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9395 ac_res=$ac_cv_search_pthread_mutex_lock
9396 if test "$ac_res" != no; then
9397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9399 cat >>confdefs.h <<\_ACEOF
9400 #define HAVE_PTHREAD_MUTEX_LOCK 1
9405 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9406 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9407 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 ac_func_search_save_LIBS=$LIBS
9411 cat >conftest.$ac_ext <<_ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9418 /* Override any GCC internal prototype to avoid an error.
9419 Use char because int might match the return type of a GCC
9420 builtin and then its argument prototype would still apply. */
9424 char pthread_rwlock_init ();
9428 return pthread_rwlock_init ();
9433 for ac_lib in '' pthread; do
9434 if test -z "$ac_lib"; then
9435 ac_res="none required"
9438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9440 rm -f conftest.$ac_objext conftest$ac_exeext
9441 if { (ac_try="$ac_link"
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447 (eval "$ac_link") 2>conftest.er1
9449 grep -v '^ *+' conftest.er1 >conftest.err
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9455 { (case "(($ac_try" in
9456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457 *) ac_try_echo=$ac_try;;
9459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460 (eval "$ac_try") 2>&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }; } &&
9464 { ac_try='test -s conftest$ac_exeext'
9465 { (case "(($ac_try" in
9466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467 *) ac_try_echo=$ac_try;;
9469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470 (eval "$ac_try") 2>&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474 ac_cv_search_pthread_rwlock_init=$ac_res
9476 echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9482 rm -f core conftest.err conftest.$ac_objext \
9484 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9488 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9491 ac_cv_search_pthread_rwlock_init=no
9494 LIBS=$ac_func_search_save_LIBS
9496 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9497 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9498 ac_res=$ac_cv_search_pthread_rwlock_init
9499 if test "$ac_res" != no; then
9500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9502 cat >>confdefs.h <<\_ACEOF
9503 #define HAVE_PTHREAD_RWLOCK_INIT 1
9508 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9509 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9510 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 ac_func_search_save_LIBS=$LIBS
9514 cat >conftest.$ac_ext <<_ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9521 /* Override any GCC internal prototype to avoid an error.
9522 Use char because int might match the return type of a GCC
9523 builtin and then its argument prototype would still apply. */
9527 char pthread_getspecific ();
9531 return pthread_getspecific ();
9536 for ac_lib in '' pthread; do
9537 if test -z "$ac_lib"; then
9538 ac_res="none required"
9541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9543 rm -f conftest.$ac_objext conftest$ac_exeext
9544 if { (ac_try="$ac_link"
9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547 *) ac_try_echo=$ac_try;;
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550 (eval "$ac_link") 2>conftest.er1
9552 grep -v '^ *+' conftest.er1 >conftest.err
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9558 { (case "(($ac_try" in
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563 (eval "$ac_try") 2>&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; } &&
9567 { ac_try='test -s conftest$ac_exeext'
9568 { (case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_try") 2>&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 ac_cv_search_pthread_getspecific=$ac_res
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9585 rm -f core conftest.err conftest.$ac_objext \
9587 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9591 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9594 ac_cv_search_pthread_getspecific=no
9597 LIBS=$ac_func_search_save_LIBS
9599 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9600 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9601 ac_res=$ac_cv_search_pthread_getspecific
9602 if test "$ac_res" != no; then
9603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9605 cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_PTHREAD_GETSPECIFIC 1
9613 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9615 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9616 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9617 if test "${ac_cv_lib_z_compress2+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 ac_check_lib_save_LIBS=$LIBS
9622 cat >conftest.$ac_ext <<_ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9629 /* Override any GCC internal prototype to avoid an error.
9630 Use char because int might match the return type of a GCC
9631 builtin and then its argument prototype would still apply. */
9639 return compress2 ();
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (ac_try="$ac_link"
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_link") 2>conftest.er1
9653 grep -v '^ *+' conftest.er1 >conftest.err
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } &&
9658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9659 { (case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_try") 2>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_try") 2>&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; }; then
9678 ac_cv_lib_z_compress2=yes
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9683 ac_cv_lib_z_compress2=no
9686 rm -f core conftest.err conftest.$ac_objext \
9687 conftest$ac_exeext conftest.$ac_ext
9688 LIBS=$ac_check_lib_save_LIBS
9690 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9691 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9692 if test $ac_cv_lib_z_compress2 = yes; then
9693 cat >>confdefs.h <<_ACEOF
9704 # Check whether --with-oprofile was given.
9705 if test "${with_oprofile+set}" = set; then
9706 withval=$with_oprofile;
9710 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9714 *) llvm_cv_oppath="${withval}/lib/oprofile"
9715 CPPFLAGS="-I${withval}/include";;
9717 case $llvm_cv_os_type in
9719 if test -n "$llvm_cv_oppath" ; then
9720 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9721 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9722 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9723 if test "${ac_cv_search_bfd_init+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 ac_func_search_save_LIBS=$LIBS
9727 cat >conftest.$ac_ext <<_ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h. */
9734 /* Override any GCC internal prototype to avoid an error.
9735 Use char because int might match the return type of a GCC
9736 builtin and then its argument prototype would still apply. */
9749 for ac_lib in '' bfd; do
9750 if test -z "$ac_lib"; then
9751 ac_res="none required"
9754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (ac_try="$ac_link"
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_link") 2>conftest.er1
9765 grep -v '^ *+' conftest.er1 >conftest.err
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9771 { (case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_try") 2>&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try='test -s conftest$ac_exeext'
9781 { (case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_try") 2>&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; }; then
9790 ac_cv_search_bfd_init=$ac_res
9792 echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9798 rm -f core conftest.err conftest.$ac_objext \
9800 if test "${ac_cv_search_bfd_init+set}" = set; then
9804 if test "${ac_cv_search_bfd_init+set}" = set; then
9807 ac_cv_search_bfd_init=no
9810 LIBS=$ac_func_search_save_LIBS
9812 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9813 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9814 ac_res=$ac_cv_search_bfd_init
9815 if test "$ac_res" != no; then
9816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9820 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9821 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9822 if test "${ac_cv_search_op_open_agent+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 ac_func_search_save_LIBS=$LIBS
9826 cat >conftest.$ac_ext <<_ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9833 /* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
9839 char op_open_agent ();
9843 return op_open_agent ();
9848 for ac_lib in '' opagent; do
9849 if test -z "$ac_lib"; then
9850 ac_res="none required"
9853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (ac_try="$ac_link"
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_link") 2>conftest.er1
9864 grep -v '^ *+' conftest.er1 >conftest.err
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9870 { (case "(($ac_try" in
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_try") 2>&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; } &&
9879 { ac_try='test -s conftest$ac_exeext'
9880 { (case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_try") 2>&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_cv_search_op_open_agent=$ac_res
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9897 rm -f core conftest.err conftest.$ac_objext \
9899 if test "${ac_cv_search_op_open_agent+set}" = set; then
9903 if test "${ac_cv_search_op_open_agent+set}" = set; then
9906 ac_cv_search_op_open_agent=no
9909 LIBS=$ac_func_search_save_LIBS
9911 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9912 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9913 ac_res=$ac_cv_search_op_open_agent
9914 if test "$ac_res" != no; then
9915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9919 echo "Error! You need to have libopagent around."
9924 if test "${ac_cv_header_opagent_h+set}" = set; then
9925 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9926 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9927 if test "${ac_cv_header_opagent_h+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9931 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9933 # Is the header compilable?
9934 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9935 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9936 cat >conftest.$ac_ext <<_ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9942 $ac_includes_default
9943 #include <opagent.h>
9945 rm -f conftest.$ac_objext
9946 if { (ac_try="$ac_compile"
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_compile") 2>conftest.er1
9954 grep -v '^ *+' conftest.er1 >conftest.err
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9960 { (case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_try") 2>&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; } &&
9969 { ac_try='test -s conftest.$ac_objext'
9970 { (case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_try") 2>&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_header_compiler=yes
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9984 ac_header_compiler=no
9987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9989 echo "${ECHO_T}$ac_header_compiler" >&6; }
9991 # Is the header present?
9992 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
9993 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 #include <opagent.h>
10002 if { (ac_try="$ac_cpp conftest.$ac_ext"
10003 case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10010 grep -v '^ *+' conftest.er1 >conftest.err
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } >/dev/null; then
10015 if test -s conftest.err; then
10016 ac_cpp_err=$ac_c_preproc_warn_flag
10017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10024 if test -z "$ac_cpp_err"; then
10025 ac_header_preproc=yes
10027 echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10030 ac_header_preproc=no
10033 rm -f conftest.err conftest.$ac_ext
10034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10035 echo "${ECHO_T}$ac_header_preproc" >&6; }
10037 # So? What about this header?
10038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10040 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10041 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10042 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10043 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10044 ac_header_preproc=yes
10047 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10048 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10049 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10050 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10051 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10052 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10053 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10054 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10055 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10056 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10057 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10058 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10060 ## ------------------------------------ ##
10061 ## Report this to http://llvm.org/bugs/ ##
10062 ## ------------------------------------ ##
10064 ) | sed "s/^/$as_me: WARNING: /" >&2
10067 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10068 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10069 if test "${ac_cv_header_opagent_h+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 ac_cv_header_opagent_h=$ac_header_preproc
10074 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10075 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10078 if test $ac_cv_header_opagent_h = yes; then
10082 echo "Error! You need to have opagent.h around."
10090 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10091 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10092 { (exit 1); exit 1; }; } ;;
10103 cat >>confdefs.h <<_ACEOF
10104 #define LLVM_USE_OPROFILE $USE_OPROFILE
10109 # Check whether --with-intel-jitevents was given.
10110 if test "${with_intel_jitevents+set}" = set; then
10111 withval=$with_intel_jitevents;
10113 yes) USE_INTEL_JITEVENTS=1
10115 no) USE_INTEL_JITEVENTS=0
10117 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10118 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10119 { (exit 1); exit 1; }; };;
10122 case $llvm_cv_os_type in
10123 Linux|Win32|Cygwin|MingW) ;;
10124 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10125 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10126 { (exit 1); exit 1; }; };;
10129 case "$llvm_cv_target_arch" in
10131 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10132 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10133 { (exit 1); exit 1; }; };;
10138 USE_INTEL_JITEVENTS=0
10144 cat >>confdefs.h <<_ACEOF
10145 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10149 for ac_prog in xml2-config
10151 # Extract the first word of "$ac_prog", so it can be a program name with args.
10152 set dummy $ac_prog; ac_word=$2
10153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10155 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 if test -n "$XML2CONFIG"; then
10159 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10165 test -z "$as_dir" && as_dir=.
10166 for ac_exec_ext in '' $ac_executable_extensions; do
10167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10168 ac_cv_prog_XML2CONFIG="$ac_prog"
10169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10178 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10179 if test -n "$XML2CONFIG"; then
10180 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10181 echo "${ECHO_T}$XML2CONFIG" >&6; }
10183 { echo "$as_me:$LINENO: result: no" >&5
10184 echo "${ECHO_T}no" >&6; }
10188 test -n "$XML2CONFIG" && break
10192 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10193 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10194 if test "x$XML2CONFIG" = "x"; then
10195 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10196 echo "${ECHO_T}xml2-config not found" >&6; }
10198 LIBXML2_INC=`$XML2CONFIG --cflags`
10199 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10200 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10201 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10202 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10203 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 ac_check_lib_save_LIBS=$LIBS
10207 LIBS="-lxml2 $LIBS"
10208 cat >conftest.$ac_ext <<_ACEOF
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h. */
10215 /* Override any GCC internal prototype to avoid an error.
10216 Use char because int might match the return type of a GCC
10217 builtin and then its argument prototype would still apply. */
10221 char xmlReadFile ();
10225 return xmlReadFile ();
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (ac_try="$ac_link"
10232 case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_link") 2>conftest.er1
10239 grep -v '^ *+' conftest.er1 >conftest.err
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10245 { (case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_try") 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_try") 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_cv_lib_xml2_xmlReadFile=yes
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 ac_cv_lib_xml2_xmlReadFile=no
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10276 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10277 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10278 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10280 cat >>confdefs.h <<\_ACEOF
10281 #define CLANG_HAVE_LIBXML 1
10284 LIBXML2_LIBS="-lxml2"
10297 ac_header_dirent=no
10298 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10299 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10300 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10301 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 cat >conftest.$ac_ext <<_ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 #include <sys/types.h>
10323 rm -f conftest.$ac_objext
10324 if { (ac_try="$ac_compile"
10325 case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_compile") 2>conftest.er1
10332 grep -v '^ *+' conftest.er1 >conftest.err
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } &&
10337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10338 { (case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_try") 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try='test -s conftest.$ac_objext'
10348 { (case "(($ac_try" in
10349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350 *) ac_try_echo=$ac_try;;
10352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10353 (eval "$ac_try") 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; }; then
10357 eval "$as_ac_Header=yes"
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10362 eval "$as_ac_Header=no"
10365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10367 ac_res=`eval echo '${'$as_ac_Header'}'`
10368 { echo "$as_me:$LINENO: result: $ac_res" >&5
10369 echo "${ECHO_T}$ac_res" >&6; }
10370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10371 cat >>confdefs.h <<_ACEOF
10372 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10375 ac_header_dirent=$ac_hdr; break
10379 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10380 if test $ac_header_dirent = dirent.h; then
10381 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10382 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10383 if test "${ac_cv_search_opendir+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 ac_func_search_save_LIBS=$LIBS
10387 cat >conftest.$ac_ext <<_ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10394 /* Override any GCC internal prototype to avoid an error.
10395 Use char because int might match the return type of a GCC
10396 builtin and then its argument prototype would still apply. */
10409 for ac_lib in '' dir; do
10410 if test -z "$ac_lib"; then
10411 ac_res="none required"
10414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10416 rm -f conftest.$ac_objext conftest$ac_exeext
10417 if { (ac_try="$ac_link"
10418 case "(($ac_try" in
10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423 (eval "$ac_link") 2>conftest.er1
10425 grep -v '^ *+' conftest.er1 >conftest.err
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } &&
10430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10431 { (case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_try") 2>&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; } &&
10440 { ac_try='test -s conftest$ac_exeext'
10441 { (case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_try") 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_search_opendir=$ac_res
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10458 rm -f core conftest.err conftest.$ac_objext \
10460 if test "${ac_cv_search_opendir+set}" = set; then
10464 if test "${ac_cv_search_opendir+set}" = set; then
10467 ac_cv_search_opendir=no
10469 rm conftest.$ac_ext
10470 LIBS=$ac_func_search_save_LIBS
10472 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10473 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10474 ac_res=$ac_cv_search_opendir
10475 if test "$ac_res" != no; then
10476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10481 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10482 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10483 if test "${ac_cv_search_opendir+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 ac_func_search_save_LIBS=$LIBS
10487 cat >conftest.$ac_ext <<_ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h. */
10494 /* Override any GCC internal prototype to avoid an error.
10495 Use char because int might match the return type of a GCC
10496 builtin and then its argument prototype would still apply. */
10509 for ac_lib in '' x; do
10510 if test -z "$ac_lib"; then
10511 ac_res="none required"
10514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10516 rm -f conftest.$ac_objext conftest$ac_exeext
10517 if { (ac_try="$ac_link"
10518 case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523 (eval "$ac_link") 2>conftest.er1
10525 grep -v '^ *+' conftest.er1 >conftest.err
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } &&
10530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10531 { (case "(($ac_try" in
10532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536 (eval "$ac_try") 2>&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; } &&
10540 { ac_try='test -s conftest$ac_exeext'
10541 { (case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546 (eval "$ac_try") 2>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; }; then
10550 ac_cv_search_opendir=$ac_res
10552 echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10558 rm -f core conftest.err conftest.$ac_objext \
10560 if test "${ac_cv_search_opendir+set}" = set; then
10564 if test "${ac_cv_search_opendir+set}" = set; then
10567 ac_cv_search_opendir=no
10569 rm conftest.$ac_ext
10570 LIBS=$ac_func_search_save_LIBS
10572 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10573 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10574 ac_res=$ac_cv_search_opendir
10575 if test "$ac_res" != no; then
10576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10582 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10583 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10584 if test "${ac_cv_header_mmap_anon+set}" = set; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
10588 ac_cpp='$CPP $CPPFLAGS'
10589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10593 cat >conftest.$ac_ext <<_ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10599 #include <sys/mman.h>
10600 #include <unistd.h>
10605 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10610 rm -f conftest.$ac_objext
10611 if { (ac_try="$ac_compile"
10612 case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_compile") 2>conftest.er1
10619 grep -v '^ *+' conftest.er1 >conftest.err
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10625 { (case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_try") 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest.$ac_objext'
10635 { (case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_try") 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
10644 ac_cv_header_mmap_anon=yes
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10649 ac_cv_header_mmap_anon=no
10652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10654 ac_cpp='$CPP $CPPFLAGS'
10655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10661 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10662 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10663 if test "$ac_cv_header_mmap_anon" = yes; then
10665 cat >>confdefs.h <<\_ACEOF
10666 #define HAVE_MMAP_ANONYMOUS 1
10671 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10672 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10673 if test "${ac_cv_header_stat_broken+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 cat >conftest.$ac_ext <<_ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 #include <sys/types.h>
10683 #include <sys/stat.h>
10685 #if defined S_ISBLK && defined S_IFDIR
10686 # if S_ISBLK (S_IFDIR)
10691 #if defined S_ISBLK && defined S_IFCHR
10692 # if S_ISBLK (S_IFCHR)
10697 #if defined S_ISLNK && defined S_IFREG
10698 # if S_ISLNK (S_IFREG)
10703 #if defined S_ISSOCK && defined S_IFREG
10704 # if S_ISSOCK (S_IFREG)
10710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10711 $EGREP "You lose" >/dev/null 2>&1; then
10712 ac_cv_header_stat_broken=yes
10714 ac_cv_header_stat_broken=no
10719 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10720 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10721 if test $ac_cv_header_stat_broken = yes; then
10723 cat >>confdefs.h <<\_ACEOF
10724 #define STAT_MACROS_BROKEN 1
10729 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10730 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10731 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 #include <sys/types.h>
10741 #include <sys/wait.h>
10742 #ifndef WEXITSTATUS
10743 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10746 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10754 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10759 rm -f conftest.$ac_objext
10760 if { (ac_try="$ac_compile"
10761 case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_compile") 2>conftest.er1
10768 grep -v '^ *+' conftest.er1 >conftest.err
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
10773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10774 { (case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_try") 2>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; } &&
10783 { ac_try='test -s conftest.$ac_objext'
10784 { (case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 (eval "$ac_try") 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_cv_header_sys_wait_h=yes
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 ac_cv_header_sys_wait_h=no
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10803 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10804 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10805 if test $ac_cv_header_sys_wait_h = yes; then
10807 cat >>confdefs.h <<\_ACEOF
10808 #define HAVE_SYS_WAIT_H 1
10813 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10814 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10815 if test "${ac_cv_header_time+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 cat >conftest.$ac_ext <<_ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824 #include <sys/types.h>
10825 #include <sys/time.h>
10831 if ((struct tm *) 0)
10837 rm -f conftest.$ac_objext
10838 if { (ac_try="$ac_compile"
10839 case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_compile") 2>conftest.er1
10846 grep -v '^ *+' conftest.er1 >conftest.err
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
10851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10852 { (case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_try") 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; } &&
10861 { ac_try='test -s conftest.$ac_objext'
10862 { (case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_try") 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 ac_cv_header_time=yes
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10876 ac_cv_header_time=no
10879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10881 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10882 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10883 if test $ac_cv_header_time = yes; then
10885 cat >>confdefs.h <<\_ACEOF
10886 #define TIME_WITH_SYS_TIME 1
10893 ac_cpp='$CXXCPP $CPPFLAGS'
10894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10899 for ac_header in cxxabi.h
10901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 cat >conftest.$ac_ext <<_ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 #include <stddef.h>
10916 #include <$ac_header>
10918 rm -f conftest.$ac_objext
10919 if { (ac_try="$ac_compile"
10920 case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_compile") 2>conftest.er1
10927 grep -v '^ *+' conftest.er1 >conftest.err
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; } &&
10942 { ac_try='test -s conftest.$ac_objext'
10943 { (case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_try") 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 eval "$as_ac_Header=yes"
10954 echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10957 eval "$as_ac_Header=no"
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962 ac_res=`eval echo '${'$as_ac_Header'}'`
10963 { echo "$as_me:$LINENO: result: $ac_res" >&5
10964 echo "${ECHO_T}$ac_res" >&6; }
10965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10966 cat >>confdefs.h <<_ACEOF
10967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10975 ac_cpp='$CPP $CPPFLAGS'
10976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10986 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
10988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10995 ac_res=`eval echo '${'$as_ac_Header'}'`
10996 { echo "$as_me:$LINENO: result: $ac_res" >&5
10997 echo "${ECHO_T}$ac_res" >&6; }
10999 # Is the header compilable?
11000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11002 cat >conftest.$ac_ext <<_ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h. */
11008 $ac_includes_default
11009 #include <$ac_header>
11011 rm -f conftest.$ac_objext
11012 if { (ac_try="$ac_compile"
11013 case "(($ac_try" in
11014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11015 *) ac_try_echo=$ac_try;;
11017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11018 (eval "$ac_compile") 2>conftest.er1
11020 grep -v '^ *+' conftest.er1 >conftest.err
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11026 { (case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_try") 2>&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; } &&
11035 { ac_try='test -s conftest.$ac_objext'
11036 { (case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_try") 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; }; then
11045 ac_header_compiler=yes
11047 echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11050 ac_header_compiler=no
11053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11055 echo "${ECHO_T}$ac_header_compiler" >&6; }
11057 # Is the header present?
11058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11060 cat >conftest.$ac_ext <<_ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h. */
11066 #include <$ac_header>
11068 if { (ac_try="$ac_cpp conftest.$ac_ext"
11069 case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11076 grep -v '^ *+' conftest.er1 >conftest.err
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } >/dev/null; then
11081 if test -s conftest.err; then
11082 ac_cpp_err=$ac_c_preproc_warn_flag
11083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11090 if test -z "$ac_cpp_err"; then
11091 ac_header_preproc=yes
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11096 ac_header_preproc=no
11099 rm -f conftest.err conftest.$ac_ext
11100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11101 echo "${ECHO_T}$ac_header_preproc" >&6; }
11103 # So? What about this header?
11104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11110 ac_header_preproc=yes
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11126 ## ------------------------------------ ##
11127 ## Report this to http://llvm.org/bugs/ ##
11128 ## ------------------------------------ ##
11130 ) | sed "s/^/$as_me: WARNING: /" >&2
11133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 eval "$as_ac_Header=\$ac_header_preproc"
11140 ac_res=`eval echo '${'$as_ac_Header'}'`
11141 { echo "$as_me:$LINENO: result: $ac_res" >&5
11142 echo "${ECHO_T}$ac_res" >&6; }
11145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11146 cat >>confdefs.h <<_ACEOF
11147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11160 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11167 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 ac_res=`eval echo '${'$as_ac_Header'}'`
11170 { echo "$as_me:$LINENO: result: $ac_res" >&5
11171 echo "${ECHO_T}$ac_res" >&6; }
11173 # Is the header compilable?
11174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11176 cat >conftest.$ac_ext <<_ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11182 $ac_includes_default
11183 #include <$ac_header>
11185 rm -f conftest.$ac_objext
11186 if { (ac_try="$ac_compile"
11187 case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_compile") 2>conftest.er1
11194 grep -v '^ *+' conftest.er1 >conftest.err
11196 cat conftest.err >&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); } &&
11199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11200 { (case "(($ac_try" in
11201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202 *) ac_try_echo=$ac_try;;
11204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11205 (eval "$ac_try") 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; } &&
11209 { ac_try='test -s conftest.$ac_objext'
11210 { (case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_try") 2>&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; }; then
11219 ac_header_compiler=yes
11221 echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11224 ac_header_compiler=no
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11229 echo "${ECHO_T}$ac_header_compiler" >&6; }
11231 # Is the header present?
11232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11234 cat >conftest.$ac_ext <<_ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240 #include <$ac_header>
11242 if { (ac_try="$ac_cpp conftest.$ac_ext"
11243 case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11250 grep -v '^ *+' conftest.er1 >conftest.err
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } >/dev/null; then
11255 if test -s conftest.err; then
11256 ac_cpp_err=$ac_c_preproc_warn_flag
11257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11264 if test -z "$ac_cpp_err"; then
11265 ac_header_preproc=yes
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11270 ac_header_preproc=no
11273 rm -f conftest.err conftest.$ac_ext
11274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11275 echo "${ECHO_T}$ac_header_preproc" >&6; }
11277 # So? What about this header?
11278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11284 ac_header_preproc=yes
11287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11300 ## ------------------------------------ ##
11301 ## Report this to http://llvm.org/bugs/ ##
11302 ## ------------------------------------ ##
11304 ) | sed "s/^/$as_me: WARNING: /" >&2
11307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 eval "$as_ac_Header=\$ac_header_preproc"
11314 ac_res=`eval echo '${'$as_ac_Header'}'`
11315 { echo "$as_me:$LINENO: result: $ac_res" >&5
11316 echo "${ECHO_T}$ac_res" >&6; }
11319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11320 cat >>confdefs.h <<_ACEOF
11321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11329 for ac_header in utime.h
11331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 ac_res=`eval echo '${'$as_ac_Header'}'`
11339 { echo "$as_me:$LINENO: result: $ac_res" >&5
11340 echo "${ECHO_T}$ac_res" >&6; }
11342 # Is the header compilable?
11343 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11345 cat >conftest.$ac_ext <<_ACEOF
11348 cat confdefs.h >>conftest.$ac_ext
11349 cat >>conftest.$ac_ext <<_ACEOF
11350 /* end confdefs.h. */
11351 $ac_includes_default
11352 #include <$ac_header>
11354 rm -f conftest.$ac_objext
11355 if { (ac_try="$ac_compile"
11356 case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_compile") 2>conftest.er1
11363 grep -v '^ *+' conftest.er1 >conftest.err
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11369 { (case "(($ac_try" in
11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374 (eval "$ac_try") 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; } &&
11378 { ac_try='test -s conftest.$ac_objext'
11379 { (case "(($ac_try" in
11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384 (eval "$ac_try") 2>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_header_compiler=yes
11390 echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11393 ac_header_compiler=no
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11398 echo "${ECHO_T}$ac_header_compiler" >&6; }
11400 # Is the header present?
11401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11403 cat >conftest.$ac_ext <<_ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409 #include <$ac_header>
11411 if { (ac_try="$ac_cpp conftest.$ac_ext"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11419 grep -v '^ *+' conftest.er1 >conftest.err
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } >/dev/null; then
11424 if test -s conftest.err; then
11425 ac_cpp_err=$ac_c_preproc_warn_flag
11426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11433 if test -z "$ac_cpp_err"; then
11434 ac_header_preproc=yes
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 ac_header_preproc=no
11442 rm -f conftest.err conftest.$ac_ext
11443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11444 echo "${ECHO_T}$ac_header_preproc" >&6; }
11446 # So? What about this header?
11447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11453 ac_header_preproc=yes
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11469 ## ------------------------------------ ##
11470 ## Report this to http://llvm.org/bugs/ ##
11471 ## ------------------------------------ ##
11473 ) | sed "s/^/$as_me: WARNING: /" >&2
11476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 eval "$as_ac_Header=\$ac_header_preproc"
11483 ac_res=`eval echo '${'$as_ac_Header'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485 echo "${ECHO_T}$ac_res" >&6; }
11488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11489 cat >>confdefs.h <<_ACEOF
11490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11502 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 ac_res=`eval echo '${'$as_ac_Header'}'`
11512 { echo "$as_me:$LINENO: result: $ac_res" >&5
11513 echo "${ECHO_T}$ac_res" >&6; }
11515 # Is the header compilable?
11516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11518 cat >conftest.$ac_ext <<_ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 $ac_includes_default
11525 #include <$ac_header>
11527 rm -f conftest.$ac_objext
11528 if { (ac_try="$ac_compile"
11529 case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_compile") 2>conftest.er1
11536 grep -v '^ *+' conftest.er1 >conftest.err
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11542 { (case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_try") 2>&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; } &&
11551 { ac_try='test -s conftest.$ac_objext'
11552 { (case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_try") 2>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 ac_header_compiler=yes
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11566 ac_header_compiler=no
11569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11571 echo "${ECHO_T}$ac_header_compiler" >&6; }
11573 # Is the header present?
11574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11576 cat >conftest.$ac_ext <<_ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h. */
11582 #include <$ac_header>
11584 if { (ac_try="$ac_cpp conftest.$ac_ext"
11585 case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11592 grep -v '^ *+' conftest.er1 >conftest.err
11594 cat conftest.err >&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } >/dev/null; then
11597 if test -s conftest.err; then
11598 ac_cpp_err=$ac_c_preproc_warn_flag
11599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11606 if test -z "$ac_cpp_err"; then
11607 ac_header_preproc=yes
11609 echo "$as_me: failed program was:" >&5
11610 sed 's/^/| /' conftest.$ac_ext >&5
11612 ac_header_preproc=no
11615 rm -f conftest.err conftest.$ac_ext
11616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11617 echo "${ECHO_T}$ac_header_preproc" >&6; }
11619 # So? What about this header?
11620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11626 ac_header_preproc=yes
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11642 ## ------------------------------------ ##
11643 ## Report this to http://llvm.org/bugs/ ##
11644 ## ------------------------------------ ##
11646 ) | sed "s/^/$as_me: WARNING: /" >&2
11649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11654 eval "$as_ac_Header=\$ac_header_preproc"
11656 ac_res=`eval echo '${'$as_ac_Header'}'`
11657 { echo "$as_me:$LINENO: result: $ac_res" >&5
11658 echo "${ECHO_T}$ac_res" >&6; }
11661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11662 cat >>confdefs.h <<_ACEOF
11663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11673 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 ac_res=`eval echo '${'$as_ac_Header'}'`
11683 { echo "$as_me:$LINENO: result: $ac_res" >&5
11684 echo "${ECHO_T}$ac_res" >&6; }
11686 # Is the header compilable?
11687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11689 cat >conftest.$ac_ext <<_ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 $ac_includes_default
11696 #include <$ac_header>
11698 rm -f conftest.$ac_objext
11699 if { (ac_try="$ac_compile"
11700 case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_compile") 2>conftest.er1
11707 grep -v '^ *+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } &&
11712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11713 { (case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_try") 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest.$ac_objext'
11723 { (case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_try") 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11732 ac_header_compiler=yes
11734 echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11737 ac_header_compiler=no
11740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11742 echo "${ECHO_T}$ac_header_compiler" >&6; }
11744 # Is the header present?
11745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11747 cat >conftest.$ac_ext <<_ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11753 #include <$ac_header>
11755 if { (ac_try="$ac_cpp conftest.$ac_ext"
11756 case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11763 grep -v '^ *+' conftest.er1 >conftest.err
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } >/dev/null; then
11768 if test -s conftest.err; then
11769 ac_cpp_err=$ac_c_preproc_warn_flag
11770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11777 if test -z "$ac_cpp_err"; then
11778 ac_header_preproc=yes
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 ac_header_preproc=no
11786 rm -f conftest.err conftest.$ac_ext
11787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11788 echo "${ECHO_T}$ac_header_preproc" >&6; }
11790 # So? What about this header?
11791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11797 ac_header_preproc=yes
11800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11807 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11813 ## ------------------------------------ ##
11814 ## Report this to http://llvm.org/bugs/ ##
11815 ## ------------------------------------ ##
11817 ) | sed "s/^/$as_me: WARNING: /" >&2
11820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11825 eval "$as_ac_Header=\$ac_header_preproc"
11827 ac_res=`eval echo '${'$as_ac_Header'}'`
11828 { echo "$as_me:$LINENO: result: $ac_res" >&5
11829 echo "${ECHO_T}$ac_res" >&6; }
11832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11833 cat >>confdefs.h <<_ACEOF
11834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11842 for ac_header in valgrind/valgrind.h
11844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 ac_res=`eval echo '${'$as_ac_Header'}'`
11852 { echo "$as_me:$LINENO: result: $ac_res" >&5
11853 echo "${ECHO_T}$ac_res" >&6; }
11855 # Is the header compilable?
11856 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11858 cat >conftest.$ac_ext <<_ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h. */
11864 $ac_includes_default
11865 #include <$ac_header>
11867 rm -f conftest.$ac_objext
11868 if { (ac_try="$ac_compile"
11869 case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_compile") 2>conftest.er1
11876 grep -v '^ *+' conftest.er1 >conftest.err
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest.$ac_objext'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 ac_header_compiler=yes
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 ac_header_compiler=no
11909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11911 echo "${ECHO_T}$ac_header_compiler" >&6; }
11913 # Is the header present?
11914 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11916 cat >conftest.$ac_ext <<_ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922 #include <$ac_header>
11924 if { (ac_try="$ac_cpp conftest.$ac_ext"
11925 case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11932 grep -v '^ *+' conftest.er1 >conftest.err
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } >/dev/null; then
11937 if test -s conftest.err; then
11938 ac_cpp_err=$ac_c_preproc_warn_flag
11939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11946 if test -z "$ac_cpp_err"; then
11947 ac_header_preproc=yes
11949 echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11952 ac_header_preproc=no
11955 rm -f conftest.err conftest.$ac_ext
11956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11957 echo "${ECHO_T}$ac_header_preproc" >&6; }
11959 # So? What about this header?
11960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11966 ac_header_preproc=yes
11969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11972 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11976 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11982 ## ------------------------------------ ##
11983 ## Report this to http://llvm.org/bugs/ ##
11984 ## ------------------------------------ ##
11986 ) | sed "s/^/$as_me: WARNING: /" >&2
11989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 eval "$as_ac_Header=\$ac_header_preproc"
11996 ac_res=`eval echo '${'$as_ac_Header'}'`
11997 { echo "$as_me:$LINENO: result: $ac_res" >&5
11998 echo "${ECHO_T}$ac_res" >&6; }
12001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12002 cat >>confdefs.h <<_ACEOF
12003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12011 for ac_header in fenv.h
12013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 ac_res=`eval echo '${'$as_ac_Header'}'`
12021 { echo "$as_me:$LINENO: result: $ac_res" >&5
12022 echo "${ECHO_T}$ac_res" >&6; }
12024 # Is the header compilable?
12025 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12027 cat >conftest.$ac_ext <<_ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h. */
12033 $ac_includes_default
12034 #include <$ac_header>
12036 rm -f conftest.$ac_objext
12037 if { (ac_try="$ac_compile"
12038 case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_compile") 2>conftest.er1
12045 grep -v '^ *+' conftest.er1 >conftest.err
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } &&
12050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12051 { (case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_try") 2>&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; } &&
12060 { ac_try='test -s conftest.$ac_objext'
12061 { (case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_try") 2>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
12070 ac_header_compiler=yes
12072 echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12075 ac_header_compiler=no
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12080 echo "${ECHO_T}$ac_header_compiler" >&6; }
12082 # Is the header present?
12083 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12085 cat >conftest.$ac_ext <<_ACEOF
12088 cat confdefs.h >>conftest.$ac_ext
12089 cat >>conftest.$ac_ext <<_ACEOF
12090 /* end confdefs.h. */
12091 #include <$ac_header>
12093 if { (ac_try="$ac_cpp conftest.$ac_ext"
12094 case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12101 grep -v '^ *+' conftest.er1 >conftest.err
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } >/dev/null; then
12106 if test -s conftest.err; then
12107 ac_cpp_err=$ac_c_preproc_warn_flag
12108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12115 if test -z "$ac_cpp_err"; then
12116 ac_header_preproc=yes
12118 echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12121 ac_header_preproc=no
12124 rm -f conftest.err conftest.$ac_ext
12125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12126 echo "${ECHO_T}$ac_header_preproc" >&6; }
12128 # So? What about this header?
12129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12135 ac_header_preproc=yes
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12151 ## ------------------------------------ ##
12152 ## Report this to http://llvm.org/bugs/ ##
12153 ## ------------------------------------ ##
12155 ) | sed "s/^/$as_me: WARNING: /" >&2
12158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12163 eval "$as_ac_Header=\$ac_header_preproc"
12165 ac_res=`eval echo '${'$as_ac_Header'}'`
12166 { echo "$as_me:$LINENO: result: $ac_res" >&5
12167 echo "${ECHO_T}$ac_res" >&6; }
12170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12171 cat >>confdefs.h <<_ACEOF
12172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12179 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12180 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12181 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 cat >conftest.$ac_ext <<_ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12195 #ifndef FE_ALL_EXCEPT
12196 char *p = (char *) FE_ALL_EXCEPT;
12204 rm -f conftest.$ac_objext
12205 if { (ac_try="$ac_compile"
12206 case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_compile") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
12218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest.$ac_objext'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12243 ac_cv_have_decl_FE_ALL_EXCEPT=no
12246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12248 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12249 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12250 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12252 cat >>confdefs.h <<_ACEOF
12253 #define HAVE_DECL_FE_ALL_EXCEPT 1
12258 cat >>confdefs.h <<_ACEOF
12259 #define HAVE_DECL_FE_ALL_EXCEPT 0
12264 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12265 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12266 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12269 cat >conftest.$ac_ext <<_ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12281 char *p = (char *) FE_INEXACT;
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1 >conftest.err
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12304 { (case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_try") 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest.$ac_objext'
12314 { (case "(($ac_try" in
12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316 *) ac_try_echo=$ac_try;;
12318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319 (eval "$ac_try") 2>&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 ac_cv_have_decl_FE_INEXACT=yes
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12328 ac_cv_have_decl_FE_INEXACT=no
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12334 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12335 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12337 cat >>confdefs.h <<_ACEOF
12338 #define HAVE_DECL_FE_INEXACT 1
12343 cat >>confdefs.h <<_ACEOF
12344 #define HAVE_DECL_FE_INEXACT 0
12351 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12353 for ac_header in pthread.h
12355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 ac_res=`eval echo '${'$as_ac_Header'}'`
12363 { echo "$as_me:$LINENO: result: $ac_res" >&5
12364 echo "${ECHO_T}$ac_res" >&6; }
12366 # Is the header compilable?
12367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12375 $ac_includes_default
12376 #include <$ac_header>
12378 rm -f conftest.$ac_objext
12379 if { (ac_try="$ac_compile"
12380 case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_compile") 2>conftest.er1
12387 grep -v '^ *+' conftest.er1 >conftest.err
12389 cat conftest.err >&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } &&
12392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12393 { (case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_try") 2>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; } &&
12402 { ac_try='test -s conftest.$ac_objext'
12403 { (case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_try") 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 ac_header_compiler=yes
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12417 ac_header_compiler=no
12420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12422 echo "${ECHO_T}$ac_header_compiler" >&6; }
12424 # Is the header present?
12425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12427 cat >conftest.$ac_ext <<_ACEOF
12430 cat confdefs.h >>conftest.$ac_ext
12431 cat >>conftest.$ac_ext <<_ACEOF
12432 /* end confdefs.h. */
12433 #include <$ac_header>
12435 if { (ac_try="$ac_cpp conftest.$ac_ext"
12436 case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12443 grep -v '^ *+' conftest.er1 >conftest.err
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } >/dev/null; then
12448 if test -s conftest.err; then
12449 ac_cpp_err=$ac_c_preproc_warn_flag
12450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12457 if test -z "$ac_cpp_err"; then
12458 ac_header_preproc=yes
12460 echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12463 ac_header_preproc=no
12466 rm -f conftest.err conftest.$ac_ext
12467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12468 echo "${ECHO_T}$ac_header_preproc" >&6; }
12470 # So? What about this header?
12471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12477 ac_header_preproc=yes
12480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12487 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12493 ## ------------------------------------ ##
12494 ## Report this to http://llvm.org/bugs/ ##
12495 ## ------------------------------------ ##
12497 ) | sed "s/^/$as_me: WARNING: /" >&2
12500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 eval "$as_ac_Header=\$ac_header_preproc"
12507 ac_res=`eval echo '${'$as_ac_Header'}'`
12508 { echo "$as_me:$LINENO: result: $ac_res" >&5
12509 echo "${ECHO_T}$ac_res" >&6; }
12512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12513 cat >>confdefs.h <<_ACEOF
12514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12529 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12531 for ac_header in zlib.h
12533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12540 ac_res=`eval echo '${'$as_ac_Header'}'`
12541 { echo "$as_me:$LINENO: result: $ac_res" >&5
12542 echo "${ECHO_T}$ac_res" >&6; }
12544 # Is the header compilable?
12545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12547 cat >conftest.$ac_ext <<_ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12553 $ac_includes_default
12554 #include <$ac_header>
12556 rm -f conftest.$ac_objext
12557 if { (ac_try="$ac_compile"
12558 case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_compile") 2>conftest.er1
12565 grep -v '^ *+' conftest.er1 >conftest.err
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
12570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12571 { (case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_try") 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest.$ac_objext'
12581 { (case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_try") 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_header_compiler=yes
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 ac_header_compiler=no
12598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12600 echo "${ECHO_T}$ac_header_compiler" >&6; }
12602 # Is the header present?
12603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12605 cat >conftest.$ac_ext <<_ACEOF
12608 cat confdefs.h >>conftest.$ac_ext
12609 cat >>conftest.$ac_ext <<_ACEOF
12610 /* end confdefs.h. */
12611 #include <$ac_header>
12613 if { (ac_try="$ac_cpp conftest.$ac_ext"
12614 case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12621 grep -v '^ *+' conftest.er1 >conftest.err
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } >/dev/null; then
12626 if test -s conftest.err; then
12627 ac_cpp_err=$ac_c_preproc_warn_flag
12628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12635 if test -z "$ac_cpp_err"; then
12636 ac_header_preproc=yes
12638 echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12641 ac_header_preproc=no
12644 rm -f conftest.err conftest.$ac_ext
12645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12646 echo "${ECHO_T}$ac_header_preproc" >&6; }
12648 # So? What about this header?
12649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12655 ac_header_preproc=yes
12658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12671 ## ------------------------------------ ##
12672 ## Report this to http://llvm.org/bugs/ ##
12673 ## ------------------------------------ ##
12675 ) | sed "s/^/$as_me: WARNING: /" >&2
12678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 eval "$as_ac_Header=\$ac_header_preproc"
12685 ac_res=`eval echo '${'$as_ac_Header'}'`
12686 { echo "$as_me:$LINENO: result: $ac_res" >&5
12687 echo "${ECHO_T}$ac_res" >&6; }
12690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12691 cat >>confdefs.h <<_ACEOF
12692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12708 if test "$llvm_cv_enable_libffi" = "yes" ; then
12711 for ac_header in ffi.h ffi/ffi.h
12713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12720 ac_res=`eval echo '${'$as_ac_Header'}'`
12721 { echo "$as_me:$LINENO: result: $ac_res" >&5
12722 echo "${ECHO_T}$ac_res" >&6; }
12724 # Is the header compilable?
12725 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12727 cat >conftest.$ac_ext <<_ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 $ac_includes_default
12734 #include <$ac_header>
12736 rm -f conftest.$ac_objext
12737 if { (ac_try="$ac_compile"
12738 case "(($ac_try" in
12739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740 *) ac_try_echo=$ac_try;;
12742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743 (eval "$ac_compile") 2>conftest.er1
12745 grep -v '^ *+' conftest.er1 >conftest.err
12747 cat conftest.err >&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
12750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12751 { (case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756 (eval "$ac_try") 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest.$ac_objext'
12761 { (case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_try") 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
12770 ac_header_compiler=yes
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12775 ac_header_compiler=no
12778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12780 echo "${ECHO_T}$ac_header_compiler" >&6; }
12782 # Is the header present?
12783 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12785 cat >conftest.$ac_ext <<_ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791 #include <$ac_header>
12793 if { (ac_try="$ac_cpp conftest.$ac_ext"
12794 case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12801 grep -v '^ *+' conftest.er1 >conftest.err
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } >/dev/null; then
12806 if test -s conftest.err; then
12807 ac_cpp_err=$ac_c_preproc_warn_flag
12808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12815 if test -z "$ac_cpp_err"; then
12816 ac_header_preproc=yes
12818 echo "$as_me: failed program was:" >&5
12819 sed 's/^/| /' conftest.$ac_ext >&5
12821 ac_header_preproc=no
12824 rm -f conftest.err conftest.$ac_ext
12825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12826 echo "${ECHO_T}$ac_header_preproc" >&6; }
12828 # So? What about this header?
12829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12835 ac_header_preproc=yes
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12851 ## ------------------------------------ ##
12852 ## Report this to http://llvm.org/bugs/ ##
12853 ## ------------------------------------ ##
12855 ) | sed "s/^/$as_me: WARNING: /" >&2
12858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12863 eval "$as_ac_Header=\$ac_header_preproc"
12865 ac_res=`eval echo '${'$as_ac_Header'}'`
12866 { echo "$as_me:$LINENO: result: $ac_res" >&5
12867 echo "${ECHO_T}$ac_res" >&6; }
12870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12871 cat >>confdefs.h <<_ACEOF
12872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12882 for ac_header in CrashReporterClient.h
12884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 ac_res=`eval echo '${'$as_ac_Header'}'`
12892 { echo "$as_me:$LINENO: result: $ac_res" >&5
12893 echo "${ECHO_T}$ac_res" >&6; }
12895 # Is the header compilable?
12896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12898 cat >conftest.$ac_ext <<_ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904 $ac_includes_default
12905 #include <$ac_header>
12907 rm -f conftest.$ac_objext
12908 if { (ac_try="$ac_compile"
12909 case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914 (eval "$ac_compile") 2>conftest.er1
12916 grep -v '^ *+' conftest.er1 >conftest.err
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
12921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; } &&
12931 { ac_try='test -s conftest.$ac_objext'
12932 { (case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_try") 2>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 ac_header_compiler=yes
12943 echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12946 ac_header_compiler=no
12949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12951 echo "${ECHO_T}$ac_header_compiler" >&6; }
12953 # Is the header present?
12954 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12956 cat >conftest.$ac_ext <<_ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h. */
12962 #include <$ac_header>
12964 if { (ac_try="$ac_cpp conftest.$ac_ext"
12965 case "(($ac_try" in
12966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12972 grep -v '^ *+' conftest.er1 >conftest.err
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } >/dev/null; then
12977 if test -s conftest.err; then
12978 ac_cpp_err=$ac_c_preproc_warn_flag
12979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12986 if test -z "$ac_cpp_err"; then
12987 ac_header_preproc=yes
12989 echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12992 ac_header_preproc=no
12995 rm -f conftest.err conftest.$ac_ext
12996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12997 echo "${ECHO_T}$ac_header_preproc" >&6; }
12999 # So? What about this header?
13000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13006 ac_header_preproc=yes
13009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13022 ## ------------------------------------ ##
13023 ## Report this to http://llvm.org/bugs/ ##
13024 ## ------------------------------------ ##
13026 ) | sed "s/^/$as_me: WARNING: /" >&2
13029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 eval "$as_ac_Header=\$ac_header_preproc"
13036 ac_res=`eval echo '${'$as_ac_Header'}'`
13037 { echo "$as_me:$LINENO: result: $ac_res" >&5
13038 echo "${ECHO_T}$ac_res" >&6; }
13041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13042 cat >>confdefs.h <<_ACEOF
13043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13051 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13052 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13053 cat >conftest.$ac_ext <<_ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13061 extern const char *__crashreporter_info__;
13063 __crashreporter_info__ = "test";
13069 rm -f conftest.$ac_objext conftest$ac_exeext
13070 if { (ac_try="$ac_link"
13071 case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_link") 2>conftest.er1
13078 grep -v '^ *+' conftest.er1 >conftest.err
13080 cat conftest.err >&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } &&
13083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13084 { (case "(($ac_try" in
13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086 *) ac_try_echo=$ac_try;;
13088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089 (eval "$ac_try") 2>&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; } &&
13093 { ac_try='test -s conftest$ac_exeext'
13094 { (case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_try") 2>&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
13104 { echo "$as_me:$LINENO: result: yes" >&5
13105 echo "${ECHO_T}yes" >&6; }
13107 cat >>confdefs.h <<\_ACEOF
13108 #define HAVE_CRASHREPORTER_INFO 1
13113 echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13117 { echo "$as_me:$LINENO: result: no" >&5
13118 echo "${ECHO_T}no" >&6; }
13120 cat >>confdefs.h <<\_ACEOF
13121 #define HAVE_CRASHREPORTER_INFO 0
13127 rm -f core conftest.err conftest.$ac_objext \
13128 conftest$ac_exeext conftest.$ac_ext
13132 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13133 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13134 if test "${ac_cv_huge_val_sanity+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13139 ac_cpp='$CXXCPP $CPPFLAGS'
13140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13144 ac_save_CXXFLAGS=$CXXFLAGS
13145 CXXFLAGS="$CXXFLAGS -pedantic"
13146 if test "$cross_compiling" = yes; then
13147 ac_cv_huge_val_sanity=yes
13149 cat >conftest.$ac_ext <<_ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13159 double x = HUGE_VAL; return x != x;
13164 rm -f conftest$ac_exeext
13165 if { (ac_try="$ac_link"
13166 case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_link") 2>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13175 { (case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_try") 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 ac_cv_huge_val_sanity=yes
13186 echo "$as_me: program exited with status $ac_status" >&5
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13190 ( exit $ac_status )
13191 ac_cv_huge_val_sanity=no
13193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13197 CXXFLAGS=$ac_save_CXXFLAGS
13199 ac_cpp='$CPP $CPPFLAGS'
13200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13206 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13207 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13208 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13211 { echo "$as_me:$LINENO: checking for pid_t" >&5
13212 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13213 if test "${ac_cv_type_pid_t+set}" = set; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13216 cat >conftest.$ac_ext <<_ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 $ac_includes_default
13223 typedef pid_t ac__type_new_;
13227 if ((ac__type_new_ *) 0)
13229 if (sizeof (ac__type_new_))
13235 rm -f conftest.$ac_objext
13236 if { (ac_try="$ac_compile"
13237 case "(($ac_try" in
13238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239 *) ac_try_echo=$ac_try;;
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_compile") 2>conftest.er1
13244 grep -v '^ *+' conftest.er1 >conftest.err
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13250 { (case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_try") 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; } &&
13259 { ac_try='test -s conftest.$ac_objext'
13260 { (case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_try") 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; }; then
13269 ac_cv_type_pid_t=yes
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13274 ac_cv_type_pid_t=no
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13279 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13280 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13281 if test $ac_cv_type_pid_t = yes; then
13285 cat >>confdefs.h <<_ACEOF
13291 { echo "$as_me:$LINENO: checking for size_t" >&5
13292 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13293 if test "${ac_cv_type_size_t+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 cat >conftest.$ac_ext <<_ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 $ac_includes_default
13303 typedef size_t ac__type_new_;
13307 if ((ac__type_new_ *) 0)
13309 if (sizeof (ac__type_new_))
13315 rm -f conftest.$ac_objext
13316 if { (ac_try="$ac_compile"
13317 case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_compile") 2>conftest.er1
13324 grep -v '^ *+' conftest.er1 >conftest.err
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } &&
13329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13330 { (case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_try") 2>&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; } &&
13339 { ac_try='test -s conftest.$ac_objext'
13340 { (case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_try") 2>&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; }; then
13349 ac_cv_type_size_t=yes
13351 echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13354 ac_cv_type_size_t=no
13357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13359 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13360 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13361 if test $ac_cv_type_size_t = yes; then
13365 cat >>confdefs.h <<_ACEOF
13366 #define size_t unsigned int
13372 cat >>confdefs.h <<_ACEOF
13373 #define RETSIGTYPE void
13376 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13377 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13378 if test "${ac_cv_struct_tm+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 cat >conftest.$ac_ext <<_ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h. */
13387 #include <sys/types.h>
13393 struct tm *tp; tp->tm_sec;
13398 rm -f conftest.$ac_objext
13399 if { (ac_try="$ac_compile"
13400 case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_compile") 2>conftest.er1
13407 grep -v '^ *+' conftest.er1 >conftest.err
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13413 { (case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_try") 2>&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest.$ac_objext'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 ac_cv_struct_tm=time.h
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 ac_cv_struct_tm=sys/time.h
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13442 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13443 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13444 if test $ac_cv_struct_tm = sys/time.h; then
13446 cat >>confdefs.h <<\_ACEOF
13447 #define TM_IN_SYS_TIME 1
13452 { echo "$as_me:$LINENO: checking for int64_t" >&5
13453 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13454 if test "${ac_cv_type_int64_t+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 cat >conftest.$ac_ext <<_ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 $ac_includes_default
13464 typedef int64_t ac__type_new_;
13468 if ((ac__type_new_ *) 0)
13470 if (sizeof (ac__type_new_))
13476 rm -f conftest.$ac_objext
13477 if { (ac_try="$ac_compile"
13478 case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_compile") 2>conftest.er1
13485 grep -v '^ *+' conftest.er1 >conftest.err
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
13490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13491 { (case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_try") 2>&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; } &&
13500 { ac_try='test -s conftest.$ac_objext'
13501 { (case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_try") 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510 ac_cv_type_int64_t=yes
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13515 ac_cv_type_int64_t=no
13518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13521 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13522 if test $ac_cv_type_int64_t = yes; then
13524 cat >>confdefs.h <<_ACEOF
13525 #define HAVE_INT64_T 1
13530 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13531 echo "$as_me: error: Type int64_t required but not found" >&2;}
13532 { (exit 1); exit 1; }; }
13535 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13536 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13537 if test "${ac_cv_type_uint64_t+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 cat >conftest.$ac_ext <<_ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546 $ac_includes_default
13547 typedef uint64_t ac__type_new_;
13551 if ((ac__type_new_ *) 0)
13553 if (sizeof (ac__type_new_))
13559 rm -f conftest.$ac_objext
13560 if { (ac_try="$ac_compile"
13561 case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_compile") 2>conftest.er1
13568 grep -v '^ *+' conftest.er1 >conftest.err
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
13573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13574 { (case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_try") 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; } &&
13583 { ac_try='test -s conftest.$ac_objext'
13584 { (case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_try") 2>&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
13593 ac_cv_type_uint64_t=yes
13595 echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13598 ac_cv_type_uint64_t=no
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13604 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13605 if test $ac_cv_type_uint64_t = yes; then
13607 cat >>confdefs.h <<_ACEOF
13608 #define HAVE_UINT64_T 1
13613 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13614 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13615 if test "${ac_cv_type_u_int64_t+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 cat >conftest.$ac_ext <<_ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 $ac_includes_default
13625 typedef u_int64_t ac__type_new_;
13629 if ((ac__type_new_ *) 0)
13631 if (sizeof (ac__type_new_))
13637 rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_compile") 2>conftest.er1
13646 grep -v '^ *+' conftest.er1 >conftest.err
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13652 { (case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_try") 2>&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try='test -s conftest.$ac_objext'
13662 { (case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_try") 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
13671 ac_cv_type_u_int64_t=yes
13673 echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13676 ac_cv_type_u_int64_t=no
13679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13682 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13683 if test $ac_cv_type_u_int64_t = yes; then
13685 cat >>confdefs.h <<_ACEOF
13686 #define HAVE_U_INT64_T 1
13691 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13692 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13693 { (exit 1); exit 1; }; }
13707 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13715 cat >conftest.$ac_ext <<_ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13723 #define $ac_func innocuous_$ac_func
13725 /* System header to define __stub macros and hopefully few prototypes,
13726 which can conflict with char $ac_func (); below.
13727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13728 <limits.h> exists even on freestanding compilers. */
13731 # include <limits.h>
13733 # include <assert.h>
13738 /* Override any GCC internal prototype to avoid an error.
13739 Use char because int might match the return type of a GCC
13740 builtin and then its argument prototype would still apply. */
13745 /* The GNU C library defines this for functions which it implements
13746 to always fail with ENOSYS. Some functions are actually named
13747 something starting with __ and the normal name is an alias. */
13748 #if defined __stub_$ac_func || defined __stub___$ac_func
13755 return $ac_func ();
13760 rm -f conftest.$ac_objext conftest$ac_exeext
13761 if { (ac_try="$ac_link"
13762 case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_link") 2>conftest.er1
13769 grep -v '^ *+' conftest.er1 >conftest.err
13771 cat conftest.err >&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13775 { (case "(($ac_try" in
13776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777 *) ac_try_echo=$ac_try;;
13779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780 (eval "$ac_try") 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; } &&
13784 { ac_try='test -s conftest$ac_exeext'
13785 { (case "(($ac_try" in
13786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13787 *) ac_try_echo=$ac_try;;
13789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13790 (eval "$ac_try") 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 eval "$as_ac_var=yes"
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13799 eval "$as_ac_var=no"
13802 rm -f core conftest.err conftest.$ac_objext \
13803 conftest$ac_exeext conftest.$ac_ext
13805 ac_res=`eval echo '${'$as_ac_var'}'`
13806 { echo "$as_me:$LINENO: result: $ac_res" >&5
13807 echo "${ECHO_T}$ac_res" >&6; }
13808 if test `eval echo '${'$as_ac_var'}'` = yes; then
13809 cat >>confdefs.h <<_ACEOF
13810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13820 for ac_func in powf fmodf strtof round
13822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 cat >conftest.$ac_ext <<_ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13836 #define $ac_func innocuous_$ac_func
13838 /* System header to define __stub macros and hopefully few prototypes,
13839 which can conflict with char $ac_func (); below.
13840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13841 <limits.h> exists even on freestanding compilers. */
13844 # include <limits.h>
13846 # include <assert.h>
13851 /* Override any GCC internal prototype to avoid an error.
13852 Use char because int might match the return type of a GCC
13853 builtin and then its argument prototype would still apply. */
13858 /* The GNU C library defines this for functions which it implements
13859 to always fail with ENOSYS. Some functions are actually named
13860 something starting with __ and the normal name is an alias. */
13861 #if defined __stub_$ac_func || defined __stub___$ac_func
13868 return $ac_func ();
13873 rm -f conftest.$ac_objext conftest$ac_exeext
13874 if { (ac_try="$ac_link"
13875 case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_link") 2>conftest.er1
13882 grep -v '^ *+' conftest.er1 >conftest.err
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
13887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13888 { (case "(($ac_try" in
13889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890 *) ac_try_echo=$ac_try;;
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893 (eval "$ac_try") 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; } &&
13897 { ac_try='test -s conftest$ac_exeext'
13898 { (case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_try") 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 eval "$as_ac_var=yes"
13909 echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13912 eval "$as_ac_var=no"
13915 rm -f core conftest.err conftest.$ac_objext \
13916 conftest$ac_exeext conftest.$ac_ext
13918 ac_res=`eval echo '${'$as_ac_var'}'`
13919 { echo "$as_me:$LINENO: result: $ac_res" >&5
13920 echo "${ECHO_T}$ac_res" >&6; }
13921 if test `eval echo '${'$as_ac_var'}'` = yes; then
13922 cat >>confdefs.h <<_ACEOF
13923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13934 for ac_func in log log2 log10 exp exp2
13936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 cat >conftest.$ac_ext <<_ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13950 #define $ac_func innocuous_$ac_func
13952 /* System header to define __stub macros and hopefully few prototypes,
13953 which can conflict with char $ac_func (); below.
13954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13955 <limits.h> exists even on freestanding compilers. */
13958 # include <limits.h>
13960 # include <assert.h>
13965 /* Override any GCC internal prototype to avoid an error.
13966 Use char because int might match the return type of a GCC
13967 builtin and then its argument prototype would still apply. */
13972 /* The GNU C library defines this for functions which it implements
13973 to always fail with ENOSYS. Some functions are actually named
13974 something starting with __ and the normal name is an alias. */
13975 #if defined __stub_$ac_func || defined __stub___$ac_func
13982 return $ac_func ();
13987 rm -f conftest.$ac_objext conftest$ac_exeext
13988 if { (ac_try="$ac_link"
13989 case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_link") 2>conftest.er1
13996 grep -v '^ *+' conftest.er1 >conftest.err
13998 cat conftest.err >&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } &&
14001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14002 { (case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_try") 2>&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; } &&
14011 { ac_try='test -s conftest$ac_exeext'
14012 { (case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017 (eval "$ac_try") 2>&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }; then
14021 eval "$as_ac_var=yes"
14023 echo "$as_me: failed program was:" >&5
14024 sed 's/^/| /' conftest.$ac_ext >&5
14026 eval "$as_ac_var=no"
14029 rm -f core conftest.err conftest.$ac_objext \
14030 conftest$ac_exeext conftest.$ac_ext
14032 ac_res=`eval echo '${'$as_ac_var'}'`
14033 { echo "$as_me:$LINENO: result: $ac_res" >&5
14034 echo "${ECHO_T}$ac_res" >&6; }
14035 if test `eval echo '${'$as_ac_var'}'` = yes; then
14036 cat >>confdefs.h <<_ACEOF
14037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14048 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 cat >conftest.$ac_ext <<_ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h. */
14062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14064 #define $ac_func innocuous_$ac_func
14066 /* System header to define __stub macros and hopefully few prototypes,
14067 which can conflict with char $ac_func (); below.
14068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14069 <limits.h> exists even on freestanding compilers. */
14072 # include <limits.h>
14074 # include <assert.h>
14079 /* Override any GCC internal prototype to avoid an error.
14080 Use char because int might match the return type of a GCC
14081 builtin and then its argument prototype would still apply. */
14086 /* The GNU C library defines this for functions which it implements
14087 to always fail with ENOSYS. Some functions are actually named
14088 something starting with __ and the normal name is an alias. */
14089 #if defined __stub_$ac_func || defined __stub___$ac_func
14096 return $ac_func ();
14101 rm -f conftest.$ac_objext conftest$ac_exeext
14102 if { (ac_try="$ac_link"
14103 case "(($ac_try" in
14104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105 *) ac_try_echo=$ac_try;;
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108 (eval "$ac_link") 2>conftest.er1
14110 grep -v '^ *+' conftest.er1 >conftest.err
14112 cat conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } &&
14115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14116 { (case "(($ac_try" in
14117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14118 *) ac_try_echo=$ac_try;;
14120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14121 (eval "$ac_try") 2>&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; } &&
14125 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; }; then
14135 eval "$as_ac_var=yes"
14137 echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14140 eval "$as_ac_var=no"
14143 rm -f core conftest.err conftest.$ac_objext \
14144 conftest$ac_exeext conftest.$ac_ext
14146 ac_res=`eval echo '${'$as_ac_var'}'`
14147 { echo "$as_me:$LINENO: result: $ac_res" >&5
14148 echo "${ECHO_T}$ac_res" >&6; }
14149 if test `eval echo '${'$as_ac_var'}'` = yes; then
14150 cat >>confdefs.h <<_ACEOF
14151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14160 for ac_func in isatty mkdtemp mkstemp
14162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 cat >conftest.$ac_ext <<_ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h. */
14174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14176 #define $ac_func innocuous_$ac_func
14178 /* System header to define __stub macros and hopefully few prototypes,
14179 which can conflict with char $ac_func (); below.
14180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14181 <limits.h> exists even on freestanding compilers. */
14184 # include <limits.h>
14186 # include <assert.h>
14191 /* Override any GCC internal prototype to avoid an error.
14192 Use char because int might match the return type of a GCC
14193 builtin and then its argument prototype would still apply. */
14198 /* The GNU C library defines this for functions which it implements
14199 to always fail with ENOSYS. Some functions are actually named
14200 something starting with __ and the normal name is an alias. */
14201 #if defined __stub_$ac_func || defined __stub___$ac_func
14208 return $ac_func ();
14213 rm -f conftest.$ac_objext conftest$ac_exeext
14214 if { (ac_try="$ac_link"
14215 case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_link") 2>conftest.er1
14222 grep -v '^ *+' conftest.er1 >conftest.err
14224 cat conftest.err >&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } &&
14227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14228 { (case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_try") 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; } &&
14237 { ac_try='test -s conftest$ac_exeext'
14238 { (case "(($ac_try" in
14239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240 *) ac_try_echo=$ac_try;;
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243 (eval "$ac_try") 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14247 eval "$as_ac_var=yes"
14249 echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14252 eval "$as_ac_var=no"
14255 rm -f core conftest.err conftest.$ac_objext \
14256 conftest$ac_exeext conftest.$ac_ext
14258 ac_res=`eval echo '${'$as_ac_var'}'`
14259 { echo "$as_me:$LINENO: result: $ac_res" >&5
14260 echo "${ECHO_T}$ac_res" >&6; }
14261 if test `eval echo '${'$as_ac_var'}'` = yes; then
14262 cat >>confdefs.h <<_ACEOF
14263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14275 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14283 cat >conftest.$ac_ext <<_ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14291 #define $ac_func innocuous_$ac_func
14293 /* System header to define __stub macros and hopefully few prototypes,
14294 which can conflict with char $ac_func (); below.
14295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14296 <limits.h> exists even on freestanding compilers. */
14299 # include <limits.h>
14301 # include <assert.h>
14306 /* Override any GCC internal prototype to avoid an error.
14307 Use char because int might match the return type of a GCC
14308 builtin and then its argument prototype would still apply. */
14313 /* The GNU C library defines this for functions which it implements
14314 to always fail with ENOSYS. Some functions are actually named
14315 something starting with __ and the normal name is an alias. */
14316 #if defined __stub_$ac_func || defined __stub___$ac_func
14323 return $ac_func ();
14328 rm -f conftest.$ac_objext conftest$ac_exeext
14329 if { (ac_try="$ac_link"
14330 case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_link") 2>conftest.er1
14337 grep -v '^ *+' conftest.er1 >conftest.err
14339 cat conftest.err >&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } &&
14342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14343 { (case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_try") 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; } &&
14352 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
14362 eval "$as_ac_var=yes"
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14367 eval "$as_ac_var=no"
14370 rm -f core conftest.err conftest.$ac_objext \
14371 conftest$ac_exeext conftest.$ac_ext
14373 ac_res=`eval echo '${'$as_ac_var'}'`
14374 { echo "$as_me:$LINENO: result: $ac_res" >&5
14375 echo "${ECHO_T}$ac_res" >&6; }
14376 if test `eval echo '${'$as_ac_var'}'` = yes; then
14377 cat >>confdefs.h <<_ACEOF
14378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14387 for ac_func in strerror strerror_r setenv
14389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 cat >conftest.$ac_ext <<_ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14403 #define $ac_func innocuous_$ac_func
14405 /* System header to define __stub macros and hopefully few prototypes,
14406 which can conflict with char $ac_func (); below.
14407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14408 <limits.h> exists even on freestanding compilers. */
14411 # include <limits.h>
14413 # include <assert.h>
14418 /* Override any GCC internal prototype to avoid an error.
14419 Use char because int might match the return type of a GCC
14420 builtin and then its argument prototype would still apply. */
14425 /* The GNU C library defines this for functions which it implements
14426 to always fail with ENOSYS. Some functions are actually named
14427 something starting with __ and the normal name is an alias. */
14428 #if defined __stub_$ac_func || defined __stub___$ac_func
14435 return $ac_func ();
14440 rm -f conftest.$ac_objext conftest$ac_exeext
14441 if { (ac_try="$ac_link"
14442 case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_link") 2>conftest.er1
14449 grep -v '^ *+' conftest.er1 >conftest.err
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
14454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14455 { (case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_try") 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; } &&
14464 { ac_try='test -s conftest$ac_exeext'
14465 { (case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470 (eval "$ac_try") 2>&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; }; then
14474 eval "$as_ac_var=yes"
14476 echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14479 eval "$as_ac_var=no"
14482 rm -f core conftest.err conftest.$ac_objext \
14483 conftest$ac_exeext conftest.$ac_ext
14485 ac_res=`eval echo '${'$as_ac_var'}'`
14486 { echo "$as_me:$LINENO: result: $ac_res" >&5
14487 echo "${ECHO_T}$ac_res" >&6; }
14488 if test `eval echo '${'$as_ac_var'}'` = yes; then
14489 cat >>confdefs.h <<_ACEOF
14490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14500 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 cat >conftest.$ac_ext <<_ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14516 #define $ac_func innocuous_$ac_func
14518 /* System header to define __stub macros and hopefully few prototypes,
14519 which can conflict with char $ac_func (); below.
14520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14521 <limits.h> exists even on freestanding compilers. */
14524 # include <limits.h>
14526 # include <assert.h>
14531 /* Override any GCC internal prototype to avoid an error.
14532 Use char because int might match the return type of a GCC
14533 builtin and then its argument prototype would still apply. */
14538 /* The GNU C library defines this for functions which it implements
14539 to always fail with ENOSYS. Some functions are actually named
14540 something starting with __ and the normal name is an alias. */
14541 #if defined __stub_$ac_func || defined __stub___$ac_func
14548 return $ac_func ();
14553 rm -f conftest.$ac_objext conftest$ac_exeext
14554 if { (ac_try="$ac_link"
14555 case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_link") 2>conftest.er1
14562 grep -v '^ *+' conftest.er1 >conftest.err
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14568 { (case "(($ac_try" in
14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570 *) ac_try_echo=$ac_try;;
14572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573 (eval "$ac_try") 2>&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try='test -s conftest$ac_exeext'
14578 { (case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_try") 2>&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 eval "$as_ac_var=yes"
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14592 eval "$as_ac_var=no"
14595 rm -f core conftest.err conftest.$ac_objext \
14596 conftest$ac_exeext conftest.$ac_ext
14598 ac_res=`eval echo '${'$as_ac_var'}'`
14599 { echo "$as_me:$LINENO: result: $ac_res" >&5
14600 echo "${ECHO_T}$ac_res" >&6; }
14601 if test `eval echo '${'$as_ac_var'}'` = yes; then
14602 cat >>confdefs.h <<_ACEOF
14603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14614 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14622 cat >conftest.$ac_ext <<_ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14630 #define $ac_func innocuous_$ac_func
14632 /* System header to define __stub macros and hopefully few prototypes,
14633 which can conflict with char $ac_func (); below.
14634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14635 <limits.h> exists even on freestanding compilers. */
14638 # include <limits.h>
14640 # include <assert.h>
14645 /* Override any GCC internal prototype to avoid an error.
14646 Use char because int might match the return type of a GCC
14647 builtin and then its argument prototype would still apply. */
14652 /* The GNU C library defines this for functions which it implements
14653 to always fail with ENOSYS. Some functions are actually named
14654 something starting with __ and the normal name is an alias. */
14655 #if defined __stub_$ac_func || defined __stub___$ac_func
14662 return $ac_func ();
14667 rm -f conftest.$ac_objext conftest$ac_exeext
14668 if { (ac_try="$ac_link"
14669 case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_link") 2>conftest.er1
14676 grep -v '^ *+' conftest.er1 >conftest.err
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } &&
14681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14682 { (case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_try") 2>&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; } &&
14691 { ac_try='test -s conftest$ac_exeext'
14692 { (case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697 (eval "$ac_try") 2>&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14701 eval "$as_ac_var=yes"
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 eval "$as_ac_var=no"
14709 rm -f core conftest.err conftest.$ac_objext \
14710 conftest$ac_exeext conftest.$ac_ext
14712 ac_res=`eval echo '${'$as_ac_var'}'`
14713 { echo "$as_me:$LINENO: result: $ac_res" >&5
14714 echo "${ECHO_T}$ac_res" >&6; }
14715 if test `eval echo '${'$as_ac_var'}'` = yes; then
14716 cat >>confdefs.h <<_ACEOF
14717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14725 for ac_func in futimes futimens
14727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14731 echo $ECHO_N "(cached) $ECHO_C" >&6
14733 cat >conftest.$ac_ext <<_ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14741 #define $ac_func innocuous_$ac_func
14743 /* System header to define __stub macros and hopefully few prototypes,
14744 which can conflict with char $ac_func (); below.
14745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14746 <limits.h> exists even on freestanding compilers. */
14749 # include <limits.h>
14751 # include <assert.h>
14756 /* Override any GCC internal prototype to avoid an error.
14757 Use char because int might match the return type of a GCC
14758 builtin and then its argument prototype would still apply. */
14763 /* The GNU C library defines this for functions which it implements
14764 to always fail with ENOSYS. Some functions are actually named
14765 something starting with __ and the normal name is an alias. */
14766 #if defined __stub_$ac_func || defined __stub___$ac_func
14773 return $ac_func ();
14778 rm -f conftest.$ac_objext conftest$ac_exeext
14779 if { (ac_try="$ac_link"
14780 case "(($ac_try" in
14781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782 *) ac_try_echo=$ac_try;;
14784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785 (eval "$ac_link") 2>conftest.er1
14787 grep -v '^ *+' conftest.er1 >conftest.err
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
14792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14793 { (case "(($ac_try" in
14794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14795 *) ac_try_echo=$ac_try;;
14797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14798 (eval "$ac_try") 2>&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; } &&
14802 { ac_try='test -s conftest$ac_exeext'
14803 { (case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_try") 2>&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }; then
14812 eval "$as_ac_var=yes"
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14817 eval "$as_ac_var=no"
14820 rm -f core conftest.err conftest.$ac_objext \
14821 conftest$ac_exeext conftest.$ac_ext
14823 ac_res=`eval echo '${'$as_ac_var'}'`
14824 { echo "$as_me:$LINENO: result: $ac_res" >&5
14825 echo "${ECHO_T}$ac_res" >&6; }
14826 if test `eval echo '${'$as_ac_var'}'` = yes; then
14827 cat >>confdefs.h <<_ACEOF
14828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14834 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14835 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14836 if test "${llvm_cv_c_printf_a+set}" = set; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14840 ac_cpp='$CPP $CPPFLAGS'
14841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14845 if test "$cross_compiling" = yes; then
14846 llvmac_cv_c_printf_a=no
14848 cat >conftest.$ac_ext <<_ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h. */
14857 #include <stdlib.h>
14863 volatile double A, B;
14867 sprintf(Buffer, "%a", A);
14871 if (A != 0x1.999999999999ap-4)
14878 rm -f conftest$ac_exeext
14879 if { (ac_try="$ac_link"
14880 case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_link") 2>&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14889 { (case "(($ac_try" in
14890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891 *) ac_try_echo=$ac_try;;
14893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14894 (eval "$ac_try") 2>&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; }; then
14898 llvm_cv_c_printf_a=yes
14900 echo "$as_me: program exited with status $ac_status" >&5
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 ( exit $ac_status )
14905 llvmac_cv_c_printf_a=no
14907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14912 ac_cpp='$CPP $CPPFLAGS'
14913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14918 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14919 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14920 if test "$llvm_cv_c_printf_a" = "yes"; then
14922 cat >>confdefs.h <<\_ACEOF
14923 #define HAVE_PRINTF_A 1
14930 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14931 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14932 if test "${ac_cv_func_rand48+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 ac_cpp='$CXXCPP $CPPFLAGS'
14938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14942 cat >conftest.$ac_ext <<_ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14948 #include <stdlib.h>
14952 srand48(0);lrand48();drand48();
14957 rm -f conftest.$ac_objext
14958 if { (ac_try="$ac_compile"
14959 case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_compile") 2>conftest.er1
14966 grep -v '^ *+' conftest.er1 >conftest.err
14968 cat conftest.err >&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
14971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14972 { (case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_try") 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; } &&
14981 { ac_try='test -s conftest.$ac_objext'
14982 { (case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_try") 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }; then
14991 ac_cv_func_rand48=yes
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ac_cv_func_rand48=no
14999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 ac_cpp='$CPP $CPPFLAGS'
15002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15008 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15009 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15011 if test "$ac_cv_func_rand48" = "yes" ; then
15013 cat >>confdefs.h <<\_ACEOF
15014 #define HAVE_RAND48 1
15020 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15021 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15022 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 cat >conftest.$ac_ext <<_ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15031 $ac_includes_default
15036 char *p = (char *) arc4random;
15044 rm -f conftest.$ac_objext
15045 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15053 grep -v '^ *+' conftest.er1 >conftest.err
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } &&
15058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15059 { (case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_try") 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; } &&
15068 { ac_try='test -s conftest.$ac_objext'
15069 { (case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_try") 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_cv_have_decl_arc4random=yes
15080 echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15083 ac_cv_have_decl_arc4random=no
15086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15088 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15089 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15090 if test $ac_cv_have_decl_arc4random = yes; then
15092 cat >>confdefs.h <<_ACEOF
15093 #define HAVE_DECL_ARC4RANDOM 1
15098 cat >>confdefs.h <<_ACEOF
15099 #define HAVE_DECL_ARC4RANDOM 0
15107 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15108 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15109 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 cat >conftest.$ac_ext <<_ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h. */
15118 $ac_includes_default
15123 char *p = (char *) strerror_s;
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_compile") 2>conftest.er1
15140 grep -v '^ *+' conftest.er1 >conftest.err
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } &&
15145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15146 { (case "(($ac_try" in
15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148 *) ac_try_echo=$ac_try;;
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151 (eval "$ac_try") 2>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; } &&
15155 { ac_try='test -s conftest.$ac_objext'
15156 { (case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_try") 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15165 ac_cv_have_decl_strerror_s=yes
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 ac_cv_have_decl_strerror_s=no
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15175 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15176 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15177 if test $ac_cv_have_decl_strerror_s = yes; then
15179 cat >>confdefs.h <<_ACEOF
15180 #define HAVE_DECL_STRERROR_S 1
15185 cat >>confdefs.h <<_ACEOF
15186 #define HAVE_DECL_STRERROR_S 0
15194 if test "$llvm_cv_os_type" = "MingW" ; then
15195 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15196 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15197 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 ac_check_lib_save_LIBS=$LIBS
15202 cat >conftest.$ac_ext <<_ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15209 /* Override any GCC internal prototype to avoid an error.
15210 Use char because int might match the return type of a GCC
15211 builtin and then its argument prototype would still apply. */
15224 rm -f conftest.$ac_objext conftest$ac_exeext
15225 if { (ac_try="$ac_link"
15226 case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_link") 2>conftest.er1
15233 grep -v '^ *+' conftest.er1 >conftest.err
15235 cat conftest.err >&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); } &&
15238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15239 { (case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_try") 2>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; } &&
15248 { ac_try='test -s conftest$ac_exeext'
15249 { (case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_try") 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_cv_lib_gcc__alloca=yes
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15263 ac_cv_lib_gcc__alloca=no
15266 rm -f core conftest.err conftest.$ac_objext \
15267 conftest$ac_exeext conftest.$ac_ext
15268 LIBS=$ac_check_lib_save_LIBS
15270 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15271 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15272 if test $ac_cv_lib_gcc__alloca = yes; then
15274 cat >>confdefs.h <<\_ACEOF
15275 #define HAVE__ALLOCA 1
15280 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15281 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15282 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15285 ac_check_lib_save_LIBS=$LIBS
15287 cat >conftest.$ac_ext <<_ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15294 /* Override any GCC internal prototype to avoid an error.
15295 Use char because int might match the return type of a GCC
15296 builtin and then its argument prototype would still apply. */
15304 return __alloca ();
15309 rm -f conftest.$ac_objext conftest$ac_exeext
15310 if { (ac_try="$ac_link"
15311 case "(($ac_try" in
15312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313 *) ac_try_echo=$ac_try;;
15315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316 (eval "$ac_link") 2>conftest.er1
15318 grep -v '^ *+' conftest.er1 >conftest.err
15320 cat conftest.err >&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } &&
15323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15324 { (case "(($ac_try" in
15325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326 *) ac_try_echo=$ac_try;;
15328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329 (eval "$ac_try") 2>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; } &&
15333 { ac_try='test -s conftest$ac_exeext'
15334 { (case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_try") 2>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15343 ac_cv_lib_gcc___alloca=yes
15345 echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15348 ac_cv_lib_gcc___alloca=no
15351 rm -f core conftest.err conftest.$ac_objext \
15352 conftest$ac_exeext conftest.$ac_ext
15353 LIBS=$ac_check_lib_save_LIBS
15355 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15356 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15357 if test $ac_cv_lib_gcc___alloca = yes; then
15359 cat >>confdefs.h <<\_ACEOF
15360 #define HAVE___ALLOCA 1
15365 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15366 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15367 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15368 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 ac_check_lib_save_LIBS=$LIBS
15372 cat >conftest.$ac_ext <<_ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h. */
15379 /* Override any GCC internal prototype to avoid an error.
15380 Use char because int might match the return type of a GCC
15381 builtin and then its argument prototype would still apply. */
15389 return __chkstk ();
15394 rm -f conftest.$ac_objext conftest$ac_exeext
15395 if { (ac_try="$ac_link"
15396 case "(($ac_try" in
15397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398 *) ac_try_echo=$ac_try;;
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401 (eval "$ac_link") 2>conftest.er1
15403 grep -v '^ *+' conftest.er1 >conftest.err
15405 cat conftest.err >&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } &&
15408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15409 { (case "(($ac_try" in
15410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411 *) ac_try_echo=$ac_try;;
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414 (eval "$ac_try") 2>&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; } &&
15418 { ac_try='test -s conftest$ac_exeext'
15419 { (case "(($ac_try" in
15420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421 *) ac_try_echo=$ac_try;;
15423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424 (eval "$ac_try") 2>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
15428 ac_cv_lib_gcc___chkstk=yes
15430 echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433 ac_cv_lib_gcc___chkstk=no
15436 rm -f core conftest.err conftest.$ac_objext \
15437 conftest$ac_exeext conftest.$ac_ext
15438 LIBS=$ac_check_lib_save_LIBS
15440 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15441 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15442 if test $ac_cv_lib_gcc___chkstk = yes; then
15444 cat >>confdefs.h <<\_ACEOF
15445 #define HAVE___CHKSTK 1
15450 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15451 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15452 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 ac_check_lib_save_LIBS=$LIBS
15457 cat >conftest.$ac_ext <<_ACEOF
15460 cat confdefs.h >>conftest.$ac_ext
15461 cat >>conftest.$ac_ext <<_ACEOF
15462 /* end confdefs.h. */
15464 /* Override any GCC internal prototype to avoid an error.
15465 Use char because int might match the return type of a GCC
15466 builtin and then its argument prototype would still apply. */
15470 char __chkstk_ms ();
15474 return __chkstk_ms ();
15479 rm -f conftest.$ac_objext conftest$ac_exeext
15480 if { (ac_try="$ac_link"
15481 case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486 (eval "$ac_link") 2>conftest.er1
15488 grep -v '^ *+' conftest.er1 >conftest.err
15490 cat conftest.err >&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } &&
15493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15494 { (case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_try") 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } &&
15503 { ac_try='test -s conftest$ac_exeext'
15504 { (case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509 (eval "$ac_try") 2>&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513 ac_cv_lib_gcc___chkstk_ms=yes
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 ac_cv_lib_gcc___chkstk_ms=no
15521 rm -f core conftest.err conftest.$ac_objext \
15522 conftest$ac_exeext conftest.$ac_ext
15523 LIBS=$ac_check_lib_save_LIBS
15525 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15526 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15527 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15529 cat >>confdefs.h <<\_ACEOF
15530 #define HAVE___CHKSTK_MS 1
15535 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15536 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15537 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15538 echo $ECHO_N "(cached) $ECHO_C" >&6
15540 ac_check_lib_save_LIBS=$LIBS
15542 cat >conftest.$ac_ext <<_ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15549 /* Override any GCC internal prototype to avoid an error.
15550 Use char because int might match the return type of a GCC
15551 builtin and then its argument prototype would still apply. */
15559 return ___chkstk ();
15564 rm -f conftest.$ac_objext conftest$ac_exeext
15565 if { (ac_try="$ac_link"
15566 case "(($ac_try" in
15567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568 *) ac_try_echo=$ac_try;;
15570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571 (eval "$ac_link") 2>conftest.er1
15573 grep -v '^ *+' conftest.er1 >conftest.err
15575 cat conftest.err >&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } &&
15578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15579 { (case "(($ac_try" in
15580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15581 *) ac_try_echo=$ac_try;;
15583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15584 (eval "$ac_try") 2>&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; } &&
15588 { ac_try='test -s conftest$ac_exeext'
15589 { (case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_try") 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_cv_lib_gcc____chkstk=yes
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 ac_cv_lib_gcc____chkstk=no
15606 rm -f core conftest.err conftest.$ac_objext \
15607 conftest$ac_exeext conftest.$ac_ext
15608 LIBS=$ac_check_lib_save_LIBS
15610 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15611 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15612 if test $ac_cv_lib_gcc____chkstk = yes; then
15614 cat >>confdefs.h <<\_ACEOF
15615 #define HAVE____CHKSTK 1
15620 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15621 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15622 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 ac_check_lib_save_LIBS=$LIBS
15627 cat >conftest.$ac_ext <<_ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h. */
15634 /* Override any GCC internal prototype to avoid an error.
15635 Use char because int might match the return type of a GCC
15636 builtin and then its argument prototype would still apply. */
15640 char ___chkstk_ms ();
15644 return ___chkstk_ms ();
15649 rm -f conftest.$ac_objext conftest$ac_exeext
15650 if { (ac_try="$ac_link"
15651 case "(($ac_try" in
15652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653 *) ac_try_echo=$ac_try;;
15655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656 (eval "$ac_link") 2>conftest.er1
15658 grep -v '^ *+' conftest.er1 >conftest.err
15660 cat conftest.err >&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); } &&
15663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15664 { (case "(($ac_try" in
15665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666 *) ac_try_echo=$ac_try;;
15668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669 (eval "$ac_try") 2>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; } &&
15673 { ac_try='test -s conftest$ac_exeext'
15674 { (case "(($ac_try" in
15675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676 *) ac_try_echo=$ac_try;;
15678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15679 (eval "$ac_try") 2>&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
15683 ac_cv_lib_gcc____chkstk_ms=yes
15685 echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15688 ac_cv_lib_gcc____chkstk_ms=no
15691 rm -f core conftest.err conftest.$ac_objext \
15692 conftest$ac_exeext conftest.$ac_ext
15693 LIBS=$ac_check_lib_save_LIBS
15695 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15696 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15697 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15699 cat >>confdefs.h <<\_ACEOF
15700 #define HAVE____CHKSTK_MS 1
15706 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15707 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15708 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 ac_check_lib_save_LIBS=$LIBS
15713 cat >conftest.$ac_ext <<_ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15720 /* Override any GCC internal prototype to avoid an error.
15721 Use char because int might match the return type of a GCC
15722 builtin and then its argument prototype would still apply. */
15730 return __ashldi3 ();
15735 rm -f conftest.$ac_objext conftest$ac_exeext
15736 if { (ac_try="$ac_link"
15737 case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_link") 2>conftest.er1
15744 grep -v '^ *+' conftest.er1 >conftest.err
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15750 { (case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_try") 2>&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; } &&
15759 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 ac_cv_lib_gcc___ashldi3=yes
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 ac_cv_lib_gcc___ashldi3=no
15777 rm -f core conftest.err conftest.$ac_objext \
15778 conftest$ac_exeext conftest.$ac_ext
15779 LIBS=$ac_check_lib_save_LIBS
15781 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15782 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15783 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15785 cat >>confdefs.h <<\_ACEOF
15786 #define HAVE___ASHLDI3 1
15791 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15792 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15793 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 ac_check_lib_save_LIBS=$LIBS
15798 cat >conftest.$ac_ext <<_ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15805 /* Override any GCC internal prototype to avoid an error.
15806 Use char because int might match the return type of a GCC
15807 builtin and then its argument prototype would still apply. */
15815 return __ashrdi3 ();
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (ac_try="$ac_link"
15822 case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827 (eval "$ac_link") 2>conftest.er1
15829 grep -v '^ *+' conftest.er1 >conftest.err
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } &&
15834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15835 { (case "(($ac_try" in
15836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837 *) ac_try_echo=$ac_try;;
15839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15840 (eval "$ac_try") 2>&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; } &&
15844 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }; then
15854 ac_cv_lib_gcc___ashrdi3=yes
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15859 ac_cv_lib_gcc___ashrdi3=no
15862 rm -f core conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
15864 LIBS=$ac_check_lib_save_LIBS
15866 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15867 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15868 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15870 cat >>confdefs.h <<\_ACEOF
15871 #define HAVE___ASHRDI3 1
15876 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15877 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15878 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 ac_check_lib_save_LIBS=$LIBS
15883 cat >conftest.$ac_ext <<_ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15890 /* Override any GCC internal prototype to avoid an error.
15891 Use char because int might match the return type of a GCC
15892 builtin and then its argument prototype would still apply. */
15900 return __divdi3 ();
15905 rm -f conftest.$ac_objext conftest$ac_exeext
15906 if { (ac_try="$ac_link"
15907 case "(($ac_try" in
15908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909 *) ac_try_echo=$ac_try;;
15911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15912 (eval "$ac_link") 2>conftest.er1
15914 grep -v '^ *+' conftest.er1 >conftest.err
15916 cat conftest.err >&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); } &&
15919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15920 { (case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925 (eval "$ac_try") 2>&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; } &&
15929 { ac_try='test -s conftest$ac_exeext'
15930 { (case "(($ac_try" in
15931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_try") 2>&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 ac_cv_lib_gcc___divdi3=yes
15941 echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15944 ac_cv_lib_gcc___divdi3=no
15947 rm -f core conftest.err conftest.$ac_objext \
15948 conftest$ac_exeext conftest.$ac_ext
15949 LIBS=$ac_check_lib_save_LIBS
15951 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15952 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15953 if test $ac_cv_lib_gcc___divdi3 = yes; then
15955 cat >>confdefs.h <<\_ACEOF
15956 #define HAVE___DIVDI3 1
15961 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15962 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15963 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15966 ac_check_lib_save_LIBS=$LIBS
15968 cat >conftest.$ac_ext <<_ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15975 /* Override any GCC internal prototype to avoid an error.
15976 Use char because int might match the return type of a GCC
15977 builtin and then its argument prototype would still apply. */
15985 return __fixdfdi ();
15990 rm -f conftest.$ac_objext conftest$ac_exeext
15991 if { (ac_try="$ac_link"
15992 case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_link") 2>conftest.er1
15999 grep -v '^ *+' conftest.er1 >conftest.err
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
16004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16005 { (case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010 (eval "$ac_try") 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; } &&
16014 { ac_try='test -s conftest$ac_exeext'
16015 { (case "(($ac_try" in
16016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16017 *) ac_try_echo=$ac_try;;
16019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16020 (eval "$ac_try") 2>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 ac_cv_lib_gcc___fixdfdi=yes
16026 echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16029 ac_cv_lib_gcc___fixdfdi=no
16032 rm -f core conftest.err conftest.$ac_objext \
16033 conftest$ac_exeext conftest.$ac_ext
16034 LIBS=$ac_check_lib_save_LIBS
16036 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16037 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16038 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16040 cat >>confdefs.h <<\_ACEOF
16041 #define HAVE___FIXDFDI 1
16046 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16047 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16048 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16049 echo $ECHO_N "(cached) $ECHO_C" >&6
16051 ac_check_lib_save_LIBS=$LIBS
16053 cat >conftest.$ac_ext <<_ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16060 /* Override any GCC internal prototype to avoid an error.
16061 Use char because int might match the return type of a GCC
16062 builtin and then its argument prototype would still apply. */
16070 return __fixsfdi ();
16075 rm -f conftest.$ac_objext conftest$ac_exeext
16076 if { (ac_try="$ac_link"
16077 case "(($ac_try" in
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082 (eval "$ac_link") 2>conftest.er1
16084 grep -v '^ *+' conftest.er1 >conftest.err
16086 cat conftest.err >&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } &&
16089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16090 { (case "(($ac_try" in
16091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16092 *) ac_try_echo=$ac_try;;
16094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16095 (eval "$ac_try") 2>&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; } &&
16099 { ac_try='test -s conftest$ac_exeext'
16100 { (case "(($ac_try" in
16101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102 *) ac_try_echo=$ac_try;;
16104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16105 (eval "$ac_try") 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_cv_lib_gcc___fixsfdi=yes
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16114 ac_cv_lib_gcc___fixsfdi=no
16117 rm -f core conftest.err conftest.$ac_objext \
16118 conftest$ac_exeext conftest.$ac_ext
16119 LIBS=$ac_check_lib_save_LIBS
16121 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16122 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16123 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16125 cat >>confdefs.h <<\_ACEOF
16126 #define HAVE___FIXSFDI 1
16131 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16132 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16133 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16134 echo $ECHO_N "(cached) $ECHO_C" >&6
16136 ac_check_lib_save_LIBS=$LIBS
16138 cat >conftest.$ac_ext <<_ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h. */
16145 /* Override any GCC internal prototype to avoid an error.
16146 Use char because int might match the return type of a GCC
16147 builtin and then its argument prototype would still apply. */
16151 char __floatdidf ();
16155 return __floatdidf ();
16160 rm -f conftest.$ac_objext conftest$ac_exeext
16161 if { (ac_try="$ac_link"
16162 case "(($ac_try" in
16163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164 *) ac_try_echo=$ac_try;;
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167 (eval "$ac_link") 2>conftest.er1
16169 grep -v '^ *+' conftest.er1 >conftest.err
16171 cat conftest.err >&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
16174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16175 { (case "(($ac_try" in
16176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16177 *) ac_try_echo=$ac_try;;
16179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16180 (eval "$ac_try") 2>&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; } &&
16184 { ac_try='test -s conftest$ac_exeext'
16185 { (case "(($ac_try" in
16186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16187 *) ac_try_echo=$ac_try;;
16189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16190 (eval "$ac_try") 2>&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; }; then
16194 ac_cv_lib_gcc___floatdidf=yes
16196 echo "$as_me: failed program was:" >&5
16197 sed 's/^/| /' conftest.$ac_ext >&5
16199 ac_cv_lib_gcc___floatdidf=no
16202 rm -f core conftest.err conftest.$ac_objext \
16203 conftest$ac_exeext conftest.$ac_ext
16204 LIBS=$ac_check_lib_save_LIBS
16206 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16207 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16208 if test $ac_cv_lib_gcc___floatdidf = yes; then
16210 cat >>confdefs.h <<\_ACEOF
16211 #define HAVE___FLOATDIDF 1
16216 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16217 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16218 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16219 echo $ECHO_N "(cached) $ECHO_C" >&6
16221 ac_check_lib_save_LIBS=$LIBS
16223 cat >conftest.$ac_ext <<_ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h. */
16230 /* Override any GCC internal prototype to avoid an error.
16231 Use char because int might match the return type of a GCC
16232 builtin and then its argument prototype would still apply. */
16240 return __lshrdi3 ();
16245 rm -f conftest.$ac_objext conftest$ac_exeext
16246 if { (ac_try="$ac_link"
16247 case "(($ac_try" in
16248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16249 *) ac_try_echo=$ac_try;;
16251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16252 (eval "$ac_link") 2>conftest.er1
16254 grep -v '^ *+' conftest.er1 >conftest.err
16256 cat conftest.err >&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } &&
16259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16260 { (case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265 (eval "$ac_try") 2>&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; } &&
16269 { ac_try='test -s conftest$ac_exeext'
16270 { (case "(($ac_try" in
16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272 *) ac_try_echo=$ac_try;;
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275 (eval "$ac_try") 2>&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; }; then
16279 ac_cv_lib_gcc___lshrdi3=yes
16281 echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16284 ac_cv_lib_gcc___lshrdi3=no
16287 rm -f core conftest.err conftest.$ac_objext \
16288 conftest$ac_exeext conftest.$ac_ext
16289 LIBS=$ac_check_lib_save_LIBS
16291 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16292 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16293 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16295 cat >>confdefs.h <<\_ACEOF
16296 #define HAVE___LSHRDI3 1
16301 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16302 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16303 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16306 ac_check_lib_save_LIBS=$LIBS
16308 cat >conftest.$ac_ext <<_ACEOF
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h. */
16315 /* Override any GCC internal prototype to avoid an error.
16316 Use char because int might match the return type of a GCC
16317 builtin and then its argument prototype would still apply. */
16325 return __moddi3 ();
16330 rm -f conftest.$ac_objext conftest$ac_exeext
16331 if { (ac_try="$ac_link"
16332 case "(($ac_try" in
16333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16334 *) ac_try_echo=$ac_try;;
16336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16337 (eval "$ac_link") 2>conftest.er1
16339 grep -v '^ *+' conftest.er1 >conftest.err
16341 cat conftest.err >&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16345 { (case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_try") 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
16354 { ac_try='test -s conftest$ac_exeext'
16355 { (case "(($ac_try" in
16356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357 *) ac_try_echo=$ac_try;;
16359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360 (eval "$ac_try") 2>&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 ac_cv_lib_gcc___moddi3=yes
16366 echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16369 ac_cv_lib_gcc___moddi3=no
16372 rm -f core conftest.err conftest.$ac_objext \
16373 conftest$ac_exeext conftest.$ac_ext
16374 LIBS=$ac_check_lib_save_LIBS
16376 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16377 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16378 if test $ac_cv_lib_gcc___moddi3 = yes; then
16380 cat >>confdefs.h <<\_ACEOF
16381 #define HAVE___MODDI3 1
16386 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16387 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16388 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16389 echo $ECHO_N "(cached) $ECHO_C" >&6
16391 ac_check_lib_save_LIBS=$LIBS
16393 cat >conftest.$ac_ext <<_ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16400 /* Override any GCC internal prototype to avoid an error.
16401 Use char because int might match the return type of a GCC
16402 builtin and then its argument prototype would still apply. */
16410 return __udivdi3 ();
16415 rm -f conftest.$ac_objext conftest$ac_exeext
16416 if { (ac_try="$ac_link"
16417 case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_link") 2>conftest.er1
16424 grep -v '^ *+' conftest.er1 >conftest.err
16426 cat conftest.err >&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } &&
16429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16430 { (case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_try") 2>&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; } &&
16439 { ac_try='test -s conftest$ac_exeext'
16440 { (case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445 (eval "$ac_try") 2>&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; }; then
16449 ac_cv_lib_gcc___udivdi3=yes
16451 echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16454 ac_cv_lib_gcc___udivdi3=no
16457 rm -f core conftest.err conftest.$ac_objext \
16458 conftest$ac_exeext conftest.$ac_ext
16459 LIBS=$ac_check_lib_save_LIBS
16461 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16462 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16463 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16465 cat >>confdefs.h <<\_ACEOF
16466 #define HAVE___UDIVDI3 1
16471 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16472 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16473 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 ac_check_lib_save_LIBS=$LIBS
16478 cat >conftest.$ac_ext <<_ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16485 /* Override any GCC internal prototype to avoid an error.
16486 Use char because int might match the return type of a GCC
16487 builtin and then its argument prototype would still apply. */
16495 return __umoddi3 ();
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (ac_try="$ac_link"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_link") 2>conftest.er1
16509 grep -v '^ *+' conftest.er1 >conftest.err
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } &&
16514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16515 { (case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; } &&
16524 { ac_try='test -s conftest$ac_exeext'
16525 { (case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_try") 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16534 ac_cv_lib_gcc___umoddi3=yes
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16539 ac_cv_lib_gcc___umoddi3=no
16542 rm -f core conftest.err conftest.$ac_objext \
16543 conftest$ac_exeext conftest.$ac_ext
16544 LIBS=$ac_check_lib_save_LIBS
16546 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16547 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16548 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16550 cat >>confdefs.h <<\_ACEOF
16551 #define HAVE___UMODDI3 1
16557 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16558 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16559 if test "${ac_cv_lib_gcc___main+set}" = set; then
16560 echo $ECHO_N "(cached) $ECHO_C" >&6
16562 ac_check_lib_save_LIBS=$LIBS
16564 cat >conftest.$ac_ext <<_ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16571 /* Override any GCC internal prototype to avoid an error.
16572 Use char because int might match the return type of a GCC
16573 builtin and then its argument prototype would still apply. */
16586 rm -f conftest.$ac_objext conftest$ac_exeext
16587 if { (ac_try="$ac_link"
16588 case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_link") 2>conftest.er1
16595 grep -v '^ *+' conftest.er1 >conftest.err
16597 cat conftest.err >&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } &&
16600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16601 { (case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_try") 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; } &&
16610 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; }; then
16620 ac_cv_lib_gcc___main=yes
16622 echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.$ac_ext >&5
16625 ac_cv_lib_gcc___main=no
16628 rm -f core conftest.err conftest.$ac_objext \
16629 conftest$ac_exeext conftest.$ac_ext
16630 LIBS=$ac_check_lib_save_LIBS
16632 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16633 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16634 if test $ac_cv_lib_gcc___main = yes; then
16636 cat >>confdefs.h <<\_ACEOF
16637 #define HAVE___MAIN 1
16642 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16643 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16644 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 ac_check_lib_save_LIBS=$LIBS
16649 cat >conftest.$ac_ext <<_ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16656 /* Override any GCC internal prototype to avoid an error.
16657 Use char because int might match the return type of a GCC
16658 builtin and then its argument prototype would still apply. */
16666 return __cmpdi2 ();
16671 rm -f conftest.$ac_objext conftest$ac_exeext
16672 if { (ac_try="$ac_link"
16673 case "(($ac_try" in
16674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16675 *) ac_try_echo=$ac_try;;
16677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16678 (eval "$ac_link") 2>conftest.er1
16680 grep -v '^ *+' conftest.er1 >conftest.err
16682 cat conftest.err >&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } &&
16685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16686 { (case "(($ac_try" in
16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_try") 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; } &&
16695 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_cv_lib_gcc___cmpdi2=yes
16707 echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16710 ac_cv_lib_gcc___cmpdi2=no
16713 rm -f core conftest.err conftest.$ac_objext \
16714 conftest$ac_exeext conftest.$ac_ext
16715 LIBS=$ac_check_lib_save_LIBS
16717 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16718 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16719 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16721 cat >>confdefs.h <<\_ACEOF
16722 #define HAVE___CMPDI2 1
16729 if test "$llvm_cv_os_type" = "MingW" ; then
16730 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16731 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16732 cat >conftest.$ac_ext <<_ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h. */
16740 #include <windows.h>
16741 #include <imagehlp.h>
16742 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16743 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16747 rm -f conftest.$ac_objext
16748 if { (ac_try="$ac_compile"
16749 case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_compile") 2>conftest.er1
16756 grep -v '^ *+' conftest.er1 >conftest.err
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } &&
16761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; } &&
16771 { ac_try='test -s conftest.$ac_objext'
16772 { (case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_try") 2>&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; }; then
16782 { echo "$as_me:$LINENO: result: yes" >&5
16783 echo "${ECHO_T}yes" >&6; }
16784 llvm_cv_win32_elmcb_pcstr="PCSTR"
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16791 { echo "$as_me:$LINENO: result: no" >&5
16792 echo "${ECHO_T}no" >&6; }
16793 llvm_cv_win32_elmcb_pcstr="PSTR"
16797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16799 cat >>confdefs.h <<_ACEOF
16800 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16807 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
16808 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
16809 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 ac_cpp='$CXXCPP $CPPFLAGS'
16815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16819 cat >conftest.$ac_ext <<_ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16834 rm -f conftest.$ac_objext
16835 if { (ac_try="$ac_compile"
16836 case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_compile") 2>conftest.er1
16843 grep -v '^ *+' conftest.er1 >conftest.err
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } &&
16848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16849 { (case "(($ac_try" in
16850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851 *) ac_try_echo=$ac_try;;
16853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16854 (eval "$ac_try") 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest.$ac_objext'
16859 { (case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_try") 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_func_isnan_in_math_h=yes
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16873 ac_cv_func_isnan_in_math_h=no
16876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16878 ac_cpp='$CPP $CPPFLAGS'
16879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16885 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
16886 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
16889 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
16891 cat >>confdefs.h <<\_ACEOF
16892 #define HAVE_ISNAN_IN_MATH_H 1
16898 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
16899 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
16900 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16905 ac_cpp='$CXXCPP $CPPFLAGS'
16906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16910 cat >conftest.$ac_ext <<_ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16925 rm -f conftest.$ac_objext
16926 if { (ac_try="$ac_compile"
16927 case "(($ac_try" in
16928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929 *) ac_try_echo=$ac_try;;
16931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16932 (eval "$ac_compile") 2>conftest.er1
16934 grep -v '^ *+' conftest.er1 >conftest.err
16936 cat conftest.err >&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); } &&
16939 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16940 { (case "(($ac_try" in
16941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942 *) ac_try_echo=$ac_try;;
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945 (eval "$ac_try") 2>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try='test -s conftest.$ac_objext'
16950 { (case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_try") 2>&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_cv_func_isnan_in_cmath=yes
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 ac_cv_func_isnan_in_cmath=no
16967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16969 ac_cpp='$CPP $CPPFLAGS'
16970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16976 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
16977 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
16979 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
16981 cat >>confdefs.h <<\_ACEOF
16982 #define HAVE_ISNAN_IN_CMATH 1
16988 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
16989 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
16990 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 ac_cpp='$CXXCPP $CPPFLAGS'
16996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17000 cat >conftest.$ac_ext <<_ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h. */
17010 float f; std::isnan(f);
17015 rm -f conftest.$ac_objext
17016 if { (ac_try="$ac_compile"
17017 case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_compile") 2>conftest.er1
17024 grep -v '^ *+' conftest.er1 >conftest.err
17026 cat conftest.err >&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } &&
17029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; } &&
17039 { ac_try='test -s conftest.$ac_objext'
17040 { (case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_try") 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
17049 ac_cv_func_std_isnan_in_cmath=yes
17051 echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17054 ac_cv_func_std_isnan_in_cmath=no
17057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059 ac_cpp='$CPP $CPPFLAGS'
17060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17066 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17067 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17069 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17071 cat >>confdefs.h <<\_ACEOF
17072 #define HAVE_STD_ISNAN_IN_CMATH 1
17080 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17081 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17082 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17087 ac_cpp='$CXXCPP $CPPFLAGS'
17088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17092 cat >conftest.$ac_ext <<_ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h. */
17107 rm -f conftest.$ac_objext
17108 if { (ac_try="$ac_compile"
17109 case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17114 (eval "$ac_compile") 2>conftest.er1
17116 grep -v '^ *+' conftest.er1 >conftest.err
17118 cat conftest.err >&5
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); } &&
17121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17122 { (case "(($ac_try" in
17123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_try") 2>&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; } &&
17131 { ac_try='test -s conftest.$ac_objext'
17132 { (case "(($ac_try" in
17133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134 *) ac_try_echo=$ac_try;;
17136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17137 (eval "$ac_try") 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; }; then
17141 ac_cv_func_isinf_in_math_h=yes
17143 echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17146 ac_cv_func_isinf_in_math_h=no
17149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17151 ac_cpp='$CPP $CPPFLAGS'
17152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17158 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17159 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17161 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17163 cat >>confdefs.h <<\_ACEOF
17164 #define HAVE_ISINF_IN_MATH_H 1
17170 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17171 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17172 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17173 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 ac_cpp='$CXXCPP $CPPFLAGS'
17178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17182 cat >conftest.$ac_ext <<_ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17197 rm -f conftest.$ac_objext
17198 if { (ac_try="$ac_compile"
17199 case "(($ac_try" in
17200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201 *) ac_try_echo=$ac_try;;
17203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204 (eval "$ac_compile") 2>conftest.er1
17206 grep -v '^ *+' conftest.er1 >conftest.err
17208 cat conftest.err >&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } &&
17211 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17212 { (case "(($ac_try" in
17213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214 *) ac_try_echo=$ac_try;;
17216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217 (eval "$ac_try") 2>&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; } &&
17221 { ac_try='test -s conftest.$ac_objext'
17222 { (case "(($ac_try" in
17223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224 *) ac_try_echo=$ac_try;;
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227 (eval "$ac_try") 2>&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; }; then
17231 ac_cv_func_isinf_in_cmath=yes
17233 echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17236 ac_cv_func_isinf_in_cmath=no
17239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17241 ac_cpp='$CPP $CPPFLAGS'
17242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17248 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17249 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17251 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17253 cat >>confdefs.h <<\_ACEOF
17254 #define HAVE_ISINF_IN_CMATH 1
17260 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17261 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17262 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 ac_cpp='$CXXCPP $CPPFLAGS'
17268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17272 cat >conftest.$ac_ext <<_ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17282 float f; std::isinf(f);
17287 rm -f conftest.$ac_objext
17288 if { (ac_try="$ac_compile"
17289 case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_compile") 2>conftest.er1
17296 grep -v '^ *+' conftest.er1 >conftest.err
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
17301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17302 { (case "(($ac_try" in
17303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304 *) ac_try_echo=$ac_try;;
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307 (eval "$ac_try") 2>&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; } &&
17311 { ac_try='test -s conftest.$ac_objext'
17312 { (case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_try") 2>&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; }; then
17321 ac_cv_func_std_isinf_in_cmath=yes
17323 echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17326 ac_cv_func_std_isinf_in_cmath=no
17329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17331 ac_cpp='$CPP $CPPFLAGS'
17332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17338 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17339 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17341 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17343 cat >>confdefs.h <<\_ACEOF
17344 #define HAVE_STD_ISINF_IN_CMATH 1
17350 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17351 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17352 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17353 echo $ECHO_N "(cached) $ECHO_C" >&6
17357 ac_cpp='$CXXCPP $CPPFLAGS'
17358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17362 cat >conftest.$ac_ext <<_ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368 #include <ieeefp.h>
17372 float f; finite(f);
17377 rm -f conftest.$ac_objext
17378 if { (ac_try="$ac_compile"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_compile") 2>conftest.er1
17386 grep -v '^ *+' conftest.er1 >conftest.err
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } &&
17391 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17392 { (case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_try") 2>&5
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try='test -s conftest.$ac_objext'
17402 { (case "(($ac_try" in
17403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404 *) ac_try_echo=$ac_try;;
17406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17407 (eval "$ac_try") 2>&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
17411 ac_cv_func_finite_in_ieeefp_h=yes
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17416 ac_cv_func_finite_in_ieeefp_h=no
17419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17421 ac_cpp='$CPP $CPPFLAGS'
17422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17428 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17429 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17431 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17433 cat >>confdefs.h <<\_ACEOF
17434 #define HAVE_FINITE_IN_IEEEFP_H 1
17441 if test "$llvm_cv_platform_type" = "Unix" ; then
17444 for ac_header in stdlib.h unistd.h
17446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17453 ac_res=`eval echo '${'$as_ac_Header'}'`
17454 { echo "$as_me:$LINENO: result: $ac_res" >&5
17455 echo "${ECHO_T}$ac_res" >&6; }
17457 # Is the header compilable?
17458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17460 cat >conftest.$ac_ext <<_ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17466 $ac_includes_default
17467 #include <$ac_header>
17469 rm -f conftest.$ac_objext
17470 if { (ac_try="$ac_compile"
17471 case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_compile") 2>conftest.er1
17478 grep -v '^ *+' conftest.er1 >conftest.err
17480 cat conftest.err >&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } &&
17483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17484 { (case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_try") 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; } &&
17493 { ac_try='test -s conftest.$ac_objext'
17494 { (case "(($ac_try" in
17495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496 *) ac_try_echo=$ac_try;;
17498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17499 (eval "$ac_try") 2>&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 ac_header_compiler=yes
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17508 ac_header_compiler=no
17511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17513 echo "${ECHO_T}$ac_header_compiler" >&6; }
17515 # Is the header present?
17516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17518 cat >conftest.$ac_ext <<_ACEOF
17521 cat confdefs.h >>conftest.$ac_ext
17522 cat >>conftest.$ac_ext <<_ACEOF
17523 /* end confdefs.h. */
17524 #include <$ac_header>
17526 if { (ac_try="$ac_cpp conftest.$ac_ext"
17527 case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17534 grep -v '^ *+' conftest.er1 >conftest.err
17536 cat conftest.err >&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } >/dev/null; then
17539 if test -s conftest.err; then
17540 ac_cpp_err=$ac_c_preproc_warn_flag
17541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17548 if test -z "$ac_cpp_err"; then
17549 ac_header_preproc=yes
17551 echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17554 ac_header_preproc=no
17557 rm -f conftest.err conftest.$ac_ext
17558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17559 echo "${ECHO_T}$ac_header_preproc" >&6; }
17561 # So? What about this header?
17562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17568 ac_header_preproc=yes
17571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17584 ## ------------------------------------ ##
17585 ## Report this to http://llvm.org/bugs/ ##
17586 ## ------------------------------------ ##
17588 ) | sed "s/^/$as_me: WARNING: /" >&2
17591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17594 echo $ECHO_N "(cached) $ECHO_C" >&6
17596 eval "$as_ac_Header=\$ac_header_preproc"
17598 ac_res=`eval echo '${'$as_ac_Header'}'`
17599 { echo "$as_me:$LINENO: result: $ac_res" >&5
17600 echo "${ECHO_T}$ac_res" >&6; }
17603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17604 cat >>confdefs.h <<_ACEOF
17605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17613 for ac_func in getpagesize
17615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17621 cat >conftest.$ac_ext <<_ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17629 #define $ac_func innocuous_$ac_func
17631 /* System header to define __stub macros and hopefully few prototypes,
17632 which can conflict with char $ac_func (); below.
17633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17634 <limits.h> exists even on freestanding compilers. */
17637 # include <limits.h>
17639 # include <assert.h>
17644 /* Override any GCC internal prototype to avoid an error.
17645 Use char because int might match the return type of a GCC
17646 builtin and then its argument prototype would still apply. */
17651 /* The GNU C library defines this for functions which it implements
17652 to always fail with ENOSYS. Some functions are actually named
17653 something starting with __ and the normal name is an alias. */
17654 #if defined __stub_$ac_func || defined __stub___$ac_func
17661 return $ac_func ();
17666 rm -f conftest.$ac_objext conftest$ac_exeext
17667 if { (ac_try="$ac_link"
17668 case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_link") 2>conftest.er1
17675 grep -v '^ *+' conftest.er1 >conftest.err
17677 cat conftest.err >&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } &&
17680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17681 { (case "(($ac_try" in
17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683 *) ac_try_echo=$ac_try;;
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_try") 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; } &&
17690 { ac_try='test -s conftest$ac_exeext'
17691 { (case "(($ac_try" in
17692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17693 *) ac_try_echo=$ac_try;;
17695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17696 (eval "$ac_try") 2>&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17700 eval "$as_ac_var=yes"
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17705 eval "$as_ac_var=no"
17708 rm -f core conftest.err conftest.$ac_objext \
17709 conftest$ac_exeext conftest.$ac_ext
17711 ac_res=`eval echo '${'$as_ac_var'}'`
17712 { echo "$as_me:$LINENO: result: $ac_res" >&5
17713 echo "${ECHO_T}$ac_res" >&6; }
17714 if test `eval echo '${'$as_ac_var'}'` = yes; then
17715 cat >>confdefs.h <<_ACEOF
17716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17722 { echo "$as_me:$LINENO: checking for working mmap" >&5
17723 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17724 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17727 if test "$cross_compiling" = yes; then
17728 ac_cv_func_mmap_fixed_mapped=no
17730 cat >conftest.$ac_ext <<_ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h. */
17736 $ac_includes_default
17737 /* malloc might have been renamed as rpl_malloc. */
17740 /* Thanks to Mike Haertel and Jim Avera for this test.
17741 Here is a matrix of mmap possibilities:
17742 mmap private not fixed
17743 mmap private fixed at somewhere currently unmapped
17744 mmap private fixed at somewhere already mapped
17745 mmap shared not fixed
17746 mmap shared fixed at somewhere currently unmapped
17747 mmap shared fixed at somewhere already mapped
17748 For private mappings, we should verify that changes cannot be read()
17749 back from the file, nor mmap's back from the file at a different
17750 address. (There have been systems where private was not correctly
17751 implemented like the infamous i386 svr4.0, and systems where the
17752 VM page cache was not coherent with the file system buffer cache
17753 like early versions of FreeBSD and possibly contemporary NetBSD.)
17754 For shared mappings, we should conversely verify that changes get
17755 propagated back to all the places they're supposed to be.
17757 Grep wants private fixed already mapped.
17758 The main things grep needs to know about mmap are:
17759 * does it exist and is it safe to write into the mmap'd area
17760 * how to use it (BSD variants) */
17763 #include <sys/mman.h>
17765 #if !STDC_HEADERS && !HAVE_STDLIB_H
17769 /* This mess was copied from the GNU getpagesize.h. */
17770 #if !HAVE_GETPAGESIZE
17771 /* Assume that all systems that can run configure have sys/param.h. */
17772 # if !HAVE_SYS_PARAM_H
17773 # define HAVE_SYS_PARAM_H 1
17776 # ifdef _SC_PAGESIZE
17777 # define getpagesize() sysconf(_SC_PAGESIZE)
17778 # else /* no _SC_PAGESIZE */
17779 # if HAVE_SYS_PARAM_H
17780 # include <sys/param.h>
17781 # ifdef EXEC_PAGESIZE
17782 # define getpagesize() EXEC_PAGESIZE
17783 # else /* no EXEC_PAGESIZE */
17785 # define getpagesize() NBPG * CLSIZE
17788 # endif /* no CLSIZE */
17789 # else /* no NBPG */
17791 # define getpagesize() NBPC
17792 # else /* no NBPC */
17794 # define getpagesize() PAGESIZE
17795 # endif /* PAGESIZE */
17796 # endif /* no NBPC */
17797 # endif /* no NBPG */
17798 # endif /* no EXEC_PAGESIZE */
17799 # else /* no HAVE_SYS_PARAM_H */
17800 # define getpagesize() 8192 /* punt totally */
17801 # endif /* no HAVE_SYS_PARAM_H */
17802 # endif /* no _SC_PAGESIZE */
17804 #endif /* no HAVE_GETPAGESIZE */
17809 char *data, *data2, *data3;
17813 pagesize = getpagesize ();
17815 /* First, make a file with some known garbage in it. */
17816 data = (char *) malloc (pagesize);
17819 for (i = 0; i < pagesize; ++i)
17820 *(data + i) = rand ();
17822 fd = creat ("conftest.mmap", 0600);
17825 if (write (fd, data, pagesize) != pagesize)
17829 /* Next, try to mmap the file at a fixed address which already has
17830 something else allocated at it. If we can, also make sure that
17831 we see the same garbage. */
17832 fd = open ("conftest.mmap", O_RDWR);
17835 data2 = (char *) malloc (2 * pagesize);
17838 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17839 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17840 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17842 for (i = 0; i < pagesize; ++i)
17843 if (*(data + i) != *(data2 + i))
17846 /* Finally, make sure that changes to the mapped area do not
17847 percolate back to the file as seen by read(). (This is a bug on
17848 some variants of i386 svr4.0.) */
17849 for (i = 0; i < pagesize; ++i)
17850 *(data2 + i) = *(data2 + i) + 1;
17851 data3 = (char *) malloc (pagesize);
17854 if (read (fd, data3, pagesize) != pagesize)
17856 for (i = 0; i < pagesize; ++i)
17857 if (*(data + i) != *(data3 + i))
17863 rm -f conftest$ac_exeext
17864 if { (ac_try="$ac_link"
17865 case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_link") 2>&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17874 { (case "(($ac_try" in
17875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876 *) ac_try_echo=$ac_try;;
17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879 (eval "$ac_try") 2>&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; }; then
17883 ac_cv_func_mmap_fixed_mapped=yes
17885 echo "$as_me: program exited with status $ac_status" >&5
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 ( exit $ac_status )
17890 ac_cv_func_mmap_fixed_mapped=no
17892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17897 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17898 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17899 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17901 cat >>confdefs.h <<\_ACEOF
17902 #define HAVE_MMAP 1
17906 rm -f conftest.mmap
17908 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17909 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17910 if test "${ac_cv_func_mmap_file+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17914 ac_cpp='$CPP $CPPFLAGS'
17915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17919 if test "$cross_compiling" = yes; then
17920 ac_cv_func_mmap_file=no
17922 cat >conftest.$ac_ext <<_ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h. */
17930 #include <sys/types.h>
17931 #include <sys/mman.h>
17939 fd = creat ("foo",0777);
17940 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17942 return (fd != (int) MAP_FAILED);
17947 rm -f conftest$ac_exeext
17948 if { (ac_try="$ac_link"
17949 case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954 (eval "$ac_link") 2>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17958 { (case "(($ac_try" in
17959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960 *) ac_try_echo=$ac_try;;
17962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963 (eval "$ac_try") 2>&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; }; then
17967 ac_cv_func_mmap_file=yes
17969 echo "$as_me: program exited with status $ac_status" >&5
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17973 ( exit $ac_status )
17974 ac_cv_func_mmap_file=no
17976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17981 ac_cpp='$CPP $CPPFLAGS'
17982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17988 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17989 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17990 if test "$ac_cv_func_mmap_file" = yes; then
17992 cat >>confdefs.h <<\_ACEOF
17993 #define HAVE_MMAP_FILE
18000 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18001 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18002 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 if test "$llvm_cv_os_type" = "Interix" ; then
18006 ac_cv_need_dev_zero_for_mmap=yes
18008 ac_cv_need_dev_zero_for_mmap=no
18012 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18013 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18014 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18016 cat >>confdefs.h <<\_ACEOF
18017 #define NEED_DEV_ZERO_FOR_MMAP 1
18022 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18024 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18025 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18027 if test "$ac_cv_func_mmap_file" = "no"
18029 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18030 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18034 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18035 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18037 ac_cpp='$CXXCPP $CPPFLAGS'
18038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18042 cat >conftest.$ac_ext <<_ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18051 volatile unsigned long val = 1;
18052 __sync_synchronize();
18053 __sync_val_compare_and_swap(&val, 1, 0);
18054 __sync_add_and_fetch(&val, 1);
18055 __sync_sub_and_fetch(&val, 1);
18061 rm -f conftest.$ac_objext conftest$ac_exeext
18062 if { (ac_try="$ac_link"
18063 case "(($ac_try" in
18064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065 *) ac_try_echo=$ac_try;;
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068 (eval "$ac_link") 2>conftest.er1
18070 grep -v '^ *+' conftest.er1 >conftest.err
18072 cat conftest.err >&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } &&
18075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18076 { (case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_try") 2>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; } &&
18085 { ac_try='test -s conftest$ac_exeext'
18086 { (case "(($ac_try" in
18087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088 *) ac_try_echo=$ac_try;;
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091 (eval "$ac_try") 2>&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; }; then
18096 { echo "$as_me:$LINENO: result: yes" >&5
18097 echo "${ECHO_T}yes" >&6; }
18099 cat >>confdefs.h <<\_ACEOF
18100 #define LLVM_HAS_ATOMICS 1
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18109 { echo "$as_me:$LINENO: result: no" >&5
18110 echo "${ECHO_T}no" >&6; }
18112 cat >>confdefs.h <<\_ACEOF
18113 #define LLVM_HAS_ATOMICS 0
18116 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18117 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18121 rm -f core conftest.err conftest.$ac_objext \
18122 conftest$ac_exeext conftest.$ac_ext
18124 ac_cpp='$CPP $CPPFLAGS'
18125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18131 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18132 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18133 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18134 if test "${llvm_cv_linux_mixed+set}" = set; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18138 ac_cpp='$CPP $CPPFLAGS'
18139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18143 cat >conftest.$ac_ext <<_ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18150 error: Not x86-64 even if uname says so!
18161 rm -f conftest.$ac_objext
18162 if { (ac_try="$ac_compile"
18163 case "(($ac_try" in
18164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165 *) ac_try_echo=$ac_try;;
18167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168 (eval "$ac_compile") 2>conftest.er1
18170 grep -v '^ *+' conftest.er1 >conftest.err
18172 cat conftest.err >&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); } &&
18175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18176 { (case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_try") 2>&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; } &&
18185 { ac_try='test -s conftest.$ac_objext'
18186 { (case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_try") 2>&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18195 llvm_cv_linux_mixed=no
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18200 llvm_cv_linux_mixed=yes
18203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18205 ac_cpp='$CPP $CPPFLAGS'
18206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18212 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18213 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18215 if test "$llvm_cv_linux_mixed" = "yes"; then
18216 llvm_cv_target_arch="x86"
18222 for ac_func in __dso_handle
18224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18228 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 cat >conftest.$ac_ext <<_ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18238 #define $ac_func innocuous_$ac_func
18240 /* System header to define __stub macros and hopefully few prototypes,
18241 which can conflict with char $ac_func (); below.
18242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18243 <limits.h> exists even on freestanding compilers. */
18246 # include <limits.h>
18248 # include <assert.h>
18253 /* Override any GCC internal prototype to avoid an error.
18254 Use char because int might match the return type of a GCC
18255 builtin and then its argument prototype would still apply. */
18260 /* The GNU C library defines this for functions which it implements
18261 to always fail with ENOSYS. Some functions are actually named
18262 something starting with __ and the normal name is an alias. */
18263 #if defined __stub_$ac_func || defined __stub___$ac_func
18270 return $ac_func ();
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (ac_try="$ac_link"
18277 case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_link") 2>conftest.er1
18284 grep -v '^ *+' conftest.er1 >conftest.err
18286 cat conftest.err >&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } &&
18289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18290 { (case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_try") 2>&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; } &&
18299 { ac_try='test -s conftest$ac_exeext'
18300 { (case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_try") 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; }; then
18309 eval "$as_ac_var=yes"
18311 echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18314 eval "$as_ac_var=no"
18317 rm -f core conftest.err conftest.$ac_objext \
18318 conftest$ac_exeext conftest.$ac_ext
18320 ac_res=`eval echo '${'$as_ac_var'}'`
18321 { echo "$as_me:$LINENO: result: $ac_res" >&5
18322 echo "${ECHO_T}$ac_res" >&6; }
18323 if test `eval echo '${'$as_ac_var'}'` = yes; then
18324 cat >>confdefs.h <<_ACEOF
18325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18332 SHLIBEXT=$llvm_shlib_ext
18335 if test "${prefix}" = "NONE" ; then
18336 prefix="/usr/local"
18338 eval LLVM_PREFIX="${prefix}";
18339 eval LLVM_BINDIR="${prefix}/bin";
18340 eval LLVM_DATADIR="${prefix}/share/llvm";
18341 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18342 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18343 eval LLVM_INCLUDEDIR="${prefix}/include";
18344 eval LLVM_INFODIR="${prefix}/info";
18345 eval LLVM_MANDIR="${prefix}/man";
18346 LLVM_CONFIGTIME=`date`
18357 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18358 LLVM_CONFIGTIME="(timestamp not enabled)"
18362 cat >>confdefs.h <<_ACEOF
18363 #define LLVM_PREFIX "$LLVM_PREFIX"
18367 cat >>confdefs.h <<_ACEOF
18368 #define LLVM_BINDIR "$LLVM_BINDIR"
18372 cat >>confdefs.h <<_ACEOF
18373 #define LLVM_DATADIR "$LLVM_DATADIR"
18377 cat >>confdefs.h <<_ACEOF
18378 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18382 cat >>confdefs.h <<_ACEOF
18383 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18387 cat >>confdefs.h <<_ACEOF
18388 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18392 cat >>confdefs.h <<_ACEOF
18393 #define LLVM_INFODIR "$LLVM_INFODIR"
18397 cat >>confdefs.h <<_ACEOF
18398 #define LLVM_MANDIR "$LLVM_MANDIR"
18402 cat >>confdefs.h <<_ACEOF
18403 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18407 cat >>confdefs.h <<_ACEOF
18408 #define LLVM_HOST_TRIPLE "$host"
18412 cat >>confdefs.h <<_ACEOF
18413 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18417 if test "$BINDINGS_TO_BUILD" = auto ; then
18418 BINDINGS_TO_BUILD=""
18419 if test "x$OCAMLFIND" != x ; then
18420 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18422 if test "x$GO" != x ; then
18423 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18424 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18428 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18431 binding_prereqs_failed=0
18432 for a_binding in $BINDINGS_TO_BUILD ; do
18433 case "$a_binding" in
18435 if test "x$OCAMLFIND" = x ; then
18436 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
18437 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
18438 binding_prereqs_failed=1
18441 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
18448 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
18449 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
18450 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
18451 binding_prereqs_failed=1
18454 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
18458 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
18459 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18463 if test "x$with_ocaml_libdir" != xauto ; then
18464 OCAML_LIBDIR=$with_ocaml_libdir
18467 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18468 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18470 # ocaml stdlib is beneath our prefix; use stdlib
18471 OCAML_LIBDIR=$ocaml_stdlib
18474 # ocaml stdlib is outside our prefix; use libdir/ocaml
18475 OCAML_LIBDIR=${prefix}/lib/ocaml
18481 if test "x$GO" = x ; then
18482 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18483 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18484 binding_prereqs_failed=1
18486 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18489 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18490 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18491 binding_prereqs_failed=1
18497 if test "$binding_prereqs_failed" = 1 ; then
18498 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18499 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18500 { (exit 1); exit 1; }; }
18503 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18504 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18505 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18509 ac_cpp='$CXXCPP $CPPFLAGS'
18510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18514 oldcxxflags="$CXXFLAGS"
18515 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18516 cat >conftest.$ac_ext <<_ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18522 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18531 rm -f conftest.$ac_objext
18532 if { (ac_try="$ac_compile"
18533 case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_compile") 2>conftest.er1
18540 grep -v '^ *+' conftest.er1 >conftest.err
18542 cat conftest.err >&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } &&
18545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18546 { (case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_try") 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest.$ac_objext'
18556 { (case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561 (eval "$ac_try") 2>&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; }; then
18565 llvm_cv_cxx_visibility_inlines_hidden=yes
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 llvm_cv_cxx_visibility_inlines_hidden=no
18573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18574 CXXFLAGS="$oldcxxflags"
18576 ac_cpp='$CPP $CPPFLAGS'
18577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18583 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18584 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18585 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18586 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18589 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18594 if test "$llvm_cv_link_use_r" = "yes" ; then
18601 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18602 RDYNAMIC="-rdynamic"
18609 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18616 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18618 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18620 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18622 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18624 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18627 ac_config_files="$ac_config_files Makefile.config"
18630 ac_config_files="$ac_config_files llvm.spec"
18633 ac_config_files="$ac_config_files docs/doxygen.cfg"
18636 if test "${clang_src_root}" = ""; then
18637 clang_src_root="$srcdir/tools/clang"
18639 if test -f ${clang_src_root}/README.txt; then
18641 cat >>confdefs.h <<_ACEOF
18642 #define CLANG_LIBDIR_SUFFIX ""
18646 configh="include/clang/Config/config.h"
18647 doxy="docs/doxygen.cfg"
18648 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18650 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18654 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18657 test "x$program_prefix" = "xNONE" && program_prefix=""
18661 ac_config_commands="$ac_config_commands setup"
18663 ac_config_commands="$ac_config_commands Makefile"
18666 ac_config_commands="$ac_config_commands Makefile.common"
18669 ac_config_commands="$ac_config_commands examples/Makefile"
18672 ac_config_commands="$ac_config_commands lib/Makefile"
18675 ac_config_commands="$ac_config_commands test/Makefile"
18678 ac_config_commands="$ac_config_commands test/Makefile.tests"
18681 ac_config_commands="$ac_config_commands unittests/Makefile"
18684 ac_config_commands="$ac_config_commands tools/Makefile"
18687 ac_config_commands="$ac_config_commands utils/Makefile"
18690 ac_config_commands="$ac_config_commands projects/Makefile"
18693 ac_config_commands="$ac_config_commands bindings/Makefile"
18696 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18700 cat >confcache <<\_ACEOF
18701 # This file is a shell script that caches the results of configure
18702 # tests run on this system so they can be shared between configure
18703 # scripts and configure runs, see configure's option --config-cache.
18704 # It is not useful on other systems. If it contains results you don't
18705 # want to keep, you may remove or edit it.
18707 # config.status only pays attention to the cache file if you give it
18708 # the --recheck option to rerun configure.
18710 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18711 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18712 # following values.
18716 # The following way of writing the cache mishandles newlines in values,
18717 # but we know of no workaround that is simple, portable, and efficient.
18718 # So, we kill variables containing newlines.
18719 # Ultrix sh set writes to stderr and can't be redirected directly,
18720 # and sets the high bit in the cache file unless we assign to the vars.
18722 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18723 eval ac_val=\$$ac_var
18727 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18728 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18731 _ | IFS | as_nl) ;; #(
18732 *) $as_unset $ac_var ;;
18738 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18739 *${as_nl}ac_space=\ *)
18740 # `set' does not quote correctly, so add quotes (double-quote
18741 # substitution turns \\\\ into \\, and sed turns \\ into \).
18744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18747 # `set' quotes correctly as required by POSIX, so do not add quotes.
18748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18757 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18759 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18761 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18762 if test -w "$cache_file"; then
18763 test "x$cache_file" != "x/dev/null" &&
18764 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18765 echo "$as_me: updating cache $cache_file" >&6;}
18766 cat confcache >$cache_file
18768 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18769 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18774 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18775 # Let make expand exec_prefix.
18776 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18778 DEFS=-DHAVE_CONFIG_H
18782 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18783 # 1. Remove the extension, and $U if already installed.
18784 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18785 ac_i=`echo "$ac_i" | sed "$ac_script"`
18786 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18787 # will be set to the directory where LIBOBJS objects are built.
18788 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18789 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18791 LIBOBJS=$ac_libobjs
18793 LTLIBOBJS=$ac_ltlibobjs
18797 : ${CONFIG_STATUS=./config.status}
18798 ac_clean_files_save=$ac_clean_files
18799 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18800 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18801 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18802 cat >$CONFIG_STATUS <<_ACEOF
18804 # Generated by $as_me.
18805 # Run this file to recreate the current configuration.
18806 # Compiler output produced by configure, useful for debugging
18807 # configure, is in config.log if it exists.
18810 ac_cs_recheck=false
18812 SHELL=\${CONFIG_SHELL-$SHELL}
18815 cat >>$CONFIG_STATUS <<\_ACEOF
18816 ## --------------------- ##
18817 ## M4sh Initialization. ##
18818 ## --------------------- ##
18820 # Be Bourne compatible
18821 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18824 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18825 # is contrary to our usage. Disable this feature.
18826 alias -g '${1+"$@"}'='"$@"'
18827 setopt NO_GLOB_SUBST
18829 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18831 BIN_SH=xpg4; export BIN_SH # for Tru64
18832 DUALCASE=1; export DUALCASE # for MKS sh
18836 # Avoid depending upon Character Ranges.
18837 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18838 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18839 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18840 as_cr_digits='0123456789'
18841 as_cr_alnum=$as_cr_Letters$as_cr_digits
18843 # The user is always right.
18844 if test "${PATH_SEPARATOR+set}" != set; then
18845 echo "#! /bin/sh" >conf$$.sh
18846 echo "exit 0" >>conf$$.sh
18848 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18856 # Support unset when possible.
18857 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18865 # We need space, tab and new line, in precisely that order. Quoting is
18866 # there to prevent editors from complaining about space-tab.
18867 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18868 # splitting by setting IFS to empty value.)
18873 # Find who we are. Look in the path if we contain no directory separator.
18875 *[\\/]* ) as_myself=$0 ;;
18876 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18877 for as_dir in $PATH
18880 test -z "$as_dir" && as_dir=.
18881 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18887 # We did not find ourselves, most probably we were run as `sh COMMAND'
18888 # in which case we are not to be found in the path.
18889 if test "x$as_myself" = x; then
18892 if test ! -f "$as_myself"; then
18893 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18894 { (exit 1); exit 1; }
18897 # Work around bugs in pre-3.0 UWIN ksh.
18898 for as_var in ENV MAIL MAILPATH
18899 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18907 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18908 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18909 LC_TELEPHONE LC_TIME
18911 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18912 eval $as_var=C; export $as_var
18914 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18918 # Required to use basename.
18919 if expr a : '\(a\)' >/dev/null 2>&1 &&
18920 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18926 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18927 as_basename=basename
18933 # Name of the executable.
18934 as_me=`$as_basename -- "$0" ||
18935 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18936 X"$0" : 'X\(//\)$' \| \
18937 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18939 sed '/^.*\/\([^/][^/]*\)\/*$/{
18958 as_lineno_1=$LINENO
18959 as_lineno_2=$LINENO
18960 test "x$as_lineno_1" != "x$as_lineno_2" &&
18961 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18963 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18964 # uniformly replaced by the line number. The first 'sed' inserts a
18965 # line-number line after each line using $LINENO; the second 'sed'
18966 # does the real work. The second script uses 'N' to pair each
18967 # line-number line with the line containing $LINENO, and appends
18968 # trailing '-' during substitution so that $LINENO is not a special
18969 # case at line end.
18970 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18971 # scripts with optimization help from Paolo Bonzini. Blame Lee
18972 # E. McMahon (1931-1989) for sed's syntax. :-)
18984 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18987 ' >$as_me.lineno &&
18988 chmod +x "$as_me.lineno" ||
18989 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18990 { (exit 1); exit 1; }; }
18992 # Don't try to exec as it changes $[0], causing all sort of problems
18993 # (the dirname of $[0] is not the place where we might find the
18994 # original and so on. Autoconf is especially sensitive to this).
18995 . "./$as_me.lineno"
18996 # Exit status is that of the last command.
19001 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19007 ECHO_C= ECHO_N= ECHO_T=
19008 case `echo -n x` in
19010 case `echo 'x\c'` in
19011 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19018 if expr a : '\(a\)' >/dev/null 2>&1 &&
19019 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19025 rm -f conf$$ conf$$.exe conf$$.file
19026 if test -d conf$$.dir; then
19027 rm -f conf$$.dir/conf$$.file
19033 if ln -s conf$$.file conf$$ 2>/dev/null; then
19035 # ... but there are two gotchas:
19036 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19037 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19038 # In both cases, we have to default to `cp -p'.
19039 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19041 elif ln conf$$.file conf$$ 2>/dev/null; then
19046 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19047 rmdir conf$$.dir 2>/dev/null
19049 if mkdir -p . 2>/dev/null; then
19052 test -d ./-p && rmdir ./-p
19056 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
19057 # systems may use methods other than mode bits to determine executability.
19058 cat >conf$$.file <<_ASEOF
19062 chmod +x conf$$.file
19063 if test -x conf$$.file >/dev/null 2>&1; then
19064 as_executable_p="test -x"
19070 # Sed expression to map a string onto a valid CPP name.
19071 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19073 # Sed expression to map a string onto a valid variable name.
19074 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19079 # Save the log message, to keep $[0] and so on meaningful, and to
19080 # report actual input values of CONFIG_FILES etc. instead of their
19081 # values after options handling.
19083 This file was extended by LLVM $as_me 3.7.0svn, which was
19084 generated by GNU Autoconf 2.60. Invocation command line was
19086 CONFIG_FILES = $CONFIG_FILES
19087 CONFIG_HEADERS = $CONFIG_HEADERS
19088 CONFIG_LINKS = $CONFIG_LINKS
19089 CONFIG_COMMANDS = $CONFIG_COMMANDS
19092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19097 cat >>$CONFIG_STATUS <<_ACEOF
19098 # Files that config.status was made for.
19099 config_files="$ac_config_files"
19100 config_headers="$ac_config_headers"
19101 config_commands="$ac_config_commands"
19105 cat >>$CONFIG_STATUS <<\_ACEOF
19107 \`$as_me' instantiates files from templates according to the
19108 current configuration.
19110 Usage: $0 [OPTIONS] [FILE]...
19112 -h, --help print this help, then exit
19113 -V, --version print version number, then exit
19114 -q, --quiet do not print progress messages
19115 -d, --debug don't remove temporary files
19116 --recheck update $as_me by reconfiguring in the same conditions
19117 --file=FILE[:TEMPLATE]
19118 instantiate the configuration file FILE
19119 --header=FILE[:TEMPLATE]
19120 instantiate the configuration header FILE
19122 Configuration files:
19125 Configuration headers:
19128 Configuration commands:
19131 Report bugs to <bug-autoconf@gnu.org>."
19134 cat >>$CONFIG_STATUS <<_ACEOF
19136 LLVM config.status 3.7.0svn
19137 configured by $0, generated by GNU Autoconf 2.60,
19138 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19140 Copyright (C) 2006 Free Software Foundation, Inc.
19141 This config.status script is free software; the Free Software Foundation
19142 gives unlimited permission to copy, distribute and modify it."
19149 cat >>$CONFIG_STATUS <<\_ACEOF
19150 # If no file are specified by the user, then we need to provide default
19151 # value. By we need to know if files were specified by the user.
19157 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19158 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19169 # Handling of the options.
19170 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19172 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19173 echo "$ac_cs_version"; exit ;;
19174 --debug | --debu | --deb | --de | --d | -d )
19176 --file | --fil | --fi | --f )
19178 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19179 ac_need_defaults=false;;
19180 --header | --heade | --head | --hea )
19182 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19183 ac_need_defaults=false;;
19185 # Conflict between --help and --header
19186 { echo "$as_me: error: ambiguous option: $1
19187 Try \`$0 --help' for more information." >&2
19188 { (exit 1); exit 1; }; };;
19189 --help | --hel | -h )
19190 echo "$ac_cs_usage"; exit ;;
19191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19192 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19195 # This is an error.
19196 -*) { echo "$as_me: error: unrecognized option: $1
19197 Try \`$0 --help' for more information." >&2
19198 { (exit 1); exit 1; }; } ;;
19200 *) ac_config_targets="$ac_config_targets $1"
19201 ac_need_defaults=false ;;
19207 ac_configure_extra_args=
19209 if $ac_cs_silent; then
19211 ac_configure_extra_args="$ac_configure_extra_args --silent"
19215 cat >>$CONFIG_STATUS <<_ACEOF
19216 if \$ac_cs_recheck; then
19217 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19218 CONFIG_SHELL=$SHELL
19219 export CONFIG_SHELL
19220 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19224 cat >>$CONFIG_STATUS <<\_ACEOF
19228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19229 ## Running $as_me. ##
19235 cat >>$CONFIG_STATUS <<_ACEOF
19239 llvm_src="${srcdir}"
19243 cat >>$CONFIG_STATUS <<\_ACEOF
19245 # Handling of arguments.
19246 for ac_config_target in $ac_config_targets
19248 case $ac_config_target in
19249 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19250 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19251 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19252 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19253 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19254 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19255 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19256 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19257 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19258 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19259 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19260 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19261 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19262 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19263 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19264 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19265 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19266 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19267 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19268 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19269 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19270 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19271 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19272 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19273 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19274 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19276 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19277 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19278 { (exit 1); exit 1; }; };;
19283 # If the user did not use the arguments to specify the items to instantiate,
19284 # then the envvar interface is used. Set only those that are not.
19285 # We use the long form for the default assignment because of an extremely
19286 # bizarre bug on SunOS 4.1.3.
19287 if $ac_need_defaults; then
19288 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19289 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19290 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19293 # Have a temporary directory for convenience. Make it in the build tree
19294 # simply because there is no reason against having it here, and in addition,
19295 # creating and moving files from /tmp can sometimes cause problems.
19296 # Hook for its removal unless debugging.
19297 # Note that there is a small window in which the directory will not be cleaned:
19298 # after its creation but before its name has been assigned to `$tmp'.
19302 trap 'exit_status=$?
19303 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19305 trap '{ (exit 1); exit 1; }' 1 2 13 15
19307 # Create a (secure) tmp directory for tmp files.
19310 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19311 test -n "$tmp" && test -d "$tmp"
19314 tmp=./conf$$-$RANDOM
19315 (umask 077 && mkdir "$tmp")
19318 echo "$me: cannot create a temporary directory in ." >&2
19319 { (exit 1); exit 1; }
19323 # Set up the sed scripts for CONFIG_FILES section.
19326 # No need to generate the scripts if there are no CONFIG_FILES.
19327 # This happens for instance when ./config.status config.h
19328 if test -n "$CONFIG_FILES"; then
19335 for ac_last_try in false false false false false :; do
19336 cat >conf$$subs.sed <<_ACEOF
19337 SHELL!$SHELL$ac_delim
19338 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19339 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19340 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19341 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19342 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19343 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19344 exec_prefix!$exec_prefix$ac_delim
19345 prefix!$prefix$ac_delim
19346 program_transform_name!$program_transform_name$ac_delim
19347 bindir!$bindir$ac_delim
19348 sbindir!$sbindir$ac_delim
19349 libexecdir!$libexecdir$ac_delim
19350 datarootdir!$datarootdir$ac_delim
19351 datadir!$datadir$ac_delim
19352 sysconfdir!$sysconfdir$ac_delim
19353 sharedstatedir!$sharedstatedir$ac_delim
19354 localstatedir!$localstatedir$ac_delim
19355 includedir!$includedir$ac_delim
19356 oldincludedir!$oldincludedir$ac_delim
19357 docdir!$docdir$ac_delim
19358 infodir!$infodir$ac_delim
19359 htmldir!$htmldir$ac_delim
19360 dvidir!$dvidir$ac_delim
19361 pdfdir!$pdfdir$ac_delim
19362 psdir!$psdir$ac_delim
19363 libdir!$libdir$ac_delim
19364 localedir!$localedir$ac_delim
19365 mandir!$mandir$ac_delim
19366 DEFS!$DEFS$ac_delim
19367 ECHO_C!$ECHO_C$ac_delim
19368 ECHO_N!$ECHO_N$ac_delim
19369 ECHO_T!$ECHO_T$ac_delim
19370 LIBS!$LIBS$ac_delim
19371 build_alias!$build_alias$ac_delim
19372 host_alias!$host_alias$ac_delim
19373 target_alias!$target_alias$ac_delim
19374 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19375 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19376 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19377 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19378 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19380 CFLAGS!$CFLAGS$ac_delim
19381 LDFLAGS!$LDFLAGS$ac_delim
19382 CPPFLAGS!$CPPFLAGS$ac_delim
19383 ac_ct_CC!$ac_ct_CC$ac_delim
19384 EXEEXT!$EXEEXT$ac_delim
19385 OBJEXT!$OBJEXT$ac_delim
19387 CXXFLAGS!$CXXFLAGS$ac_delim
19388 ac_ct_CXX!$ac_ct_CXX$ac_delim
19390 subdirs!$subdirs$ac_delim
19391 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19392 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19393 build!$build$ac_delim
19394 build_cpu!$build_cpu$ac_delim
19395 build_vendor!$build_vendor$ac_delim
19396 build_os!$build_os$ac_delim
19397 host!$host$ac_delim
19398 host_cpu!$host_cpu$ac_delim
19399 host_vendor!$host_vendor$ac_delim
19400 host_os!$host_os$ac_delim
19401 target!$target$ac_delim
19402 target_cpu!$target_cpu$ac_delim
19403 target_vendor!$target_vendor$ac_delim
19404 target_os!$target_os$ac_delim
19406 HOST_OS!$HOST_OS$ac_delim
19407 TARGET_OS!$TARGET_OS$ac_delim
19408 LINKALL!$LINKALL$ac_delim
19409 NOLINKALL!$NOLINKALL$ac_delim
19410 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19411 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19412 ARCH!$ARCH$ac_delim
19413 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19414 HOST_ARCH!$HOST_ARCH$ac_delim
19415 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19416 BUILD_CC!$BUILD_CC$ac_delim
19417 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19418 BUILD_CXX!$BUILD_CXX$ac_delim
19419 CVSBUILD!$CVSBUILD$ac_delim
19420 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19421 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19422 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19423 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19424 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19425 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19426 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19427 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19428 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19429 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19430 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19431 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19432 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19433 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19436 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19438 elif $ac_last_try; then
19439 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19440 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19441 { (exit 1); exit 1; }; }
19443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19447 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19448 if test -n "$ac_eof"; then
19449 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19450 ac_eof=`expr $ac_eof + 1`
19453 cat >>$CONFIG_STATUS <<_ACEOF
19454 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19455 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19458 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19459 s/^/s,@/; s/!/@,|#_!!_#|/
19462 s/'"$ac_delim"'$/,g/; t
19464 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19465 ' >>$CONFIG_STATUS <conf$$subs.sed
19466 rm -f conf$$subs.sed
19467 cat >>$CONFIG_STATUS <<_ACEOF
19473 for ac_last_try in false false false false false :; do
19474 cat >conf$$subs.sed <<_ACEOF
19475 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19477 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19478 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19479 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19480 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19481 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19482 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19483 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19484 ENABLE_PIC!$ENABLE_PIC$ac_delim
19485 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19486 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19487 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19488 ALL_TARGETS!$ALL_TARGETS$ac_delim
19489 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19490 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19491 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19492 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19493 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19494 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19495 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19496 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19497 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19498 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19499 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19500 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19501 ifGNUmake!$ifGNUmake$ac_delim
19502 LN_S!$LN_S$ac_delim
19506 DATE!$DATE$ac_delim
19507 FIND!$FIND$ac_delim
19508 GREP!$GREP$ac_delim
19509 MKDIR!$MKDIR$ac_delim
19511 RANLIB!$RANLIB$ac_delim
19516 BINPWD!$BINPWD$ac_delim
19518 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19519 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19520 INSTALL_DATA!$INSTALL_DATA$ac_delim
19521 BZIP2!$BZIP2$ac_delim
19523 DOXYGEN!$DOXYGEN$ac_delim
19524 GROFF!$GROFF$ac_delim
19525 GZIPBIN!$GZIPBIN$ac_delim
19526 PDFROFF!$PDFROFF$ac_delim
19529 OCAMLFIND!$OCAMLFIND$ac_delim
19531 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19532 EGREP!$EGREP$ac_delim
19533 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19534 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19535 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19536 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19537 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19538 NO_COMMENT!$NO_COMMENT$ac_delim
19539 PYTHON!$PYTHON$ac_delim
19540 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19541 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19542 USE_OPROFILE!$USE_OPROFILE$ac_delim
19543 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19544 XML2CONFIG!$XML2CONFIG$ac_delim
19545 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19546 LIBXML2_INC!$LIBXML2_INC$ac_delim
19547 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19548 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19549 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19550 MMAP_FILE!$MMAP_FILE$ac_delim
19551 SHLIBEXT!$SHLIBEXT$ac_delim
19552 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19553 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19554 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19555 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19556 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19557 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19558 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19559 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19560 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19561 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19562 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19563 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19564 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19565 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19566 RPATH!$RPATH$ac_delim
19567 RDYNAMIC!$RDYNAMIC$ac_delim
19568 program_prefix!$program_prefix$ac_delim
19569 LIBOBJS!$LIBOBJS$ac_delim
19570 LTLIBOBJS!$LTLIBOBJS$ac_delim
19573 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
19575 elif $ac_last_try; then
19576 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19577 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19578 { (exit 1); exit 1; }; }
19580 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19584 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19585 if test -n "$ac_eof"; then
19586 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19587 ac_eof=`expr $ac_eof + 1`
19590 cat >>$CONFIG_STATUS <<_ACEOF
19591 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19592 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19595 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19596 s/^/s,@/; s/!/@,|#_!!_#|/
19599 s/'"$ac_delim"'$/,g/; t
19601 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19602 ' >>$CONFIG_STATUS <conf$$subs.sed
19603 rm -f conf$$subs.sed
19604 cat >>$CONFIG_STATUS <<_ACEOF
19609 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19610 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19611 # trailing colons and then remove the whole line if VPATH becomes empty
19612 # (actually we leave an empty line to preserve line numbers).
19613 if test "x$srcdir" = x.; then
19614 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19615 s/:*\$(srcdir):*/:/
19616 s/:*\${srcdir}:*/:/
19618 s/^\([^=]*=[ ]*\):*/\1/
19624 cat >>$CONFIG_STATUS <<\_ACEOF
19625 fi # test -n "$CONFIG_FILES"
19628 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19631 :[FHLC]) ac_mode=$ac_tag; continue;;
19633 case $ac_mode$ac_tag in
19635 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19636 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19637 { (exit 1); exit 1; }; };;
19638 :[FH]-) ac_tag=-:-;;
19639 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19656 -) ac_f="$tmp/stdin";;
19657 *) # Look for the file first in the build tree, then in the source tree
19658 # (if the path is not absolute). The absolute path cannot be DOS-style,
19659 # because $ac_f cannot contain `:'.
19663 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19665 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19666 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19667 { (exit 1); exit 1; }; };;
19669 ac_file_inputs="$ac_file_inputs $ac_f"
19672 # Let's still pretend it is `configure' which instantiates (i.e., don't
19673 # use $as_me), people would be surprised to read:
19674 # /* config.h. Generated by config.status. */
19675 configure_input="Generated from "`IFS=:
19676 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19677 if test x"$ac_file" != x-; then
19678 configure_input="$ac_file. $configure_input"
19679 { echo "$as_me:$LINENO: creating $ac_file" >&5
19680 echo "$as_me: creating $ac_file" >&6;}
19684 *:-:* | *:-) cat >"$tmp/stdin";;
19689 ac_dir=`$as_dirname -- "$ac_file" ||
19690 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19691 X"$ac_file" : 'X\(//\)[^/]' \| \
19692 X"$ac_file" : 'X\(//\)$' \| \
19693 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19699 /^X\(\/\/\)[^/].*/{
19714 -*) as_dir=./$as_dir;;
19716 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19720 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19721 *) as_qdir=$as_dir;;
19723 as_dirs="'$as_qdir' $as_dirs"
19724 as_dir=`$as_dirname -- "$as_dir" ||
19725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19726 X"$as_dir" : 'X\(//\)[^/]' \| \
19727 X"$as_dir" : 'X\(//\)$' \| \
19728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19734 /^X\(\/\/\)[^/].*/{
19747 test -d "$as_dir" && break
19749 test -z "$as_dirs" || eval "mkdir $as_dirs"
19750 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19751 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19752 { (exit 1); exit 1; }; }; }
19756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19758 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19759 # A ".." for each directory in $ac_dir_suffix.
19760 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19761 case $ac_top_builddir_sub in
19762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19766 ac_abs_top_builddir=$ac_pwd
19767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19768 # for backward compatibility:
19769 ac_top_builddir=$ac_top_build_prefix
19772 .) # We are building in place.
19774 ac_top_srcdir=$ac_top_builddir_sub
19775 ac_abs_top_srcdir=$ac_pwd ;;
19776 [\\/]* | ?:[\\/]* ) # Absolute name.
19777 ac_srcdir=$srcdir$ac_dir_suffix;
19778 ac_top_srcdir=$srcdir
19779 ac_abs_top_srcdir=$srcdir ;;
19780 *) # Relative name.
19781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19782 ac_top_srcdir=$ac_top_build_prefix$srcdir
19783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19795 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19796 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19800 cat >>$CONFIG_STATUS <<\_ACEOF
19801 # If the template does not know about datarootdir, expand it.
19802 # FIXME: This hack should be removed a few years after 2.60.
19803 ac_datarootdir_hack=; ac_datarootdir_seen=
19805 case `sed -n '/datarootdir/ {
19814 ' $ac_file_inputs` in
19815 *datarootdir*) ac_datarootdir_seen=yes;;
19816 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19817 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19818 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19820 cat >>$CONFIG_STATUS <<_ACEOF
19821 ac_datarootdir_hack='
19822 s&@datadir@&$datadir&g
19823 s&@docdir@&$docdir&g
19824 s&@infodir@&$infodir&g
19825 s&@localedir@&$localedir&g
19826 s&@mandir@&$mandir&g
19827 s&\\\${datarootdir}&$datarootdir&g' ;;
19831 # Neutralize VPATH when `$srcdir' = `.'.
19832 # Shell code in configure.ac might set extrasub.
19833 # FIXME: do we really want to maintain this feature?
19834 cat >>$CONFIG_STATUS <<_ACEOF
19838 cat >>$CONFIG_STATUS <<\_ACEOF
19840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19841 s&@configure_input@&$configure_input&;t t
19842 s&@top_builddir@&$ac_top_builddir_sub&;t t
19843 s&@srcdir@&$ac_srcdir&;t t
19844 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19845 s&@top_srcdir@&$ac_top_srcdir&;t t
19846 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19847 s&@builddir@&$ac_builddir&;t t
19848 s&@abs_builddir@&$ac_abs_builddir&;t t
19849 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19850 s&@INSTALL@&$ac_INSTALL&;t t
19851 $ac_datarootdir_hack
19852 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
19854 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19855 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19856 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19857 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19858 which seems to be undefined. Please make sure it is defined." >&5
19859 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19860 which seems to be undefined. Please make sure it is defined." >&2;}
19864 -) cat "$tmp/out"; rm -f "$tmp/out";;
19865 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19874 # Transform confdefs.h into a sed script `conftest.defines', that
19875 # substitutes the proper values into config.h.in to produce config.h.
19876 rm -f conftest.defines conftest.tail
19877 # First, append a space to every undef/define line, to ease matching.
19878 echo 's/$/ /' >conftest.defines
19879 # Then, protect against being on the right side of a sed subst, or in
19880 # an unquoted here document, in config.status. If some macros were
19881 # called several times there might be several #defines for the same
19882 # symbol, which is useless. But do not sort them, since the last
19883 # AC_DEFINE must be honored.
19884 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19885 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19886 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19887 # PARAMS is the parameter list in the macro definition--in most cases, it's
19888 # just an empty string.
19889 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19890 ac_dB='\\)[ (].*,\\1define\\2'
19898 s/^[ ]*#[ ]*define[ ][ ]*//
19903 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19904 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19905 ' >>conftest.defines
19907 # Remove the space that was appended to ease matching.
19908 # Then replace #undef with comments. This is necessary, for
19909 # example, in the case of _POSIX_SOURCE, which is predefined and required
19910 # on some systems where configure will not decide to define it.
19911 # (The regexp can be short, since the line contains either #define or #undef.)
19913 s,^[ #]*u.*,/* & */,' >>conftest.defines
19915 # Break up conftest.defines:
19916 ac_max_sed_lines=50
19918 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19919 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19920 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19922 ac_in='$ac_file_inputs'
19923 ac_out='"$tmp/out1"'
19924 ac_nxt='"$tmp/out2"'
19928 # Write a here document:
19929 cat >>$CONFIG_STATUS <<_ACEOF
19930 # First, check the format of the line:
19931 cat >"\$tmp/defines.sed" <<\\CEOF
19932 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19933 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19937 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19939 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19940 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19941 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19942 grep . conftest.tail >/dev/null || break
19943 rm -f conftest.defines
19944 mv conftest.tail conftest.defines
19946 rm -f conftest.defines conftest.tail
19948 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19949 cat >>$CONFIG_STATUS <<\_ACEOF
19950 if test x"$ac_file" != x-; then
19951 echo "/* $configure_input */" >"$tmp/config.h"
19952 cat "$ac_result" >>"$tmp/config.h"
19953 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19954 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19955 echo "$as_me: $ac_file is unchanged" >&6;}
19958 mv "$tmp/config.h" $ac_file
19961 echo "/* $configure_input */"
19967 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19968 echo "$as_me: executing $ac_file commands" >&6;}
19973 case $ac_file$ac_mode in
19974 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19975 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19976 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19977 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19978 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19979 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19980 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19981 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19982 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19983 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19984 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19985 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19986 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19987 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19988 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19989 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19990 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19992 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19994 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19996 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20003 { (exit 0); exit 0; }
20005 chmod +x $CONFIG_STATUS
20006 ac_clean_files=$ac_clean_files_save
20009 # configure is writing to config.log, and then calls config.status.
20010 # config.status does its own redirection, appending to config.log.
20011 # Unfortunately, on DOS this fails, as config.log is still kept open
20012 # by configure, so config.status won't be able to write to it; its
20013 # output is simply discarded. So we exec the FD to /dev/null,
20014 # effectively closing config.log, so it can be properly (re)opened and
20015 # appended to by config.status. When coming back to configure, we
20016 # need to make the FD available again.
20017 if test "$no_create" != yes; then
20019 ac_config_status_args=
20020 test "$silent" = yes &&
20021 ac_config_status_args="$ac_config_status_args --quiet"
20023 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20025 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20026 # would make configure fail if this is the last instruction.
20027 $ac_cs_success || { (exit 1); exit 1; }
20031 # CONFIG_SUBDIRS section.
20033 if test "$no_recursion" != yes; then
20035 # Remove --cache-file and --srcdir arguments so they do not pile up.
20036 ac_sub_configure_args=
20038 eval "set x $ac_configure_args"
20042 if test -n "$ac_prev"; then
20047 -cache-file | --cache-file | --cache-fil | --cache-fi \
20048 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20049 ac_prev=cache_file ;;
20050 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20051 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20054 --config-cache | -C)
20056 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20058 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20066 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20068 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20072 # Always prepend --prefix to ensure using the same prefix
20073 # in subdir configurations.
20074 ac_arg="--prefix=$prefix"
20076 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20078 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20081 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20083 # Do not complain, so a configure script can configure whichever
20084 # parts of a large source tree are present.
20085 test -d "$srcdir/$ac_dir" || continue
20087 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20088 echo "$as_me:$LINENO: $ac_msg" >&5
20092 -*) as_dir=./$as_dir;;
20094 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20098 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20099 *) as_qdir=$as_dir;;
20101 as_dirs="'$as_qdir' $as_dirs"
20102 as_dir=`$as_dirname -- "$as_dir" ||
20103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20104 X"$as_dir" : 'X\(//\)[^/]' \| \
20105 X"$as_dir" : 'X\(//\)$' \| \
20106 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20112 /^X\(\/\/\)[^/].*/{
20125 test -d "$as_dir" && break
20127 test -z "$as_dirs" || eval "mkdir $as_dirs"
20128 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20129 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20130 { (exit 1); exit 1; }; }; }
20134 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20136 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20137 # A ".." for each directory in $ac_dir_suffix.
20138 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20139 case $ac_top_builddir_sub in
20140 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20141 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20144 ac_abs_top_builddir=$ac_pwd
20145 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20146 # for backward compatibility:
20147 ac_top_builddir=$ac_top_build_prefix
20150 .) # We are building in place.
20152 ac_top_srcdir=$ac_top_builddir_sub
20153 ac_abs_top_srcdir=$ac_pwd ;;
20154 [\\/]* | ?:[\\/]* ) # Absolute name.
20155 ac_srcdir=$srcdir$ac_dir_suffix;
20156 ac_top_srcdir=$srcdir
20157 ac_abs_top_srcdir=$srcdir ;;
20158 *) # Relative name.
20159 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20160 ac_top_srcdir=$ac_top_build_prefix$srcdir
20161 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20163 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20168 # Check for guested configure; otherwise get Cygnus style configure.
20169 if test -f "$ac_srcdir/configure.gnu"; then
20170 ac_sub_configure=$ac_srcdir/configure.gnu
20171 elif test -f "$ac_srcdir/configure"; then
20172 ac_sub_configure=$ac_srcdir/configure
20173 elif test -f "$ac_srcdir/configure.in"; then
20174 # This should be Cygnus configure.
20175 ac_sub_configure=$ac_aux_dir/configure
20177 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20178 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20182 # The recursion is here.
20183 if test -n "$ac_sub_configure"; then
20184 # Make the cache file name correct relative to the subdirectory.
20185 case $cache_file in
20186 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20187 *) # Relative name.
20188 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20191 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20192 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20193 # The eval makes quoting arguments work.
20194 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20195 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20196 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20197 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20198 { (exit 1); exit 1; }; }