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-2015 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-2015 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-2015 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; }; }
13702 for ac_func in backtrace getcwd
13704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 cat >conftest.$ac_ext <<_ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13718 #define $ac_func innocuous_$ac_func
13720 /* System header to define __stub macros and hopefully few prototypes,
13721 which can conflict with char $ac_func (); below.
13722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13723 <limits.h> exists even on freestanding compilers. */
13726 # include <limits.h>
13728 # include <assert.h>
13733 /* Override any GCC internal prototype to avoid an error.
13734 Use char because int might match the return type of a GCC
13735 builtin and then its argument prototype would still apply. */
13740 /* The GNU C library defines this for functions which it implements
13741 to always fail with ENOSYS. Some functions are actually named
13742 something starting with __ and the normal name is an alias. */
13743 #if defined __stub_$ac_func || defined __stub___$ac_func
13750 return $ac_func ();
13755 rm -f conftest.$ac_objext conftest$ac_exeext
13756 if { (ac_try="$ac_link"
13757 case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_link") 2>conftest.er1
13764 grep -v '^ *+' conftest.er1 >conftest.err
13766 cat conftest.err >&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } &&
13769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13770 { (case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_try") 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try='test -s conftest$ac_exeext'
13780 { (case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_try") 2>&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; }; then
13789 eval "$as_ac_var=yes"
13791 echo "$as_me: failed program was:" >&5
13792 sed 's/^/| /' conftest.$ac_ext >&5
13794 eval "$as_ac_var=no"
13797 rm -f core conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
13800 ac_res=`eval echo '${'$as_ac_var'}'`
13801 { echo "$as_me:$LINENO: result: $ac_res" >&5
13802 echo "${ECHO_T}$ac_res" >&6; }
13803 if test `eval echo '${'$as_ac_var'}'` = yes; then
13804 cat >>confdefs.h <<_ACEOF
13805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13816 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
13818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 cat >conftest.$ac_ext <<_ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13832 #define $ac_func innocuous_$ac_func
13834 /* System header to define __stub macros and hopefully few prototypes,
13835 which can conflict with char $ac_func (); below.
13836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13837 <limits.h> exists even on freestanding compilers. */
13840 # include <limits.h>
13842 # include <assert.h>
13847 /* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13854 /* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
13857 #if defined __stub_$ac_func || defined __stub___$ac_func
13864 return $ac_func ();
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (ac_try="$ac_link"
13871 case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_link") 2>conftest.er1
13878 grep -v '^ *+' conftest.er1 >conftest.err
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } &&
13883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13884 { (case "(($ac_try" in
13885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889 (eval "$ac_try") 2>&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; } &&
13893 { ac_try='test -s conftest$ac_exeext'
13894 { (case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval "$ac_try") 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; }; then
13903 eval "$as_ac_var=yes"
13905 echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13908 eval "$as_ac_var=no"
13911 rm -f core conftest.err conftest.$ac_objext \
13912 conftest$ac_exeext conftest.$ac_ext
13914 ac_res=`eval echo '${'$as_ac_var'}'`
13915 { echo "$as_me:$LINENO: result: $ac_res" >&5
13916 echo "${ECHO_T}$ac_res" >&6; }
13917 if test `eval echo '${'$as_ac_var'}'` = yes; then
13918 cat >>confdefs.h <<_ACEOF
13919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13928 for ac_func in isatty mkdtemp mkstemp
13930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13931 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13933 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 cat >conftest.$ac_ext <<_ACEOF
13939 cat confdefs.h >>conftest.$ac_ext
13940 cat >>conftest.$ac_ext <<_ACEOF
13941 /* end confdefs.h. */
13942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13944 #define $ac_func innocuous_$ac_func
13946 /* System header to define __stub macros and hopefully few prototypes,
13947 which can conflict with char $ac_func (); below.
13948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13949 <limits.h> exists even on freestanding compilers. */
13952 # include <limits.h>
13954 # include <assert.h>
13959 /* Override any GCC internal prototype to avoid an error.
13960 Use char because int might match the return type of a GCC
13961 builtin and then its argument prototype would still apply. */
13966 /* The GNU C library defines this for functions which it implements
13967 to always fail with ENOSYS. Some functions are actually named
13968 something starting with __ and the normal name is an alias. */
13969 #if defined __stub_$ac_func || defined __stub___$ac_func
13976 return $ac_func ();
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (ac_try="$ac_link"
13983 case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_link") 2>conftest.er1
13990 grep -v '^ *+' conftest.er1 >conftest.err
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } &&
13995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13996 { (case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
14000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_try") 2>&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; } &&
14005 { ac_try='test -s conftest$ac_exeext'
14006 { (case "(($ac_try" in
14007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14008 *) ac_try_echo=$ac_try;;
14010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14011 (eval "$ac_try") 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 eval "$as_ac_var=yes"
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14020 eval "$as_ac_var=no"
14023 rm -f core conftest.err conftest.$ac_objext \
14024 conftest$ac_exeext conftest.$ac_ext
14026 ac_res=`eval echo '${'$as_ac_var'}'`
14027 { echo "$as_me:$LINENO: result: $ac_res" >&5
14028 echo "${ECHO_T}$ac_res" >&6; }
14029 if test `eval echo '${'$as_ac_var'}'` = yes; then
14030 cat >>confdefs.h <<_ACEOF
14031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14043 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 cat >conftest.$ac_ext <<_ACEOF
14054 cat confdefs.h >>conftest.$ac_ext
14055 cat >>conftest.$ac_ext <<_ACEOF
14056 /* end confdefs.h. */
14057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14059 #define $ac_func innocuous_$ac_func
14061 /* System header to define __stub macros and hopefully few prototypes,
14062 which can conflict with char $ac_func (); below.
14063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14064 <limits.h> exists even on freestanding compilers. */
14067 # include <limits.h>
14069 # include <assert.h>
14074 /* Override any GCC internal prototype to avoid an error.
14075 Use char because int might match the return type of a GCC
14076 builtin and then its argument prototype would still apply. */
14081 /* The GNU C library defines this for functions which it implements
14082 to always fail with ENOSYS. Some functions are actually named
14083 something starting with __ and the normal name is an alias. */
14084 #if defined __stub_$ac_func || defined __stub___$ac_func
14091 return $ac_func ();
14096 rm -f conftest.$ac_objext conftest$ac_exeext
14097 if { (ac_try="$ac_link"
14098 case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_link") 2>conftest.er1
14105 grep -v '^ *+' conftest.er1 >conftest.err
14107 cat conftest.err >&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } &&
14110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14111 { (case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116 (eval "$ac_try") 2>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; } &&
14120 { ac_try='test -s conftest$ac_exeext'
14121 { (case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_try") 2>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 eval "$as_ac_var=yes"
14132 echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14135 eval "$as_ac_var=no"
14138 rm -f core conftest.err conftest.$ac_objext \
14139 conftest$ac_exeext conftest.$ac_ext
14141 ac_res=`eval echo '${'$as_ac_var'}'`
14142 { echo "$as_me:$LINENO: result: $ac_res" >&5
14143 echo "${ECHO_T}$ac_res" >&6; }
14144 if test `eval echo '${'$as_ac_var'}'` = yes; then
14145 cat >>confdefs.h <<_ACEOF
14146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14155 for ac_func in strerror strerror_r setenv
14157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 cat >conftest.$ac_ext <<_ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14171 #define $ac_func innocuous_$ac_func
14173 /* System header to define __stub macros and hopefully few prototypes,
14174 which can conflict with char $ac_func (); below.
14175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14176 <limits.h> exists even on freestanding compilers. */
14179 # include <limits.h>
14181 # include <assert.h>
14186 /* Override any GCC internal prototype to avoid an error.
14187 Use char because int might match the return type of a GCC
14188 builtin and then its argument prototype would still apply. */
14193 /* The GNU C library defines this for functions which it implements
14194 to always fail with ENOSYS. Some functions are actually named
14195 something starting with __ and the normal name is an alias. */
14196 #if defined __stub_$ac_func || defined __stub___$ac_func
14203 return $ac_func ();
14208 rm -f conftest.$ac_objext conftest$ac_exeext
14209 if { (ac_try="$ac_link"
14210 case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215 (eval "$ac_link") 2>conftest.er1
14217 grep -v '^ *+' conftest.er1 >conftest.err
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14223 { (case "(($ac_try" in
14224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225 *) ac_try_echo=$ac_try;;
14227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_try") 2>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; } &&
14232 { ac_try='test -s conftest$ac_exeext'
14233 { (case "(($ac_try" in
14234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14238 (eval "$ac_try") 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 eval "$as_ac_var=yes"
14244 echo "$as_me: failed program was:" >&5
14245 sed 's/^/| /' conftest.$ac_ext >&5
14247 eval "$as_ac_var=no"
14250 rm -f core conftest.err conftest.$ac_objext \
14251 conftest$ac_exeext conftest.$ac_ext
14253 ac_res=`eval echo '${'$as_ac_var'}'`
14254 { echo "$as_me:$LINENO: result: $ac_res" >&5
14255 echo "${ECHO_T}$ac_res" >&6; }
14256 if test `eval echo '${'$as_ac_var'}'` = yes; then
14257 cat >>confdefs.h <<_ACEOF
14258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14268 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 cat >conftest.$ac_ext <<_ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h. */
14282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14284 #define $ac_func innocuous_$ac_func
14286 /* System header to define __stub macros and hopefully few prototypes,
14287 which can conflict with char $ac_func (); below.
14288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14289 <limits.h> exists even on freestanding compilers. */
14292 # include <limits.h>
14294 # include <assert.h>
14299 /* Override any GCC internal prototype to avoid an error.
14300 Use char because int might match the return type of a GCC
14301 builtin and then its argument prototype would still apply. */
14306 /* The GNU C library defines this for functions which it implements
14307 to always fail with ENOSYS. Some functions are actually named
14308 something starting with __ and the normal name is an alias. */
14309 #if defined __stub_$ac_func || defined __stub___$ac_func
14316 return $ac_func ();
14321 rm -f conftest.$ac_objext conftest$ac_exeext
14322 if { (ac_try="$ac_link"
14323 case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_link") 2>conftest.er1
14330 grep -v '^ *+' conftest.er1 >conftest.err
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } &&
14335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14336 { (case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_try") 2>&5
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; } &&
14345 { ac_try='test -s conftest$ac_exeext'
14346 { (case "(($ac_try" in
14347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348 *) ac_try_echo=$ac_try;;
14350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14351 (eval "$ac_try") 2>&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; }; then
14355 eval "$as_ac_var=yes"
14357 echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14360 eval "$as_ac_var=no"
14363 rm -f core conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
14366 ac_res=`eval echo '${'$as_ac_var'}'`
14367 { echo "$as_me:$LINENO: result: $ac_res" >&5
14368 echo "${ECHO_T}$ac_res" >&6; }
14369 if test `eval echo '${'$as_ac_var'}'` = yes; then
14370 cat >>confdefs.h <<_ACEOF
14371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14382 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 cat >conftest.$ac_ext <<_ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14398 #define $ac_func innocuous_$ac_func
14400 /* System header to define __stub macros and hopefully few prototypes,
14401 which can conflict with char $ac_func (); below.
14402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14403 <limits.h> exists even on freestanding compilers. */
14406 # include <limits.h>
14408 # include <assert.h>
14413 /* Override any GCC internal prototype to avoid an error.
14414 Use char because int might match the return type of a GCC
14415 builtin and then its argument prototype would still apply. */
14420 /* The GNU C library defines this for functions which it implements
14421 to always fail with ENOSYS. Some functions are actually named
14422 something starting with __ and the normal name is an alias. */
14423 #if defined __stub_$ac_func || defined __stub___$ac_func
14430 return $ac_func ();
14435 rm -f conftest.$ac_objext conftest$ac_exeext
14436 if { (ac_try="$ac_link"
14437 case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_link") 2>conftest.er1
14444 grep -v '^ *+' conftest.er1 >conftest.err
14446 cat conftest.err >&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } &&
14449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14450 { (case "(($ac_try" in
14451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452 *) ac_try_echo=$ac_try;;
14454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14455 (eval "$ac_try") 2>&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; } &&
14459 { ac_try='test -s conftest$ac_exeext'
14460 { (case "(($ac_try" in
14461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462 *) ac_try_echo=$ac_try;;
14464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465 (eval "$ac_try") 2>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; }; then
14469 eval "$as_ac_var=yes"
14471 echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14474 eval "$as_ac_var=no"
14477 rm -f core conftest.err conftest.$ac_objext \
14478 conftest$ac_exeext conftest.$ac_ext
14480 ac_res=`eval echo '${'$as_ac_var'}'`
14481 { echo "$as_me:$LINENO: result: $ac_res" >&5
14482 echo "${ECHO_T}$ac_res" >&6; }
14483 if test `eval echo '${'$as_ac_var'}'` = yes; then
14484 cat >>confdefs.h <<_ACEOF
14485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14493 for ac_func in futimes futimens
14495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 cat >conftest.$ac_ext <<_ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14509 #define $ac_func innocuous_$ac_func
14511 /* System header to define __stub macros and hopefully few prototypes,
14512 which can conflict with char $ac_func (); below.
14513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14514 <limits.h> exists even on freestanding compilers. */
14517 # include <limits.h>
14519 # include <assert.h>
14524 /* Override any GCC internal prototype to avoid an error.
14525 Use char because int might match the return type of a GCC
14526 builtin and then its argument prototype would still apply. */
14531 /* The GNU C library defines this for functions which it implements
14532 to always fail with ENOSYS. Some functions are actually named
14533 something starting with __ and the normal name is an alias. */
14534 #if defined __stub_$ac_func || defined __stub___$ac_func
14541 return $ac_func ();
14546 rm -f conftest.$ac_objext conftest$ac_exeext
14547 if { (ac_try="$ac_link"
14548 case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_link") 2>conftest.er1
14555 grep -v '^ *+' conftest.er1 >conftest.err
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14561 { (case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_try") 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; } &&
14570 { ac_try='test -s conftest$ac_exeext'
14571 { (case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_try") 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 eval "$as_ac_var=yes"
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14585 eval "$as_ac_var=no"
14588 rm -f core conftest.err conftest.$ac_objext \
14589 conftest$ac_exeext conftest.$ac_ext
14591 ac_res=`eval echo '${'$as_ac_var'}'`
14592 { echo "$as_me:$LINENO: result: $ac_res" >&5
14593 echo "${ECHO_T}$ac_res" >&6; }
14594 if test `eval echo '${'$as_ac_var'}'` = yes; then
14595 cat >>confdefs.h <<_ACEOF
14596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14602 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14603 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14604 if test "${llvm_cv_c_printf_a+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14608 ac_cpp='$CPP $CPPFLAGS'
14609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14613 if test "$cross_compiling" = yes; then
14614 llvmac_cv_c_printf_a=no
14616 cat >conftest.$ac_ext <<_ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14625 #include <stdlib.h>
14631 volatile double A, B;
14635 sprintf(Buffer, "%a", A);
14639 if (A != 0x1.999999999999ap-4)
14646 rm -f conftest$ac_exeext
14647 if { (ac_try="$ac_link"
14648 case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_link") 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14657 { (case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_try") 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }; then
14666 llvm_cv_c_printf_a=yes
14668 echo "$as_me: program exited with status $ac_status" >&5
14669 echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14672 ( exit $ac_status )
14673 llvmac_cv_c_printf_a=no
14675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14680 ac_cpp='$CPP $CPPFLAGS'
14681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14686 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14687 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14688 if test "$llvm_cv_c_printf_a" = "yes"; then
14690 cat >>confdefs.h <<\_ACEOF
14691 #define HAVE_PRINTF_A 1
14698 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14699 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14700 if test "${ac_cv_func_rand48+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 ac_cpp='$CXXCPP $CPPFLAGS'
14706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14710 cat >conftest.$ac_ext <<_ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h. */
14716 #include <stdlib.h>
14720 srand48(0);lrand48();drand48();
14725 rm -f conftest.$ac_objext
14726 if { (ac_try="$ac_compile"
14727 case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_compile") 2>conftest.er1
14734 grep -v '^ *+' conftest.er1 >conftest.err
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } &&
14739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14740 { (case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745 (eval "$ac_try") 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; } &&
14749 { ac_try='test -s conftest.$ac_objext'
14750 { (case "(($ac_try" in
14751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752 *) ac_try_echo=$ac_try;;
14754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755 (eval "$ac_try") 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14759 ac_cv_func_rand48=yes
14761 echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14764 ac_cv_func_rand48=no
14767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14769 ac_cpp='$CPP $CPPFLAGS'
14770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14776 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
14777 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
14779 if test "$ac_cv_func_rand48" = "yes" ; then
14781 cat >>confdefs.h <<\_ACEOF
14782 #define HAVE_RAND48 1
14788 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
14789 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
14790 if test "${ac_cv_have_decl_arc4random+set}" = set; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 cat >conftest.$ac_ext <<_ACEOF
14796 cat confdefs.h >>conftest.$ac_ext
14797 cat >>conftest.$ac_ext <<_ACEOF
14798 /* end confdefs.h. */
14799 $ac_includes_default
14804 char *p = (char *) arc4random;
14812 rm -f conftest.$ac_objext
14813 if { (ac_try="$ac_compile"
14814 case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_compile") 2>conftest.er1
14821 grep -v '^ *+' conftest.er1 >conftest.err
14823 cat conftest.err >&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } &&
14826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14827 { (case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832 (eval "$ac_try") 2>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; } &&
14836 { ac_try='test -s conftest.$ac_objext'
14837 { (case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_try") 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846 ac_cv_have_decl_arc4random=yes
14848 echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14851 ac_cv_have_decl_arc4random=no
14854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14856 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
14857 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
14858 if test $ac_cv_have_decl_arc4random = yes; then
14860 cat >>confdefs.h <<_ACEOF
14861 #define HAVE_DECL_ARC4RANDOM 1
14866 cat >>confdefs.h <<_ACEOF
14867 #define HAVE_DECL_ARC4RANDOM 0
14875 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
14876 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
14877 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 cat >conftest.$ac_ext <<_ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14886 $ac_includes_default
14891 char *p = (char *) strerror_s;
14899 rm -f conftest.$ac_objext
14900 if { (ac_try="$ac_compile"
14901 case "(($ac_try" in
14902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903 *) ac_try_echo=$ac_try;;
14905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906 (eval "$ac_compile") 2>conftest.er1
14908 grep -v '^ *+' conftest.er1 >conftest.err
14910 cat conftest.err >&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } &&
14913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14914 { (case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_try") 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; } &&
14923 { ac_try='test -s conftest.$ac_objext'
14924 { (case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_try") 2>&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }; then
14933 ac_cv_have_decl_strerror_s=yes
14935 echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14938 ac_cv_have_decl_strerror_s=no
14941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14943 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
14944 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
14945 if test $ac_cv_have_decl_strerror_s = yes; then
14947 cat >>confdefs.h <<_ACEOF
14948 #define HAVE_DECL_STRERROR_S 1
14953 cat >>confdefs.h <<_ACEOF
14954 #define HAVE_DECL_STRERROR_S 0
14962 if test "$llvm_cv_os_type" = "MingW" ; then
14963 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
14964 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
14965 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 ac_check_lib_save_LIBS=$LIBS
14970 cat >conftest.$ac_ext <<_ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14977 /* Override any GCC internal prototype to avoid an error.
14978 Use char because int might match the return type of a GCC
14979 builtin and then its argument prototype would still apply. */
14992 rm -f conftest.$ac_objext conftest$ac_exeext
14993 if { (ac_try="$ac_link"
14994 case "(($ac_try" in
14995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996 *) ac_try_echo=$ac_try;;
14998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999 (eval "$ac_link") 2>conftest.er1
15001 grep -v '^ *+' conftest.er1 >conftest.err
15003 cat conftest.err >&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15007 { (case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_try") 2>&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; } &&
15016 { ac_try='test -s conftest$ac_exeext'
15017 { (case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_try") 2>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_cv_lib_gcc__alloca=yes
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 ac_cv_lib_gcc__alloca=no
15034 rm -f core conftest.err conftest.$ac_objext \
15035 conftest$ac_exeext conftest.$ac_ext
15036 LIBS=$ac_check_lib_save_LIBS
15038 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15039 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15040 if test $ac_cv_lib_gcc__alloca = yes; then
15042 cat >>confdefs.h <<\_ACEOF
15043 #define HAVE__ALLOCA 1
15048 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15049 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15050 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15051 echo $ECHO_N "(cached) $ECHO_C" >&6
15053 ac_check_lib_save_LIBS=$LIBS
15055 cat >conftest.$ac_ext <<_ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h. */
15062 /* Override any GCC internal prototype to avoid an error.
15063 Use char because int might match the return type of a GCC
15064 builtin and then its argument prototype would still apply. */
15072 return __alloca ();
15077 rm -f conftest.$ac_objext conftest$ac_exeext
15078 if { (ac_try="$ac_link"
15079 case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084 (eval "$ac_link") 2>conftest.er1
15086 grep -v '^ *+' conftest.er1 >conftest.err
15088 cat conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } &&
15091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15092 { (case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_try") 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try='test -s conftest$ac_exeext'
15102 { (case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_try") 2>&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; }; then
15111 ac_cv_lib_gcc___alloca=yes
15113 echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15116 ac_cv_lib_gcc___alloca=no
15119 rm -f core conftest.err conftest.$ac_objext \
15120 conftest$ac_exeext conftest.$ac_ext
15121 LIBS=$ac_check_lib_save_LIBS
15123 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15124 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15125 if test $ac_cv_lib_gcc___alloca = yes; then
15127 cat >>confdefs.h <<\_ACEOF
15128 #define HAVE___ALLOCA 1
15133 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15134 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15135 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 ac_check_lib_save_LIBS=$LIBS
15140 cat >conftest.$ac_ext <<_ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h. */
15147 /* Override any GCC internal prototype to avoid an error.
15148 Use char because int might match the return type of a GCC
15149 builtin and then its argument prototype would still apply. */
15157 return __chkstk ();
15162 rm -f conftest.$ac_objext conftest$ac_exeext
15163 if { (ac_try="$ac_link"
15164 case "(($ac_try" in
15165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15166 *) ac_try_echo=$ac_try;;
15168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15169 (eval "$ac_link") 2>conftest.er1
15171 grep -v '^ *+' conftest.er1 >conftest.err
15173 cat conftest.err >&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
15176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15177 { (case "(($ac_try" in
15178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15179 *) ac_try_echo=$ac_try;;
15181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15182 (eval "$ac_try") 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; } &&
15186 { ac_try='test -s conftest$ac_exeext'
15187 { (case "(($ac_try" in
15188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189 *) ac_try_echo=$ac_try;;
15191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15192 (eval "$ac_try") 2>&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }; then
15196 ac_cv_lib_gcc___chkstk=yes
15198 echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15201 ac_cv_lib_gcc___chkstk=no
15204 rm -f core conftest.err conftest.$ac_objext \
15205 conftest$ac_exeext conftest.$ac_ext
15206 LIBS=$ac_check_lib_save_LIBS
15208 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15209 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15210 if test $ac_cv_lib_gcc___chkstk = yes; then
15212 cat >>confdefs.h <<\_ACEOF
15213 #define HAVE___CHKSTK 1
15218 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15219 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15220 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15223 ac_check_lib_save_LIBS=$LIBS
15225 cat >conftest.$ac_ext <<_ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h. */
15232 /* Override any GCC internal prototype to avoid an error.
15233 Use char because int might match the return type of a GCC
15234 builtin and then its argument prototype would still apply. */
15238 char __chkstk_ms ();
15242 return __chkstk_ms ();
15247 rm -f conftest.$ac_objext conftest$ac_exeext
15248 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15256 grep -v '^ *+' conftest.er1 >conftest.err
15258 cat conftest.err >&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } &&
15261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15262 { (case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_try") 2>&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; } &&
15271 { ac_try='test -s conftest$ac_exeext'
15272 { (case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_try") 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_cv_lib_gcc___chkstk_ms=yes
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 ac_cv_lib_gcc___chkstk_ms=no
15289 rm -f core conftest.err conftest.$ac_objext \
15290 conftest$ac_exeext conftest.$ac_ext
15291 LIBS=$ac_check_lib_save_LIBS
15293 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15294 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15295 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15297 cat >>confdefs.h <<\_ACEOF
15298 #define HAVE___CHKSTK_MS 1
15303 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15304 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15305 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 ac_check_lib_save_LIBS=$LIBS
15310 cat >conftest.$ac_ext <<_ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15317 /* Override any GCC internal prototype to avoid an error.
15318 Use char because int might match the return type of a GCC
15319 builtin and then its argument prototype would still apply. */
15327 return ___chkstk ();
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15341 grep -v '^ *+' conftest.er1 >conftest.err
15343 cat conftest.err >&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } &&
15346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15347 { (case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_try") 2>&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; } &&
15356 { ac_try='test -s conftest$ac_exeext'
15357 { (case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362 (eval "$ac_try") 2>&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; }; then
15366 ac_cv_lib_gcc____chkstk=yes
15368 echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15371 ac_cv_lib_gcc____chkstk=no
15374 rm -f core conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
15376 LIBS=$ac_check_lib_save_LIBS
15378 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15379 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15380 if test $ac_cv_lib_gcc____chkstk = yes; then
15382 cat >>confdefs.h <<\_ACEOF
15383 #define HAVE____CHKSTK 1
15388 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15389 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15390 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 ac_check_lib_save_LIBS=$LIBS
15395 cat >conftest.$ac_ext <<_ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h. */
15402 /* Override any GCC internal prototype to avoid an error.
15403 Use char because int might match the return type of a GCC
15404 builtin and then its argument prototype would still apply. */
15408 char ___chkstk_ms ();
15412 return ___chkstk_ms ();
15417 rm -f conftest.$ac_objext conftest$ac_exeext
15418 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15426 grep -v '^ *+' conftest.er1 >conftest.err
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
15431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15432 { (case "(($ac_try" in
15433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437 (eval "$ac_try") 2>&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try='test -s conftest$ac_exeext'
15442 { (case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_try") 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15451 ac_cv_lib_gcc____chkstk_ms=yes
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15456 ac_cv_lib_gcc____chkstk_ms=no
15459 rm -f core conftest.err conftest.$ac_objext \
15460 conftest$ac_exeext conftest.$ac_ext
15461 LIBS=$ac_check_lib_save_LIBS
15463 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15464 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15465 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15467 cat >>confdefs.h <<\_ACEOF
15468 #define HAVE____CHKSTK_MS 1
15474 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15475 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15476 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15477 echo $ECHO_N "(cached) $ECHO_C" >&6
15479 ac_check_lib_save_LIBS=$LIBS
15481 cat >conftest.$ac_ext <<_ACEOF
15484 cat confdefs.h >>conftest.$ac_ext
15485 cat >>conftest.$ac_ext <<_ACEOF
15486 /* end confdefs.h. */
15488 /* Override any GCC internal prototype to avoid an error.
15489 Use char because int might match the return type of a GCC
15490 builtin and then its argument prototype would still apply. */
15498 return __ashldi3 ();
15503 rm -f conftest.$ac_objext conftest$ac_exeext
15504 if { (ac_try="$ac_link"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510 (eval "$ac_link") 2>conftest.er1
15512 grep -v '^ *+' conftest.er1 >conftest.err
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } &&
15517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15518 { (case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_try") 2>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; } &&
15527 { ac_try='test -s conftest$ac_exeext'
15528 { (case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_try") 2>&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 ac_cv_lib_gcc___ashldi3=yes
15539 echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15542 ac_cv_lib_gcc___ashldi3=no
15545 rm -f core conftest.err conftest.$ac_objext \
15546 conftest$ac_exeext conftest.$ac_ext
15547 LIBS=$ac_check_lib_save_LIBS
15549 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15550 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15551 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15553 cat >>confdefs.h <<\_ACEOF
15554 #define HAVE___ASHLDI3 1
15559 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15560 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15561 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15564 ac_check_lib_save_LIBS=$LIBS
15566 cat >conftest.$ac_ext <<_ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h. */
15573 /* Override any GCC internal prototype to avoid an error.
15574 Use char because int might match the return type of a GCC
15575 builtin and then its argument prototype would still apply. */
15583 return __ashrdi3 ();
15588 rm -f conftest.$ac_objext conftest$ac_exeext
15589 if { (ac_try="$ac_link"
15590 case "(($ac_try" in
15591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_link") 2>conftest.er1
15597 grep -v '^ *+' conftest.er1 >conftest.err
15599 cat conftest.err >&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
15602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15603 { (case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_try") 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; } &&
15612 { ac_try='test -s conftest$ac_exeext'
15613 { (case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_try") 2>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 ac_cv_lib_gcc___ashrdi3=yes
15624 echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15627 ac_cv_lib_gcc___ashrdi3=no
15630 rm -f core conftest.err conftest.$ac_objext \
15631 conftest$ac_exeext conftest.$ac_ext
15632 LIBS=$ac_check_lib_save_LIBS
15634 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15635 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15636 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15638 cat >>confdefs.h <<\_ACEOF
15639 #define HAVE___ASHRDI3 1
15644 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15645 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15646 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15649 ac_check_lib_save_LIBS=$LIBS
15651 cat >conftest.$ac_ext <<_ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15658 /* Override any GCC internal prototype to avoid an error.
15659 Use char because int might match the return type of a GCC
15660 builtin and then its argument prototype would still apply. */
15668 return __divdi3 ();
15673 rm -f conftest.$ac_objext conftest$ac_exeext
15674 if { (ac_try="$ac_link"
15675 case "(($ac_try" in
15676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677 *) ac_try_echo=$ac_try;;
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680 (eval "$ac_link") 2>conftest.er1
15682 grep -v '^ *+' conftest.er1 >conftest.err
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } &&
15687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15688 { (case "(($ac_try" in
15689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_try") 2>&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; } &&
15697 { ac_try='test -s conftest$ac_exeext'
15698 { (case "(($ac_try" in
15699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700 *) ac_try_echo=$ac_try;;
15702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703 (eval "$ac_try") 2>&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 ac_cv_lib_gcc___divdi3=yes
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15712 ac_cv_lib_gcc___divdi3=no
15715 rm -f core conftest.err conftest.$ac_objext \
15716 conftest$ac_exeext conftest.$ac_ext
15717 LIBS=$ac_check_lib_save_LIBS
15719 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15720 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15721 if test $ac_cv_lib_gcc___divdi3 = yes; then
15723 cat >>confdefs.h <<\_ACEOF
15724 #define HAVE___DIVDI3 1
15729 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15730 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15731 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15734 ac_check_lib_save_LIBS=$LIBS
15736 cat >conftest.$ac_ext <<_ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15743 /* Override any GCC internal prototype to avoid an error.
15744 Use char because int might match the return type of a GCC
15745 builtin and then its argument prototype would still apply. */
15753 return __fixdfdi ();
15758 rm -f conftest.$ac_objext conftest$ac_exeext
15759 if { (ac_try="$ac_link"
15760 case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_link") 2>conftest.er1
15767 grep -v '^ *+' conftest.er1 >conftest.err
15769 cat conftest.err >&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } &&
15772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15773 { (case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_try") 2>&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; } &&
15782 { ac_try='test -s conftest$ac_exeext'
15783 { (case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_try") 2>&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; }; then
15792 ac_cv_lib_gcc___fixdfdi=yes
15794 echo "$as_me: failed program was:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15797 ac_cv_lib_gcc___fixdfdi=no
15800 rm -f core conftest.err conftest.$ac_objext \
15801 conftest$ac_exeext conftest.$ac_ext
15802 LIBS=$ac_check_lib_save_LIBS
15804 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
15805 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
15806 if test $ac_cv_lib_gcc___fixdfdi = yes; then
15808 cat >>confdefs.h <<\_ACEOF
15809 #define HAVE___FIXDFDI 1
15814 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15815 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15816 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15819 ac_check_lib_save_LIBS=$LIBS
15821 cat >conftest.$ac_ext <<_ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15828 /* Override any GCC internal prototype to avoid an error.
15829 Use char because int might match the return type of a GCC
15830 builtin and then its argument prototype would still apply. */
15838 return __fixsfdi ();
15843 rm -f conftest.$ac_objext conftest$ac_exeext
15844 if { (ac_try="$ac_link"
15845 case "(($ac_try" in
15846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847 *) ac_try_echo=$ac_try;;
15849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850 (eval "$ac_link") 2>conftest.er1
15852 grep -v '^ *+' conftest.er1 >conftest.err
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } &&
15857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15858 { (case "(($ac_try" in
15859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860 *) ac_try_echo=$ac_try;;
15862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863 (eval "$ac_try") 2>&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; } &&
15867 { ac_try='test -s conftest$ac_exeext'
15868 { (case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_try") 2>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 ac_cv_lib_gcc___fixsfdi=yes
15879 echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 ac_cv_lib_gcc___fixsfdi=no
15885 rm -f core conftest.err conftest.$ac_objext \
15886 conftest$ac_exeext conftest.$ac_ext
15887 LIBS=$ac_check_lib_save_LIBS
15889 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
15890 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
15891 if test $ac_cv_lib_gcc___fixsfdi = yes; then
15893 cat >>confdefs.h <<\_ACEOF
15894 #define HAVE___FIXSFDI 1
15899 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
15900 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
15901 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
15902 echo $ECHO_N "(cached) $ECHO_C" >&6
15904 ac_check_lib_save_LIBS=$LIBS
15906 cat >conftest.$ac_ext <<_ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15913 /* Override any GCC internal prototype to avoid an error.
15914 Use char because int might match the return type of a GCC
15915 builtin and then its argument prototype would still apply. */
15919 char __floatdidf ();
15923 return __floatdidf ();
15928 rm -f conftest.$ac_objext conftest$ac_exeext
15929 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15937 grep -v '^ *+' conftest.er1 >conftest.err
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15943 { (case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_try") 2>&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try='test -s conftest$ac_exeext'
15953 { (case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_try") 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 ac_cv_lib_gcc___floatdidf=yes
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15967 ac_cv_lib_gcc___floatdidf=no
15970 rm -f core conftest.err conftest.$ac_objext \
15971 conftest$ac_exeext conftest.$ac_ext
15972 LIBS=$ac_check_lib_save_LIBS
15974 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
15975 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
15976 if test $ac_cv_lib_gcc___floatdidf = yes; then
15978 cat >>confdefs.h <<\_ACEOF
15979 #define HAVE___FLOATDIDF 1
15984 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
15985 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
15986 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 ac_check_lib_save_LIBS=$LIBS
15991 cat >conftest.$ac_ext <<_ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h. */
15998 /* Override any GCC internal prototype to avoid an error.
15999 Use char because int might match the return type of a GCC
16000 builtin and then its argument prototype would still apply. */
16008 return __lshrdi3 ();
16013 rm -f conftest.$ac_objext conftest$ac_exeext
16014 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16022 grep -v '^ *+' conftest.er1 >conftest.err
16024 cat conftest.err >&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } &&
16027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16028 { (case "(($ac_try" in
16029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030 *) ac_try_echo=$ac_try;;
16032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033 (eval "$ac_try") 2>&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; } &&
16037 { ac_try='test -s conftest$ac_exeext'
16038 { (case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_try") 2>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ac_cv_lib_gcc___lshrdi3=yes
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16052 ac_cv_lib_gcc___lshrdi3=no
16055 rm -f core conftest.err conftest.$ac_objext \
16056 conftest$ac_exeext conftest.$ac_ext
16057 LIBS=$ac_check_lib_save_LIBS
16059 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16060 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16061 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16063 cat >>confdefs.h <<\_ACEOF
16064 #define HAVE___LSHRDI3 1
16069 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16070 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16071 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16074 ac_check_lib_save_LIBS=$LIBS
16076 cat >conftest.$ac_ext <<_ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16083 /* Override any GCC internal prototype to avoid an error.
16084 Use char because int might match the return type of a GCC
16085 builtin and then its argument prototype would still apply. */
16093 return __moddi3 ();
16098 rm -f conftest.$ac_objext conftest$ac_exeext
16099 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16107 grep -v '^ *+' conftest.er1 >conftest.err
16109 cat conftest.err >&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } &&
16112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16113 { (case "(($ac_try" in
16114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118 (eval "$ac_try") 2>&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; } &&
16122 { ac_try='test -s conftest$ac_exeext'
16123 { (case "(($ac_try" in
16124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125 *) ac_try_echo=$ac_try;;
16127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16128 (eval "$ac_try") 2>&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); }; }; then
16132 ac_cv_lib_gcc___moddi3=yes
16134 echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16137 ac_cv_lib_gcc___moddi3=no
16140 rm -f core conftest.err conftest.$ac_objext \
16141 conftest$ac_exeext conftest.$ac_ext
16142 LIBS=$ac_check_lib_save_LIBS
16144 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16145 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16146 if test $ac_cv_lib_gcc___moddi3 = yes; then
16148 cat >>confdefs.h <<\_ACEOF
16149 #define HAVE___MODDI3 1
16154 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16155 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16156 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 ac_check_lib_save_LIBS=$LIBS
16161 cat >conftest.$ac_ext <<_ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h. */
16168 /* Override any GCC internal prototype to avoid an error.
16169 Use char because int might match the return type of a GCC
16170 builtin and then its argument prototype would still apply. */
16178 return __udivdi3 ();
16183 rm -f conftest.$ac_objext conftest$ac_exeext
16184 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16192 grep -v '^ *+' conftest.er1 >conftest.err
16194 cat conftest.err >&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } &&
16197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16198 { (case "(($ac_try" in
16199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203 (eval "$ac_try") 2>&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; } &&
16207 { ac_try='test -s conftest$ac_exeext'
16208 { (case "(($ac_try" in
16209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210 *) ac_try_echo=$ac_try;;
16212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16213 (eval "$ac_try") 2>&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; }; then
16217 ac_cv_lib_gcc___udivdi3=yes
16219 echo "$as_me: failed program was:" >&5
16220 sed 's/^/| /' conftest.$ac_ext >&5
16222 ac_cv_lib_gcc___udivdi3=no
16225 rm -f core conftest.err conftest.$ac_objext \
16226 conftest$ac_exeext conftest.$ac_ext
16227 LIBS=$ac_check_lib_save_LIBS
16229 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16230 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16231 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16233 cat >>confdefs.h <<\_ACEOF
16234 #define HAVE___UDIVDI3 1
16239 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16240 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16241 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16242 echo $ECHO_N "(cached) $ECHO_C" >&6
16244 ac_check_lib_save_LIBS=$LIBS
16246 cat >conftest.$ac_ext <<_ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16253 /* Override any GCC internal prototype to avoid an error.
16254 Use char because int might match the return type of a GCC
16255 builtin and then its argument prototype would still apply. */
16263 return __umoddi3 ();
16268 rm -f conftest.$ac_objext conftest$ac_exeext
16269 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16277 grep -v '^ *+' conftest.er1 >conftest.err
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } &&
16282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16283 { (case "(($ac_try" in
16284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285 *) ac_try_echo=$ac_try;;
16287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16288 (eval "$ac_try") 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; } &&
16292 { ac_try='test -s conftest$ac_exeext'
16293 { (case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_try") 2>&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16302 ac_cv_lib_gcc___umoddi3=yes
16304 echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16307 ac_cv_lib_gcc___umoddi3=no
16310 rm -f core conftest.err conftest.$ac_objext \
16311 conftest$ac_exeext conftest.$ac_ext
16312 LIBS=$ac_check_lib_save_LIBS
16314 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16315 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16316 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16318 cat >>confdefs.h <<\_ACEOF
16319 #define HAVE___UMODDI3 1
16325 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16326 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16327 if test "${ac_cv_lib_gcc___main+set}" = set; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 ac_check_lib_save_LIBS=$LIBS
16332 cat >conftest.$ac_ext <<_ACEOF
16335 cat confdefs.h >>conftest.$ac_ext
16336 cat >>conftest.$ac_ext <<_ACEOF
16337 /* end confdefs.h. */
16339 /* Override any GCC internal prototype to avoid an error.
16340 Use char because int might match the return type of a GCC
16341 builtin and then its argument prototype would still apply. */
16354 rm -f conftest.$ac_objext conftest$ac_exeext
16355 if { (ac_try="$ac_link"
16356 case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361 (eval "$ac_link") 2>conftest.er1
16363 grep -v '^ *+' conftest.er1 >conftest.err
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16369 { (case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_try") 2>&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; } &&
16378 { ac_try='test -s conftest$ac_exeext'
16379 { (case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16384 (eval "$ac_try") 2>&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); }; }; then
16388 ac_cv_lib_gcc___main=yes
16390 echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16393 ac_cv_lib_gcc___main=no
16396 rm -f core conftest.err conftest.$ac_objext \
16397 conftest$ac_exeext conftest.$ac_ext
16398 LIBS=$ac_check_lib_save_LIBS
16400 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16401 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16402 if test $ac_cv_lib_gcc___main = yes; then
16404 cat >>confdefs.h <<\_ACEOF
16405 #define HAVE___MAIN 1
16410 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16411 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16412 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 ac_check_lib_save_LIBS=$LIBS
16417 cat >conftest.$ac_ext <<_ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16424 /* Override any GCC internal prototype to avoid an error.
16425 Use char because int might match the return type of a GCC
16426 builtin and then its argument prototype would still apply. */
16434 return __cmpdi2 ();
16439 rm -f conftest.$ac_objext conftest$ac_exeext
16440 if { (ac_try="$ac_link"
16441 case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_link") 2>conftest.er1
16448 grep -v '^ *+' conftest.er1 >conftest.err
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16454 { (case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_try") 2>&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; } &&
16463 { ac_try='test -s conftest$ac_exeext'
16464 { (case "(($ac_try" in
16465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16466 *) ac_try_echo=$ac_try;;
16468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16469 (eval "$ac_try") 2>&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 ac_cv_lib_gcc___cmpdi2=yes
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16478 ac_cv_lib_gcc___cmpdi2=no
16481 rm -f core conftest.err conftest.$ac_objext \
16482 conftest$ac_exeext conftest.$ac_ext
16483 LIBS=$ac_check_lib_save_LIBS
16485 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16486 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16487 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16489 cat >>confdefs.h <<\_ACEOF
16490 #define HAVE___CMPDI2 1
16497 if test "$llvm_cv_os_type" = "MingW" ; then
16498 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16499 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16500 cat >conftest.$ac_ext <<_ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16508 #include <windows.h>
16509 #include <imagehlp.h>
16510 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16511 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16515 rm -f conftest.$ac_objext
16516 if { (ac_try="$ac_compile"
16517 case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_compile") 2>conftest.er1
16524 grep -v '^ *+' conftest.er1 >conftest.err
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
16529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16530 { (case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535 (eval "$ac_try") 2>&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; } &&
16539 { ac_try='test -s conftest.$ac_objext'
16540 { (case "(($ac_try" in
16541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542 *) ac_try_echo=$ac_try;;
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545 (eval "$ac_try") 2>&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16550 { echo "$as_me:$LINENO: result: yes" >&5
16551 echo "${ECHO_T}yes" >&6; }
16552 llvm_cv_win32_elmcb_pcstr="PCSTR"
16555 echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16559 { echo "$as_me:$LINENO: result: no" >&5
16560 echo "${ECHO_T}no" >&6; }
16561 llvm_cv_win32_elmcb_pcstr="PSTR"
16565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16567 cat >>confdefs.h <<_ACEOF
16568 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16573 if test "$llvm_cv_platform_type" = "Unix" ; then
16576 for ac_header in stdlib.h unistd.h
16578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16585 ac_res=`eval echo '${'$as_ac_Header'}'`
16586 { echo "$as_me:$LINENO: result: $ac_res" >&5
16587 echo "${ECHO_T}$ac_res" >&6; }
16589 # Is the header compilable?
16590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16592 cat >conftest.$ac_ext <<_ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 $ac_includes_default
16599 #include <$ac_header>
16601 rm -f conftest.$ac_objext
16602 if { (ac_try="$ac_compile"
16603 case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_compile") 2>conftest.er1
16610 grep -v '^ *+' conftest.er1 >conftest.err
16612 cat conftest.err >&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } &&
16615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16616 { (case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_try") 2>&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; } &&
16625 { ac_try='test -s conftest.$ac_objext'
16626 { (case "(($ac_try" in
16627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628 *) ac_try_echo=$ac_try;;
16630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16631 (eval "$ac_try") 2>&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; }; then
16635 ac_header_compiler=yes
16637 echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16640 ac_header_compiler=no
16643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16645 echo "${ECHO_T}$ac_header_compiler" >&6; }
16647 # Is the header present?
16648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16650 cat >conftest.$ac_ext <<_ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 #include <$ac_header>
16658 if { (ac_try="$ac_cpp conftest.$ac_ext"
16659 case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16666 grep -v '^ *+' conftest.er1 >conftest.err
16668 cat conftest.err >&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } >/dev/null; then
16671 if test -s conftest.err; then
16672 ac_cpp_err=$ac_c_preproc_warn_flag
16673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16680 if test -z "$ac_cpp_err"; then
16681 ac_header_preproc=yes
16683 echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16686 ac_header_preproc=no
16689 rm -f conftest.err conftest.$ac_ext
16690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16691 echo "${ECHO_T}$ac_header_preproc" >&6; }
16693 # So? What about this header?
16694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16700 ac_header_preproc=yes
16703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16710 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16716 ## ------------------------------------ ##
16717 ## Report this to http://llvm.org/bugs/ ##
16718 ## ------------------------------------ ##
16720 ) | sed "s/^/$as_me: WARNING: /" >&2
16723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16726 echo $ECHO_N "(cached) $ECHO_C" >&6
16728 eval "$as_ac_Header=\$ac_header_preproc"
16730 ac_res=`eval echo '${'$as_ac_Header'}'`
16731 { echo "$as_me:$LINENO: result: $ac_res" >&5
16732 echo "${ECHO_T}$ac_res" >&6; }
16735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16736 cat >>confdefs.h <<_ACEOF
16737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16745 for ac_func in getpagesize
16747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16753 cat >conftest.$ac_ext <<_ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h. */
16759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16761 #define $ac_func innocuous_$ac_func
16763 /* System header to define __stub macros and hopefully few prototypes,
16764 which can conflict with char $ac_func (); below.
16765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16766 <limits.h> exists even on freestanding compilers. */
16769 # include <limits.h>
16771 # include <assert.h>
16776 /* Override any GCC internal prototype to avoid an error.
16777 Use char because int might match the return type of a GCC
16778 builtin and then its argument prototype would still apply. */
16783 /* The GNU C library defines this for functions which it implements
16784 to always fail with ENOSYS. Some functions are actually named
16785 something starting with __ and the normal name is an alias. */
16786 #if defined __stub_$ac_func || defined __stub___$ac_func
16793 return $ac_func ();
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (ac_try="$ac_link"
16800 case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_link") 2>conftest.er1
16807 grep -v '^ *+' conftest.er1 >conftest.err
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16813 { (case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_try") 2>&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; } &&
16822 { ac_try='test -s conftest$ac_exeext'
16823 { (case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_try") 2>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; }; then
16832 eval "$as_ac_var=yes"
16834 echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16837 eval "$as_ac_var=no"
16840 rm -f core conftest.err conftest.$ac_objext \
16841 conftest$ac_exeext conftest.$ac_ext
16843 ac_res=`eval echo '${'$as_ac_var'}'`
16844 { echo "$as_me:$LINENO: result: $ac_res" >&5
16845 echo "${ECHO_T}$ac_res" >&6; }
16846 if test `eval echo '${'$as_ac_var'}'` = yes; then
16847 cat >>confdefs.h <<_ACEOF
16848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16854 { echo "$as_me:$LINENO: checking for working mmap" >&5
16855 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
16856 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16859 if test "$cross_compiling" = yes; then
16860 ac_cv_func_mmap_fixed_mapped=no
16862 cat >conftest.$ac_ext <<_ACEOF
16865 cat confdefs.h >>conftest.$ac_ext
16866 cat >>conftest.$ac_ext <<_ACEOF
16867 /* end confdefs.h. */
16868 $ac_includes_default
16869 /* malloc might have been renamed as rpl_malloc. */
16872 /* Thanks to Mike Haertel and Jim Avera for this test.
16873 Here is a matrix of mmap possibilities:
16874 mmap private not fixed
16875 mmap private fixed at somewhere currently unmapped
16876 mmap private fixed at somewhere already mapped
16877 mmap shared not fixed
16878 mmap shared fixed at somewhere currently unmapped
16879 mmap shared fixed at somewhere already mapped
16880 For private mappings, we should verify that changes cannot be read()
16881 back from the file, nor mmap's back from the file at a different
16882 address. (There have been systems where private was not correctly
16883 implemented like the infamous i386 svr4.0, and systems where the
16884 VM page cache was not coherent with the file system buffer cache
16885 like early versions of FreeBSD and possibly contemporary NetBSD.)
16886 For shared mappings, we should conversely verify that changes get
16887 propagated back to all the places they're supposed to be.
16889 Grep wants private fixed already mapped.
16890 The main things grep needs to know about mmap are:
16891 * does it exist and is it safe to write into the mmap'd area
16892 * how to use it (BSD variants) */
16895 #include <sys/mman.h>
16897 #if !STDC_HEADERS && !HAVE_STDLIB_H
16901 /* This mess was copied from the GNU getpagesize.h. */
16902 #if !HAVE_GETPAGESIZE
16903 /* Assume that all systems that can run configure have sys/param.h. */
16904 # if !HAVE_SYS_PARAM_H
16905 # define HAVE_SYS_PARAM_H 1
16908 # ifdef _SC_PAGESIZE
16909 # define getpagesize() sysconf(_SC_PAGESIZE)
16910 # else /* no _SC_PAGESIZE */
16911 # if HAVE_SYS_PARAM_H
16912 # include <sys/param.h>
16913 # ifdef EXEC_PAGESIZE
16914 # define getpagesize() EXEC_PAGESIZE
16915 # else /* no EXEC_PAGESIZE */
16917 # define getpagesize() NBPG * CLSIZE
16920 # endif /* no CLSIZE */
16921 # else /* no NBPG */
16923 # define getpagesize() NBPC
16924 # else /* no NBPC */
16926 # define getpagesize() PAGESIZE
16927 # endif /* PAGESIZE */
16928 # endif /* no NBPC */
16929 # endif /* no NBPG */
16930 # endif /* no EXEC_PAGESIZE */
16931 # else /* no HAVE_SYS_PARAM_H */
16932 # define getpagesize() 8192 /* punt totally */
16933 # endif /* no HAVE_SYS_PARAM_H */
16934 # endif /* no _SC_PAGESIZE */
16936 #endif /* no HAVE_GETPAGESIZE */
16941 char *data, *data2, *data3;
16945 pagesize = getpagesize ();
16947 /* First, make a file with some known garbage in it. */
16948 data = (char *) malloc (pagesize);
16951 for (i = 0; i < pagesize; ++i)
16952 *(data + i) = rand ();
16954 fd = creat ("conftest.mmap", 0600);
16957 if (write (fd, data, pagesize) != pagesize)
16961 /* Next, try to mmap the file at a fixed address which already has
16962 something else allocated at it. If we can, also make sure that
16963 we see the same garbage. */
16964 fd = open ("conftest.mmap", O_RDWR);
16967 data2 = (char *) malloc (2 * pagesize);
16970 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16971 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16972 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16974 for (i = 0; i < pagesize; ++i)
16975 if (*(data + i) != *(data2 + i))
16978 /* Finally, make sure that changes to the mapped area do not
16979 percolate back to the file as seen by read(). (This is a bug on
16980 some variants of i386 svr4.0.) */
16981 for (i = 0; i < pagesize; ++i)
16982 *(data2 + i) = *(data2 + i) + 1;
16983 data3 = (char *) malloc (pagesize);
16986 if (read (fd, data3, pagesize) != pagesize)
16988 for (i = 0; i < pagesize; ++i)
16989 if (*(data + i) != *(data3 + i))
16995 rm -f conftest$ac_exeext
16996 if { (ac_try="$ac_link"
16997 case "(($ac_try" in
16998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999 *) ac_try_echo=$ac_try;;
17001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17002 (eval "$ac_link") 2>&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015 ac_cv_func_mmap_fixed_mapped=yes
17017 echo "$as_me: program exited with status $ac_status" >&5
17018 echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17021 ( exit $ac_status )
17022 ac_cv_func_mmap_fixed_mapped=no
17024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17029 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17030 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17031 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17033 cat >>confdefs.h <<\_ACEOF
17034 #define HAVE_MMAP 1
17038 rm -f conftest.mmap
17040 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17041 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17042 if test "${ac_cv_func_mmap_file+set}" = set; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17046 ac_cpp='$CPP $CPPFLAGS'
17047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17051 if test "$cross_compiling" = yes; then
17052 ac_cv_func_mmap_file=no
17054 cat >conftest.$ac_ext <<_ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17062 #include <sys/types.h>
17063 #include <sys/mman.h>
17071 fd = creat ("foo",0777);
17072 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17074 return (fd != (int) MAP_FAILED);
17079 rm -f conftest$ac_exeext
17080 if { (ac_try="$ac_link"
17081 case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_link") 2>&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17090 { (case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_try") 2>&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; }; then
17099 ac_cv_func_mmap_file=yes
17101 echo "$as_me: program exited with status $ac_status" >&5
17102 echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17105 ( exit $ac_status )
17106 ac_cv_func_mmap_file=no
17108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17113 ac_cpp='$CPP $CPPFLAGS'
17114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17120 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17121 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17122 if test "$ac_cv_func_mmap_file" = yes; then
17124 cat >>confdefs.h <<\_ACEOF
17125 #define HAVE_MMAP_FILE
17132 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17133 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17134 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17137 if test "$llvm_cv_os_type" = "Interix" ; then
17138 ac_cv_need_dev_zero_for_mmap=yes
17140 ac_cv_need_dev_zero_for_mmap=no
17144 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17145 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17146 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17148 cat >>confdefs.h <<\_ACEOF
17149 #define NEED_DEV_ZERO_FOR_MMAP 1
17154 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17156 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17157 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17159 if test "$ac_cv_func_mmap_file" = "no"
17161 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17162 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17166 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17167 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17169 ac_cpp='$CXXCPP $CPPFLAGS'
17170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17174 cat >conftest.$ac_ext <<_ACEOF
17178 cat confdefs.h >>conftest.$ac_ext
17179 cat >>conftest.$ac_ext <<_ACEOF
17180 /* end confdefs.h. */
17183 volatile unsigned long val = 1;
17184 __sync_synchronize();
17185 __sync_val_compare_and_swap(&val, 1, 0);
17186 __sync_add_and_fetch(&val, 1);
17187 __sync_sub_and_fetch(&val, 1);
17193 rm -f conftest.$ac_objext conftest$ac_exeext
17194 if { (ac_try="$ac_link"
17195 case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_link") 2>conftest.er1
17202 grep -v '^ *+' conftest.er1 >conftest.err
17204 cat conftest.err >&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } &&
17207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17208 { (case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_try") 2>&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try='test -s conftest$ac_exeext'
17218 { (case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_try") 2>&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; }; then
17228 { echo "$as_me:$LINENO: result: yes" >&5
17229 echo "${ECHO_T}yes" >&6; }
17231 cat >>confdefs.h <<\_ACEOF
17232 #define LLVM_HAS_ATOMICS 1
17237 echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17241 { echo "$as_me:$LINENO: result: no" >&5
17242 echo "${ECHO_T}no" >&6; }
17244 cat >>confdefs.h <<\_ACEOF
17245 #define LLVM_HAS_ATOMICS 0
17248 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17249 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17253 rm -f core conftest.err conftest.$ac_objext \
17254 conftest$ac_exeext conftest.$ac_ext
17256 ac_cpp='$CPP $CPPFLAGS'
17257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17263 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17264 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17265 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17266 if test "${llvm_cv_linux_mixed+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17270 ac_cpp='$CPP $CPPFLAGS'
17271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17282 error: Not x86-64 even if uname says so!
17293 rm -f conftest.$ac_objext
17294 if { (ac_try="$ac_compile"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_compile") 2>conftest.er1
17302 grep -v '^ *+' conftest.er1 >conftest.err
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } &&
17307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17308 { (case "(($ac_try" in
17309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310 *) ac_try_echo=$ac_try;;
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313 (eval "$ac_try") 2>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; } &&
17317 { ac_try='test -s conftest.$ac_objext'
17318 { (case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 llvm_cv_linux_mixed=no
17329 echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17332 llvm_cv_linux_mixed=yes
17335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17337 ac_cpp='$CPP $CPPFLAGS'
17338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17344 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17345 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17347 if test "$llvm_cv_linux_mixed" = "yes"; then
17348 llvm_cv_target_arch="x86"
17354 for ac_func in __dso_handle
17356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17357 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17359 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 cat >conftest.$ac_ext <<_ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17370 #define $ac_func innocuous_$ac_func
17372 /* System header to define __stub macros and hopefully few prototypes,
17373 which can conflict with char $ac_func (); below.
17374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17375 <limits.h> exists even on freestanding compilers. */
17378 # include <limits.h>
17380 # include <assert.h>
17385 /* Override any GCC internal prototype to avoid an error.
17386 Use char because int might match the return type of a GCC
17387 builtin and then its argument prototype would still apply. */
17392 /* The GNU C library defines this for functions which it implements
17393 to always fail with ENOSYS. Some functions are actually named
17394 something starting with __ and the normal name is an alias. */
17395 #if defined __stub_$ac_func || defined __stub___$ac_func
17402 return $ac_func ();
17407 rm -f conftest.$ac_objext conftest$ac_exeext
17408 if { (ac_try="$ac_link"
17409 case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_link") 2>conftest.er1
17416 grep -v '^ *+' conftest.er1 >conftest.err
17418 cat conftest.err >&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); } &&
17421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17422 { (case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_try") 2>&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try='test -s conftest$ac_exeext'
17432 { (case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 (eval "$ac_try") 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 eval "$as_ac_var=yes"
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17446 eval "$as_ac_var=no"
17449 rm -f core conftest.err conftest.$ac_objext \
17450 conftest$ac_exeext conftest.$ac_ext
17452 ac_res=`eval echo '${'$as_ac_var'}'`
17453 { echo "$as_me:$LINENO: result: $ac_res" >&5
17454 echo "${ECHO_T}$ac_res" >&6; }
17455 if test `eval echo '${'$as_ac_var'}'` = yes; then
17456 cat >>confdefs.h <<_ACEOF
17457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17464 SHLIBEXT=$llvm_shlib_ext
17467 if test "${prefix}" = "NONE" ; then
17468 prefix="/usr/local"
17470 eval LLVM_PREFIX="${prefix}";
17471 eval LLVM_BINDIR="${prefix}/bin";
17472 eval LLVM_DATADIR="${prefix}/share/llvm";
17473 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17474 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17475 eval LLVM_INCLUDEDIR="${prefix}/include";
17476 eval LLVM_INFODIR="${prefix}/info";
17477 eval LLVM_MANDIR="${prefix}/man";
17478 LLVM_CONFIGTIME=`date`
17489 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17490 LLVM_CONFIGTIME="(timestamp not enabled)"
17494 cat >>confdefs.h <<_ACEOF
17495 #define LLVM_PREFIX "$LLVM_PREFIX"
17499 cat >>confdefs.h <<_ACEOF
17500 #define LLVM_BINDIR "$LLVM_BINDIR"
17504 cat >>confdefs.h <<_ACEOF
17505 #define LLVM_DATADIR "$LLVM_DATADIR"
17509 cat >>confdefs.h <<_ACEOF
17510 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17514 cat >>confdefs.h <<_ACEOF
17515 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17519 cat >>confdefs.h <<_ACEOF
17520 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17524 cat >>confdefs.h <<_ACEOF
17525 #define LLVM_INFODIR "$LLVM_INFODIR"
17529 cat >>confdefs.h <<_ACEOF
17530 #define LLVM_MANDIR "$LLVM_MANDIR"
17534 cat >>confdefs.h <<_ACEOF
17535 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17539 cat >>confdefs.h <<_ACEOF
17540 #define LLVM_HOST_TRIPLE "$host"
17544 cat >>confdefs.h <<_ACEOF
17545 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17549 if test "$BINDINGS_TO_BUILD" = auto ; then
17550 BINDINGS_TO_BUILD=""
17551 if test "x$OCAMLFIND" != x ; then
17552 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17554 if test "x$GO" != x ; then
17555 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17556 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17560 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17563 binding_prereqs_failed=0
17564 for a_binding in $BINDINGS_TO_BUILD ; do
17565 case "$a_binding" in
17567 if test "x$OCAMLFIND" = x ; then
17568 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17569 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17570 binding_prereqs_failed=1
17573 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17580 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17581 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17582 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17583 binding_prereqs_failed=1
17586 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17590 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17591 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17595 if test "x$with_ocaml_libdir" != xauto ; then
17596 OCAML_LIBDIR=$with_ocaml_libdir
17599 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17600 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17602 # ocaml stdlib is beneath our prefix; use stdlib
17603 OCAML_LIBDIR=$ocaml_stdlib
17606 # ocaml stdlib is outside our prefix; use libdir/ocaml
17607 OCAML_LIBDIR=${prefix}/lib/ocaml
17613 if test "x$GO" = x ; then
17614 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17615 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17616 binding_prereqs_failed=1
17618 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17621 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17622 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17623 binding_prereqs_failed=1
17629 if test "$binding_prereqs_failed" = 1 ; then
17630 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17631 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17632 { (exit 1); exit 1; }; }
17635 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17636 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17637 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17638 echo $ECHO_N "(cached) $ECHO_C" >&6
17641 ac_cpp='$CXXCPP $CPPFLAGS'
17642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17646 oldcxxflags="$CXXFLAGS"
17647 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17648 cat >conftest.$ac_ext <<_ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h. */
17654 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17663 rm -f conftest.$ac_objext
17664 if { (ac_try="$ac_compile"
17665 case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_compile") 2>conftest.er1
17672 grep -v '^ *+' conftest.er1 >conftest.err
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
17677 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17678 { (case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683 (eval "$ac_try") 2>&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; } &&
17687 { ac_try='test -s conftest.$ac_objext'
17688 { (case "(($ac_try" in
17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_try") 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 llvm_cv_cxx_visibility_inlines_hidden=yes
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17702 llvm_cv_cxx_visibility_inlines_hidden=no
17705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17706 CXXFLAGS="$oldcxxflags"
17708 ac_cpp='$CPP $CPPFLAGS'
17709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17715 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
17716 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
17717 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
17718 ENABLE_VISIBILITY_INLINES_HIDDEN=1
17721 ENABLE_VISIBILITY_INLINES_HIDDEN=0
17726 if test "$llvm_cv_link_use_r" = "yes" ; then
17733 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
17734 RDYNAMIC="-rdynamic"
17741 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
17748 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
17750 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
17752 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
17754 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
17756 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
17759 ac_config_files="$ac_config_files Makefile.config"
17762 ac_config_files="$ac_config_files llvm.spec"
17765 ac_config_files="$ac_config_files docs/doxygen.cfg"
17768 if test "${clang_src_root}" = ""; then
17769 clang_src_root="$srcdir/tools/clang"
17771 if test -f ${clang_src_root}/README.txt; then
17773 cat >>confdefs.h <<_ACEOF
17774 #define CLANG_LIBDIR_SUFFIX ""
17778 configh="include/clang/Config/config.h"
17779 doxy="docs/doxygen.cfg"
17780 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
17782 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
17786 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
17789 test "x$program_prefix" = "xNONE" && program_prefix=""
17793 ac_config_commands="$ac_config_commands setup"
17795 ac_config_commands="$ac_config_commands Makefile"
17798 ac_config_commands="$ac_config_commands Makefile.common"
17801 ac_config_commands="$ac_config_commands examples/Makefile"
17804 ac_config_commands="$ac_config_commands lib/Makefile"
17807 ac_config_commands="$ac_config_commands test/Makefile"
17810 ac_config_commands="$ac_config_commands test/Makefile.tests"
17813 ac_config_commands="$ac_config_commands unittests/Makefile"
17816 ac_config_commands="$ac_config_commands tools/Makefile"
17819 ac_config_commands="$ac_config_commands utils/Makefile"
17822 ac_config_commands="$ac_config_commands projects/Makefile"
17825 ac_config_commands="$ac_config_commands bindings/Makefile"
17828 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
17832 cat >confcache <<\_ACEOF
17833 # This file is a shell script that caches the results of configure
17834 # tests run on this system so they can be shared between configure
17835 # scripts and configure runs, see configure's option --config-cache.
17836 # It is not useful on other systems. If it contains results you don't
17837 # want to keep, you may remove or edit it.
17839 # config.status only pays attention to the cache file if you give it
17840 # the --recheck option to rerun configure.
17842 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17843 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17844 # following values.
17848 # The following way of writing the cache mishandles newlines in values,
17849 # but we know of no workaround that is simple, portable, and efficient.
17850 # So, we kill variables containing newlines.
17851 # Ultrix sh set writes to stderr and can't be redirected directly,
17852 # and sets the high bit in the cache file unless we assign to the vars.
17854 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17855 eval ac_val=\$$ac_var
17859 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17860 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17863 _ | IFS | as_nl) ;; #(
17864 *) $as_unset $ac_var ;;
17870 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17871 *${as_nl}ac_space=\ *)
17872 # `set' does not quote correctly, so add quotes (double-quote
17873 # substitution turns \\\\ into \\, and sed turns \\ into \).
17876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17879 # `set' quotes correctly as required by POSIX, so do not add quotes.
17880 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17889 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17891 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17893 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17894 if test -w "$cache_file"; then
17895 test "x$cache_file" != "x/dev/null" &&
17896 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17897 echo "$as_me: updating cache $cache_file" >&6;}
17898 cat confcache >$cache_file
17900 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17901 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17906 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17907 # Let make expand exec_prefix.
17908 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17910 DEFS=-DHAVE_CONFIG_H
17914 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17915 # 1. Remove the extension, and $U if already installed.
17916 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17917 ac_i=`echo "$ac_i" | sed "$ac_script"`
17918 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17919 # will be set to the directory where LIBOBJS objects are built.
17920 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17921 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17923 LIBOBJS=$ac_libobjs
17925 LTLIBOBJS=$ac_ltlibobjs
17929 : ${CONFIG_STATUS=./config.status}
17930 ac_clean_files_save=$ac_clean_files
17931 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17932 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17933 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17934 cat >$CONFIG_STATUS <<_ACEOF
17936 # Generated by $as_me.
17937 # Run this file to recreate the current configuration.
17938 # Compiler output produced by configure, useful for debugging
17939 # configure, is in config.log if it exists.
17942 ac_cs_recheck=false
17944 SHELL=\${CONFIG_SHELL-$SHELL}
17947 cat >>$CONFIG_STATUS <<\_ACEOF
17948 ## --------------------- ##
17949 ## M4sh Initialization. ##
17950 ## --------------------- ##
17952 # Be Bourne compatible
17953 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17956 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17957 # is contrary to our usage. Disable this feature.
17958 alias -g '${1+"$@"}'='"$@"'
17959 setopt NO_GLOB_SUBST
17961 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
17963 BIN_SH=xpg4; export BIN_SH # for Tru64
17964 DUALCASE=1; export DUALCASE # for MKS sh
17968 # Avoid depending upon Character Ranges.
17969 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17970 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17971 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17972 as_cr_digits='0123456789'
17973 as_cr_alnum=$as_cr_Letters$as_cr_digits
17975 # The user is always right.
17976 if test "${PATH_SEPARATOR+set}" != set; then
17977 echo "#! /bin/sh" >conf$$.sh
17978 echo "exit 0" >>conf$$.sh
17980 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17988 # Support unset when possible.
17989 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17997 # We need space, tab and new line, in precisely that order. Quoting is
17998 # there to prevent editors from complaining about space-tab.
17999 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18000 # splitting by setting IFS to empty value.)
18005 # Find who we are. Look in the path if we contain no directory separator.
18007 *[\\/]* ) as_myself=$0 ;;
18008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18009 for as_dir in $PATH
18012 test -z "$as_dir" && as_dir=.
18013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18019 # We did not find ourselves, most probably we were run as `sh COMMAND'
18020 # in which case we are not to be found in the path.
18021 if test "x$as_myself" = x; then
18024 if test ! -f "$as_myself"; then
18025 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18026 { (exit 1); exit 1; }
18029 # Work around bugs in pre-3.0 UWIN ksh.
18030 for as_var in ENV MAIL MAILPATH
18031 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18039 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18040 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18041 LC_TELEPHONE LC_TIME
18043 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18044 eval $as_var=C; export $as_var
18046 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18050 # Required to use basename.
18051 if expr a : '\(a\)' >/dev/null 2>&1 &&
18052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18058 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18059 as_basename=basename
18065 # Name of the executable.
18066 as_me=`$as_basename -- "$0" ||
18067 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18068 X"$0" : 'X\(//\)$' \| \
18069 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18071 sed '/^.*\/\([^/][^/]*\)\/*$/{
18090 as_lineno_1=$LINENO
18091 as_lineno_2=$LINENO
18092 test "x$as_lineno_1" != "x$as_lineno_2" &&
18093 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18095 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18096 # uniformly replaced by the line number. The first 'sed' inserts a
18097 # line-number line after each line using $LINENO; the second 'sed'
18098 # does the real work. The second script uses 'N' to pair each
18099 # line-number line with the line containing $LINENO, and appends
18100 # trailing '-' during substitution so that $LINENO is not a special
18101 # case at line end.
18102 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18103 # scripts with optimization help from Paolo Bonzini. Blame Lee
18104 # E. McMahon (1931-1989) for sed's syntax. :-)
18116 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18119 ' >$as_me.lineno &&
18120 chmod +x "$as_me.lineno" ||
18121 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18122 { (exit 1); exit 1; }; }
18124 # Don't try to exec as it changes $[0], causing all sort of problems
18125 # (the dirname of $[0] is not the place where we might find the
18126 # original and so on. Autoconf is especially sensitive to this).
18127 . "./$as_me.lineno"
18128 # Exit status is that of the last command.
18133 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18139 ECHO_C= ECHO_N= ECHO_T=
18140 case `echo -n x` in
18142 case `echo 'x\c'` in
18143 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18150 if expr a : '\(a\)' >/dev/null 2>&1 &&
18151 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18157 rm -f conf$$ conf$$.exe conf$$.file
18158 if test -d conf$$.dir; then
18159 rm -f conf$$.dir/conf$$.file
18165 if ln -s conf$$.file conf$$ 2>/dev/null; then
18167 # ... but there are two gotchas:
18168 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18169 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18170 # In both cases, we have to default to `cp -p'.
18171 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18173 elif ln conf$$.file conf$$ 2>/dev/null; then
18178 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18179 rmdir conf$$.dir 2>/dev/null
18181 if mkdir -p . 2>/dev/null; then
18184 test -d ./-p && rmdir ./-p
18188 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18189 # systems may use methods other than mode bits to determine executability.
18190 cat >conf$$.file <<_ASEOF
18194 chmod +x conf$$.file
18195 if test -x conf$$.file >/dev/null 2>&1; then
18196 as_executable_p="test -x"
18202 # Sed expression to map a string onto a valid CPP name.
18203 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18205 # Sed expression to map a string onto a valid variable name.
18206 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18211 # Save the log message, to keep $[0] and so on meaningful, and to
18212 # report actual input values of CONFIG_FILES etc. instead of their
18213 # values after options handling.
18215 This file was extended by LLVM $as_me 3.7.0svn, which was
18216 generated by GNU Autoconf 2.60. Invocation command line was
18218 CONFIG_FILES = $CONFIG_FILES
18219 CONFIG_HEADERS = $CONFIG_HEADERS
18220 CONFIG_LINKS = $CONFIG_LINKS
18221 CONFIG_COMMANDS = $CONFIG_COMMANDS
18224 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18229 cat >>$CONFIG_STATUS <<_ACEOF
18230 # Files that config.status was made for.
18231 config_files="$ac_config_files"
18232 config_headers="$ac_config_headers"
18233 config_commands="$ac_config_commands"
18237 cat >>$CONFIG_STATUS <<\_ACEOF
18239 \`$as_me' instantiates files from templates according to the
18240 current configuration.
18242 Usage: $0 [OPTIONS] [FILE]...
18244 -h, --help print this help, then exit
18245 -V, --version print version number, then exit
18246 -q, --quiet do not print progress messages
18247 -d, --debug don't remove temporary files
18248 --recheck update $as_me by reconfiguring in the same conditions
18249 --file=FILE[:TEMPLATE]
18250 instantiate the configuration file FILE
18251 --header=FILE[:TEMPLATE]
18252 instantiate the configuration header FILE
18254 Configuration files:
18257 Configuration headers:
18260 Configuration commands:
18263 Report bugs to <bug-autoconf@gnu.org>."
18266 cat >>$CONFIG_STATUS <<_ACEOF
18268 LLVM config.status 3.7.0svn
18269 configured by $0, generated by GNU Autoconf 2.60,
18270 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18272 Copyright (C) 2006 Free Software Foundation, Inc.
18273 This config.status script is free software; the Free Software Foundation
18274 gives unlimited permission to copy, distribute and modify it."
18281 cat >>$CONFIG_STATUS <<\_ACEOF
18282 # If no file are specified by the user, then we need to provide default
18283 # value. By we need to know if files were specified by the user.
18289 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18290 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18301 # Handling of the options.
18302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18304 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18305 echo "$ac_cs_version"; exit ;;
18306 --debug | --debu | --deb | --de | --d | -d )
18308 --file | --fil | --fi | --f )
18310 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18311 ac_need_defaults=false;;
18312 --header | --heade | --head | --hea )
18314 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18315 ac_need_defaults=false;;
18317 # Conflict between --help and --header
18318 { echo "$as_me: error: ambiguous option: $1
18319 Try \`$0 --help' for more information." >&2
18320 { (exit 1); exit 1; }; };;
18321 --help | --hel | -h )
18322 echo "$ac_cs_usage"; exit ;;
18323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18324 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18327 # This is an error.
18328 -*) { echo "$as_me: error: unrecognized option: $1
18329 Try \`$0 --help' for more information." >&2
18330 { (exit 1); exit 1; }; } ;;
18332 *) ac_config_targets="$ac_config_targets $1"
18333 ac_need_defaults=false ;;
18339 ac_configure_extra_args=
18341 if $ac_cs_silent; then
18343 ac_configure_extra_args="$ac_configure_extra_args --silent"
18347 cat >>$CONFIG_STATUS <<_ACEOF
18348 if \$ac_cs_recheck; then
18349 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18350 CONFIG_SHELL=$SHELL
18351 export CONFIG_SHELL
18352 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18356 cat >>$CONFIG_STATUS <<\_ACEOF
18360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18361 ## Running $as_me. ##
18367 cat >>$CONFIG_STATUS <<_ACEOF
18371 llvm_src="${srcdir}"
18375 cat >>$CONFIG_STATUS <<\_ACEOF
18377 # Handling of arguments.
18378 for ac_config_target in $ac_config_targets
18380 case $ac_config_target in
18381 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18382 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18383 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18384 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18385 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18386 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18387 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18388 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18389 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18390 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18391 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18392 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18393 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18394 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18395 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18396 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18397 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18398 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18399 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18400 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18401 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18402 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18403 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18404 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18405 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18406 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18408 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18409 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18410 { (exit 1); exit 1; }; };;
18415 # If the user did not use the arguments to specify the items to instantiate,
18416 # then the envvar interface is used. Set only those that are not.
18417 # We use the long form for the default assignment because of an extremely
18418 # bizarre bug on SunOS 4.1.3.
18419 if $ac_need_defaults; then
18420 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18421 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18422 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18425 # Have a temporary directory for convenience. Make it in the build tree
18426 # simply because there is no reason against having it here, and in addition,
18427 # creating and moving files from /tmp can sometimes cause problems.
18428 # Hook for its removal unless debugging.
18429 # Note that there is a small window in which the directory will not be cleaned:
18430 # after its creation but before its name has been assigned to `$tmp'.
18434 trap 'exit_status=$?
18435 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18437 trap '{ (exit 1); exit 1; }' 1 2 13 15
18439 # Create a (secure) tmp directory for tmp files.
18442 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18443 test -n "$tmp" && test -d "$tmp"
18446 tmp=./conf$$-$RANDOM
18447 (umask 077 && mkdir "$tmp")
18450 echo "$me: cannot create a temporary directory in ." >&2
18451 { (exit 1); exit 1; }
18455 # Set up the sed scripts for CONFIG_FILES section.
18458 # No need to generate the scripts if there are no CONFIG_FILES.
18459 # This happens for instance when ./config.status config.h
18460 if test -n "$CONFIG_FILES"; then
18467 for ac_last_try in false false false false false :; do
18468 cat >conf$$subs.sed <<_ACEOF
18469 SHELL!$SHELL$ac_delim
18470 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18471 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18472 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18473 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18474 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18475 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18476 exec_prefix!$exec_prefix$ac_delim
18477 prefix!$prefix$ac_delim
18478 program_transform_name!$program_transform_name$ac_delim
18479 bindir!$bindir$ac_delim
18480 sbindir!$sbindir$ac_delim
18481 libexecdir!$libexecdir$ac_delim
18482 datarootdir!$datarootdir$ac_delim
18483 datadir!$datadir$ac_delim
18484 sysconfdir!$sysconfdir$ac_delim
18485 sharedstatedir!$sharedstatedir$ac_delim
18486 localstatedir!$localstatedir$ac_delim
18487 includedir!$includedir$ac_delim
18488 oldincludedir!$oldincludedir$ac_delim
18489 docdir!$docdir$ac_delim
18490 infodir!$infodir$ac_delim
18491 htmldir!$htmldir$ac_delim
18492 dvidir!$dvidir$ac_delim
18493 pdfdir!$pdfdir$ac_delim
18494 psdir!$psdir$ac_delim
18495 libdir!$libdir$ac_delim
18496 localedir!$localedir$ac_delim
18497 mandir!$mandir$ac_delim
18498 DEFS!$DEFS$ac_delim
18499 ECHO_C!$ECHO_C$ac_delim
18500 ECHO_N!$ECHO_N$ac_delim
18501 ECHO_T!$ECHO_T$ac_delim
18502 LIBS!$LIBS$ac_delim
18503 build_alias!$build_alias$ac_delim
18504 host_alias!$host_alias$ac_delim
18505 target_alias!$target_alias$ac_delim
18506 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18507 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18508 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18509 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18510 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18512 CFLAGS!$CFLAGS$ac_delim
18513 LDFLAGS!$LDFLAGS$ac_delim
18514 CPPFLAGS!$CPPFLAGS$ac_delim
18515 ac_ct_CC!$ac_ct_CC$ac_delim
18516 EXEEXT!$EXEEXT$ac_delim
18517 OBJEXT!$OBJEXT$ac_delim
18519 CXXFLAGS!$CXXFLAGS$ac_delim
18520 ac_ct_CXX!$ac_ct_CXX$ac_delim
18522 subdirs!$subdirs$ac_delim
18523 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18524 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18525 build!$build$ac_delim
18526 build_cpu!$build_cpu$ac_delim
18527 build_vendor!$build_vendor$ac_delim
18528 build_os!$build_os$ac_delim
18529 host!$host$ac_delim
18530 host_cpu!$host_cpu$ac_delim
18531 host_vendor!$host_vendor$ac_delim
18532 host_os!$host_os$ac_delim
18533 target!$target$ac_delim
18534 target_cpu!$target_cpu$ac_delim
18535 target_vendor!$target_vendor$ac_delim
18536 target_os!$target_os$ac_delim
18538 HOST_OS!$HOST_OS$ac_delim
18539 TARGET_OS!$TARGET_OS$ac_delim
18540 LINKALL!$LINKALL$ac_delim
18541 NOLINKALL!$NOLINKALL$ac_delim
18542 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18543 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18544 ARCH!$ARCH$ac_delim
18545 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18546 HOST_ARCH!$HOST_ARCH$ac_delim
18547 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18548 BUILD_CC!$BUILD_CC$ac_delim
18549 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18550 BUILD_CXX!$BUILD_CXX$ac_delim
18551 CVSBUILD!$CVSBUILD$ac_delim
18552 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18553 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18554 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18555 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18556 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18557 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18558 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18559 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18560 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18561 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18562 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18563 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18564 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18565 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18568 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18570 elif $ac_last_try; then
18571 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18572 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18573 { (exit 1); exit 1; }; }
18575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18579 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18580 if test -n "$ac_eof"; then
18581 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18582 ac_eof=`expr $ac_eof + 1`
18585 cat >>$CONFIG_STATUS <<_ACEOF
18586 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18590 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18591 s/^/s,@/; s/!/@,|#_!!_#|/
18594 s/'"$ac_delim"'$/,g/; t
18596 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18597 ' >>$CONFIG_STATUS <conf$$subs.sed
18598 rm -f conf$$subs.sed
18599 cat >>$CONFIG_STATUS <<_ACEOF
18605 for ac_last_try in false false false false false :; do
18606 cat >conf$$subs.sed <<_ACEOF
18607 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18609 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18610 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18611 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18612 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18613 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18614 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18615 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18616 ENABLE_PIC!$ENABLE_PIC$ac_delim
18617 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18618 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18619 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18620 ALL_TARGETS!$ALL_TARGETS$ac_delim
18621 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18622 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18623 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18624 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18625 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18626 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18627 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18628 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18629 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18630 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18631 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18632 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18633 ifGNUmake!$ifGNUmake$ac_delim
18634 LN_S!$LN_S$ac_delim
18638 DATE!$DATE$ac_delim
18639 FIND!$FIND$ac_delim
18640 GREP!$GREP$ac_delim
18641 MKDIR!$MKDIR$ac_delim
18643 RANLIB!$RANLIB$ac_delim
18648 BINPWD!$BINPWD$ac_delim
18650 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18651 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18652 INSTALL_DATA!$INSTALL_DATA$ac_delim
18653 BZIP2!$BZIP2$ac_delim
18655 DOXYGEN!$DOXYGEN$ac_delim
18656 GROFF!$GROFF$ac_delim
18657 GZIPBIN!$GZIPBIN$ac_delim
18658 PDFROFF!$PDFROFF$ac_delim
18661 OCAMLFIND!$OCAMLFIND$ac_delim
18663 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18664 EGREP!$EGREP$ac_delim
18665 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18666 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
18667 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
18668 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18669 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
18670 NO_COMMENT!$NO_COMMENT$ac_delim
18671 PYTHON!$PYTHON$ac_delim
18672 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
18673 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
18674 USE_OPROFILE!$USE_OPROFILE$ac_delim
18675 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
18676 XML2CONFIG!$XML2CONFIG$ac_delim
18677 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
18678 LIBXML2_INC!$LIBXML2_INC$ac_delim
18679 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
18680 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
18681 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18682 MMAP_FILE!$MMAP_FILE$ac_delim
18683 SHLIBEXT!$SHLIBEXT$ac_delim
18684 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
18685 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
18686 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
18687 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
18688 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
18689 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
18690 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
18691 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
18692 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
18693 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
18694 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
18695 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
18696 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
18697 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
18698 RPATH!$RPATH$ac_delim
18699 RDYNAMIC!$RDYNAMIC$ac_delim
18700 program_prefix!$program_prefix$ac_delim
18701 LIBOBJS!$LIBOBJS$ac_delim
18702 LTLIBOBJS!$LTLIBOBJS$ac_delim
18705 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
18707 elif $ac_last_try; then
18708 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18709 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18710 { (exit 1); exit 1; }; }
18712 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18716 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18717 if test -n "$ac_eof"; then
18718 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18719 ac_eof=`expr $ac_eof + 1`
18722 cat >>$CONFIG_STATUS <<_ACEOF
18723 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18727 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18728 s/^/s,@/; s/!/@,|#_!!_#|/
18731 s/'"$ac_delim"'$/,g/; t
18733 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18734 ' >>$CONFIG_STATUS <conf$$subs.sed
18735 rm -f conf$$subs.sed
18736 cat >>$CONFIG_STATUS <<_ACEOF
18741 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18742 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18743 # trailing colons and then remove the whole line if VPATH becomes empty
18744 # (actually we leave an empty line to preserve line numbers).
18745 if test "x$srcdir" = x.; then
18746 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18747 s/:*\$(srcdir):*/:/
18748 s/:*\${srcdir}:*/:/
18750 s/^\([^=]*=[ ]*\):*/\1/
18756 cat >>$CONFIG_STATUS <<\_ACEOF
18757 fi # test -n "$CONFIG_FILES"
18760 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
18763 :[FHLC]) ac_mode=$ac_tag; continue;;
18765 case $ac_mode$ac_tag in
18767 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18768 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18769 { (exit 1); exit 1; }; };;
18770 :[FH]-) ac_tag=-:-;;
18771 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18788 -) ac_f="$tmp/stdin";;
18789 *) # Look for the file first in the build tree, then in the source tree
18790 # (if the path is not absolute). The absolute path cannot be DOS-style,
18791 # because $ac_f cannot contain `:'.
18795 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18797 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18798 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18799 { (exit 1); exit 1; }; };;
18801 ac_file_inputs="$ac_file_inputs $ac_f"
18804 # Let's still pretend it is `configure' which instantiates (i.e., don't
18805 # use $as_me), people would be surprised to read:
18806 # /* config.h. Generated by config.status. */
18807 configure_input="Generated from "`IFS=:
18808 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18809 if test x"$ac_file" != x-; then
18810 configure_input="$ac_file. $configure_input"
18811 { echo "$as_me:$LINENO: creating $ac_file" >&5
18812 echo "$as_me: creating $ac_file" >&6;}
18816 *:-:* | *:-) cat >"$tmp/stdin";;
18821 ac_dir=`$as_dirname -- "$ac_file" ||
18822 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18823 X"$ac_file" : 'X\(//\)[^/]' \| \
18824 X"$ac_file" : 'X\(//\)$' \| \
18825 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18831 /^X\(\/\/\)[^/].*/{
18846 -*) as_dir=./$as_dir;;
18848 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18852 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18853 *) as_qdir=$as_dir;;
18855 as_dirs="'$as_qdir' $as_dirs"
18856 as_dir=`$as_dirname -- "$as_dir" ||
18857 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18858 X"$as_dir" : 'X\(//\)[^/]' \| \
18859 X"$as_dir" : 'X\(//\)$' \| \
18860 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18866 /^X\(\/\/\)[^/].*/{
18879 test -d "$as_dir" && break
18881 test -z "$as_dirs" || eval "mkdir $as_dirs"
18882 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18883 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18884 { (exit 1); exit 1; }; }; }
18888 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18890 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18891 # A ".." for each directory in $ac_dir_suffix.
18892 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18893 case $ac_top_builddir_sub in
18894 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18895 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18898 ac_abs_top_builddir=$ac_pwd
18899 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18900 # for backward compatibility:
18901 ac_top_builddir=$ac_top_build_prefix
18904 .) # We are building in place.
18906 ac_top_srcdir=$ac_top_builddir_sub
18907 ac_abs_top_srcdir=$ac_pwd ;;
18908 [\\/]* | ?:[\\/]* ) # Absolute name.
18909 ac_srcdir=$srcdir$ac_dir_suffix;
18910 ac_top_srcdir=$srcdir
18911 ac_abs_top_srcdir=$srcdir ;;
18912 *) # Relative name.
18913 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18914 ac_top_srcdir=$ac_top_build_prefix$srcdir
18915 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18917 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18927 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18928 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18932 cat >>$CONFIG_STATUS <<\_ACEOF
18933 # If the template does not know about datarootdir, expand it.
18934 # FIXME: This hack should be removed a few years after 2.60.
18935 ac_datarootdir_hack=; ac_datarootdir_seen=
18937 case `sed -n '/datarootdir/ {
18946 ' $ac_file_inputs` in
18947 *datarootdir*) ac_datarootdir_seen=yes;;
18948 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18949 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18950 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18952 cat >>$CONFIG_STATUS <<_ACEOF
18953 ac_datarootdir_hack='
18954 s&@datadir@&$datadir&g
18955 s&@docdir@&$docdir&g
18956 s&@infodir@&$infodir&g
18957 s&@localedir@&$localedir&g
18958 s&@mandir@&$mandir&g
18959 s&\\\${datarootdir}&$datarootdir&g' ;;
18963 # Neutralize VPATH when `$srcdir' = `.'.
18964 # Shell code in configure.ac might set extrasub.
18965 # FIXME: do we really want to maintain this feature?
18966 cat >>$CONFIG_STATUS <<_ACEOF
18970 cat >>$CONFIG_STATUS <<\_ACEOF
18972 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18973 s&@configure_input@&$configure_input&;t t
18974 s&@top_builddir@&$ac_top_builddir_sub&;t t
18975 s&@srcdir@&$ac_srcdir&;t t
18976 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18977 s&@top_srcdir@&$ac_top_srcdir&;t t
18978 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18979 s&@builddir@&$ac_builddir&;t t
18980 s&@abs_builddir@&$ac_abs_builddir&;t t
18981 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18982 s&@INSTALL@&$ac_INSTALL&;t t
18983 $ac_datarootdir_hack
18984 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
18986 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18987 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18988 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18989 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18990 which seems to be undefined. Please make sure it is defined." >&5
18991 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18992 which seems to be undefined. Please make sure it is defined." >&2;}
18996 -) cat "$tmp/out"; rm -f "$tmp/out";;
18997 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19006 # Transform confdefs.h into a sed script `conftest.defines', that
19007 # substitutes the proper values into config.h.in to produce config.h.
19008 rm -f conftest.defines conftest.tail
19009 # First, append a space to every undef/define line, to ease matching.
19010 echo 's/$/ /' >conftest.defines
19011 # Then, protect against being on the right side of a sed subst, or in
19012 # an unquoted here document, in config.status. If some macros were
19013 # called several times there might be several #defines for the same
19014 # symbol, which is useless. But do not sort them, since the last
19015 # AC_DEFINE must be honored.
19016 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19017 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19018 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19019 # PARAMS is the parameter list in the macro definition--in most cases, it's
19020 # just an empty string.
19021 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19022 ac_dB='\\)[ (].*,\\1define\\2'
19030 s/^[ ]*#[ ]*define[ ][ ]*//
19035 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19036 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19037 ' >>conftest.defines
19039 # Remove the space that was appended to ease matching.
19040 # Then replace #undef with comments. This is necessary, for
19041 # example, in the case of _POSIX_SOURCE, which is predefined and required
19042 # on some systems where configure will not decide to define it.
19043 # (The regexp can be short, since the line contains either #define or #undef.)
19045 s,^[ #]*u.*,/* & */,' >>conftest.defines
19047 # Break up conftest.defines:
19048 ac_max_sed_lines=50
19050 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19051 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19052 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19054 ac_in='$ac_file_inputs'
19055 ac_out='"$tmp/out1"'
19056 ac_nxt='"$tmp/out2"'
19060 # Write a here document:
19061 cat >>$CONFIG_STATUS <<_ACEOF
19062 # First, check the format of the line:
19063 cat >"\$tmp/defines.sed" <<\\CEOF
19064 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19065 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19069 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19071 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19072 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19073 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19074 grep . conftest.tail >/dev/null || break
19075 rm -f conftest.defines
19076 mv conftest.tail conftest.defines
19078 rm -f conftest.defines conftest.tail
19080 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19081 cat >>$CONFIG_STATUS <<\_ACEOF
19082 if test x"$ac_file" != x-; then
19083 echo "/* $configure_input */" >"$tmp/config.h"
19084 cat "$ac_result" >>"$tmp/config.h"
19085 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19086 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19087 echo "$as_me: $ac_file is unchanged" >&6;}
19090 mv "$tmp/config.h" $ac_file
19093 echo "/* $configure_input */"
19099 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19100 echo "$as_me: executing $ac_file commands" >&6;}
19105 case $ac_file$ac_mode in
19106 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19107 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19108 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19109 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19110 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19111 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19112 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19113 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19114 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19115 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19116 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19117 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19118 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19119 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19120 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19121 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19122 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19123 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19124 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19125 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19126 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19127 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19128 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19129 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19135 { (exit 0); exit 0; }
19137 chmod +x $CONFIG_STATUS
19138 ac_clean_files=$ac_clean_files_save
19141 # configure is writing to config.log, and then calls config.status.
19142 # config.status does its own redirection, appending to config.log.
19143 # Unfortunately, on DOS this fails, as config.log is still kept open
19144 # by configure, so config.status won't be able to write to it; its
19145 # output is simply discarded. So we exec the FD to /dev/null,
19146 # effectively closing config.log, so it can be properly (re)opened and
19147 # appended to by config.status. When coming back to configure, we
19148 # need to make the FD available again.
19149 if test "$no_create" != yes; then
19151 ac_config_status_args=
19152 test "$silent" = yes &&
19153 ac_config_status_args="$ac_config_status_args --quiet"
19155 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19158 # would make configure fail if this is the last instruction.
19159 $ac_cs_success || { (exit 1); exit 1; }
19163 # CONFIG_SUBDIRS section.
19165 if test "$no_recursion" != yes; then
19167 # Remove --cache-file and --srcdir arguments so they do not pile up.
19168 ac_sub_configure_args=
19170 eval "set x $ac_configure_args"
19174 if test -n "$ac_prev"; then
19179 -cache-file | --cache-file | --cache-fil | --cache-fi \
19180 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19181 ac_prev=cache_file ;;
19182 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19183 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19186 --config-cache | -C)
19188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19198 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19200 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19204 # Always prepend --prefix to ensure using the same prefix
19205 # in subdir configurations.
19206 ac_arg="--prefix=$prefix"
19208 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19210 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19213 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19215 # Do not complain, so a configure script can configure whichever
19216 # parts of a large source tree are present.
19217 test -d "$srcdir/$ac_dir" || continue
19219 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19220 echo "$as_me:$LINENO: $ac_msg" >&5
19224 -*) as_dir=./$as_dir;;
19226 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19230 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19231 *) as_qdir=$as_dir;;
19233 as_dirs="'$as_qdir' $as_dirs"
19234 as_dir=`$as_dirname -- "$as_dir" ||
19235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19236 X"$as_dir" : 'X\(//\)[^/]' \| \
19237 X"$as_dir" : 'X\(//\)$' \| \
19238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19244 /^X\(\/\/\)[^/].*/{
19257 test -d "$as_dir" && break
19259 test -z "$as_dirs" || eval "mkdir $as_dirs"
19260 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19261 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19262 { (exit 1); exit 1; }; }; }
19266 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19268 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19269 # A ".." for each directory in $ac_dir_suffix.
19270 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19271 case $ac_top_builddir_sub in
19272 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19273 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19276 ac_abs_top_builddir=$ac_pwd
19277 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19278 # for backward compatibility:
19279 ac_top_builddir=$ac_top_build_prefix
19282 .) # We are building in place.
19284 ac_top_srcdir=$ac_top_builddir_sub
19285 ac_abs_top_srcdir=$ac_pwd ;;
19286 [\\/]* | ?:[\\/]* ) # Absolute name.
19287 ac_srcdir=$srcdir$ac_dir_suffix;
19288 ac_top_srcdir=$srcdir
19289 ac_abs_top_srcdir=$srcdir ;;
19290 *) # Relative name.
19291 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19292 ac_top_srcdir=$ac_top_build_prefix$srcdir
19293 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19295 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19300 # Check for guested configure; otherwise get Cygnus style configure.
19301 if test -f "$ac_srcdir/configure.gnu"; then
19302 ac_sub_configure=$ac_srcdir/configure.gnu
19303 elif test -f "$ac_srcdir/configure"; then
19304 ac_sub_configure=$ac_srcdir/configure
19305 elif test -f "$ac_srcdir/configure.in"; then
19306 # This should be Cygnus configure.
19307 ac_sub_configure=$ac_aux_dir/configure
19309 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19310 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19314 # The recursion is here.
19315 if test -n "$ac_sub_configure"; then
19316 # Make the cache file name correct relative to the subdirectory.
19317 case $cache_file in
19318 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19319 *) # Relative name.
19320 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19323 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19324 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19325 # The eval makes quoting arguments work.
19326 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19327 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19328 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19329 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19330 { (exit 1); exit 1; }; }