2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.6.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.6.0svn'
565 PACKAGE_STRING='LLVM 3.6.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_CLANG_STATIC_ANALYZER
698 ENABLE_EXPENSIVE_CHECKS
718 LLVM_ENUM_ASM_PRINTERS
719 LLVM_ENUM_ASM_PARSERS
720 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
763 NO_MAYBE_UNINITIALIZED
791 ENABLE_VISIBILITY_INLINES_HIDDEN
798 ac_precious_vars='build_alias
809 ac_subdirs_all='projects/test-suite
812 projects/llvm-poolalloc
816 # Initialize some variables set by options.
818 ac_init_version=false
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
828 program_transform_name=s,x,x,
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
874 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 # Accept the important Cygnus configure options, so we can diagnose typos.
880 case $ac_dashdash$ac_option in
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
902 cache_file=config.cache ;;
904 -datadir | --datadir | --datadi | --datad)
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
916 -disable-* | --disable-*)
917 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
920 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
921 { (exit 1); exit 1; }; }
922 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
923 eval enable_$ac_feature=no ;;
925 -docdir | --docdir | --docdi | --doc | --do)
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 -enable-* | --enable-*)
936 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
939 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
940 { (exit 1); exit 1; }; }
941 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
942 eval enable_$ac_feature=\$ac_optarg ;;
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
957 -help | --help | --hel | --he | -h)
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 htmldir=$ac_optarg ;;
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
987 -libdir | --libdir | --libdi | --libd)
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1078 -psdir | --psdir | --psdi | --psd | --ps)
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 sbindir=$ac_optarg ;;
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 sharedstatedir=$ac_optarg ;;
1104 -site | --site | --sit)
1106 -site=* | --site=* | --sit=*)
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1133 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1136 { echo "$as_me: error: invalid package name: $ac_package" >&2
1137 { (exit 1); exit 1; }; }
1138 ac_package=`echo $ac_package| sed 's/-/_/g'`
1139 eval with_$ac_package=\$ac_optarg ;;
1141 -without-* | --without-*)
1142 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid package name: $ac_package" >&2
1146 { (exit 1); exit 1; }; }
1147 ac_package=`echo $ac_package | sed 's/-/_/g'`
1148 eval with_$ac_package=no ;;
1151 # Obsolete; use --with-x.
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1168 -*) { echo "$as_me: error: unrecognized option: $ac_option
1169 Try \`$0 --help' for more information." >&2
1170 { (exit 1); exit 1; }; }
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1177 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1178 { (exit 1); exit 1; }; }
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1183 # FIXME: should be removed in autoconf 3.0.
1184 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 { echo "$as_me: error: missing argument to $ac_option" >&2
1196 { (exit 1); exit 1; }; }
1199 # Be sure to have absolute directory names.
1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1205 eval ac_val=\$$ac_var
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1211 { (exit 1); exit 1; }; }
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1219 target=$target_alias
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226 If a cross compiler is detected then cross compile mode will be used." >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235 test "$silent" = yes && exec 6>/dev/null
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 { echo "$as_me: error: Working directory cannot be determined" >&2
1242 { (exit 1); exit 1; }; }
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 { echo "$as_me: error: pwd does not report name of working directory" >&2
1245 { (exit 1); exit 1; }; }
1248 # Find the source files, if location was not specified.
1249 if test -z "$srcdir"; then
1250 ac_srcdir_defaulted=yes
1251 # Try the directory containing this script, then the parent directory.
1252 ac_confdir=`$as_dirname -- "$0" ||
1253 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254 X"$0" : 'X\(//\)[^/]' \| \
1255 X"$0" : 'X\(//\)$' \| \
1256 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1280 ac_srcdir_defaulted=no
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1285 { (exit 1); exit 1; }; }
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1290 { (exit 1); exit 1; }; }
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 # Report the --help message.
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1316 \`configure' configures LLVM 3.6.0svn to adapt to many kinds of systems.
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1323 Defaults for the options are specified in brackets.
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1347 For better control, use the options below.
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1376 --target=TARGET configure for building compilers for TARGET [HOST]
1380 if test -n "$ac_init_help"; then
1381 case $ac_init_help in
1382 short | recursive ) echo "Configuration of LLVM 3.6.0svn:";;
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --enable-polly Use polly if available (default is YES)
1390 --enable-libcpp Use libc++ if available (default is NO)
1391 --enable-compiler-version-checks
1392 Check the version of the host compiler (default is
1394 --enable-cxx1y Use c++1y if available (default is NO)
1395 --enable-split-dwarf Use split-dwarf if available (default is NO)
1396 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1397 --enable-clang-plugin-support
1398 Enable plugin support in clang (default is YES)
1399 --enable-clang-static-analyzer
1400 Enable building of clang Static Analyzer (default is
1402 --enable-optimized Compile with optimizations enabled (default is NO)
1403 --enable-profiling Compile with profiling enabled (default is NO)
1404 --enable-assertions Compile with assertion checks enabled (default is
1406 --enable-werror Compile with -Werror enabled (default is NO)
1407 --enable-expensive-checks
1408 Compile with expensive debug checks enabled (default
1410 --enable-debug-runtime Build runtime libs with debug symbols (default is
1412 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1413 optimization is on and YES if it's off)
1414 --enable-keep-symbols Do not strip installed executables)
1415 --enable-jit Enable Just In Time Compiling (default is YES)
1416 --enable-docs Build documents (default is YES)
1417 --enable-doxygen Build doxygen documentation (default is NO)
1418 --enable-threads Use threads if available (default is YES)
1419 --enable-pthreads Use pthreads if available (default is YES)
1420 --enable-zlib Use zlib for compression/decompression if available
1422 --enable-pic Build LLVM with Position Independent Code (default
1424 --enable-shared Build a shared library and link tools against it
1426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is NO)
1428 --enable-timestamps Enable embedding timestamp information in build
1430 --enable-backtraces Enable embedding backtraces on crash (default is
1432 --enable-crash-overrides
1433 Enable crash handling overrides (default is YES)
1434 --enable-targets Build specific host targets: all or
1435 target1,target2,... Valid targets are: host, x86,
1436 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1437 hexagon, xcore, msp430, nvptx, systemz, r600, and
1439 --enable-experimental-targets
1440 Build experimental host targets: disable or
1441 target1,target2,... (default=disable)
1442 --enable-bindings Build specific language bindings:
1443 all,auto,none,{binding-name} (default=auto)
1444 --enable-terminfo Query the terminfo database if available (default is
1446 --enable-libedit Use libedit if available (default is YES)
1447 --enable-libffi Check for the presence of libffi (default is NO)
1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1452 --with-optimize-option Select the compiler options to use for optimized
1454 --with-extra-options Specify additional options to compile LLVM with
1455 --with-extra-ld-options Specify additional options to link LLVM with
1456 --with-ocaml-libdir Specify install location for ocaml bindings (default
1458 --with-clang-srcdir Directory to the out-of-tree Clang source
1459 --with-clang-resource-dir
1460 Relative directory from the Clang binary for
1462 --with-c-include-dirs Colon separated list of directories clang will
1464 --with-gcc-toolchain Directory where gcc is installed.
1465 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1466 --with-binutils-include Specify path to binutils/include/ containing
1467 plugin-api.h file for gold plugin.
1468 --with-bug-report-url Specify the URL where bug reports should be
1469 submitted (default=http://llvm.org/bugs/)
1470 --with-internal-prefix Installation directory for internal files
1471 --with-python path to python
1472 --with-oprofile=<prefix>
1473 Tell OProfile >= 0.9.4 how to symbolize JIT output
1474 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1477 Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1483 you have headers in a nonstandard directory <include dir>
1484 CXX C++ compiler command
1485 CXXFLAGS C++ compiler flags
1488 Use these variables to override the choices made by `configure' or to help
1489 it to find libraries and programs with nonstandard names/locations.
1491 Report bugs to <http://llvm.org/bugs/>.
1496 if test "$ac_init_help" = "recursive"; then
1497 # If there are subdirs, report their specific --help.
1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1499 test -d "$ac_dir" || continue
1503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1506 # A ".." for each directory in $ac_dir_suffix.
1507 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1508 case $ac_top_builddir_sub in
1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 ac_abs_top_builddir=$ac_pwd
1514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515 # for backward compatibility:
1516 ac_top_builddir=$ac_top_build_prefix
1519 .) # We are building in place.
1521 ac_top_srcdir=$ac_top_builddir_sub
1522 ac_abs_top_srcdir=$ac_pwd ;;
1523 [\\/]* | ?:[\\/]* ) # Absolute name.
1524 ac_srcdir=$srcdir$ac_dir_suffix;
1525 ac_top_srcdir=$srcdir
1526 ac_abs_top_srcdir=$srcdir ;;
1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529 ac_top_srcdir=$ac_top_build_prefix$srcdir
1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534 cd "$ac_dir" || { ac_status=$?; continue; }
1535 # Check for guested configure.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1541 $SHELL "$ac_srcdir/configure" --help=recursive
1543 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545 cd "$ac_pwd" || { ac_status=$?; break; }
1549 test -n "$ac_init_help" && exit $ac_status
1550 if $ac_init_version; then
1552 LLVM configure 3.6.0svn
1553 generated by GNU Autoconf 2.60
1555 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1556 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1557 This configure script is free software; the Free Software Foundation
1558 gives unlimited permission to copy, distribute and modify it.
1560 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1564 cat >config.log <<_ACEOF
1565 This file contains any messages produced by compilers while
1566 running configure, to aid debugging if configure makes a mistake.
1568 It was created by LLVM $as_me 3.6.0svn, which was
1569 generated by GNU Autoconf 2.60. Invocation command line was
1581 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1582 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1583 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1584 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1585 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1588 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1590 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1591 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1592 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1593 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1594 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1595 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1596 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 test -z "$as_dir" && as_dir=.
1605 echo "PATH: $as_dir"
1621 # Keep a trace of the command line.
1622 # Strip out --no-create and --no-recursion so they do not pile up.
1623 # Strip out --silent because we don't want to record it for future runs.
1624 # Also quote any args containing shell meta-characters.
1625 # Make two passes to allow for proper duplicate-argument suppression.
1629 ac_must_keep_next=false
1635 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1637 | -silent | --silent | --silen | --sile | --sil)
1640 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1643 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1646 if test $ac_must_keep_next = true; then
1647 ac_must_keep_next=false # Got value, back to normal.
1650 *=* | --config-cache | -C | -disable-* | --disable-* \
1651 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1652 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1653 | -with-* | --with-* | -without-* | --without-* | --x)
1654 case "$ac_configure_args0 " in
1655 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1658 -* ) ac_must_keep_next=true ;;
1661 ac_configure_args="$ac_configure_args '$ac_arg'"
1666 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1667 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1669 # When interrupted or exit'd, cleanup temporary files, and complete
1670 # config.log. We remove comments because anyway the quotes in there
1671 # would cause problems or look ugly.
1672 # WARNING: Use '\'' to represent an apostrophe within the trap.
1673 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1674 trap 'exit_status=$?
1675 # Save into config.log some information that might help in debugging.
1680 ## ---------------- ##
1681 ## Cache variables. ##
1682 ## ---------------- ##
1685 # The following way of writing the cache mishandles newlines in values,
1687 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1688 eval ac_val=\$$ac_var
1692 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1693 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1696 _ | IFS | as_nl) ;; #(
1697 *) $as_unset $ac_var ;;
1702 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1703 *${as_nl}ac_space=\ *)
1705 "s/'\''/'\''\\\\'\'''\''/g;
1706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1717 ## ----------------- ##
1718 ## Output variables. ##
1719 ## ----------------- ##
1722 for ac_var in $ac_subst_vars
1724 eval ac_val=\$$ac_var
1726 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728 echo "$ac_var='\''$ac_val'\''"
1732 if test -n "$ac_subst_files"; then
1734 ## ------------------- ##
1735 ## File substitutions. ##
1736 ## ------------------- ##
1739 for ac_var in $ac_subst_files
1741 eval ac_val=\$$ac_var
1743 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745 echo "$ac_var='\''$ac_val'\''"
1750 if test -s confdefs.h; then
1760 test "$ac_signal" != 0 &&
1761 echo "$as_me: caught signal $ac_signal"
1762 echo "$as_me: exit $exit_status"
1764 rm -f core *.core core.conftest.* &&
1765 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1768 for ac_signal in 1 2 13 15; do
1769 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1773 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1774 rm -f -r conftest* confdefs.h
1776 # Predefined preprocessor variables.
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_NAME "$PACKAGE_NAME"
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_STRING "$PACKAGE_STRING"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1803 # Let the site file select an alternate cache file if it wants to.
1804 # Prefer explicitly selected file to automatically selected ones.
1805 if test -n "$CONFIG_SITE"; then
1806 set x "$CONFIG_SITE"
1807 elif test "x$prefix" != xNONE; then
1808 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1810 set x "$ac_default_prefix/share/config.site" \
1811 "$ac_default_prefix/etc/config.site"
1816 if test -r "$ac_site_file"; then
1817 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1818 echo "$as_me: loading site script $ac_site_file" >&6;}
1819 sed 's/^/| /' "$ac_site_file" >&5
1824 if test -r "$cache_file"; then
1825 # Some versions of bash will fail to source /dev/null (special
1826 # files actually), so we avoid doing that.
1827 if test -f "$cache_file"; then
1828 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1829 echo "$as_me: loading cache $cache_file" >&6;}
1831 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1832 *) . "./$cache_file";;
1836 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1837 echo "$as_me: creating cache $cache_file" >&6;}
1841 # Check that the precious variables saved in the cache have kept the same
1843 ac_cache_corrupted=false
1844 for ac_var in $ac_precious_vars; do
1845 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1846 eval ac_new_set=\$ac_env_${ac_var}_set
1847 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1848 eval ac_new_val=\$ac_env_${ac_var}_value
1849 case $ac_old_set,$ac_new_set in
1851 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1852 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1853 ac_cache_corrupted=: ;;
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1860 if test "x$ac_old_val" != "x$ac_new_val"; then
1861 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1862 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1863 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1864 echo "$as_me: former value: $ac_old_val" >&2;}
1865 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1866 echo "$as_me: current value: $ac_new_val" >&2;}
1867 ac_cache_corrupted=:
1870 # Pass precious variables to config.status.
1871 if test "$ac_new_set" = set; then
1873 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1874 *) ac_arg=$ac_var=$ac_new_val ;;
1876 case " $ac_configure_args " in
1877 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1878 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1882 if $ac_cache_corrupted; then
1883 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1884 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1885 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1886 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1887 { (exit 1); exit 1; }; }
1915 ac_cpp='$CPP $CPPFLAGS'
1916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1922 LLVM_VERSION_MAJOR=3
1923 LLVM_VERSION_MINOR=6
1924 LLVM_VERSION_PATCH=0
1925 LLVM_VERSION_SUFFIX=svn
1928 cat >>confdefs.h <<_ACEOF
1929 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1933 cat >>confdefs.h <<_ACEOF
1934 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1938 cat >>confdefs.h <<_ACEOF
1939 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1948 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1957 for ac_dir in autoconf "$srcdir"/autoconf; do
1958 if test -f "$ac_dir/install-sh"; then
1960 ac_install_sh="$ac_aux_dir/install-sh -c"
1962 elif test -f "$ac_dir/install.sh"; then
1964 ac_install_sh="$ac_aux_dir/install.sh -c"
1966 elif test -f "$ac_dir/shtool"; then
1968 ac_install_sh="$ac_aux_dir/shtool install -c"
1972 if test -z "$ac_aux_dir"; then
1973 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1974 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1975 { (exit 1); exit 1; }; }
1978 # These three variables are undocumented and unsupported,
1979 # and are intended to be withdrawn in a future Autoconf release.
1980 # They can cause serious problems if a builder's source tree is in a directory
1981 # whose full name contains unusual characters.
1982 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1983 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1984 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1988 if test ${srcdir} != "." ; then
1989 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1990 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1991 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1992 { (exit 1); exit 1; }; }
2000 ac_cpp='$CPP $CPPFLAGS'
2001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2004 if test -n "$ac_tool_prefix"; then
2005 for ac_prog in clang gcc
2007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC="$CC" # Let the user override the test.
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 test -z "$as_dir" && as_dir=.
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2024 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 if test -n "$CC"; then
2036 { echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6; }
2039 { echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6; }
2044 test -n "$CC" && break
2047 if test -z "$CC"; then
2049 for ac_prog in clang gcc
2051 # Extract the first word of "$ac_prog", so it can be a program name with args.
2052 set dummy $ac_prog; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$ac_ct_CC"; then
2059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 ac_cv_prog_ac_ct_CC="$ac_prog"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2079 if test -n "$ac_ct_CC"; then
2080 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2081 echo "${ECHO_T}$ac_ct_CC" >&6; }
2083 { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2088 test -n "$ac_ct_CC" && break
2091 if test "x$ac_ct_CC" = x; then
2094 case $cross_compiling:$ac_tool_warned in
2096 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2097 whose name does not start with the host triplet. If you think this
2098 configuration is useful to you, please write to autoconf@gnu.org." >&5
2099 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2100 whose name does not start with the host triplet. If you think this
2101 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2102 ac_tool_warned=yes ;;
2109 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2110 See \`config.log' for more details." >&5
2111 echo "$as_me: error: no acceptable C compiler found in \$PATH
2112 See \`config.log' for more details." >&2;}
2113 { (exit 1); exit 1; }; }
2115 # Provide some information about the compiler.
2116 echo "$as_me:$LINENO: checking for C compiler version" >&5
2117 ac_compiler=`set X $ac_compile; echo $2`
2118 { (ac_try="$ac_compiler --version >&5"
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2124 (eval "$ac_compiler --version >&5") 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2128 { (ac_try="$ac_compiler -v >&5"
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2134 (eval "$ac_compiler -v >&5") 2>&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138 { (ac_try="$ac_compiler -V >&5"
2140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141 *) ac_try_echo=$ac_try;;
2143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2144 (eval "$ac_compiler -V >&5") 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2149 cat >conftest.$ac_ext <<_ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h. */
2164 ac_clean_files_save=$ac_clean_files
2165 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166 # Try to create an executable without -o first, disregard a.out.
2167 # It will help us diagnose broken compilers, and finding out an intuition
2169 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2171 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2173 # List of possible output files, starting from the most likely.
2174 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2175 # only as a last resort. b.out is created by i960 compilers.
2176 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2178 # The IRIX 6 linker writes into existing files which may not be
2179 # executable, retaining their permissions. Remove them first so a
2180 # subsequent execution test works.
2182 for ac_file in $ac_files
2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2186 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2191 if { (ac_try="$ac_link_default"
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2197 (eval "$ac_link_default") 2>&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; then
2201 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2202 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2203 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2204 # so that the user can short-circuit this test for compilers unknown to
2206 for ac_file in $ac_files
2208 test -f "$ac_file" || continue
2210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2213 # We found the default executable, but exeext='' is most
2217 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2219 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2221 # We set ac_cv_exeext here because the later test for it is not
2222 # safe: cross compilers may not add the suffix if given an `-o'
2223 # argument, so we may need to know it at that point already.
2224 # Even if this section looks crufty: it has the advantage of
2231 test "$ac_cv_exeext" = no && ac_cv_exeext=
2234 echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2237 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: C compiler cannot create executables
2240 See \`config.log' for more details." >&2;}
2241 { (exit 77); exit 77; }; }
2244 ac_exeext=$ac_cv_exeext
2245 { echo "$as_me:$LINENO: result: $ac_file" >&5
2246 echo "${ECHO_T}$ac_file" >&6; }
2248 # Check that the compiler produces executables we can run. If not, either
2249 # the compiler is broken, or we cross compile.
2250 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2251 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2252 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2253 # If not cross compiling, check that we can run a simple program.
2254 if test "$cross_compiling" != yes; then
2255 if { ac_try='./$ac_file'
2256 { (case "(($ac_try" in
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2261 (eval "$ac_try") 2>&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; }; then
2267 if test "$cross_compiling" = maybe; then
2270 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2271 If you meant to cross compile, use \`--host'.
2272 See \`config.log' for more details." >&5
2273 echo "$as_me: error: cannot run C compiled programs.
2274 If you meant to cross compile, use \`--host'.
2275 See \`config.log' for more details." >&2;}
2276 { (exit 1); exit 1; }; }
2280 { echo "$as_me:$LINENO: result: yes" >&5
2281 echo "${ECHO_T}yes" >&6; }
2283 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2284 ac_clean_files=$ac_clean_files_save
2285 # Check that the compiler produces executables we can run. If not, either
2286 # the compiler is broken, or we cross compile.
2287 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2288 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2289 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2290 echo "${ECHO_T}$cross_compiling" >&6; }
2292 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2293 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2294 if { (ac_try="$ac_link"
2296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2297 *) ac_try_echo=$ac_try;;
2299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2300 (eval "$ac_link") 2>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; then
2304 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2305 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2306 # work properly (i.e., refer to `conftest.exe'), while it won't with
2308 for ac_file in conftest.exe conftest conftest.*; do
2309 test -f "$ac_file" || continue
2311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2312 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2318 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2319 See \`config.log' for more details." >&5
2320 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2321 See \`config.log' for more details." >&2;}
2322 { (exit 1); exit 1; }; }
2325 rm -f conftest$ac_cv_exeext
2326 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2327 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2329 rm -f conftest.$ac_ext
2330 EXEEXT=$ac_cv_exeext
2332 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2333 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2334 if test "${ac_cv_objext+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 cat >conftest.$ac_ext <<_ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2352 rm -f conftest.o conftest.obj
2353 if { (ac_try="$ac_compile"
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359 (eval "$ac_compile") 2>&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; then
2363 for ac_file in conftest.o conftest.obj conftest.*; do
2364 test -f "$ac_file" || continue;
2366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2367 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2372 echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2375 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2376 See \`config.log' for more details." >&5
2377 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2378 See \`config.log' for more details." >&2;}
2379 { (exit 1); exit 1; }; }
2382 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2384 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2385 echo "${ECHO_T}$ac_cv_objext" >&6; }
2386 OBJEXT=$ac_cv_objext
2388 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2389 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2390 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 cat >conftest.$ac_ext <<_ACEOF
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h. */
2411 rm -f conftest.$ac_objext
2412 if { (ac_try="$ac_compile"
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_compile") 2>conftest.er1
2420 grep -v '^ *+' conftest.er1 >conftest.err
2422 cat conftest.err >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2426 { (case "(($ac_try" in
2427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2428 *) ac_try_echo=$ac_try;;
2430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2431 (eval "$ac_try") 2>&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (case "(($ac_try" in
2437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2438 *) ac_try_echo=$ac_try;;
2440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2441 (eval "$ac_try") 2>&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2457 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2458 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2459 GCC=`test $ac_compiler_gnu = yes && echo yes`
2460 ac_test_CFLAGS=${CFLAGS+set}
2461 ac_save_CFLAGS=$CFLAGS
2462 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2463 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_cc_g+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 ac_save_c_werror_flag=$ac_c_werror_flag
2468 ac_c_werror_flag=yes
2471 cat >conftest.$ac_ext <<_ACEOF
2474 cat confdefs.h >>conftest.$ac_ext
2475 cat >>conftest.$ac_ext <<_ACEOF
2476 /* end confdefs.h. */
2486 rm -f conftest.$ac_objext
2487 if { (ac_try="$ac_compile"
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_compile") 2>conftest.er1
2495 grep -v '^ *+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2501 { (case "(($ac_try" in
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506 (eval "$ac_try") 2>&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; } &&
2510 { ac_try='test -s conftest.$ac_objext'
2511 { (case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_try") 2>&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2526 cat >conftest.$ac_ext <<_ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2541 rm -f conftest.$ac_objext
2542 if { (ac_try="$ac_compile"
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548 (eval "$ac_compile") 2>conftest.er1
2550 grep -v '^ *+' conftest.er1 >conftest.err
2552 cat conftest.err >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2556 { (case "(($ac_try" in
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2561 (eval "$ac_try") 2>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_try") 2>&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2577 echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2580 ac_c_werror_flag=$ac_save_c_werror_flag
2582 cat >conftest.$ac_ext <<_ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2597 rm -f conftest.$ac_objext
2598 if { (ac_try="$ac_compile"
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604 (eval "$ac_compile") 2>conftest.er1
2606 grep -v '^ *+' conftest.er1 >conftest.err
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2612 { (case "(($ac_try" in
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617 (eval "$ac_try") 2>&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; } &&
2621 { ac_try='test -s conftest.$ac_objext'
2622 { (case "(($ac_try" in
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627 (eval "$ac_try") 2>&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 ac_c_werror_flag=$ac_save_c_werror_flag
2648 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2649 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2650 if test "$ac_test_CFLAGS" = set; then
2651 CFLAGS=$ac_save_CFLAGS
2652 elif test $ac_cv_prog_cc_g = yes; then
2653 if test "$GCC" = yes; then
2659 if test "$GCC" = yes; then
2665 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2666 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_cc_c89+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 ac_cv_prog_cc_c89=no
2672 cat >conftest.$ac_ext <<_ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2680 #include <sys/types.h>
2681 #include <sys/stat.h>
2682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2683 struct buf { int x; };
2684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2685 static char *e (p, i)
2691 static char *f (char * (*g) (char **, int), char **p, ...)
2696 s = g (p, va_arg (v,int));
2701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2702 function prototypes and stuff, but not '\xHH' hex character constants.
2703 These don't provoke an error unfortunately, instead are silently treated
2704 as 'x'. The following induces an error, until -std is added to get
2705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2706 array size at least. It's necessary to write '\x00'==0 to get something
2707 that's true only with -std. */
2708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2711 inside strings and character constants. */
2713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2715 int test (int i, double x);
2716 struct s1 {int (*f) (int a);};
2717 struct s2 {int (*f) (double a);};
2718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2732 CC="$ac_save_CC $ac_arg"
2733 rm -f conftest.$ac_objext
2734 if { (ac_try="$ac_compile"
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_compile") 2>conftest.er1
2742 grep -v '^ *+' conftest.er1 >conftest.err
2744 cat conftest.err >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2748 { (case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_try") 2>&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; } &&
2757 { ac_try='test -s conftest.$ac_objext'
2758 { (case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_try") 2>&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; }; then
2767 ac_cv_prog_cc_c89=$ac_arg
2769 echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2775 rm -f core conftest.err conftest.$ac_objext
2776 test "x$ac_cv_prog_cc_c89" != "xno" && break
2778 rm -f conftest.$ac_ext
2783 case "x$ac_cv_prog_cc_c89" in
2785 { echo "$as_me:$LINENO: result: none needed" >&5
2786 echo "${ECHO_T}none needed" >&6; } ;;
2788 { echo "$as_me:$LINENO: result: unsupported" >&5
2789 echo "${ECHO_T}unsupported" >&6; } ;;
2791 CC="$CC $ac_cv_prog_cc_c89"
2792 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2793 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804 ac_cpp='$CXXCPP $CPPFLAGS'
2805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2808 if test -z "$CXX"; then
2809 if test -n "$CCC"; then
2812 if test -n "$ac_tool_prefix"; then
2813 for ac_prog in clang++ g++
2815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2819 if test "${ac_cv_prog_CXX+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 if test -n "$CXX"; then
2823 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 if test -n "$CXX"; then
2844 { echo "$as_me:$LINENO: result: $CXX" >&5
2845 echo "${ECHO_T}$CXX" >&6; }
2847 { echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6; }
2852 test -n "$CXX" && break
2855 if test -z "$CXX"; then
2857 for ac_prog in clang++ g++
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2863 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 if test -n "$ac_ct_CXX"; then
2867 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 ac_cv_prog_ac_ct_CXX="$ac_prog"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2887 if test -n "$ac_ct_CXX"; then
2888 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2889 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2891 { echo "$as_me:$LINENO: result: no" >&5
2892 echo "${ECHO_T}no" >&6; }
2896 test -n "$ac_ct_CXX" && break
2899 if test "x$ac_ct_CXX" = x; then
2902 case $cross_compiling:$ac_tool_warned in
2904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2905 whose name does not start with the host triplet. If you think this
2906 configuration is useful to you, please write to autoconf@gnu.org." >&5
2907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2908 whose name does not start with the host triplet. If you think this
2909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2910 ac_tool_warned=yes ;;
2918 # Provide some information about the compiler.
2919 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2920 ac_compiler=`set X $ac_compile; echo $2`
2921 { (ac_try="$ac_compiler --version >&5"
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_compiler --version >&5") 2>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2931 { (ac_try="$ac_compiler -v >&5"
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compiler -v >&5") 2>&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }
2941 { (ac_try="$ac_compiler -V >&5"
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compiler -V >&5") 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }
2952 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2953 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2954 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 cat >conftest.$ac_ext <<_ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2975 rm -f conftest.$ac_objext
2976 if { (ac_try="$ac_compile"
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compile") 2>conftest.er1
2984 grep -v '^ *+' conftest.er1 >conftest.err
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } &&
2989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2990 { (case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_try") 2>&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; } &&
2999 { ac_try='test -s conftest.$ac_objext'
3000 { (case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_try") 2>&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; }; then
3011 echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3018 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3021 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3022 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3023 GXX=`test $ac_compiler_gnu = yes && echo yes`
3024 ac_test_CXXFLAGS=${CXXFLAGS+set}
3025 ac_save_CXXFLAGS=$CXXFLAGS
3026 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3027 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3028 if test "${ac_cv_prog_cxx_g+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3032 ac_cxx_werror_flag=yes
3035 cat >conftest.$ac_ext <<_ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3050 rm -f conftest.$ac_objext
3051 if { (ac_try="$ac_compile"
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_compile") 2>conftest.er1
3059 grep -v '^ *+' conftest.er1 >conftest.err
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } &&
3064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3065 { (case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_try") 2>&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; } &&
3074 { ac_try='test -s conftest.$ac_objext'
3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3084 ac_cv_prog_cxx_g=yes
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3090 cat >conftest.$ac_ext <<_ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h. */
3105 rm -f conftest.$ac_objext
3106 if { (ac_try="$ac_compile"
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_compile") 2>conftest.er1
3114 grep -v '^ *+' conftest.er1 >conftest.err
3116 cat conftest.err >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); } &&
3119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3120 { (case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_try") 2>&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; } &&
3129 { ac_try='test -s conftest.$ac_objext'
3130 { (case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_try") 2>&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; }; then
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3146 cat >conftest.$ac_ext <<_ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3161 rm -f conftest.$ac_objext
3162 if { (ac_try="$ac_compile"
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_compile") 2>conftest.er1
3170 grep -v '^ *+' conftest.er1 >conftest.err
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3176 { (case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_try") 2>&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; } &&
3185 { ac_try='test -s conftest.$ac_objext'
3186 { (case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_try") 2>&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3195 ac_cv_prog_cxx_g=yes
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3212 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3213 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3214 if test "$ac_test_CXXFLAGS" = set; then
3215 CXXFLAGS=$ac_save_CXXFLAGS
3216 elif test $ac_cv_prog_cxx_g = yes; then
3217 if test "$GXX" = yes; then
3223 if test "$GXX" = yes; then
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
3240 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3241 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3242 # On Suns, sometimes $CPP names a directory.
3243 if test -n "$CPP" && test -d "$CPP"; then
3246 if test -z "$CPP"; then
3247 if test "${ac_cv_prog_CPP+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 # Double quotes because CPP needs to be expanded
3251 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3254 for ac_c_preproc_warn_flag in '' yes
3256 # Use a header file that comes with gcc, so configuring glibc
3257 # with a fresh cross-compiler works.
3258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3259 # <limits.h> exists even on freestanding compilers.
3260 # On the NeXT, cc -E runs the code through the compiler's parser,
3261 # not just through cpp. "Syntax error" is here to catch this case.
3262 cat >conftest.$ac_ext <<_ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3269 # include <limits.h>
3271 # include <assert.h>
3275 if { (ac_try="$ac_cpp conftest.$ac_ext"
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3283 grep -v '^ *+' conftest.er1 >conftest.err
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } >/dev/null; then
3288 if test -s conftest.err; then
3289 ac_cpp_err=$ac_c_preproc_warn_flag
3290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3297 if test -z "$ac_cpp_err"; then
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 # Broken: fails on valid input.
3307 rm -f conftest.err conftest.$ac_ext
3309 # OK, works on sane cases. Now check whether nonexistent headers
3310 # can be detected and how.
3311 cat >conftest.$ac_ext <<_ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3317 #include <ac_nonexistent.h>
3319 if { (ac_try="$ac_cpp conftest.$ac_ext"
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3327 grep -v '^ *+' conftest.er1 >conftest.err
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } >/dev/null; then
3332 if test -s conftest.err; then
3333 ac_cpp_err=$ac_c_preproc_warn_flag
3334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3341 if test -z "$ac_cpp_err"; then
3342 # Broken: success on invalid input.
3345 echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3348 # Passes both tests.
3353 rm -f conftest.err conftest.$ac_ext
3356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3357 rm -f conftest.err conftest.$ac_ext
3358 if $ac_preproc_ok; then
3370 { echo "$as_me:$LINENO: result: $CPP" >&5
3371 echo "${ECHO_T}$CPP" >&6; }
3373 for ac_c_preproc_warn_flag in '' yes
3375 # Use a header file that comes with gcc, so configuring glibc
3376 # with a fresh cross-compiler works.
3377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3378 # <limits.h> exists even on freestanding compilers.
3379 # On the NeXT, cc -E runs the code through the compiler's parser,
3380 # not just through cpp. "Syntax error" is here to catch this case.
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3388 # include <limits.h>
3390 # include <assert.h>
3394 if { (ac_try="$ac_cpp conftest.$ac_ext"
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3402 grep -v '^ *+' conftest.er1 >conftest.err
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } >/dev/null; then
3407 if test -s conftest.err; then
3408 ac_cpp_err=$ac_c_preproc_warn_flag
3409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3416 if test -z "$ac_cpp_err"; then
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 # Broken: fails on valid input.
3426 rm -f conftest.err conftest.$ac_ext
3428 # OK, works on sane cases. Now check whether nonexistent headers
3429 # can be detected and how.
3430 cat >conftest.$ac_ext <<_ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436 #include <ac_nonexistent.h>
3438 if { (ac_try="$ac_cpp conftest.$ac_ext"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3446 grep -v '^ *+' conftest.er1 >conftest.err
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } >/dev/null; then
3451 if test -s conftest.err; then
3452 ac_cpp_err=$ac_c_preproc_warn_flag
3453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460 if test -z "$ac_cpp_err"; then
3461 # Broken: success on invalid input.
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 # Passes both tests.
3472 rm -f conftest.err conftest.$ac_ext
3475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3476 rm -f conftest.err conftest.$ac_ext
3477 if $ac_preproc_ok; then
3480 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3481 See \`config.log' for more details." >&5
3482 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3483 See \`config.log' for more details." >&2;}
3484 { (exit 1); exit 1; }; }
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 if test "$CXX" = "clang++" ; then
3495 { echo "$as_me:$LINENO: checking whether clang works" >&5
3496 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3498 ac_cpp='$CXXCPP $CPPFLAGS'
3499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3504 cat >conftest.$ac_ext <<_ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3511 #if __has_include (<cxxabi.h>)
3514 #if __has_include (<unwind.h>)
3526 rm -f conftest.$ac_objext
3527 if { (ac_try="$ac_compile"
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_compile") 2>conftest.er1
3535 grep -v '^ *+' conftest.er1 >conftest.err
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3541 { (case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546 (eval "$ac_try") 2>&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; } &&
3550 { ac_try='test -s conftest.$ac_objext'
3551 { (case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_try") 2>&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; }; then
3561 { echo "$as_me:$LINENO: result: yes" >&5
3562 echo "${ECHO_T}yes" >&6; }
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3569 { echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6; }
3571 { { 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
3572 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;}
3573 { (exit 1); exit 1; }; }
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 ac_cpp='$CPP $CPPFLAGS'
3580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3587 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3589 ac_cpp='$CXXCPP $CPPFLAGS'
3590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3594 llvm_cv_cxx_compiler=unknown
3595 cat >conftest.$ac_ext <<_ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3606 rm -f conftest.$ac_objext
3607 if { (ac_try="$ac_compile"
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_compile") 2>conftest.er1
3615 grep -v '^ *+' conftest.er1 >conftest.err
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } &&
3620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3621 { (case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626 (eval "$ac_try") 2>&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try='test -s conftest.$ac_objext'
3631 { (case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636 (eval "$ac_try") 2>&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; }; then
3640 llvm_cv_cxx_compiler=clang
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3656 rm -f conftest.$ac_objext
3657 if { (ac_try="$ac_compile"
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_compile") 2>conftest.er1
3665 grep -v '^ *+' conftest.er1 >conftest.err
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3671 { (case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676 (eval "$ac_try") 2>&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; } &&
3680 { ac_try='test -s conftest.$ac_objext'
3681 { (case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_try") 2>&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; }; then
3690 llvm_cv_cxx_compiler=gcc
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3709 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3713 if test -d ${srcdir}/projects/test-suite ; then
3714 subdirs="$subdirs projects/test-suite"
3718 if test -d ${srcdir}/projects/llvm-test ; then
3719 subdirs="$subdirs projects/llvm-test"
3723 if test -d ${srcdir}/projects/poolalloc ; then
3724 subdirs="$subdirs projects/poolalloc"
3728 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3729 subdirs="$subdirs projects/llvm-poolalloc"
3733 for i in `ls ${srcdir}/projects`
3735 if test -d ${srcdir}/projects/${i} ; then
3737 safecode) subdirs="$subdirs projects/safecode"
3745 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3746 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3752 # Check whether --enable-polly was given.
3753 if test "${enable_polly+set}" = set; then
3754 enableval=$enable_polly;
3759 case "$enableval" in
3764 default) ENABLE_POLLY=1
3766 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3767 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3768 { (exit 1); exit 1; }; } ;;
3772 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3775 subdirs="$subdirs tools/polly"
3780 # Make sure we can run config.sub.
3781 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3782 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3783 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3784 { (exit 1); exit 1; }; }
3786 { echo "$as_me:$LINENO: checking build system type" >&5
3787 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3788 if test "${ac_cv_build+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 ac_build_alias=$build_alias
3792 test "x$ac_build_alias" = x &&
3793 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3794 test "x$ac_build_alias" = x &&
3795 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3796 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3797 { (exit 1); exit 1; }; }
3798 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3799 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3800 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3801 { (exit 1); exit 1; }; }
3804 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3805 echo "${ECHO_T}$ac_cv_build" >&6; }
3806 case $ac_cv_build in
3808 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3809 echo "$as_me: error: invalid value of canonical build" >&2;}
3810 { (exit 1); exit 1; }; };;
3813 ac_save_IFS=$IFS; IFS='-'
3819 # Remember, the first character of IFS is used to create $*,
3820 # except with old shells:
3823 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3826 { echo "$as_me:$LINENO: checking host system type" >&5
3827 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3828 if test "${ac_cv_host+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 if test "x$host_alias" = x; then
3832 ac_cv_host=$ac_cv_build
3834 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3835 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3836 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3837 { (exit 1); exit 1; }; }
3841 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3842 echo "${ECHO_T}$ac_cv_host" >&6; }
3845 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3846 echo "$as_me: error: invalid value of canonical host" >&2;}
3847 { (exit 1); exit 1; }; };;
3850 ac_save_IFS=$IFS; IFS='-'
3856 # Remember, the first character of IFS is used to create $*,
3857 # except with old shells:
3860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3863 { echo "$as_me:$LINENO: checking target system type" >&5
3864 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3865 if test "${ac_cv_target+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 if test "x$target_alias" = x; then
3869 ac_cv_target=$ac_cv_host
3871 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3872 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3873 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3874 { (exit 1); exit 1; }; }
3878 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3879 echo "${ECHO_T}$ac_cv_target" >&6; }
3880 case $ac_cv_target in
3882 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3883 echo "$as_me: error: invalid value of canonical target" >&2;}
3884 { (exit 1); exit 1; }; };;
3886 target=$ac_cv_target
3887 ac_save_IFS=$IFS; IFS='-'
3893 # Remember, the first character of IFS is used to create $*,
3894 # except with old shells:
3897 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3900 # The aliases save the names the user supplied, while $host etc.
3901 # will get canonicalized.
3902 test -n "$target_alias" &&
3903 test "$program_prefix$program_suffix$program_transform_name" = \
3905 program_prefix=${target_alias}-
3907 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3908 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3909 if test "${llvm_cv_os_type+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 llvm_cv_link_all_option="-Wl,--whole-archive"
3915 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3916 llvm_cv_os_type="AIX"
3917 llvm_cv_platform_type="Unix" ;;
3919 llvm_cv_link_all_option="-Wl,--whole-archive"
3920 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3921 llvm_cv_os_type="IRIX"
3922 llvm_cv_platform_type="Unix" ;;
3924 llvm_cv_link_all_option="-Wl,--whole-archive"
3925 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3926 llvm_cv_os_type="Cygwin"
3927 llvm_cv_platform_type="Unix" ;;
3929 llvm_cv_link_all_option="-Wl,-all_load"
3930 llvm_cv_no_link_all_option="-Wl,-noall_load"
3931 llvm_cv_os_type="Darwin"
3932 llvm_cv_platform_type="Unix" ;;
3934 llvm_cv_link_all_option="-Wl,-all_load"
3935 llvm_cv_no_link_all_option="-Wl,-noall_load"
3936 llvm_cv_os_type="Minix"
3937 llvm_cv_platform_type="Unix" ;;
3939 llvm_cv_link_all_option="-Wl,--whole-archive"
3940 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3941 llvm_cv_os_type="FreeBSD"
3942 llvm_cv_platform_type="Unix" ;;
3944 llvm_cv_link_all_option="-Wl,--whole-archive"
3945 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3946 llvm_cv_os_type="GNU/kFreeBSD"
3947 llvm_cv_platform_type="Unix" ;;
3949 llvm_cv_link_all_option="-Wl,--whole-archive"
3950 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3951 llvm_cv_os_type="OpenBSD"
3952 llvm_cv_platform_type="Unix" ;;
3954 llvm_cv_link_all_option="-Wl,--whole-archive"
3955 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3956 llvm_cv_os_type="NetBSD"
3957 llvm_cv_platform_type="Unix" ;;
3959 llvm_cv_link_all_option="-Wl,--whole-archive"
3960 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3961 llvm_cv_os_type="DragonFly"
3962 llvm_cv_platform_type="Unix" ;;
3964 llvm_cv_link_all_option="-Wl,--whole-archive"
3965 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3966 llvm_cv_os_type="HP-UX"
3967 llvm_cv_platform_type="Unix" ;;
3969 llvm_cv_link_all_option="-Wl,--whole-archive"
3970 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3971 llvm_cv_os_type="Interix"
3972 llvm_cv_platform_type="Unix" ;;
3974 llvm_cv_link_all_option="-Wl,--whole-archive"
3975 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3976 llvm_cv_os_type="Linux"
3977 llvm_cv_platform_type="Unix" ;;
3979 llvm_cv_link_all_option="-Wl,--whole-archive"
3980 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3981 llvm_cv_os_type="GNU"
3982 llvm_cv_platform_type="Unix" ;;
3984 llvm_cv_link_all_option="-Wl,-z,allextract"
3985 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3986 llvm_cv_os_type="SunOS"
3987 llvm_cv_platform_type="Unix" ;;
3989 llvm_cv_link_all_option="-Wl,--whole-archive"
3990 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3991 llvm_cv_os_type="Win32"
3992 llvm_cv_platform_type="Win32" ;;
3994 llvm_cv_link_all_option="-Wl,--whole-archive"
3995 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3996 llvm_cv_os_type="MingW"
3997 llvm_cv_platform_type="Win32" ;;
3999 llvm_cv_link_all_option="-Wl,--whole-archive"
4000 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4001 llvm_cv_os_type="Haiku"
4002 llvm_cv_platform_type="Unix" ;;
4004 llvm_cv_link_all_option="-Wl,--whole-archive"
4005 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4006 llvm_cv_os_type="Freestanding"
4007 llvm_cv_platform_type="Unix" ;;
4009 llvm_cv_link_all_option="-Wl,--whole-archive"
4010 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4011 llvm_cv_os_type="Freestanding"
4012 llvm_cv_platform_type="Unix" ;;
4014 llvm_cv_link_all_option=""
4015 llvm_cv_no_link_all_option=""
4016 llvm_cv_os_type="Unknown"
4017 llvm_cv_platform_type="Unknown" ;;
4020 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4021 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4023 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4024 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4025 if test "${llvm_cv_target_os_type+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 llvm_cv_target_os_type="AIX" ;;
4032 llvm_cv_target_os_type="IRIX" ;;
4034 llvm_cv_target_os_type="Cygwin" ;;
4036 llvm_cv_target_os_type="Darwin" ;;
4038 llvm_cv_target_os_type="Minix" ;;
4040 llvm_cv_target_os_type="FreeBSD" ;;
4042 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4044 llvm_cv_target_os_type="OpenBSD" ;;
4046 llvm_cv_target_os_type="NetBSD" ;;
4048 llvm_cv_target_os_type="DragonFly" ;;
4050 llvm_cv_target_os_type="HP-UX" ;;
4052 llvm_cv_target_os_type="Interix" ;;
4054 llvm_cv_target_os_type="Linux" ;;
4056 llvm_cv_target_os_type="GNU" ;;
4058 llvm_cv_target_os_type="SunOS" ;;
4060 llvm_cv_target_os_type="Win32" ;;
4062 llvm_cv_target_os_type="MingW" ;;
4064 llvm_cv_target_os_type="Haiku" ;;
4066 llvm_cv_target_os_type="RTEMS" ;;
4068 llvm_cv_target_os_type="NativeClient" ;;
4070 llvm_cv_target_os_type="Freestanding" ;;
4072 llvm_cv_target_os_type="Unknown" ;;
4075 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4076 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4078 if test "$llvm_cv_os_type" = "Unknown" ; then
4079 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4080 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4081 { (exit 1); exit 1; }; }
4086 HOST_OS=$llvm_cv_os_type
4088 TARGET_OS=$llvm_cv_target_os_type
4091 LINKALL=$llvm_cv_link_all_option
4093 NOLINKALL=$llvm_cv_no_link_all_option
4096 case $llvm_cv_platform_type in
4099 cat >>confdefs.h <<\_ACEOF
4100 #define LLVM_ON_UNIX 1
4110 cat >>confdefs.h <<\_ACEOF
4111 #define LLVM_ON_WIN32 1
4121 { echo "$as_me:$LINENO: checking target architecture" >&5
4122 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4123 if test "${llvm_cv_target_arch+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 i?86-*) llvm_cv_target_arch="x86" ;;
4128 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4129 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4130 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4131 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4132 arm*-*) llvm_cv_target_arch="ARM" ;;
4133 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4134 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4135 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4136 xcore-*) llvm_cv_target_arch="XCore" ;;
4137 msp430-*) llvm_cv_target_arch="MSP430" ;;
4138 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4139 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4140 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4141 *) llvm_cv_target_arch="Unknown" ;;
4144 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4145 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4147 if test "$llvm_cv_target_arch" = "Unknown" ; then
4148 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4149 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4152 case "$llvm_cv_target_arch" in
4153 x86) LLVM_NATIVE_ARCH="X86" ;;
4154 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4155 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4158 ARCH=$llvm_cv_target_arch
4160 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4164 i?86-*) host_arch="x86" ;;
4165 amd64-* | x86_64-*) host_arch="x86_64" ;;
4166 sparc*-*) host_arch="Sparc" ;;
4167 powerpc*-*) host_arch="PowerPC" ;;
4168 arm64*-*) host_arch="AArch64" ;;
4169 arm*-*) host_arch="ARM" ;;
4170 aarch64*-*) host_arch="AArch64" ;;
4171 mips-* | mips64-*) host_arch="Mips" ;;
4172 mipsel-* | mips64el-*) host_arch="Mips" ;;
4173 xcore-*) host_arch="XCore" ;;
4174 msp430-*) host_arch="MSP430" ;;
4175 hexagon-*) host_arch="Hexagon" ;;
4176 s390x-*) host_arch="SystemZ" ;;
4177 *) host_arch="Unknown" ;;
4180 if test "$host_arch" = "Unknown" ; then
4181 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4182 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4185 HOST_ARCH=$host_arch
4188 if test "$cross_compiling" = yes; then
4189 LLVM_CROSS_COMPILING=1
4192 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4193 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4194 if test "${ac_cv_build_exeext+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4198 ac_cv_build_exeext=.exe
4200 ac_build_prefix=${build_alias}-
4202 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4203 set dummy ${ac_build_prefix}gcc; ac_word=$2
4204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 if test -n "$BUILD_CC"; then
4210 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 BUILD_CC=$ac_cv_prog_BUILD_CC
4230 if test -n "$BUILD_CC"; then
4231 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4232 echo "${ECHO_T}$BUILD_CC" >&6; }
4234 { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4239 if test -z "$BUILD_CC"; then
4240 # Extract the first word of "gcc", so it can be a program name with args.
4241 set dummy gcc; ac_word=$2
4242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 if test -n "$BUILD_CC"; then
4248 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 ac_cv_prog_BUILD_CC="gcc"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 BUILD_CC=$ac_cv_prog_BUILD_CC
4268 if test -n "$BUILD_CC"; then
4269 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4270 echo "${ECHO_T}$BUILD_CC" >&6; }
4272 { echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6; }
4277 if test -z "$BUILD_CC"; then
4278 # Extract the first word of "cc", so it can be a program name with args.
4279 set dummy cc; ac_word=$2
4280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4282 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 if test -n "$BUILD_CC"; then
4286 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4296 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4297 ac_prog_rejected=yes
4300 ac_cv_prog_BUILD_CC="cc"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 if test $ac_prog_rejected = yes; then
4309 # We found a bogon in the path, so make sure we never use it.
4310 set dummy $ac_cv_prog_BUILD_CC
4312 if test $# != 0; then
4313 # We chose a different compiler from the bogus one.
4314 # However, it has the same basename, so the bogon will be chosen
4315 # first if we set BUILD_CC to just the basename; use the full file name.
4317 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4322 BUILD_CC=$ac_cv_prog_BUILD_CC
4323 if test -n "$BUILD_CC"; then
4324 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4325 echo "${ECHO_T}$BUILD_CC" >&6; }
4327 { echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6; }
4334 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4335 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4336 { (exit 1); exit 1; }; }
4337 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4339 echo 'int main () { return 0; }' > conftest.$ac_ext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4342 (eval $ac_build_link) 2>&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; then
4346 for file in conftest.*; do
4348 *.c | *.o | *.obj | *.dSYM) ;;
4349 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4353 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4354 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4355 { (exit 1); exit 1; }; }
4358 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4363 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4364 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4365 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4366 ac_build_exeext=$BUILD_EXEEXT
4368 ac_build_prefix=${build_alias}-
4369 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4370 set dummy ${ac_build_prefix}g++; ac_word=$2
4371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 if test -n "$BUILD_CXX"; then
4377 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4386 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4397 if test -n "$BUILD_CXX"; then
4398 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4399 echo "${ECHO_T}$BUILD_CXX" >&6; }
4401 { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4406 if test -z "$BUILD_CXX"; then
4407 # Extract the first word of "g++", so it can be a program name with args.
4408 set dummy g++; ac_word=$2
4409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4411 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 if test -n "$BUILD_CXX"; then
4415 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4424 ac_cv_prog_BUILD_CXX="g++"
4425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4435 if test -n "$BUILD_CXX"; then
4436 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4437 echo "${ECHO_T}$BUILD_CXX" >&6; }
4439 { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4444 if test -z "$BUILD_CXX"; then
4445 # Extract the first word of "c++", so it can be a program name with args.
4446 set dummy c++; ac_word=$2
4447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4449 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 if test -n "$BUILD_CXX"; then
4453 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4463 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4464 ac_prog_rejected=yes
4467 ac_cv_prog_BUILD_CXX="c++"
4468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 if test $ac_prog_rejected = yes; then
4476 # We found a bogon in the path, so make sure we never use it.
4477 set dummy $ac_cv_prog_BUILD_CXX
4479 if test $# != 0; then
4480 # We chose a different compiler from the bogus one.
4481 # However, it has the same basename, so the bogon will be chosen
4482 # first if we set BUILD_CXX to just the basename; use the full file name.
4484 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4489 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4490 if test -n "$BUILD_CXX"; then
4491 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4492 echo "${ECHO_T}$BUILD_CXX" >&6; }
4494 { echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6; }
4502 LLVM_CROSS_COMPILING=0
4506 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4517 # Check whether --enable-libcpp was given.
4518 if test "${enable_libcpp+set}" = set; then
4519 enableval=$enable_libcpp;
4524 case "$enableval" in
4525 yes) ENABLE_LIBCPP=1
4529 default) ENABLE_LIBCPP=0
4531 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4532 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4533 { (exit 1); exit 1; }; } ;;
4536 # Check whether --enable-compiler-version-checks was given.
4537 if test "${enable_compiler_version_checks+set}" = set; then
4538 enableval=$enable_compiler_version_checks;
4543 case "$enableval" in
4548 ac_cpp='$CXXCPP $CPPFLAGS'
4549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4553 case "$llvm_cv_cxx_compiler" in
4555 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4556 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4557 cat >conftest.$ac_ext <<_ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4564 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4565 #error This version of Clang is too old to build LLVM
4569 rm -f conftest.$ac_objext
4570 if { (ac_try="$ac_compile"
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_compile") 2>conftest.er1
4578 grep -v '^ *+' conftest.er1 >conftest.err
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
4583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4584 { (case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_try") 2>&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; } &&
4593 { ac_try='test -s conftest.$ac_objext'
4594 { (case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_try") 2>&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 { echo "$as_me:$LINENO: result: yes" >&5
4604 echo "${ECHO_T}yes" >&6; }
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4611 { { echo "$as_me:$LINENO: error:
4612 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4613 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4614 bypass these sanity checks." >&5
4615 echo "$as_me: error:
4616 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4617 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4618 bypass these sanity checks." >&2;}
4619 { (exit 1); exit 1; }; }
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 if test "$ENABLE_LIBCPP" -eq 0 ; then
4625 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4626 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4627 llvm_cv_old_cxxflags="$CXXFLAGS"
4628 CXXFLAGS="$CXXFLAGS -std=c++0x"
4629 cat >conftest.$ac_ext <<_ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4637 std::atomic<float> x(0.0f);
4638 int main() { return (float)x; }
4641 rm -f conftest.$ac_objext conftest$ac_exeext
4642 if { (ac_try="$ac_link"
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_link") 2>conftest.er1
4650 grep -v '^ *+' conftest.er1 >conftest.err
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4656 { (case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_try") 2>&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest$ac_exeext'
4666 { (case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_try") 2>&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 { echo "$as_me:$LINENO: result: yes" >&5
4676 echo "${ECHO_T}yes" >&6; }
4678 echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4681 { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4683 { { echo "$as_me:$LINENO: error:
4684 We detected a missing feature in the standard C++ library that was known to be
4685 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4686 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4687 than 4.7. You will need to update your system and ensure Clang uses the newer
4690 If this error is incorrect or you need to force things to work, you may pass
4691 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4692 echo "$as_me: error:
4693 We detected a missing feature in the standard C++ library that was known to be
4694 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4695 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4696 than 4.7. You will need to update your system and ensure Clang uses the newer
4699 If this error is incorrect or you need to force things to work, you may pass
4700 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4701 { (exit 1); exit 1; }; }
4704 rm -f core conftest.err conftest.$ac_objext \
4705 conftest$ac_exeext conftest.$ac_ext
4706 CXXFLAGS="$llvm_cv_old_cxxflags"
4710 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4711 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4712 cat >conftest.$ac_ext <<_ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4719 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4720 #error This version of GCC is too old to build LLVM
4724 rm -f conftest.$ac_objext
4725 if { (ac_try="$ac_compile"
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_compile") 2>conftest.er1
4733 grep -v '^ *+' conftest.er1 >conftest.err
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4739 { (case "(($ac_try" in
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744 (eval "$ac_try") 2>&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_try") 2>&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 { echo "$as_me:$LINENO: result: yes" >&5
4759 echo "${ECHO_T}yes" >&6; }
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4764 { echo "$as_me:$LINENO: result: no" >&5
4765 echo "${ECHO_T}no" >&6; }
4766 { { echo "$as_me:$LINENO: error:
4767 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4768 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4769 bypass these sanity checks." >&5
4770 echo "$as_me: error:
4771 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4772 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4773 bypass these sanity checks." >&2;}
4774 { (exit 1); exit 1; }; }
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4791 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4792 { (exit 1); exit 1; }; }
4796 # Check whether --enable-cxx1y was given.
4797 if test "${enable_cxx1y+set}" = set; then
4798 enableval=$enable_cxx1y;
4803 case "$enableval" in
4808 default) ENABLE_CXX1Y=0
4810 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4811 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4812 { (exit 1); exit 1; }; } ;;
4815 # Check whether --enable-split-dwarf was given.
4816 if test "${enable_split_dwarf+set}" = set; then
4817 enableval=$enable_split_dwarf;
4822 case "$enableval" in
4823 yes) ENABLE_SPLIT_DWARF=1
4825 no) ENABLE_SPLIT_DWARF=0
4827 default) ENABLE_SPLIT_DWARF=0
4829 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4830 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4831 { (exit 1); exit 1; }; } ;;
4835 # Check whether --enable-clang-arcmt was given.
4836 if test "${enable_clang_arcmt+set}" = set; then
4837 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4842 case "$enableval" in
4843 yes) ENABLE_CLANG_ARCMT=1
4845 no) ENABLE_CLANG_ARCMT=0
4847 default) ENABLE_CLANG_ARCMT=1
4849 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4850 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4851 { (exit 1); exit 1; }; } ;;
4854 clang_plugin_support="yes"
4855 # Check whether --enable-clang-plugin-support was given.
4856 if test "${enable_clang_plugin_support+set}" = set; then
4857 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4862 case "$enableval" in
4863 yes) CLANG_PLUGIN_SUPPORT=1
4865 no) CLANG_PLUGIN_SUPPORT=0
4867 default) CLANG_PLUGIN_SUPPORT=1
4869 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4870 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4871 { (exit 1); exit 1; }; } ;;
4874 clang_static_analyzer="yes"
4875 # Check whether --enable-clang-static-analyzer was given.
4876 if test "${enable_clang_static_analyzer+set}" = set; then
4877 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4882 case "$enableval" in
4883 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4886 if test ${clang_arcmt} != "no" ; then
4887 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4888 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4889 { (exit 1); exit 1; }; }
4891 ENABLE_CLANG_STATIC_ANALYZER=0
4894 default) ENABLE_CLANG_STATIC_ANALYZER=1
4896 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4897 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4898 { (exit 1); exit 1; }; } ;;
4901 # Check whether --enable-optimized was given.
4902 if test "${enable_optimized+set}" = set; then
4903 enableval=$enable_optimized;
4908 if test ${enableval} = "no" ; then
4912 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4916 # Check whether --enable-profiling was given.
4917 if test "${enable_profiling+set}" = set; then
4918 enableval=$enable_profiling;
4923 if test ${enableval} = "no" ; then
4927 ENABLE_PROFILING=ENABLE_PROFILING=1
4931 # Check whether --enable-assertions was given.
4932 if test "${enable_assertions+set}" = set; then
4933 enableval=$enable_assertions;
4938 if test ${enableval} = "yes" ; then
4942 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4946 # Check whether --enable-werror was given.
4947 if test "${enable_werror+set}" = set; then
4948 enableval=$enable_werror;
4953 case "$enableval" in
4954 yes) ENABLE_WERROR=1
4958 default) ENABLE_WERROR=0
4960 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4961 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4962 { (exit 1); exit 1; }; } ;;
4965 # Check whether --enable-expensive-checks was given.
4966 if test "${enable_expensive_checks+set}" = set; then
4967 enableval=$enable_expensive_checks;
4972 if test ${enableval} = "yes" ; then
4973 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4975 EXPENSIVE_CHECKS=yes
4978 ENABLE_EXPENSIVE_CHECKS=
4984 # Check whether --enable-debug-runtime was given.
4985 if test "${enable_debug_runtime+set}" = set; then
4986 enableval=$enable_debug_runtime;
4991 if test ${enableval} = "no" ; then
4995 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4999 # Check whether --enable-debug-symbols was given.
5000 if test "${enable_debug_symbols+set}" = set; then
5001 enableval=$enable_debug_symbols;
5006 if test ${enableval} = "no" ; then
5010 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5014 # Check whether --enable-keep-symbols was given.
5015 if test "${enable_keep_symbols+set}" = set; then
5016 enableval=$enable_keep_symbols;
5021 if test ${enableval} = "no" ; then
5025 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5029 # Check whether --enable-jit was given.
5030 if test "${enable_jit+set}" = set; then
5031 enableval=$enable_jit;
5036 if test ${enableval} = "no"
5041 case "$llvm_cv_target_arch" in
5042 x86) TARGET_HAS_JIT=1
5044 Sparc) TARGET_HAS_JIT=0
5046 PowerPC) TARGET_HAS_JIT=1
5048 x86_64) TARGET_HAS_JIT=1
5050 ARM) TARGET_HAS_JIT=1
5052 Mips) TARGET_HAS_JIT=1
5054 XCore) TARGET_HAS_JIT=0
5056 MSP430) TARGET_HAS_JIT=0
5058 Hexagon) TARGET_HAS_JIT=0
5060 NVPTX) TARGET_HAS_JIT=0
5062 SystemZ) TARGET_HAS_JIT=1
5069 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5070 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5073 # Check whether --enable-docs was given.
5074 if test "${enable_docs+set}" = set; then
5075 enableval=$enable_docs;
5080 case "$enableval" in
5085 default) ENABLE_DOCS=1
5087 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5088 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5089 { (exit 1); exit 1; }; } ;;
5092 # Check whether --enable-doxygen was given.
5093 if test "${enable_doxygen+set}" = set; then
5094 enableval=$enable_doxygen;
5099 case "$enableval" in
5100 yes) ENABLE_DOXYGEN=1
5102 no) ENABLE_DOXYGEN=0
5104 default) ENABLE_DOXYGEN=0
5106 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5107 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5108 { (exit 1); exit 1; }; } ;;
5111 # Check whether --enable-threads was given.
5112 if test "${enable_threads+set}" = set; then
5113 enableval=$enable_threads;
5118 case "$enableval" in
5119 yes) LLVM_ENABLE_THREADS=1
5121 no) LLVM_ENABLE_THREADS=0
5123 default) LLVM_ENABLE_THREADS=1
5125 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5126 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5127 { (exit 1); exit 1; }; } ;;
5130 cat >>confdefs.h <<_ACEOF
5131 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5135 # Check whether --enable-pthreads was given.
5136 if test "${enable_pthreads+set}" = set; then
5137 enableval=$enable_pthreads;
5142 case "$enableval" in
5143 yes) ENABLE_PTHREADS=1
5145 no) ENABLE_PTHREADS=0
5147 default) ENABLE_PTHREADS=1
5149 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5150 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5151 { (exit 1); exit 1; }; } ;;
5154 # Check whether --enable-zlib was given.
5155 if test "${enable_zlib+set}" = set; then
5156 enableval=$enable_zlib;
5161 case "$enableval" in
5162 yes) LLVM_ENABLE_ZLIB=1
5164 no) LLVM_ENABLE_ZLIB=0
5166 default) LLVM_ENABLE_ZLIB=1
5168 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5169 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5170 { (exit 1); exit 1; }; } ;;
5173 cat >>confdefs.h <<_ACEOF
5174 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5178 # Check whether --enable-pic was given.
5179 if test "${enable_pic+set}" = set; then
5180 enableval=$enable_pic;
5185 case "$enableval" in
5190 default) ENABLE_PIC=1
5192 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5193 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5194 { (exit 1); exit 1; }; } ;;
5197 cat >>confdefs.h <<_ACEOF
5198 #define ENABLE_PIC $ENABLE_PIC
5202 # Check whether --enable-shared was given.
5203 if test "${enable_shared+set}" = set; then
5204 enableval=$enable_shared;
5209 case "$enableval" in
5210 yes) ENABLE_SHARED=1
5214 default) ENABLE_SHARED=0
5216 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5217 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5218 { (exit 1); exit 1; }; } ;;
5221 # Check whether --enable-embed-stdcxx was given.
5222 if test "${enable_embed_stdcxx+set}" = set; then
5223 enableval=$enable_embed_stdcxx;
5228 case "$enableval" in
5229 yes) ENABLE_EMBED_STDCXX=1
5231 no) ENABLE_EMBED_STDCXX=0
5233 default) ENABLE_EMBED_STDCXX=0
5235 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5236 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5237 { (exit 1); exit 1; }; } ;;
5240 # Check whether --enable-timestamps was given.
5241 if test "${enable_timestamps+set}" = set; then
5242 enableval=$enable_timestamps;
5247 case "$enableval" in
5248 yes) ENABLE_TIMESTAMPS=1
5250 no) ENABLE_TIMESTAMPS=0
5252 default) ENABLE_TIMESTAMPS=1
5254 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5255 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5256 { (exit 1); exit 1; }; } ;;
5259 cat >>confdefs.h <<_ACEOF
5260 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5264 # Check whether --enable-backtraces was given.
5265 if test "${enable_backtraces+set}" = set; then
5266 enableval=$enable_backtraces; case "$enableval" in
5267 yes) llvm_cv_enable_backtraces="yes" ;;
5268 no) llvm_cv_enable_backtraces="no" ;;
5269 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5274 llvm_cv_enable_backtraces="yes"
5277 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5279 cat >>confdefs.h <<\_ACEOF
5280 #define ENABLE_BACKTRACES 1
5285 # Check whether --enable-crash-overrides was given.
5286 if test "${enable_crash_overrides+set}" = set; then
5287 enableval=$enable_crash_overrides; case "$enableval" in
5288 yes) llvm_cv_enable_crash_overrides="yes" ;;
5289 no) llvm_cv_enable_crash_overrides="no" ;;
5290 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5291 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5292 { (exit 1); exit 1; }; } ;;
5295 llvm_cv_enable_crash_overrides="yes"
5298 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5300 cat >>confdefs.h <<\_ACEOF
5301 #define ENABLE_CRASH_OVERRIDES 1
5306 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5307 ALL_TARGETS=$ALL_TARGETS
5311 # Check whether --enable-targets was given.
5312 if test "${enable_targets+set}" = set; then
5313 enableval=$enable_targets;
5318 if test "$enableval" = host-only ; then
5321 case "$enableval" in
5322 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5323 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5325 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5326 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5328 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5329 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5330 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5331 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5332 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5333 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5334 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5337 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5338 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5339 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5340 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5341 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5342 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5343 host) case "$llvm_cv_target_arch" in
5344 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5345 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5346 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5347 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5348 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5349 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5350 Mips) 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 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5354 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5355 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5356 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5357 echo "$as_me: error: Can not set target to build" >&2;}
5358 { (exit 1); exit 1; }; } ;;
5360 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5361 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5362 { (exit 1); exit 1; }; } ;;
5368 # Check whether --enable-experimental-targets was given.
5369 if test "${enable_experimental_targets+set}" = set; then
5370 enableval=$enable_experimental_targets;
5376 if test ${enableval} != "disable"
5378 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5381 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5384 for a_target in $TARGETS_TO_BUILD; do
5385 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5387 cat >>confdefs.h <<_ACEOF
5388 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5391 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5392 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5393 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5394 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5395 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5396 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5398 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5399 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5402 cat >>confdefs.h <<_ACEOF
5403 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5407 cat >>confdefs.h <<_ACEOF
5408 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5412 cat >>confdefs.h <<_ACEOF
5413 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5417 cat >>confdefs.h <<_ACEOF
5418 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5421 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5428 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5430 cat >>confdefs.h <<_ACEOF
5431 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5438 LLVM_ENUM_TARGETS=""
5439 LLVM_ENUM_ASM_PRINTERS=""
5440 LLVM_ENUM_ASM_PARSERS=""
5441 LLVM_ENUM_DISASSEMBLERS=""
5442 for target_to_build in $TARGETS_TO_BUILD; do
5443 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5444 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5445 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5447 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5448 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5450 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5451 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5460 # Check whether --with-optimize-option was given.
5461 if test "${with_optimize_option+set}" = set; then
5462 withval=$with_optimize_option;
5467 { echo "$as_me:$LINENO: checking optimization flags" >&5
5468 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5471 case "$llvm_cv_os_type" in
5472 FreeBSD) optimize_option=-O2 ;;
5473 MingW) optimize_option=-O2 ;;
5474 *) optimize_option=-O3 ;;
5476 *) optimize_option="$withval" ;;
5478 OPTIMIZE_OPTION=$optimize_option
5480 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5481 echo "${ECHO_T}$optimize_option" >&6; }
5484 # Check whether --with-extra-options was given.
5485 if test "${with_extra_options+set}" = set; then
5486 withval=$with_extra_options;
5492 default) EXTRA_OPTIONS= ;;
5493 *) EXTRA_OPTIONS=$withval ;;
5495 EXTRA_OPTIONS=$EXTRA_OPTIONS
5499 # Check whether --with-extra-ld-options was given.
5500 if test "${with_extra_ld_options+set}" = set; then
5501 withval=$with_extra_ld_options;
5507 default) EXTRA_LD_OPTIONS= ;;
5508 *) EXTRA_LD_OPTIONS=$withval ;;
5510 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5513 # Check whether --enable-bindings was given.
5514 if test "${enable_bindings+set}" = set; then
5515 enableval=$enable_bindings;
5520 BINDINGS_TO_BUILD=""
5521 case "$enableval" in
5522 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5523 all ) BINDINGS_TO_BUILD="ocaml" ;;
5524 none | no) BINDINGS_TO_BUILD="" ;;
5525 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5526 case "$a_binding" in
5527 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5528 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5529 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5530 { (exit 1); exit 1; }; } ;;
5537 # Check whether --with-ocaml-libdir was given.
5538 if test "${with_ocaml_libdir+set}" = set; then
5539 withval=$with_ocaml_libdir;
5545 auto) with_ocaml_libdir="$withval" ;;
5546 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5547 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5548 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5549 { (exit 1); exit 1; }; } ;;
5553 # Check whether --with-clang-srcdir was given.
5554 if test "${with_clang_srcdir+set}" = set; then
5555 withval=$with_clang_srcdir;
5561 -) clang_src_root="" ;;
5562 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5563 *) clang_src_root="$ac_pwd/$withval" ;;
5565 CLANG_SRC_ROOT=$clang_src_root
5569 # Check whether --with-clang-resource-dir was given.
5570 if test "${with_clang_resource_dir+set}" = set; then
5571 withval=$with_clang_resource_dir;
5577 cat >>confdefs.h <<_ACEOF
5578 #define CLANG_RESOURCE_DIR "$withval"
5583 # Check whether --with-c-include-dirs was given.
5584 if test "${with_c_include_dirs+set}" = set; then
5585 withval=$with_c_include_dirs;
5591 cat >>confdefs.h <<_ACEOF
5592 #define C_INCLUDE_DIRS "$withval"
5596 # Clang normally uses the system c++ headers and libraries. With this option,
5597 # clang will use the ones provided by a gcc installation instead. This option should
5598 # be passed the same value that was used with --prefix when configuring gcc.
5600 # Check whether --with-gcc-toolchain was given.
5601 if test "${with_gcc_toolchain+set}" = set; then
5602 withval=$with_gcc_toolchain;
5608 cat >>confdefs.h <<_ACEOF
5609 #define GCC_INSTALL_PREFIX "$withval"
5614 # Check whether --with-default-sysroot was given.
5615 if test "${with_default_sysroot+set}" = set; then
5616 withval=$with_default_sysroot;
5622 cat >>confdefs.h <<_ACEOF
5623 #define DEFAULT_SYSROOT "$withval"
5628 # Check whether --with-binutils-include was given.
5629 if test "${with_binutils_include+set}" = set; then
5630 withval=$with_binutils_include;
5636 default) WITH_BINUTILS_INCDIR=default ;;
5637 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5638 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5639 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5640 { (exit 1); exit 1; }; } ;;
5642 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5643 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5645 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5646 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5647 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5648 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5649 { (exit 1); exit 1; }; };
5654 # Check whether --with-bug-report-url was given.
5655 if test "${with_bug_report_url+set}" = set; then
5656 withval=$with_bug_report_url;
5658 withval="http://llvm.org/bugs/"
5662 cat >>confdefs.h <<_ACEOF
5663 #define BUG_REPORT_URL "$withval"
5667 # Check whether --enable-terminfo was given.
5668 if test "${enable_terminfo+set}" = set; then
5669 enableval=$enable_terminfo; case "$enableval" in
5670 yes) llvm_cv_enable_terminfo="yes" ;;
5671 no) llvm_cv_enable_terminfo="no" ;;
5672 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5673 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5674 { (exit 1); exit 1; }; } ;;
5677 llvm_cv_enable_terminfo="yes"
5680 case "$llvm_cv_enable_terminfo" in
5681 yes) ENABLE_TERMINFO=1
5683 no) ENABLE_TERMINFO=0
5687 # Check whether --enable-libedit was given.
5688 if test "${enable_libedit+set}" = set; then
5689 enableval=$enable_libedit; case "$enableval" in
5690 yes) llvm_cv_enable_libedit="yes" ;;
5691 no) llvm_cv_enable_libedit="no" ;;
5692 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5693 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5694 { (exit 1); exit 1; }; } ;;
5697 llvm_cv_enable_libedit="yes"
5701 # Check whether --enable-libffi was given.
5702 if test "${enable_libffi+set}" = set; then
5703 enableval=$enable_libffi; case "$enableval" in
5704 yes) llvm_cv_enable_libffi="yes" ;;
5705 no) llvm_cv_enable_libffi="no" ;;
5706 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5707 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5708 { (exit 1); exit 1; }; } ;;
5711 llvm_cv_enable_libffi=no
5716 # Check whether --with-internal-prefix was given.
5717 if test "${with_internal_prefix+set}" = set; then
5718 withval=$with_internal_prefix;
5723 INTERNAL_PREFIX=$withval
5727 { echo "$as_me:$LINENO: checking for GNU make" >&5
5728 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5729 if test "${llvm_cv_gnu_make_command+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 llvm_cv_gnu_make_command=''
5733 for a in "$MAKE" make gmake gnumake ; do
5734 if test -z "$a" ; then continue ; fi ;
5735 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5737 llvm_cv_gnu_make_command=$a ;
5742 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5743 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5744 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5748 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5749 echo "${ECHO_T}\"Not found\"" >&6; };
5753 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5754 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5756 if test "$LN_S" = "ln -s"; then
5757 { echo "$as_me:$LINENO: result: yes" >&5
5758 echo "${ECHO_T}yes" >&6; }
5760 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5761 echo "${ECHO_T}no, using $LN_S" >&6; }
5764 # Extract the first word of "nm", so it can be a program name with args.
5765 set dummy nm; ac_word=$2
5766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5768 if test "${ac_cv_path_NM+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5796 if test -n "$NM"; then
5797 { echo "$as_me:$LINENO: result: $NM" >&5
5798 echo "${ECHO_T}$NM" >&6; }
5800 { echo "$as_me:$LINENO: result: no" >&5
5801 echo "${ECHO_T}no" >&6; }
5805 # Extract the first word of "cmp", so it can be a program name with args.
5806 set dummy cmp; ac_word=$2
5807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5809 if test "${ac_cv_path_CMP+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5837 if test -n "$CMP"; then
5838 { echo "$as_me:$LINENO: result: $CMP" >&5
5839 echo "${ECHO_T}$CMP" >&6; }
5841 { echo "$as_me:$LINENO: result: no" >&5
5842 echo "${ECHO_T}no" >&6; }
5846 # Extract the first word of "cp", so it can be a program name with args.
5847 set dummy cp; ac_word=$2
5848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5850 if test "${ac_cv_path_CP+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5865 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5878 if test -n "$CP"; then
5879 { echo "$as_me:$LINENO: result: $CP" >&5
5880 echo "${ECHO_T}$CP" >&6; }
5882 { echo "$as_me:$LINENO: result: no" >&5
5883 echo "${ECHO_T}no" >&6; }
5887 # Extract the first word of "date", so it can be a program name with args.
5888 set dummy date; ac_word=$2
5889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5891 if test "${ac_cv_path_DATE+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5906 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5918 DATE=$ac_cv_path_DATE
5919 if test -n "$DATE"; then
5920 { echo "$as_me:$LINENO: result: $DATE" >&5
5921 echo "${ECHO_T}$DATE" >&6; }
5923 { echo "$as_me:$LINENO: result: no" >&5
5924 echo "${ECHO_T}no" >&6; }
5928 # Extract the first word of "find", so it can be a program name with args.
5929 set dummy find; ac_word=$2
5930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5932 if test "${ac_cv_path_FIND+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5947 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5959 FIND=$ac_cv_path_FIND
5960 if test -n "$FIND"; then
5961 { echo "$as_me:$LINENO: result: $FIND" >&5
5962 echo "${ECHO_T}$FIND" >&6; }
5964 { echo "$as_me:$LINENO: result: no" >&5
5965 echo "${ECHO_T}no" >&6; }
5969 # Extract the first word of "grep", so it can be a program name with args.
5970 set dummy grep; ac_word=$2
5971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5973 if test "${ac_cv_path_GREP+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5988 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6000 GREP=$ac_cv_path_GREP
6001 if test -n "$GREP"; then
6002 { echo "$as_me:$LINENO: result: $GREP" >&5
6003 echo "${ECHO_T}$GREP" >&6; }
6005 { echo "$as_me:$LINENO: result: no" >&5
6006 echo "${ECHO_T}no" >&6; }
6010 # Extract the first word of "mkdir", so it can be a program name with args.
6011 set dummy mkdir; ac_word=$2
6012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6014 if test "${ac_cv_path_MKDIR+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6041 MKDIR=$ac_cv_path_MKDIR
6042 if test -n "$MKDIR"; then
6043 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6044 echo "${ECHO_T}$MKDIR" >&6; }
6046 { echo "$as_me:$LINENO: result: no" >&5
6047 echo "${ECHO_T}no" >&6; }
6051 # Extract the first word of "mv", so it can be a program name with args.
6052 set dummy mv; ac_word=$2
6053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055 if test "${ac_cv_path_MV+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6083 if test -n "$MV"; then
6084 { echo "$as_me:$LINENO: result: $MV" >&5
6085 echo "${ECHO_T}$MV" >&6; }
6087 { echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6; }
6092 if test -n "$ac_tool_prefix"; then
6093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6094 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6097 if test "${ac_cv_prog_RANLIB+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 if test -n "$RANLIB"; then
6101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6110 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 RANLIB=$ac_cv_prog_RANLIB
6121 if test -n "$RANLIB"; then
6122 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6123 echo "${ECHO_T}$RANLIB" >&6; }
6125 { echo "$as_me:$LINENO: result: no" >&5
6126 echo "${ECHO_T}no" >&6; }
6131 if test -z "$ac_cv_prog_RANLIB"; then
6132 ac_ct_RANLIB=$RANLIB
6133 # Extract the first word of "ranlib", so it can be a program name with args.
6134 set dummy ranlib; ac_word=$2
6135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6137 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 if test -n "$ac_ct_RANLIB"; then
6141 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6150 ac_cv_prog_ac_ct_RANLIB="ranlib"
6151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6161 if test -n "$ac_ct_RANLIB"; then
6162 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6163 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6165 { echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6; }
6169 if test "x$ac_ct_RANLIB" = x; then
6172 case $cross_compiling:$ac_tool_warned in
6174 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6175 whose name does not start with the host triplet. If you think this
6176 configuration is useful to you, please write to autoconf@gnu.org." >&5
6177 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6178 whose name does not start with the host triplet. If you think this
6179 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6180 ac_tool_warned=yes ;;
6182 RANLIB=$ac_ct_RANLIB
6185 RANLIB="$ac_cv_prog_RANLIB"
6188 if test -n "$ac_tool_prefix"; then
6189 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6190 set dummy ${ac_tool_prefix}ar; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_prog_AR+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 if test -n "$AR"; then
6197 ac_cv_prog_AR="$AR" # Let the user override the test.
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206 ac_cv_prog_AR="${ac_tool_prefix}ar"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 if test -n "$AR"; then
6218 { echo "$as_me:$LINENO: result: $AR" >&5
6219 echo "${ECHO_T}$AR" >&6; }
6221 { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6227 if test -z "$ac_cv_prog_AR"; then
6229 # Extract the first word of "ar", so it can be a program name with args.
6230 set dummy ar; ac_word=$2
6231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 if test -n "$ac_ct_AR"; then
6237 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_prog_ac_ct_AR="ar"
6247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6257 if test -n "$ac_ct_AR"; then
6258 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6259 echo "${ECHO_T}$ac_ct_AR" >&6; }
6261 { echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6; }
6265 if test "x$ac_ct_AR" = x; then
6268 case $cross_compiling:$ac_tool_warned in
6270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6271 whose name does not start with the host triplet. If you think this
6272 configuration is useful to you, please write to autoconf@gnu.org." >&5
6273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6274 whose name does not start with the host triplet. If you think this
6275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6276 ac_tool_warned=yes ;;
6284 # Extract the first word of "rm", so it can be a program name with args.
6285 set dummy rm; ac_word=$2
6286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6288 if test "${ac_cv_path_RM+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6303 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6316 if test -n "$RM"; then
6317 { echo "$as_me:$LINENO: result: $RM" >&5
6318 echo "${ECHO_T}$RM" >&6; }
6320 { echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6; }
6325 # Extract the first word of "sed", so it can be a program name with args.
6326 set dummy sed; ac_word=$2
6327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6329 if test "${ac_cv_path_SED+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6344 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6357 if test -n "$SED"; then
6358 { echo "$as_me:$LINENO: result: $SED" >&5
6359 echo "${ECHO_T}$SED" >&6; }
6361 { echo "$as_me:$LINENO: result: no" >&5
6362 echo "${ECHO_T}no" >&6; }
6366 # Extract the first word of "tar", so it can be a program name with args.
6367 set dummy tar; ac_word=$2
6368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6370 if test "${ac_cv_path_TAR+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6385 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6398 if test -n "$TAR"; then
6399 { echo "$as_me:$LINENO: result: $TAR" >&5
6400 echo "${ECHO_T}$TAR" >&6; }
6402 { echo "$as_me:$LINENO: result: no" >&5
6403 echo "${ECHO_T}no" >&6; }
6407 # Extract the first word of "pwd", so it can be a program name with args.
6408 set dummy pwd; ac_word=$2
6409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6411 if test "${ac_cv_path_BINPWD+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6426 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6438 BINPWD=$ac_cv_path_BINPWD
6439 if test -n "$BINPWD"; then
6440 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6441 echo "${ECHO_T}$BINPWD" >&6; }
6443 { echo "$as_me:$LINENO: result: no" >&5
6444 echo "${ECHO_T}no" >&6; }
6449 # Extract the first word of "dot", so it can be a program name with args.
6450 set dummy dot; ac_word=$2
6451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6453 if test "${ac_cv_path_DOT+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6468 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6481 if test -n "$DOT"; then
6482 { echo "$as_me:$LINENO: result: $DOT" >&5
6483 echo "${ECHO_T}$DOT" >&6; }
6485 { echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6; }
6490 if test "$DOT" != "echo dot" ; then
6492 cat >>confdefs.h <<\_ACEOF
6496 if test "$llvm_cv_os_type" = "MingW" ; then
6497 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6500 cat >>confdefs.h <<_ACEOF
6501 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6506 # Find a good install program. We prefer a C program (faster),
6507 # so one script is as good as another. But avoid the broken or
6508 # incompatible versions:
6509 # SysV /etc/install, /usr/sbin/install
6510 # SunOS /usr/etc/install
6511 # IRIX /sbin/install
6513 # AmigaOS /C/install, which installs bootblocks on floppy discs
6514 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6515 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6516 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6517 # OS/2's system install, which has a completely different semantic
6518 # ./install, which can be erroneously created by make from ./install.sh.
6519 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6520 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6521 if test -z "$INSTALL"; then
6522 if test "${ac_cv_path_install+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 # Account for people who put trailing slashes in PATH elements.
6532 ./ | .// | /cC/* | \
6533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6534 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6537 # OSF1 and SCO ODT 3.0 have their own names for install.
6538 # Don't use installbsd from OSF since it installs stuff as root
6540 for ac_prog in ginstall scoinst install; do
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6543 if test $ac_prog = install &&
6544 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6545 # AIX install. It has an incompatible calling convention.
6547 elif test $ac_prog = install &&
6548 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6549 # program-specific install script used by HP pwplus--don't use.
6552 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6565 if test "${ac_cv_path_install+set}" = set; then
6566 INSTALL=$ac_cv_path_install
6568 # As a last resort, use the slow shell script. Don't cache a
6569 # value for INSTALL within a source directory, because that will
6570 # break other packages using the cache if that directory is
6571 # removed, or if the value is a relative name.
6572 INSTALL=$ac_install_sh
6575 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6576 echo "${ECHO_T}$INSTALL" >&6; }
6578 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6579 # It thinks the first close brace ends the variable substitution.
6580 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6582 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6584 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6587 [\\/$]* | ?:[\\/]* ) ;;
6588 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6591 # Extract the first word of "bzip2", so it can be a program name with args.
6592 set dummy bzip2; ac_word=$2
6593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595 if test "${ac_cv_path_BZIP2+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6610 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 BZIP2=$ac_cv_path_BZIP2
6622 if test -n "$BZIP2"; then
6623 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6624 echo "${ECHO_T}$BZIP2" >&6; }
6626 { echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6; }
6631 # Extract the first word of "cat", so it can be a program name with args.
6632 set dummy cat; ac_word=$2
6633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635 if test "${ac_cv_path_CAT+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 if test -n "$CAT"; then
6663 { echo "$as_me:$LINENO: result: $CAT" >&5
6664 echo "${ECHO_T}$CAT" >&6; }
6666 { echo "$as_me:$LINENO: result: no" >&5
6667 echo "${ECHO_T}no" >&6; }
6671 # Extract the first word of "doxygen", so it can be a program name with args.
6672 set dummy doxygen; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 DOXYGEN=$ac_cv_path_DOXYGEN
6702 if test -n "$DOXYGEN"; then
6703 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6704 echo "${ECHO_T}$DOXYGEN" >&6; }
6706 { echo "$as_me:$LINENO: result: no" >&5
6707 echo "${ECHO_T}no" >&6; }
6711 # Extract the first word of "groff", so it can be a program name with args.
6712 set dummy groff; ac_word=$2
6713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6715 if test "${ac_cv_path_GROFF+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 GROFF=$ac_cv_path_GROFF
6742 if test -n "$GROFF"; then
6743 { echo "$as_me:$LINENO: result: $GROFF" >&5
6744 echo "${ECHO_T}$GROFF" >&6; }
6746 { echo "$as_me:$LINENO: result: no" >&5
6747 echo "${ECHO_T}no" >&6; }
6751 # Extract the first word of "gzip", so it can be a program name with args.
6752 set dummy gzip; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 GZIPBIN=$ac_cv_path_GZIPBIN
6782 if test -n "$GZIPBIN"; then
6783 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6784 echo "${ECHO_T}$GZIPBIN" >&6; }
6786 { echo "$as_me:$LINENO: result: no" >&5
6787 echo "${ECHO_T}no" >&6; }
6791 # Extract the first word of "pdfroff", so it can be a program name with args.
6792 set dummy pdfroff; ac_word=$2
6793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795 if test "${ac_cv_path_PDFROFF+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6810 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 PDFROFF=$ac_cv_path_PDFROFF
6822 if test -n "$PDFROFF"; then
6823 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6824 echo "${ECHO_T}$PDFROFF" >&6; }
6826 { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6831 # Extract the first word of "zip", so it can be a program name with args.
6832 set dummy zip; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_ZIP+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 if test -n "$ZIP"; then
6863 { echo "$as_me:$LINENO: result: $ZIP" >&5
6864 echo "${ECHO_T}$ZIP" >&6; }
6866 { echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6; }
6871 # Extract the first word of "go", so it can be a program name with args.
6872 set dummy go; ac_word=$2
6873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6875 if test "${ac_cv_path_GO+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 ac_cv_path_GO="$GO" # Let the user override the test with a path.
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 if test -n "$GO"; then
6903 { echo "$as_me:$LINENO: result: $GO" >&5
6904 echo "${ECHO_T}$GO" >&6; }
6906 { echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6; }
6911 for ac_prog in ocamlfind
6913 # Extract the first word of "$ac_prog", so it can be a program name with args.
6914 set dummy $ac_prog; ac_word=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
6933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 OCAMLFIND=$ac_cv_path_OCAMLFIND
6944 if test -n "$OCAMLFIND"; then
6945 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
6946 echo "${ECHO_T}$OCAMLFIND" >&6; }
6948 { echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6; }
6953 test -n "$OCAMLFIND" && break
6956 for ac_prog in gas as
6958 # Extract the first word of "$ac_prog", so it can be a program name with args.
6959 set dummy $ac_prog; ac_word=$2
6960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962 if test "${ac_cv_path_GAS+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 if test -n "$GAS"; then
6990 { echo "$as_me:$LINENO: result: $GAS" >&5
6991 echo "${ECHO_T}$GAS" >&6; }
6993 { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6998 test -n "$GAS" && break
7002 { echo "$as_me:$LINENO: checking for linker version" >&5
7003 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7004 if test "${llvm_cv_link_version+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7011 if (echo "$version_string" | grep -q "ld64"); then
7012 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7014 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7018 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7019 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7021 cat >>confdefs.h <<_ACEOF
7022 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7028 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7029 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7030 if test "${llvm_cv_link_use_r+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 ac_cpp='$CPP $CPPFLAGS'
7035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7040 CFLAGS="$CFLAGS -Wl,-R."
7041 cat >conftest.$ac_ext <<_ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7056 rm -f conftest.$ac_objext conftest$ac_exeext
7057 if { (ac_try="$ac_link"
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_link") 2>conftest.er1
7065 grep -v '^ *+' conftest.er1 >conftest.err
7067 cat conftest.err >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } &&
7070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7071 { (case "(($ac_try" in
7072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7073 *) ac_try_echo=$ac_try;;
7075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076 (eval "$ac_try") 2>&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; } &&
7080 { ac_try='test -s conftest$ac_exeext'
7081 { (case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086 (eval "$ac_try") 2>&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 llvm_cv_link_use_r=yes
7092 echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7095 llvm_cv_link_use_r=no
7098 rm -f core conftest.err conftest.$ac_objext \
7099 conftest$ac_exeext conftest.$ac_ext
7102 ac_cpp='$CPP $CPPFLAGS'
7103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7109 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7110 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7111 if test "$llvm_cv_link_use_r" = yes ; then
7113 cat >>confdefs.h <<\_ACEOF
7114 #define HAVE_LINK_R 1
7120 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7121 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7122 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7132 CFLAGS="$CFLAGS -rdynamic"
7133 cat >conftest.$ac_ext <<_ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7148 rm -f conftest.$ac_objext conftest$ac_exeext
7149 if { (ac_try="$ac_link"
7151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152 *) ac_try_echo=$ac_try;;
7154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7155 (eval "$ac_link") 2>conftest.er1
7157 grep -v '^ *+' conftest.er1 >conftest.err
7159 cat conftest.err >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } &&
7162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7163 { (case "(($ac_try" in
7164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165 *) ac_try_echo=$ac_try;;
7167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7168 (eval "$ac_try") 2>&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest$ac_exeext'
7173 { (case "(($ac_try" in
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178 (eval "$ac_try") 2>&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; }; then
7182 llvm_cv_link_use_export_dynamic=yes
7184 echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.$ac_ext >&5
7187 llvm_cv_link_use_export_dynamic=no
7190 rm -f core conftest.err conftest.$ac_objext \
7191 conftest$ac_exeext conftest.$ac_ext
7194 ac_cpp='$CPP $CPPFLAGS'
7195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7201 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7202 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7203 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7205 cat >>confdefs.h <<\_ACEOF
7206 #define HAVE_LINK_EXPORT_DYNAMIC 1
7212 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7213 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7214 if test "${llvm_cv_link_use_version_script+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 ac_cpp='$CPP $CPPFLAGS'
7219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7225 # The following code is from the autoconf manual,
7226 # "11.13: Limitations of Usual Tools".
7227 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7228 # Use mktemp if possible; otherwise fall back on mkdir,
7229 # with $RANDOM to make collisions less likely.
7233 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7235 test -n "$tmp" && test -d "$tmp"
7237 tmp=$TMPDIR/foo$$-$RANDOM
7238 (umask 077 && mkdir "$tmp")
7241 echo "{" > "$tmp/export.map"
7242 echo " global: main;" >> "$tmp/export.map"
7243 echo " local: *;" >> "$tmp/export.map"
7244 echo "};" >> "$tmp/export.map"
7246 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7247 cat >conftest.$ac_ext <<_ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7262 rm -f conftest.$ac_objext conftest$ac_exeext
7263 if { (ac_try="$ac_link"
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7269 (eval "$ac_link") 2>conftest.er1
7271 grep -v '^ *+' conftest.er1 >conftest.err
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } &&
7276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7277 { (case "(($ac_try" in
7278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279 *) ac_try_echo=$ac_try;;
7281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7282 (eval "$ac_try") 2>&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; } &&
7286 { ac_try='test -s conftest$ac_exeext'
7287 { (case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_try") 2>&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; }; then
7296 llvm_cv_link_use_version_script=yes
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7301 llvm_cv_link_use_version_script=no
7304 rm -f core conftest.err conftest.$ac_objext \
7305 conftest$ac_exeext conftest.$ac_ext
7306 rm "$tmp/export.map"
7310 ac_cpp='$CPP $CPPFLAGS'
7311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7317 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7318 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7319 if test "$llvm_cv_link_use_version_script" = yes ; then
7320 HAVE_LINK_VERSION_SCRIPT=1
7326 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7327 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7328 if test "${ac_cv_path_GREP+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 # Extract the first word of "grep ggrep" to use in msg output
7332 if test -z "$GREP"; then
7333 set dummy grep ggrep; ac_prog_name=$2
7334 if test "${ac_cv_path_GREP+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 ac_path_GREP_found=false
7338 # Loop through the user's path and test for each of PROGNAME-LIST
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7343 test -z "$as_dir" && as_dir=.
7344 for ac_prog in grep ggrep; do
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7347 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7348 # Check for GNU ac_path_GREP and select it if it is found.
7349 # Check for GNU $ac_path_GREP
7350 case `"$ac_path_GREP" --version 2>&1` in
7352 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7355 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7358 cat "conftest.in" "conftest.in" >"conftest.tmp"
7359 mv "conftest.tmp" "conftest.in"
7360 cp "conftest.in" "conftest.nl"
7361 echo 'GREP' >> "conftest.nl"
7362 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7364 ac_count=`expr $ac_count + 1`
7365 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7366 # Best one so far, save it but keep looking for a better one
7367 ac_cv_path_GREP="$ac_path_GREP"
7368 ac_path_GREP_max=$ac_count
7370 # 10*(2^10) chars as input seems more than enough
7371 test $ac_count -gt 10 && break
7373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7377 $ac_path_GREP_found && break 3
7387 GREP="$ac_cv_path_GREP"
7388 if test -z "$GREP"; then
7389 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7390 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7391 { (exit 1); exit 1; }; }
7395 ac_cv_path_GREP=$GREP
7400 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7401 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7402 GREP="$ac_cv_path_GREP"
7405 { echo "$as_me:$LINENO: checking for egrep" >&5
7406 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7407 if test "${ac_cv_path_EGREP+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7411 then ac_cv_path_EGREP="$GREP -E"
7413 # Extract the first word of "egrep" to use in msg output
7414 if test -z "$EGREP"; then
7415 set dummy egrep; ac_prog_name=$2
7416 if test "${ac_cv_path_EGREP+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 ac_path_EGREP_found=false
7420 # Loop through the user's path and test for each of PROGNAME-LIST
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7425 test -z "$as_dir" && as_dir=.
7426 for ac_prog in egrep; do
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7429 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7430 # Check for GNU ac_path_EGREP and select it if it is found.
7431 # Check for GNU $ac_path_EGREP
7432 case `"$ac_path_EGREP" --version 2>&1` in
7434 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7437 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7440 cat "conftest.in" "conftest.in" >"conftest.tmp"
7441 mv "conftest.tmp" "conftest.in"
7442 cp "conftest.in" "conftest.nl"
7443 echo 'EGREP' >> "conftest.nl"
7444 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7446 ac_count=`expr $ac_count + 1`
7447 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7448 # Best one so far, save it but keep looking for a better one
7449 ac_cv_path_EGREP="$ac_path_EGREP"
7450 ac_path_EGREP_max=$ac_count
7452 # 10*(2^10) chars as input seems more than enough
7453 test $ac_count -gt 10 && break
7455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7459 $ac_path_EGREP_found && break 3
7469 EGREP="$ac_cv_path_EGREP"
7470 if test -z "$EGREP"; then
7471 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7472 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7473 { (exit 1); exit 1; }; }
7477 ac_cv_path_EGREP=$EGREP
7483 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7484 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7485 EGREP="$ac_cv_path_EGREP"
7488 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7489 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7490 if test "${ac_cv_header_stdc+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 cat >conftest.$ac_ext <<_ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h. */
7512 rm -f conftest.$ac_objext
7513 if { (ac_try="$ac_compile"
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7521 grep -v '^ *+' conftest.er1 >conftest.err
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7527 { (case "(($ac_try" in
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7532 (eval "$ac_try") 2>&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }; } &&
7536 { ac_try='test -s conftest.$ac_objext'
7537 { (case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_try") 2>&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 ac_cv_header_stdc=yes
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 ac_cv_header_stdc=no
7554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556 if test $ac_cv_header_stdc = yes; then
7557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7558 cat >conftest.$ac_ext <<_ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7568 $EGREP "memchr" >/dev/null 2>&1; then
7571 ac_cv_header_stdc=no
7577 if test $ac_cv_header_stdc = yes; then
7578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7579 cat >conftest.$ac_ext <<_ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7589 $EGREP "free" >/dev/null 2>&1; then
7592 ac_cv_header_stdc=no
7598 if test $ac_cv_header_stdc = yes; then
7599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7600 if test "$cross_compiling" = yes; then
7603 cat >conftest.$ac_ext <<_ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7611 #if ((' ' & 0x0FF) == 0x020)
7612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7615 # define ISLOWER(c) \
7616 (('a' <= (c) && (c) <= 'i') \
7617 || ('j' <= (c) && (c) <= 'r') \
7618 || ('s' <= (c) && (c) <= 'z'))
7619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7627 for (i = 0; i < 256; i++)
7628 if (XOR (islower (i), ISLOWER (i))
7629 || toupper (i) != TOUPPER (i))
7634 rm -f conftest$ac_exeext
7635 if { (ac_try="$ac_link"
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641 (eval "$ac_link") 2>&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7645 { (case "(($ac_try" in
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_try") 2>&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7656 echo "$as_me: program exited with status $ac_status" >&5
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7661 ac_cv_header_stdc=no
7663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7669 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7670 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7671 if test $ac_cv_header_stdc = yes; then
7673 cat >>confdefs.h <<\_ACEOF
7674 #define STDC_HEADERS 1
7679 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7690 inttypes.h stdint.h unistd.h
7692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7698 cat >conftest.$ac_ext <<_ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7704 $ac_includes_default
7706 #include <$ac_header>
7708 rm -f conftest.$ac_objext
7709 if { (ac_try="$ac_compile"
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715 (eval "$ac_compile") 2>conftest.er1
7717 grep -v '^ *+' conftest.er1 >conftest.err
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } &&
7722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7723 { (case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_try") 2>&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest.$ac_objext'
7733 { (case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_try") 2>&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 eval "$as_ac_Header=yes"
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7747 eval "$as_ac_Header=no"
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 ac_res=`eval echo '${'$as_ac_Header'}'`
7753 { echo "$as_me:$LINENO: result: $ac_res" >&5
7754 echo "${ECHO_T}$ac_res" >&6; }
7755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7756 cat >>confdefs.h <<_ACEOF
7757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7766 for ac_header in errno.h
7768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 ac_res=`eval echo '${'$as_ac_Header'}'`
7776 { echo "$as_me:$LINENO: result: $ac_res" >&5
7777 echo "${ECHO_T}$ac_res" >&6; }
7779 # Is the header compilable?
7780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7782 cat >conftest.$ac_ext <<_ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 $ac_includes_default
7789 #include <$ac_header>
7791 rm -f conftest.$ac_objext
7792 if { (ac_try="$ac_compile"
7794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7795 *) ac_try_echo=$ac_try;;
7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798 (eval "$ac_compile") 2>conftest.er1
7800 grep -v '^ *+' conftest.er1 >conftest.err
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } &&
7805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7806 { (case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811 (eval "$ac_try") 2>&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; } &&
7815 { ac_try='test -s conftest.$ac_objext'
7816 { (case "(($ac_try" in
7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821 (eval "$ac_try") 2>&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; }; then
7825 ac_header_compiler=yes
7827 echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7830 ac_header_compiler=no
7833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7835 echo "${ECHO_T}$ac_header_compiler" >&6; }
7837 # Is the header present?
7838 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7840 cat >conftest.$ac_ext <<_ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7846 #include <$ac_header>
7848 if { (ac_try="$ac_cpp conftest.$ac_ext"
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7856 grep -v '^ *+' conftest.er1 >conftest.err
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } >/dev/null; then
7861 if test -s conftest.err; then
7862 ac_cpp_err=$ac_c_preproc_warn_flag
7863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7870 if test -z "$ac_cpp_err"; then
7871 ac_header_preproc=yes
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7876 ac_header_preproc=no
7879 rm -f conftest.err conftest.$ac_ext
7880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7881 echo "${ECHO_T}$ac_header_preproc" >&6; }
7883 # So? What about this header?
7884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7890 ac_header_preproc=yes
7893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7900 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7906 ## ------------------------------------ ##
7907 ## Report this to http://llvm.org/bugs/ ##
7908 ## ------------------------------------ ##
7910 ) | sed "s/^/$as_me: WARNING: /" >&2
7913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 eval "$as_ac_Header=\$ac_header_preproc"
7920 ac_res=`eval echo '${'$as_ac_Header'}'`
7921 { echo "$as_me:$LINENO: result: $ac_res" >&5
7922 echo "${ECHO_T}$ac_res" >&6; }
7925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7926 cat >>confdefs.h <<_ACEOF
7927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7935 case "$llvm_cv_os_type" in
7936 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
7937 Darwin) llvm_shlib_ext=.dylib ;;
7938 *) llvm_shlib_ext=.so ;;
7942 cat >>confdefs.h <<_ACEOF
7943 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
7947 { echo "$as_me:$LINENO: checking tool compatibility" >&5
7948 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
7961 if test "$GCC" != "yes" && test "$ICC" != "yes"
7963 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
7964 echo "$as_me: error: gcc|icc required but not found" >&2;}
7965 { (exit 1); exit 1; }; }
7968 if test "$GXX" != "yes" && test "$IXX" != "yes"
7970 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
7971 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
7972 { (exit 1); exit 1; }; }
7975 if test "$GCC" = "yes"
7977 cat >conftest.$ac_ext <<_ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7985 #if !defined(__GNUC__) || __GNUC__ < 3
7986 #error Unsupported GCC version
7991 rm -f conftest.$ac_objext
7992 if { (ac_try="$ac_compile"
7994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7995 *) ac_try_echo=$ac_try;;
7997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7998 (eval "$ac_compile") 2>conftest.er1
8000 grep -v '^ *+' conftest.er1 >conftest.err
8002 cat conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8006 { (case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_try") 2>&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; } &&
8015 { ac_try='test -s conftest.$ac_objext'
8016 { (case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_try") 2>&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8031 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8032 { (exit 1); exit 1; }; }
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 if test -z "$llvm_cv_gnu_make_command"
8040 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8041 echo "$as_me: error: GNU Make required but not found" >&2;}
8042 { (exit 1); exit 1; }; }
8045 { echo "$as_me:$LINENO: result: ok" >&5
8046 echo "${ECHO_T}ok" >&6; }
8048 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8049 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8050 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8052 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8054 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8058 NO_MAYBE_UNINITIALIZED=
8059 if test "$GXX" = "yes"
8061 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8063 if test -z "$NO_MAYBE_UNINITIALIZED"
8065 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8069 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8070 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8073 # Check whether --with-python was given.
8074 if test "${with_python+set}" = set; then
8075 withval=$with_python; PYTHON="$withval"
8079 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8080 { echo "$as_me:$LINENO: checking for python" >&5
8081 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8082 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8083 echo "${ECHO_T}user defined: $with_python" >&6; }
8085 if test -n "$PYTHON" ; then
8086 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8087 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8090 # Extract the first word of "python python2 python26", so it can be a program name with args.
8091 set dummy python python2 python26; ac_word=$2
8092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8094 if test "${ac_cv_path_PYTHON+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 test -z "$as_dir" && as_dir=.
8107 for ac_exec_ext in '' $ac_executable_extensions; do
8108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8109 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8118 echo "${ECHO_T}not found" >&6; }
8119 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8120 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8121 { (exit 1); exit 1; }; }"
8125 PYTHON=$ac_cv_path_PYTHON
8126 if test -n "$PYTHON"; then
8127 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8128 echo "${ECHO_T}$PYTHON" >&6; }
8130 { echo "$as_me:$LINENO: result: no" >&5
8131 echo "${ECHO_T}no" >&6; }
8137 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8138 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8139 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8140 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8141 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8142 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8143 if test "$ac_python_version_major" -gt "2" || \
8144 (test "$ac_python_version_major" -eq "2" && \
8145 test "$ac_python_version_minor" -ge "5") ; then
8146 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8147 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8149 { echo "$as_me:$LINENO: result: not found" >&5
8150 echo "${ECHO_T}not found" >&6; }
8151 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8152 See \`config.log' for more details." >&5
8153 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8154 See \`config.log' for more details." >&2;}
8155 { (exit 1); exit 1; }; }
8160 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8161 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8162 if test "${ac_cv_lib_m_sin+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 ac_check_lib_save_LIBS=$LIBS
8167 cat >conftest.$ac_ext <<_ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8174 /* Override any GCC internal prototype to avoid an error.
8175 Use char because int might match the return type of a GCC
8176 builtin and then its argument prototype would still apply. */
8189 rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (ac_try="$ac_link"
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_link") 2>conftest.er1
8198 grep -v '^ *+' conftest.er1 >conftest.err
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
8203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8204 { (case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_try") 2>&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; } &&
8213 { ac_try='test -s conftest$ac_exeext'
8214 { (case "(($ac_try" in
8215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216 *) ac_try_echo=$ac_try;;
8218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219 (eval "$ac_try") 2>&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8231 rm -f core conftest.err conftest.$ac_objext \
8232 conftest$ac_exeext conftest.$ac_ext
8233 LIBS=$ac_check_lib_save_LIBS
8235 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8236 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8237 if test $ac_cv_lib_m_sin = yes; then
8238 cat >>confdefs.h <<_ACEOF
8246 if test "$llvm_cv_os_type" = "MingW" ; then
8248 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8249 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8250 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 ac_check_lib_save_LIBS=$LIBS
8254 LIBS="-limagehlp $LIBS"
8255 cat >conftest.$ac_ext <<_ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8271 rm -f conftest.$ac_objext conftest$ac_exeext
8272 if { (ac_try="$ac_link"
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278 (eval "$ac_link") 2>conftest.er1
8280 grep -v '^ *+' conftest.er1 >conftest.err
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } &&
8285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8286 { (case "(($ac_try" in
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_try") 2>&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; } &&
8295 { ac_try='test -s conftest$ac_exeext'
8296 { (case "(($ac_try" in
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_try") 2>&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8305 ac_cv_lib_imagehlp_main=yes
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8310 ac_cv_lib_imagehlp_main=no
8313 rm -f core conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
8315 LIBS=$ac_check_lib_save_LIBS
8317 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8318 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8319 if test $ac_cv_lib_imagehlp_main = yes; then
8320 cat >>confdefs.h <<_ACEOF
8321 #define HAVE_LIBIMAGEHLP 1
8324 LIBS="-limagehlp $LIBS"
8329 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8330 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8331 if test "${ac_cv_lib_psapi_main+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 ac_check_lib_save_LIBS=$LIBS
8335 LIBS="-lpsapi $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_psapi_main=yes
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8391 ac_cv_lib_psapi_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_psapi_main" >&5
8399 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8400 if test $ac_cv_lib_psapi_main = yes; then
8401 cat >>confdefs.h <<_ACEOF
8402 #define HAVE_LIBPSAPI 1
8405 LIBS="-lpsapi $LIBS"
8410 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8411 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8412 if test "${ac_cv_lib_shell32_main+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 ac_check_lib_save_LIBS=$LIBS
8416 LIBS="-lshell32 $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_shell32_main=yes
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8472 ac_cv_lib_shell32_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_shell32_main" >&5
8480 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8481 if test $ac_cv_lib_shell32_main = yes; then
8482 cat >>confdefs.h <<_ACEOF
8483 #define HAVE_LIBSHELL32 1
8486 LIBS="-lshell32 $LIBS"
8492 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8493 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8494 if test "${ac_cv_search_dlopen+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 ac_func_search_save_LIBS=$LIBS
8498 cat >conftest.$ac_ext <<_ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8505 /* Override any GCC internal prototype to avoid an error.
8506 Use char because int might match the return type of a GCC
8507 builtin and then its argument prototype would still apply. */
8520 for ac_lib in '' dl; do
8521 if test -z "$ac_lib"; then
8522 ac_res="none required"
8525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8527 rm -f conftest.$ac_objext conftest$ac_exeext
8528 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8536 grep -v '^ *+' conftest.er1 >conftest.err
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8542 { (case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_try") 2>&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest$ac_exeext'
8552 { (case "(($ac_try" in
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557 (eval "$ac_try") 2>&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_cv_search_dlopen=$ac_res
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8569 rm -f core conftest.err conftest.$ac_objext \
8571 if test "${ac_cv_search_dlopen+set}" = set; then
8575 if test "${ac_cv_search_dlopen+set}" = set; then
8578 ac_cv_search_dlopen=no
8581 LIBS=$ac_func_search_save_LIBS
8583 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8584 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8585 ac_res=$ac_cv_search_dlopen
8586 if test "$ac_res" != no; then
8587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8590 cat >>confdefs.h <<\_ACEOF
8591 #define HAVE_DLOPEN 1
8598 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8599 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8603 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8604 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8605 if test "${ac_cv_search_clock_gettime+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8608 ac_func_search_save_LIBS=$LIBS
8609 cat >conftest.$ac_ext <<_ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8616 /* Override any GCC internal prototype to avoid an error.
8617 Use char because int might match the return type of a GCC
8618 builtin and then its argument prototype would still apply. */
8622 char clock_gettime ();
8626 return clock_gettime ();
8631 for ac_lib in '' rt; do
8632 if test -z "$ac_lib"; then
8633 ac_res="none required"
8636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8638 rm -f conftest.$ac_objext conftest$ac_exeext
8639 if { (ac_try="$ac_link"
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645 (eval "$ac_link") 2>conftest.er1
8647 grep -v '^ *+' conftest.er1 >conftest.err
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8653 { (case "(($ac_try" in
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_try") 2>&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; } &&
8662 { ac_try='test -s conftest$ac_exeext'
8663 { (case "(($ac_try" in
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_try") 2>&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8672 ac_cv_search_clock_gettime=$ac_res
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8680 rm -f core conftest.err conftest.$ac_objext \
8682 if test "${ac_cv_search_clock_gettime+set}" = set; then
8686 if test "${ac_cv_search_clock_gettime+set}" = set; then
8689 ac_cv_search_clock_gettime=no
8692 LIBS=$ac_func_search_save_LIBS
8694 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8695 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8696 ac_res=$ac_cv_search_clock_gettime
8697 if test "$ac_res" != no; then
8698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8703 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8704 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8705 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8706 if test "${ac_cv_search_setupterm+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 ac_func_search_save_LIBS=$LIBS
8710 cat >conftest.$ac_ext <<_ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8717 /* Override any GCC internal prototype to avoid an error.
8718 Use char because int might match the return type of a GCC
8719 builtin and then its argument prototype would still apply. */
8727 return setupterm ();
8732 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8733 if test -z "$ac_lib"; then
8734 ac_res="none required"
8737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8739 rm -f conftest.$ac_objext conftest$ac_exeext
8740 if { (ac_try="$ac_link"
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_link") 2>conftest.er1
8748 grep -v '^ *+' conftest.er1 >conftest.err
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8754 { (case "(($ac_try" in
8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756 *) ac_try_echo=$ac_try;;
8758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759 (eval "$ac_try") 2>&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; } &&
8763 { ac_try='test -s conftest$ac_exeext'
8764 { (case "(($ac_try" in
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_try") 2>&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8773 ac_cv_search_setupterm=$ac_res
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8781 rm -f core conftest.err conftest.$ac_objext \
8783 if test "${ac_cv_search_setupterm+set}" = set; then
8787 if test "${ac_cv_search_setupterm+set}" = set; then
8790 ac_cv_search_setupterm=no
8793 LIBS=$ac_func_search_save_LIBS
8795 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8796 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8797 ac_res=$ac_cv_search_setupterm
8798 if test "$ac_res" != no; then
8799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8802 cat >>confdefs.h <<\_ACEOF
8803 #define HAVE_TERMINFO 1
8813 if test "$llvm_cv_enable_libedit" = "yes" ; then
8814 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8815 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8816 if test "${ac_cv_search_el_init+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 ac_func_search_save_LIBS=$LIBS
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8827 /* Override any GCC internal prototype to avoid an error.
8828 Use char because int might match the return type of a GCC
8829 builtin and then its argument prototype would still apply. */
8842 for ac_lib in '' edit; do
8843 if test -z "$ac_lib"; then
8844 ac_res="none required"
8847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8849 rm -f conftest.$ac_objext conftest$ac_exeext
8850 if { (ac_try="$ac_link"
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856 (eval "$ac_link") 2>conftest.er1
8858 grep -v '^ *+' conftest.er1 >conftest.err
8860 cat conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } &&
8863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8864 { (case "(($ac_try" in
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_try") 2>&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; } &&
8873 { ac_try='test -s conftest$ac_exeext'
8874 { (case "(($ac_try" in
8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879 (eval "$ac_try") 2>&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; }; then
8883 ac_cv_search_el_init=$ac_res
8885 echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8891 rm -f core conftest.err conftest.$ac_objext \
8893 if test "${ac_cv_search_el_init+set}" = set; then
8897 if test "${ac_cv_search_el_init+set}" = set; then
8900 ac_cv_search_el_init=no
8903 LIBS=$ac_func_search_save_LIBS
8905 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
8906 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
8907 ac_res=$ac_cv_search_el_init
8908 if test "$ac_res" != no; then
8909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8911 cat >>confdefs.h <<\_ACEOF
8912 #define HAVE_LIBEDIT 1
8919 if test "$llvm_cv_enable_libffi" = "yes" ; then
8920 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
8921 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
8922 if test "${ac_cv_search_ffi_call+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 ac_func_search_save_LIBS=$LIBS
8926 cat >conftest.$ac_ext <<_ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8933 /* Override any GCC internal prototype to avoid an error.
8934 Use char because int might match the return type of a GCC
8935 builtin and then its argument prototype would still apply. */
8948 for ac_lib in '' ffi; do
8949 if test -z "$ac_lib"; then
8950 ac_res="none required"
8953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (ac_try="$ac_link"
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_link") 2>conftest.er1
8964 grep -v '^ *+' conftest.er1 >conftest.err
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970 { (case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_try") 2>&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest$ac_exeext'
8980 { (case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_try") 2>&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 ac_cv_search_ffi_call=$ac_res
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8997 rm -f core conftest.err conftest.$ac_objext \
8999 if test "${ac_cv_search_ffi_call+set}" = set; then
9003 if test "${ac_cv_search_ffi_call+set}" = set; then
9006 ac_cv_search_ffi_call=no
9009 LIBS=$ac_func_search_save_LIBS
9011 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9012 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9013 ac_res=$ac_cv_search_ffi_call
9014 if test "$ac_res" != no; then
9015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9017 cat >>confdefs.h <<\_ACEOF
9018 #define HAVE_FFI_CALL 1
9022 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9023 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9024 { (exit 1); exit 1; }; }
9029 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9030 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9031 if test "${ac_cv_search_mallinfo+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 ac_func_search_save_LIBS=$LIBS
9035 cat >conftest.$ac_ext <<_ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9042 /* Override any GCC internal prototype to avoid an error.
9043 Use char because int might match the return type of a GCC
9044 builtin and then its argument prototype would still apply. */
9057 for ac_lib in '' malloc; do
9058 if test -z "$ac_lib"; then
9059 ac_res="none required"
9062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9064 rm -f conftest.$ac_objext conftest$ac_exeext
9065 if { (ac_try="$ac_link"
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_link") 2>conftest.er1
9073 grep -v '^ *+' conftest.er1 >conftest.err
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9079 { (case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_try") 2>&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try='test -s conftest$ac_exeext'
9089 { (case "(($ac_try" in
9090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091 *) ac_try_echo=$ac_try;;
9093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094 (eval "$ac_try") 2>&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
9098 ac_cv_search_mallinfo=$ac_res
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9106 rm -f core conftest.err conftest.$ac_objext \
9108 if test "${ac_cv_search_mallinfo+set}" = set; then
9112 if test "${ac_cv_search_mallinfo+set}" = set; then
9115 ac_cv_search_mallinfo=no
9118 LIBS=$ac_func_search_save_LIBS
9120 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9121 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9122 ac_res=$ac_cv_search_mallinfo
9123 if test "$ac_res" != no; then
9124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9126 cat >>confdefs.h <<\_ACEOF
9127 #define HAVE_MALLINFO 1
9133 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9135 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9136 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9137 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 ac_check_lib_save_LIBS=$LIBS
9141 LIBS="-lpthread $LIBS"
9142 cat >conftest.$ac_ext <<_ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h. */
9149 /* Override any GCC internal prototype to avoid an error.
9150 Use char because int might match the return type of a GCC
9151 builtin and then its argument prototype would still apply. */
9155 char pthread_mutex_init ();
9159 return pthread_mutex_init ();
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (ac_try="$ac_link"
9167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168 *) ac_try_echo=$ac_try;;
9170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9171 (eval "$ac_link") 2>conftest.er1
9173 grep -v '^ *+' conftest.er1 >conftest.err
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } &&
9178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9179 { (case "(($ac_try" in
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_try") 2>&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; } &&
9188 { ac_try='test -s conftest$ac_exeext'
9189 { (case "(($ac_try" in
9190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191 *) ac_try_echo=$ac_try;;
9193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9194 (eval "$ac_try") 2>&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 ac_cv_lib_pthread_pthread_mutex_init=yes
9200 echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9203 ac_cv_lib_pthread_pthread_mutex_init=no
9206 rm -f core conftest.err conftest.$ac_objext \
9207 conftest$ac_exeext conftest.$ac_ext
9208 LIBS=$ac_check_lib_save_LIBS
9210 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9211 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9212 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9213 cat >>confdefs.h <<_ACEOF
9214 #define HAVE_LIBPTHREAD 1
9217 LIBS="-lpthread $LIBS"
9221 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9222 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9223 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 ac_func_search_save_LIBS=$LIBS
9227 cat >conftest.$ac_ext <<_ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9234 /* Override any GCC internal prototype to avoid an error.
9235 Use char because int might match the return type of a GCC
9236 builtin and then its argument prototype would still apply. */
9240 char pthread_mutex_lock ();
9244 return pthread_mutex_lock ();
9249 for ac_lib in '' pthread; do
9250 if test -z "$ac_lib"; then
9251 ac_res="none required"
9254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9256 rm -f conftest.$ac_objext conftest$ac_exeext
9257 if { (ac_try="$ac_link"
9259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260 *) ac_try_echo=$ac_try;;
9262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9263 (eval "$ac_link") 2>conftest.er1
9265 grep -v '^ *+' conftest.er1 >conftest.err
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9271 { (case "(($ac_try" in
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_try") 2>&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; } &&
9280 { ac_try='test -s conftest$ac_exeext'
9281 { (case "(($ac_try" in
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_try") 2>&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_cv_search_pthread_mutex_lock=$ac_res
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9298 rm -f core conftest.err conftest.$ac_objext \
9300 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9304 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9307 ac_cv_search_pthread_mutex_lock=no
9310 LIBS=$ac_func_search_save_LIBS
9312 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9313 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9314 ac_res=$ac_cv_search_pthread_mutex_lock
9315 if test "$ac_res" != no; then
9316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9318 cat >>confdefs.h <<\_ACEOF
9319 #define HAVE_PTHREAD_MUTEX_LOCK 1
9324 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9325 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9326 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 ac_func_search_save_LIBS=$LIBS
9330 cat >conftest.$ac_ext <<_ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9337 /* Override any GCC internal prototype to avoid an error.
9338 Use char because int might match the return type of a GCC
9339 builtin and then its argument prototype would still apply. */
9343 char pthread_rwlock_init ();
9347 return pthread_rwlock_init ();
9352 for ac_lib in '' pthread; do
9353 if test -z "$ac_lib"; then
9354 ac_res="none required"
9357 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9359 rm -f conftest.$ac_objext conftest$ac_exeext
9360 if { (ac_try="$ac_link"
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_link") 2>conftest.er1
9368 grep -v '^ *+' conftest.er1 >conftest.err
9370 cat conftest.err >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } &&
9373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9374 { (case "(($ac_try" in
9375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376 *) ac_try_echo=$ac_try;;
9378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9379 (eval "$ac_try") 2>&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; } &&
9383 { ac_try='test -s conftest$ac_exeext'
9384 { (case "(($ac_try" in
9385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9386 *) ac_try_echo=$ac_try;;
9388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9389 (eval "$ac_try") 2>&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; }; then
9393 ac_cv_search_pthread_rwlock_init=$ac_res
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9401 rm -f core conftest.err conftest.$ac_objext \
9403 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9407 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9410 ac_cv_search_pthread_rwlock_init=no
9413 LIBS=$ac_func_search_save_LIBS
9415 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9416 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9417 ac_res=$ac_cv_search_pthread_rwlock_init
9418 if test "$ac_res" != no; then
9419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9421 cat >>confdefs.h <<\_ACEOF
9422 #define HAVE_PTHREAD_RWLOCK_INIT 1
9427 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9428 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9429 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 ac_func_search_save_LIBS=$LIBS
9433 cat >conftest.$ac_ext <<_ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9440 /* Override any GCC internal prototype to avoid an error.
9441 Use char because int might match the return type of a GCC
9442 builtin and then its argument prototype would still apply. */
9446 char pthread_getspecific ();
9450 return pthread_getspecific ();
9455 for ac_lib in '' pthread; do
9456 if test -z "$ac_lib"; then
9457 ac_res="none required"
9460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9462 rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (ac_try="$ac_link"
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_link") 2>conftest.er1
9471 grep -v '^ *+' conftest.er1 >conftest.err
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9477 { (case "(($ac_try" in
9478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479 *) ac_try_echo=$ac_try;;
9481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_try") 2>&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; } &&
9486 { ac_try='test -s conftest$ac_exeext'
9487 { (case "(($ac_try" in
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_try") 2>&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; }; then
9496 ac_cv_search_pthread_getspecific=$ac_res
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9504 rm -f core conftest.err conftest.$ac_objext \
9506 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9510 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9513 ac_cv_search_pthread_getspecific=no
9516 LIBS=$ac_func_search_save_LIBS
9518 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9519 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9520 ac_res=$ac_cv_search_pthread_getspecific
9521 if test "$ac_res" != no; then
9522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9524 cat >>confdefs.h <<\_ACEOF
9525 #define HAVE_PTHREAD_GETSPECIFIC 1
9532 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9534 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9535 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9536 if test "${ac_cv_lib_z_compress2+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 ac_check_lib_save_LIBS=$LIBS
9541 cat >conftest.$ac_ext <<_ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9548 /* Override any GCC internal prototype to avoid an error.
9549 Use char because int might match the return type of a GCC
9550 builtin and then its argument prototype would still apply. */
9558 return compress2 ();
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (ac_try="$ac_link"
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570 (eval "$ac_link") 2>conftest.er1
9572 grep -v '^ *+' conftest.er1 >conftest.err
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } &&
9577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9578 { (case "(($ac_try" in
9579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583 (eval "$ac_try") 2>&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; } &&
9587 { ac_try='test -s conftest$ac_exeext'
9588 { (case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_try") 2>&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; }; then
9597 ac_cv_lib_z_compress2=yes
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9602 ac_cv_lib_z_compress2=no
9605 rm -f core conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9607 LIBS=$ac_check_lib_save_LIBS
9609 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9610 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9611 if test $ac_cv_lib_z_compress2 = yes; then
9612 cat >>confdefs.h <<_ACEOF
9623 # Check whether --with-oprofile was given.
9624 if test "${with_oprofile+set}" = set; then
9625 withval=$with_oprofile;
9629 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9633 *) llvm_cv_oppath="${withval}/lib/oprofile"
9634 CPPFLAGS="-I${withval}/include";;
9636 case $llvm_cv_os_type in
9638 if test -n "$llvm_cv_oppath" ; then
9639 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9640 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9641 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9642 if test "${ac_cv_search_bfd_init+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 ac_func_search_save_LIBS=$LIBS
9646 cat >conftest.$ac_ext <<_ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9653 /* Override any GCC internal prototype to avoid an error.
9654 Use char because int might match the return type of a GCC
9655 builtin and then its argument prototype would still apply. */
9668 for ac_lib in '' bfd; do
9669 if test -z "$ac_lib"; then
9670 ac_res="none required"
9673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (ac_try="$ac_link"
9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679 *) ac_try_echo=$ac_try;;
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682 (eval "$ac_link") 2>conftest.er1
9684 grep -v '^ *+' conftest.er1 >conftest.err
9686 cat conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9690 { (case "(($ac_try" in
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_try") 2>&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try='test -s conftest$ac_exeext'
9700 { (case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_try") 2>&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 ac_cv_search_bfd_init=$ac_res
9711 echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9717 rm -f core conftest.err conftest.$ac_objext \
9719 if test "${ac_cv_search_bfd_init+set}" = set; then
9723 if test "${ac_cv_search_bfd_init+set}" = set; then
9726 ac_cv_search_bfd_init=no
9729 LIBS=$ac_func_search_save_LIBS
9731 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9732 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9733 ac_res=$ac_cv_search_bfd_init
9734 if test "$ac_res" != no; then
9735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9739 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9740 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9741 if test "${ac_cv_search_op_open_agent+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 ac_func_search_save_LIBS=$LIBS
9745 cat >conftest.$ac_ext <<_ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9752 /* Override any GCC internal prototype to avoid an error.
9753 Use char because int might match the return type of a GCC
9754 builtin and then its argument prototype would still apply. */
9758 char op_open_agent ();
9762 return op_open_agent ();
9767 for ac_lib in '' opagent; do
9768 if test -z "$ac_lib"; then
9769 ac_res="none required"
9772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9774 rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_link") 2>conftest.er1
9783 grep -v '^ *+' conftest.er1 >conftest.err
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9789 { (case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_try") 2>&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; } &&
9798 { ac_try='test -s conftest$ac_exeext'
9799 { (case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_try") 2>&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; }; then
9808 ac_cv_search_op_open_agent=$ac_res
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9816 rm -f core conftest.err conftest.$ac_objext \
9818 if test "${ac_cv_search_op_open_agent+set}" = set; then
9822 if test "${ac_cv_search_op_open_agent+set}" = set; then
9825 ac_cv_search_op_open_agent=no
9828 LIBS=$ac_func_search_save_LIBS
9830 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9831 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9832 ac_res=$ac_cv_search_op_open_agent
9833 if test "$ac_res" != no; then
9834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9838 echo "Error! You need to have libopagent around."
9843 if test "${ac_cv_header_opagent_h+set}" = set; then
9844 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9845 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9846 if test "${ac_cv_header_opagent_h+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9850 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9852 # Is the header compilable?
9853 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9854 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9855 cat >conftest.$ac_ext <<_ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9861 $ac_includes_default
9862 #include <opagent.h>
9864 rm -f conftest.$ac_objext
9865 if { (ac_try="$ac_compile"
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_compile") 2>conftest.er1
9873 grep -v '^ *+' conftest.er1 >conftest.err
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9879 { (case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_try") 2>&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; } &&
9888 { ac_try='test -s conftest.$ac_objext'
9889 { (case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_try") 2>&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_header_compiler=yes
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ac_header_compiler=no
9906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9908 echo "${ECHO_T}$ac_header_compiler" >&6; }
9910 # Is the header present?
9911 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
9912 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
9913 cat >conftest.$ac_ext <<_ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h. */
9919 #include <opagent.h>
9921 if { (ac_try="$ac_cpp conftest.$ac_ext"
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9929 grep -v '^ *+' conftest.er1 >conftest.err
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } >/dev/null; then
9934 if test -s conftest.err; then
9935 ac_cpp_err=$ac_c_preproc_warn_flag
9936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9943 if test -z "$ac_cpp_err"; then
9944 ac_header_preproc=yes
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 ac_header_preproc=no
9952 rm -f conftest.err conftest.$ac_ext
9953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9954 echo "${ECHO_T}$ac_header_preproc" >&6; }
9956 # So? What about this header?
9957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9959 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
9960 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9961 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
9962 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
9963 ac_header_preproc=yes
9966 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
9967 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
9968 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
9969 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
9970 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
9971 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
9972 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
9973 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
9974 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
9975 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
9976 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
9977 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
9979 ## ------------------------------------ ##
9980 ## Report this to http://llvm.org/bugs/ ##
9981 ## ------------------------------------ ##
9983 ) | sed "s/^/$as_me: WARNING: /" >&2
9986 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9987 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9988 if test "${ac_cv_header_opagent_h+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 ac_cv_header_opagent_h=$ac_header_preproc
9993 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9994 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9997 if test $ac_cv_header_opagent_h = yes; then
10001 echo "Error! You need to have opagent.h around."
10009 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10010 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10011 { (exit 1); exit 1; }; } ;;
10022 cat >>confdefs.h <<_ACEOF
10023 #define LLVM_USE_OPROFILE $USE_OPROFILE
10028 # Check whether --with-intel-jitevents was given.
10029 if test "${with_intel_jitevents+set}" = set; then
10030 withval=$with_intel_jitevents;
10032 yes) USE_INTEL_JITEVENTS=1
10034 no) USE_INTEL_JITEVENTS=0
10036 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10037 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10038 { (exit 1); exit 1; }; };;
10041 case $llvm_cv_os_type in
10042 Linux|Win32|Cygwin|MingW) ;;
10043 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10044 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10045 { (exit 1); exit 1; }; };;
10048 case "$llvm_cv_target_arch" in
10050 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10051 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10052 { (exit 1); exit 1; }; };;
10057 USE_INTEL_JITEVENTS=0
10063 cat >>confdefs.h <<_ACEOF
10064 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10068 for ac_prog in xml2-config
10070 # Extract the first word of "$ac_prog", so it can be a program name with args.
10071 set dummy $ac_prog; ac_word=$2
10072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10074 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 if test -n "$XML2CONFIG"; then
10078 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081 for as_dir in $PATH
10084 test -z "$as_dir" && as_dir=.
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10087 ac_cv_prog_XML2CONFIG="$ac_prog"
10088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10097 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10098 if test -n "$XML2CONFIG"; then
10099 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10100 echo "${ECHO_T}$XML2CONFIG" >&6; }
10102 { echo "$as_me:$LINENO: result: no" >&5
10103 echo "${ECHO_T}no" >&6; }
10107 test -n "$XML2CONFIG" && break
10111 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10112 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10113 if test "x$XML2CONFIG" = "x"; then
10114 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10115 echo "${ECHO_T}xml2-config not found" >&6; }
10117 LIBXML2_INC=`$XML2CONFIG --cflags`
10118 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10119 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10120 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10121 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10122 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 ac_check_lib_save_LIBS=$LIBS
10126 LIBS="-lxml2 $LIBS"
10127 cat >conftest.$ac_ext <<_ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10134 /* Override any GCC internal prototype to avoid an error.
10135 Use char because int might match the return type of a GCC
10136 builtin and then its argument prototype would still apply. */
10140 char xmlReadFile ();
10144 return xmlReadFile ();
10149 rm -f conftest.$ac_objext conftest$ac_exeext
10150 if { (ac_try="$ac_link"
10151 case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_link") 2>conftest.er1
10158 grep -v '^ *+' conftest.er1 >conftest.err
10160 cat conftest.err >&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } &&
10163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10164 { (case "(($ac_try" in
10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169 (eval "$ac_try") 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; } &&
10173 { ac_try='test -s conftest$ac_exeext'
10174 { (case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_try") 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 ac_cv_lib_xml2_xmlReadFile=yes
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ac_cv_lib_xml2_xmlReadFile=no
10191 rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193 LIBS=$ac_check_lib_save_LIBS
10195 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10196 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10197 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10199 cat >>confdefs.h <<\_ACEOF
10200 #define CLANG_HAVE_LIBXML 1
10203 LIBXML2_LIBS="-lxml2"
10216 ac_header_dirent=no
10217 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10218 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10219 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10220 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 cat >conftest.$ac_ext <<_ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10230 #include <sys/types.h>
10242 rm -f conftest.$ac_objext
10243 if { (ac_try="$ac_compile"
10244 case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_compile") 2>conftest.er1
10251 grep -v '^ *+' conftest.er1 >conftest.err
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } &&
10256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10257 { (case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_try") 2>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; } &&
10266 { ac_try='test -s conftest.$ac_objext'
10267 { (case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_try") 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; }; then
10276 eval "$as_ac_Header=yes"
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10281 eval "$as_ac_Header=no"
10284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10286 ac_res=`eval echo '${'$as_ac_Header'}'`
10287 { echo "$as_me:$LINENO: result: $ac_res" >&5
10288 echo "${ECHO_T}$ac_res" >&6; }
10289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10290 cat >>confdefs.h <<_ACEOF
10291 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10294 ac_header_dirent=$ac_hdr; break
10298 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10299 if test $ac_header_dirent = dirent.h; then
10300 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10301 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10302 if test "${ac_cv_search_opendir+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 ac_func_search_save_LIBS=$LIBS
10306 cat >conftest.$ac_ext <<_ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10313 /* Override any GCC internal prototype to avoid an error.
10314 Use char because int might match the return type of a GCC
10315 builtin and then its argument prototype would still apply. */
10328 for ac_lib in '' dir; do
10329 if test -z "$ac_lib"; then
10330 ac_res="none required"
10333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10335 rm -f conftest.$ac_objext conftest$ac_exeext
10336 if { (ac_try="$ac_link"
10337 case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_link") 2>conftest.er1
10344 grep -v '^ *+' conftest.er1 >conftest.err
10346 cat conftest.err >&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } &&
10349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10350 { (case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_try") 2>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; } &&
10359 { ac_try='test -s conftest$ac_exeext'
10360 { (case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_try") 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_cv_search_opendir=$ac_res
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10377 rm -f core conftest.err conftest.$ac_objext \
10379 if test "${ac_cv_search_opendir+set}" = set; then
10383 if test "${ac_cv_search_opendir+set}" = set; then
10386 ac_cv_search_opendir=no
10388 rm conftest.$ac_ext
10389 LIBS=$ac_func_search_save_LIBS
10391 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10392 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10393 ac_res=$ac_cv_search_opendir
10394 if test "$ac_res" != no; then
10395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10400 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10401 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10402 if test "${ac_cv_search_opendir+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 ac_func_search_save_LIBS=$LIBS
10406 cat >conftest.$ac_ext <<_ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10413 /* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
10428 for ac_lib in '' x; do
10429 if test -z "$ac_lib"; then
10430 ac_res="none required"
10433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10435 rm -f conftest.$ac_objext conftest$ac_exeext
10436 if { (ac_try="$ac_link"
10437 case "(($ac_try" in
10438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439 *) ac_try_echo=$ac_try;;
10441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10442 (eval "$ac_link") 2>conftest.er1
10444 grep -v '^ *+' conftest.er1 >conftest.err
10446 cat conftest.err >&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
10449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10450 { (case "(($ac_try" in
10451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452 *) ac_try_echo=$ac_try;;
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455 (eval "$ac_try") 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; } &&
10459 { ac_try='test -s conftest$ac_exeext'
10460 { (case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_try") 2>&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 ac_cv_search_opendir=$ac_res
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10477 rm -f core conftest.err conftest.$ac_objext \
10479 if test "${ac_cv_search_opendir+set}" = set; then
10483 if test "${ac_cv_search_opendir+set}" = set; then
10486 ac_cv_search_opendir=no
10488 rm conftest.$ac_ext
10489 LIBS=$ac_func_search_save_LIBS
10491 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10492 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10493 ac_res=$ac_cv_search_opendir
10494 if test "$ac_res" != no; then
10495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10501 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10502 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10503 if test "${ac_cv_header_mmap_anon+set}" = set; then
10504 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 ac_cpp='$CPP $CPPFLAGS'
10508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10512 cat >conftest.$ac_ext <<_ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10518 #include <sys/mman.h>
10519 #include <unistd.h>
10524 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10529 rm -f conftest.$ac_objext
10530 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
10538 grep -v '^ *+' conftest.er1 >conftest.err
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
10543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10544 { (case "(($ac_try" in
10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_try") 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest.$ac_objext'
10554 { (case "(($ac_try" in
10555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_try") 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 ac_cv_header_mmap_anon=yes
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 ac_cv_header_mmap_anon=no
10571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 ac_cpp='$CPP $CPPFLAGS'
10574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10580 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10581 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10582 if test "$ac_cv_header_mmap_anon" = yes; then
10584 cat >>confdefs.h <<\_ACEOF
10585 #define HAVE_MMAP_ANONYMOUS 1
10590 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10591 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10592 if test "${ac_cv_header_stat_broken+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 cat >conftest.$ac_ext <<_ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 #include <sys/types.h>
10602 #include <sys/stat.h>
10604 #if defined S_ISBLK && defined S_IFDIR
10605 # if S_ISBLK (S_IFDIR)
10610 #if defined S_ISBLK && defined S_IFCHR
10611 # if S_ISBLK (S_IFCHR)
10616 #if defined S_ISLNK && defined S_IFREG
10617 # if S_ISLNK (S_IFREG)
10622 #if defined S_ISSOCK && defined S_IFREG
10623 # if S_ISSOCK (S_IFREG)
10629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10630 $EGREP "You lose" >/dev/null 2>&1; then
10631 ac_cv_header_stat_broken=yes
10633 ac_cv_header_stat_broken=no
10638 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10639 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10640 if test $ac_cv_header_stat_broken = yes; then
10642 cat >>confdefs.h <<\_ACEOF
10643 #define STAT_MACROS_BROKEN 1
10648 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10649 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10650 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 cat >conftest.$ac_ext <<_ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659 #include <sys/types.h>
10660 #include <sys/wait.h>
10661 #ifndef WEXITSTATUS
10662 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10665 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10673 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10678 rm -f conftest.$ac_objext
10679 if { (ac_try="$ac_compile"
10680 case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_compile") 2>conftest.er1
10687 grep -v '^ *+' conftest.er1 >conftest.err
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10693 { (case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_try") 2>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; } &&
10702 { ac_try='test -s conftest.$ac_objext'
10703 { (case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_try") 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; }; then
10712 ac_cv_header_sys_wait_h=yes
10714 echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10717 ac_cv_header_sys_wait_h=no
10720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10722 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10723 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10724 if test $ac_cv_header_sys_wait_h = yes; then
10726 cat >>confdefs.h <<\_ACEOF
10727 #define HAVE_SYS_WAIT_H 1
10732 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10733 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10734 if test "${ac_cv_header_time+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 cat >conftest.$ac_ext <<_ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 #include <sys/types.h>
10744 #include <sys/time.h>
10750 if ((struct tm *) 0)
10756 rm -f conftest.$ac_objext
10757 if { (ac_try="$ac_compile"
10758 case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_compile") 2>conftest.er1
10765 grep -v '^ *+' conftest.er1 >conftest.err
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10771 { (case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_try") 2>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; } &&
10780 { ac_try='test -s conftest.$ac_objext'
10781 { (case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_try") 2>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
10790 ac_cv_header_time=yes
10792 echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 ac_cv_header_time=no
10798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10800 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10801 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10802 if test $ac_cv_header_time = yes; then
10804 cat >>confdefs.h <<\_ACEOF
10805 #define TIME_WITH_SYS_TIME 1
10812 ac_cpp='$CXXCPP $CPPFLAGS'
10813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10818 for ac_header in cxxabi.h
10820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 cat >conftest.$ac_ext <<_ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 #include <stddef.h>
10835 #include <$ac_header>
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_cxx_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 eval "$as_ac_Header=yes"
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10876 eval "$as_ac_Header=no"
10879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10881 ac_res=`eval echo '${'$as_ac_Header'}'`
10882 { echo "$as_me:$LINENO: result: $ac_res" >&5
10883 echo "${ECHO_T}$ac_res" >&6; }
10884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10885 cat >>confdefs.h <<_ACEOF
10886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10894 ac_cpp='$CPP $CPPFLAGS'
10895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10905 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
10907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 ac_res=`eval echo '${'$as_ac_Header'}'`
10915 { echo "$as_me:$LINENO: result: $ac_res" >&5
10916 echo "${ECHO_T}$ac_res" >&6; }
10918 # Is the header compilable?
10919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10921 cat >conftest.$ac_ext <<_ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927 $ac_includes_default
10928 #include <$ac_header>
10930 rm -f conftest.$ac_objext
10931 if { (ac_try="$ac_compile"
10932 case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_compile") 2>conftest.er1
10939 grep -v '^ *+' conftest.er1 >conftest.err
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10945 { (case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_try") 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try='test -s conftest.$ac_objext'
10955 { (case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_try") 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 ac_header_compiler=yes
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 ac_header_compiler=no
10972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10974 echo "${ECHO_T}$ac_header_compiler" >&6; }
10976 # Is the header present?
10977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10979 cat >conftest.$ac_ext <<_ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10985 #include <$ac_header>
10987 if { (ac_try="$ac_cpp conftest.$ac_ext"
10988 case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10995 grep -v '^ *+' conftest.er1 >conftest.err
10997 cat conftest.err >&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } >/dev/null; then
11000 if test -s conftest.err; then
11001 ac_cpp_err=$ac_c_preproc_warn_flag
11002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11009 if test -z "$ac_cpp_err"; then
11010 ac_header_preproc=yes
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 ac_header_preproc=no
11018 rm -f conftest.err conftest.$ac_ext
11019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11020 echo "${ECHO_T}$ac_header_preproc" >&6; }
11022 # So? What about this header?
11023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11029 ac_header_preproc=yes
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11045 ## ------------------------------------ ##
11046 ## Report this to http://llvm.org/bugs/ ##
11047 ## ------------------------------------ ##
11049 ) | sed "s/^/$as_me: WARNING: /" >&2
11052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 eval "$as_ac_Header=\$ac_header_preproc"
11059 ac_res=`eval echo '${'$as_ac_Header'}'`
11060 { echo "$as_me:$LINENO: result: $ac_res" >&5
11061 echo "${ECHO_T}$ac_res" >&6; }
11064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11065 cat >>confdefs.h <<_ACEOF
11066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11079 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 ac_res=`eval echo '${'$as_ac_Header'}'`
11089 { echo "$as_me:$LINENO: result: $ac_res" >&5
11090 echo "${ECHO_T}$ac_res" >&6; }
11092 # Is the header compilable?
11093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11095 cat >conftest.$ac_ext <<_ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 $ac_includes_default
11102 #include <$ac_header>
11104 rm -f conftest.$ac_objext
11105 if { (ac_try="$ac_compile"
11106 case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_compile") 2>conftest.er1
11113 grep -v '^ *+' conftest.er1 >conftest.err
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11119 { (case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_try") 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; } &&
11128 { ac_try='test -s conftest.$ac_objext'
11129 { (case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_try") 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }; then
11138 ac_header_compiler=yes
11140 echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 ac_header_compiler=no
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148 echo "${ECHO_T}$ac_header_compiler" >&6; }
11150 # Is the header present?
11151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11153 cat >conftest.$ac_ext <<_ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 #include <$ac_header>
11161 if { (ac_try="$ac_cpp conftest.$ac_ext"
11162 case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11169 grep -v '^ *+' conftest.er1 >conftest.err
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } >/dev/null; then
11174 if test -s conftest.err; then
11175 ac_cpp_err=$ac_c_preproc_warn_flag
11176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11183 if test -z "$ac_cpp_err"; then
11184 ac_header_preproc=yes
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11189 ac_header_preproc=no
11192 rm -f conftest.err conftest.$ac_ext
11193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11194 echo "${ECHO_T}$ac_header_preproc" >&6; }
11196 # So? What about this header?
11197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11203 ac_header_preproc=yes
11206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11219 ## ------------------------------------ ##
11220 ## Report this to http://llvm.org/bugs/ ##
11221 ## ------------------------------------ ##
11223 ) | sed "s/^/$as_me: WARNING: /" >&2
11226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 eval "$as_ac_Header=\$ac_header_preproc"
11233 ac_res=`eval echo '${'$as_ac_Header'}'`
11234 { echo "$as_me:$LINENO: result: $ac_res" >&5
11235 echo "${ECHO_T}$ac_res" >&6; }
11238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11239 cat >>confdefs.h <<_ACEOF
11240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11248 for ac_header in utime.h
11250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 ac_res=`eval echo '${'$as_ac_Header'}'`
11258 { echo "$as_me:$LINENO: result: $ac_res" >&5
11259 echo "${ECHO_T}$ac_res" >&6; }
11261 # Is the header compilable?
11262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11264 cat >conftest.$ac_ext <<_ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h. */
11270 $ac_includes_default
11271 #include <$ac_header>
11273 rm -f conftest.$ac_objext
11274 if { (ac_try="$ac_compile"
11275 case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_compile") 2>conftest.er1
11282 grep -v '^ *+' conftest.er1 >conftest.err
11284 cat conftest.err >&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); } &&
11287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11288 { (case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_try") 2>&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; } &&
11297 { ac_try='test -s conftest.$ac_objext'
11298 { (case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_try") 2>&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; }; then
11307 ac_header_compiler=yes
11309 echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11312 ac_header_compiler=no
11315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11317 echo "${ECHO_T}$ac_header_compiler" >&6; }
11319 # Is the header present?
11320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11322 cat >conftest.$ac_ext <<_ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 #include <$ac_header>
11330 if { (ac_try="$ac_cpp conftest.$ac_ext"
11331 case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11338 grep -v '^ *+' conftest.er1 >conftest.err
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } >/dev/null; then
11343 if test -s conftest.err; then
11344 ac_cpp_err=$ac_c_preproc_warn_flag
11345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11352 if test -z "$ac_cpp_err"; then
11353 ac_header_preproc=yes
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 ac_header_preproc=no
11361 rm -f conftest.err conftest.$ac_ext
11362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11363 echo "${ECHO_T}$ac_header_preproc" >&6; }
11365 # So? What about this header?
11366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11372 ac_header_preproc=yes
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11388 ## ------------------------------------ ##
11389 ## Report this to http://llvm.org/bugs/ ##
11390 ## ------------------------------------ ##
11392 ) | sed "s/^/$as_me: WARNING: /" >&2
11395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 eval "$as_ac_Header=\$ac_header_preproc"
11402 ac_res=`eval echo '${'$as_ac_Header'}'`
11403 { echo "$as_me:$LINENO: result: $ac_res" >&5
11404 echo "${ECHO_T}$ac_res" >&6; }
11407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11408 cat >>confdefs.h <<_ACEOF
11409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11421 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 ac_res=`eval echo '${'$as_ac_Header'}'`
11431 { echo "$as_me:$LINENO: result: $ac_res" >&5
11432 echo "${ECHO_T}$ac_res" >&6; }
11434 # Is the header compilable?
11435 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11437 cat >conftest.$ac_ext <<_ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 $ac_includes_default
11444 #include <$ac_header>
11446 rm -f conftest.$ac_objext
11447 if { (ac_try="$ac_compile"
11448 case "(($ac_try" in
11449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450 *) ac_try_echo=$ac_try;;
11452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453 (eval "$ac_compile") 2>conftest.er1
11455 grep -v '^ *+' conftest.er1 >conftest.err
11457 cat conftest.err >&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11461 { (case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_try") 2>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; } &&
11470 { ac_try='test -s conftest.$ac_objext'
11471 { (case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476 (eval "$ac_try") 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_header_compiler=yes
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11485 ac_header_compiler=no
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11490 echo "${ECHO_T}$ac_header_compiler" >&6; }
11492 # Is the header present?
11493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11495 cat >conftest.$ac_ext <<_ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 #include <$ac_header>
11503 if { (ac_try="$ac_cpp conftest.$ac_ext"
11504 case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11511 grep -v '^ *+' conftest.er1 >conftest.err
11513 cat conftest.err >&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } >/dev/null; then
11516 if test -s conftest.err; then
11517 ac_cpp_err=$ac_c_preproc_warn_flag
11518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11525 if test -z "$ac_cpp_err"; then
11526 ac_header_preproc=yes
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11531 ac_header_preproc=no
11534 rm -f conftest.err conftest.$ac_ext
11535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11536 echo "${ECHO_T}$ac_header_preproc" >&6; }
11538 # So? What about this header?
11539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11545 ac_header_preproc=yes
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11561 ## ------------------------------------ ##
11562 ## Report this to http://llvm.org/bugs/ ##
11563 ## ------------------------------------ ##
11565 ) | sed "s/^/$as_me: WARNING: /" >&2
11568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 eval "$as_ac_Header=\$ac_header_preproc"
11575 ac_res=`eval echo '${'$as_ac_Header'}'`
11576 { echo "$as_me:$LINENO: result: $ac_res" >&5
11577 echo "${ECHO_T}$ac_res" >&6; }
11580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11581 cat >>confdefs.h <<_ACEOF
11582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11592 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 ac_res=`eval echo '${'$as_ac_Header'}'`
11602 { echo "$as_me:$LINENO: result: $ac_res" >&5
11603 echo "${ECHO_T}$ac_res" >&6; }
11605 # Is the header compilable?
11606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11608 cat >conftest.$ac_ext <<_ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11614 $ac_includes_default
11615 #include <$ac_header>
11617 rm -f conftest.$ac_objext
11618 if { (ac_try="$ac_compile"
11619 case "(($ac_try" in
11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624 (eval "$ac_compile") 2>conftest.er1
11626 grep -v '^ *+' conftest.er1 >conftest.err
11628 cat conftest.err >&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } &&
11631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11632 { (case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_try") 2>&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; } &&
11641 { ac_try='test -s conftest.$ac_objext'
11642 { (case "(($ac_try" in
11643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644 *) ac_try_echo=$ac_try;;
11646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647 (eval "$ac_try") 2>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 ac_header_compiler=yes
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11656 ac_header_compiler=no
11659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11661 echo "${ECHO_T}$ac_header_compiler" >&6; }
11663 # Is the header present?
11664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11666 cat >conftest.$ac_ext <<_ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11672 #include <$ac_header>
11674 if { (ac_try="$ac_cpp conftest.$ac_ext"
11675 case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11682 grep -v '^ *+' conftest.er1 >conftest.err
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } >/dev/null; then
11687 if test -s conftest.err; then
11688 ac_cpp_err=$ac_c_preproc_warn_flag
11689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11696 if test -z "$ac_cpp_err"; then
11697 ac_header_preproc=yes
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11702 ac_header_preproc=no
11705 rm -f conftest.err conftest.$ac_ext
11706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11707 echo "${ECHO_T}$ac_header_preproc" >&6; }
11709 # So? What about this header?
11710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11716 ac_header_preproc=yes
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11732 ## ------------------------------------ ##
11733 ## Report this to http://llvm.org/bugs/ ##
11734 ## ------------------------------------ ##
11736 ) | sed "s/^/$as_me: WARNING: /" >&2
11739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 eval "$as_ac_Header=\$ac_header_preproc"
11746 ac_res=`eval echo '${'$as_ac_Header'}'`
11747 { echo "$as_me:$LINENO: result: $ac_res" >&5
11748 echo "${ECHO_T}$ac_res" >&6; }
11751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11752 cat >>confdefs.h <<_ACEOF
11753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11761 for ac_header in valgrind/valgrind.h
11763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 ac_res=`eval echo '${'$as_ac_Header'}'`
11771 { echo "$as_me:$LINENO: result: $ac_res" >&5
11772 echo "${ECHO_T}$ac_res" >&6; }
11774 # Is the header compilable?
11775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11777 cat >conftest.$ac_ext <<_ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h. */
11783 $ac_includes_default
11784 #include <$ac_header>
11786 rm -f conftest.$ac_objext
11787 if { (ac_try="$ac_compile"
11788 case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793 (eval "$ac_compile") 2>conftest.er1
11795 grep -v '^ *+' conftest.er1 >conftest.err
11797 cat conftest.err >&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } &&
11800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11801 { (case "(($ac_try" in
11802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803 *) ac_try_echo=$ac_try;;
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_try") 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; } &&
11810 { ac_try='test -s conftest.$ac_objext'
11811 { (case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_try") 2>&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 ac_header_compiler=yes
11822 echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11825 ac_header_compiler=no
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11830 echo "${ECHO_T}$ac_header_compiler" >&6; }
11832 # Is the header present?
11833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11835 cat >conftest.$ac_ext <<_ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 #include <$ac_header>
11843 if { (ac_try="$ac_cpp conftest.$ac_ext"
11844 case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11851 grep -v '^ *+' conftest.er1 >conftest.err
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } >/dev/null; then
11856 if test -s conftest.err; then
11857 ac_cpp_err=$ac_c_preproc_warn_flag
11858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11865 if test -z "$ac_cpp_err"; then
11866 ac_header_preproc=yes
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11871 ac_header_preproc=no
11874 rm -f conftest.err conftest.$ac_ext
11875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11876 echo "${ECHO_T}$ac_header_preproc" >&6; }
11878 # So? What about this header?
11879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11885 ac_header_preproc=yes
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11901 ## ------------------------------------ ##
11902 ## Report this to http://llvm.org/bugs/ ##
11903 ## ------------------------------------ ##
11905 ) | sed "s/^/$as_me: WARNING: /" >&2
11908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 eval "$as_ac_Header=\$ac_header_preproc"
11915 ac_res=`eval echo '${'$as_ac_Header'}'`
11916 { echo "$as_me:$LINENO: result: $ac_res" >&5
11917 echo "${ECHO_T}$ac_res" >&6; }
11920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11921 cat >>confdefs.h <<_ACEOF
11922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11930 for ac_header in fenv.h
11932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 ac_res=`eval echo '${'$as_ac_Header'}'`
11940 { echo "$as_me:$LINENO: result: $ac_res" >&5
11941 echo "${ECHO_T}$ac_res" >&6; }
11943 # Is the header compilable?
11944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11946 cat >conftest.$ac_ext <<_ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 $ac_includes_default
11953 #include <$ac_header>
11955 rm -f conftest.$ac_objext
11956 if { (ac_try="$ac_compile"
11957 case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_compile") 2>conftest.er1
11964 grep -v '^ *+' conftest.er1 >conftest.err
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11970 { (case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_try") 2>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_try") 2>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_header_compiler=yes
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11994 ac_header_compiler=no
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11999 echo "${ECHO_T}$ac_header_compiler" >&6; }
12001 # Is the header present?
12002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12004 cat >conftest.$ac_ext <<_ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010 #include <$ac_header>
12012 if { (ac_try="$ac_cpp conftest.$ac_ext"
12013 case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12020 grep -v '^ *+' conftest.er1 >conftest.err
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } >/dev/null; then
12025 if test -s conftest.err; then
12026 ac_cpp_err=$ac_c_preproc_warn_flag
12027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12034 if test -z "$ac_cpp_err"; then
12035 ac_header_preproc=yes
12037 echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12040 ac_header_preproc=no
12043 rm -f conftest.err conftest.$ac_ext
12044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12045 echo "${ECHO_T}$ac_header_preproc" >&6; }
12047 # So? What about this header?
12048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12054 ac_header_preproc=yes
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12070 ## ------------------------------------ ##
12071 ## Report this to http://llvm.org/bugs/ ##
12072 ## ------------------------------------ ##
12074 ) | sed "s/^/$as_me: WARNING: /" >&2
12077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 eval "$as_ac_Header=\$ac_header_preproc"
12084 ac_res=`eval echo '${'$as_ac_Header'}'`
12085 { echo "$as_me:$LINENO: result: $ac_res" >&5
12086 echo "${ECHO_T}$ac_res" >&6; }
12089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12090 cat >>confdefs.h <<_ACEOF
12091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12098 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12099 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12100 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 cat >conftest.$ac_ext <<_ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12114 #ifndef FE_ALL_EXCEPT
12115 char *p = (char *) FE_ALL_EXCEPT;
12123 rm -f conftest.$ac_objext
12124 if { (ac_try="$ac_compile"
12125 case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_compile") 2>conftest.er1
12132 grep -v '^ *+' conftest.er1 >conftest.err
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
12137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12138 { (case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_try") 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try='test -s conftest.$ac_objext'
12148 { (case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_try") 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 ac_cv_have_decl_FE_ALL_EXCEPT=no
12165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12167 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12168 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12169 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12171 cat >>confdefs.h <<_ACEOF
12172 #define HAVE_DECL_FE_ALL_EXCEPT 1
12177 cat >>confdefs.h <<_ACEOF
12178 #define HAVE_DECL_FE_ALL_EXCEPT 0
12183 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12184 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12185 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 cat >conftest.$ac_ext <<_ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12200 char *p = (char *) FE_INEXACT;
12208 rm -f conftest.$ac_objext
12209 if { (ac_try="$ac_compile"
12210 case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_compile") 2>conftest.er1
12217 grep -v '^ *+' conftest.er1 >conftest.err
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
12222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12223 { (case "(($ac_try" in
12224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225 *) ac_try_echo=$ac_try;;
12227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12228 (eval "$ac_try") 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; } &&
12232 { ac_try='test -s conftest.$ac_objext'
12233 { (case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_try") 2>&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; }; then
12242 ac_cv_have_decl_FE_INEXACT=yes
12244 echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12247 ac_cv_have_decl_FE_INEXACT=no
12250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12253 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12254 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12256 cat >>confdefs.h <<_ACEOF
12257 #define HAVE_DECL_FE_INEXACT 1
12262 cat >>confdefs.h <<_ACEOF
12263 #define HAVE_DECL_FE_INEXACT 0
12270 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12272 for ac_header in pthread.h
12274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 ac_res=`eval echo '${'$as_ac_Header'}'`
12282 { echo "$as_me:$LINENO: result: $ac_res" >&5
12283 echo "${ECHO_T}$ac_res" >&6; }
12285 # Is the header compilable?
12286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12288 cat >conftest.$ac_ext <<_ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294 $ac_includes_default
12295 #include <$ac_header>
12297 rm -f conftest.$ac_objext
12298 if { (ac_try="$ac_compile"
12299 case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_compile") 2>conftest.er1
12306 grep -v '^ *+' conftest.er1 >conftest.err
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } &&
12311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12312 { (case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_try") 2>&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; } &&
12321 { ac_try='test -s conftest.$ac_objext'
12322 { (case "(($ac_try" in
12323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324 *) ac_try_echo=$ac_try;;
12326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327 (eval "$ac_try") 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; }; then
12331 ac_header_compiler=yes
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 ac_header_compiler=no
12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12341 echo "${ECHO_T}$ac_header_compiler" >&6; }
12343 # Is the header present?
12344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 #include <$ac_header>
12354 if { (ac_try="$ac_cpp conftest.$ac_ext"
12355 case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12362 grep -v '^ *+' conftest.er1 >conftest.err
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } >/dev/null; then
12367 if test -s conftest.err; then
12368 ac_cpp_err=$ac_c_preproc_warn_flag
12369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12376 if test -z "$ac_cpp_err"; then
12377 ac_header_preproc=yes
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 ac_header_preproc=no
12385 rm -f conftest.err conftest.$ac_ext
12386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12387 echo "${ECHO_T}$ac_header_preproc" >&6; }
12389 # So? What about this header?
12390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12396 ac_header_preproc=yes
12399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12412 ## ------------------------------------ ##
12413 ## Report this to http://llvm.org/bugs/ ##
12414 ## ------------------------------------ ##
12416 ) | sed "s/^/$as_me: WARNING: /" >&2
12419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 eval "$as_ac_Header=\$ac_header_preproc"
12426 ac_res=`eval echo '${'$as_ac_Header'}'`
12427 { echo "$as_me:$LINENO: result: $ac_res" >&5
12428 echo "${ECHO_T}$ac_res" >&6; }
12431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12432 cat >>confdefs.h <<_ACEOF
12433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12448 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12450 for ac_header in zlib.h
12452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 ac_res=`eval echo '${'$as_ac_Header'}'`
12460 { echo "$as_me:$LINENO: result: $ac_res" >&5
12461 echo "${ECHO_T}$ac_res" >&6; }
12463 # Is the header compilable?
12464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12466 cat >conftest.$ac_ext <<_ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12472 $ac_includes_default
12473 #include <$ac_header>
12475 rm -f conftest.$ac_objext
12476 if { (ac_try="$ac_compile"
12477 case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_compile") 2>conftest.er1
12484 grep -v '^ *+' conftest.er1 >conftest.err
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12490 { (case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_try") 2>&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest.$ac_objext'
12500 { (case "(($ac_try" in
12501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12502 *) ac_try_echo=$ac_try;;
12504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12505 (eval "$ac_try") 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; }; then
12509 ac_header_compiler=yes
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12514 ac_header_compiler=no
12517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12519 echo "${ECHO_T}$ac_header_compiler" >&6; }
12521 # Is the header present?
12522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12524 cat >conftest.$ac_ext <<_ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 #include <$ac_header>
12532 if { (ac_try="$ac_cpp conftest.$ac_ext"
12533 case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12540 grep -v '^ *+' conftest.er1 >conftest.err
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } >/dev/null; then
12545 if test -s conftest.err; then
12546 ac_cpp_err=$ac_c_preproc_warn_flag
12547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12554 if test -z "$ac_cpp_err"; then
12555 ac_header_preproc=yes
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12560 ac_header_preproc=no
12563 rm -f conftest.err conftest.$ac_ext
12564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12565 echo "${ECHO_T}$ac_header_preproc" >&6; }
12567 # So? What about this header?
12568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12574 ac_header_preproc=yes
12577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12590 ## ------------------------------------ ##
12591 ## Report this to http://llvm.org/bugs/ ##
12592 ## ------------------------------------ ##
12594 ) | sed "s/^/$as_me: WARNING: /" >&2
12597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12602 eval "$as_ac_Header=\$ac_header_preproc"
12604 ac_res=`eval echo '${'$as_ac_Header'}'`
12605 { echo "$as_me:$LINENO: result: $ac_res" >&5
12606 echo "${ECHO_T}$ac_res" >&6; }
12609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12610 cat >>confdefs.h <<_ACEOF
12611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12627 if test "$llvm_cv_enable_libffi" = "yes" ; then
12630 for ac_header in ffi.h ffi/ffi.h
12632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12639 ac_res=`eval echo '${'$as_ac_Header'}'`
12640 { echo "$as_me:$LINENO: result: $ac_res" >&5
12641 echo "${ECHO_T}$ac_res" >&6; }
12643 # Is the header compilable?
12644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12646 cat >conftest.$ac_ext <<_ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h. */
12652 $ac_includes_default
12653 #include <$ac_header>
12655 rm -f conftest.$ac_objext
12656 if { (ac_try="$ac_compile"
12657 case "(($ac_try" in
12658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659 *) ac_try_echo=$ac_try;;
12661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12662 (eval "$ac_compile") 2>conftest.er1
12664 grep -v '^ *+' conftest.er1 >conftest.err
12666 cat conftest.err >&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
12669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12670 { (case "(($ac_try" in
12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672 *) ac_try_echo=$ac_try;;
12674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12675 (eval "$ac_try") 2>&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; } &&
12679 { ac_try='test -s conftest.$ac_objext'
12680 { (case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_try") 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; }; then
12689 ac_header_compiler=yes
12691 echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12694 ac_header_compiler=no
12697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12699 echo "${ECHO_T}$ac_header_compiler" >&6; }
12701 # Is the header present?
12702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12704 cat >conftest.$ac_ext <<_ACEOF
12707 cat confdefs.h >>conftest.$ac_ext
12708 cat >>conftest.$ac_ext <<_ACEOF
12709 /* end confdefs.h. */
12710 #include <$ac_header>
12712 if { (ac_try="$ac_cpp conftest.$ac_ext"
12713 case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12720 grep -v '^ *+' conftest.er1 >conftest.err
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } >/dev/null; then
12725 if test -s conftest.err; then
12726 ac_cpp_err=$ac_c_preproc_warn_flag
12727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12734 if test -z "$ac_cpp_err"; then
12735 ac_header_preproc=yes
12737 echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12740 ac_header_preproc=no
12743 rm -f conftest.err conftest.$ac_ext
12744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12745 echo "${ECHO_T}$ac_header_preproc" >&6; }
12747 # So? What about this header?
12748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12754 ac_header_preproc=yes
12757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12770 ## ------------------------------------ ##
12771 ## Report this to http://llvm.org/bugs/ ##
12772 ## ------------------------------------ ##
12774 ) | sed "s/^/$as_me: WARNING: /" >&2
12777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 eval "$as_ac_Header=\$ac_header_preproc"
12784 ac_res=`eval echo '${'$as_ac_Header'}'`
12785 { echo "$as_me:$LINENO: result: $ac_res" >&5
12786 echo "${ECHO_T}$ac_res" >&6; }
12789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12790 cat >>confdefs.h <<_ACEOF
12791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12801 for ac_header in CrashReporterClient.h
12803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12810 ac_res=`eval echo '${'$as_ac_Header'}'`
12811 { echo "$as_me:$LINENO: result: $ac_res" >&5
12812 echo "${ECHO_T}$ac_res" >&6; }
12814 # Is the header compilable?
12815 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12817 cat >conftest.$ac_ext <<_ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 $ac_includes_default
12824 #include <$ac_header>
12826 rm -f conftest.$ac_objext
12827 if { (ac_try="$ac_compile"
12828 case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_compile") 2>conftest.er1
12835 grep -v '^ *+' conftest.er1 >conftest.err
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
12840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12841 { (case "(($ac_try" in
12842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 *) ac_try_echo=$ac_try;;
12845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846 (eval "$ac_try") 2>&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; } &&
12850 { ac_try='test -s conftest.$ac_objext'
12851 { (case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_try") 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 ac_header_compiler=yes
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 ac_header_compiler=no
12868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12870 echo "${ECHO_T}$ac_header_compiler" >&6; }
12872 # Is the header present?
12873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12875 cat >conftest.$ac_ext <<_ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 #include <$ac_header>
12883 if { (ac_try="$ac_cpp conftest.$ac_ext"
12884 case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12891 grep -v '^ *+' conftest.er1 >conftest.err
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } >/dev/null; then
12896 if test -s conftest.err; then
12897 ac_cpp_err=$ac_c_preproc_warn_flag
12898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12905 if test -z "$ac_cpp_err"; then
12906 ac_header_preproc=yes
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12911 ac_header_preproc=no
12914 rm -f conftest.err conftest.$ac_ext
12915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12916 echo "${ECHO_T}$ac_header_preproc" >&6; }
12918 # So? What about this header?
12919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12925 ac_header_preproc=yes
12928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12941 ## ------------------------------------ ##
12942 ## Report this to http://llvm.org/bugs/ ##
12943 ## ------------------------------------ ##
12945 ) | sed "s/^/$as_me: WARNING: /" >&2
12948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 eval "$as_ac_Header=\$ac_header_preproc"
12955 ac_res=`eval echo '${'$as_ac_Header'}'`
12956 { echo "$as_me:$LINENO: result: $ac_res" >&5
12957 echo "${ECHO_T}$ac_res" >&6; }
12960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12961 cat >>confdefs.h <<_ACEOF
12962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12970 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
12971 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
12972 cat >conftest.$ac_ext <<_ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12980 extern const char *__crashreporter_info__;
12982 __crashreporter_info__ = "test";
12988 rm -f conftest.$ac_objext conftest$ac_exeext
12989 if { (ac_try="$ac_link"
12990 case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_link") 2>conftest.er1
12997 grep -v '^ *+' conftest.er1 >conftest.err
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
13002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13003 { (case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_try") 2>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; } &&
13012 { ac_try='test -s conftest$ac_exeext'
13013 { (case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_try") 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; }; then
13023 { echo "$as_me:$LINENO: result: yes" >&5
13024 echo "${ECHO_T}yes" >&6; }
13026 cat >>confdefs.h <<\_ACEOF
13027 #define HAVE_CRASHREPORTER_INFO 1
13032 echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13036 { echo "$as_me:$LINENO: result: no" >&5
13037 echo "${ECHO_T}no" >&6; }
13039 cat >>confdefs.h <<\_ACEOF
13040 #define HAVE_CRASHREPORTER_INFO 0
13046 rm -f core conftest.err conftest.$ac_objext \
13047 conftest$ac_exeext conftest.$ac_ext
13051 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13052 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13053 if test "${ac_cv_huge_val_sanity+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13058 ac_cpp='$CXXCPP $CPPFLAGS'
13059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13063 ac_save_CXXFLAGS=$CXXFLAGS
13064 CXXFLAGS="$CXXFLAGS -pedantic"
13065 if test "$cross_compiling" = yes; then
13066 ac_cv_huge_val_sanity=yes
13068 cat >conftest.$ac_ext <<_ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h. */
13078 double x = HUGE_VAL; return x != x;
13083 rm -f conftest$ac_exeext
13084 if { (ac_try="$ac_link"
13085 case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_link") 2>&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } && { ac_try='./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
13103 ac_cv_huge_val_sanity=yes
13105 echo "$as_me: program exited with status $ac_status" >&5
13106 echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13109 ( exit $ac_status )
13110 ac_cv_huge_val_sanity=no
13112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13116 CXXFLAGS=$ac_save_CXXFLAGS
13118 ac_cpp='$CPP $CPPFLAGS'
13119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13125 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13126 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13127 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13130 { echo "$as_me:$LINENO: checking for pid_t" >&5
13131 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13132 if test "${ac_cv_type_pid_t+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 cat >conftest.$ac_ext <<_ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13141 $ac_includes_default
13142 typedef pid_t ac__type_new_;
13146 if ((ac__type_new_ *) 0)
13148 if (sizeof (ac__type_new_))
13154 rm -f conftest.$ac_objext
13155 if { (ac_try="$ac_compile"
13156 case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_compile") 2>conftest.er1
13163 grep -v '^ *+' conftest.er1 >conftest.err
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } &&
13168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13169 { (case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_try") 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest.$ac_objext'
13179 { (case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_try") 2>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; }; then
13188 ac_cv_type_pid_t=yes
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ac_cv_type_pid_t=no
13196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13198 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13199 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13200 if test $ac_cv_type_pid_t = yes; then
13204 cat >>confdefs.h <<_ACEOF
13210 { echo "$as_me:$LINENO: checking for size_t" >&5
13211 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13212 if test "${ac_cv_type_size_t+set}" = set; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 cat >conftest.$ac_ext <<_ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13221 $ac_includes_default
13222 typedef size_t ac__type_new_;
13226 if ((ac__type_new_ *) 0)
13228 if (sizeof (ac__type_new_))
13234 rm -f conftest.$ac_objext
13235 if { (ac_try="$ac_compile"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_compile") 2>conftest.er1
13243 grep -v '^ *+' conftest.er1 >conftest.err
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13249 { (case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_try") 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; } &&
13258 { ac_try='test -s conftest.$ac_objext'
13259 { (case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_try") 2>&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13268 ac_cv_type_size_t=yes
13270 echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13273 ac_cv_type_size_t=no
13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13279 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13280 if test $ac_cv_type_size_t = yes; then
13284 cat >>confdefs.h <<_ACEOF
13285 #define size_t unsigned int
13291 cat >>confdefs.h <<_ACEOF
13292 #define RETSIGTYPE void
13295 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13296 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13297 if test "${ac_cv_struct_tm+set}" = set; then
13298 echo $ECHO_N "(cached) $ECHO_C" >&6
13300 cat >conftest.$ac_ext <<_ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13306 #include <sys/types.h>
13312 struct tm *tp; tp->tm_sec;
13317 rm -f conftest.$ac_objext
13318 if { (ac_try="$ac_compile"
13319 case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_compile") 2>conftest.er1
13326 grep -v '^ *+' conftest.er1 >conftest.err
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13332 { (case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_try") 2>&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; } &&
13341 { ac_try='test -s conftest.$ac_objext'
13342 { (case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_try") 2>&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 ac_cv_struct_tm=time.h
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13356 ac_cv_struct_tm=sys/time.h
13359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13361 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13362 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13363 if test $ac_cv_struct_tm = sys/time.h; then
13365 cat >>confdefs.h <<\_ACEOF
13366 #define TM_IN_SYS_TIME 1
13371 { echo "$as_me:$LINENO: checking for int64_t" >&5
13372 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13373 if test "${ac_cv_type_int64_t+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13376 cat >conftest.$ac_ext <<_ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13382 $ac_includes_default
13383 typedef int64_t ac__type_new_;
13387 if ((ac__type_new_ *) 0)
13389 if (sizeof (ac__type_new_))
13395 rm -f conftest.$ac_objext
13396 if { (ac_try="$ac_compile"
13397 case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_compile") 2>conftest.er1
13404 grep -v '^ *+' conftest.er1 >conftest.err
13406 cat conftest.err >&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } &&
13409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13410 { (case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_try") 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try='test -s conftest.$ac_objext'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
13429 ac_cv_type_int64_t=yes
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13434 ac_cv_type_int64_t=no
13437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13439 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13440 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13441 if test $ac_cv_type_int64_t = yes; then
13443 cat >>confdefs.h <<_ACEOF
13444 #define HAVE_INT64_T 1
13449 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13450 echo "$as_me: error: Type int64_t required but not found" >&2;}
13451 { (exit 1); exit 1; }; }
13454 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13455 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13456 if test "${ac_cv_type_uint64_t+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 cat >conftest.$ac_ext <<_ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13465 $ac_includes_default
13466 typedef uint64_t ac__type_new_;
13470 if ((ac__type_new_ *) 0)
13472 if (sizeof (ac__type_new_))
13478 rm -f conftest.$ac_objext
13479 if { (ac_try="$ac_compile"
13480 case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_compile") 2>conftest.er1
13487 grep -v '^ *+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13493 { (case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_try") 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; } &&
13502 { ac_try='test -s conftest.$ac_objext'
13503 { (case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_try") 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13512 ac_cv_type_uint64_t=yes
13514 echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13517 ac_cv_type_uint64_t=no
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13523 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13524 if test $ac_cv_type_uint64_t = yes; then
13526 cat >>confdefs.h <<_ACEOF
13527 #define HAVE_UINT64_T 1
13532 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13533 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13534 if test "${ac_cv_type_u_int64_t+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 cat >conftest.$ac_ext <<_ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13543 $ac_includes_default
13544 typedef u_int64_t ac__type_new_;
13548 if ((ac__type_new_ *) 0)
13550 if (sizeof (ac__type_new_))
13556 rm -f conftest.$ac_objext
13557 if { (ac_try="$ac_compile"
13558 case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_compile") 2>conftest.er1
13565 grep -v '^ *+' conftest.er1 >conftest.err
13567 cat conftest.err >&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } &&
13570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13571 { (case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_try") 2>&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; } &&
13580 { ac_try='test -s conftest.$ac_objext'
13581 { (case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_try") 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 ac_cv_type_u_int64_t=yes
13592 echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13595 ac_cv_type_u_int64_t=no
13598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13600 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13601 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13602 if test $ac_cv_type_u_int64_t = yes; then
13604 cat >>confdefs.h <<_ACEOF
13605 #define HAVE_U_INT64_T 1
13610 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13611 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13612 { (exit 1); exit 1; }; }
13626 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 cat >conftest.$ac_ext <<_ACEOF
13637 cat confdefs.h >>conftest.$ac_ext
13638 cat >>conftest.$ac_ext <<_ACEOF
13639 /* end confdefs.h. */
13640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13642 #define $ac_func innocuous_$ac_func
13644 /* System header to define __stub macros and hopefully few prototypes,
13645 which can conflict with char $ac_func (); below.
13646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13647 <limits.h> exists even on freestanding compilers. */
13650 # include <limits.h>
13652 # include <assert.h>
13657 /* Override any GCC internal prototype to avoid an error.
13658 Use char because int might match the return type of a GCC
13659 builtin and then its argument prototype would still apply. */
13664 /* The GNU C library defines this for functions which it implements
13665 to always fail with ENOSYS. Some functions are actually named
13666 something starting with __ and the normal name is an alias. */
13667 #if defined __stub_$ac_func || defined __stub___$ac_func
13674 return $ac_func ();
13679 rm -f conftest.$ac_objext conftest$ac_exeext
13680 if { (ac_try="$ac_link"
13681 case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_link") 2>conftest.er1
13688 grep -v '^ *+' conftest.er1 >conftest.err
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13694 { (case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_try") 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest$ac_exeext'
13704 { (case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 eval "$as_ac_var=yes"
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13718 eval "$as_ac_var=no"
13721 rm -f core conftest.err conftest.$ac_objext \
13722 conftest$ac_exeext conftest.$ac_ext
13724 ac_res=`eval echo '${'$as_ac_var'}'`
13725 { echo "$as_me:$LINENO: result: $ac_res" >&5
13726 echo "${ECHO_T}$ac_res" >&6; }
13727 if test `eval echo '${'$as_ac_var'}'` = yes; then
13728 cat >>confdefs.h <<_ACEOF
13729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13739 for ac_func in powf fmodf strtof round
13741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13747 cat >conftest.$ac_ext <<_ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13755 #define $ac_func innocuous_$ac_func
13757 /* System header to define __stub macros and hopefully few prototypes,
13758 which can conflict with char $ac_func (); below.
13759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13760 <limits.h> exists even on freestanding compilers. */
13763 # include <limits.h>
13765 # include <assert.h>
13770 /* Override any GCC internal prototype to avoid an error.
13771 Use char because int might match the return type of a GCC
13772 builtin and then its argument prototype would still apply. */
13777 /* The GNU C library defines this for functions which it implements
13778 to always fail with ENOSYS. Some functions are actually named
13779 something starting with __ and the normal name is an alias. */
13780 #if defined __stub_$ac_func || defined __stub___$ac_func
13787 return $ac_func ();
13792 rm -f conftest.$ac_objext conftest$ac_exeext
13793 if { (ac_try="$ac_link"
13794 case "(($ac_try" in
13795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796 *) ac_try_echo=$ac_try;;
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799 (eval "$ac_link") 2>conftest.er1
13801 grep -v '^ *+' conftest.er1 >conftest.err
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } &&
13806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13807 { (case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_try") 2>&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; } &&
13816 { ac_try='test -s conftest$ac_exeext'
13817 { (case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_try") 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 eval "$as_ac_var=yes"
13828 echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13831 eval "$as_ac_var=no"
13834 rm -f core conftest.err conftest.$ac_objext \
13835 conftest$ac_exeext conftest.$ac_ext
13837 ac_res=`eval echo '${'$as_ac_var'}'`
13838 { echo "$as_me:$LINENO: result: $ac_res" >&5
13839 echo "${ECHO_T}$ac_res" >&6; }
13840 if test `eval echo '${'$as_ac_var'}'` = yes; then
13841 cat >>confdefs.h <<_ACEOF
13842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13853 for ac_func in log log2 log10 exp exp2
13855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13856 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 cat >conftest.$ac_ext <<_ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13869 #define $ac_func innocuous_$ac_func
13871 /* System header to define __stub macros and hopefully few prototypes,
13872 which can conflict with char $ac_func (); below.
13873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13874 <limits.h> exists even on freestanding compilers. */
13877 # include <limits.h>
13879 # include <assert.h>
13884 /* Override any GCC internal prototype to avoid an error.
13885 Use char because int might match the return type of a GCC
13886 builtin and then its argument prototype would still apply. */
13891 /* The GNU C library defines this for functions which it implements
13892 to always fail with ENOSYS. Some functions are actually named
13893 something starting with __ and the normal name is an alias. */
13894 #if defined __stub_$ac_func || defined __stub___$ac_func
13901 return $ac_func ();
13906 rm -f conftest.$ac_objext conftest$ac_exeext
13907 if { (ac_try="$ac_link"
13908 case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_link") 2>conftest.er1
13915 grep -v '^ *+' conftest.er1 >conftest.err
13917 cat conftest.err >&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } &&
13920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13921 { (case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_try") 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; } &&
13930 { ac_try='test -s conftest$ac_exeext'
13931 { (case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_try") 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; }; then
13940 eval "$as_ac_var=yes"
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13945 eval "$as_ac_var=no"
13948 rm -f core conftest.err conftest.$ac_objext \
13949 conftest$ac_exeext conftest.$ac_ext
13951 ac_res=`eval echo '${'$as_ac_var'}'`
13952 { echo "$as_me:$LINENO: result: $ac_res" >&5
13953 echo "${ECHO_T}$ac_res" >&6; }
13954 if test `eval echo '${'$as_ac_var'}'` = yes; then
13955 cat >>confdefs.h <<_ACEOF
13956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13967 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
13969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 cat >conftest.$ac_ext <<_ACEOF
13978 cat confdefs.h >>conftest.$ac_ext
13979 cat >>conftest.$ac_ext <<_ACEOF
13980 /* end confdefs.h. */
13981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13983 #define $ac_func innocuous_$ac_func
13985 /* System header to define __stub macros and hopefully few prototypes,
13986 which can conflict with char $ac_func (); below.
13987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13988 <limits.h> exists even on freestanding compilers. */
13991 # include <limits.h>
13993 # include <assert.h>
13998 /* Override any GCC internal prototype to avoid an error.
13999 Use char because int might match the return type of a GCC
14000 builtin and then its argument prototype would still apply. */
14005 /* The GNU C library defines this for functions which it implements
14006 to always fail with ENOSYS. Some functions are actually named
14007 something starting with __ and the normal name is an alias. */
14008 #if defined __stub_$ac_func || defined __stub___$ac_func
14015 return $ac_func ();
14020 rm -f conftest.$ac_objext conftest$ac_exeext
14021 if { (ac_try="$ac_link"
14022 case "(($ac_try" in
14023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024 *) ac_try_echo=$ac_try;;
14026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027 (eval "$ac_link") 2>conftest.er1
14029 grep -v '^ *+' conftest.er1 >conftest.err
14031 cat conftest.err >&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } &&
14034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14035 { (case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040 (eval "$ac_try") 2>&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; } &&
14044 { ac_try='test -s conftest$ac_exeext'
14045 { (case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_try") 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; }; then
14054 eval "$as_ac_var=yes"
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14059 eval "$as_ac_var=no"
14062 rm -f core conftest.err conftest.$ac_objext \
14063 conftest$ac_exeext conftest.$ac_ext
14065 ac_res=`eval echo '${'$as_ac_var'}'`
14066 { echo "$as_me:$LINENO: result: $ac_res" >&5
14067 echo "${ECHO_T}$ac_res" >&6; }
14068 if test `eval echo '${'$as_ac_var'}'` = yes; then
14069 cat >>confdefs.h <<_ACEOF
14070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14079 for ac_func in isatty mkdtemp mkstemp
14081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 cat >conftest.$ac_ext <<_ACEOF
14090 cat confdefs.h >>conftest.$ac_ext
14091 cat >>conftest.$ac_ext <<_ACEOF
14092 /* end confdefs.h. */
14093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14095 #define $ac_func innocuous_$ac_func
14097 /* System header to define __stub macros and hopefully few prototypes,
14098 which can conflict with char $ac_func (); below.
14099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14100 <limits.h> exists even on freestanding compilers. */
14103 # include <limits.h>
14105 # include <assert.h>
14110 /* Override any GCC internal prototype to avoid an error.
14111 Use char because int might match the return type of a GCC
14112 builtin and then its argument prototype would still apply. */
14117 /* The GNU C library defines this for functions which it implements
14118 to always fail with ENOSYS. Some functions are actually named
14119 something starting with __ and the normal name is an alias. */
14120 #if defined __stub_$ac_func || defined __stub___$ac_func
14127 return $ac_func ();
14132 rm -f conftest.$ac_objext conftest$ac_exeext
14133 if { (ac_try="$ac_link"
14134 case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_link") 2>conftest.er1
14141 grep -v '^ *+' conftest.er1 >conftest.err
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } &&
14146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14147 { (case "(($ac_try" in
14148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149 *) ac_try_echo=$ac_try;;
14151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152 (eval "$ac_try") 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; } &&
14156 { ac_try='test -s conftest$ac_exeext'
14157 { (case "(($ac_try" in
14158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_try") 2>&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; }; then
14166 eval "$as_ac_var=yes"
14168 echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14171 eval "$as_ac_var=no"
14174 rm -f core conftest.err conftest.$ac_objext \
14175 conftest$ac_exeext conftest.$ac_ext
14177 ac_res=`eval echo '${'$as_ac_var'}'`
14178 { echo "$as_me:$LINENO: result: $ac_res" >&5
14179 echo "${ECHO_T}$ac_res" >&6; }
14180 if test `eval echo '${'$as_ac_var'}'` = yes; then
14181 cat >>confdefs.h <<_ACEOF
14182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14194 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 cat >conftest.$ac_ext <<_ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14210 #define $ac_func innocuous_$ac_func
14212 /* System header to define __stub macros and hopefully few prototypes,
14213 which can conflict with char $ac_func (); below.
14214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14215 <limits.h> exists even on freestanding compilers. */
14218 # include <limits.h>
14220 # include <assert.h>
14225 /* Override any GCC internal prototype to avoid an error.
14226 Use char because int might match the return type of a GCC
14227 builtin and then its argument prototype would still apply. */
14232 /* The GNU C library defines this for functions which it implements
14233 to always fail with ENOSYS. Some functions are actually named
14234 something starting with __ and the normal name is an alias. */
14235 #if defined __stub_$ac_func || defined __stub___$ac_func
14242 return $ac_func ();
14247 rm -f conftest.$ac_objext conftest$ac_exeext
14248 if { (ac_try="$ac_link"
14249 case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_link") 2>conftest.er1
14256 grep -v '^ *+' conftest.er1 >conftest.err
14258 cat conftest.err >&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } &&
14261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14262 { (case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_try") 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; } &&
14271 { ac_try='test -s conftest$ac_exeext'
14272 { (case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_try") 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 eval "$as_ac_var=yes"
14283 echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14286 eval "$as_ac_var=no"
14289 rm -f core conftest.err conftest.$ac_objext \
14290 conftest$ac_exeext conftest.$ac_ext
14292 ac_res=`eval echo '${'$as_ac_var'}'`
14293 { echo "$as_me:$LINENO: result: $ac_res" >&5
14294 echo "${ECHO_T}$ac_res" >&6; }
14295 if test `eval echo '${'$as_ac_var'}'` = yes; then
14296 cat >>confdefs.h <<_ACEOF
14297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14306 for ac_func in strerror strerror_r setenv
14308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 cat >conftest.$ac_ext <<_ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h. */
14320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14322 #define $ac_func innocuous_$ac_func
14324 /* System header to define __stub macros and hopefully few prototypes,
14325 which can conflict with char $ac_func (); below.
14326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14327 <limits.h> exists even on freestanding compilers. */
14330 # include <limits.h>
14332 # include <assert.h>
14337 /* Override any GCC internal prototype to avoid an error.
14338 Use char because int might match the return type of a GCC
14339 builtin and then its argument prototype would still apply. */
14344 /* The GNU C library defines this for functions which it implements
14345 to always fail with ENOSYS. Some functions are actually named
14346 something starting with __ and the normal name is an alias. */
14347 #if defined __stub_$ac_func || defined __stub___$ac_func
14354 return $ac_func ();
14359 rm -f conftest.$ac_objext conftest$ac_exeext
14360 if { (ac_try="$ac_link"
14361 case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_link") 2>conftest.er1
14368 grep -v '^ *+' conftest.er1 >conftest.err
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14374 { (case "(($ac_try" in
14375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379 (eval "$ac_try") 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; } &&
14383 { ac_try='test -s conftest$ac_exeext'
14384 { (case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_try") 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 eval "$as_ac_var=yes"
14395 echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14398 eval "$as_ac_var=no"
14401 rm -f core conftest.err conftest.$ac_objext \
14402 conftest$ac_exeext conftest.$ac_ext
14404 ac_res=`eval echo '${'$as_ac_var'}'`
14405 { echo "$as_me:$LINENO: result: $ac_res" >&5
14406 echo "${ECHO_T}$ac_res" >&6; }
14407 if test `eval echo '${'$as_ac_var'}'` = yes; then
14408 cat >>confdefs.h <<_ACEOF
14409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14419 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 cat >conftest.$ac_ext <<_ACEOF
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h. */
14433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14435 #define $ac_func innocuous_$ac_func
14437 /* System header to define __stub macros and hopefully few prototypes,
14438 which can conflict with char $ac_func (); below.
14439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14440 <limits.h> exists even on freestanding compilers. */
14443 # include <limits.h>
14445 # include <assert.h>
14450 /* Override any GCC internal prototype to avoid an error.
14451 Use char because int might match the return type of a GCC
14452 builtin and then its argument prototype would still apply. */
14457 /* The GNU C library defines this for functions which it implements
14458 to always fail with ENOSYS. Some functions are actually named
14459 something starting with __ and the normal name is an alias. */
14460 #if defined __stub_$ac_func || defined __stub___$ac_func
14467 return $ac_func ();
14472 rm -f conftest.$ac_objext conftest$ac_exeext
14473 if { (ac_try="$ac_link"
14474 case "(($ac_try" in
14475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_link") 2>conftest.er1
14481 grep -v '^ *+' conftest.er1 >conftest.err
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
14486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14487 { (case "(($ac_try" in
14488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489 *) ac_try_echo=$ac_try;;
14491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492 (eval "$ac_try") 2>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; } &&
14496 { ac_try='test -s conftest$ac_exeext'
14497 { (case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502 (eval "$ac_try") 2>&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; }; then
14506 eval "$as_ac_var=yes"
14508 echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14511 eval "$as_ac_var=no"
14514 rm -f core conftest.err conftest.$ac_objext \
14515 conftest$ac_exeext conftest.$ac_ext
14517 ac_res=`eval echo '${'$as_ac_var'}'`
14518 { echo "$as_me:$LINENO: result: $ac_res" >&5
14519 echo "${ECHO_T}$ac_res" >&6; }
14520 if test `eval echo '${'$as_ac_var'}'` = yes; then
14521 cat >>confdefs.h <<_ACEOF
14522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14533 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14539 echo $ECHO_N "(cached) $ECHO_C" >&6
14541 cat >conftest.$ac_ext <<_ACEOF
14544 cat confdefs.h >>conftest.$ac_ext
14545 cat >>conftest.$ac_ext <<_ACEOF
14546 /* end confdefs.h. */
14547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14549 #define $ac_func innocuous_$ac_func
14551 /* System header to define __stub macros and hopefully few prototypes,
14552 which can conflict with char $ac_func (); below.
14553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14554 <limits.h> exists even on freestanding compilers. */
14557 # include <limits.h>
14559 # include <assert.h>
14564 /* Override any GCC internal prototype to avoid an error.
14565 Use char because int might match the return type of a GCC
14566 builtin and then its argument prototype would still apply. */
14571 /* The GNU C library defines this for functions which it implements
14572 to always fail with ENOSYS. Some functions are actually named
14573 something starting with __ and the normal name is an alias. */
14574 #if defined __stub_$ac_func || defined __stub___$ac_func
14581 return $ac_func ();
14586 rm -f conftest.$ac_objext conftest$ac_exeext
14587 if { (ac_try="$ac_link"
14588 case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_link") 2>conftest.er1
14595 grep -v '^ *+' conftest.er1 >conftest.err
14597 cat conftest.err >&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
14600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14601 { (case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_try") 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; } &&
14610 { ac_try='test -s conftest$ac_exeext'
14611 { (case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_try") 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 eval "$as_ac_var=yes"
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 eval "$as_ac_var=no"
14628 rm -f core conftest.err conftest.$ac_objext \
14629 conftest$ac_exeext conftest.$ac_ext
14631 ac_res=`eval echo '${'$as_ac_var'}'`
14632 { echo "$as_me:$LINENO: result: $ac_res" >&5
14633 echo "${ECHO_T}$ac_res" >&6; }
14634 if test `eval echo '${'$as_ac_var'}'` = yes; then
14635 cat >>confdefs.h <<_ACEOF
14636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14644 for ac_func in futimes futimens
14646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 cat >conftest.$ac_ext <<_ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h. */
14658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14660 #define $ac_func innocuous_$ac_func
14662 /* System header to define __stub macros and hopefully few prototypes,
14663 which can conflict with char $ac_func (); below.
14664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14665 <limits.h> exists even on freestanding compilers. */
14668 # include <limits.h>
14670 # include <assert.h>
14675 /* Override any GCC internal prototype to avoid an error.
14676 Use char because int might match the return type of a GCC
14677 builtin and then its argument prototype would still apply. */
14682 /* The GNU C library defines this for functions which it implements
14683 to always fail with ENOSYS. Some functions are actually named
14684 something starting with __ and the normal name is an alias. */
14685 #if defined __stub_$ac_func || defined __stub___$ac_func
14692 return $ac_func ();
14697 rm -f conftest.$ac_objext conftest$ac_exeext
14698 if { (ac_try="$ac_link"
14699 case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_link") 2>conftest.er1
14706 grep -v '^ *+' conftest.er1 >conftest.err
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } &&
14711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14712 { (case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_try") 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; } &&
14721 { ac_try='test -s conftest$ac_exeext'
14722 { (case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_try") 2>&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14731 eval "$as_ac_var=yes"
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 eval "$as_ac_var=no"
14739 rm -f core conftest.err conftest.$ac_objext \
14740 conftest$ac_exeext conftest.$ac_ext
14742 ac_res=`eval echo '${'$as_ac_var'}'`
14743 { echo "$as_me:$LINENO: result: $ac_res" >&5
14744 echo "${ECHO_T}$ac_res" >&6; }
14745 if test `eval echo '${'$as_ac_var'}'` = yes; then
14746 cat >>confdefs.h <<_ACEOF
14747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14753 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14754 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14755 if test "${llvm_cv_c_printf_a+set}" = set; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14759 ac_cpp='$CPP $CPPFLAGS'
14760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14764 if test "$cross_compiling" = yes; then
14765 llvmac_cv_c_printf_a=no
14767 cat >conftest.$ac_ext <<_ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14776 #include <stdlib.h>
14782 volatile double A, B;
14786 sprintf(Buffer, "%a", A);
14790 if (A != 0x1.999999999999ap-4)
14797 rm -f conftest$ac_exeext
14798 if { (ac_try="$ac_link"
14799 case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804 (eval "$ac_link") 2>&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14808 { (case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813 (eval "$ac_try") 2>&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
14817 llvm_cv_c_printf_a=yes
14819 echo "$as_me: program exited with status $ac_status" >&5
14820 echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14823 ( exit $ac_status )
14824 llvmac_cv_c_printf_a=no
14826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14831 ac_cpp='$CPP $CPPFLAGS'
14832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14837 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14838 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14839 if test "$llvm_cv_c_printf_a" = "yes"; then
14841 cat >>confdefs.h <<\_ACEOF
14842 #define HAVE_PRINTF_A 1
14849 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14850 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14851 if test "${ac_cv_func_rand48+set}" = set; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 ac_cpp='$CXXCPP $CPPFLAGS'
14857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14861 cat >conftest.$ac_ext <<_ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14867 #include <stdlib.h>
14871 srand48(0);lrand48();drand48();
14876 rm -f conftest.$ac_objext
14877 if { (ac_try="$ac_compile"
14878 case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_compile") 2>conftest.er1
14885 grep -v '^ *+' conftest.er1 >conftest.err
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14891 { (case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_try") 2>&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; } &&
14900 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; }; then
14910 ac_cv_func_rand48=yes
14912 echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14915 ac_cv_func_rand48=no
14918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14920 ac_cpp='$CPP $CPPFLAGS'
14921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14927 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
14928 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
14930 if test "$ac_cv_func_rand48" = "yes" ; then
14932 cat >>confdefs.h <<\_ACEOF
14933 #define HAVE_RAND48 1
14939 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
14940 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
14941 if test "${ac_cv_have_decl_arc4random+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 cat >conftest.$ac_ext <<_ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14950 $ac_includes_default
14955 char *p = (char *) arc4random;
14963 rm -f conftest.$ac_objext
14964 if { (ac_try="$ac_compile"
14965 case "(($ac_try" in
14966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967 *) ac_try_echo=$ac_try;;
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970 (eval "$ac_compile") 2>conftest.er1
14972 grep -v '^ *+' conftest.er1 >conftest.err
14974 cat conftest.err >&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); } &&
14977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14978 { (case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_try") 2>&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; } &&
14987 { ac_try='test -s conftest.$ac_objext'
14988 { (case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_try") 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 ac_cv_have_decl_arc4random=yes
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 ac_cv_have_decl_arc4random=no
15005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15008 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15009 if test $ac_cv_have_decl_arc4random = yes; then
15011 cat >>confdefs.h <<_ACEOF
15012 #define HAVE_DECL_ARC4RANDOM 1
15017 cat >>confdefs.h <<_ACEOF
15018 #define HAVE_DECL_ARC4RANDOM 0
15026 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15027 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15028 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15031 cat >conftest.$ac_ext <<_ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037 $ac_includes_default
15042 char *p = (char *) strerror_s;
15050 rm -f conftest.$ac_objext
15051 if { (ac_try="$ac_compile"
15052 case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_compile") 2>conftest.er1
15059 grep -v '^ *+' conftest.er1 >conftest.err
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } &&
15064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15065 { (case "(($ac_try" in
15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067 *) ac_try_echo=$ac_try;;
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070 (eval "$ac_try") 2>&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; } &&
15074 { ac_try='test -s conftest.$ac_objext'
15075 { (case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_try") 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; }; then
15084 ac_cv_have_decl_strerror_s=yes
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15089 ac_cv_have_decl_strerror_s=no
15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15095 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15096 if test $ac_cv_have_decl_strerror_s = yes; then
15098 cat >>confdefs.h <<_ACEOF
15099 #define HAVE_DECL_STRERROR_S 1
15104 cat >>confdefs.h <<_ACEOF
15105 #define HAVE_DECL_STRERROR_S 0
15113 if test "$llvm_cv_os_type" = "MingW" ; then
15114 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15115 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15116 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15117 echo $ECHO_N "(cached) $ECHO_C" >&6
15119 ac_check_lib_save_LIBS=$LIBS
15121 cat >conftest.$ac_ext <<_ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15128 /* Override any GCC internal prototype to avoid an error.
15129 Use char because int might match the return type of a GCC
15130 builtin and then its argument prototype would still apply. */
15143 rm -f conftest.$ac_objext conftest$ac_exeext
15144 if { (ac_try="$ac_link"
15145 case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_link") 2>conftest.er1
15152 grep -v '^ *+' conftest.er1 >conftest.err
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } &&
15157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15158 { (case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_try") 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; } &&
15167 { ac_try='test -s conftest$ac_exeext'
15168 { (case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173 (eval "$ac_try") 2>&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 ac_cv_lib_gcc__alloca=yes
15179 echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15182 ac_cv_lib_gcc__alloca=no
15185 rm -f core conftest.err conftest.$ac_objext \
15186 conftest$ac_exeext conftest.$ac_ext
15187 LIBS=$ac_check_lib_save_LIBS
15189 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15190 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15191 if test $ac_cv_lib_gcc__alloca = yes; then
15193 cat >>confdefs.h <<\_ACEOF
15194 #define HAVE__ALLOCA 1
15199 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15200 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15201 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 ac_check_lib_save_LIBS=$LIBS
15206 cat >conftest.$ac_ext <<_ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15213 /* Override any GCC internal prototype to avoid an error.
15214 Use char because int might match the return type of a GCC
15215 builtin and then its argument prototype would still apply. */
15223 return __alloca ();
15228 rm -f conftest.$ac_objext conftest$ac_exeext
15229 if { (ac_try="$ac_link"
15230 case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_link") 2>conftest.er1
15237 grep -v '^ *+' conftest.er1 >conftest.err
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
15242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15243 { (case "(($ac_try" in
15244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245 *) ac_try_echo=$ac_try;;
15247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248 (eval "$ac_try") 2>&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; } &&
15252 { ac_try='test -s conftest$ac_exeext'
15253 { (case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15258 (eval "$ac_try") 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }; then
15262 ac_cv_lib_gcc___alloca=yes
15264 echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15267 ac_cv_lib_gcc___alloca=no
15270 rm -f core conftest.err conftest.$ac_objext \
15271 conftest$ac_exeext conftest.$ac_ext
15272 LIBS=$ac_check_lib_save_LIBS
15274 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15275 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15276 if test $ac_cv_lib_gcc___alloca = yes; then
15278 cat >>confdefs.h <<\_ACEOF
15279 #define HAVE___ALLOCA 1
15284 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15285 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15286 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 ac_check_lib_save_LIBS=$LIBS
15291 cat >conftest.$ac_ext <<_ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15298 /* Override any GCC internal prototype to avoid an error.
15299 Use char because int might match the return type of a GCC
15300 builtin and then its argument prototype would still apply. */
15308 return __chkstk ();
15313 rm -f conftest.$ac_objext conftest$ac_exeext
15314 if { (ac_try="$ac_link"
15315 case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_link") 2>conftest.er1
15322 grep -v '^ *+' conftest.er1 >conftest.err
15324 cat conftest.err >&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } &&
15327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15328 { (case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_try") 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; } &&
15337 { ac_try='test -s conftest$ac_exeext'
15338 { (case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_try") 2>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
15347 ac_cv_lib_gcc___chkstk=yes
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15352 ac_cv_lib_gcc___chkstk=no
15355 rm -f core conftest.err conftest.$ac_objext \
15356 conftest$ac_exeext conftest.$ac_ext
15357 LIBS=$ac_check_lib_save_LIBS
15359 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15360 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15361 if test $ac_cv_lib_gcc___chkstk = yes; then
15363 cat >>confdefs.h <<\_ACEOF
15364 #define HAVE___CHKSTK 1
15369 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15370 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15371 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15374 ac_check_lib_save_LIBS=$LIBS
15376 cat >conftest.$ac_ext <<_ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15383 /* Override any GCC internal prototype to avoid an error.
15384 Use char because int might match the return type of a GCC
15385 builtin and then its argument prototype would still apply. */
15393 return ___chkstk ();
15398 rm -f conftest.$ac_objext conftest$ac_exeext
15399 if { (ac_try="$ac_link"
15400 case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_link") 2>conftest.er1
15407 grep -v '^ *+' conftest.er1 >conftest.err
15409 cat conftest.err >&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } &&
15412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15413 { (case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_try") 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; } &&
15422 { ac_try='test -s conftest$ac_exeext'
15423 { (case "(($ac_try" in
15424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425 *) ac_try_echo=$ac_try;;
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428 (eval "$ac_try") 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432 ac_cv_lib_gcc____chkstk=yes
15434 echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15437 ac_cv_lib_gcc____chkstk=no
15440 rm -f core conftest.err conftest.$ac_objext \
15441 conftest$ac_exeext conftest.$ac_ext
15442 LIBS=$ac_check_lib_save_LIBS
15444 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15445 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15446 if test $ac_cv_lib_gcc____chkstk = yes; then
15448 cat >>confdefs.h <<\_ACEOF
15449 #define HAVE____CHKSTK 1
15455 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15456 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15457 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 ac_check_lib_save_LIBS=$LIBS
15462 cat >conftest.$ac_ext <<_ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15469 /* Override any GCC internal prototype to avoid an error.
15470 Use char because int might match the return type of a GCC
15471 builtin and then its argument prototype would still apply. */
15479 return __ashldi3 ();
15484 rm -f conftest.$ac_objext conftest$ac_exeext
15485 if { (ac_try="$ac_link"
15486 case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_link") 2>conftest.er1
15493 grep -v '^ *+' conftest.er1 >conftest.err
15495 cat conftest.err >&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } &&
15498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15499 { (case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_try") 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; } &&
15508 { ac_try='test -s conftest$ac_exeext'
15509 { (case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_try") 2>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518 ac_cv_lib_gcc___ashldi3=yes
15520 echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15523 ac_cv_lib_gcc___ashldi3=no
15526 rm -f core conftest.err conftest.$ac_objext \
15527 conftest$ac_exeext conftest.$ac_ext
15528 LIBS=$ac_check_lib_save_LIBS
15530 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15531 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15532 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15534 cat >>confdefs.h <<\_ACEOF
15535 #define HAVE___ASHLDI3 1
15540 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15541 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15542 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 ac_check_lib_save_LIBS=$LIBS
15547 cat >conftest.$ac_ext <<_ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h. */
15554 /* Override any GCC internal prototype to avoid an error.
15555 Use char because int might match the return type of a GCC
15556 builtin and then its argument prototype would still apply. */
15564 return __ashrdi3 ();
15569 rm -f conftest.$ac_objext conftest$ac_exeext
15570 if { (ac_try="$ac_link"
15571 case "(($ac_try" in
15572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573 *) ac_try_echo=$ac_try;;
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576 (eval "$ac_link") 2>conftest.er1
15578 grep -v '^ *+' conftest.er1 >conftest.err
15580 cat conftest.err >&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
15583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15584 { (case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_try") 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest$ac_exeext'
15594 { (case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_try") 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; }; then
15603 ac_cv_lib_gcc___ashrdi3=yes
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ac_cv_lib_gcc___ashrdi3=no
15611 rm -f core conftest.err conftest.$ac_objext \
15612 conftest$ac_exeext conftest.$ac_ext
15613 LIBS=$ac_check_lib_save_LIBS
15615 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15616 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15617 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15619 cat >>confdefs.h <<\_ACEOF
15620 #define HAVE___ASHRDI3 1
15625 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15626 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15627 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 ac_check_lib_save_LIBS=$LIBS
15632 cat >conftest.$ac_ext <<_ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15639 /* Override any GCC internal prototype to avoid an error.
15640 Use char because int might match the return type of a GCC
15641 builtin and then its argument prototype would still apply. */
15649 return __divdi3 ();
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_link") 2>conftest.er1
15663 grep -v '^ *+' conftest.er1 >conftest.err
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } &&
15668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15669 { (case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_try") 2>&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; } &&
15678 { ac_try='test -s conftest$ac_exeext'
15679 { (case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_try") 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }; then
15688 ac_cv_lib_gcc___divdi3=yes
15690 echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15693 ac_cv_lib_gcc___divdi3=no
15696 rm -f core conftest.err conftest.$ac_objext \
15697 conftest$ac_exeext conftest.$ac_ext
15698 LIBS=$ac_check_lib_save_LIBS
15700 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15701 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15702 if test $ac_cv_lib_gcc___divdi3 = yes; then
15704 cat >>confdefs.h <<\_ACEOF
15705 #define HAVE___DIVDI3 1
15710 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15711 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15712 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 ac_check_lib_save_LIBS=$LIBS
15717 cat >conftest.$ac_ext <<_ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15724 /* Override any GCC internal prototype to avoid an error.
15725 Use char because int might match the return type of a GCC
15726 builtin and then its argument prototype would still apply. */
15734 return __fixdfdi ();
15739 rm -f conftest.$ac_objext conftest$ac_exeext
15740 if { (ac_try="$ac_link"
15741 case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_link") 2>conftest.er1
15748 grep -v '^ *+' conftest.er1 >conftest.err
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } &&
15753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15754 { (case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_try") 2>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; } &&
15763 { ac_try='test -s conftest$ac_exeext'
15764 { (case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_try") 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 ac_cv_lib_gcc___fixdfdi=yes
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15778 ac_cv_lib_gcc___fixdfdi=no
15781 rm -f core conftest.err conftest.$ac_objext \
15782 conftest$ac_exeext conftest.$ac_ext
15783 LIBS=$ac_check_lib_save_LIBS
15785 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
15786 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
15787 if test $ac_cv_lib_gcc___fixdfdi = yes; then
15789 cat >>confdefs.h <<\_ACEOF
15790 #define HAVE___FIXDFDI 1
15795 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15796 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15797 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15800 ac_check_lib_save_LIBS=$LIBS
15802 cat >conftest.$ac_ext <<_ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h. */
15809 /* Override any GCC internal prototype to avoid an error.
15810 Use char because int might match the return type of a GCC
15811 builtin and then its argument prototype would still apply. */
15819 return __fixsfdi ();
15824 rm -f conftest.$ac_objext conftest$ac_exeext
15825 if { (ac_try="$ac_link"
15826 case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_link") 2>conftest.er1
15833 grep -v '^ *+' conftest.er1 >conftest.err
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } &&
15838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15839 { (case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_try") 2>&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; } &&
15848 { ac_try='test -s conftest$ac_exeext'
15849 { (case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_try") 2>&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15858 ac_cv_lib_gcc___fixsfdi=yes
15860 echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15863 ac_cv_lib_gcc___fixsfdi=no
15866 rm -f core conftest.err conftest.$ac_objext \
15867 conftest$ac_exeext conftest.$ac_ext
15868 LIBS=$ac_check_lib_save_LIBS
15870 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
15871 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
15872 if test $ac_cv_lib_gcc___fixsfdi = yes; then
15874 cat >>confdefs.h <<\_ACEOF
15875 #define HAVE___FIXSFDI 1
15880 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
15881 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
15882 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15885 ac_check_lib_save_LIBS=$LIBS
15887 cat >conftest.$ac_ext <<_ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15894 /* Override any GCC internal prototype to avoid an error.
15895 Use char because int might match the return type of a GCC
15896 builtin and then its argument prototype would still apply. */
15900 char __floatdidf ();
15904 return __floatdidf ();
15909 rm -f conftest.$ac_objext conftest$ac_exeext
15910 if { (ac_try="$ac_link"
15911 case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916 (eval "$ac_link") 2>conftest.er1
15918 grep -v '^ *+' conftest.er1 >conftest.err
15920 cat conftest.err >&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
15923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15924 { (case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929 (eval "$ac_try") 2>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; } &&
15933 { ac_try='test -s conftest$ac_exeext'
15934 { (case "(($ac_try" in
15935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936 *) ac_try_echo=$ac_try;;
15938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15939 (eval "$ac_try") 2>&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; }; then
15943 ac_cv_lib_gcc___floatdidf=yes
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 ac_cv_lib_gcc___floatdidf=no
15951 rm -f core conftest.err conftest.$ac_objext \
15952 conftest$ac_exeext conftest.$ac_ext
15953 LIBS=$ac_check_lib_save_LIBS
15955 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
15956 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
15957 if test $ac_cv_lib_gcc___floatdidf = yes; then
15959 cat >>confdefs.h <<\_ACEOF
15960 #define HAVE___FLOATDIDF 1
15965 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
15966 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
15967 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
15968 echo $ECHO_N "(cached) $ECHO_C" >&6
15970 ac_check_lib_save_LIBS=$LIBS
15972 cat >conftest.$ac_ext <<_ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15979 /* Override any GCC internal prototype to avoid an error.
15980 Use char because int might match the return type of a GCC
15981 builtin and then its argument prototype would still apply. */
15989 return __lshrdi3 ();
15994 rm -f conftest.$ac_objext conftest$ac_exeext
15995 if { (ac_try="$ac_link"
15996 case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_link") 2>conftest.er1
16003 grep -v '^ *+' conftest.er1 >conftest.err
16005 cat conftest.err >&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } &&
16008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16009 { (case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_try") 2>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; } &&
16018 { ac_try='test -s conftest$ac_exeext'
16019 { (case "(($ac_try" in
16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024 (eval "$ac_try") 2>&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; }; then
16028 ac_cv_lib_gcc___lshrdi3=yes
16030 echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16033 ac_cv_lib_gcc___lshrdi3=no
16036 rm -f core conftest.err conftest.$ac_objext \
16037 conftest$ac_exeext conftest.$ac_ext
16038 LIBS=$ac_check_lib_save_LIBS
16040 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16041 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16042 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16044 cat >>confdefs.h <<\_ACEOF
16045 #define HAVE___LSHRDI3 1
16050 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16051 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16052 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16055 ac_check_lib_save_LIBS=$LIBS
16057 cat >conftest.$ac_ext <<_ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16064 /* Override any GCC internal prototype to avoid an error.
16065 Use char because int might match the return type of a GCC
16066 builtin and then its argument prototype would still apply. */
16074 return __moddi3 ();
16079 rm -f conftest.$ac_objext conftest$ac_exeext
16080 if { (ac_try="$ac_link"
16081 case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_link") 2>conftest.er1
16088 grep -v '^ *+' conftest.er1 >conftest.err
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
16093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16094 { (case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_try") 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest$ac_exeext'
16104 { (case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_try") 2>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; }; then
16113 ac_cv_lib_gcc___moddi3=yes
16115 echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16118 ac_cv_lib_gcc___moddi3=no
16121 rm -f core conftest.err conftest.$ac_objext \
16122 conftest$ac_exeext conftest.$ac_ext
16123 LIBS=$ac_check_lib_save_LIBS
16125 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16126 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16127 if test $ac_cv_lib_gcc___moddi3 = yes; then
16129 cat >>confdefs.h <<\_ACEOF
16130 #define HAVE___MODDI3 1
16135 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16136 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16137 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16138 echo $ECHO_N "(cached) $ECHO_C" >&6
16140 ac_check_lib_save_LIBS=$LIBS
16142 cat >conftest.$ac_ext <<_ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16149 /* Override any GCC internal prototype to avoid an error.
16150 Use char because int might match the return type of a GCC
16151 builtin and then its argument prototype would still apply. */
16159 return __udivdi3 ();
16164 rm -f conftest.$ac_objext conftest$ac_exeext
16165 if { (ac_try="$ac_link"
16166 case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171 (eval "$ac_link") 2>conftest.er1
16173 grep -v '^ *+' conftest.er1 >conftest.err
16175 cat conftest.err >&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } &&
16178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16179 { (case "(($ac_try" in
16180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181 *) ac_try_echo=$ac_try;;
16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184 (eval "$ac_try") 2>&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; } &&
16188 { ac_try='test -s conftest$ac_exeext'
16189 { (case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194 (eval "$ac_try") 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 ac_cv_lib_gcc___udivdi3=yes
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16203 ac_cv_lib_gcc___udivdi3=no
16206 rm -f core conftest.err conftest.$ac_objext \
16207 conftest$ac_exeext conftest.$ac_ext
16208 LIBS=$ac_check_lib_save_LIBS
16210 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16211 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16212 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16214 cat >>confdefs.h <<\_ACEOF
16215 #define HAVE___UDIVDI3 1
16220 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16221 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16222 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 ac_check_lib_save_LIBS=$LIBS
16227 cat >conftest.$ac_ext <<_ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h. */
16234 /* Override any GCC internal prototype to avoid an error.
16235 Use char because int might match the return type of a GCC
16236 builtin and then its argument prototype would still apply. */
16244 return __umoddi3 ();
16249 rm -f conftest.$ac_objext conftest$ac_exeext
16250 if { (ac_try="$ac_link"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_link") 2>conftest.er1
16258 grep -v '^ *+' conftest.er1 >conftest.err
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } &&
16263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16264 { (case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269 (eval "$ac_try") 2>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; } &&
16273 { ac_try='test -s conftest$ac_exeext'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_try") 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_cv_lib_gcc___umoddi3=yes
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 ac_cv_lib_gcc___umoddi3=no
16291 rm -f core conftest.err conftest.$ac_objext \
16292 conftest$ac_exeext conftest.$ac_ext
16293 LIBS=$ac_check_lib_save_LIBS
16295 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16296 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16297 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16299 cat >>confdefs.h <<\_ACEOF
16300 #define HAVE___UMODDI3 1
16306 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16307 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16308 if test "${ac_cv_lib_gcc___main+set}" = set; then
16309 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 ac_check_lib_save_LIBS=$LIBS
16313 cat >conftest.$ac_ext <<_ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16320 /* Override any GCC internal prototype to avoid an error.
16321 Use char because int might match the return type of a GCC
16322 builtin and then its argument prototype would still apply. */
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_link") 2>conftest.er1
16344 grep -v '^ *+' conftest.er1 >conftest.err
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16350 { (case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_try") 2>&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; } &&
16359 { ac_try='test -s conftest$ac_exeext'
16360 { (case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_try") 2>&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 ac_cv_lib_gcc___main=yes
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16374 ac_cv_lib_gcc___main=no
16377 rm -f core conftest.err conftest.$ac_objext \
16378 conftest$ac_exeext conftest.$ac_ext
16379 LIBS=$ac_check_lib_save_LIBS
16381 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16382 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16383 if test $ac_cv_lib_gcc___main = yes; then
16385 cat >>confdefs.h <<\_ACEOF
16386 #define HAVE___MAIN 1
16391 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16392 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16393 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 ac_check_lib_save_LIBS=$LIBS
16398 cat >conftest.$ac_ext <<_ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h. */
16405 /* Override any GCC internal prototype to avoid an error.
16406 Use char because int might match the return type of a GCC
16407 builtin and then its argument prototype would still apply. */
16415 return __cmpdi2 ();
16420 rm -f conftest.$ac_objext conftest$ac_exeext
16421 if { (ac_try="$ac_link"
16422 case "(($ac_try" in
16423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424 *) ac_try_echo=$ac_try;;
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427 (eval "$ac_link") 2>conftest.er1
16429 grep -v '^ *+' conftest.er1 >conftest.err
16431 cat conftest.err >&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16435 { (case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_try") 2>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; } &&
16444 { ac_try='test -s conftest$ac_exeext'
16445 { (case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_try") 2>&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; }; then
16454 ac_cv_lib_gcc___cmpdi2=yes
16456 echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16459 ac_cv_lib_gcc___cmpdi2=no
16462 rm -f core conftest.err conftest.$ac_objext \
16463 conftest$ac_exeext conftest.$ac_ext
16464 LIBS=$ac_check_lib_save_LIBS
16466 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16467 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16468 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16470 cat >>confdefs.h <<\_ACEOF
16471 #define HAVE___CMPDI2 1
16478 if test "$llvm_cv_os_type" = "MingW" ; then
16479 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16480 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16481 cat >conftest.$ac_ext <<_ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16489 #include <windows.h>
16490 #include <imagehlp.h>
16491 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16492 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16496 rm -f conftest.$ac_objext
16497 if { (ac_try="$ac_compile"
16498 case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_compile") 2>conftest.er1
16505 grep -v '^ *+' conftest.er1 >conftest.err
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } &&
16510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16511 { (case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516 (eval "$ac_try") 2>&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; } &&
16520 { ac_try='test -s conftest.$ac_objext'
16521 { (case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_try") 2>&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16531 { echo "$as_me:$LINENO: result: yes" >&5
16532 echo "${ECHO_T}yes" >&6; }
16533 llvm_cv_win32_elmcb_pcstr="PCSTR"
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16540 { echo "$as_me:$LINENO: result: no" >&5
16541 echo "${ECHO_T}no" >&6; }
16542 llvm_cv_win32_elmcb_pcstr="PSTR"
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16548 cat >>confdefs.h <<_ACEOF
16549 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16556 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
16557 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
16558 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16563 ac_cpp='$CXXCPP $CPPFLAGS'
16564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16568 cat >conftest.$ac_ext <<_ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16583 rm -f conftest.$ac_objext
16584 if { (ac_try="$ac_compile"
16585 case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_compile") 2>conftest.er1
16592 grep -v '^ *+' conftest.er1 >conftest.err
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16598 { (case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_try") 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest.$ac_objext'
16608 { (case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_try") 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_cv_func_isnan_in_math_h=yes
16619 echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16622 ac_cv_func_isnan_in_math_h=no
16625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16627 ac_cpp='$CPP $CPPFLAGS'
16628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16634 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
16635 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
16638 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
16640 cat >>confdefs.h <<\_ACEOF
16641 #define HAVE_ISNAN_IN_MATH_H 1
16647 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
16648 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
16649 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
16650 echo $ECHO_N "(cached) $ECHO_C" >&6
16654 ac_cpp='$CXXCPP $CPPFLAGS'
16655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16659 cat >conftest.$ac_ext <<_ACEOF
16662 cat confdefs.h >>conftest.$ac_ext
16663 cat >>conftest.$ac_ext <<_ACEOF
16664 /* end confdefs.h. */
16674 rm -f conftest.$ac_objext
16675 if { (ac_try="$ac_compile"
16676 case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_compile") 2>conftest.er1
16683 grep -v '^ *+' conftest.er1 >conftest.err
16685 cat conftest.err >&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } &&
16688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16689 { (case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_try") 2>&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; } &&
16698 { ac_try='test -s conftest.$ac_objext'
16699 { (case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_try") 2>&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708 ac_cv_func_isnan_in_cmath=yes
16710 echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16713 ac_cv_func_isnan_in_cmath=no
16716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16718 ac_cpp='$CPP $CPPFLAGS'
16719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16725 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
16726 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
16728 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
16730 cat >>confdefs.h <<\_ACEOF
16731 #define HAVE_ISNAN_IN_CMATH 1
16737 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
16738 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
16739 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
16740 echo $ECHO_N "(cached) $ECHO_C" >&6
16744 ac_cpp='$CXXCPP $CPPFLAGS'
16745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16749 cat >conftest.$ac_ext <<_ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16759 float f; std::isnan(f);
16764 rm -f conftest.$ac_objext
16765 if { (ac_try="$ac_compile"
16766 case "(($ac_try" in
16767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768 *) ac_try_echo=$ac_try;;
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771 (eval "$ac_compile") 2>conftest.er1
16773 grep -v '^ *+' conftest.er1 >conftest.err
16775 cat conftest.err >&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } &&
16778 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16779 { (case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_try") 2>&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; } &&
16788 { ac_try='test -s conftest.$ac_objext'
16789 { (case "(($ac_try" in
16790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791 *) ac_try_echo=$ac_try;;
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794 (eval "$ac_try") 2>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_cv_func_std_isnan_in_cmath=yes
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 ac_cv_func_std_isnan_in_cmath=no
16806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16808 ac_cpp='$CPP $CPPFLAGS'
16809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16815 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
16816 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
16818 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
16820 cat >>confdefs.h <<\_ACEOF
16821 #define HAVE_STD_ISNAN_IN_CMATH 1
16829 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
16830 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
16831 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 ac_cpp='$CXXCPP $CPPFLAGS'
16837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16841 cat >conftest.$ac_ext <<_ACEOF
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h. */
16856 rm -f conftest.$ac_objext
16857 if { (ac_try="$ac_compile"
16858 case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_compile") 2>conftest.er1
16865 grep -v '^ *+' conftest.er1 >conftest.err
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16871 { (case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_try") 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try='test -s conftest.$ac_objext'
16881 { (case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_try") 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 ac_cv_func_isinf_in_math_h=yes
16892 echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16895 ac_cv_func_isinf_in_math_h=no
16898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16900 ac_cpp='$CPP $CPPFLAGS'
16901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16907 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
16908 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
16910 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
16912 cat >>confdefs.h <<\_ACEOF
16913 #define HAVE_ISINF_IN_MATH_H 1
16919 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
16920 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
16921 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16926 ac_cpp='$CXXCPP $CPPFLAGS'
16927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16931 cat >conftest.$ac_ext <<_ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h. */
16946 rm -f conftest.$ac_objext
16947 if { (ac_try="$ac_compile"
16948 case "(($ac_try" in
16949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950 *) ac_try_echo=$ac_try;;
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953 (eval "$ac_compile") 2>conftest.er1
16955 grep -v '^ *+' conftest.er1 >conftest.err
16957 cat conftest.err >&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } &&
16960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16961 { (case "(($ac_try" in
16962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966 (eval "$ac_try") 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest.$ac_objext'
16971 { (case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_try") 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; }; then
16980 ac_cv_func_isinf_in_cmath=yes
16982 echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16985 ac_cv_func_isinf_in_cmath=no
16988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16990 ac_cpp='$CPP $CPPFLAGS'
16991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16997 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
16998 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17000 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17002 cat >>confdefs.h <<\_ACEOF
17003 #define HAVE_ISINF_IN_CMATH 1
17009 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17010 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17011 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 ac_cpp='$CXXCPP $CPPFLAGS'
17017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17021 cat >conftest.$ac_ext <<_ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17031 float f; std::isinf(f);
17036 rm -f conftest.$ac_objext
17037 if { (ac_try="$ac_compile"
17038 case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_compile") 2>conftest.er1
17045 grep -v '^ *+' conftest.er1 >conftest.err
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17051 { (case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_try") 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest.$ac_objext'
17061 { (case "(($ac_try" in
17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063 *) ac_try_echo=$ac_try;;
17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066 (eval "$ac_try") 2>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_cv_func_std_isinf_in_cmath=yes
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17075 ac_cv_func_std_isinf_in_cmath=no
17078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080 ac_cpp='$CPP $CPPFLAGS'
17081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17087 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17088 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17090 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17092 cat >>confdefs.h <<\_ACEOF
17093 #define HAVE_STD_ISINF_IN_CMATH 1
17099 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17100 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17101 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 ac_cpp='$CXXCPP $CPPFLAGS'
17107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17111 cat >conftest.$ac_ext <<_ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h. */
17117 #include <ieeefp.h>
17121 float f; finite(f);
17126 rm -f conftest.$ac_objext
17127 if { (ac_try="$ac_compile"
17128 case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_compile") 2>conftest.er1
17135 grep -v '^ *+' conftest.er1 >conftest.err
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17141 { (case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146 (eval "$ac_try") 2>&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; } &&
17150 { ac_try='test -s conftest.$ac_objext'
17151 { (case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_try") 2>&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; }; then
17160 ac_cv_func_finite_in_ieeefp_h=yes
17162 echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17165 ac_cv_func_finite_in_ieeefp_h=no
17168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17170 ac_cpp='$CPP $CPPFLAGS'
17171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17177 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17178 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17180 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17182 cat >>confdefs.h <<\_ACEOF
17183 #define HAVE_FINITE_IN_IEEEFP_H 1
17190 if test "$llvm_cv_platform_type" = "Unix" ; then
17193 for ac_header in stdlib.h unistd.h
17195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17202 ac_res=`eval echo '${'$as_ac_Header'}'`
17203 { echo "$as_me:$LINENO: result: $ac_res" >&5
17204 echo "${ECHO_T}$ac_res" >&6; }
17206 # Is the header compilable?
17207 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17209 cat >conftest.$ac_ext <<_ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h. */
17215 $ac_includes_default
17216 #include <$ac_header>
17218 rm -f conftest.$ac_objext
17219 if { (ac_try="$ac_compile"
17220 case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_compile") 2>conftest.er1
17227 grep -v '^ *+' conftest.er1 >conftest.err
17229 cat conftest.err >&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } &&
17232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; } &&
17242 { ac_try='test -s conftest.$ac_objext'
17243 { (case "(($ac_try" in
17244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245 *) ac_try_echo=$ac_try;;
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248 (eval "$ac_try") 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 ac_header_compiler=yes
17254 echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17257 ac_header_compiler=no
17260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17262 echo "${ECHO_T}$ac_header_compiler" >&6; }
17264 # Is the header present?
17265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17267 cat >conftest.$ac_ext <<_ACEOF
17270 cat confdefs.h >>conftest.$ac_ext
17271 cat >>conftest.$ac_ext <<_ACEOF
17272 /* end confdefs.h. */
17273 #include <$ac_header>
17275 if { (ac_try="$ac_cpp conftest.$ac_ext"
17276 case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17283 grep -v '^ *+' conftest.er1 >conftest.err
17285 cat conftest.err >&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } >/dev/null; then
17288 if test -s conftest.err; then
17289 ac_cpp_err=$ac_c_preproc_warn_flag
17290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17297 if test -z "$ac_cpp_err"; then
17298 ac_header_preproc=yes
17300 echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17303 ac_header_preproc=no
17306 rm -f conftest.err conftest.$ac_ext
17307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17308 echo "${ECHO_T}$ac_header_preproc" >&6; }
17310 # So? What about this header?
17311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17317 ac_header_preproc=yes
17320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17327 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17333 ## ------------------------------------ ##
17334 ## Report this to http://llvm.org/bugs/ ##
17335 ## ------------------------------------ ##
17337 ) | sed "s/^/$as_me: WARNING: /" >&2
17340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 eval "$as_ac_Header=\$ac_header_preproc"
17347 ac_res=`eval echo '${'$as_ac_Header'}'`
17348 { echo "$as_me:$LINENO: result: $ac_res" >&5
17349 echo "${ECHO_T}$ac_res" >&6; }
17352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17353 cat >>confdefs.h <<_ACEOF
17354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17362 for ac_func in getpagesize
17364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 cat >conftest.$ac_ext <<_ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17378 #define $ac_func innocuous_$ac_func
17380 /* System header to define __stub macros and hopefully few prototypes,
17381 which can conflict with char $ac_func (); below.
17382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17383 <limits.h> exists even on freestanding compilers. */
17386 # include <limits.h>
17388 # include <assert.h>
17393 /* Override any GCC internal prototype to avoid an error.
17394 Use char because int might match the return type of a GCC
17395 builtin and then its argument prototype would still apply. */
17400 /* The GNU C library defines this for functions which it implements
17401 to always fail with ENOSYS. Some functions are actually named
17402 something starting with __ and the normal name is an alias. */
17403 #if defined __stub_$ac_func || defined __stub___$ac_func
17410 return $ac_func ();
17415 rm -f conftest.$ac_objext conftest$ac_exeext
17416 if { (ac_try="$ac_link"
17417 case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_link") 2>conftest.er1
17424 grep -v '^ *+' conftest.er1 >conftest.err
17426 cat conftest.err >&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } &&
17429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17430 { (case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435 (eval "$ac_try") 2>&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; } &&
17439 { ac_try='test -s conftest$ac_exeext'
17440 { (case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_try") 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17449 eval "$as_ac_var=yes"
17451 echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17454 eval "$as_ac_var=no"
17457 rm -f core conftest.err conftest.$ac_objext \
17458 conftest$ac_exeext conftest.$ac_ext
17460 ac_res=`eval echo '${'$as_ac_var'}'`
17461 { echo "$as_me:$LINENO: result: $ac_res" >&5
17462 echo "${ECHO_T}$ac_res" >&6; }
17463 if test `eval echo '${'$as_ac_var'}'` = yes; then
17464 cat >>confdefs.h <<_ACEOF
17465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17471 { echo "$as_me:$LINENO: checking for working mmap" >&5
17472 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17473 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17476 if test "$cross_compiling" = yes; then
17477 ac_cv_func_mmap_fixed_mapped=no
17479 cat >conftest.$ac_ext <<_ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17485 $ac_includes_default
17486 /* malloc might have been renamed as rpl_malloc. */
17489 /* Thanks to Mike Haertel and Jim Avera for this test.
17490 Here is a matrix of mmap possibilities:
17491 mmap private not fixed
17492 mmap private fixed at somewhere currently unmapped
17493 mmap private fixed at somewhere already mapped
17494 mmap shared not fixed
17495 mmap shared fixed at somewhere currently unmapped
17496 mmap shared fixed at somewhere already mapped
17497 For private mappings, we should verify that changes cannot be read()
17498 back from the file, nor mmap's back from the file at a different
17499 address. (There have been systems where private was not correctly
17500 implemented like the infamous i386 svr4.0, and systems where the
17501 VM page cache was not coherent with the file system buffer cache
17502 like early versions of FreeBSD and possibly contemporary NetBSD.)
17503 For shared mappings, we should conversely verify that changes get
17504 propagated back to all the places they're supposed to be.
17506 Grep wants private fixed already mapped.
17507 The main things grep needs to know about mmap are:
17508 * does it exist and is it safe to write into the mmap'd area
17509 * how to use it (BSD variants) */
17512 #include <sys/mman.h>
17514 #if !STDC_HEADERS && !HAVE_STDLIB_H
17518 /* This mess was copied from the GNU getpagesize.h. */
17519 #if !HAVE_GETPAGESIZE
17520 /* Assume that all systems that can run configure have sys/param.h. */
17521 # if !HAVE_SYS_PARAM_H
17522 # define HAVE_SYS_PARAM_H 1
17525 # ifdef _SC_PAGESIZE
17526 # define getpagesize() sysconf(_SC_PAGESIZE)
17527 # else /* no _SC_PAGESIZE */
17528 # if HAVE_SYS_PARAM_H
17529 # include <sys/param.h>
17530 # ifdef EXEC_PAGESIZE
17531 # define getpagesize() EXEC_PAGESIZE
17532 # else /* no EXEC_PAGESIZE */
17534 # define getpagesize() NBPG * CLSIZE
17537 # endif /* no CLSIZE */
17538 # else /* no NBPG */
17540 # define getpagesize() NBPC
17541 # else /* no NBPC */
17543 # define getpagesize() PAGESIZE
17544 # endif /* PAGESIZE */
17545 # endif /* no NBPC */
17546 # endif /* no NBPG */
17547 # endif /* no EXEC_PAGESIZE */
17548 # else /* no HAVE_SYS_PARAM_H */
17549 # define getpagesize() 8192 /* punt totally */
17550 # endif /* no HAVE_SYS_PARAM_H */
17551 # endif /* no _SC_PAGESIZE */
17553 #endif /* no HAVE_GETPAGESIZE */
17558 char *data, *data2, *data3;
17562 pagesize = getpagesize ();
17564 /* First, make a file with some known garbage in it. */
17565 data = (char *) malloc (pagesize);
17568 for (i = 0; i < pagesize; ++i)
17569 *(data + i) = rand ();
17571 fd = creat ("conftest.mmap", 0600);
17574 if (write (fd, data, pagesize) != pagesize)
17578 /* Next, try to mmap the file at a fixed address which already has
17579 something else allocated at it. If we can, also make sure that
17580 we see the same garbage. */
17581 fd = open ("conftest.mmap", O_RDWR);
17584 data2 = (char *) malloc (2 * pagesize);
17587 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17588 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17589 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17591 for (i = 0; i < pagesize; ++i)
17592 if (*(data + i) != *(data2 + i))
17595 /* Finally, make sure that changes to the mapped area do not
17596 percolate back to the file as seen by read(). (This is a bug on
17597 some variants of i386 svr4.0.) */
17598 for (i = 0; i < pagesize; ++i)
17599 *(data2 + i) = *(data2 + i) + 1;
17600 data3 = (char *) malloc (pagesize);
17603 if (read (fd, data3, pagesize) != pagesize)
17605 for (i = 0; i < pagesize; ++i)
17606 if (*(data + i) != *(data3 + i))
17612 rm -f conftest$ac_exeext
17613 if { (ac_try="$ac_link"
17614 case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_link") 2>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17623 { (case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_try") 2>&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; }; then
17632 ac_cv_func_mmap_fixed_mapped=yes
17634 echo "$as_me: program exited with status $ac_status" >&5
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17638 ( exit $ac_status )
17639 ac_cv_func_mmap_fixed_mapped=no
17641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17646 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17647 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17648 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17650 cat >>confdefs.h <<\_ACEOF
17651 #define HAVE_MMAP 1
17655 rm -f conftest.mmap
17657 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17658 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17659 if test "${ac_cv_func_mmap_file+set}" = set; then
17660 echo $ECHO_N "(cached) $ECHO_C" >&6
17663 ac_cpp='$CPP $CPPFLAGS'
17664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17668 if test "$cross_compiling" = yes; then
17669 ac_cv_func_mmap_file=no
17671 cat >conftest.$ac_ext <<_ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17679 #include <sys/types.h>
17680 #include <sys/mman.h>
17688 fd = creat ("foo",0777);
17689 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17691 return (fd != (int) MAP_FAILED);
17696 rm -f conftest$ac_exeext
17697 if { (ac_try="$ac_link"
17698 case "(($ac_try" in
17699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17700 *) ac_try_echo=$ac_try;;
17702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17703 (eval "$ac_link") 2>&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17707 { (case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_try") 2>&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; }; then
17716 ac_cv_func_mmap_file=yes
17718 echo "$as_me: program exited with status $ac_status" >&5
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17722 ( exit $ac_status )
17723 ac_cv_func_mmap_file=no
17725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17730 ac_cpp='$CPP $CPPFLAGS'
17731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17737 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17738 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17739 if test "$ac_cv_func_mmap_file" = yes; then
17741 cat >>confdefs.h <<\_ACEOF
17742 #define HAVE_MMAP_FILE
17749 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17750 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17751 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 if test "$llvm_cv_os_type" = "Interix" ; then
17755 ac_cv_need_dev_zero_for_mmap=yes
17757 ac_cv_need_dev_zero_for_mmap=no
17761 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17762 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17763 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17765 cat >>confdefs.h <<\_ACEOF
17766 #define NEED_DEV_ZERO_FOR_MMAP 1
17771 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17773 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17774 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17776 if test "$ac_cv_func_mmap_file" = "no"
17778 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17779 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17783 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17784 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17786 ac_cpp='$CXXCPP $CPPFLAGS'
17787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17791 cat >conftest.$ac_ext <<_ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17800 volatile unsigned long val = 1;
17801 __sync_synchronize();
17802 __sync_val_compare_and_swap(&val, 1, 0);
17803 __sync_add_and_fetch(&val, 1);
17804 __sync_sub_and_fetch(&val, 1);
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (ac_try="$ac_link"
17812 case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_link") 2>conftest.er1
17819 grep -v '^ *+' conftest.er1 >conftest.err
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } &&
17824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17825 { (case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_try") 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; } &&
17834 { ac_try='test -s conftest$ac_exeext'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17845 { echo "$as_me:$LINENO: result: yes" >&5
17846 echo "${ECHO_T}yes" >&6; }
17848 cat >>confdefs.h <<\_ACEOF
17849 #define LLVM_HAS_ATOMICS 1
17854 echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17858 { echo "$as_me:$LINENO: result: no" >&5
17859 echo "${ECHO_T}no" >&6; }
17861 cat >>confdefs.h <<\_ACEOF
17862 #define LLVM_HAS_ATOMICS 0
17865 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17866 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17870 rm -f core conftest.err conftest.$ac_objext \
17871 conftest$ac_exeext conftest.$ac_ext
17873 ac_cpp='$CPP $CPPFLAGS'
17874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17880 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17881 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17882 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17883 if test "${llvm_cv_linux_mixed+set}" = set; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17887 ac_cpp='$CPP $CPPFLAGS'
17888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17892 cat >conftest.$ac_ext <<_ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h. */
17899 error: Not x86-64 even if uname says so!
17910 rm -f conftest.$ac_objext
17911 if { (ac_try="$ac_compile"
17912 case "(($ac_try" in
17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914 *) ac_try_echo=$ac_try;;
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917 (eval "$ac_compile") 2>conftest.er1
17919 grep -v '^ *+' conftest.er1 >conftest.err
17921 cat conftest.err >&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
17924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17925 { (case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_try") 2>&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest.$ac_objext'
17935 { (case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_try") 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; }; then
17944 llvm_cv_linux_mixed=no
17946 echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17949 llvm_cv_linux_mixed=yes
17952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17954 ac_cpp='$CPP $CPPFLAGS'
17955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17961 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17962 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17964 if test "$llvm_cv_linux_mixed" = "yes"; then
17965 llvm_cv_target_arch="x86"
17971 for ac_func in __dso_handle
17973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17974 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17977 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 cat >conftest.$ac_ext <<_ACEOF
17982 cat confdefs.h >>conftest.$ac_ext
17983 cat >>conftest.$ac_ext <<_ACEOF
17984 /* end confdefs.h. */
17985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17987 #define $ac_func innocuous_$ac_func
17989 /* System header to define __stub macros and hopefully few prototypes,
17990 which can conflict with char $ac_func (); below.
17991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17992 <limits.h> exists even on freestanding compilers. */
17995 # include <limits.h>
17997 # include <assert.h>
18002 /* Override any GCC internal prototype to avoid an error.
18003 Use char because int might match the return type of a GCC
18004 builtin and then its argument prototype would still apply. */
18009 /* The GNU C library defines this for functions which it implements
18010 to always fail with ENOSYS. Some functions are actually named
18011 something starting with __ and the normal name is an alias. */
18012 #if defined __stub_$ac_func || defined __stub___$ac_func
18019 return $ac_func ();
18024 rm -f conftest.$ac_objext conftest$ac_exeext
18025 if { (ac_try="$ac_link"
18026 case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_link") 2>conftest.er1
18033 grep -v '^ *+' conftest.er1 >conftest.err
18035 cat conftest.err >&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } &&
18038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18039 { (case "(($ac_try" in
18040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041 *) ac_try_echo=$ac_try;;
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044 (eval "$ac_try") 2>&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; } &&
18048 { ac_try='test -s conftest$ac_exeext'
18049 { (case "(($ac_try" in
18050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18051 *) ac_try_echo=$ac_try;;
18053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18054 (eval "$ac_try") 2>&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; }; then
18058 eval "$as_ac_var=yes"
18060 echo "$as_me: failed program was:" >&5
18061 sed 's/^/| /' conftest.$ac_ext >&5
18063 eval "$as_ac_var=no"
18066 rm -f core conftest.err conftest.$ac_objext \
18067 conftest$ac_exeext conftest.$ac_ext
18069 ac_res=`eval echo '${'$as_ac_var'}'`
18070 { echo "$as_me:$LINENO: result: $ac_res" >&5
18071 echo "${ECHO_T}$ac_res" >&6; }
18072 if test `eval echo '${'$as_ac_var'}'` = yes; then
18073 cat >>confdefs.h <<_ACEOF
18074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18081 SHLIBEXT=$llvm_shlib_ext
18084 if test "${prefix}" = "NONE" ; then
18085 prefix="/usr/local"
18087 eval LLVM_PREFIX="${prefix}";
18088 eval LLVM_BINDIR="${prefix}/bin";
18089 eval LLVM_DATADIR="${prefix}/share/llvm";
18090 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18091 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18092 eval LLVM_INCLUDEDIR="${prefix}/include";
18093 eval LLVM_INFODIR="${prefix}/info";
18094 eval LLVM_MANDIR="${prefix}/man";
18095 LLVM_CONFIGTIME=`date`
18106 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18107 LLVM_CONFIGTIME="(timestamp not enabled)"
18111 cat >>confdefs.h <<_ACEOF
18112 #define LLVM_PREFIX "$LLVM_PREFIX"
18116 cat >>confdefs.h <<_ACEOF
18117 #define LLVM_BINDIR "$LLVM_BINDIR"
18121 cat >>confdefs.h <<_ACEOF
18122 #define LLVM_DATADIR "$LLVM_DATADIR"
18126 cat >>confdefs.h <<_ACEOF
18127 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18131 cat >>confdefs.h <<_ACEOF
18132 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18136 cat >>confdefs.h <<_ACEOF
18137 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18141 cat >>confdefs.h <<_ACEOF
18142 #define LLVM_INFODIR "$LLVM_INFODIR"
18146 cat >>confdefs.h <<_ACEOF
18147 #define LLVM_MANDIR "$LLVM_MANDIR"
18151 cat >>confdefs.h <<_ACEOF
18152 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18156 cat >>confdefs.h <<_ACEOF
18157 #define LLVM_HOST_TRIPLE "$host"
18161 cat >>confdefs.h <<_ACEOF
18162 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18166 if test "$BINDINGS_TO_BUILD" = auto ; then
18167 BINDINGS_TO_BUILD=""
18168 if test "x$OCAMLFIND" != x ; then
18169 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18171 if test "x$GO" != x ; then
18172 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18173 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18177 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18180 binding_prereqs_failed=0
18181 for a_binding in $BINDINGS_TO_BUILD ; do
18182 case "$a_binding" in
18184 if test "x$OCAMLFIND" = x ; then
18185 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
18186 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
18187 binding_prereqs_failed=1
18190 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
18197 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
18198 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
18199 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
18200 binding_prereqs_failed=1
18203 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
18207 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
18208 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18212 if test "x$with_ocaml_libdir" != xauto ; then
18213 OCAML_LIBDIR=$with_ocaml_libdir
18216 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18217 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18219 # ocaml stdlib is beneath our prefix; use stdlib
18220 OCAML_LIBDIR=$ocaml_stdlib
18223 # ocaml stdlib is outside our prefix; use libdir/ocaml
18224 OCAML_LIBDIR=${prefix}/lib/ocaml
18230 if test "x$GO" = x ; then
18231 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18232 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18233 binding_prereqs_failed=1
18235 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18238 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18239 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18240 binding_prereqs_failed=1
18246 if test "$binding_prereqs_failed" = 1 ; then
18247 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18248 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18249 { (exit 1); exit 1; }; }
18252 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18253 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18254 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
18258 ac_cpp='$CXXCPP $CPPFLAGS'
18259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18263 oldcxxflags="$CXXFLAGS"
18264 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18265 cat >conftest.$ac_ext <<_ACEOF
18268 cat confdefs.h >>conftest.$ac_ext
18269 cat >>conftest.$ac_ext <<_ACEOF
18270 /* end confdefs.h. */
18271 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18280 rm -f conftest.$ac_objext
18281 if { (ac_try="$ac_compile"
18282 case "(($ac_try" in
18283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284 *) ac_try_echo=$ac_try;;
18286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287 (eval "$ac_compile") 2>conftest.er1
18289 grep -v '^ *+' conftest.er1 >conftest.err
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } &&
18294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18295 { (case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_try") 2>&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; } &&
18304 { ac_try='test -s conftest.$ac_objext'
18305 { (case "(($ac_try" in
18306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307 *) ac_try_echo=$ac_try;;
18309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18310 (eval "$ac_try") 2>&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; }; then
18314 llvm_cv_cxx_visibility_inlines_hidden=yes
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18319 llvm_cv_cxx_visibility_inlines_hidden=no
18322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18323 CXXFLAGS="$oldcxxflags"
18325 ac_cpp='$CPP $CPPFLAGS'
18326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18332 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18333 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18334 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18335 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18338 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18343 if test "$llvm_cv_link_use_r" = "yes" ; then
18350 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18351 RDYNAMIC="-rdynamic"
18358 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18365 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18367 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18369 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18371 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18373 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18376 ac_config_files="$ac_config_files Makefile.config"
18379 ac_config_files="$ac_config_files llvm.spec"
18382 ac_config_files="$ac_config_files docs/doxygen.cfg"
18385 if test "${clang_src_root}" = ""; then
18386 clang_src_root="$srcdir/tools/clang"
18388 if test -f ${clang_src_root}/README.txt; then
18389 configh="include/clang/Config/config.h"
18390 doxy="docs/doxygen.cfg"
18391 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18393 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18397 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18400 test "x$program_prefix" = "xNONE" && program_prefix=""
18404 ac_config_commands="$ac_config_commands setup"
18406 ac_config_commands="$ac_config_commands Makefile"
18409 ac_config_commands="$ac_config_commands Makefile.common"
18412 ac_config_commands="$ac_config_commands examples/Makefile"
18415 ac_config_commands="$ac_config_commands lib/Makefile"
18418 ac_config_commands="$ac_config_commands test/Makefile"
18421 ac_config_commands="$ac_config_commands test/Makefile.tests"
18424 ac_config_commands="$ac_config_commands unittests/Makefile"
18427 ac_config_commands="$ac_config_commands tools/Makefile"
18430 ac_config_commands="$ac_config_commands utils/Makefile"
18433 ac_config_commands="$ac_config_commands projects/Makefile"
18436 ac_config_commands="$ac_config_commands bindings/Makefile"
18439 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18443 cat >confcache <<\_ACEOF
18444 # This file is a shell script that caches the results of configure
18445 # tests run on this system so they can be shared between configure
18446 # scripts and configure runs, see configure's option --config-cache.
18447 # It is not useful on other systems. If it contains results you don't
18448 # want to keep, you may remove or edit it.
18450 # config.status only pays attention to the cache file if you give it
18451 # the --recheck option to rerun configure.
18453 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18454 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18455 # following values.
18459 # The following way of writing the cache mishandles newlines in values,
18460 # but we know of no workaround that is simple, portable, and efficient.
18461 # So, we kill variables containing newlines.
18462 # Ultrix sh set writes to stderr and can't be redirected directly,
18463 # and sets the high bit in the cache file unless we assign to the vars.
18465 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18466 eval ac_val=\$$ac_var
18470 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18471 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18474 _ | IFS | as_nl) ;; #(
18475 *) $as_unset $ac_var ;;
18481 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18482 *${as_nl}ac_space=\ *)
18483 # `set' does not quote correctly, so add quotes (double-quote
18484 # substitution turns \\\\ into \\, and sed turns \\ into \).
18487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18490 # `set' quotes correctly as required by POSIX, so do not add quotes.
18491 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18500 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18502 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18504 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18505 if test -w "$cache_file"; then
18506 test "x$cache_file" != "x/dev/null" &&
18507 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18508 echo "$as_me: updating cache $cache_file" >&6;}
18509 cat confcache >$cache_file
18511 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18512 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18517 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18518 # Let make expand exec_prefix.
18519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18521 DEFS=-DHAVE_CONFIG_H
18525 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18526 # 1. Remove the extension, and $U if already installed.
18527 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18528 ac_i=`echo "$ac_i" | sed "$ac_script"`
18529 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18530 # will be set to the directory where LIBOBJS objects are built.
18531 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18532 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18534 LIBOBJS=$ac_libobjs
18536 LTLIBOBJS=$ac_ltlibobjs
18540 : ${CONFIG_STATUS=./config.status}
18541 ac_clean_files_save=$ac_clean_files
18542 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18543 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18544 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18545 cat >$CONFIG_STATUS <<_ACEOF
18547 # Generated by $as_me.
18548 # Run this file to recreate the current configuration.
18549 # Compiler output produced by configure, useful for debugging
18550 # configure, is in config.log if it exists.
18553 ac_cs_recheck=false
18555 SHELL=\${CONFIG_SHELL-$SHELL}
18558 cat >>$CONFIG_STATUS <<\_ACEOF
18559 ## --------------------- ##
18560 ## M4sh Initialization. ##
18561 ## --------------------- ##
18563 # Be Bourne compatible
18564 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18567 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18568 # is contrary to our usage. Disable this feature.
18569 alias -g '${1+"$@"}'='"$@"'
18570 setopt NO_GLOB_SUBST
18572 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18574 BIN_SH=xpg4; export BIN_SH # for Tru64
18575 DUALCASE=1; export DUALCASE # for MKS sh
18579 # Avoid depending upon Character Ranges.
18580 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18581 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18582 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18583 as_cr_digits='0123456789'
18584 as_cr_alnum=$as_cr_Letters$as_cr_digits
18586 # The user is always right.
18587 if test "${PATH_SEPARATOR+set}" != set; then
18588 echo "#! /bin/sh" >conf$$.sh
18589 echo "exit 0" >>conf$$.sh
18591 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18599 # Support unset when possible.
18600 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18608 # We need space, tab and new line, in precisely that order. Quoting is
18609 # there to prevent editors from complaining about space-tab.
18610 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18611 # splitting by setting IFS to empty value.)
18616 # Find who we are. Look in the path if we contain no directory separator.
18618 *[\\/]* ) as_myself=$0 ;;
18619 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18620 for as_dir in $PATH
18623 test -z "$as_dir" && as_dir=.
18624 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18630 # We did not find ourselves, most probably we were run as `sh COMMAND'
18631 # in which case we are not to be found in the path.
18632 if test "x$as_myself" = x; then
18635 if test ! -f "$as_myself"; then
18636 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18637 { (exit 1); exit 1; }
18640 # Work around bugs in pre-3.0 UWIN ksh.
18641 for as_var in ENV MAIL MAILPATH
18642 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18650 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18651 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18652 LC_TELEPHONE LC_TIME
18654 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18655 eval $as_var=C; export $as_var
18657 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18661 # Required to use basename.
18662 if expr a : '\(a\)' >/dev/null 2>&1 &&
18663 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18669 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18670 as_basename=basename
18676 # Name of the executable.
18677 as_me=`$as_basename -- "$0" ||
18678 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18679 X"$0" : 'X\(//\)$' \| \
18680 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18682 sed '/^.*\/\([^/][^/]*\)\/*$/{
18701 as_lineno_1=$LINENO
18702 as_lineno_2=$LINENO
18703 test "x$as_lineno_1" != "x$as_lineno_2" &&
18704 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18706 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18707 # uniformly replaced by the line number. The first 'sed' inserts a
18708 # line-number line after each line using $LINENO; the second 'sed'
18709 # does the real work. The second script uses 'N' to pair each
18710 # line-number line with the line containing $LINENO, and appends
18711 # trailing '-' during substitution so that $LINENO is not a special
18712 # case at line end.
18713 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18714 # scripts with optimization help from Paolo Bonzini. Blame Lee
18715 # E. McMahon (1931-1989) for sed's syntax. :-)
18727 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18730 ' >$as_me.lineno &&
18731 chmod +x "$as_me.lineno" ||
18732 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18733 { (exit 1); exit 1; }; }
18735 # Don't try to exec as it changes $[0], causing all sort of problems
18736 # (the dirname of $[0] is not the place where we might find the
18737 # original and so on. Autoconf is especially sensitive to this).
18738 . "./$as_me.lineno"
18739 # Exit status is that of the last command.
18744 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18750 ECHO_C= ECHO_N= ECHO_T=
18751 case `echo -n x` in
18753 case `echo 'x\c'` in
18754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18761 if expr a : '\(a\)' >/dev/null 2>&1 &&
18762 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18768 rm -f conf$$ conf$$.exe conf$$.file
18769 if test -d conf$$.dir; then
18770 rm -f conf$$.dir/conf$$.file
18776 if ln -s conf$$.file conf$$ 2>/dev/null; then
18778 # ... but there are two gotchas:
18779 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18780 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18781 # In both cases, we have to default to `cp -p'.
18782 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18784 elif ln conf$$.file conf$$ 2>/dev/null; then
18789 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18790 rmdir conf$$.dir 2>/dev/null
18792 if mkdir -p . 2>/dev/null; then
18795 test -d ./-p && rmdir ./-p
18799 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18800 # systems may use methods other than mode bits to determine executability.
18801 cat >conf$$.file <<_ASEOF
18805 chmod +x conf$$.file
18806 if test -x conf$$.file >/dev/null 2>&1; then
18807 as_executable_p="test -x"
18813 # Sed expression to map a string onto a valid CPP name.
18814 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18816 # Sed expression to map a string onto a valid variable name.
18817 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18822 # Save the log message, to keep $[0] and so on meaningful, and to
18823 # report actual input values of CONFIG_FILES etc. instead of their
18824 # values after options handling.
18826 This file was extended by LLVM $as_me 3.6.0svn, which was
18827 generated by GNU Autoconf 2.60. Invocation command line was
18829 CONFIG_FILES = $CONFIG_FILES
18830 CONFIG_HEADERS = $CONFIG_HEADERS
18831 CONFIG_LINKS = $CONFIG_LINKS
18832 CONFIG_COMMANDS = $CONFIG_COMMANDS
18835 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18840 cat >>$CONFIG_STATUS <<_ACEOF
18841 # Files that config.status was made for.
18842 config_files="$ac_config_files"
18843 config_headers="$ac_config_headers"
18844 config_commands="$ac_config_commands"
18848 cat >>$CONFIG_STATUS <<\_ACEOF
18850 \`$as_me' instantiates files from templates according to the
18851 current configuration.
18853 Usage: $0 [OPTIONS] [FILE]...
18855 -h, --help print this help, then exit
18856 -V, --version print version number, then exit
18857 -q, --quiet do not print progress messages
18858 -d, --debug don't remove temporary files
18859 --recheck update $as_me by reconfiguring in the same conditions
18860 --file=FILE[:TEMPLATE]
18861 instantiate the configuration file FILE
18862 --header=FILE[:TEMPLATE]
18863 instantiate the configuration header FILE
18865 Configuration files:
18868 Configuration headers:
18871 Configuration commands:
18874 Report bugs to <bug-autoconf@gnu.org>."
18877 cat >>$CONFIG_STATUS <<_ACEOF
18879 LLVM config.status 3.6.0svn
18880 configured by $0, generated by GNU Autoconf 2.60,
18881 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18883 Copyright (C) 2006 Free Software Foundation, Inc.
18884 This config.status script is free software; the Free Software Foundation
18885 gives unlimited permission to copy, distribute and modify it."
18892 cat >>$CONFIG_STATUS <<\_ACEOF
18893 # If no file are specified by the user, then we need to provide default
18894 # value. By we need to know if files were specified by the user.
18900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18901 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18912 # Handling of the options.
18913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18915 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18916 echo "$ac_cs_version"; exit ;;
18917 --debug | --debu | --deb | --de | --d | -d )
18919 --file | --fil | --fi | --f )
18921 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18922 ac_need_defaults=false;;
18923 --header | --heade | --head | --hea )
18925 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18926 ac_need_defaults=false;;
18928 # Conflict between --help and --header
18929 { echo "$as_me: error: ambiguous option: $1
18930 Try \`$0 --help' for more information." >&2
18931 { (exit 1); exit 1; }; };;
18932 --help | --hel | -h )
18933 echo "$ac_cs_usage"; exit ;;
18934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18935 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18938 # This is an error.
18939 -*) { echo "$as_me: error: unrecognized option: $1
18940 Try \`$0 --help' for more information." >&2
18941 { (exit 1); exit 1; }; } ;;
18943 *) ac_config_targets="$ac_config_targets $1"
18944 ac_need_defaults=false ;;
18950 ac_configure_extra_args=
18952 if $ac_cs_silent; then
18954 ac_configure_extra_args="$ac_configure_extra_args --silent"
18958 cat >>$CONFIG_STATUS <<_ACEOF
18959 if \$ac_cs_recheck; then
18960 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18961 CONFIG_SHELL=$SHELL
18962 export CONFIG_SHELL
18963 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18967 cat >>$CONFIG_STATUS <<\_ACEOF
18971 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18972 ## Running $as_me. ##
18978 cat >>$CONFIG_STATUS <<_ACEOF
18982 llvm_src="${srcdir}"
18986 cat >>$CONFIG_STATUS <<\_ACEOF
18988 # Handling of arguments.
18989 for ac_config_target in $ac_config_targets
18991 case $ac_config_target in
18992 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18993 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18994 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18995 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18996 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18997 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18998 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18999 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19000 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19001 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19002 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19003 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19004 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19005 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19006 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19007 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19008 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19009 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19010 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19011 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19012 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19013 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19014 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19015 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19016 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19017 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19019 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19020 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19021 { (exit 1); exit 1; }; };;
19026 # If the user did not use the arguments to specify the items to instantiate,
19027 # then the envvar interface is used. Set only those that are not.
19028 # We use the long form for the default assignment because of an extremely
19029 # bizarre bug on SunOS 4.1.3.
19030 if $ac_need_defaults; then
19031 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19032 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19033 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19036 # Have a temporary directory for convenience. Make it in the build tree
19037 # simply because there is no reason against having it here, and in addition,
19038 # creating and moving files from /tmp can sometimes cause problems.
19039 # Hook for its removal unless debugging.
19040 # Note that there is a small window in which the directory will not be cleaned:
19041 # after its creation but before its name has been assigned to `$tmp'.
19045 trap 'exit_status=$?
19046 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19048 trap '{ (exit 1); exit 1; }' 1 2 13 15
19050 # Create a (secure) tmp directory for tmp files.
19053 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19054 test -n "$tmp" && test -d "$tmp"
19057 tmp=./conf$$-$RANDOM
19058 (umask 077 && mkdir "$tmp")
19061 echo "$me: cannot create a temporary directory in ." >&2
19062 { (exit 1); exit 1; }
19066 # Set up the sed scripts for CONFIG_FILES section.
19069 # No need to generate the scripts if there are no CONFIG_FILES.
19070 # This happens for instance when ./config.status config.h
19071 if test -n "$CONFIG_FILES"; then
19078 for ac_last_try in false false false false false :; do
19079 cat >conf$$subs.sed <<_ACEOF
19080 SHELL!$SHELL$ac_delim
19081 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19082 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19083 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19084 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19085 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19086 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19087 exec_prefix!$exec_prefix$ac_delim
19088 prefix!$prefix$ac_delim
19089 program_transform_name!$program_transform_name$ac_delim
19090 bindir!$bindir$ac_delim
19091 sbindir!$sbindir$ac_delim
19092 libexecdir!$libexecdir$ac_delim
19093 datarootdir!$datarootdir$ac_delim
19094 datadir!$datadir$ac_delim
19095 sysconfdir!$sysconfdir$ac_delim
19096 sharedstatedir!$sharedstatedir$ac_delim
19097 localstatedir!$localstatedir$ac_delim
19098 includedir!$includedir$ac_delim
19099 oldincludedir!$oldincludedir$ac_delim
19100 docdir!$docdir$ac_delim
19101 infodir!$infodir$ac_delim
19102 htmldir!$htmldir$ac_delim
19103 dvidir!$dvidir$ac_delim
19104 pdfdir!$pdfdir$ac_delim
19105 psdir!$psdir$ac_delim
19106 libdir!$libdir$ac_delim
19107 localedir!$localedir$ac_delim
19108 mandir!$mandir$ac_delim
19109 DEFS!$DEFS$ac_delim
19110 ECHO_C!$ECHO_C$ac_delim
19111 ECHO_N!$ECHO_N$ac_delim
19112 ECHO_T!$ECHO_T$ac_delim
19113 LIBS!$LIBS$ac_delim
19114 build_alias!$build_alias$ac_delim
19115 host_alias!$host_alias$ac_delim
19116 target_alias!$target_alias$ac_delim
19117 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19118 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19119 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19120 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19121 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19123 CFLAGS!$CFLAGS$ac_delim
19124 LDFLAGS!$LDFLAGS$ac_delim
19125 CPPFLAGS!$CPPFLAGS$ac_delim
19126 ac_ct_CC!$ac_ct_CC$ac_delim
19127 EXEEXT!$EXEEXT$ac_delim
19128 OBJEXT!$OBJEXT$ac_delim
19130 CXXFLAGS!$CXXFLAGS$ac_delim
19131 ac_ct_CXX!$ac_ct_CXX$ac_delim
19133 subdirs!$subdirs$ac_delim
19134 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19135 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19136 build!$build$ac_delim
19137 build_cpu!$build_cpu$ac_delim
19138 build_vendor!$build_vendor$ac_delim
19139 build_os!$build_os$ac_delim
19140 host!$host$ac_delim
19141 host_cpu!$host_cpu$ac_delim
19142 host_vendor!$host_vendor$ac_delim
19143 host_os!$host_os$ac_delim
19144 target!$target$ac_delim
19145 target_cpu!$target_cpu$ac_delim
19146 target_vendor!$target_vendor$ac_delim
19147 target_os!$target_os$ac_delim
19149 HOST_OS!$HOST_OS$ac_delim
19150 TARGET_OS!$TARGET_OS$ac_delim
19151 LINKALL!$LINKALL$ac_delim
19152 NOLINKALL!$NOLINKALL$ac_delim
19153 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19154 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19155 ARCH!$ARCH$ac_delim
19156 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19157 HOST_ARCH!$HOST_ARCH$ac_delim
19158 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19159 BUILD_CC!$BUILD_CC$ac_delim
19160 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19161 BUILD_CXX!$BUILD_CXX$ac_delim
19162 CVSBUILD!$CVSBUILD$ac_delim
19163 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19164 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19165 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19166 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19167 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19168 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19169 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19170 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19171 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19172 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19173 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19174 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19175 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19176 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19179 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19181 elif $ac_last_try; then
19182 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19183 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19184 { (exit 1); exit 1; }; }
19186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19190 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19191 if test -n "$ac_eof"; then
19192 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19193 ac_eof=`expr $ac_eof + 1`
19196 cat >>$CONFIG_STATUS <<_ACEOF
19197 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19201 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19202 s/^/s,@/; s/!/@,|#_!!_#|/
19205 s/'"$ac_delim"'$/,g/; t
19207 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19208 ' >>$CONFIG_STATUS <conf$$subs.sed
19209 rm -f conf$$subs.sed
19210 cat >>$CONFIG_STATUS <<_ACEOF
19216 for ac_last_try in false false false false false :; do
19217 cat >conf$$subs.sed <<_ACEOF
19218 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19220 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19221 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19222 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19223 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19224 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19225 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19226 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19227 ENABLE_PIC!$ENABLE_PIC$ac_delim
19228 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19229 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19230 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19231 ALL_TARGETS!$ALL_TARGETS$ac_delim
19232 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19233 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19234 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19235 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19236 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19237 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19238 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19239 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19240 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19241 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19242 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19243 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19244 ifGNUmake!$ifGNUmake$ac_delim
19245 LN_S!$LN_S$ac_delim
19249 DATE!$DATE$ac_delim
19250 FIND!$FIND$ac_delim
19251 GREP!$GREP$ac_delim
19252 MKDIR!$MKDIR$ac_delim
19254 RANLIB!$RANLIB$ac_delim
19259 BINPWD!$BINPWD$ac_delim
19261 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19262 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19263 INSTALL_DATA!$INSTALL_DATA$ac_delim
19264 BZIP2!$BZIP2$ac_delim
19266 DOXYGEN!$DOXYGEN$ac_delim
19267 GROFF!$GROFF$ac_delim
19268 GZIPBIN!$GZIPBIN$ac_delim
19269 PDFROFF!$PDFROFF$ac_delim
19272 OCAMLFIND!$OCAMLFIND$ac_delim
19274 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19275 EGREP!$EGREP$ac_delim
19276 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19277 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19278 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19279 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19280 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19281 PYTHON!$PYTHON$ac_delim
19282 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19283 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19284 USE_OPROFILE!$USE_OPROFILE$ac_delim
19285 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19286 XML2CONFIG!$XML2CONFIG$ac_delim
19287 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19288 LIBXML2_INC!$LIBXML2_INC$ac_delim
19289 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19290 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19291 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19292 MMAP_FILE!$MMAP_FILE$ac_delim
19293 SHLIBEXT!$SHLIBEXT$ac_delim
19294 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19295 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19296 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19297 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19298 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19299 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19300 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19301 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19302 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19303 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19304 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19305 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19306 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19307 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19308 RPATH!$RPATH$ac_delim
19309 RDYNAMIC!$RDYNAMIC$ac_delim
19310 program_prefix!$program_prefix$ac_delim
19311 LIBOBJS!$LIBOBJS$ac_delim
19312 LTLIBOBJS!$LTLIBOBJS$ac_delim
19315 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
19317 elif $ac_last_try; then
19318 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19319 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19320 { (exit 1); exit 1; }; }
19322 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19326 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19327 if test -n "$ac_eof"; then
19328 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19329 ac_eof=`expr $ac_eof + 1`
19332 cat >>$CONFIG_STATUS <<_ACEOF
19333 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19337 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19338 s/^/s,@/; s/!/@,|#_!!_#|/
19341 s/'"$ac_delim"'$/,g/; t
19343 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19344 ' >>$CONFIG_STATUS <conf$$subs.sed
19345 rm -f conf$$subs.sed
19346 cat >>$CONFIG_STATUS <<_ACEOF
19353 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19354 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19355 # trailing colons and then remove the whole line if VPATH becomes empty
19356 # (actually we leave an empty line to preserve line numbers).
19357 if test "x$srcdir" = x.; then
19358 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19359 s/:*\$(srcdir):*/:/
19360 s/:*\${srcdir}:*/:/
19362 s/^\([^=]*=[ ]*\):*/\1/
19368 cat >>$CONFIG_STATUS <<\_ACEOF
19369 fi # test -n "$CONFIG_FILES"
19372 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19375 :[FHLC]) ac_mode=$ac_tag; continue;;
19377 case $ac_mode$ac_tag in
19379 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19380 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19381 { (exit 1); exit 1; }; };;
19382 :[FH]-) ac_tag=-:-;;
19383 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19400 -) ac_f="$tmp/stdin";;
19401 *) # Look for the file first in the build tree, then in the source tree
19402 # (if the path is not absolute). The absolute path cannot be DOS-style,
19403 # because $ac_f cannot contain `:'.
19407 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19409 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19410 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19411 { (exit 1); exit 1; }; };;
19413 ac_file_inputs="$ac_file_inputs $ac_f"
19416 # Let's still pretend it is `configure' which instantiates (i.e., don't
19417 # use $as_me), people would be surprised to read:
19418 # /* config.h. Generated by config.status. */
19419 configure_input="Generated from "`IFS=:
19420 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19421 if test x"$ac_file" != x-; then
19422 configure_input="$ac_file. $configure_input"
19423 { echo "$as_me:$LINENO: creating $ac_file" >&5
19424 echo "$as_me: creating $ac_file" >&6;}
19428 *:-:* | *:-) cat >"$tmp/stdin";;
19433 ac_dir=`$as_dirname -- "$ac_file" ||
19434 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19435 X"$ac_file" : 'X\(//\)[^/]' \| \
19436 X"$ac_file" : 'X\(//\)$' \| \
19437 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19443 /^X\(\/\/\)[^/].*/{
19458 -*) as_dir=./$as_dir;;
19460 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19464 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19465 *) as_qdir=$as_dir;;
19467 as_dirs="'$as_qdir' $as_dirs"
19468 as_dir=`$as_dirname -- "$as_dir" ||
19469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19470 X"$as_dir" : 'X\(//\)[^/]' \| \
19471 X"$as_dir" : 'X\(//\)$' \| \
19472 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19478 /^X\(\/\/\)[^/].*/{
19491 test -d "$as_dir" && break
19493 test -z "$as_dirs" || eval "mkdir $as_dirs"
19494 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19495 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19496 { (exit 1); exit 1; }; }; }
19500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19503 # A ".." for each directory in $ac_dir_suffix.
19504 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19505 case $ac_top_builddir_sub in
19506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19510 ac_abs_top_builddir=$ac_pwd
19511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19512 # for backward compatibility:
19513 ac_top_builddir=$ac_top_build_prefix
19516 .) # We are building in place.
19518 ac_top_srcdir=$ac_top_builddir_sub
19519 ac_abs_top_srcdir=$ac_pwd ;;
19520 [\\/]* | ?:[\\/]* ) # Absolute name.
19521 ac_srcdir=$srcdir$ac_dir_suffix;
19522 ac_top_srcdir=$srcdir
19523 ac_abs_top_srcdir=$srcdir ;;
19524 *) # Relative name.
19525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19526 ac_top_srcdir=$ac_top_build_prefix$srcdir
19527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19539 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19540 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19544 cat >>$CONFIG_STATUS <<\_ACEOF
19545 # If the template does not know about datarootdir, expand it.
19546 # FIXME: This hack should be removed a few years after 2.60.
19547 ac_datarootdir_hack=; ac_datarootdir_seen=
19549 case `sed -n '/datarootdir/ {
19558 ' $ac_file_inputs` in
19559 *datarootdir*) ac_datarootdir_seen=yes;;
19560 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19561 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19562 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19564 cat >>$CONFIG_STATUS <<_ACEOF
19565 ac_datarootdir_hack='
19566 s&@datadir@&$datadir&g
19567 s&@docdir@&$docdir&g
19568 s&@infodir@&$infodir&g
19569 s&@localedir@&$localedir&g
19570 s&@mandir@&$mandir&g
19571 s&\\\${datarootdir}&$datarootdir&g' ;;
19575 # Neutralize VPATH when `$srcdir' = `.'.
19576 # Shell code in configure.ac might set extrasub.
19577 # FIXME: do we really want to maintain this feature?
19578 cat >>$CONFIG_STATUS <<_ACEOF
19582 cat >>$CONFIG_STATUS <<\_ACEOF
19584 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19585 s&@configure_input@&$configure_input&;t t
19586 s&@top_builddir@&$ac_top_builddir_sub&;t t
19587 s&@srcdir@&$ac_srcdir&;t t
19588 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19589 s&@top_srcdir@&$ac_top_srcdir&;t t
19590 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19591 s&@builddir@&$ac_builddir&;t t
19592 s&@abs_builddir@&$ac_abs_builddir&;t t
19593 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19594 s&@INSTALL@&$ac_INSTALL&;t t
19595 $ac_datarootdir_hack
19596 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
19598 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19599 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19600 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19601 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19602 which seems to be undefined. Please make sure it is defined." >&5
19603 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19604 which seems to be undefined. Please make sure it is defined." >&2;}
19608 -) cat "$tmp/out"; rm -f "$tmp/out";;
19609 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19618 # Transform confdefs.h into a sed script `conftest.defines', that
19619 # substitutes the proper values into config.h.in to produce config.h.
19620 rm -f conftest.defines conftest.tail
19621 # First, append a space to every undef/define line, to ease matching.
19622 echo 's/$/ /' >conftest.defines
19623 # Then, protect against being on the right side of a sed subst, or in
19624 # an unquoted here document, in config.status. If some macros were
19625 # called several times there might be several #defines for the same
19626 # symbol, which is useless. But do not sort them, since the last
19627 # AC_DEFINE must be honored.
19628 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19629 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19630 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19631 # PARAMS is the parameter list in the macro definition--in most cases, it's
19632 # just an empty string.
19633 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19634 ac_dB='\\)[ (].*,\\1define\\2'
19642 s/^[ ]*#[ ]*define[ ][ ]*//
19647 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19648 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19649 ' >>conftest.defines
19651 # Remove the space that was appended to ease matching.
19652 # Then replace #undef with comments. This is necessary, for
19653 # example, in the case of _POSIX_SOURCE, which is predefined and required
19654 # on some systems where configure will not decide to define it.
19655 # (The regexp can be short, since the line contains either #define or #undef.)
19657 s,^[ #]*u.*,/* & */,' >>conftest.defines
19659 # Break up conftest.defines:
19660 ac_max_sed_lines=50
19662 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19663 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19664 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19666 ac_in='$ac_file_inputs'
19667 ac_out='"$tmp/out1"'
19668 ac_nxt='"$tmp/out2"'
19672 # Write a here document:
19673 cat >>$CONFIG_STATUS <<_ACEOF
19674 # First, check the format of the line:
19675 cat >"\$tmp/defines.sed" <<\\CEOF
19676 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19677 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19681 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19683 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19684 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19685 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19686 grep . conftest.tail >/dev/null || break
19687 rm -f conftest.defines
19688 mv conftest.tail conftest.defines
19690 rm -f conftest.defines conftest.tail
19692 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19693 cat >>$CONFIG_STATUS <<\_ACEOF
19694 if test x"$ac_file" != x-; then
19695 echo "/* $configure_input */" >"$tmp/config.h"
19696 cat "$ac_result" >>"$tmp/config.h"
19697 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19698 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19699 echo "$as_me: $ac_file is unchanged" >&6;}
19702 mv "$tmp/config.h" $ac_file
19705 echo "/* $configure_input */"
19711 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19712 echo "$as_me: executing $ac_file commands" >&6;}
19717 case $ac_file$ac_mode in
19718 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19719 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19720 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19721 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19722 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19723 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19724 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19725 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19726 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19727 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19728 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19729 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19730 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19731 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19732 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19733 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19734 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19735 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19736 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19737 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19738 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19739 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19740 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19741 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19747 { (exit 0); exit 0; }
19749 chmod +x $CONFIG_STATUS
19750 ac_clean_files=$ac_clean_files_save
19753 # configure is writing to config.log, and then calls config.status.
19754 # config.status does its own redirection, appending to config.log.
19755 # Unfortunately, on DOS this fails, as config.log is still kept open
19756 # by configure, so config.status won't be able to write to it; its
19757 # output is simply discarded. So we exec the FD to /dev/null,
19758 # effectively closing config.log, so it can be properly (re)opened and
19759 # appended to by config.status. When coming back to configure, we
19760 # need to make the FD available again.
19761 if test "$no_create" != yes; then
19763 ac_config_status_args=
19764 test "$silent" = yes &&
19765 ac_config_status_args="$ac_config_status_args --quiet"
19767 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19769 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19770 # would make configure fail if this is the last instruction.
19771 $ac_cs_success || { (exit 1); exit 1; }
19775 # CONFIG_SUBDIRS section.
19777 if test "$no_recursion" != yes; then
19779 # Remove --cache-file and --srcdir arguments so they do not pile up.
19780 ac_sub_configure_args=
19782 eval "set x $ac_configure_args"
19786 if test -n "$ac_prev"; then
19791 -cache-file | --cache-file | --cache-fil | --cache-fi \
19792 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19793 ac_prev=cache_file ;;
19794 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19795 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19798 --config-cache | -C)
19800 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19802 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19804 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19806 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19810 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19812 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19816 # Always prepend --prefix to ensure using the same prefix
19817 # in subdir configurations.
19818 ac_arg="--prefix=$prefix"
19820 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19822 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19825 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19827 # Do not complain, so a configure script can configure whichever
19828 # parts of a large source tree are present.
19829 test -d "$srcdir/$ac_dir" || continue
19831 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19832 echo "$as_me:$LINENO: $ac_msg" >&5
19836 -*) as_dir=./$as_dir;;
19838 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19842 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19843 *) as_qdir=$as_dir;;
19845 as_dirs="'$as_qdir' $as_dirs"
19846 as_dir=`$as_dirname -- "$as_dir" ||
19847 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19848 X"$as_dir" : 'X\(//\)[^/]' \| \
19849 X"$as_dir" : 'X\(//\)$' \| \
19850 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19856 /^X\(\/\/\)[^/].*/{
19869 test -d "$as_dir" && break
19871 test -z "$as_dirs" || eval "mkdir $as_dirs"
19872 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19873 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19874 { (exit 1); exit 1; }; }; }
19878 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19880 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19881 # A ".." for each directory in $ac_dir_suffix.
19882 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19883 case $ac_top_builddir_sub in
19884 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19885 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19888 ac_abs_top_builddir=$ac_pwd
19889 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19890 # for backward compatibility:
19891 ac_top_builddir=$ac_top_build_prefix
19894 .) # We are building in place.
19896 ac_top_srcdir=$ac_top_builddir_sub
19897 ac_abs_top_srcdir=$ac_pwd ;;
19898 [\\/]* | ?:[\\/]* ) # Absolute name.
19899 ac_srcdir=$srcdir$ac_dir_suffix;
19900 ac_top_srcdir=$srcdir
19901 ac_abs_top_srcdir=$srcdir ;;
19902 *) # Relative name.
19903 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19904 ac_top_srcdir=$ac_top_build_prefix$srcdir
19905 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19907 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19912 # Check for guested configure; otherwise get Cygnus style configure.
19913 if test -f "$ac_srcdir/configure.gnu"; then
19914 ac_sub_configure=$ac_srcdir/configure.gnu
19915 elif test -f "$ac_srcdir/configure"; then
19916 ac_sub_configure=$ac_srcdir/configure
19917 elif test -f "$ac_srcdir/configure.in"; then
19918 # This should be Cygnus configure.
19919 ac_sub_configure=$ac_aux_dir/configure
19921 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19922 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19926 # The recursion is here.
19927 if test -n "$ac_sub_configure"; then
19928 # Make the cache file name correct relative to the subdirectory.
19929 case $cache_file in
19930 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19931 *) # Relative name.
19932 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19935 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19936 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19937 # The eval makes quoting arguments work.
19938 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19939 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19940 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19941 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19942 { (exit 1); exit 1; }; }