2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_CLANG_STATIC_ANALYZER
698 ENABLE_EXPENSIVE_CHECKS
718 LLVM_ENUM_ASM_PRINTERS
719 LLVM_ENUM_ASM_PARSERS
720 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
763 NO_MAYBE_UNINITIALIZED
792 ENABLE_VISIBILITY_INLINES_HIDDEN
799 ac_precious_vars='build_alias
810 ac_subdirs_all='projects/test-suite
813 projects/llvm-poolalloc
817 # Initialize some variables set by options.
819 ac_init_version=false
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
829 program_transform_name=s,x,x,
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
903 cache_file=config.cache ;;
905 -datadir | --datadir | --datadi | --datad)
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
917 -disable-* | --disable-*)
918 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922 { (exit 1); exit 1; }; }
923 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924 eval enable_$ac_feature=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 -enable-* | --enable-*)
937 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
958 -help | --help | --hel | --he | -h)
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1107 -site=* | --site=* | --sit=*)
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1134 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137 { echo "$as_me: error: invalid package name: $ac_package" >&2
1138 { (exit 1); exit 1; }; }
1139 ac_package=`echo $ac_package| sed 's/-/_/g'`
1140 eval with_$ac_package=\$ac_optarg ;;
1142 -without-* | --without-*)
1143 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid package name: $ac_package" >&2
1147 { (exit 1); exit 1; }; }
1148 ac_package=`echo $ac_package | sed 's/-/_/g'`
1149 eval with_$ac_package=no ;;
1152 # Obsolete; use --with-x.
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1169 -*) { echo "$as_me: error: unrecognized option: $ac_option
1170 Try \`$0 --help' for more information." >&2
1171 { (exit 1); exit 1; }; }
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179 { (exit 1); exit 1; }; }
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 { echo "$as_me: error: missing argument to $ac_option" >&2
1197 { (exit 1); exit 1; }; }
1200 # Be sure to have absolute directory names.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1206 eval ac_val=\$$ac_var
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212 { (exit 1); exit 1; }; }
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1220 target=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 { echo "$as_me: error: Working directory cannot be determined" >&2
1243 { (exit 1); exit 1; }; }
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245 { echo "$as_me: error: pwd does not report name of working directory" >&2
1246 { (exit 1); exit 1; }; }
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$0" ||
1254 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$0" : 'X\(//\)[^/]' \| \
1256 X"$0" : 'X\(//\)$' \| \
1257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1281 ac_srcdir_defaulted=no
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286 { (exit 1); exit 1; }; }
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291 { (exit 1); exit 1; }; }
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-polly Use polly if available (default is YES)
1391 --enable-libcpp Use libc++ if available (default is NO)
1392 --enable-compiler-version-checks
1393 Check the version of the host compiler (default is
1395 --enable-cxx1y Use c++1y if available (default is NO)
1396 --enable-split-dwarf Use split-dwarf if available (default is NO)
1397 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1398 --enable-clang-plugin-support
1399 Enable plugin support in clang (default is YES)
1400 --enable-clang-static-analyzer
1401 Enable building of clang Static Analyzer (default is
1403 --enable-optimized Compile with optimizations enabled (default is NO)
1404 --enable-profiling Compile with profiling enabled (default is NO)
1405 --enable-assertions Compile with assertion checks enabled (default is
1407 --enable-werror Compile with -Werror enabled (default is NO)
1408 --enable-expensive-checks
1409 Compile with expensive debug checks enabled (default
1411 --enable-debug-runtime Build runtime libs with debug symbols (default is
1413 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1414 optimization is on and YES if it's off)
1415 --enable-keep-symbols Do not strip installed executables)
1416 --enable-jit Enable Just In Time Compiling (default is YES)
1417 --enable-docs Build documents (default is YES)
1418 --enable-doxygen Build doxygen documentation (default is NO)
1419 --enable-threads Use threads if available (default is YES)
1420 --enable-pthreads Use pthreads if available (default is YES)
1421 --enable-zlib Use zlib for compression/decompression if available
1423 --enable-pic Build LLVM with Position Independent Code (default
1425 --enable-shared Build a shared library and link tools against it
1427 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1428 Win32 DLL (default is NO)
1429 --enable-timestamps Enable embedding timestamp information in build
1431 --enable-backtraces Enable embedding backtraces on crash (default is
1433 --enable-crash-overrides
1434 Enable crash handling overrides (default is YES)
1435 --enable-targets Build specific host targets: all or
1436 target1,target2,... Valid targets are: host, x86,
1437 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1438 hexagon, xcore, msp430, nvptx, systemz, r600, and
1440 --enable-experimental-targets
1441 Build experimental host targets: disable or
1442 target1,target2,... (default=disable)
1443 --enable-bindings Build specific language bindings:
1444 all,auto,none,{binding-name} (default=auto)
1445 --enable-terminfo Query the terminfo database if available (default is
1447 --enable-libedit Use libedit if available (default is YES)
1448 --enable-libffi Check for the presence of libffi (default is NO)
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-optimize-option Select the compiler options to use for optimized
1455 --with-extra-options Specify additional options to compile LLVM with
1456 --with-extra-ld-options Specify additional options to link LLVM with
1457 --with-ocaml-libdir Specify install location for ocaml bindings (default
1459 --with-clang-srcdir Directory to the out-of-tree Clang source
1460 --with-clang-resource-dir
1461 Relative directory from the Clang binary for
1463 --with-c-include-dirs Colon separated list of directories clang will
1465 --with-gcc-toolchain Directory where gcc is installed.
1466 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1467 --with-binutils-include Specify path to binutils/include/ containing
1468 plugin-api.h file for gold plugin.
1469 --with-bug-report-url Specify the URL where bug reports should be
1470 submitted (default=http://llvm.org/bugs/)
1471 --with-internal-prefix Installation directory for internal files
1472 --with-python path to python
1473 --with-oprofile=<prefix>
1474 Tell OProfile >= 0.9.4 how to symbolize JIT output
1475 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1478 Some influential environment variables:
1479 CC C compiler command
1480 CFLAGS C compiler flags
1481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482 nonstandard directory <lib dir>
1483 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CXX C++ compiler command
1486 CXXFLAGS C++ compiler flags
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1492 Report bugs to <http://llvm.org/bugs/>.
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" || continue
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1520 .) # We are building in place.
1522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
1525 ac_srcdir=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1544 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 cd "$ac_pwd" || { ac_status=$?; break; }
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1553 LLVM configure 3.7.0svn
1554 generated by GNU Autoconf 2.60
1556 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1557 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1561 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1569 It was created by LLVM $as_me 3.7.0svn, which was
1570 generated by GNU Autoconf 2.60. Invocation command line was
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1591 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1595 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir=.
1606 echo "PATH: $as_dir"
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_must_keep_next=false
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1641 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1644 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1646 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647 if test $ac_must_keep_next = true; then
1648 ac_must_keep_next=false # Got value, back to normal.
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1659 -* ) ac_must_keep_next=true ;;
1662 ac_configure_args="$ac_configure_args '$ac_arg'"
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log. We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1686 # The following way of writing the cache mishandles newlines in values,
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1693 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1697 _ | IFS | as_nl) ;; #(
1698 *) $as_unset $ac_var ;;
1703 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704 *${as_nl}ac_space=\ *)
1706 "s/'\''/'\''\\\\'\'''\''/g;
1707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1718 ## ----------------- ##
1719 ## Output variables. ##
1720 ## ----------------- ##
1723 for ac_var in $ac_subst_vars
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1733 if test -n "$ac_subst_files"; then
1735 ## ------------------- ##
1736 ## File substitutions. ##
1737 ## ------------------- ##
1740 for ac_var in $ac_subst_files
1742 eval ac_val=\$$ac_var
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 echo "$ac_var='\''$ac_val'\''"
1751 if test -s confdefs.h; then
1761 test "$ac_signal" != 0 &&
1762 echo "$as_me: caught signal $ac_signal"
1763 echo "$as_me: exit $exit_status"
1765 rm -f core *.core core.conftest.* &&
1766 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1769 for ac_signal in 1 2 13 15; do
1770 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1774 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1775 rm -f -r conftest* confdefs.h
1777 # Predefined preprocessor variables.
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_NAME "$PACKAGE_NAME"
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804 # Let the site file select an alternate cache file if it wants to.
1805 # Prefer explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807 set x "$CONFIG_SITE"
1808 elif test "x$prefix" != xNONE; then
1809 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1811 set x "$ac_default_prefix/share/config.site" \
1812 "$ac_default_prefix/etc/config.site"
1817 if test -r "$ac_site_file"; then
1818 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 echo "$as_me: loading site script $ac_site_file" >&6;}
1820 sed 's/^/| /' "$ac_site_file" >&5
1825 if test -r "$cache_file"; then
1826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 echo "$as_me: loading cache $cache_file" >&6;}
1832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
1837 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 echo "$as_me: creating cache $cache_file" >&6;}
1842 # Check that the precious variables saved in the cache have kept the same
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
1848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
1850 case $ac_old_set,$ac_new_set in
1852 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1856 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
1862 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1865 echo "$as_me: former value: $ac_old_val" >&2;}
1866 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1867 echo "$as_me: current value: $ac_new_val" >&2;}
1868 ac_cache_corrupted=:
1871 # Pass precious variables to config.status.
1872 if test "$ac_new_set" = set; then
1874 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 *) ac_arg=$ac_var=$ac_new_val ;;
1877 case " $ac_configure_args " in
1878 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1879 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883 if $ac_cache_corrupted; then
1884 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888 { (exit 1); exit 1; }; }
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923 LLVM_VERSION_MAJOR=3
1924 LLVM_VERSION_MINOR=7
1925 LLVM_VERSION_PATCH=0
1926 LLVM_VERSION_SUFFIX=svn
1929 cat >>confdefs.h <<_ACEOF
1930 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1934 cat >>confdefs.h <<_ACEOF
1935 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1939 cat >>confdefs.h <<_ACEOF
1940 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1944 cat >>confdefs.h <<_ACEOF
1945 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1954 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1963 for ac_dir in autoconf "$srcdir"/autoconf; do
1964 if test -f "$ac_dir/install-sh"; then
1966 ac_install_sh="$ac_aux_dir/install-sh -c"
1968 elif test -f "$ac_dir/install.sh"; then
1970 ac_install_sh="$ac_aux_dir/install.sh -c"
1972 elif test -f "$ac_dir/shtool"; then
1974 ac_install_sh="$ac_aux_dir/shtool install -c"
1978 if test -z "$ac_aux_dir"; then
1979 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1980 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1981 { (exit 1); exit 1; }; }
1984 # These three variables are undocumented and unsupported,
1985 # and are intended to be withdrawn in a future Autoconf release.
1986 # They can cause serious problems if a builder's source tree is in a directory
1987 # whose full name contains unusual characters.
1988 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1989 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1990 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1994 if test ${srcdir} != "." ; then
1995 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1996 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1997 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1998 { (exit 1); exit 1; }; }
2002 if test ${srcdir} == "." ; then
2003 { { echo "$as_me:$LINENO: error: In-source builds are discouraged. Configure from a separate build directory." >&5
2004 echo "$as_me: error: In-source builds are discouraged. Configure from a separate build directory." >&2;}
2005 { (exit 1); exit 1; }; }
2012 ac_cpp='$CPP $CPPFLAGS'
2013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 if test -n "$ac_tool_prefix"; then
2017 for ac_prog in clang gcc
2019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2023 if test "${ac_cv_prog_CC+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 if test -n "$CC"; then
2027 ac_cv_prog_CC="$CC" # Let the user override the test.
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 test -z "$as_dir" && as_dir=.
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2036 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 if test -n "$CC"; then
2048 { echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6; }
2051 { echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6; }
2056 test -n "$CC" && break
2059 if test -z "$CC"; then
2061 for ac_prog in clang gcc
2063 # Extract the first word of "$ac_prog", so it can be a program name with args.
2064 set dummy $ac_prog; ac_word=$2
2065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2067 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 if test -n "$ac_ct_CC"; then
2071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 test -z "$as_dir" && as_dir=.
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2080 ac_cv_prog_ac_ct_CC="$ac_prog"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2091 if test -n "$ac_ct_CC"; then
2092 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2093 echo "${ECHO_T}$ac_ct_CC" >&6; }
2095 { echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6; }
2100 test -n "$ac_ct_CC" && break
2103 if test "x$ac_ct_CC" = x; then
2106 case $cross_compiling:$ac_tool_warned in
2108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2109 whose name does not start with the host triplet. If you think this
2110 configuration is useful to you, please write to autoconf@gnu.org." >&5
2111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2112 whose name does not start with the host triplet. If you think this
2113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2114 ac_tool_warned=yes ;;
2121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&2;}
2125 { (exit 1); exit 1; }; }
2127 # Provide some information about the compiler.
2128 echo "$as_me:$LINENO: checking for C compiler version" >&5
2129 ac_compiler=`set X $ac_compile; echo $2`
2130 { (ac_try="$ac_compiler --version >&5"
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2136 (eval "$ac_compiler --version >&5") 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140 { (ac_try="$ac_compiler -v >&5"
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2146 (eval "$ac_compiler -v >&5") 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }
2150 { (ac_try="$ac_compiler -V >&5"
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2156 (eval "$ac_compiler -V >&5") 2>&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }
2161 cat >conftest.$ac_ext <<_ACEOF
2164 cat confdefs.h >>conftest.$ac_ext
2165 cat >>conftest.$ac_ext <<_ACEOF
2166 /* end confdefs.h. */
2176 ac_clean_files_save=$ac_clean_files
2177 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2178 # Try to create an executable without -o first, disregard a.out.
2179 # It will help us diagnose broken compilers, and finding out an intuition
2181 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2182 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2183 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2185 # List of possible output files, starting from the most likely.
2186 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2187 # only as a last resort. b.out is created by i960 compilers.
2188 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2190 # The IRIX 6 linker writes into existing files which may not be
2191 # executable, retaining their permissions. Remove them first so a
2192 # subsequent execution test works.
2194 for ac_file in $ac_files
2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2198 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2203 if { (ac_try="$ac_link_default"
2205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2206 *) ac_try_echo=$ac_try;;
2208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2209 (eval "$ac_link_default") 2>&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; then
2213 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2214 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2215 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2216 # so that the user can short-circuit this test for compilers unknown to
2218 for ac_file in $ac_files
2220 test -f "$ac_file" || continue
2222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2225 # We found the default executable, but exeext='' is most
2229 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2231 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2233 # We set ac_cv_exeext here because the later test for it is not
2234 # safe: cross compilers may not add the suffix if given an `-o'
2235 # argument, so we may need to know it at that point already.
2236 # Even if this section looks crufty: it has the advantage of
2243 test "$ac_cv_exeext" = no && ac_cv_exeext=
2246 echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2249 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: C compiler cannot create executables
2252 See \`config.log' for more details." >&2;}
2253 { (exit 77); exit 77; }; }
2256 ac_exeext=$ac_cv_exeext
2257 { echo "$as_me:$LINENO: result: $ac_file" >&5
2258 echo "${ECHO_T}$ac_file" >&6; }
2260 # Check that the compiler produces executables we can run. If not, either
2261 # the compiler is broken, or we cross compile.
2262 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2263 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2264 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2265 # If not cross compiling, check that we can run a simple program.
2266 if test "$cross_compiling" != yes; then
2267 if { ac_try='./$ac_file'
2268 { (case "(($ac_try" in
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2273 (eval "$ac_try") 2>&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2279 if test "$cross_compiling" = maybe; then
2282 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2283 If you meant to cross compile, use \`--host'.
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot run C compiled programs.
2286 If you meant to cross compile, use \`--host'.
2287 See \`config.log' for more details." >&2;}
2288 { (exit 1); exit 1; }; }
2292 { echo "$as_me:$LINENO: result: yes" >&5
2293 echo "${ECHO_T}yes" >&6; }
2295 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2296 ac_clean_files=$ac_clean_files_save
2297 # Check that the compiler produces executables we can run. If not, either
2298 # the compiler is broken, or we cross compile.
2299 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2300 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2301 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2302 echo "${ECHO_T}$cross_compiling" >&6; }
2304 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2305 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2306 if { (ac_try="$ac_link"
2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309 *) ac_try_echo=$ac_try;;
2311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2312 (eval "$ac_link") 2>&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; then
2316 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2317 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2318 # work properly (i.e., refer to `conftest.exe'), while it won't with
2320 for ac_file in conftest.exe conftest conftest.*; do
2321 test -f "$ac_file" || continue
2323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2324 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2330 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2333 See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2337 rm -f conftest$ac_cv_exeext
2338 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2339 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2341 rm -f conftest.$ac_ext
2342 EXEEXT=$ac_cv_exeext
2344 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2345 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2346 if test "${ac_cv_objext+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 cat >conftest.$ac_ext <<_ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h. */
2364 rm -f conftest.o conftest.obj
2365 if { (ac_try="$ac_compile"
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371 (eval "$ac_compile") 2>&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; then
2375 for ac_file in conftest.o conftest.obj conftest.*; do
2376 test -f "$ac_file" || continue;
2378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2379 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2387 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2388 See \`config.log' for more details." >&5
2389 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2390 See \`config.log' for more details." >&2;}
2391 { (exit 1); exit 1; }; }
2394 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2396 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2397 echo "${ECHO_T}$ac_cv_objext" >&6; }
2398 OBJEXT=$ac_cv_objext
2400 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2401 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2402 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 cat >conftest.$ac_ext <<_ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h. */
2423 rm -f conftest.$ac_objext
2424 if { (ac_try="$ac_compile"
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430 (eval "$ac_compile") 2>conftest.er1
2432 grep -v '^ *+' conftest.er1 >conftest.err
2434 cat conftest.err >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2438 { (case "(($ac_try" in
2439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440 *) ac_try_echo=$ac_try;;
2442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2443 (eval "$ac_try") 2>&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; } &&
2447 { ac_try='test -s conftest.$ac_objext'
2448 { (case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_try") 2>&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2469 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2470 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2471 GCC=`test $ac_compiler_gnu = yes && echo yes`
2472 ac_test_CFLAGS=${CFLAGS+set}
2473 ac_save_CFLAGS=$CFLAGS
2474 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2475 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_cc_g+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 ac_save_c_werror_flag=$ac_c_werror_flag
2480 ac_c_werror_flag=yes
2483 cat >conftest.$ac_ext <<_ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2498 rm -f conftest.$ac_objext
2499 if { (ac_try="$ac_compile"
2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2505 (eval "$ac_compile") 2>conftest.er1
2507 grep -v '^ *+' conftest.er1 >conftest.err
2509 cat conftest.err >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2513 { (case "(($ac_try" in
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518 (eval "$ac_try") 2>&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_try") 2>&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; }; then
2534 echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2538 cat >conftest.$ac_ext <<_ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h. */
2553 rm -f conftest.$ac_objext
2554 if { (ac_try="$ac_compile"
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560 (eval "$ac_compile") 2>conftest.er1
2562 grep -v '^ *+' conftest.er1 >conftest.err
2564 cat conftest.err >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } &&
2567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2568 { (case "(($ac_try" in
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2573 (eval "$ac_try") 2>&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (case "(($ac_try" in
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583 (eval "$ac_try") 2>&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2592 ac_c_werror_flag=$ac_save_c_werror_flag
2594 cat >conftest.$ac_ext <<_ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2609 rm -f conftest.$ac_objext
2610 if { (ac_try="$ac_compile"
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616 (eval "$ac_compile") 2>conftest.er1
2618 grep -v '^ *+' conftest.er1 >conftest.err
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2624 { (case "(($ac_try" in
2625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626 *) ac_try_echo=$ac_try;;
2628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2629 (eval "$ac_try") 2>&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest.$ac_objext'
2634 { (case "(($ac_try" in
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2639 (eval "$ac_try") 2>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658 ac_c_werror_flag=$ac_save_c_werror_flag
2660 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2661 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2662 if test "$ac_test_CFLAGS" = set; then
2663 CFLAGS=$ac_save_CFLAGS
2664 elif test $ac_cv_prog_cc_g = yes; then
2665 if test "$GCC" = yes; then
2671 if test "$GCC" = yes; then
2677 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2678 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2679 if test "${ac_cv_prog_cc_c89+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 ac_cv_prog_cc_c89=no
2684 cat >conftest.$ac_ext <<_ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2692 #include <sys/types.h>
2693 #include <sys/stat.h>
2694 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2695 struct buf { int x; };
2696 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2697 static char *e (p, i)
2703 static char *f (char * (*g) (char **, int), char **p, ...)
2708 s = g (p, va_arg (v,int));
2713 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2714 function prototypes and stuff, but not '\xHH' hex character constants.
2715 These don't provoke an error unfortunately, instead are silently treated
2716 as 'x'. The following induces an error, until -std is added to get
2717 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2718 array size at least. It's necessary to write '\x00'==0 to get something
2719 that's true only with -std. */
2720 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2722 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2723 inside strings and character constants. */
2725 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2727 int test (int i, double x);
2728 struct s1 {int (*f) (int a);};
2729 struct s2 {int (*f) (double a);};
2730 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2736 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2741 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2742 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2744 CC="$ac_save_CC $ac_arg"
2745 rm -f conftest.$ac_objext
2746 if { (ac_try="$ac_compile"
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_compile") 2>conftest.er1
2754 grep -v '^ *+' conftest.er1 >conftest.err
2756 cat conftest.err >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } &&
2759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2760 { (case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_try") 2>&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; } &&
2769 { ac_try='test -s conftest.$ac_objext'
2770 { (case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_try") 2>&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; }; then
2779 ac_cv_prog_cc_c89=$ac_arg
2781 echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2787 rm -f core conftest.err conftest.$ac_objext
2788 test "x$ac_cv_prog_cc_c89" != "xno" && break
2790 rm -f conftest.$ac_ext
2795 case "x$ac_cv_prog_cc_c89" in
2797 { echo "$as_me:$LINENO: result: none needed" >&5
2798 echo "${ECHO_T}none needed" >&6; } ;;
2800 { echo "$as_me:$LINENO: result: unsupported" >&5
2801 echo "${ECHO_T}unsupported" >&6; } ;;
2803 CC="$CC $ac_cv_prog_cc_c89"
2804 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2805 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816 ac_cpp='$CXXCPP $CPPFLAGS'
2817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2820 if test -z "$CXX"; then
2821 if test -n "$CCC"; then
2824 if test -n "$ac_tool_prefix"; then
2825 for ac_prog in clang++ g++
2827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2831 if test "${ac_cv_prog_CXX+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 if test -n "$CXX"; then
2835 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2844 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 if test -n "$CXX"; then
2856 { echo "$as_me:$LINENO: result: $CXX" >&5
2857 echo "${ECHO_T}$CXX" >&6; }
2859 { echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6; }
2864 test -n "$CXX" && break
2867 if test -z "$CXX"; then
2869 for ac_prog in clang++ g++
2871 # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy $ac_prog; ac_word=$2
2873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2875 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 if test -n "$ac_ct_CXX"; then
2879 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2888 ac_cv_prog_ac_ct_CXX="$ac_prog"
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2899 if test -n "$ac_ct_CXX"; then
2900 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2901 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2903 { echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6; }
2908 test -n "$ac_ct_CXX" && break
2911 if test "x$ac_ct_CXX" = x; then
2914 case $cross_compiling:$ac_tool_warned in
2916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2917 whose name does not start with the host triplet. If you think this
2918 configuration is useful to you, please write to autoconf@gnu.org." >&5
2919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2920 whose name does not start with the host triplet. If you think this
2921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2922 ac_tool_warned=yes ;;
2930 # Provide some information about the compiler.
2931 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2932 ac_compiler=`set X $ac_compile; echo $2`
2933 { (ac_try="$ac_compiler --version >&5"
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_compiler --version >&5") 2>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }
2943 { (ac_try="$ac_compiler -v >&5"
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compiler -v >&5") 2>&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }
2953 { (ac_try="$ac_compiler -V >&5"
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compiler -V >&5") 2>&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }
2964 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2965 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2966 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 cat >conftest.$ac_ext <<_ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2987 rm -f conftest.$ac_objext
2988 if { (ac_try="$ac_compile"
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compile") 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3002 { (case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_try") 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_try") 2>&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; }; then
3023 echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3033 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3034 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3035 GXX=`test $ac_compiler_gnu = yes && echo yes`
3036 ac_test_CXXFLAGS=${CXXFLAGS+set}
3037 ac_save_CXXFLAGS=$CXXFLAGS
3038 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3039 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3040 if test "${ac_cv_prog_cxx_g+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3043 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3044 ac_cxx_werror_flag=yes
3047 cat >conftest.$ac_ext <<_ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3062 rm -f conftest.$ac_objext
3063 if { (ac_try="$ac_compile"
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_compile") 2>conftest.er1
3071 grep -v '^ *+' conftest.er1 >conftest.err
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3077 { (case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_try") 2>&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; } &&
3086 { ac_try='test -s conftest.$ac_objext'
3087 { (case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_try") 2>&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
3096 ac_cv_prog_cxx_g=yes
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3102 cat >conftest.$ac_ext <<_ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3117 rm -f conftest.$ac_objext
3118 if { (ac_try="$ac_compile"
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compile") 2>conftest.er1
3126 grep -v '^ *+' conftest.er1 >conftest.err
3128 cat conftest.err >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } &&
3131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3132 { (case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_try") 2>&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3158 cat >conftest.$ac_ext <<_ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compile") 2>conftest.er1
3182 grep -v '^ *+' conftest.er1 >conftest.err
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3188 { (case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_try") 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; } &&
3197 { ac_try='test -s conftest.$ac_objext'
3198 { (case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_try") 2>&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
3207 ac_cv_prog_cxx_g=yes
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3226 if test "$ac_test_CXXFLAGS" = set; then
3227 CXXFLAGS=$ac_save_CXXFLAGS
3228 elif test $ac_cv_prog_cxx_g = yes; then
3229 if test "$GXX" = yes; then
3235 if test "$GXX" = yes; then
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248 ac_cpp='$CPP $CPPFLAGS'
3249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3253 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3254 # On Suns, sometimes $CPP names a directory.
3255 if test -n "$CPP" && test -d "$CPP"; then
3258 if test -z "$CPP"; then
3259 if test "${ac_cv_prog_CPP+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 # Double quotes because CPP needs to be expanded
3263 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3266 for ac_c_preproc_warn_flag in '' yes
3268 # Use a header file that comes with gcc, so configuring glibc
3269 # with a fresh cross-compiler works.
3270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3271 # <limits.h> exists even on freestanding compilers.
3272 # On the NeXT, cc -E runs the code through the compiler's parser,
3273 # not just through cpp. "Syntax error" is here to catch this case.
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3281 # include <limits.h>
3283 # include <assert.h>
3287 if { (ac_try="$ac_cpp conftest.$ac_ext"
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3295 grep -v '^ *+' conftest.er1 >conftest.err
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } >/dev/null; then
3300 if test -s conftest.err; then
3301 ac_cpp_err=$ac_c_preproc_warn_flag
3302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3309 if test -z "$ac_cpp_err"; then
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 # Broken: fails on valid input.
3319 rm -f conftest.err conftest.$ac_ext
3321 # OK, works on sane cases. Now check whether nonexistent headers
3322 # can be detected and how.
3323 cat >conftest.$ac_ext <<_ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3329 #include <ac_nonexistent.h>
3331 if { (ac_try="$ac_cpp conftest.$ac_ext"
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3339 grep -v '^ *+' conftest.er1 >conftest.err
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } >/dev/null; then
3344 if test -s conftest.err; then
3345 ac_cpp_err=$ac_c_preproc_warn_flag
3346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3353 if test -z "$ac_cpp_err"; then
3354 # Broken: success on invalid input.
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3360 # Passes both tests.
3365 rm -f conftest.err conftest.$ac_ext
3368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3369 rm -f conftest.err conftest.$ac_ext
3370 if $ac_preproc_ok; then
3382 { echo "$as_me:$LINENO: result: $CPP" >&5
3383 echo "${ECHO_T}$CPP" >&6; }
3385 for ac_c_preproc_warn_flag in '' yes
3387 # Use a header file that comes with gcc, so configuring glibc
3388 # with a fresh cross-compiler works.
3389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3390 # <limits.h> exists even on freestanding compilers.
3391 # On the NeXT, cc -E runs the code through the compiler's parser,
3392 # not just through cpp. "Syntax error" is here to catch this case.
3393 cat >conftest.$ac_ext <<_ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3400 # include <limits.h>
3402 # include <assert.h>
3406 if { (ac_try="$ac_cpp conftest.$ac_ext"
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } >/dev/null; then
3419 if test -s conftest.err; then
3420 ac_cpp_err=$ac_c_preproc_warn_flag
3421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3428 if test -z "$ac_cpp_err"; then
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434 # Broken: fails on valid input.
3438 rm -f conftest.err conftest.$ac_ext
3440 # OK, works on sane cases. Now check whether nonexistent headers
3441 # can be detected and how.
3442 cat >conftest.$ac_ext <<_ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3448 #include <ac_nonexistent.h>
3450 if { (ac_try="$ac_cpp conftest.$ac_ext"
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3458 grep -v '^ *+' conftest.er1 >conftest.err
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } >/dev/null; then
3463 if test -s conftest.err; then
3464 ac_cpp_err=$ac_c_preproc_warn_flag
3465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3472 if test -z "$ac_cpp_err"; then
3473 # Broken: success on invalid input.
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 # Passes both tests.
3484 rm -f conftest.err conftest.$ac_ext
3487 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3488 rm -f conftest.err conftest.$ac_ext
3489 if $ac_preproc_ok; then
3492 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3493 See \`config.log' for more details." >&5
3494 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3495 See \`config.log' for more details." >&2;}
3496 { (exit 1); exit 1; }; }
3500 ac_cpp='$CPP $CPPFLAGS'
3501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506 if test "$CXX" = "clang++" ; then
3507 { echo "$as_me:$LINENO: checking whether clang works" >&5
3508 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3510 ac_cpp='$CXXCPP $CPPFLAGS'
3511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3516 cat >conftest.$ac_ext <<_ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3523 #if __has_include (<cxxabi.h>)
3526 #if __has_include (<unwind.h>)
3538 rm -f conftest.$ac_objext
3539 if { (ac_try="$ac_compile"
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545 (eval "$ac_compile") 2>conftest.er1
3547 grep -v '^ *+' conftest.er1 >conftest.err
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } &&
3552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3553 { (case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_try") 2>&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; } &&
3562 { ac_try='test -s conftest.$ac_objext'
3563 { (case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_try") 2>&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3573 { echo "$as_me:$LINENO: result: yes" >&5
3574 echo "${ECHO_T}yes" >&6; }
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3581 { echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6; }
3583 { { 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
3584 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;}
3585 { (exit 1); exit 1; }; }
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 ac_cpp='$CPP $CPPFLAGS'
3592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3599 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3601 ac_cpp='$CXXCPP $CPPFLAGS'
3602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3606 llvm_cv_cxx_compiler=unknown
3607 cat >conftest.$ac_ext <<_ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3618 rm -f conftest.$ac_objext
3619 if { (ac_try="$ac_compile"
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625 (eval "$ac_compile") 2>conftest.er1
3627 grep -v '^ *+' conftest.er1 >conftest.err
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } &&
3632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3633 { (case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638 (eval "$ac_try") 2>&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try='test -s conftest.$ac_objext'
3643 { (case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648 (eval "$ac_try") 2>&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 llvm_cv_cxx_compiler=clang
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3657 cat >conftest.$ac_ext <<_ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3668 rm -f conftest.$ac_objext
3669 if { (ac_try="$ac_compile"
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_compile") 2>conftest.er1
3677 grep -v '^ *+' conftest.er1 >conftest.err
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3683 { (case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688 (eval "$ac_try") 2>&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; } &&
3692 { ac_try='test -s conftest.$ac_objext'
3693 { (case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_try") 2>&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; }; then
3702 llvm_cv_cxx_compiler=gcc
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3721 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3725 if test -d ${srcdir}/projects/test-suite ; then
3726 subdirs="$subdirs projects/test-suite"
3730 if test -d ${srcdir}/projects/llvm-test ; then
3731 subdirs="$subdirs projects/llvm-test"
3735 if test -d ${srcdir}/projects/poolalloc ; then
3736 subdirs="$subdirs projects/poolalloc"
3740 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3741 subdirs="$subdirs projects/llvm-poolalloc"
3745 for i in `ls ${srcdir}/projects`
3747 if test -d ${srcdir}/projects/${i} ; then
3749 safecode) subdirs="$subdirs projects/safecode"
3757 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3758 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3764 # Check whether --enable-polly was given.
3765 if test "${enable_polly+set}" = set; then
3766 enableval=$enable_polly;
3771 case "$enableval" in
3776 default) ENABLE_POLLY=1
3778 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3779 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3780 { (exit 1); exit 1; }; } ;;
3784 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3787 subdirs="$subdirs tools/polly"
3792 # Make sure we can run config.sub.
3793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3794 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3795 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3796 { (exit 1); exit 1; }; }
3798 { echo "$as_me:$LINENO: checking build system type" >&5
3799 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3800 if test "${ac_cv_build+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 ac_build_alias=$build_alias
3804 test "x$ac_build_alias" = x &&
3805 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3806 test "x$ac_build_alias" = x &&
3807 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3808 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3809 { (exit 1); exit 1; }; }
3810 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3811 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3812 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3813 { (exit 1); exit 1; }; }
3816 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3817 echo "${ECHO_T}$ac_cv_build" >&6; }
3818 case $ac_cv_build in
3820 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3821 echo "$as_me: error: invalid value of canonical build" >&2;}
3822 { (exit 1); exit 1; }; };;
3825 ac_save_IFS=$IFS; IFS='-'
3831 # Remember, the first character of IFS is used to create $*,
3832 # except with old shells:
3835 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3838 { echo "$as_me:$LINENO: checking host system type" >&5
3839 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3840 if test "${ac_cv_host+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 if test "x$host_alias" = x; then
3844 ac_cv_host=$ac_cv_build
3846 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3847 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3848 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3849 { (exit 1); exit 1; }; }
3853 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3854 echo "${ECHO_T}$ac_cv_host" >&6; }
3857 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3858 echo "$as_me: error: invalid value of canonical host" >&2;}
3859 { (exit 1); exit 1; }; };;
3862 ac_save_IFS=$IFS; IFS='-'
3868 # Remember, the first character of IFS is used to create $*,
3869 # except with old shells:
3872 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3875 { echo "$as_me:$LINENO: checking target system type" >&5
3876 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3877 if test "${ac_cv_target+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 if test "x$target_alias" = x; then
3881 ac_cv_target=$ac_cv_host
3883 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3884 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3885 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3886 { (exit 1); exit 1; }; }
3890 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3891 echo "${ECHO_T}$ac_cv_target" >&6; }
3892 case $ac_cv_target in
3894 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3895 echo "$as_me: error: invalid value of canonical target" >&2;}
3896 { (exit 1); exit 1; }; };;
3898 target=$ac_cv_target
3899 ac_save_IFS=$IFS; IFS='-'
3905 # Remember, the first character of IFS is used to create $*,
3906 # except with old shells:
3909 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3912 # The aliases save the names the user supplied, while $host etc.
3913 # will get canonicalized.
3914 test -n "$target_alias" &&
3915 test "$program_prefix$program_suffix$program_transform_name" = \
3917 program_prefix=${target_alias}-
3919 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3920 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3921 if test "${llvm_cv_os_type+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 llvm_cv_link_all_option="-Wl,--whole-archive"
3927 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3928 llvm_cv_os_type="AIX"
3929 llvm_cv_platform_type="Unix" ;;
3931 llvm_cv_link_all_option="-Wl,--whole-archive"
3932 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3933 llvm_cv_os_type="IRIX"
3934 llvm_cv_platform_type="Unix" ;;
3936 llvm_cv_link_all_option="-Wl,--whole-archive"
3937 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3938 llvm_cv_os_type="Cygwin"
3939 llvm_cv_platform_type="Unix" ;;
3941 llvm_cv_link_all_option="-Wl,-all_load"
3942 llvm_cv_no_link_all_option="-Wl,-noall_load"
3943 llvm_cv_os_type="Darwin"
3944 llvm_cv_platform_type="Unix" ;;
3946 llvm_cv_link_all_option="-Wl,-all_load"
3947 llvm_cv_no_link_all_option="-Wl,-noall_load"
3948 llvm_cv_os_type="Minix"
3949 llvm_cv_platform_type="Unix" ;;
3951 llvm_cv_link_all_option="-Wl,--whole-archive"
3952 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3953 llvm_cv_os_type="FreeBSD"
3954 llvm_cv_platform_type="Unix" ;;
3956 llvm_cv_link_all_option="-Wl,--whole-archive"
3957 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3958 llvm_cv_os_type="GNU/kFreeBSD"
3959 llvm_cv_platform_type="Unix" ;;
3961 llvm_cv_link_all_option="-Wl,--whole-archive"
3962 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3963 llvm_cv_os_type="OpenBSD"
3964 llvm_cv_platform_type="Unix" ;;
3966 llvm_cv_link_all_option="-Wl,--whole-archive"
3967 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3968 llvm_cv_os_type="NetBSD"
3969 llvm_cv_platform_type="Unix" ;;
3971 llvm_cv_link_all_option="-Wl,--whole-archive"
3972 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3973 llvm_cv_os_type="DragonFly"
3974 llvm_cv_platform_type="Unix" ;;
3976 llvm_cv_link_all_option="-Wl,--whole-archive"
3977 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3978 llvm_cv_os_type="Bitrig"
3979 llvm_cv_platform_type="Unix" ;;
3981 llvm_cv_link_all_option="-Wl,--whole-archive"
3982 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3983 llvm_cv_os_type="HP-UX"
3984 llvm_cv_platform_type="Unix" ;;
3986 llvm_cv_link_all_option="-Wl,--whole-archive"
3987 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3988 llvm_cv_os_type="Interix"
3989 llvm_cv_platform_type="Unix" ;;
3991 llvm_cv_link_all_option="-Wl,--whole-archive"
3992 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3993 llvm_cv_os_type="Linux"
3994 llvm_cv_platform_type="Unix" ;;
3996 llvm_cv_link_all_option="-Wl,--whole-archive"
3997 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3998 llvm_cv_os_type="GNU"
3999 llvm_cv_platform_type="Unix" ;;
4001 llvm_cv_link_all_option="-Wl,-z,allextract"
4002 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4003 llvm_cv_os_type="SunOS"
4004 llvm_cv_platform_type="Unix" ;;
4006 llvm_cv_link_all_option="-Wl,--whole-archive"
4007 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4008 llvm_cv_os_type="Win32"
4009 llvm_cv_platform_type="Win32" ;;
4011 llvm_cv_link_all_option="-Wl,--whole-archive"
4012 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4013 llvm_cv_os_type="MingW"
4014 llvm_cv_platform_type="Win32" ;;
4016 llvm_cv_link_all_option="-Wl,--whole-archive"
4017 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4018 llvm_cv_os_type="Haiku"
4019 llvm_cv_platform_type="Unix" ;;
4021 llvm_cv_link_all_option="-Wl,--whole-archive"
4022 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4023 llvm_cv_os_type="Freestanding"
4024 llvm_cv_platform_type="Unix" ;;
4026 llvm_cv_link_all_option="-Wl,--whole-archive"
4027 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4028 llvm_cv_os_type="Freestanding"
4029 llvm_cv_platform_type="Unix" ;;
4031 llvm_cv_link_all_option=""
4032 llvm_cv_no_link_all_option=""
4033 llvm_cv_os_type="Unknown"
4034 llvm_cv_platform_type="Unknown" ;;
4037 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4038 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4040 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4041 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4042 if test "${llvm_cv_target_os_type+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 llvm_cv_target_os_type="AIX" ;;
4049 llvm_cv_target_os_type="IRIX" ;;
4051 llvm_cv_target_os_type="Cygwin" ;;
4053 llvm_cv_target_os_type="Darwin" ;;
4055 llvm_cv_target_os_type="Minix" ;;
4057 llvm_cv_target_os_type="FreeBSD" ;;
4059 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4061 llvm_cv_target_os_type="OpenBSD" ;;
4063 llvm_cv_target_os_type="NetBSD" ;;
4065 llvm_cv_target_os_type="DragonFly" ;;
4067 llvm_cv_target_os_type="Bitrig" ;;
4069 llvm_cv_target_os_type="HP-UX" ;;
4071 llvm_cv_target_os_type="Interix" ;;
4073 llvm_cv_target_os_type="Linux" ;;
4075 llvm_cv_target_os_type="GNU" ;;
4077 llvm_cv_target_os_type="SunOS" ;;
4079 llvm_cv_target_os_type="Win32" ;;
4081 llvm_cv_target_os_type="MingW" ;;
4083 llvm_cv_target_os_type="Haiku" ;;
4085 llvm_cv_target_os_type="RTEMS" ;;
4087 llvm_cv_target_os_type="NativeClient" ;;
4089 llvm_cv_target_os_type="Freestanding" ;;
4091 llvm_cv_target_os_type="PS4" ;;
4093 llvm_cv_target_os_type="Unknown" ;;
4096 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4097 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4099 if test "$llvm_cv_os_type" = "Unknown" ; then
4100 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4101 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4102 { (exit 1); exit 1; }; }
4107 HOST_OS=$llvm_cv_os_type
4109 TARGET_OS=$llvm_cv_target_os_type
4112 LINKALL=$llvm_cv_link_all_option
4114 NOLINKALL=$llvm_cv_no_link_all_option
4117 case $llvm_cv_platform_type in
4120 cat >>confdefs.h <<\_ACEOF
4121 #define LLVM_ON_UNIX 1
4131 cat >>confdefs.h <<\_ACEOF
4132 #define LLVM_ON_WIN32 1
4142 { echo "$as_me:$LINENO: checking target architecture" >&5
4143 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4144 if test "${llvm_cv_target_arch+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 i?86-*) llvm_cv_target_arch="x86" ;;
4149 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4150 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4151 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4152 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4153 arm*-*) llvm_cv_target_arch="ARM" ;;
4154 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4155 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4156 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4157 xcore-*) llvm_cv_target_arch="XCore" ;;
4158 msp430-*) llvm_cv_target_arch="MSP430" ;;
4159 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4160 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4161 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4162 *) llvm_cv_target_arch="Unknown" ;;
4165 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4166 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4168 if test "$llvm_cv_target_arch" = "Unknown" ; then
4169 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4170 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4173 case "$llvm_cv_target_arch" in
4174 x86) LLVM_NATIVE_ARCH="X86" ;;
4175 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4176 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4179 ARCH=$llvm_cv_target_arch
4181 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4185 i?86-*) host_arch="x86" ;;
4186 amd64-* | x86_64-*) host_arch="x86_64" ;;
4187 sparc*-*) host_arch="Sparc" ;;
4188 powerpc*-*) host_arch="PowerPC" ;;
4189 arm64*-*) host_arch="AArch64" ;;
4190 arm*-*) host_arch="ARM" ;;
4191 aarch64*-*) host_arch="AArch64" ;;
4192 mips-* | mips64-*) host_arch="Mips" ;;
4193 mipsel-* | mips64el-*) host_arch="Mips" ;;
4194 xcore-*) host_arch="XCore" ;;
4195 msp430-*) host_arch="MSP430" ;;
4196 hexagon-*) host_arch="Hexagon" ;;
4197 s390x-*) host_arch="SystemZ" ;;
4198 *) host_arch="Unknown" ;;
4201 if test "$host_arch" = "Unknown" ; then
4202 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4203 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4206 HOST_ARCH=$host_arch
4209 if test "$cross_compiling" = yes; then
4210 LLVM_CROSS_COMPILING=1
4213 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4214 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4215 if test "${ac_cv_build_exeext+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4219 ac_cv_build_exeext=.exe
4221 ac_build_prefix=${build_alias}-
4223 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4224 set dummy ${ac_build_prefix}gcc; ac_word=$2
4225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4227 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 if test -n "$BUILD_CC"; then
4231 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4240 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 BUILD_CC=$ac_cv_prog_BUILD_CC
4251 if test -n "$BUILD_CC"; then
4252 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4253 echo "${ECHO_T}$BUILD_CC" >&6; }
4255 { echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6; }
4260 if test -z "$BUILD_CC"; then
4261 # Extract the first word of "gcc", so it can be a program name with args.
4262 set dummy gcc; ac_word=$2
4263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4265 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 if test -n "$BUILD_CC"; then
4269 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_BUILD_CC="gcc"
4279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 BUILD_CC=$ac_cv_prog_BUILD_CC
4289 if test -n "$BUILD_CC"; then
4290 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4291 echo "${ECHO_T}$BUILD_CC" >&6; }
4293 { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4298 if test -z "$BUILD_CC"; then
4299 # Extract the first word of "cc", so it can be a program name with args.
4300 set dummy cc; ac_word=$2
4301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 if test -n "$BUILD_CC"; then
4307 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4318 ac_prog_rejected=yes
4321 ac_cv_prog_BUILD_CC="cc"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 if test $ac_prog_rejected = yes; then
4330 # We found a bogon in the path, so make sure we never use it.
4331 set dummy $ac_cv_prog_BUILD_CC
4333 if test $# != 0; then
4334 # We chose a different compiler from the bogus one.
4335 # However, it has the same basename, so the bogon will be chosen
4336 # first if we set BUILD_CC to just the basename; use the full file name.
4338 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4343 BUILD_CC=$ac_cv_prog_BUILD_CC
4344 if test -n "$BUILD_CC"; then
4345 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4346 echo "${ECHO_T}$BUILD_CC" >&6; }
4348 { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4355 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4356 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4357 { (exit 1); exit 1; }; }
4358 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4360 echo 'int main () { return 0; }' > conftest.$ac_ext
4362 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4363 (eval $ac_build_link) 2>&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; then
4367 for file in conftest.*; do
4369 *.c | *.o | *.obj | *.dSYM) ;;
4370 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4374 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4375 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4376 { (exit 1); exit 1; }; }
4379 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4384 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4385 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4386 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4387 ac_build_exeext=$BUILD_EXEEXT
4389 ac_build_prefix=${build_alias}-
4390 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4391 set dummy ${ac_build_prefix}g++; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 if test -n "$BUILD_CXX"; then
4398 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4418 if test -n "$BUILD_CXX"; then
4419 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4420 echo "${ECHO_T}$BUILD_CXX" >&6; }
4422 { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4427 if test -z "$BUILD_CXX"; then
4428 # Extract the first word of "g++", so it can be a program name with args.
4429 set dummy g++; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 if test -n "$BUILD_CXX"; then
4436 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CXX="g++"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4456 if test -n "$BUILD_CXX"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4458 echo "${ECHO_T}$BUILD_CXX" >&6; }
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CXX"; then
4466 # Extract the first word of "c++", so it can be a program name with args.
4467 set dummy c++; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if test -n "$BUILD_CXX"; then
4474 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4485 ac_prog_rejected=yes
4488 ac_cv_prog_BUILD_CXX="c++"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 if test $ac_prog_rejected = yes; then
4497 # We found a bogon in the path, so make sure we never use it.
4498 set dummy $ac_cv_prog_BUILD_CXX
4500 if test $# != 0; then
4501 # We chose a different compiler from the bogus one.
4502 # However, it has the same basename, so the bogon will be chosen
4503 # first if we set BUILD_CXX to just the basename; use the full file name.
4505 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4510 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4511 if test -n "$BUILD_CXX"; then
4512 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4513 echo "${ECHO_T}$BUILD_CXX" >&6; }
4515 { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4523 LLVM_CROSS_COMPILING=0
4527 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4538 # Check whether --enable-libcpp was given.
4539 if test "${enable_libcpp+set}" = set; then
4540 enableval=$enable_libcpp;
4545 case "$enableval" in
4546 yes) ENABLE_LIBCPP=1
4550 default) ENABLE_LIBCPP=0
4552 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4553 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4554 { (exit 1); exit 1; }; } ;;
4557 # Check whether --enable-compiler-version-checks was given.
4558 if test "${enable_compiler_version_checks+set}" = set; then
4559 enableval=$enable_compiler_version_checks;
4564 case "$enableval" in
4569 ac_cpp='$CXXCPP $CPPFLAGS'
4570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4574 case "$llvm_cv_cxx_compiler" in
4576 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4577 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4585 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4586 #error This version of Clang is too old to build LLVM
4590 rm -f conftest.$ac_objext
4591 if { (ac_try="$ac_compile"
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_compile") 2>conftest.er1
4599 grep -v '^ *+' conftest.er1 >conftest.err
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4605 { (case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_try") 2>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; } &&
4614 { ac_try='test -s conftest.$ac_objext'
4615 { (case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_try") 2>&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 { echo "$as_me:$LINENO: result: yes" >&5
4625 echo "${ECHO_T}yes" >&6; }
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 { echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6; }
4632 { { echo "$as_me:$LINENO: error:
4633 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4634 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4635 bypass these sanity checks." >&5
4636 echo "$as_me: error:
4637 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4638 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4639 bypass these sanity checks." >&2;}
4640 { (exit 1); exit 1; }; }
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 if test "$ENABLE_LIBCPP" -eq 0 ; then
4646 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4647 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4648 llvm_cv_old_cxxflags="$CXXFLAGS"
4649 CXXFLAGS="$CXXFLAGS -std=c++0x"
4650 cat >conftest.$ac_ext <<_ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4658 std::atomic<float> x(0.0f);
4659 int main() { return (float)x; }
4662 rm -f conftest.$ac_objext conftest$ac_exeext
4663 if { (ac_try="$ac_link"
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4669 (eval "$ac_link") 2>conftest.er1
4671 grep -v '^ *+' conftest.er1 >conftest.err
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4677 { (case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_try") 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; } &&
4686 { ac_try='test -s conftest$ac_exeext'
4687 { (case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval "$ac_try") 2>&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 { echo "$as_me:$LINENO: result: yes" >&5
4697 echo "${ECHO_T}yes" >&6; }
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4704 { { echo "$as_me:$LINENO: error:
4705 We detected a missing feature in the standard C++ library that was known to be
4706 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4707 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4708 than 4.7. You will need to update your system and ensure Clang uses the newer
4711 If this error is incorrect or you need to force things to work, you may pass
4712 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4713 echo "$as_me: error:
4714 We detected a missing feature in the standard C++ library that was known to be
4715 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4716 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4717 than 4.7. You will need to update your system and ensure Clang uses the newer
4720 If this error is incorrect or you need to force things to work, you may pass
4721 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4722 { (exit 1); exit 1; }; }
4725 rm -f core conftest.err conftest.$ac_objext \
4726 conftest$ac_exeext conftest.$ac_ext
4727 CXXFLAGS="$llvm_cv_old_cxxflags"
4731 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4732 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4733 cat >conftest.$ac_ext <<_ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h. */
4740 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4741 #error This version of GCC is too old to build LLVM
4745 rm -f conftest.$ac_objext
4746 if { (ac_try="$ac_compile"
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4752 (eval "$ac_compile") 2>conftest.er1
4754 grep -v '^ *+' conftest.er1 >conftest.err
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4760 { (case "(($ac_try" in
4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762 *) ac_try_echo=$ac_try;;
4764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765 (eval "$ac_try") 2>&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; } &&
4769 { ac_try='test -s conftest.$ac_objext'
4770 { (case "(($ac_try" in
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_try") 2>&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 { echo "$as_me:$LINENO: result: yes" >&5
4780 echo "${ECHO_T}yes" >&6; }
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4787 { { echo "$as_me:$LINENO: error:
4788 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4789 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4790 bypass these sanity checks." >&5
4791 echo "$as_me: error:
4792 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4793 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4794 bypass these sanity checks." >&2;}
4795 { (exit 1); exit 1; }; }
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4812 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4813 { (exit 1); exit 1; }; }
4817 # Check whether --enable-cxx1y was given.
4818 if test "${enable_cxx1y+set}" = set; then
4819 enableval=$enable_cxx1y;
4824 case "$enableval" in
4829 default) ENABLE_CXX1Y=0
4831 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4832 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4833 { (exit 1); exit 1; }; } ;;
4836 # Check whether --enable-split-dwarf was given.
4837 if test "${enable_split_dwarf+set}" = set; then
4838 enableval=$enable_split_dwarf;
4843 case "$enableval" in
4844 yes) ENABLE_SPLIT_DWARF=1
4846 no) ENABLE_SPLIT_DWARF=0
4848 default) ENABLE_SPLIT_DWARF=0
4850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
4856 # Check whether --enable-clang-arcmt was given.
4857 if test "${enable_clang_arcmt+set}" = set; then
4858 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4863 case "$enableval" in
4864 yes) ENABLE_CLANG_ARCMT=1
4866 no) ENABLE_CLANG_ARCMT=0
4868 default) ENABLE_CLANG_ARCMT=1
4870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
4875 clang_plugin_support="yes"
4876 # Check whether --enable-clang-plugin-support was given.
4877 if test "${enable_clang_plugin_support+set}" = set; then
4878 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4883 case "$enableval" in
4884 yes) CLANG_PLUGIN_SUPPORT=1
4886 no) CLANG_PLUGIN_SUPPORT=0
4888 default) CLANG_PLUGIN_SUPPORT=1
4890 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4891 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4892 { (exit 1); exit 1; }; } ;;
4895 clang_static_analyzer="yes"
4896 # Check whether --enable-clang-static-analyzer was given.
4897 if test "${enable_clang_static_analyzer+set}" = set; then
4898 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4903 case "$enableval" in
4904 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4907 if test ${clang_arcmt} != "no" ; then
4908 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4909 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4910 { (exit 1); exit 1; }; }
4912 ENABLE_CLANG_STATIC_ANALYZER=0
4915 default) ENABLE_CLANG_STATIC_ANALYZER=1
4917 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4918 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4922 # Check whether --enable-optimized was given.
4923 if test "${enable_optimized+set}" = set; then
4924 enableval=$enable_optimized;
4929 if test ${enableval} = "no" ; then
4933 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4937 # Check whether --enable-profiling was given.
4938 if test "${enable_profiling+set}" = set; then
4939 enableval=$enable_profiling;
4944 if test ${enableval} = "no" ; then
4948 ENABLE_PROFILING=ENABLE_PROFILING=1
4952 # Check whether --enable-assertions was given.
4953 if test "${enable_assertions+set}" = set; then
4954 enableval=$enable_assertions;
4959 if test ${enableval} = "yes" ; then
4963 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4967 # Check whether --enable-werror was given.
4968 if test "${enable_werror+set}" = set; then
4969 enableval=$enable_werror;
4974 case "$enableval" in
4975 yes) ENABLE_WERROR=1
4979 default) ENABLE_WERROR=0
4981 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4982 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4983 { (exit 1); exit 1; }; } ;;
4986 # Check whether --enable-expensive-checks was given.
4987 if test "${enable_expensive_checks+set}" = set; then
4988 enableval=$enable_expensive_checks;
4993 if test ${enableval} = "yes" ; then
4994 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4996 EXPENSIVE_CHECKS=yes
4999 ENABLE_EXPENSIVE_CHECKS=
5005 # Check whether --enable-debug-runtime was given.
5006 if test "${enable_debug_runtime+set}" = set; then
5007 enableval=$enable_debug_runtime;
5012 if test ${enableval} = "no" ; then
5016 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5020 # Check whether --enable-debug-symbols was given.
5021 if test "${enable_debug_symbols+set}" = set; then
5022 enableval=$enable_debug_symbols;
5027 if test ${enableval} = "no" ; then
5031 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5035 # Check whether --enable-keep-symbols was given.
5036 if test "${enable_keep_symbols+set}" = set; then
5037 enableval=$enable_keep_symbols;
5042 if test ${enableval} = "no" ; then
5046 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5050 # Check whether --enable-jit was given.
5051 if test "${enable_jit+set}" = set; then
5052 enableval=$enable_jit;
5057 if test ${enableval} = "no"
5062 case "$llvm_cv_target_arch" in
5063 x86) TARGET_HAS_JIT=1
5065 Sparc) TARGET_HAS_JIT=0
5067 PowerPC) TARGET_HAS_JIT=1
5069 x86_64) TARGET_HAS_JIT=1
5071 ARM) TARGET_HAS_JIT=1
5073 Mips) TARGET_HAS_JIT=1
5075 XCore) TARGET_HAS_JIT=0
5077 MSP430) TARGET_HAS_JIT=0
5079 Hexagon) TARGET_HAS_JIT=0
5081 NVPTX) TARGET_HAS_JIT=0
5083 SystemZ) TARGET_HAS_JIT=1
5090 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5091 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5094 # Check whether --enable-docs was given.
5095 if test "${enable_docs+set}" = set; then
5096 enableval=$enable_docs;
5101 case "$enableval" in
5106 default) ENABLE_DOCS=1
5108 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5109 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5110 { (exit 1); exit 1; }; } ;;
5113 # Check whether --enable-doxygen was given.
5114 if test "${enable_doxygen+set}" = set; then
5115 enableval=$enable_doxygen;
5120 case "$enableval" in
5121 yes) ENABLE_DOXYGEN=1
5123 no) ENABLE_DOXYGEN=0
5125 default) ENABLE_DOXYGEN=0
5127 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5128 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5129 { (exit 1); exit 1; }; } ;;
5132 # Check whether --enable-threads was given.
5133 if test "${enable_threads+set}" = set; then
5134 enableval=$enable_threads;
5139 case "$enableval" in
5140 yes) LLVM_ENABLE_THREADS=1
5142 no) LLVM_ENABLE_THREADS=0
5144 default) LLVM_ENABLE_THREADS=1
5146 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5147 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5148 { (exit 1); exit 1; }; } ;;
5151 cat >>confdefs.h <<_ACEOF
5152 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5156 # Check whether --enable-pthreads was given.
5157 if test "${enable_pthreads+set}" = set; then
5158 enableval=$enable_pthreads;
5163 case "$enableval" in
5164 yes) ENABLE_PTHREADS=1
5166 no) ENABLE_PTHREADS=0
5168 default) ENABLE_PTHREADS=1
5170 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5172 { (exit 1); exit 1; }; } ;;
5175 # Check whether --enable-zlib was given.
5176 if test "${enable_zlib+set}" = set; then
5177 enableval=$enable_zlib;
5182 case "$enableval" in
5183 yes) LLVM_ENABLE_ZLIB=1
5185 no) LLVM_ENABLE_ZLIB=0
5187 default) LLVM_ENABLE_ZLIB=1
5189 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5191 { (exit 1); exit 1; }; } ;;
5194 cat >>confdefs.h <<_ACEOF
5195 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5199 # Check whether --enable-pic was given.
5200 if test "${enable_pic+set}" = set; then
5201 enableval=$enable_pic;
5206 case "$enableval" in
5211 default) ENABLE_PIC=1
5213 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5215 { (exit 1); exit 1; }; } ;;
5218 cat >>confdefs.h <<_ACEOF
5219 #define ENABLE_PIC $ENABLE_PIC
5223 # Check whether --enable-shared was given.
5224 if test "${enable_shared+set}" = set; then
5225 enableval=$enable_shared;
5230 case "$enableval" in
5231 yes) ENABLE_SHARED=1
5235 default) ENABLE_SHARED=0
5237 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5238 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5239 { (exit 1); exit 1; }; } ;;
5242 # Check whether --enable-embed-stdcxx was given.
5243 if test "${enable_embed_stdcxx+set}" = set; then
5244 enableval=$enable_embed_stdcxx;
5249 case "$enableval" in
5250 yes) ENABLE_EMBED_STDCXX=1
5252 no) ENABLE_EMBED_STDCXX=0
5254 default) ENABLE_EMBED_STDCXX=0
5256 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5257 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5258 { (exit 1); exit 1; }; } ;;
5261 # Check whether --enable-timestamps was given.
5262 if test "${enable_timestamps+set}" = set; then
5263 enableval=$enable_timestamps;
5268 case "$enableval" in
5269 yes) ENABLE_TIMESTAMPS=1
5271 no) ENABLE_TIMESTAMPS=0
5273 default) ENABLE_TIMESTAMPS=1
5275 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5276 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5277 { (exit 1); exit 1; }; } ;;
5280 cat >>confdefs.h <<_ACEOF
5281 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5285 # Check whether --enable-backtraces was given.
5286 if test "${enable_backtraces+set}" = set; then
5287 enableval=$enable_backtraces; case "$enableval" in
5288 yes) llvm_cv_enable_backtraces="yes" ;;
5289 no) llvm_cv_enable_backtraces="no" ;;
5290 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5291 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5292 { (exit 1); exit 1; }; } ;;
5295 llvm_cv_enable_backtraces="yes"
5298 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5300 cat >>confdefs.h <<\_ACEOF
5301 #define ENABLE_BACKTRACES 1
5306 # Check whether --enable-crash-overrides was given.
5307 if test "${enable_crash_overrides+set}" = set; then
5308 enableval=$enable_crash_overrides; case "$enableval" in
5309 yes) llvm_cv_enable_crash_overrides="yes" ;;
5310 no) llvm_cv_enable_crash_overrides="no" ;;
5311 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5312 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5313 { (exit 1); exit 1; }; } ;;
5316 llvm_cv_enable_crash_overrides="yes"
5319 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5321 cat >>confdefs.h <<\_ACEOF
5322 #define ENABLE_CRASH_OVERRIDES 1
5327 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5328 ALL_TARGETS=$ALL_TARGETS
5332 # Check whether --enable-targets was given.
5333 if test "${enable_targets+set}" = set; then
5334 enableval=$enable_targets;
5339 if test "$enableval" = host-only ; then
5342 case "$enableval" in
5343 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5344 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5346 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5347 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5348 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5349 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5350 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5351 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5352 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5353 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5354 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5355 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5356 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5357 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5358 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5359 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5360 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5361 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5362 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5363 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5364 host) case "$llvm_cv_target_arch" in
5365 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5366 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5367 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5368 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5369 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5370 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5371 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5372 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5373 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5374 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5375 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5376 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5377 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5378 echo "$as_me: error: Can not set target to build" >&2;}
5379 { (exit 1); exit 1; }; } ;;
5381 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5382 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5383 { (exit 1); exit 1; }; } ;;
5389 # Check whether --enable-experimental-targets was given.
5390 if test "${enable_experimental_targets+set}" = set; then
5391 enableval=$enable_experimental_targets;
5397 if test ${enableval} != "disable"
5399 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5402 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5405 for a_target in $TARGETS_TO_BUILD; do
5406 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5412 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5413 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5414 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5415 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5416 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5417 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5419 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5420 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5428 cat >>confdefs.h <<_ACEOF
5429 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5433 cat >>confdefs.h <<_ACEOF
5434 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5438 cat >>confdefs.h <<_ACEOF
5439 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5442 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5444 cat >>confdefs.h <<_ACEOF
5445 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5449 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5451 cat >>confdefs.h <<_ACEOF
5452 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5459 LLVM_ENUM_TARGETS=""
5460 LLVM_ENUM_ASM_PRINTERS=""
5461 LLVM_ENUM_ASM_PARSERS=""
5462 LLVM_ENUM_DISASSEMBLERS=""
5463 for target_to_build in $TARGETS_TO_BUILD; do
5464 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5465 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5466 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5468 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5469 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5471 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5472 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5481 # Check whether --with-optimize-option was given.
5482 if test "${with_optimize_option+set}" = set; then
5483 withval=$with_optimize_option;
5488 { echo "$as_me:$LINENO: checking optimization flags" >&5
5489 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5492 case "$llvm_cv_os_type" in
5493 FreeBSD) optimize_option=-O2 ;;
5494 MingW) optimize_option=-O2 ;;
5495 *) optimize_option=-O3 ;;
5497 *) optimize_option="$withval" ;;
5499 OPTIMIZE_OPTION=$optimize_option
5501 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5502 echo "${ECHO_T}$optimize_option" >&6; }
5505 # Check whether --with-extra-options was given.
5506 if test "${with_extra_options+set}" = set; then
5507 withval=$with_extra_options;
5513 default) EXTRA_OPTIONS= ;;
5514 *) EXTRA_OPTIONS=$withval ;;
5516 EXTRA_OPTIONS=$EXTRA_OPTIONS
5520 # Check whether --with-extra-ld-options was given.
5521 if test "${with_extra_ld_options+set}" = set; then
5522 withval=$with_extra_ld_options;
5528 default) EXTRA_LD_OPTIONS= ;;
5529 *) EXTRA_LD_OPTIONS=$withval ;;
5531 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5534 # Check whether --enable-bindings was given.
5535 if test "${enable_bindings+set}" = set; then
5536 enableval=$enable_bindings;
5541 BINDINGS_TO_BUILD=""
5542 case "$enableval" in
5543 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5544 all ) BINDINGS_TO_BUILD="ocaml" ;;
5545 none | no) BINDINGS_TO_BUILD="" ;;
5546 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5547 case "$a_binding" in
5548 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5549 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5550 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5551 { (exit 1); exit 1; }; } ;;
5558 # Check whether --with-ocaml-libdir was given.
5559 if test "${with_ocaml_libdir+set}" = set; then
5560 withval=$with_ocaml_libdir;
5566 auto) with_ocaml_libdir="$withval" ;;
5567 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5568 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5569 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5570 { (exit 1); exit 1; }; } ;;
5574 # Check whether --with-clang-srcdir was given.
5575 if test "${with_clang_srcdir+set}" = set; then
5576 withval=$with_clang_srcdir;
5582 -) clang_src_root="" ;;
5583 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5584 *) clang_src_root="$ac_pwd/$withval" ;;
5586 CLANG_SRC_ROOT=$clang_src_root
5590 # Check whether --with-clang-resource-dir was given.
5591 if test "${with_clang_resource_dir+set}" = set; then
5592 withval=$with_clang_resource_dir;
5598 cat >>confdefs.h <<_ACEOF
5599 #define CLANG_RESOURCE_DIR "$withval"
5604 # Check whether --with-c-include-dirs was given.
5605 if test "${with_c_include_dirs+set}" = set; then
5606 withval=$with_c_include_dirs;
5612 cat >>confdefs.h <<_ACEOF
5613 #define C_INCLUDE_DIRS "$withval"
5617 # Clang normally uses the system c++ headers and libraries. With this option,
5618 # clang will use the ones provided by a gcc installation instead. This option should
5619 # be passed the same value that was used with --prefix when configuring gcc.
5621 # Check whether --with-gcc-toolchain was given.
5622 if test "${with_gcc_toolchain+set}" = set; then
5623 withval=$with_gcc_toolchain;
5629 cat >>confdefs.h <<_ACEOF
5630 #define GCC_INSTALL_PREFIX "$withval"
5635 # Check whether --with-default-sysroot was given.
5636 if test "${with_default_sysroot+set}" = set; then
5637 withval=$with_default_sysroot;
5643 cat >>confdefs.h <<_ACEOF
5644 #define DEFAULT_SYSROOT "$withval"
5649 # Check whether --with-binutils-include was given.
5650 if test "${with_binutils_include+set}" = set; then
5651 withval=$with_binutils_include;
5657 default) WITH_BINUTILS_INCDIR=default ;;
5658 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5659 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5660 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5661 { (exit 1); exit 1; }; } ;;
5663 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5664 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5666 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5667 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5668 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5669 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5670 { (exit 1); exit 1; }; };
5675 # Check whether --with-bug-report-url was given.
5676 if test "${with_bug_report_url+set}" = set; then
5677 withval=$with_bug_report_url;
5679 withval="http://llvm.org/bugs/"
5683 cat >>confdefs.h <<_ACEOF
5684 #define BUG_REPORT_URL "$withval"
5688 # Check whether --enable-terminfo was given.
5689 if test "${enable_terminfo+set}" = set; then
5690 enableval=$enable_terminfo; case "$enableval" in
5691 yes) llvm_cv_enable_terminfo="yes" ;;
5692 no) llvm_cv_enable_terminfo="no" ;;
5693 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5694 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5695 { (exit 1); exit 1; }; } ;;
5698 llvm_cv_enable_terminfo="yes"
5701 case "$llvm_cv_enable_terminfo" in
5702 yes) ENABLE_TERMINFO=1
5704 no) ENABLE_TERMINFO=0
5708 # Check whether --enable-libedit was given.
5709 if test "${enable_libedit+set}" = set; then
5710 enableval=$enable_libedit; case "$enableval" in
5711 yes) llvm_cv_enable_libedit="yes" ;;
5712 no) llvm_cv_enable_libedit="no" ;;
5713 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5714 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5715 { (exit 1); exit 1; }; } ;;
5718 llvm_cv_enable_libedit="yes"
5722 # Check whether --enable-libffi was given.
5723 if test "${enable_libffi+set}" = set; then
5724 enableval=$enable_libffi; case "$enableval" in
5725 yes) llvm_cv_enable_libffi="yes" ;;
5726 no) llvm_cv_enable_libffi="no" ;;
5727 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5728 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5729 { (exit 1); exit 1; }; } ;;
5732 llvm_cv_enable_libffi=no
5737 # Check whether --with-internal-prefix was given.
5738 if test "${with_internal_prefix+set}" = set; then
5739 withval=$with_internal_prefix;
5744 INTERNAL_PREFIX=$withval
5748 { echo "$as_me:$LINENO: checking for GNU make" >&5
5749 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5750 if test "${llvm_cv_gnu_make_command+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 llvm_cv_gnu_make_command=''
5754 for a in "$MAKE" make gmake gnumake ; do
5755 if test -z "$a" ; then continue ; fi ;
5756 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5758 llvm_cv_gnu_make_command=$a ;
5763 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5764 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5765 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5769 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5770 echo "${ECHO_T}\"Not found\"" >&6; };
5774 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5775 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5777 if test "$LN_S" = "ln -s"; then
5778 { echo "$as_me:$LINENO: result: yes" >&5
5779 echo "${ECHO_T}yes" >&6; }
5781 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5782 echo "${ECHO_T}no, using $LN_S" >&6; }
5785 # Extract the first word of "nm", so it can be a program name with args.
5786 set dummy nm; ac_word=$2
5787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5789 if test "${ac_cv_path_NM+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5804 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5817 if test -n "$NM"; then
5818 { echo "$as_me:$LINENO: result: $NM" >&5
5819 echo "${ECHO_T}$NM" >&6; }
5821 { echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6; }
5826 # Extract the first word of "cmp", so it can be a program name with args.
5827 set dummy cmp; ac_word=$2
5828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5830 if test "${ac_cv_path_CMP+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5845 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5858 if test -n "$CMP"; then
5859 { echo "$as_me:$LINENO: result: $CMP" >&5
5860 echo "${ECHO_T}$CMP" >&6; }
5862 { echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6; }
5867 # Extract the first word of "cp", so it can be a program name with args.
5868 set dummy cp; ac_word=$2
5869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5871 if test "${ac_cv_path_CP+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5886 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5899 if test -n "$CP"; then
5900 { echo "$as_me:$LINENO: result: $CP" >&5
5901 echo "${ECHO_T}$CP" >&6; }
5903 { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5908 # Extract the first word of "date", so it can be a program name with args.
5909 set dummy date; ac_word=$2
5910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5912 if test "${ac_cv_path_DATE+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5939 DATE=$ac_cv_path_DATE
5940 if test -n "$DATE"; then
5941 { echo "$as_me:$LINENO: result: $DATE" >&5
5942 echo "${ECHO_T}$DATE" >&6; }
5944 { echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6; }
5949 # Extract the first word of "find", so it can be a program name with args.
5950 set dummy find; ac_word=$2
5951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5953 if test "${ac_cv_path_FIND+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5968 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5980 FIND=$ac_cv_path_FIND
5981 if test -n "$FIND"; then
5982 { echo "$as_me:$LINENO: result: $FIND" >&5
5983 echo "${ECHO_T}$FIND" >&6; }
5985 { echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6; }
5990 # Extract the first word of "grep", so it can be a program name with args.
5991 set dummy grep; ac_word=$2
5992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5994 if test "${ac_cv_path_GREP+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6009 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6021 GREP=$ac_cv_path_GREP
6022 if test -n "$GREP"; then
6023 { echo "$as_me:$LINENO: result: $GREP" >&5
6024 echo "${ECHO_T}$GREP" >&6; }
6026 { echo "$as_me:$LINENO: result: no" >&5
6027 echo "${ECHO_T}no" >&6; }
6031 # Extract the first word of "mkdir", so it can be a program name with args.
6032 set dummy mkdir; ac_word=$2
6033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035 if test "${ac_cv_path_MKDIR+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6062 MKDIR=$ac_cv_path_MKDIR
6063 if test -n "$MKDIR"; then
6064 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6065 echo "${ECHO_T}$MKDIR" >&6; }
6067 { echo "$as_me:$LINENO: result: no" >&5
6068 echo "${ECHO_T}no" >&6; }
6072 # Extract the first word of "mv", so it can be a program name with args.
6073 set dummy mv; ac_word=$2
6074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6076 if test "${ac_cv_path_MV+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6091 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6104 if test -n "$MV"; then
6105 { echo "$as_me:$LINENO: result: $MV" >&5
6106 echo "${ECHO_T}$MV" >&6; }
6108 { echo "$as_me:$LINENO: result: no" >&5
6109 echo "${ECHO_T}no" >&6; }
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_RANLIB+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 if test -n "$RANLIB"; then
6122 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 RANLIB=$ac_cv_prog_RANLIB
6142 if test -n "$RANLIB"; then
6143 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6144 echo "${ECHO_T}$RANLIB" >&6; }
6146 { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6152 if test -z "$ac_cv_prog_RANLIB"; then
6153 ac_ct_RANLIB=$RANLIB
6154 # Extract the first word of "ranlib", so it can be a program name with args.
6155 set dummy ranlib; ac_word=$2
6156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 if test -n "$ac_ct_RANLIB"; then
6162 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_ac_ct_RANLIB="ranlib"
6172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6182 if test -n "$ac_ct_RANLIB"; then
6183 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6184 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6186 { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6190 if test "x$ac_ct_RANLIB" = x; then
6193 case $cross_compiling:$ac_tool_warned in
6195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6196 whose name does not start with the host triplet. If you think this
6197 configuration is useful to you, please write to autoconf@gnu.org." >&5
6198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6199 whose name does not start with the host triplet. If you think this
6200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6201 ac_tool_warned=yes ;;
6203 RANLIB=$ac_ct_RANLIB
6206 RANLIB="$ac_cv_prog_RANLIB"
6209 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}ar; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_AR+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 if test -n "$AR"; then
6218 ac_cv_prog_AR="$AR" # Let the user override the test.
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_AR="${ac_tool_prefix}ar"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 if test -n "$AR"; then
6239 { echo "$as_me:$LINENO: result: $AR" >&5
6240 echo "${ECHO_T}$AR" >&6; }
6242 { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6248 if test -z "$ac_cv_prog_AR"; then
6250 # Extract the first word of "ar", so it can be a program name with args.
6251 set dummy ar; ac_word=$2
6252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6254 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 if test -n "$ac_ct_AR"; then
6258 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_ac_ct_AR="ar"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6278 if test -n "$ac_ct_AR"; then
6279 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6280 echo "${ECHO_T}$ac_ct_AR" >&6; }
6282 { echo "$as_me:$LINENO: result: no" >&5
6283 echo "${ECHO_T}no" >&6; }
6286 if test "x$ac_ct_AR" = x; then
6289 case $cross_compiling:$ac_tool_warned in
6291 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6292 whose name does not start with the host triplet. If you think this
6293 configuration is useful to you, please write to autoconf@gnu.org." >&5
6294 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6295 whose name does not start with the host triplet. If you think this
6296 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6297 ac_tool_warned=yes ;;
6305 # Extract the first word of "rm", so it can be a program name with args.
6306 set dummy rm; ac_word=$2
6307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309 if test "${ac_cv_path_RM+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6337 if test -n "$RM"; then
6338 { echo "$as_me:$LINENO: result: $RM" >&5
6339 echo "${ECHO_T}$RM" >&6; }
6341 { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6346 # Extract the first word of "sed", so it can be a program name with args.
6347 set dummy sed; ac_word=$2
6348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6350 if test "${ac_cv_path_SED+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6365 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6378 if test -n "$SED"; then
6379 { echo "$as_me:$LINENO: result: $SED" >&5
6380 echo "${ECHO_T}$SED" >&6; }
6382 { echo "$as_me:$LINENO: result: no" >&5
6383 echo "${ECHO_T}no" >&6; }
6387 # Extract the first word of "tar", so it can be a program name with args.
6388 set dummy tar; ac_word=$2
6389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6391 if test "${ac_cv_path_TAR+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6419 if test -n "$TAR"; then
6420 { echo "$as_me:$LINENO: result: $TAR" >&5
6421 echo "${ECHO_T}$TAR" >&6; }
6423 { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6428 # Extract the first word of "pwd", so it can be a program name with args.
6429 set dummy pwd; ac_word=$2
6430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432 if test "${ac_cv_path_BINPWD+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6447 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6459 BINPWD=$ac_cv_path_BINPWD
6460 if test -n "$BINPWD"; then
6461 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6462 echo "${ECHO_T}$BINPWD" >&6; }
6464 { echo "$as_me:$LINENO: result: no" >&5
6465 echo "${ECHO_T}no" >&6; }
6470 # Extract the first word of "dot", so it can be a program name with args.
6471 set dummy dot; ac_word=$2
6472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6474 if test "${ac_cv_path_DOT+set}" = set; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6489 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6502 if test -n "$DOT"; then
6503 { echo "$as_me:$LINENO: result: $DOT" >&5
6504 echo "${ECHO_T}$DOT" >&6; }
6506 { echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6; }
6511 if test "$DOT" != "echo dot" ; then
6513 cat >>confdefs.h <<\_ACEOF
6517 if test "$llvm_cv_os_type" = "MingW" ; then
6518 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6521 cat >>confdefs.h <<_ACEOF
6522 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6527 # Find a good install program. We prefer a C program (faster),
6528 # so one script is as good as another. But avoid the broken or
6529 # incompatible versions:
6530 # SysV /etc/install, /usr/sbin/install
6531 # SunOS /usr/etc/install
6532 # IRIX /sbin/install
6534 # AmigaOS /C/install, which installs bootblocks on floppy discs
6535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6538 # OS/2's system install, which has a completely different semantic
6539 # ./install, which can be erroneously created by make from ./install.sh.
6540 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6541 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6542 if test -z "$INSTALL"; then
6543 if test "${ac_cv_path_install+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 test -z "$as_dir" && as_dir=.
6551 # Account for people who put trailing slashes in PATH elements.
6553 ./ | .// | /cC/* | \
6554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6555 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6558 # OSF1 and SCO ODT 3.0 have their own names for install.
6559 # Don't use installbsd from OSF since it installs stuff as root
6561 for ac_prog in ginstall scoinst install; do
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6564 if test $ac_prog = install &&
6565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6566 # AIX install. It has an incompatible calling convention.
6568 elif test $ac_prog = install &&
6569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6570 # program-specific install script used by HP pwplus--don't use.
6573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6586 if test "${ac_cv_path_install+set}" = set; then
6587 INSTALL=$ac_cv_path_install
6589 # As a last resort, use the slow shell script. Don't cache a
6590 # value for INSTALL within a source directory, because that will
6591 # break other packages using the cache if that directory is
6592 # removed, or if the value is a relative name.
6593 INSTALL=$ac_install_sh
6596 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6597 echo "${ECHO_T}$INSTALL" >&6; }
6599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6600 # It thinks the first close brace ends the variable substitution.
6601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6608 [\\/$]* | ?:[\\/]* ) ;;
6609 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6612 # Extract the first word of "bzip2", so it can be a program name with args.
6613 set dummy bzip2; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_path_BZIP2+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 BZIP2=$ac_cv_path_BZIP2
6643 if test -n "$BZIP2"; then
6644 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6645 echo "${ECHO_T}$BZIP2" >&6; }
6647 { echo "$as_me:$LINENO: result: no" >&5
6648 echo "${ECHO_T}no" >&6; }
6652 # Extract the first word of "cat", so it can be a program name with args.
6653 set dummy cat; ac_word=$2
6654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6656 if test "${ac_cv_path_CAT+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6671 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 if test -n "$CAT"; then
6684 { echo "$as_me:$LINENO: result: $CAT" >&5
6685 echo "${ECHO_T}$CAT" >&6; }
6687 { echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6; }
6692 # Extract the first word of "doxygen", so it can be a program name with args.
6693 set dummy doxygen; ac_word=$2
6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 DOXYGEN=$ac_cv_path_DOXYGEN
6723 if test -n "$DOXYGEN"; then
6724 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6725 echo "${ECHO_T}$DOXYGEN" >&6; }
6727 { echo "$as_me:$LINENO: result: no" >&5
6728 echo "${ECHO_T}no" >&6; }
6732 # Extract the first word of "groff", so it can be a program name with args.
6733 set dummy groff; ac_word=$2
6734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736 if test "${ac_cv_path_GROFF+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6751 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 GROFF=$ac_cv_path_GROFF
6763 if test -n "$GROFF"; then
6764 { echo "$as_me:$LINENO: result: $GROFF" >&5
6765 echo "${ECHO_T}$GROFF" >&6; }
6767 { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6772 # Extract the first word of "gzip", so it can be a program name with args.
6773 set dummy gzip; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 GZIPBIN=$ac_cv_path_GZIPBIN
6803 if test -n "$GZIPBIN"; then
6804 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6805 echo "${ECHO_T}$GZIPBIN" >&6; }
6807 { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6812 # Extract the first word of "pdfroff", so it can be a program name with args.
6813 set dummy pdfroff; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_PDFROFF+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 PDFROFF=$ac_cv_path_PDFROFF
6843 if test -n "$PDFROFF"; then
6844 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6845 echo "${ECHO_T}$PDFROFF" >&6; }
6847 { echo "$as_me:$LINENO: result: no" >&5
6848 echo "${ECHO_T}no" >&6; }
6852 # Extract the first word of "zip", so it can be a program name with args.
6853 set dummy zip; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_path_ZIP+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 if test -n "$ZIP"; then
6884 { echo "$as_me:$LINENO: result: $ZIP" >&5
6885 echo "${ECHO_T}$ZIP" >&6; }
6887 { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6892 # Extract the first word of "go", so it can be a program name with args.
6893 set dummy go; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_path_GO+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 ac_cv_path_GO="$GO" # Let the user override the test with a path.
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 if test -n "$GO"; then
6924 { echo "$as_me:$LINENO: result: $GO" >&5
6925 echo "${ECHO_T}$GO" >&6; }
6927 { echo "$as_me:$LINENO: result: no" >&5
6928 echo "${ECHO_T}no" >&6; }
6932 for ac_prog in ocamlfind
6934 # Extract the first word of "$ac_prog", so it can be a program name with args.
6935 set dummy $ac_prog; ac_word=$2
6936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6938 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6953 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
6954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 OCAMLFIND=$ac_cv_path_OCAMLFIND
6965 if test -n "$OCAMLFIND"; then
6966 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
6967 echo "${ECHO_T}$OCAMLFIND" >&6; }
6969 { echo "$as_me:$LINENO: result: no" >&5
6970 echo "${ECHO_T}no" >&6; }
6974 test -n "$OCAMLFIND" && break
6977 for ac_prog in gas as
6979 # Extract the first word of "$ac_prog", so it can be a program name with args.
6980 set dummy $ac_prog; ac_word=$2
6981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983 if test "${ac_cv_path_GAS+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
6999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 if test -n "$GAS"; then
7011 { echo "$as_me:$LINENO: result: $GAS" >&5
7012 echo "${ECHO_T}$GAS" >&6; }
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7019 test -n "$GAS" && break
7023 { echo "$as_me:$LINENO: checking for linker version" >&5
7024 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7025 if test "${llvm_cv_link_version+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7032 if (echo "$version_string" | grep -q "ld64"); then
7033 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7035 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7039 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7040 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7042 cat >>confdefs.h <<_ACEOF
7043 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7049 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7050 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7051 if test "${llvm_cv_link_use_r+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 ac_cpp='$CPP $CPPFLAGS'
7056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7061 CFLAGS="$CFLAGS -Wl,-R."
7062 cat >conftest.$ac_ext <<_ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7077 rm -f conftest.$ac_objext conftest$ac_exeext
7078 if { (ac_try="$ac_link"
7080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084 (eval "$ac_link") 2>conftest.er1
7086 grep -v '^ *+' conftest.er1 >conftest.err
7088 cat conftest.err >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } &&
7091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7092 { (case "(($ac_try" in
7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094 *) ac_try_echo=$ac_try;;
7096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7097 (eval "$ac_try") 2>&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; } &&
7101 { ac_try='test -s conftest$ac_exeext'
7102 { (case "(($ac_try" in
7103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7104 *) ac_try_echo=$ac_try;;
7106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7107 (eval "$ac_try") 2>&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; }; then
7111 llvm_cv_link_use_r=yes
7113 echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7116 llvm_cv_link_use_r=no
7119 rm -f core conftest.err conftest.$ac_objext \
7120 conftest$ac_exeext conftest.$ac_ext
7123 ac_cpp='$CPP $CPPFLAGS'
7124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7131 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7132 if test "$llvm_cv_link_use_r" = yes ; then
7134 cat >>confdefs.h <<\_ACEOF
7135 #define HAVE_LINK_R 1
7141 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7142 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7143 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 ac_cpp='$CPP $CPPFLAGS'
7148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7153 CFLAGS="$CFLAGS -rdynamic"
7154 cat >conftest.$ac_ext <<_ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7169 rm -f conftest.$ac_objext conftest$ac_exeext
7170 if { (ac_try="$ac_link"
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_link") 2>conftest.er1
7178 grep -v '^ *+' conftest.er1 >conftest.err
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } &&
7183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7184 { (case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_try") 2>&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; } &&
7193 { ac_try='test -s conftest$ac_exeext'
7194 { (case "(($ac_try" in
7195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196 *) ac_try_echo=$ac_try;;
7198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7199 (eval "$ac_try") 2>&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 llvm_cv_link_use_export_dynamic=yes
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 llvm_cv_link_use_export_dynamic=no
7211 rm -f core conftest.err conftest.$ac_objext \
7212 conftest$ac_exeext conftest.$ac_ext
7215 ac_cpp='$CPP $CPPFLAGS'
7216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7222 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7223 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7224 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7226 cat >>confdefs.h <<\_ACEOF
7227 #define HAVE_LINK_EXPORT_DYNAMIC 1
7233 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7234 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7235 if test "${llvm_cv_link_use_version_script+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 ac_cpp='$CPP $CPPFLAGS'
7240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7246 # The following code is from the autoconf manual,
7247 # "11.13: Limitations of Usual Tools".
7248 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7249 # Use mktemp if possible; otherwise fall back on mkdir,
7250 # with $RANDOM to make collisions less likely.
7254 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7256 test -n "$tmp" && test -d "$tmp"
7258 tmp=$TMPDIR/foo$$-$RANDOM
7259 (umask 077 && mkdir "$tmp")
7262 echo "{" > "$tmp/export.map"
7263 echo " global: main;" >> "$tmp/export.map"
7264 echo " local: *;" >> "$tmp/export.map"
7265 echo "};" >> "$tmp/export.map"
7267 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7268 cat >conftest.$ac_ext <<_ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7283 rm -f conftest.$ac_objext conftest$ac_exeext
7284 if { (ac_try="$ac_link"
7286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287 *) ac_try_echo=$ac_try;;
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290 (eval "$ac_link") 2>conftest.er1
7292 grep -v '^ *+' conftest.er1 >conftest.err
7294 cat conftest.err >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } &&
7297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7298 { (case "(($ac_try" in
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7303 (eval "$ac_try") 2>&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; } &&
7307 { ac_try='test -s conftest$ac_exeext'
7308 { (case "(($ac_try" in
7309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7310 *) ac_try_echo=$ac_try;;
7312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7313 (eval "$ac_try") 2>&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7317 llvm_cv_link_use_version_script=yes
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7322 llvm_cv_link_use_version_script=no
7325 rm -f core conftest.err conftest.$ac_objext \
7326 conftest$ac_exeext conftest.$ac_ext
7327 rm "$tmp/export.map"
7331 ac_cpp='$CPP $CPPFLAGS'
7332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7338 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7339 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7340 if test "$llvm_cv_link_use_version_script" = yes ; then
7341 HAVE_LINK_VERSION_SCRIPT=1
7347 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7348 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7349 if test "${ac_cv_path_GREP+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 # Extract the first word of "grep ggrep" to use in msg output
7353 if test -z "$GREP"; then
7354 set dummy grep ggrep; ac_prog_name=$2
7355 if test "${ac_cv_path_GREP+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 ac_path_GREP_found=false
7359 # Loop through the user's path and test for each of PROGNAME-LIST
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7364 test -z "$as_dir" && as_dir=.
7365 for ac_prog in grep ggrep; do
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7368 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7369 # Check for GNU ac_path_GREP and select it if it is found.
7370 # Check for GNU $ac_path_GREP
7371 case `"$ac_path_GREP" --version 2>&1` in
7373 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7376 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7379 cat "conftest.in" "conftest.in" >"conftest.tmp"
7380 mv "conftest.tmp" "conftest.in"
7381 cp "conftest.in" "conftest.nl"
7382 echo 'GREP' >> "conftest.nl"
7383 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7384 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7385 ac_count=`expr $ac_count + 1`
7386 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7387 # Best one so far, save it but keep looking for a better one
7388 ac_cv_path_GREP="$ac_path_GREP"
7389 ac_path_GREP_max=$ac_count
7391 # 10*(2^10) chars as input seems more than enough
7392 test $ac_count -gt 10 && break
7394 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7398 $ac_path_GREP_found && break 3
7408 GREP="$ac_cv_path_GREP"
7409 if test -z "$GREP"; then
7410 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7411 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7412 { (exit 1); exit 1; }; }
7416 ac_cv_path_GREP=$GREP
7421 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7422 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7423 GREP="$ac_cv_path_GREP"
7426 { echo "$as_me:$LINENO: checking for egrep" >&5
7427 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_EGREP+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7432 then ac_cv_path_EGREP="$GREP -E"
7434 # Extract the first word of "egrep" to use in msg output
7435 if test -z "$EGREP"; then
7436 set dummy egrep; ac_prog_name=$2
7437 if test "${ac_cv_path_EGREP+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 ac_path_EGREP_found=false
7441 # Loop through the user's path and test for each of PROGNAME-LIST
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7446 test -z "$as_dir" && as_dir=.
7447 for ac_prog in egrep; do
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7450 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7451 # Check for GNU ac_path_EGREP and select it if it is found.
7452 # Check for GNU $ac_path_EGREP
7453 case `"$ac_path_EGREP" --version 2>&1` in
7455 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7458 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7461 cat "conftest.in" "conftest.in" >"conftest.tmp"
7462 mv "conftest.tmp" "conftest.in"
7463 cp "conftest.in" "conftest.nl"
7464 echo 'EGREP' >> "conftest.nl"
7465 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7466 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7467 ac_count=`expr $ac_count + 1`
7468 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7469 # Best one so far, save it but keep looking for a better one
7470 ac_cv_path_EGREP="$ac_path_EGREP"
7471 ac_path_EGREP_max=$ac_count
7473 # 10*(2^10) chars as input seems more than enough
7474 test $ac_count -gt 10 && break
7476 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7480 $ac_path_EGREP_found && break 3
7490 EGREP="$ac_cv_path_EGREP"
7491 if test -z "$EGREP"; then
7492 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7493 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7494 { (exit 1); exit 1; }; }
7498 ac_cv_path_EGREP=$EGREP
7504 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7505 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7506 EGREP="$ac_cv_path_EGREP"
7509 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7510 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7511 if test "${ac_cv_header_stdc+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 cat >conftest.$ac_ext <<_ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7533 rm -f conftest.$ac_objext
7534 if { (ac_try="$ac_compile"
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_compile") 2>conftest.er1
7542 grep -v '^ *+' conftest.er1 >conftest.err
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7548 { (case "(($ac_try" in
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7553 (eval "$ac_try") 2>&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; } &&
7557 { ac_try='test -s conftest.$ac_objext'
7558 { (case "(($ac_try" in
7559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560 *) ac_try_echo=$ac_try;;
7562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7563 (eval "$ac_try") 2>&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
7567 ac_cv_header_stdc=yes
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7572 ac_cv_header_stdc=no
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7577 if test $ac_cv_header_stdc = yes; then
7578 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev/null 2>&1; then
7592 ac_cv_header_stdc=no
7598 if test $ac_cv_header_stdc = yes; then
7599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7600 cat >conftest.$ac_ext <<_ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7610 $EGREP "free" >/dev/null 2>&1; then
7613 ac_cv_header_stdc=no
7619 if test $ac_cv_header_stdc = yes; then
7620 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7621 if test "$cross_compiling" = yes; then
7624 cat >conftest.$ac_ext <<_ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7632 #if ((' ' & 0x0FF) == 0x020)
7633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7636 # define ISLOWER(c) \
7637 (('a' <= (c) && (c) <= 'i') \
7638 || ('j' <= (c) && (c) <= 'r') \
7639 || ('s' <= (c) && (c) <= 'z'))
7640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7648 for (i = 0; i < 256; i++)
7649 if (XOR (islower (i), ISLOWER (i))
7650 || toupper (i) != TOUPPER (i))
7655 rm -f conftest$ac_exeext
7656 if { (ac_try="$ac_link"
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662 (eval "$ac_link") 2>&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7666 { (case "(($ac_try" in
7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671 (eval "$ac_try") 2>&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7677 echo "$as_me: program exited with status $ac_status" >&5
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7682 ac_cv_header_stdc=no
7684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7690 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7691 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7692 if test $ac_cv_header_stdc = yes; then
7694 cat >>confdefs.h <<\_ACEOF
7695 #define STDC_HEADERS 1
7700 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7710 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7711 inttypes.h stdint.h unistd.h
7713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 cat >conftest.$ac_ext <<_ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7725 $ac_includes_default
7727 #include <$ac_header>
7729 rm -f conftest.$ac_objext
7730 if { (ac_try="$ac_compile"
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7736 (eval "$ac_compile") 2>conftest.er1
7738 grep -v '^ *+' conftest.er1 >conftest.err
7740 cat conftest.err >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7744 { (case "(($ac_try" in
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_try") 2>&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); }; } &&
7753 { ac_try='test -s conftest.$ac_objext'
7754 { (case "(($ac_try" in
7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756 *) ac_try_echo=$ac_try;;
7758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759 (eval "$ac_try") 2>&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7763 eval "$as_ac_Header=yes"
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7768 eval "$as_ac_Header=no"
7771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7773 ac_res=`eval echo '${'$as_ac_Header'}'`
7774 { echo "$as_me:$LINENO: result: $ac_res" >&5
7775 echo "${ECHO_T}$ac_res" >&6; }
7776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7777 cat >>confdefs.h <<_ACEOF
7778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7787 for ac_header in errno.h
7789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 ac_res=`eval echo '${'$as_ac_Header'}'`
7797 { echo "$as_me:$LINENO: result: $ac_res" >&5
7798 echo "${ECHO_T}$ac_res" >&6; }
7800 # Is the header compilable?
7801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7803 cat >conftest.$ac_ext <<_ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7809 $ac_includes_default
7810 #include <$ac_header>
7812 rm -f conftest.$ac_objext
7813 if { (ac_try="$ac_compile"
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819 (eval "$ac_compile") 2>conftest.er1
7821 grep -v '^ *+' conftest.er1 >conftest.err
7823 cat conftest.err >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } &&
7826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7827 { (case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_try") 2>&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; } &&
7836 { ac_try='test -s conftest.$ac_objext'
7837 { (case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_try") 2>&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_header_compiler=yes
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 ac_header_compiler=no
7854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7856 echo "${ECHO_T}$ac_header_compiler" >&6; }
7858 # Is the header present?
7859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7861 cat >conftest.$ac_ext <<_ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 #include <$ac_header>
7869 if { (ac_try="$ac_cpp conftest.$ac_ext"
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7877 grep -v '^ *+' conftest.er1 >conftest.err
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } >/dev/null; then
7882 if test -s conftest.err; then
7883 ac_cpp_err=$ac_c_preproc_warn_flag
7884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7891 if test -z "$ac_cpp_err"; then
7892 ac_header_preproc=yes
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 ac_header_preproc=no
7900 rm -f conftest.err conftest.$ac_ext
7901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7902 echo "${ECHO_T}$ac_header_preproc" >&6; }
7904 # So? What about this header?
7905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7911 ac_header_preproc=yes
7914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7927 ## ------------------------------------ ##
7928 ## Report this to http://llvm.org/bugs/ ##
7929 ## ------------------------------------ ##
7931 ) | sed "s/^/$as_me: WARNING: /" >&2
7934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 eval "$as_ac_Header=\$ac_header_preproc"
7941 ac_res=`eval echo '${'$as_ac_Header'}'`
7942 { echo "$as_me:$LINENO: result: $ac_res" >&5
7943 echo "${ECHO_T}$ac_res" >&6; }
7946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7947 cat >>confdefs.h <<_ACEOF
7948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7956 case "$llvm_cv_os_type" in
7957 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
7958 Darwin) llvm_shlib_ext=.dylib ;;
7959 *) llvm_shlib_ext=.so ;;
7963 cat >>confdefs.h <<_ACEOF
7964 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
7968 { echo "$as_me:$LINENO: checking tool compatibility" >&5
7969 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
7982 if test "$GCC" != "yes" && test "$ICC" != "yes"
7984 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
7985 echo "$as_me: error: gcc|icc required but not found" >&2;}
7986 { (exit 1); exit 1; }; }
7989 if test "$GXX" != "yes" && test "$IXX" != "yes"
7991 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
7992 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
7993 { (exit 1); exit 1; }; }
7996 if test "$GCC" = "yes"
7998 cat >conftest.$ac_ext <<_ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8006 #if !defined(__GNUC__) || __GNUC__ < 3
8007 #error Unsupported GCC version
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8021 grep -v '^ *+' conftest.er1 >conftest.err
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
8026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8027 { (case "(($ac_try" in
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032 (eval "$ac_try") 2>&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; } &&
8036 { ac_try='test -s conftest.$ac_objext'
8037 { (case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_try") 2>&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8051 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8052 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8053 { (exit 1); exit 1; }; }
8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 if test -z "$llvm_cv_gnu_make_command"
8061 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8062 echo "$as_me: error: GNU Make required but not found" >&2;}
8063 { (exit 1); exit 1; }; }
8066 { echo "$as_me:$LINENO: result: ok" >&5
8067 echo "${ECHO_T}ok" >&6; }
8069 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8070 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8071 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8073 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8075 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8079 NO_MAYBE_UNINITIALIZED=
8080 if test "$GXX" = "yes"
8082 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8084 if test -z "$NO_MAYBE_UNINITIALIZED"
8086 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8092 llvm_cv_old_cxxflags="$CXXFLAGS"
8093 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8094 cat >conftest.$ac_ext <<_ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8103 int main() { return 0; }
8107 rm -f conftest.$ac_objext
8108 if { (ac_try="$ac_compile"
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_compile") 2>conftest.er1
8116 grep -v '^ *+' conftest.er1 >conftest.err
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; } &&
8131 { ac_try='test -s conftest.$ac_objext'
8132 { (case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8142 no_comment=-Wno-comment
8145 echo "$as_me: failed program was:" >&5
8146 sed 's/^/| /' conftest.$ac_ext >&5
8151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8152 NO_COMMENT=$no_comment
8154 CXXFLAGS="$llvm_cv_old_cxxflags"
8156 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8157 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8160 # Check whether --with-python was given.
8161 if test "${with_python+set}" = set; then
8162 withval=$with_python; PYTHON="$withval"
8166 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8167 { echo "$as_me:$LINENO: checking for python" >&5
8168 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8169 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8170 echo "${ECHO_T}user defined: $with_python" >&6; }
8172 if test -n "$PYTHON" ; then
8173 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8174 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8177 # Extract the first word of "python python2 python27", so it can be a program name with args.
8178 set dummy python python2 python27; ac_word=$2
8179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8181 if test "${ac_cv_path_PYTHON+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8196 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8204 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8205 echo "${ECHO_T}not found" >&6; }
8206 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8207 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8208 { (exit 1); exit 1; }; }"
8212 PYTHON=$ac_cv_path_PYTHON
8213 if test -n "$PYTHON"; then
8214 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8215 echo "${ECHO_T}$PYTHON" >&6; }
8217 { echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6; }
8224 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8225 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8226 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8227 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8228 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8229 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8230 if test "$ac_python_version_major" -gt "2" || \
8231 (test "$ac_python_version_major" -eq "2" && \
8232 test "$ac_python_version_minor" -ge "7") ; then
8233 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8234 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8236 { echo "$as_me:$LINENO: result: not found" >&5
8237 echo "${ECHO_T}not found" >&6; }
8238 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8239 See \`config.log' for more details." >&5
8240 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8241 See \`config.log' for more details." >&2;}
8242 { (exit 1); exit 1; }; }
8247 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8248 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8249 if test "${ac_cv_lib_m_sin+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 ac_check_lib_save_LIBS=$LIBS
8254 cat >conftest.$ac_ext <<_ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8261 /* Override any GCC internal prototype to avoid an error.
8262 Use char because int might match the return type of a GCC
8263 builtin and then its argument prototype would still apply. */
8276 rm -f conftest.$ac_objext conftest$ac_exeext
8277 if { (ac_try="$ac_link"
8279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_link") 2>conftest.er1
8285 grep -v '^ *+' conftest.er1 >conftest.err
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8291 { (case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_try") 2>&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try='test -s conftest$ac_exeext'
8301 { (case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_try") 2>&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8318 rm -f core conftest.err conftest.$ac_objext \
8319 conftest$ac_exeext conftest.$ac_ext
8320 LIBS=$ac_check_lib_save_LIBS
8322 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8323 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8324 if test $ac_cv_lib_m_sin = yes; then
8325 cat >>confdefs.h <<_ACEOF
8333 if test "$llvm_cv_os_type" = "MingW" ; then
8335 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8336 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8337 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 ac_check_lib_save_LIBS=$LIBS
8341 LIBS="-limagehlp $LIBS"
8342 cat >conftest.$ac_ext <<_ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8358 rm -f conftest.$ac_objext conftest$ac_exeext
8359 if { (ac_try="$ac_link"
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_link") 2>conftest.er1
8367 grep -v '^ *+' conftest.er1 >conftest.err
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } &&
8372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8373 { (case "(($ac_try" in
8374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375 *) ac_try_echo=$ac_try;;
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378 (eval "$ac_try") 2>&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest$ac_exeext'
8383 { (case "(($ac_try" in
8384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385 *) ac_try_echo=$ac_try;;
8387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388 (eval "$ac_try") 2>&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8392 ac_cv_lib_imagehlp_main=yes
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8397 ac_cv_lib_imagehlp_main=no
8400 rm -f core conftest.err conftest.$ac_objext \
8401 conftest$ac_exeext conftest.$ac_ext
8402 LIBS=$ac_check_lib_save_LIBS
8404 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8405 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8406 if test $ac_cv_lib_imagehlp_main = yes; then
8407 cat >>confdefs.h <<_ACEOF
8408 #define HAVE_LIBIMAGEHLP 1
8411 LIBS="-limagehlp $LIBS"
8416 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8417 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8418 if test "${ac_cv_lib_psapi_main+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 ac_check_lib_save_LIBS=$LIBS
8422 LIBS="-lpsapi $LIBS"
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (ac_try="$ac_link"
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_link") 2>conftest.er1
8448 grep -v '^ *+' conftest.er1 >conftest.err
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } &&
8453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8454 { (case "(($ac_try" in
8455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456 *) ac_try_echo=$ac_try;;
8458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459 (eval "$ac_try") 2>&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; } &&
8463 { ac_try='test -s conftest$ac_exeext'
8464 { (case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_try") 2>&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 ac_cv_lib_psapi_main=yes
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8478 ac_cv_lib_psapi_main=no
8481 rm -f core conftest.err conftest.$ac_objext \
8482 conftest$ac_exeext conftest.$ac_ext
8483 LIBS=$ac_check_lib_save_LIBS
8485 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8486 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8487 if test $ac_cv_lib_psapi_main = yes; then
8488 cat >>confdefs.h <<_ACEOF
8489 #define HAVE_LIBPSAPI 1
8492 LIBS="-lpsapi $LIBS"
8497 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8498 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8499 if test "${ac_cv_lib_shell32_main+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 ac_check_lib_save_LIBS=$LIBS
8503 LIBS="-lshell32 $LIBS"
8504 cat >conftest.$ac_ext <<_ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8520 rm -f conftest.$ac_objext conftest$ac_exeext
8521 if { (ac_try="$ac_link"
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_link") 2>conftest.er1
8529 grep -v '^ *+' conftest.er1 >conftest.err
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8535 { (case "(($ac_try" in
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_try") 2>&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; } &&
8544 { ac_try='test -s conftest$ac_exeext'
8545 { (case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_try") 2>&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; }; then
8554 ac_cv_lib_shell32_main=yes
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8559 ac_cv_lib_shell32_main=no
8562 rm -f core conftest.err conftest.$ac_objext \
8563 conftest$ac_exeext conftest.$ac_ext
8564 LIBS=$ac_check_lib_save_LIBS
8566 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8567 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8568 if test $ac_cv_lib_shell32_main = yes; then
8569 cat >>confdefs.h <<_ACEOF
8570 #define HAVE_LIBSHELL32 1
8573 LIBS="-lshell32 $LIBS"
8579 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8580 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8581 if test "${ac_cv_search_dlopen+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 ac_func_search_save_LIBS=$LIBS
8585 cat >conftest.$ac_ext <<_ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8592 /* Override any GCC internal prototype to avoid an error.
8593 Use char because int might match the return type of a GCC
8594 builtin and then its argument prototype would still apply. */
8607 for ac_lib in '' dl; do
8608 if test -z "$ac_lib"; then
8609 ac_res="none required"
8612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (ac_try="$ac_link"
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_link") 2>conftest.er1
8623 grep -v '^ *+' conftest.er1 >conftest.err
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } &&
8628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8629 { (case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_try") 2>&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; } &&
8638 { ac_try='test -s conftest$ac_exeext'
8639 { (case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_try") 2>&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
8648 ac_cv_search_dlopen=$ac_res
8650 echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8656 rm -f core conftest.err conftest.$ac_objext \
8658 if test "${ac_cv_search_dlopen+set}" = set; then
8662 if test "${ac_cv_search_dlopen+set}" = set; then
8665 ac_cv_search_dlopen=no
8668 LIBS=$ac_func_search_save_LIBS
8670 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8671 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8672 ac_res=$ac_cv_search_dlopen
8673 if test "$ac_res" != no; then
8674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8677 cat >>confdefs.h <<\_ACEOF
8678 #define HAVE_DLOPEN 1
8685 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8686 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8690 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8691 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8692 if test "${ac_cv_search_clock_gettime+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 ac_func_search_save_LIBS=$LIBS
8696 cat >conftest.$ac_ext <<_ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8703 /* Override any GCC internal prototype to avoid an error.
8704 Use char because int might match the return type of a GCC
8705 builtin and then its argument prototype would still apply. */
8709 char clock_gettime ();
8713 return clock_gettime ();
8718 for ac_lib in '' rt; do
8719 if test -z "$ac_lib"; then
8720 ac_res="none required"
8723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8725 rm -f conftest.$ac_objext conftest$ac_exeext
8726 if { (ac_try="$ac_link"
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_link") 2>conftest.er1
8734 grep -v '^ *+' conftest.er1 >conftest.err
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } &&
8739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8740 { (case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_try") 2>&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; } &&
8749 { ac_try='test -s conftest$ac_exeext'
8750 { (case "(($ac_try" in
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_try") 2>&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; }; then
8759 ac_cv_search_clock_gettime=$ac_res
8761 echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8767 rm -f core conftest.err conftest.$ac_objext \
8769 if test "${ac_cv_search_clock_gettime+set}" = set; then
8773 if test "${ac_cv_search_clock_gettime+set}" = set; then
8776 ac_cv_search_clock_gettime=no
8779 LIBS=$ac_func_search_save_LIBS
8781 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8782 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8783 ac_res=$ac_cv_search_clock_gettime
8784 if test "$ac_res" != no; then
8785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8790 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8791 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8792 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8793 if test "${ac_cv_search_setupterm+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 ac_func_search_save_LIBS=$LIBS
8797 cat >conftest.$ac_ext <<_ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8804 /* Override any GCC internal prototype to avoid an error.
8805 Use char because int might match the return type of a GCC
8806 builtin and then its argument prototype would still apply. */
8814 return setupterm ();
8819 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8820 if test -z "$ac_lib"; then
8821 ac_res="none required"
8824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8826 rm -f conftest.$ac_objext conftest$ac_exeext
8827 if { (ac_try="$ac_link"
8829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830 *) ac_try_echo=$ac_try;;
8832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833 (eval "$ac_link") 2>conftest.er1
8835 grep -v '^ *+' conftest.er1 >conftest.err
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } &&
8840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8841 { (case "(($ac_try" in
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846 (eval "$ac_try") 2>&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; } &&
8850 { ac_try='test -s conftest$ac_exeext'
8851 { (case "(($ac_try" in
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_try") 2>&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
8860 ac_cv_search_setupterm=$ac_res
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8868 rm -f core conftest.err conftest.$ac_objext \
8870 if test "${ac_cv_search_setupterm+set}" = set; then
8874 if test "${ac_cv_search_setupterm+set}" = set; then
8877 ac_cv_search_setupterm=no
8880 LIBS=$ac_func_search_save_LIBS
8882 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8883 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8884 ac_res=$ac_cv_search_setupterm
8885 if test "$ac_res" != no; then
8886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8889 cat >>confdefs.h <<\_ACEOF
8890 #define HAVE_TERMINFO 1
8900 if test "$llvm_cv_enable_libedit" = "yes" ; then
8901 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8902 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8903 if test "${ac_cv_search_el_init+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 ac_func_search_save_LIBS=$LIBS
8907 cat >conftest.$ac_ext <<_ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8914 /* Override any GCC internal prototype to avoid an error.
8915 Use char because int might match the return type of a GCC
8916 builtin and then its argument prototype would still apply. */
8929 for ac_lib in '' edit; do
8930 if test -z "$ac_lib"; then
8931 ac_res="none required"
8934 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (ac_try="$ac_link"
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_link") 2>conftest.er1
8945 grep -v '^ *+' conftest.er1 >conftest.err
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8951 { (case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_try") 2>&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; } &&
8960 { ac_try='test -s conftest$ac_exeext'
8961 { (case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_try") 2>&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; }; then
8970 ac_cv_search_el_init=$ac_res
8972 echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8978 rm -f core conftest.err conftest.$ac_objext \
8980 if test "${ac_cv_search_el_init+set}" = set; then
8984 if test "${ac_cv_search_el_init+set}" = set; then
8987 ac_cv_search_el_init=no
8990 LIBS=$ac_func_search_save_LIBS
8992 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
8993 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
8994 ac_res=$ac_cv_search_el_init
8995 if test "$ac_res" != no; then
8996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8998 cat >>confdefs.h <<\_ACEOF
8999 #define HAVE_LIBEDIT 1
9006 if test "$llvm_cv_enable_libffi" = "yes" ; then
9007 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9008 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9009 if test "${ac_cv_search_ffi_call+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 ac_func_search_save_LIBS=$LIBS
9013 cat >conftest.$ac_ext <<_ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9020 /* Override any GCC internal prototype to avoid an error.
9021 Use char because int might match the return type of a GCC
9022 builtin and then its argument prototype would still apply. */
9035 for ac_lib in '' ffi; do
9036 if test -z "$ac_lib"; then
9037 ac_res="none required"
9040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9042 rm -f conftest.$ac_objext conftest$ac_exeext
9043 if { (ac_try="$ac_link"
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049 (eval "$ac_link") 2>conftest.er1
9051 grep -v '^ *+' conftest.er1 >conftest.err
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } &&
9056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9057 { (case "(($ac_try" in
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062 (eval "$ac_try") 2>&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try='test -s conftest$ac_exeext'
9067 { (case "(($ac_try" in
9068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9069 *) ac_try_echo=$ac_try;;
9071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9072 (eval "$ac_try") 2>&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 ac_cv_search_ffi_call=$ac_res
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9084 rm -f core conftest.err conftest.$ac_objext \
9086 if test "${ac_cv_search_ffi_call+set}" = set; then
9090 if test "${ac_cv_search_ffi_call+set}" = set; then
9093 ac_cv_search_ffi_call=no
9096 LIBS=$ac_func_search_save_LIBS
9098 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9099 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9100 ac_res=$ac_cv_search_ffi_call
9101 if test "$ac_res" != no; then
9102 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9104 cat >>confdefs.h <<\_ACEOF
9105 #define HAVE_FFI_CALL 1
9109 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9110 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9111 { (exit 1); exit 1; }; }
9116 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9117 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9118 if test "${ac_cv_search_mallinfo+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 ac_func_search_save_LIBS=$LIBS
9122 cat >conftest.$ac_ext <<_ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9129 /* Override any GCC internal prototype to avoid an error.
9130 Use char because int might match the return type of a GCC
9131 builtin and then its argument prototype would still apply. */
9144 for ac_lib in '' malloc; do
9145 if test -z "$ac_lib"; then
9146 ac_res="none required"
9149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9151 rm -f conftest.$ac_objext conftest$ac_exeext
9152 if { (ac_try="$ac_link"
9154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155 *) ac_try_echo=$ac_try;;
9157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158 (eval "$ac_link") 2>conftest.er1
9160 grep -v '^ *+' conftest.er1 >conftest.err
9162 cat conftest.err >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9166 { (case "(($ac_try" in
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_try") 2>&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; } &&
9175 { ac_try='test -s conftest$ac_exeext'
9176 { (case "(($ac_try" in
9177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178 *) ac_try_echo=$ac_try;;
9180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181 (eval "$ac_try") 2>&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 ac_cv_search_mallinfo=$ac_res
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9193 rm -f core conftest.err conftest.$ac_objext \
9195 if test "${ac_cv_search_mallinfo+set}" = set; then
9199 if test "${ac_cv_search_mallinfo+set}" = set; then
9202 ac_cv_search_mallinfo=no
9205 LIBS=$ac_func_search_save_LIBS
9207 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9208 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9209 ac_res=$ac_cv_search_mallinfo
9210 if test "$ac_res" != no; then
9211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9213 cat >>confdefs.h <<\_ACEOF
9214 #define HAVE_MALLINFO 1
9220 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9222 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9223 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9224 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 ac_check_lib_save_LIBS=$LIBS
9228 LIBS="-lpthread $LIBS"
9229 cat >conftest.$ac_ext <<_ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9236 /* Override any GCC internal prototype to avoid an error.
9237 Use char because int might match the return type of a GCC
9238 builtin and then its argument prototype would still apply. */
9242 char pthread_mutex_init ();
9246 return pthread_mutex_init ();
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (ac_try="$ac_link"
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_link") 2>conftest.er1
9260 grep -v '^ *+' conftest.er1 >conftest.err
9262 cat conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } &&
9265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9266 { (case "(($ac_try" in
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_try") 2>&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; } &&
9275 { ac_try='test -s conftest$ac_exeext'
9276 { (case "(($ac_try" in
9277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278 *) ac_try_echo=$ac_try;;
9280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281 (eval "$ac_try") 2>&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; }; then
9285 ac_cv_lib_pthread_pthread_mutex_init=yes
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9290 ac_cv_lib_pthread_pthread_mutex_init=no
9293 rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 LIBS=$ac_check_lib_save_LIBS
9297 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9298 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9299 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9300 cat >>confdefs.h <<_ACEOF
9301 #define HAVE_LIBPTHREAD 1
9304 LIBS="-lpthread $LIBS"
9308 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9309 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9310 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 ac_func_search_save_LIBS=$LIBS
9314 cat >conftest.$ac_ext <<_ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9321 /* Override any GCC internal prototype to avoid an error.
9322 Use char because int might match the return type of a GCC
9323 builtin and then its argument prototype would still apply. */
9327 char pthread_mutex_lock ();
9331 return pthread_mutex_lock ();
9336 for ac_lib in '' pthread; do
9337 if test -z "$ac_lib"; then
9338 ac_res="none required"
9341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (ac_try="$ac_link"
9346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347 *) ac_try_echo=$ac_try;;
9349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350 (eval "$ac_link") 2>conftest.er1
9352 grep -v '^ *+' conftest.er1 >conftest.err
9354 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
9357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9358 { (case "(($ac_try" in
9359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360 *) ac_try_echo=$ac_try;;
9362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9363 (eval "$ac_try") 2>&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; } &&
9367 { ac_try='test -s conftest$ac_exeext'
9368 { (case "(($ac_try" in
9369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9370 *) ac_try_echo=$ac_try;;
9372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9373 (eval "$ac_try") 2>&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377 ac_cv_search_pthread_mutex_lock=$ac_res
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9385 rm -f core conftest.err conftest.$ac_objext \
9387 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9391 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9394 ac_cv_search_pthread_mutex_lock=no
9397 LIBS=$ac_func_search_save_LIBS
9399 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9400 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9401 ac_res=$ac_cv_search_pthread_mutex_lock
9402 if test "$ac_res" != no; then
9403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9405 cat >>confdefs.h <<\_ACEOF
9406 #define HAVE_PTHREAD_MUTEX_LOCK 1
9411 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9412 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9413 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 ac_func_search_save_LIBS=$LIBS
9417 cat >conftest.$ac_ext <<_ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9424 /* Override any GCC internal prototype to avoid an error.
9425 Use char because int might match the return type of a GCC
9426 builtin and then its argument prototype would still apply. */
9430 char pthread_rwlock_init ();
9434 return pthread_rwlock_init ();
9439 for ac_lib in '' pthread; do
9440 if test -z "$ac_lib"; then
9441 ac_res="none required"
9444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (ac_try="$ac_link"
9449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450 *) ac_try_echo=$ac_try;;
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453 (eval "$ac_link") 2>conftest.er1
9455 grep -v '^ *+' conftest.er1 >conftest.err
9457 cat conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } &&
9460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9461 { (case "(($ac_try" in
9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463 *) ac_try_echo=$ac_try;;
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466 (eval "$ac_try") 2>&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; } &&
9470 { ac_try='test -s conftest$ac_exeext'
9471 { (case "(($ac_try" in
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_try") 2>&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; }; then
9480 ac_cv_search_pthread_rwlock_init=$ac_res
9482 echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9488 rm -f core conftest.err conftest.$ac_objext \
9490 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9494 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9497 ac_cv_search_pthread_rwlock_init=no
9500 LIBS=$ac_func_search_save_LIBS
9502 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9503 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9504 ac_res=$ac_cv_search_pthread_rwlock_init
9505 if test "$ac_res" != no; then
9506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9508 cat >>confdefs.h <<\_ACEOF
9509 #define HAVE_PTHREAD_RWLOCK_INIT 1
9514 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9515 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9516 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 ac_func_search_save_LIBS=$LIBS
9520 cat >conftest.$ac_ext <<_ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9527 /* Override any GCC internal prototype to avoid an error.
9528 Use char because int might match the return type of a GCC
9529 builtin and then its argument prototype would still apply. */
9533 char pthread_getspecific ();
9537 return pthread_getspecific ();
9542 for ac_lib in '' pthread; do
9543 if test -z "$ac_lib"; then
9544 ac_res="none required"
9547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_link") 2>conftest.er1
9558 grep -v '^ *+' conftest.er1 >conftest.err
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9564 { (case "(($ac_try" in
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_try") 2>&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try='test -s conftest$ac_exeext'
9574 { (case "(($ac_try" in
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_try") 2>&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9583 ac_cv_search_pthread_getspecific=$ac_res
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9591 rm -f core conftest.err conftest.$ac_objext \
9593 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9597 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9600 ac_cv_search_pthread_getspecific=no
9603 LIBS=$ac_func_search_save_LIBS
9605 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9606 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9607 ac_res=$ac_cv_search_pthread_getspecific
9608 if test "$ac_res" != no; then
9609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9611 cat >>confdefs.h <<\_ACEOF
9612 #define HAVE_PTHREAD_GETSPECIFIC 1
9619 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9621 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9622 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9623 if test "${ac_cv_lib_z_compress2+set}" = set; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9626 ac_check_lib_save_LIBS=$LIBS
9628 cat >conftest.$ac_ext <<_ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9635 /* Override any GCC internal prototype to avoid an error.
9636 Use char because int might match the return type of a GCC
9637 builtin and then its argument prototype would still apply. */
9645 return compress2 ();
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (ac_try="$ac_link"
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_link") 2>conftest.er1
9659 grep -v '^ *+' conftest.er1 >conftest.err
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9665 { (case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_try") 2>&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; } &&
9674 { ac_try='test -s conftest$ac_exeext'
9675 { (case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_try") 2>&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
9684 ac_cv_lib_z_compress2=yes
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 ac_cv_lib_z_compress2=no
9692 rm -f core conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9694 LIBS=$ac_check_lib_save_LIBS
9696 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9697 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9698 if test $ac_cv_lib_z_compress2 = yes; then
9699 cat >>confdefs.h <<_ACEOF
9710 # Check whether --with-oprofile was given.
9711 if test "${with_oprofile+set}" = set; then
9712 withval=$with_oprofile;
9716 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9720 *) llvm_cv_oppath="${withval}/lib/oprofile"
9721 CPPFLAGS="-I${withval}/include";;
9723 case $llvm_cv_os_type in
9725 if test -n "$llvm_cv_oppath" ; then
9726 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9727 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9728 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9729 if test "${ac_cv_search_bfd_init+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 ac_func_search_save_LIBS=$LIBS
9733 cat >conftest.$ac_ext <<_ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9740 /* Override any GCC internal prototype to avoid an error.
9741 Use char because int might match the return type of a GCC
9742 builtin and then its argument prototype would still apply. */
9755 for ac_lib in '' bfd; do
9756 if test -z "$ac_lib"; then
9757 ac_res="none required"
9760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9762 rm -f conftest.$ac_objext conftest$ac_exeext
9763 if { (ac_try="$ac_link"
9765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766 *) ac_try_echo=$ac_try;;
9768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769 (eval "$ac_link") 2>conftest.er1
9771 grep -v '^ *+' conftest.er1 >conftest.err
9773 cat conftest.err >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } &&
9776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9777 { (case "(($ac_try" in
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_try") 2>&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; } &&
9786 { ac_try='test -s conftest$ac_exeext'
9787 { (case "(($ac_try" in
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_try") 2>&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; }; then
9796 ac_cv_search_bfd_init=$ac_res
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9804 rm -f core conftest.err conftest.$ac_objext \
9806 if test "${ac_cv_search_bfd_init+set}" = set; then
9810 if test "${ac_cv_search_bfd_init+set}" = set; then
9813 ac_cv_search_bfd_init=no
9816 LIBS=$ac_func_search_save_LIBS
9818 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9819 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9820 ac_res=$ac_cv_search_bfd_init
9821 if test "$ac_res" != no; then
9822 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9826 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9827 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9828 if test "${ac_cv_search_op_open_agent+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 ac_func_search_save_LIBS=$LIBS
9832 cat >conftest.$ac_ext <<_ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9839 /* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
9845 char op_open_agent ();
9849 return op_open_agent ();
9854 for ac_lib in '' opagent; do
9855 if test -z "$ac_lib"; then
9856 ac_res="none required"
9859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_link") 2>conftest.er1
9870 grep -v '^ *+' conftest.er1 >conftest.err
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876 { (case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_try") 2>&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; } &&
9885 { ac_try='test -s conftest$ac_exeext'
9886 { (case "(($ac_try" in
9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_try") 2>&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; }; then
9895 ac_cv_search_op_open_agent=$ac_res
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9903 rm -f core conftest.err conftest.$ac_objext \
9905 if test "${ac_cv_search_op_open_agent+set}" = set; then
9909 if test "${ac_cv_search_op_open_agent+set}" = set; then
9912 ac_cv_search_op_open_agent=no
9915 LIBS=$ac_func_search_save_LIBS
9917 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9918 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9919 ac_res=$ac_cv_search_op_open_agent
9920 if test "$ac_res" != no; then
9921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9925 echo "Error! You need to have libopagent around."
9930 if test "${ac_cv_header_opagent_h+set}" = set; then
9931 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9932 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9933 if test "${ac_cv_header_opagent_h+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9937 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9939 # Is the header compilable?
9940 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9941 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9942 cat >conftest.$ac_ext <<_ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9948 $ac_includes_default
9949 #include <opagent.h>
9951 rm -f conftest.$ac_objext
9952 if { (ac_try="$ac_compile"
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_compile") 2>conftest.er1
9960 grep -v '^ *+' conftest.er1 >conftest.err
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest.$ac_objext'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 ac_header_compiler=yes
9987 echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9990 ac_header_compiler=no
9993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9995 echo "${ECHO_T}$ac_header_compiler" >&6; }
9997 # Is the header present?
9998 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
9999 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10000 cat >conftest.$ac_ext <<_ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 #include <opagent.h>
10008 if { (ac_try="$ac_cpp conftest.$ac_ext"
10009 case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10016 grep -v '^ *+' conftest.er1 >conftest.err
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } >/dev/null; then
10021 if test -s conftest.err; then
10022 ac_cpp_err=$ac_c_preproc_warn_flag
10023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10030 if test -z "$ac_cpp_err"; then
10031 ac_header_preproc=yes
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10036 ac_header_preproc=no
10039 rm -f conftest.err conftest.$ac_ext
10040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10041 echo "${ECHO_T}$ac_header_preproc" >&6; }
10043 # So? What about this header?
10044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10046 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10047 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10049 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10050 ac_header_preproc=yes
10053 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10054 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10055 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10056 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10057 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10058 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10059 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10060 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10061 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10062 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10063 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10064 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10066 ## ------------------------------------ ##
10067 ## Report this to http://llvm.org/bugs/ ##
10068 ## ------------------------------------ ##
10070 ) | sed "s/^/$as_me: WARNING: /" >&2
10073 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10074 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10075 if test "${ac_cv_header_opagent_h+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 ac_cv_header_opagent_h=$ac_header_preproc
10080 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10081 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10084 if test $ac_cv_header_opagent_h = yes; then
10088 echo "Error! You need to have opagent.h around."
10096 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10097 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10098 { (exit 1); exit 1; }; } ;;
10109 cat >>confdefs.h <<_ACEOF
10110 #define LLVM_USE_OPROFILE $USE_OPROFILE
10115 # Check whether --with-intel-jitevents was given.
10116 if test "${with_intel_jitevents+set}" = set; then
10117 withval=$with_intel_jitevents;
10119 yes) USE_INTEL_JITEVENTS=1
10121 no) USE_INTEL_JITEVENTS=0
10123 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10124 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10125 { (exit 1); exit 1; }; };;
10128 case $llvm_cv_os_type in
10129 Linux|Win32|Cygwin|MingW) ;;
10130 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10131 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10132 { (exit 1); exit 1; }; };;
10135 case "$llvm_cv_target_arch" in
10137 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10138 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10139 { (exit 1); exit 1; }; };;
10144 USE_INTEL_JITEVENTS=0
10150 cat >>confdefs.h <<_ACEOF
10151 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10155 for ac_prog in xml2-config
10157 # Extract the first word of "$ac_prog", so it can be a program name with args.
10158 set dummy $ac_prog; ac_word=$2
10159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10161 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 if test -n "$XML2CONFIG"; then
10165 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10171 test -z "$as_dir" && as_dir=.
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10174 ac_cv_prog_XML2CONFIG="$ac_prog"
10175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10184 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10185 if test -n "$XML2CONFIG"; then
10186 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10187 echo "${ECHO_T}$XML2CONFIG" >&6; }
10189 { echo "$as_me:$LINENO: result: no" >&5
10190 echo "${ECHO_T}no" >&6; }
10194 test -n "$XML2CONFIG" && break
10198 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10199 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10200 if test "x$XML2CONFIG" = "x"; then
10201 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10202 echo "${ECHO_T}xml2-config not found" >&6; }
10204 LIBXML2_INC=`$XML2CONFIG --cflags`
10205 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10206 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10207 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10208 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10209 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 ac_check_lib_save_LIBS=$LIBS
10213 LIBS="-lxml2 $LIBS"
10214 cat >conftest.$ac_ext <<_ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10221 /* Override any GCC internal prototype to avoid an error.
10222 Use char because int might match the return type of a GCC
10223 builtin and then its argument prototype would still apply. */
10227 char xmlReadFile ();
10231 return xmlReadFile ();
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (ac_try="$ac_link"
10238 case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_link") 2>conftest.er1
10245 grep -v '^ *+' conftest.er1 >conftest.err
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } &&
10250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10251 { (case "(($ac_try" in
10252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253 *) ac_try_echo=$ac_try;;
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_try") 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; } &&
10260 { ac_try='test -s conftest$ac_exeext'
10261 { (case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_try") 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_cv_lib_xml2_xmlReadFile=yes
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ac_cv_lib_xml2_xmlReadFile=no
10278 rm -f core conftest.err conftest.$ac_objext \
10279 conftest$ac_exeext conftest.$ac_ext
10280 LIBS=$ac_check_lib_save_LIBS
10282 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10283 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10284 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10286 cat >>confdefs.h <<\_ACEOF
10287 #define CLANG_HAVE_LIBXML 1
10290 LIBXML2_LIBS="-lxml2"
10303 ac_header_dirent=no
10304 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10305 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10306 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10307 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 cat >conftest.$ac_ext <<_ACEOF
10314 cat confdefs.h >>conftest.$ac_ext
10315 cat >>conftest.$ac_ext <<_ACEOF
10316 /* end confdefs.h. */
10317 #include <sys/types.h>
10329 rm -f conftest.$ac_objext
10330 if { (ac_try="$ac_compile"
10331 case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_compile") 2>conftest.er1
10338 grep -v '^ *+' conftest.er1 >conftest.err
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } &&
10343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10344 { (case "(($ac_try" in
10345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346 *) ac_try_echo=$ac_try;;
10348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10349 (eval "$ac_try") 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; } &&
10353 { ac_try='test -s conftest.$ac_objext'
10354 { (case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_try") 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 eval "$as_ac_Header=yes"
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10368 eval "$as_ac_Header=no"
10371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10373 ac_res=`eval echo '${'$as_ac_Header'}'`
10374 { echo "$as_me:$LINENO: result: $ac_res" >&5
10375 echo "${ECHO_T}$ac_res" >&6; }
10376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10377 cat >>confdefs.h <<_ACEOF
10378 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10381 ac_header_dirent=$ac_hdr; break
10385 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10386 if test $ac_header_dirent = dirent.h; then
10387 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10388 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10389 if test "${ac_cv_search_opendir+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 ac_func_search_save_LIBS=$LIBS
10393 cat >conftest.$ac_ext <<_ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10400 /* Override any GCC internal prototype to avoid an error.
10401 Use char because int might match the return type of a GCC
10402 builtin and then its argument prototype would still apply. */
10415 for ac_lib in '' dir; do
10416 if test -z "$ac_lib"; then
10417 ac_res="none required"
10420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10422 rm -f conftest.$ac_objext conftest$ac_exeext
10423 if { (ac_try="$ac_link"
10424 case "(($ac_try" in
10425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429 (eval "$ac_link") 2>conftest.er1
10431 grep -v '^ *+' conftest.er1 >conftest.err
10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; } &&
10446 { ac_try='test -s conftest$ac_exeext'
10447 { (case "(($ac_try" in
10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449 *) ac_try_echo=$ac_try;;
10451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452 (eval "$ac_try") 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 ac_cv_search_opendir=$ac_res
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10464 rm -f core conftest.err conftest.$ac_objext \
10466 if test "${ac_cv_search_opendir+set}" = set; then
10470 if test "${ac_cv_search_opendir+set}" = set; then
10473 ac_cv_search_opendir=no
10475 rm conftest.$ac_ext
10476 LIBS=$ac_func_search_save_LIBS
10478 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10479 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10480 ac_res=$ac_cv_search_opendir
10481 if test "$ac_res" != no; then
10482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10487 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10488 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10489 if test "${ac_cv_search_opendir+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10492 ac_func_search_save_LIBS=$LIBS
10493 cat >conftest.$ac_ext <<_ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10500 /* Override any GCC internal prototype to avoid an error.
10501 Use char because int might match the return type of a GCC
10502 builtin and then its argument prototype would still apply. */
10515 for ac_lib in '' x; do
10516 if test -z "$ac_lib"; then
10517 ac_res="none required"
10520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10522 rm -f conftest.$ac_objext conftest$ac_exeext
10523 if { (ac_try="$ac_link"
10524 case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_link") 2>conftest.er1
10531 grep -v '^ *+' conftest.er1 >conftest.err
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } &&
10536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10537 { (case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_try") 2>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; } &&
10546 { ac_try='test -s conftest$ac_exeext'
10547 { (case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_try") 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 ac_cv_search_opendir=$ac_res
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10564 rm -f core conftest.err conftest.$ac_objext \
10566 if test "${ac_cv_search_opendir+set}" = set; then
10570 if test "${ac_cv_search_opendir+set}" = set; then
10573 ac_cv_search_opendir=no
10575 rm conftest.$ac_ext
10576 LIBS=$ac_func_search_save_LIBS
10578 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10579 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10580 ac_res=$ac_cv_search_opendir
10581 if test "$ac_res" != no; then
10582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10588 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10589 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10590 if test "${ac_cv_header_mmap_anon+set}" = set; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 ac_cpp='$CPP $CPPFLAGS'
10595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10599 cat >conftest.$ac_ext <<_ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10605 #include <sys/mman.h>
10606 #include <unistd.h>
10611 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10616 rm -f conftest.$ac_objext
10617 if { (ac_try="$ac_compile"
10618 case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_compile") 2>conftest.er1
10625 grep -v '^ *+' conftest.er1 >conftest.err
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } &&
10630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10631 { (case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_try") 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; } &&
10640 { ac_try='test -s conftest.$ac_objext'
10641 { (case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_try") 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 ac_cv_header_mmap_anon=yes
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10655 ac_cv_header_mmap_anon=no
10658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10660 ac_cpp='$CPP $CPPFLAGS'
10661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10667 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10668 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10669 if test "$ac_cv_header_mmap_anon" = yes; then
10671 cat >>confdefs.h <<\_ACEOF
10672 #define HAVE_MMAP_ANONYMOUS 1
10677 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10678 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10679 if test "${ac_cv_header_stat_broken+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 cat >conftest.$ac_ext <<_ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 #include <sys/types.h>
10689 #include <sys/stat.h>
10691 #if defined S_ISBLK && defined S_IFDIR
10692 # if S_ISBLK (S_IFDIR)
10697 #if defined S_ISBLK && defined S_IFCHR
10698 # if S_ISBLK (S_IFCHR)
10703 #if defined S_ISLNK && defined S_IFREG
10704 # if S_ISLNK (S_IFREG)
10709 #if defined S_ISSOCK && defined S_IFREG
10710 # if S_ISSOCK (S_IFREG)
10716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10717 $EGREP "You lose" >/dev/null 2>&1; then
10718 ac_cv_header_stat_broken=yes
10720 ac_cv_header_stat_broken=no
10725 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10726 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10727 if test $ac_cv_header_stat_broken = yes; then
10729 cat >>confdefs.h <<\_ACEOF
10730 #define STAT_MACROS_BROKEN 1
10735 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10736 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10737 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 cat >conftest.$ac_ext <<_ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 #include <sys/types.h>
10747 #include <sys/wait.h>
10748 #ifndef WEXITSTATUS
10749 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10752 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10760 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10765 rm -f conftest.$ac_objext
10766 if { (ac_try="$ac_compile"
10767 case "(($ac_try" in
10768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_compile") 2>conftest.er1
10774 grep -v '^ *+' conftest.er1 >conftest.err
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
10779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10780 { (case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_try") 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; } &&
10789 { ac_try='test -s conftest.$ac_objext'
10790 { (case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_try") 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; }; then
10799 ac_cv_header_sys_wait_h=yes
10801 echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10804 ac_cv_header_sys_wait_h=no
10807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10809 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10810 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10811 if test $ac_cv_header_sys_wait_h = yes; then
10813 cat >>confdefs.h <<\_ACEOF
10814 #define HAVE_SYS_WAIT_H 1
10819 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10820 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10821 if test "${ac_cv_header_time+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 cat >conftest.$ac_ext <<_ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10830 #include <sys/types.h>
10831 #include <sys/time.h>
10837 if ((struct tm *) 0)
10843 rm -f conftest.$ac_objext
10844 if { (ac_try="$ac_compile"
10845 case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850 (eval "$ac_compile") 2>conftest.er1
10852 grep -v '^ *+' conftest.er1 >conftest.err
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10858 { (case "(($ac_try" in
10859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860 *) ac_try_echo=$ac_try;;
10862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10863 (eval "$ac_try") 2>&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; } &&
10867 { ac_try='test -s conftest.$ac_objext'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; }; then
10877 ac_cv_header_time=yes
10879 echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10882 ac_cv_header_time=no
10885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10887 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10888 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10889 if test $ac_cv_header_time = yes; then
10891 cat >>confdefs.h <<\_ACEOF
10892 #define TIME_WITH_SYS_TIME 1
10899 ac_cpp='$CXXCPP $CPPFLAGS'
10900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10905 for ac_header in cxxabi.h
10907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 cat >conftest.$ac_ext <<_ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10919 #include <stddef.h>
10922 #include <$ac_header>
10924 rm -f conftest.$ac_objext
10925 if { (ac_try="$ac_compile"
10926 case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_compile") 2>conftest.er1
10933 grep -v '^ *+' conftest.er1 >conftest.err
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
10938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10939 { (case "(($ac_try" in
10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944 (eval "$ac_try") 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; } &&
10948 { ac_try='test -s conftest.$ac_objext'
10949 { (case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_try") 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958 eval "$as_ac_Header=yes"
10960 echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10963 eval "$as_ac_Header=no"
10966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10968 ac_res=`eval echo '${'$as_ac_Header'}'`
10969 { echo "$as_me:$LINENO: result: $ac_res" >&5
10970 echo "${ECHO_T}$ac_res" >&6; }
10971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10972 cat >>confdefs.h <<_ACEOF
10973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10981 ac_cpp='$CPP $CPPFLAGS'
10982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10992 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
10994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 ac_res=`eval echo '${'$as_ac_Header'}'`
11002 { echo "$as_me:$LINENO: result: $ac_res" >&5
11003 echo "${ECHO_T}$ac_res" >&6; }
11005 # Is the header compilable?
11006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11008 cat >conftest.$ac_ext <<_ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 $ac_includes_default
11015 #include <$ac_header>
11017 rm -f conftest.$ac_objext
11018 if { (ac_try="$ac_compile"
11019 case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_compile") 2>conftest.er1
11026 grep -v '^ *+' conftest.er1 >conftest.err
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } &&
11031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11032 { (case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_try") 2>&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; } &&
11041 { ac_try='test -s conftest.$ac_objext'
11042 { (case "(($ac_try" in
11043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044 *) ac_try_echo=$ac_try;;
11046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047 (eval "$ac_try") 2>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
11051 ac_header_compiler=yes
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11056 ac_header_compiler=no
11059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11061 echo "${ECHO_T}$ac_header_compiler" >&6; }
11063 # Is the header present?
11064 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11066 cat >conftest.$ac_ext <<_ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h. */
11072 #include <$ac_header>
11074 if { (ac_try="$ac_cpp conftest.$ac_ext"
11075 case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11082 grep -v '^ *+' conftest.er1 >conftest.err
11084 cat conftest.err >&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } >/dev/null; then
11087 if test -s conftest.err; then
11088 ac_cpp_err=$ac_c_preproc_warn_flag
11089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11096 if test -z "$ac_cpp_err"; then
11097 ac_header_preproc=yes
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 ac_header_preproc=no
11105 rm -f conftest.err conftest.$ac_ext
11106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11107 echo "${ECHO_T}$ac_header_preproc" >&6; }
11109 # So? What about this header?
11110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11116 ac_header_preproc=yes
11119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11126 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11132 ## ------------------------------------ ##
11133 ## Report this to http://llvm.org/bugs/ ##
11134 ## ------------------------------------ ##
11136 ) | sed "s/^/$as_me: WARNING: /" >&2
11139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 eval "$as_ac_Header=\$ac_header_preproc"
11146 ac_res=`eval echo '${'$as_ac_Header'}'`
11147 { echo "$as_me:$LINENO: result: $ac_res" >&5
11148 echo "${ECHO_T}$ac_res" >&6; }
11151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11152 cat >>confdefs.h <<_ACEOF
11153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11166 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 ac_res=`eval echo '${'$as_ac_Header'}'`
11176 { echo "$as_me:$LINENO: result: $ac_res" >&5
11177 echo "${ECHO_T}$ac_res" >&6; }
11179 # Is the header compilable?
11180 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11182 cat >conftest.$ac_ext <<_ACEOF
11185 cat confdefs.h >>conftest.$ac_ext
11186 cat >>conftest.$ac_ext <<_ACEOF
11187 /* end confdefs.h. */
11188 $ac_includes_default
11189 #include <$ac_header>
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_compile") 2>conftest.er1
11200 grep -v '^ *+' conftest.er1 >conftest.err
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } &&
11205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11206 { (case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_try") 2>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; } &&
11215 { ac_try='test -s conftest.$ac_objext'
11216 { (case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_try") 2>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; }; then
11225 ac_header_compiler=yes
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 ac_header_compiler=no
11233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11235 echo "${ECHO_T}$ac_header_compiler" >&6; }
11237 # Is the header present?
11238 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11240 cat >conftest.$ac_ext <<_ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 #include <$ac_header>
11248 if { (ac_try="$ac_cpp conftest.$ac_ext"
11249 case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11256 grep -v '^ *+' conftest.er1 >conftest.err
11258 cat conftest.err >&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } >/dev/null; then
11261 if test -s conftest.err; then
11262 ac_cpp_err=$ac_c_preproc_warn_flag
11263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11270 if test -z "$ac_cpp_err"; then
11271 ac_header_preproc=yes
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ac_header_preproc=no
11279 rm -f conftest.err conftest.$ac_ext
11280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11281 echo "${ECHO_T}$ac_header_preproc" >&6; }
11283 # So? What about this header?
11284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11290 ac_header_preproc=yes
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11306 ## ------------------------------------ ##
11307 ## Report this to http://llvm.org/bugs/ ##
11308 ## ------------------------------------ ##
11310 ) | sed "s/^/$as_me: WARNING: /" >&2
11313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 eval "$as_ac_Header=\$ac_header_preproc"
11320 ac_res=`eval echo '${'$as_ac_Header'}'`
11321 { echo "$as_me:$LINENO: result: $ac_res" >&5
11322 echo "${ECHO_T}$ac_res" >&6; }
11325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11326 cat >>confdefs.h <<_ACEOF
11327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11335 for ac_header in utime.h
11337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
11344 ac_res=`eval echo '${'$as_ac_Header'}'`
11345 { echo "$as_me:$LINENO: result: $ac_res" >&5
11346 echo "${ECHO_T}$ac_res" >&6; }
11348 # Is the header compilable?
11349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11351 cat >conftest.$ac_ext <<_ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 $ac_includes_default
11358 #include <$ac_header>
11360 rm -f conftest.$ac_objext
11361 if { (ac_try="$ac_compile"
11362 case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_compile") 2>conftest.er1
11369 grep -v '^ *+' conftest.er1 >conftest.err
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } &&
11374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11375 { (case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_try") 2>&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; } &&
11384 { ac_try='test -s conftest.$ac_objext'
11385 { (case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_try") 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 ac_header_compiler=yes
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11399 ac_header_compiler=no
11402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11404 echo "${ECHO_T}$ac_header_compiler" >&6; }
11406 # Is the header present?
11407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11409 cat >conftest.$ac_ext <<_ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h. */
11415 #include <$ac_header>
11417 if { (ac_try="$ac_cpp conftest.$ac_ext"
11418 case "(($ac_try" in
11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11425 grep -v '^ *+' conftest.er1 >conftest.err
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } >/dev/null; then
11430 if test -s conftest.err; then
11431 ac_cpp_err=$ac_c_preproc_warn_flag
11432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11439 if test -z "$ac_cpp_err"; then
11440 ac_header_preproc=yes
11442 echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11445 ac_header_preproc=no
11448 rm -f conftest.err conftest.$ac_ext
11449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11450 echo "${ECHO_T}$ac_header_preproc" >&6; }
11452 # So? What about this header?
11453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11459 ac_header_preproc=yes
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11475 ## ------------------------------------ ##
11476 ## Report this to http://llvm.org/bugs/ ##
11477 ## ------------------------------------ ##
11479 ) | sed "s/^/$as_me: WARNING: /" >&2
11482 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 eval "$as_ac_Header=\$ac_header_preproc"
11489 ac_res=`eval echo '${'$as_ac_Header'}'`
11490 { echo "$as_me:$LINENO: result: $ac_res" >&5
11491 echo "${ECHO_T}$ac_res" >&6; }
11494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11495 cat >>confdefs.h <<_ACEOF
11496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11508 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 ac_res=`eval echo '${'$as_ac_Header'}'`
11518 { echo "$as_me:$LINENO: result: $ac_res" >&5
11519 echo "${ECHO_T}$ac_res" >&6; }
11521 # Is the header compilable?
11522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11524 cat >conftest.$ac_ext <<_ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h. */
11530 $ac_includes_default
11531 #include <$ac_header>
11533 rm -f conftest.$ac_objext
11534 if { (ac_try="$ac_compile"
11535 case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_compile") 2>conftest.er1
11542 grep -v '^ *+' conftest.er1 >conftest.err
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } &&
11547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11548 { (case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_try") 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; } &&
11557 { ac_try='test -s conftest.$ac_objext'
11558 { (case "(($ac_try" in
11559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560 *) ac_try_echo=$ac_try;;
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563 (eval "$ac_try") 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; }; then
11567 ac_header_compiler=yes
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_header_compiler=no
11575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11577 echo "${ECHO_T}$ac_header_compiler" >&6; }
11579 # Is the header present?
11580 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11582 cat >conftest.$ac_ext <<_ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588 #include <$ac_header>
11590 if { (ac_try="$ac_cpp conftest.$ac_ext"
11591 case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11598 grep -v '^ *+' conftest.er1 >conftest.err
11600 cat conftest.err >&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } >/dev/null; then
11603 if test -s conftest.err; then
11604 ac_cpp_err=$ac_c_preproc_warn_flag
11605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11612 if test -z "$ac_cpp_err"; then
11613 ac_header_preproc=yes
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11618 ac_header_preproc=no
11621 rm -f conftest.err conftest.$ac_ext
11622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11623 echo "${ECHO_T}$ac_header_preproc" >&6; }
11625 # So? What about this header?
11626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11632 ac_header_preproc=yes
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11642 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11648 ## ------------------------------------ ##
11649 ## Report this to http://llvm.org/bugs/ ##
11650 ## ------------------------------------ ##
11652 ) | sed "s/^/$as_me: WARNING: /" >&2
11655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 eval "$as_ac_Header=\$ac_header_preproc"
11662 ac_res=`eval echo '${'$as_ac_Header'}'`
11663 { echo "$as_me:$LINENO: result: $ac_res" >&5
11664 echo "${ECHO_T}$ac_res" >&6; }
11667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11668 cat >>confdefs.h <<_ACEOF
11669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11679 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11688 ac_res=`eval echo '${'$as_ac_Header'}'`
11689 { echo "$as_me:$LINENO: result: $ac_res" >&5
11690 echo "${ECHO_T}$ac_res" >&6; }
11692 # Is the header compilable?
11693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 $ac_includes_default
11702 #include <$ac_header>
11704 rm -f conftest.$ac_objext
11705 if { (ac_try="$ac_compile"
11706 case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_compile") 2>conftest.er1
11713 grep -v '^ *+' conftest.er1 >conftest.err
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719 { (case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_try") 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try='test -s conftest.$ac_objext'
11729 { (case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_try") 2>&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 ac_header_compiler=yes
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 ac_header_compiler=no
11746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11748 echo "${ECHO_T}$ac_header_compiler" >&6; }
11750 # Is the header present?
11751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11753 cat >conftest.$ac_ext <<_ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759 #include <$ac_header>
11761 if { (ac_try="$ac_cpp conftest.$ac_ext"
11762 case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11769 grep -v '^ *+' conftest.er1 >conftest.err
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } >/dev/null; then
11774 if test -s conftest.err; then
11775 ac_cpp_err=$ac_c_preproc_warn_flag
11776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11783 if test -z "$ac_cpp_err"; then
11784 ac_header_preproc=yes
11786 echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11789 ac_header_preproc=no
11792 rm -f conftest.err conftest.$ac_ext
11793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11794 echo "${ECHO_T}$ac_header_preproc" >&6; }
11796 # So? What about this header?
11797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11803 ac_header_preproc=yes
11806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11819 ## ------------------------------------ ##
11820 ## Report this to http://llvm.org/bugs/ ##
11821 ## ------------------------------------ ##
11823 ) | sed "s/^/$as_me: WARNING: /" >&2
11826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 eval "$as_ac_Header=\$ac_header_preproc"
11833 ac_res=`eval echo '${'$as_ac_Header'}'`
11834 { echo "$as_me:$LINENO: result: $ac_res" >&5
11835 echo "${ECHO_T}$ac_res" >&6; }
11838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11839 cat >>confdefs.h <<_ACEOF
11840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11848 for ac_header in valgrind/valgrind.h
11850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 ac_res=`eval echo '${'$as_ac_Header'}'`
11858 { echo "$as_me:$LINENO: result: $ac_res" >&5
11859 echo "${ECHO_T}$ac_res" >&6; }
11861 # Is the header compilable?
11862 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11864 cat >conftest.$ac_ext <<_ACEOF
11867 cat confdefs.h >>conftest.$ac_ext
11868 cat >>conftest.$ac_ext <<_ACEOF
11869 /* end confdefs.h. */
11870 $ac_includes_default
11871 #include <$ac_header>
11873 rm -f conftest.$ac_objext
11874 if { (ac_try="$ac_compile"
11875 case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_compile") 2>conftest.er1
11882 grep -v '^ *+' conftest.er1 >conftest.err
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } &&
11887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11888 { (case "(($ac_try" in
11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890 *) ac_try_echo=$ac_try;;
11892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893 (eval "$ac_try") 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; } &&
11897 { ac_try='test -s conftest.$ac_objext'
11898 { (case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_try") 2>&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
11907 ac_header_compiler=yes
11909 echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11912 ac_header_compiler=no
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11917 echo "${ECHO_T}$ac_header_compiler" >&6; }
11919 # Is the header present?
11920 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11922 cat >conftest.$ac_ext <<_ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h. */
11928 #include <$ac_header>
11930 if { (ac_try="$ac_cpp conftest.$ac_ext"
11931 case "(($ac_try" in
11932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11933 *) ac_try_echo=$ac_try;;
11935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11938 grep -v '^ *+' conftest.er1 >conftest.err
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } >/dev/null; then
11943 if test -s conftest.err; then
11944 ac_cpp_err=$ac_c_preproc_warn_flag
11945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11952 if test -z "$ac_cpp_err"; then
11953 ac_header_preproc=yes
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11958 ac_header_preproc=no
11961 rm -f conftest.err conftest.$ac_ext
11962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11963 echo "${ECHO_T}$ac_header_preproc" >&6; }
11965 # So? What about this header?
11966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11972 ac_header_preproc=yes
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11982 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11988 ## ------------------------------------ ##
11989 ## Report this to http://llvm.org/bugs/ ##
11990 ## ------------------------------------ ##
11992 ) | sed "s/^/$as_me: WARNING: /" >&2
11995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 eval "$as_ac_Header=\$ac_header_preproc"
12002 ac_res=`eval echo '${'$as_ac_Header'}'`
12003 { echo "$as_me:$LINENO: result: $ac_res" >&5
12004 echo "${ECHO_T}$ac_res" >&6; }
12007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12008 cat >>confdefs.h <<_ACEOF
12009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12017 for ac_header in fenv.h
12019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 ac_res=`eval echo '${'$as_ac_Header'}'`
12027 { echo "$as_me:$LINENO: result: $ac_res" >&5
12028 echo "${ECHO_T}$ac_res" >&6; }
12030 # Is the header compilable?
12031 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12033 cat >conftest.$ac_ext <<_ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 $ac_includes_default
12040 #include <$ac_header>
12042 rm -f conftest.$ac_objext
12043 if { (ac_try="$ac_compile"
12044 case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_compile") 2>conftest.er1
12051 grep -v '^ *+' conftest.er1 >conftest.err
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12057 { (case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_try") 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; } &&
12066 { ac_try='test -s conftest.$ac_objext'
12067 { (case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_try") 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 ac_header_compiler=yes
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 ac_header_compiler=no
12084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12086 echo "${ECHO_T}$ac_header_compiler" >&6; }
12088 # Is the header present?
12089 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12091 cat >conftest.$ac_ext <<_ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 #include <$ac_header>
12099 if { (ac_try="$ac_cpp conftest.$ac_ext"
12100 case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12107 grep -v '^ *+' conftest.er1 >conftest.err
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } >/dev/null; then
12112 if test -s conftest.err; then
12113 ac_cpp_err=$ac_c_preproc_warn_flag
12114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12121 if test -z "$ac_cpp_err"; then
12122 ac_header_preproc=yes
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12127 ac_header_preproc=no
12130 rm -f conftest.err conftest.$ac_ext
12131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12132 echo "${ECHO_T}$ac_header_preproc" >&6; }
12134 # So? What about this header?
12135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12137 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12141 ac_header_preproc=yes
12144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12148 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12151 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12157 ## ------------------------------------ ##
12158 ## Report this to http://llvm.org/bugs/ ##
12159 ## ------------------------------------ ##
12161 ) | sed "s/^/$as_me: WARNING: /" >&2
12164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 eval "$as_ac_Header=\$ac_header_preproc"
12171 ac_res=`eval echo '${'$as_ac_Header'}'`
12172 { echo "$as_me:$LINENO: result: $ac_res" >&5
12173 echo "${ECHO_T}$ac_res" >&6; }
12176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12177 cat >>confdefs.h <<_ACEOF
12178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12185 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12186 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12187 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12201 #ifndef FE_ALL_EXCEPT
12202 char *p = (char *) FE_ALL_EXCEPT;
12210 rm -f conftest.$ac_objext
12211 if { (ac_try="$ac_compile"
12212 case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_compile") 2>conftest.er1
12219 grep -v '^ *+' conftest.er1 >conftest.err
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } &&
12224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12225 { (case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_try") 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; } &&
12234 { ac_try='test -s conftest.$ac_objext'
12235 { (case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_try") 2>&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; }; then
12244 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12246 echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12249 ac_cv_have_decl_FE_ALL_EXCEPT=no
12252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12255 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12256 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12258 cat >>confdefs.h <<_ACEOF
12259 #define HAVE_DECL_FE_ALL_EXCEPT 1
12264 cat >>confdefs.h <<_ACEOF
12265 #define HAVE_DECL_FE_ALL_EXCEPT 0
12270 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12271 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12272 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 cat >conftest.$ac_ext <<_ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12287 char *p = (char *) FE_INEXACT;
12295 rm -f conftest.$ac_objext
12296 if { (ac_try="$ac_compile"
12297 case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_compile") 2>conftest.er1
12304 grep -v '^ *+' conftest.er1 >conftest.err
12306 cat conftest.err >&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } &&
12309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12310 { (case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315 (eval "$ac_try") 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; } &&
12319 { ac_try='test -s conftest.$ac_objext'
12320 { (case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_try") 2>&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; }; then
12329 ac_cv_have_decl_FE_INEXACT=yes
12331 echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12334 ac_cv_have_decl_FE_INEXACT=no
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12339 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12340 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12341 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12343 cat >>confdefs.h <<_ACEOF
12344 #define HAVE_DECL_FE_INEXACT 1
12349 cat >>confdefs.h <<_ACEOF
12350 #define HAVE_DECL_FE_INEXACT 0
12357 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12359 for ac_header in pthread.h
12361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 ac_res=`eval echo '${'$as_ac_Header'}'`
12369 { echo "$as_me:$LINENO: result: $ac_res" >&5
12370 echo "${ECHO_T}$ac_res" >&6; }
12372 # Is the header compilable?
12373 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12375 cat >conftest.$ac_ext <<_ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381 $ac_includes_default
12382 #include <$ac_header>
12384 rm -f conftest.$ac_objext
12385 if { (ac_try="$ac_compile"
12386 case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_compile") 2>conftest.er1
12393 grep -v '^ *+' conftest.er1 >conftest.err
12395 cat conftest.err >&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } &&
12398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12399 { (case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_try") 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; } &&
12408 { ac_try='test -s conftest.$ac_objext'
12409 { (case "(($ac_try" in
12410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411 *) ac_try_echo=$ac_try;;
12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414 (eval "$ac_try") 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; }; then
12418 ac_header_compiler=yes
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12423 ac_header_compiler=no
12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12428 echo "${ECHO_T}$ac_header_compiler" >&6; }
12430 # Is the header present?
12431 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12433 cat >conftest.$ac_ext <<_ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h. */
12439 #include <$ac_header>
12441 if { (ac_try="$ac_cpp conftest.$ac_ext"
12442 case "(($ac_try" in
12443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12449 grep -v '^ *+' conftest.er1 >conftest.err
12451 cat conftest.err >&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } >/dev/null; then
12454 if test -s conftest.err; then
12455 ac_cpp_err=$ac_c_preproc_warn_flag
12456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12463 if test -z "$ac_cpp_err"; then
12464 ac_header_preproc=yes
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12469 ac_header_preproc=no
12472 rm -f conftest.err conftest.$ac_ext
12473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12474 echo "${ECHO_T}$ac_header_preproc" >&6; }
12476 # So? What about this header?
12477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12483 ac_header_preproc=yes
12486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12499 ## ------------------------------------ ##
12500 ## Report this to http://llvm.org/bugs/ ##
12501 ## ------------------------------------ ##
12503 ) | sed "s/^/$as_me: WARNING: /" >&2
12506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 eval "$as_ac_Header=\$ac_header_preproc"
12513 ac_res=`eval echo '${'$as_ac_Header'}'`
12514 { echo "$as_me:$LINENO: result: $ac_res" >&5
12515 echo "${ECHO_T}$ac_res" >&6; }
12518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12519 cat >>confdefs.h <<_ACEOF
12520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12535 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12537 for ac_header in zlib.h
12539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 ac_res=`eval echo '${'$as_ac_Header'}'`
12547 { echo "$as_me:$LINENO: result: $ac_res" >&5
12548 echo "${ECHO_T}$ac_res" >&6; }
12550 # Is the header compilable?
12551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12553 cat >conftest.$ac_ext <<_ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12559 $ac_includes_default
12560 #include <$ac_header>
12562 rm -f conftest.$ac_objext
12563 if { (ac_try="$ac_compile"
12564 case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_compile") 2>conftest.er1
12571 grep -v '^ *+' conftest.er1 >conftest.err
12573 cat conftest.err >&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } &&
12576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12577 { (case "(($ac_try" in
12578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579 *) ac_try_echo=$ac_try;;
12581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582 (eval "$ac_try") 2>&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; } &&
12586 { ac_try='test -s conftest.$ac_objext'
12587 { (case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592 (eval "$ac_try") 2>&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; }; then
12596 ac_header_compiler=yes
12598 echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12601 ac_header_compiler=no
12604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12606 echo "${ECHO_T}$ac_header_compiler" >&6; }
12608 # Is the header present?
12609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12611 cat >conftest.$ac_ext <<_ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617 #include <$ac_header>
12619 if { (ac_try="$ac_cpp conftest.$ac_ext"
12620 case "(($ac_try" in
12621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622 *) ac_try_echo=$ac_try;;
12624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12627 grep -v '^ *+' conftest.er1 >conftest.err
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } >/dev/null; then
12632 if test -s conftest.err; then
12633 ac_cpp_err=$ac_c_preproc_warn_flag
12634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12641 if test -z "$ac_cpp_err"; then
12642 ac_header_preproc=yes
12644 echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12647 ac_header_preproc=no
12650 rm -f conftest.err conftest.$ac_ext
12651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12652 echo "${ECHO_T}$ac_header_preproc" >&6; }
12654 # So? What about this header?
12655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12661 ac_header_preproc=yes
12664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12677 ## ------------------------------------ ##
12678 ## Report this to http://llvm.org/bugs/ ##
12679 ## ------------------------------------ ##
12681 ) | sed "s/^/$as_me: WARNING: /" >&2
12684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 eval "$as_ac_Header=\$ac_header_preproc"
12691 ac_res=`eval echo '${'$as_ac_Header'}'`
12692 { echo "$as_me:$LINENO: result: $ac_res" >&5
12693 echo "${ECHO_T}$ac_res" >&6; }
12696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12697 cat >>confdefs.h <<_ACEOF
12698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12714 if test "$llvm_cv_enable_libffi" = "yes" ; then
12717 for ac_header in ffi.h ffi/ffi.h
12719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 ac_res=`eval echo '${'$as_ac_Header'}'`
12727 { echo "$as_me:$LINENO: result: $ac_res" >&5
12728 echo "${ECHO_T}$ac_res" >&6; }
12730 # Is the header compilable?
12731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12733 cat >conftest.$ac_ext <<_ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12739 $ac_includes_default
12740 #include <$ac_header>
12742 rm -f conftest.$ac_objext
12743 if { (ac_try="$ac_compile"
12744 case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_compile") 2>conftest.er1
12751 grep -v '^ *+' conftest.er1 >conftest.err
12753 cat conftest.err >&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12757 { (case "(($ac_try" in
12758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759 *) ac_try_echo=$ac_try;;
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762 (eval "$ac_try") 2>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; } &&
12766 { ac_try='test -s conftest.$ac_objext'
12767 { (case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_try") 2>&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
12776 ac_header_compiler=yes
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12781 ac_header_compiler=no
12784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12786 echo "${ECHO_T}$ac_header_compiler" >&6; }
12788 # Is the header present?
12789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12791 cat >conftest.$ac_ext <<_ACEOF
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h. */
12797 #include <$ac_header>
12799 if { (ac_try="$ac_cpp conftest.$ac_ext"
12800 case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12807 grep -v '^ *+' conftest.er1 >conftest.err
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } >/dev/null; then
12812 if test -s conftest.err; then
12813 ac_cpp_err=$ac_c_preproc_warn_flag
12814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12821 if test -z "$ac_cpp_err"; then
12822 ac_header_preproc=yes
12824 echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12827 ac_header_preproc=no
12830 rm -f conftest.err conftest.$ac_ext
12831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12832 echo "${ECHO_T}$ac_header_preproc" >&6; }
12834 # So? What about this header?
12835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12841 ac_header_preproc=yes
12844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12857 ## ------------------------------------ ##
12858 ## Report this to http://llvm.org/bugs/ ##
12859 ## ------------------------------------ ##
12861 ) | sed "s/^/$as_me: WARNING: /" >&2
12864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 eval "$as_ac_Header=\$ac_header_preproc"
12871 ac_res=`eval echo '${'$as_ac_Header'}'`
12872 { echo "$as_me:$LINENO: result: $ac_res" >&5
12873 echo "${ECHO_T}$ac_res" >&6; }
12876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12877 cat >>confdefs.h <<_ACEOF
12878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12888 for ac_header in CrashReporterClient.h
12890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 ac_res=`eval echo '${'$as_ac_Header'}'`
12898 { echo "$as_me:$LINENO: result: $ac_res" >&5
12899 echo "${ECHO_T}$ac_res" >&6; }
12901 # Is the header compilable?
12902 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12904 cat >conftest.$ac_ext <<_ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12910 $ac_includes_default
12911 #include <$ac_header>
12913 rm -f conftest.$ac_objext
12914 if { (ac_try="$ac_compile"
12915 case "(($ac_try" in
12916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920 (eval "$ac_compile") 2>conftest.er1
12922 grep -v '^ *+' conftest.er1 >conftest.err
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } &&
12927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12928 { (case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_try") 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; } &&
12937 { ac_try='test -s conftest.$ac_objext'
12938 { (case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943 (eval "$ac_try") 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12947 ac_header_compiler=yes
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12952 ac_header_compiler=no
12955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12957 echo "${ECHO_T}$ac_header_compiler" >&6; }
12959 # Is the header present?
12960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12962 cat >conftest.$ac_ext <<_ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12968 #include <$ac_header>
12970 if { (ac_try="$ac_cpp conftest.$ac_ext"
12971 case "(($ac_try" in
12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973 *) ac_try_echo=$ac_try;;
12975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12978 grep -v '^ *+' conftest.er1 >conftest.err
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } >/dev/null; then
12983 if test -s conftest.err; then
12984 ac_cpp_err=$ac_c_preproc_warn_flag
12985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12992 if test -z "$ac_cpp_err"; then
12993 ac_header_preproc=yes
12995 echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12998 ac_header_preproc=no
13001 rm -f conftest.err conftest.$ac_ext
13002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13003 echo "${ECHO_T}$ac_header_preproc" >&6; }
13005 # So? What about this header?
13006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13012 ac_header_preproc=yes
13015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13028 ## ------------------------------------ ##
13029 ## Report this to http://llvm.org/bugs/ ##
13030 ## ------------------------------------ ##
13032 ) | sed "s/^/$as_me: WARNING: /" >&2
13035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 eval "$as_ac_Header=\$ac_header_preproc"
13042 ac_res=`eval echo '${'$as_ac_Header'}'`
13043 { echo "$as_me:$LINENO: result: $ac_res" >&5
13044 echo "${ECHO_T}$ac_res" >&6; }
13047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13048 cat >>confdefs.h <<_ACEOF
13049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13057 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13058 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13059 cat >conftest.$ac_ext <<_ACEOF
13063 cat confdefs.h >>conftest.$ac_ext
13064 cat >>conftest.$ac_ext <<_ACEOF
13065 /* end confdefs.h. */
13067 extern const char *__crashreporter_info__;
13069 __crashreporter_info__ = "test";
13075 rm -f conftest.$ac_objext conftest$ac_exeext
13076 if { (ac_try="$ac_link"
13077 case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_link") 2>conftest.er1
13084 grep -v '^ *+' conftest.er1 >conftest.err
13086 cat conftest.err >&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } &&
13089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13090 { (case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_try") 2>&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; } &&
13099 { ac_try='test -s conftest$ac_exeext'
13100 { (case "(($ac_try" in
13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102 *) ac_try_echo=$ac_try;;
13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105 (eval "$ac_try") 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13110 { echo "$as_me:$LINENO: result: yes" >&5
13111 echo "${ECHO_T}yes" >&6; }
13113 cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_CRASHREPORTER_INFO 1
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13123 { echo "$as_me:$LINENO: result: no" >&5
13124 echo "${ECHO_T}no" >&6; }
13126 cat >>confdefs.h <<\_ACEOF
13127 #define HAVE_CRASHREPORTER_INFO 0
13133 rm -f core conftest.err conftest.$ac_objext \
13134 conftest$ac_exeext conftest.$ac_ext
13138 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13139 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13140 if test "${ac_cv_huge_val_sanity+set}" = set; then
13141 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 ac_cpp='$CXXCPP $CPPFLAGS'
13146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13150 ac_save_CXXFLAGS=$CXXFLAGS
13151 CXXFLAGS="$CXXFLAGS -pedantic"
13152 if test "$cross_compiling" = yes; then
13153 ac_cv_huge_val_sanity=yes
13155 cat >conftest.$ac_ext <<_ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13165 double x = HUGE_VAL; return x != x;
13170 rm -f conftest$ac_exeext
13171 if { (ac_try="$ac_link"
13172 case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_link") 2>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13181 { (case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_try") 2>&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; }; then
13190 ac_cv_huge_val_sanity=yes
13192 echo "$as_me: program exited with status $ac_status" >&5
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13196 ( exit $ac_status )
13197 ac_cv_huge_val_sanity=no
13199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13203 CXXFLAGS=$ac_save_CXXFLAGS
13205 ac_cpp='$CPP $CPPFLAGS'
13206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13212 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13213 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13214 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13217 { echo "$as_me:$LINENO: checking for pid_t" >&5
13218 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13219 if test "${ac_cv_type_pid_t+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 cat >conftest.$ac_ext <<_ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13228 $ac_includes_default
13229 typedef pid_t ac__type_new_;
13233 if ((ac__type_new_ *) 0)
13235 if (sizeof (ac__type_new_))
13241 rm -f conftest.$ac_objext
13242 if { (ac_try="$ac_compile"
13243 case "(($ac_try" in
13244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245 *) ac_try_echo=$ac_try;;
13247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248 (eval "$ac_compile") 2>conftest.er1
13250 grep -v '^ *+' conftest.er1 >conftest.err
13252 cat conftest.err >&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } &&
13255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13256 { (case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_try") 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; } &&
13265 { ac_try='test -s conftest.$ac_objext'
13266 { (case "(($ac_try" in
13267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268 *) ac_try_echo=$ac_try;;
13270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271 (eval "$ac_try") 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 ac_cv_type_pid_t=yes
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 ac_cv_type_pid_t=no
13283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13285 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13286 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13287 if test $ac_cv_type_pid_t = yes; then
13291 cat >>confdefs.h <<_ACEOF
13297 { echo "$as_me:$LINENO: checking for size_t" >&5
13298 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13299 if test "${ac_cv_type_size_t+set}" = set; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13302 cat >conftest.$ac_ext <<_ACEOF
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h. */
13308 $ac_includes_default
13309 typedef size_t ac__type_new_;
13313 if ((ac__type_new_ *) 0)
13315 if (sizeof (ac__type_new_))
13321 rm -f conftest.$ac_objext
13322 if { (ac_try="$ac_compile"
13323 case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_compile") 2>conftest.er1
13330 grep -v '^ *+' conftest.er1 >conftest.err
13332 cat conftest.err >&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } &&
13335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13336 { (case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341 (eval "$ac_try") 2>&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; } &&
13345 { ac_try='test -s conftest.$ac_objext'
13346 { (case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_try") 2>&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; }; then
13355 ac_cv_type_size_t=yes
13357 echo "$as_me: failed program was:" >&5
13358 sed 's/^/| /' conftest.$ac_ext >&5
13360 ac_cv_type_size_t=no
13363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13365 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13366 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13367 if test $ac_cv_type_size_t = yes; then
13371 cat >>confdefs.h <<_ACEOF
13372 #define size_t unsigned int
13378 cat >>confdefs.h <<_ACEOF
13379 #define RETSIGTYPE void
13382 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13383 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13384 if test "${ac_cv_struct_tm+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 cat >conftest.$ac_ext <<_ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h. */
13393 #include <sys/types.h>
13399 struct tm *tp; tp->tm_sec;
13404 rm -f conftest.$ac_objext
13405 if { (ac_try="$ac_compile"
13406 case "(($ac_try" in
13407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 *) ac_try_echo=$ac_try;;
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411 (eval "$ac_compile") 2>conftest.er1
13413 grep -v '^ *+' conftest.er1 >conftest.err
13415 cat conftest.err >&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
13418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13419 { (case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_try") 2>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest.$ac_objext'
13429 { (case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_try") 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 ac_cv_struct_tm=time.h
13440 echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13443 ac_cv_struct_tm=sys/time.h
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13449 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13450 if test $ac_cv_struct_tm = sys/time.h; then
13452 cat >>confdefs.h <<\_ACEOF
13453 #define TM_IN_SYS_TIME 1
13458 { echo "$as_me:$LINENO: checking for int64_t" >&5
13459 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13460 if test "${ac_cv_type_int64_t+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 cat >conftest.$ac_ext <<_ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13469 $ac_includes_default
13470 typedef int64_t ac__type_new_;
13474 if ((ac__type_new_ *) 0)
13476 if (sizeof (ac__type_new_))
13482 rm -f conftest.$ac_objext
13483 if { (ac_try="$ac_compile"
13484 case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_compile") 2>conftest.er1
13491 grep -v '^ *+' conftest.er1 >conftest.err
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13497 { (case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_try") 2>&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; } &&
13506 { ac_try='test -s conftest.$ac_objext'
13507 { (case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_try") 2>&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13516 ac_cv_type_int64_t=yes
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13521 ac_cv_type_int64_t=no
13524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13527 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13528 if test $ac_cv_type_int64_t = yes; then
13530 cat >>confdefs.h <<_ACEOF
13531 #define HAVE_INT64_T 1
13536 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13537 echo "$as_me: error: Type int64_t required but not found" >&2;}
13538 { (exit 1); exit 1; }; }
13541 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13542 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13543 if test "${ac_cv_type_uint64_t+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 cat >conftest.$ac_ext <<_ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13552 $ac_includes_default
13553 typedef uint64_t ac__type_new_;
13557 if ((ac__type_new_ *) 0)
13559 if (sizeof (ac__type_new_))
13565 rm -f conftest.$ac_objext
13566 if { (ac_try="$ac_compile"
13567 case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_compile") 2>conftest.er1
13574 grep -v '^ *+' conftest.er1 >conftest.err
13576 cat conftest.err >&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13580 { (case "(($ac_try" in
13581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582 *) ac_try_echo=$ac_try;;
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585 (eval "$ac_try") 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; } &&
13589 { ac_try='test -s conftest.$ac_objext'
13590 { (case "(($ac_try" in
13591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592 *) ac_try_echo=$ac_try;;
13594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13595 (eval "$ac_try") 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; }; then
13599 ac_cv_type_uint64_t=yes
13601 echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.$ac_ext >&5
13604 ac_cv_type_uint64_t=no
13607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13609 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13610 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13611 if test $ac_cv_type_uint64_t = yes; then
13613 cat >>confdefs.h <<_ACEOF
13614 #define HAVE_UINT64_T 1
13619 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13620 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13621 if test "${ac_cv_type_u_int64_t+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 cat >conftest.$ac_ext <<_ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13630 $ac_includes_default
13631 typedef u_int64_t ac__type_new_;
13635 if ((ac__type_new_ *) 0)
13637 if (sizeof (ac__type_new_))
13643 rm -f conftest.$ac_objext
13644 if { (ac_try="$ac_compile"
13645 case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_compile") 2>conftest.er1
13652 grep -v '^ *+' conftest.er1 >conftest.err
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } &&
13657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13658 { (case "(($ac_try" in
13659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660 *) ac_try_echo=$ac_try;;
13662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663 (eval "$ac_try") 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; } &&
13667 { ac_try='test -s conftest.$ac_objext'
13668 { (case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_try") 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13677 ac_cv_type_u_int64_t=yes
13679 echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13682 ac_cv_type_u_int64_t=no
13685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13687 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13688 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13689 if test $ac_cv_type_u_int64_t = yes; then
13691 cat >>confdefs.h <<_ACEOF
13692 #define HAVE_U_INT64_T 1
13697 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13698 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13699 { (exit 1); exit 1; }; }
13713 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13721 cat >conftest.$ac_ext <<_ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13729 #define $ac_func innocuous_$ac_func
13731 /* System header to define __stub macros and hopefully few prototypes,
13732 which can conflict with char $ac_func (); below.
13733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13734 <limits.h> exists even on freestanding compilers. */
13737 # include <limits.h>
13739 # include <assert.h>
13744 /* Override any GCC internal prototype to avoid an error.
13745 Use char because int might match the return type of a GCC
13746 builtin and then its argument prototype would still apply. */
13751 /* The GNU C library defines this for functions which it implements
13752 to always fail with ENOSYS. Some functions are actually named
13753 something starting with __ and the normal name is an alias. */
13754 #if defined __stub_$ac_func || defined __stub___$ac_func
13761 return $ac_func ();
13766 rm -f conftest.$ac_objext conftest$ac_exeext
13767 if { (ac_try="$ac_link"
13768 case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_link") 2>conftest.er1
13775 grep -v '^ *+' conftest.er1 >conftest.err
13777 cat conftest.err >&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); } &&
13780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13781 { (case "(($ac_try" in
13782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783 *) ac_try_echo=$ac_try;;
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786 (eval "$ac_try") 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try='test -s conftest$ac_exeext'
13791 { (case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796 (eval "$ac_try") 2>&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; }; then
13800 eval "$as_ac_var=yes"
13802 echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13805 eval "$as_ac_var=no"
13808 rm -f core conftest.err conftest.$ac_objext \
13809 conftest$ac_exeext conftest.$ac_ext
13811 ac_res=`eval echo '${'$as_ac_var'}'`
13812 { echo "$as_me:$LINENO: result: $ac_res" >&5
13813 echo "${ECHO_T}$ac_res" >&6; }
13814 if test `eval echo '${'$as_ac_var'}'` = yes; then
13815 cat >>confdefs.h <<_ACEOF
13816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13826 for ac_func in powf fmodf strtof round
13828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13832 echo $ECHO_N "(cached) $ECHO_C" >&6
13834 cat >conftest.$ac_ext <<_ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13842 #define $ac_func innocuous_$ac_func
13844 /* System header to define __stub macros and hopefully few prototypes,
13845 which can conflict with char $ac_func (); below.
13846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13847 <limits.h> exists even on freestanding compilers. */
13850 # include <limits.h>
13852 # include <assert.h>
13857 /* Override any GCC internal prototype to avoid an error.
13858 Use char because int might match the return type of a GCC
13859 builtin and then its argument prototype would still apply. */
13864 /* The GNU C library defines this for functions which it implements
13865 to always fail with ENOSYS. Some functions are actually named
13866 something starting with __ and the normal name is an alias. */
13867 #if defined __stub_$ac_func || defined __stub___$ac_func
13874 return $ac_func ();
13879 rm -f conftest.$ac_objext conftest$ac_exeext
13880 if { (ac_try="$ac_link"
13881 case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_link") 2>conftest.er1
13888 grep -v '^ *+' conftest.er1 >conftest.err
13890 cat conftest.err >&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } &&
13893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13894 { (case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval "$ac_try") 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; } &&
13903 { ac_try='test -s conftest$ac_exeext'
13904 { (case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906 *) ac_try_echo=$ac_try;;
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_try") 2>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913 eval "$as_ac_var=yes"
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13918 eval "$as_ac_var=no"
13921 rm -f core conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13924 ac_res=`eval echo '${'$as_ac_var'}'`
13925 { echo "$as_me:$LINENO: result: $ac_res" >&5
13926 echo "${ECHO_T}$ac_res" >&6; }
13927 if test `eval echo '${'$as_ac_var'}'` = yes; then
13928 cat >>confdefs.h <<_ACEOF
13929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13940 for ac_func in log log2 log10 exp exp2
13942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 cat >conftest.$ac_ext <<_ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13956 #define $ac_func innocuous_$ac_func
13958 /* System header to define __stub macros and hopefully few prototypes,
13959 which can conflict with char $ac_func (); below.
13960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13961 <limits.h> exists even on freestanding compilers. */
13964 # include <limits.h>
13966 # include <assert.h>
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13978 /* The GNU C library defines this for functions which it implements
13979 to always fail with ENOSYS. Some functions are actually named
13980 something starting with __ and the normal name is an alias. */
13981 #if defined __stub_$ac_func || defined __stub___$ac_func
13988 return $ac_func ();
13993 rm -f conftest.$ac_objext conftest$ac_exeext
13994 if { (ac_try="$ac_link"
13995 case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_link") 2>conftest.er1
14002 grep -v '^ *+' conftest.er1 >conftest.err
14004 cat conftest.err >&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
14007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14008 { (case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013 (eval "$ac_try") 2>&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; } &&
14017 { ac_try='test -s conftest$ac_exeext'
14018 { (case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023 (eval "$ac_try") 2>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
14027 eval "$as_ac_var=yes"
14029 echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14032 eval "$as_ac_var=no"
14035 rm -f core conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
14038 ac_res=`eval echo '${'$as_ac_var'}'`
14039 { echo "$as_me:$LINENO: result: $ac_res" >&5
14040 echo "${ECHO_T}$ac_res" >&6; }
14041 if test `eval echo '${'$as_ac_var'}'` = yes; then
14042 cat >>confdefs.h <<_ACEOF
14043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14054 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 cat >conftest.$ac_ext <<_ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14070 #define $ac_func innocuous_$ac_func
14072 /* System header to define __stub macros and hopefully few prototypes,
14073 which can conflict with char $ac_func (); below.
14074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14075 <limits.h> exists even on freestanding compilers. */
14078 # include <limits.h>
14080 # include <assert.h>
14085 /* Override any GCC internal prototype to avoid an error.
14086 Use char because int might match the return type of a GCC
14087 builtin and then its argument prototype would still apply. */
14092 /* The GNU C library defines this for functions which it implements
14093 to always fail with ENOSYS. Some functions are actually named
14094 something starting with __ and the normal name is an alias. */
14095 #if defined __stub_$ac_func || defined __stub___$ac_func
14102 return $ac_func ();
14107 rm -f conftest.$ac_objext conftest$ac_exeext
14108 if { (ac_try="$ac_link"
14109 case "(($ac_try" in
14110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111 *) ac_try_echo=$ac_try;;
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114 (eval "$ac_link") 2>conftest.er1
14116 grep -v '^ *+' conftest.er1 >conftest.err
14118 cat conftest.err >&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); } &&
14121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14122 { (case "(($ac_try" in
14123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124 *) ac_try_echo=$ac_try;;
14126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127 (eval "$ac_try") 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; } &&
14131 { ac_try='test -s conftest$ac_exeext'
14132 { (case "(($ac_try" in
14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134 *) ac_try_echo=$ac_try;;
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137 (eval "$ac_try") 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 eval "$as_ac_var=yes"
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14146 eval "$as_ac_var=no"
14149 rm -f core conftest.err conftest.$ac_objext \
14150 conftest$ac_exeext conftest.$ac_ext
14152 ac_res=`eval echo '${'$as_ac_var'}'`
14153 { echo "$as_me:$LINENO: result: $ac_res" >&5
14154 echo "${ECHO_T}$ac_res" >&6; }
14155 if test `eval echo '${'$as_ac_var'}'` = yes; then
14156 cat >>confdefs.h <<_ACEOF
14157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14166 for ac_func in isatty mkdtemp mkstemp
14168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 cat >conftest.$ac_ext <<_ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14182 #define $ac_func innocuous_$ac_func
14184 /* System header to define __stub macros and hopefully few prototypes,
14185 which can conflict with char $ac_func (); below.
14186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14187 <limits.h> exists even on freestanding compilers. */
14190 # include <limits.h>
14192 # include <assert.h>
14197 /* Override any GCC internal prototype to avoid an error.
14198 Use char because int might match the return type of a GCC
14199 builtin and then its argument prototype would still apply. */
14204 /* The GNU C library defines this for functions which it implements
14205 to always fail with ENOSYS. Some functions are actually named
14206 something starting with __ and the normal name is an alias. */
14207 #if defined __stub_$ac_func || defined __stub___$ac_func
14214 return $ac_func ();
14219 rm -f conftest.$ac_objext conftest$ac_exeext
14220 if { (ac_try="$ac_link"
14221 case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_link") 2>conftest.er1
14228 grep -v '^ *+' conftest.er1 >conftest.err
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } &&
14233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14234 { (case "(($ac_try" in
14235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14236 *) ac_try_echo=$ac_try;;
14238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14239 (eval "$ac_try") 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; } &&
14243 { ac_try='test -s conftest$ac_exeext'
14244 { (case "(($ac_try" in
14245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14246 *) ac_try_echo=$ac_try;;
14248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14249 (eval "$ac_try") 2>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }; then
14253 eval "$as_ac_var=yes"
14255 echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.$ac_ext >&5
14258 eval "$as_ac_var=no"
14261 rm -f core conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
14264 ac_res=`eval echo '${'$as_ac_var'}'`
14265 { echo "$as_me:$LINENO: result: $ac_res" >&5
14266 echo "${ECHO_T}$ac_res" >&6; }
14267 if test `eval echo '${'$as_ac_var'}'` = yes; then
14268 cat >>confdefs.h <<_ACEOF
14269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14281 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 cat >conftest.$ac_ext <<_ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14297 #define $ac_func innocuous_$ac_func
14299 /* System header to define __stub macros and hopefully few prototypes,
14300 which can conflict with char $ac_func (); below.
14301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14302 <limits.h> exists even on freestanding compilers. */
14305 # include <limits.h>
14307 # include <assert.h>
14312 /* Override any GCC internal prototype to avoid an error.
14313 Use char because int might match the return type of a GCC
14314 builtin and then its argument prototype would still apply. */
14319 /* The GNU C library defines this for functions which it implements
14320 to always fail with ENOSYS. Some functions are actually named
14321 something starting with __ and the normal name is an alias. */
14322 #if defined __stub_$ac_func || defined __stub___$ac_func
14329 return $ac_func ();
14334 rm -f conftest.$ac_objext conftest$ac_exeext
14335 if { (ac_try="$ac_link"
14336 case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_link") 2>conftest.er1
14343 grep -v '^ *+' conftest.er1 >conftest.err
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14349 { (case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354 (eval "$ac_try") 2>&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; } &&
14358 { ac_try='test -s conftest$ac_exeext'
14359 { (case "(($ac_try" in
14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361 *) ac_try_echo=$ac_try;;
14363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364 (eval "$ac_try") 2>&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 eval "$as_ac_var=yes"
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 eval "$as_ac_var=no"
14376 rm -f core conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
14379 ac_res=`eval echo '${'$as_ac_var'}'`
14380 { echo "$as_me:$LINENO: result: $ac_res" >&5
14381 echo "${ECHO_T}$ac_res" >&6; }
14382 if test `eval echo '${'$as_ac_var'}'` = yes; then
14383 cat >>confdefs.h <<_ACEOF
14384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14393 for ac_func in strerror strerror_r setenv
14395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 cat >conftest.$ac_ext <<_ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h. */
14407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14409 #define $ac_func innocuous_$ac_func
14411 /* System header to define __stub macros and hopefully few prototypes,
14412 which can conflict with char $ac_func (); below.
14413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14414 <limits.h> exists even on freestanding compilers. */
14417 # include <limits.h>
14419 # include <assert.h>
14424 /* Override any GCC internal prototype to avoid an error.
14425 Use char because int might match the return type of a GCC
14426 builtin and then its argument prototype would still apply. */
14431 /* The GNU C library defines this for functions which it implements
14432 to always fail with ENOSYS. Some functions are actually named
14433 something starting with __ and the normal name is an alias. */
14434 #if defined __stub_$ac_func || defined __stub___$ac_func
14441 return $ac_func ();
14446 rm -f conftest.$ac_objext conftest$ac_exeext
14447 if { (ac_try="$ac_link"
14448 case "(($ac_try" in
14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450 *) ac_try_echo=$ac_try;;
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453 (eval "$ac_link") 2>conftest.er1
14455 grep -v '^ *+' conftest.er1 >conftest.err
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14461 { (case "(($ac_try" in
14462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463 *) ac_try_echo=$ac_try;;
14465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14466 (eval "$ac_try") 2>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; } &&
14470 { ac_try='test -s conftest$ac_exeext'
14471 { (case "(($ac_try" in
14472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473 *) ac_try_echo=$ac_try;;
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476 (eval "$ac_try") 2>&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; }; then
14480 eval "$as_ac_var=yes"
14482 echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.$ac_ext >&5
14485 eval "$as_ac_var=no"
14488 rm -f core conftest.err conftest.$ac_objext \
14489 conftest$ac_exeext conftest.$ac_ext
14491 ac_res=`eval echo '${'$as_ac_var'}'`
14492 { echo "$as_me:$LINENO: result: $ac_res" >&5
14493 echo "${ECHO_T}$ac_res" >&6; }
14494 if test `eval echo '${'$as_ac_var'}'` = yes; then
14495 cat >>confdefs.h <<_ACEOF
14496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14506 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14522 #define $ac_func innocuous_$ac_func
14524 /* System header to define __stub macros and hopefully few prototypes,
14525 which can conflict with char $ac_func (); below.
14526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14527 <limits.h> exists even on freestanding compilers. */
14530 # include <limits.h>
14532 # include <assert.h>
14537 /* Override any GCC internal prototype to avoid an error.
14538 Use char because int might match the return type of a GCC
14539 builtin and then its argument prototype would still apply. */
14544 /* The GNU C library defines this for functions which it implements
14545 to always fail with ENOSYS. Some functions are actually named
14546 something starting with __ and the normal name is an alias. */
14547 #if defined __stub_$ac_func || defined __stub___$ac_func
14554 return $ac_func ();
14559 rm -f conftest.$ac_objext conftest$ac_exeext
14560 if { (ac_try="$ac_link"
14561 case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_link") 2>conftest.er1
14568 grep -v '^ *+' conftest.er1 >conftest.err
14570 cat conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } &&
14573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14574 { (case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_try") 2>&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; } &&
14583 { ac_try='test -s conftest$ac_exeext'
14584 { (case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_try") 2>&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; }; then
14593 eval "$as_ac_var=yes"
14595 echo "$as_me: failed program was:" >&5
14596 sed 's/^/| /' conftest.$ac_ext >&5
14598 eval "$as_ac_var=no"
14601 rm -f core conftest.err conftest.$ac_objext \
14602 conftest$ac_exeext conftest.$ac_ext
14604 ac_res=`eval echo '${'$as_ac_var'}'`
14605 { echo "$as_me:$LINENO: result: $ac_res" >&5
14606 echo "${ECHO_T}$ac_res" >&6; }
14607 if test `eval echo '${'$as_ac_var'}'` = yes; then
14608 cat >>confdefs.h <<_ACEOF
14609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14620 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14626 echo $ECHO_N "(cached) $ECHO_C" >&6
14628 cat >conftest.$ac_ext <<_ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h. */
14634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14636 #define $ac_func innocuous_$ac_func
14638 /* System header to define __stub macros and hopefully few prototypes,
14639 which can conflict with char $ac_func (); below.
14640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14641 <limits.h> exists even on freestanding compilers. */
14644 # include <limits.h>
14646 # include <assert.h>
14651 /* Override any GCC internal prototype to avoid an error.
14652 Use char because int might match the return type of a GCC
14653 builtin and then its argument prototype would still apply. */
14658 /* The GNU C library defines this for functions which it implements
14659 to always fail with ENOSYS. Some functions are actually named
14660 something starting with __ and the normal name is an alias. */
14661 #if defined __stub_$ac_func || defined __stub___$ac_func
14668 return $ac_func ();
14673 rm -f conftest.$ac_objext conftest$ac_exeext
14674 if { (ac_try="$ac_link"
14675 case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680 (eval "$ac_link") 2>conftest.er1
14682 grep -v '^ *+' conftest.er1 >conftest.err
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } &&
14687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14688 { (case "(($ac_try" in
14689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14690 *) ac_try_echo=$ac_try;;
14692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693 (eval "$ac_try") 2>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; } &&
14697 { ac_try='test -s conftest$ac_exeext'
14698 { (case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_try") 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; }; then
14707 eval "$as_ac_var=yes"
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14712 eval "$as_ac_var=no"
14715 rm -f core conftest.err conftest.$ac_objext \
14716 conftest$ac_exeext conftest.$ac_ext
14718 ac_res=`eval echo '${'$as_ac_var'}'`
14719 { echo "$as_me:$LINENO: result: $ac_res" >&5
14720 echo "${ECHO_T}$ac_res" >&6; }
14721 if test `eval echo '${'$as_ac_var'}'` = yes; then
14722 cat >>confdefs.h <<_ACEOF
14723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14731 for ac_func in futimes futimens
14733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 cat >conftest.$ac_ext <<_ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14747 #define $ac_func innocuous_$ac_func
14749 /* System header to define __stub macros and hopefully few prototypes,
14750 which can conflict with char $ac_func (); below.
14751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14752 <limits.h> exists even on freestanding compilers. */
14755 # include <limits.h>
14757 # include <assert.h>
14762 /* Override any GCC internal prototype to avoid an error.
14763 Use char because int might match the return type of a GCC
14764 builtin and then its argument prototype would still apply. */
14769 /* The GNU C library defines this for functions which it implements
14770 to always fail with ENOSYS. Some functions are actually named
14771 something starting with __ and the normal name is an alias. */
14772 #if defined __stub_$ac_func || defined __stub___$ac_func
14779 return $ac_func ();
14784 rm -f conftest.$ac_objext conftest$ac_exeext
14785 if { (ac_try="$ac_link"
14786 case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791 (eval "$ac_link") 2>conftest.er1
14793 grep -v '^ *+' conftest.er1 >conftest.err
14795 cat conftest.err >&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } &&
14798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; } &&
14808 { ac_try='test -s conftest$ac_exeext'
14809 { (case "(($ac_try" in
14810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14811 *) ac_try_echo=$ac_try;;
14813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14814 (eval "$ac_try") 2>&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; }; then
14818 eval "$as_ac_var=yes"
14820 echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14823 eval "$as_ac_var=no"
14826 rm -f core conftest.err conftest.$ac_objext \
14827 conftest$ac_exeext conftest.$ac_ext
14829 ac_res=`eval echo '${'$as_ac_var'}'`
14830 { echo "$as_me:$LINENO: result: $ac_res" >&5
14831 echo "${ECHO_T}$ac_res" >&6; }
14832 if test `eval echo '${'$as_ac_var'}'` = yes; then
14833 cat >>confdefs.h <<_ACEOF
14834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14840 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14841 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14842 if test "${llvm_cv_c_printf_a+set}" = set; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14846 ac_cpp='$CPP $CPPFLAGS'
14847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14851 if test "$cross_compiling" = yes; then
14852 llvmac_cv_c_printf_a=no
14854 cat >conftest.$ac_ext <<_ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14863 #include <stdlib.h>
14869 volatile double A, B;
14873 sprintf(Buffer, "%a", A);
14877 if (A != 0x1.999999999999ap-4)
14884 rm -f conftest$ac_exeext
14885 if { (ac_try="$ac_link"
14886 case "(($ac_try" in
14887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14888 *) ac_try_echo=$ac_try;;
14890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14891 (eval "$ac_link") 2>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14895 { (case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_try") 2>&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; }; then
14904 llvm_cv_c_printf_a=yes
14906 echo "$as_me: program exited with status $ac_status" >&5
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14910 ( exit $ac_status )
14911 llvmac_cv_c_printf_a=no
14913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14918 ac_cpp='$CPP $CPPFLAGS'
14919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14924 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14925 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14926 if test "$llvm_cv_c_printf_a" = "yes"; then
14928 cat >>confdefs.h <<\_ACEOF
14929 #define HAVE_PRINTF_A 1
14936 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14937 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14938 if test "${ac_cv_func_rand48+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 ac_cpp='$CXXCPP $CPPFLAGS'
14944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14948 cat >conftest.$ac_ext <<_ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14954 #include <stdlib.h>
14958 srand48(0);lrand48();drand48();
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_cxx_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_func_rand48=yes
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 ac_cv_func_rand48=no
15005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007 ac_cpp='$CPP $CPPFLAGS'
15008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15014 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15015 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15017 if test "$ac_cv_func_rand48" = "yes" ; then
15019 cat >>confdefs.h <<\_ACEOF
15020 #define HAVE_RAND48 1
15026 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15027 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15028 if test "${ac_cv_have_decl_arc4random+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 *) arc4random;
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_arc4random=yes
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15089 ac_cv_have_decl_arc4random=no
15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15095 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15096 if test $ac_cv_have_decl_arc4random = yes; then
15098 cat >>confdefs.h <<_ACEOF
15099 #define HAVE_DECL_ARC4RANDOM 1
15104 cat >>confdefs.h <<_ACEOF
15105 #define HAVE_DECL_ARC4RANDOM 0
15113 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15114 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15115 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 cat >conftest.$ac_ext <<_ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15124 $ac_includes_default
15129 char *p = (char *) strerror_s;
15137 rm -f conftest.$ac_objext
15138 if { (ac_try="$ac_compile"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_compile") 2>conftest.er1
15146 grep -v '^ *+' conftest.er1 >conftest.err
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15152 { (case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_try") 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; } &&
15161 { ac_try='test -s conftest.$ac_objext'
15162 { (case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_try") 2>&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_cv_have_decl_strerror_s=yes
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ac_cv_have_decl_strerror_s=no
15179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15181 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15182 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15183 if test $ac_cv_have_decl_strerror_s = yes; then
15185 cat >>confdefs.h <<_ACEOF
15186 #define HAVE_DECL_STRERROR_S 1
15191 cat >>confdefs.h <<_ACEOF
15192 #define HAVE_DECL_STRERROR_S 0
15200 if test "$llvm_cv_os_type" = "MingW" ; then
15201 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15202 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15203 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 ac_check_lib_save_LIBS=$LIBS
15208 cat >conftest.$ac_ext <<_ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15215 /* Override any GCC internal prototype to avoid an error.
15216 Use char because int might match the return type of a GCC
15217 builtin and then its argument prototype would still apply. */
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_link") 2>conftest.er1
15239 grep -v '^ *+' conftest.er1 >conftest.err
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245 { (case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_try") 2>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; } &&
15254 { ac_try='test -s conftest$ac_exeext'
15255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15264 ac_cv_lib_gcc__alloca=yes
15266 echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15269 ac_cv_lib_gcc__alloca=no
15272 rm -f core conftest.err conftest.$ac_objext \
15273 conftest$ac_exeext conftest.$ac_ext
15274 LIBS=$ac_check_lib_save_LIBS
15276 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15277 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15278 if test $ac_cv_lib_gcc__alloca = yes; then
15280 cat >>confdefs.h <<\_ACEOF
15281 #define HAVE__ALLOCA 1
15286 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15287 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15288 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 ac_check_lib_save_LIBS=$LIBS
15293 cat >conftest.$ac_ext <<_ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15300 /* Override any GCC internal prototype to avoid an error.
15301 Use char because int might match the return type of a GCC
15302 builtin and then its argument prototype would still apply. */
15310 return __alloca ();
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (ac_try="$ac_link"
15317 case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322 (eval "$ac_link") 2>conftest.er1
15324 grep -v '^ *+' conftest.er1 >conftest.err
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15330 { (case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_try") 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; } &&
15339 { ac_try='test -s conftest$ac_exeext'
15340 { (case "(($ac_try" in
15341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342 *) ac_try_echo=$ac_try;;
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345 (eval "$ac_try") 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15349 ac_cv_lib_gcc___alloca=yes
15351 echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15354 ac_cv_lib_gcc___alloca=no
15357 rm -f core conftest.err conftest.$ac_objext \
15358 conftest$ac_exeext conftest.$ac_ext
15359 LIBS=$ac_check_lib_save_LIBS
15361 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15362 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15363 if test $ac_cv_lib_gcc___alloca = yes; then
15365 cat >>confdefs.h <<\_ACEOF
15366 #define HAVE___ALLOCA 1
15371 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15372 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15373 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 ac_check_lib_save_LIBS=$LIBS
15378 cat >conftest.$ac_ext <<_ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15385 /* Override any GCC internal prototype to avoid an error.
15386 Use char because int might match the return type of a GCC
15387 builtin and then its argument prototype would still apply. */
15395 return __chkstk ();
15400 rm -f conftest.$ac_objext conftest$ac_exeext
15401 if { (ac_try="$ac_link"
15402 case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407 (eval "$ac_link") 2>conftest.er1
15409 grep -v '^ *+' conftest.er1 >conftest.err
15411 cat conftest.err >&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } &&
15414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15415 { (case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_try") 2>&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try='test -s conftest$ac_exeext'
15425 { (case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430 (eval "$ac_try") 2>&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }; then
15434 ac_cv_lib_gcc___chkstk=yes
15436 echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15439 ac_cv_lib_gcc___chkstk=no
15442 rm -f core conftest.err conftest.$ac_objext \
15443 conftest$ac_exeext conftest.$ac_ext
15444 LIBS=$ac_check_lib_save_LIBS
15446 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15447 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15448 if test $ac_cv_lib_gcc___chkstk = yes; then
15450 cat >>confdefs.h <<\_ACEOF
15451 #define HAVE___CHKSTK 1
15456 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15457 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15458 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 ac_check_lib_save_LIBS=$LIBS
15463 cat >conftest.$ac_ext <<_ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15470 /* Override any GCC internal prototype to avoid an error.
15471 Use char because int might match the return type of a GCC
15472 builtin and then its argument prototype would still apply. */
15476 char __chkstk_ms ();
15480 return __chkstk_ms ();
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (ac_try="$ac_link"
15487 case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_link") 2>conftest.er1
15494 grep -v '^ *+' conftest.er1 >conftest.err
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } &&
15499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15500 { (case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_try") 2>&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try='test -s conftest$ac_exeext'
15510 { (case "(($ac_try" in
15511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512 *) ac_try_echo=$ac_try;;
15514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15515 (eval "$ac_try") 2>&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; }; then
15519 ac_cv_lib_gcc___chkstk_ms=yes
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 ac_cv_lib_gcc___chkstk_ms=no
15527 rm -f core conftest.err conftest.$ac_objext \
15528 conftest$ac_exeext conftest.$ac_ext
15529 LIBS=$ac_check_lib_save_LIBS
15531 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15532 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15533 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15535 cat >>confdefs.h <<\_ACEOF
15536 #define HAVE___CHKSTK_MS 1
15541 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15542 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15543 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 ac_check_lib_save_LIBS=$LIBS
15548 cat >conftest.$ac_ext <<_ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15555 /* Override any GCC internal prototype to avoid an error.
15556 Use char because int might match the return type of a GCC
15557 builtin and then its argument prototype would still apply. */
15565 return ___chkstk ();
15570 rm -f conftest.$ac_objext conftest$ac_exeext
15571 if { (ac_try="$ac_link"
15572 case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_link") 2>conftest.er1
15579 grep -v '^ *+' conftest.er1 >conftest.err
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15585 { (case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_try") 2>&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; } &&
15594 { ac_try='test -s conftest$ac_exeext'
15595 { (case "(($ac_try" in
15596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597 *) ac_try_echo=$ac_try;;
15599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600 (eval "$ac_try") 2>&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 ac_cv_lib_gcc____chkstk=yes
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 ac_cv_lib_gcc____chkstk=no
15612 rm -f core conftest.err conftest.$ac_objext \
15613 conftest$ac_exeext conftest.$ac_ext
15614 LIBS=$ac_check_lib_save_LIBS
15616 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15617 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15618 if test $ac_cv_lib_gcc____chkstk = yes; then
15620 cat >>confdefs.h <<\_ACEOF
15621 #define HAVE____CHKSTK 1
15626 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15627 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15628 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15631 ac_check_lib_save_LIBS=$LIBS
15633 cat >conftest.$ac_ext <<_ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15640 /* Override any GCC internal prototype to avoid an error.
15641 Use char because int might match the return type of a GCC
15642 builtin and then its argument prototype would still apply. */
15646 char ___chkstk_ms ();
15650 return ___chkstk_ms ();
15655 rm -f conftest.$ac_objext conftest$ac_exeext
15656 if { (ac_try="$ac_link"
15657 case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662 (eval "$ac_link") 2>conftest.er1
15664 grep -v '^ *+' conftest.er1 >conftest.err
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
15669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15670 { (case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_try") 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; } &&
15679 { ac_try='test -s conftest$ac_exeext'
15680 { (case "(($ac_try" in
15681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682 *) ac_try_echo=$ac_try;;
15684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15685 (eval "$ac_try") 2>&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; }; then
15689 ac_cv_lib_gcc____chkstk_ms=yes
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_cv_lib_gcc____chkstk_ms=no
15697 rm -f core conftest.err conftest.$ac_objext \
15698 conftest$ac_exeext conftest.$ac_ext
15699 LIBS=$ac_check_lib_save_LIBS
15701 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15702 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15703 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15705 cat >>confdefs.h <<\_ACEOF
15706 #define HAVE____CHKSTK_MS 1
15712 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15713 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15714 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15717 ac_check_lib_save_LIBS=$LIBS
15719 cat >conftest.$ac_ext <<_ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h. */
15726 /* Override any GCC internal prototype to avoid an error.
15727 Use char because int might match the return type of a GCC
15728 builtin and then its argument prototype would still apply. */
15736 return __ashldi3 ();
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (ac_try="$ac_link"
15743 case "(($ac_try" in
15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745 *) ac_try_echo=$ac_try;;
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748 (eval "$ac_link") 2>conftest.er1
15750 grep -v '^ *+' conftest.er1 >conftest.err
15752 cat conftest.err >&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } &&
15755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15756 { (case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_try") 2>&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try='test -s conftest$ac_exeext'
15766 { (case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_try") 2>&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; }; then
15775 ac_cv_lib_gcc___ashldi3=yes
15777 echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15780 ac_cv_lib_gcc___ashldi3=no
15783 rm -f core conftest.err conftest.$ac_objext \
15784 conftest$ac_exeext conftest.$ac_ext
15785 LIBS=$ac_check_lib_save_LIBS
15787 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15788 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15789 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15791 cat >>confdefs.h <<\_ACEOF
15792 #define HAVE___ASHLDI3 1
15797 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15798 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15799 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15800 echo $ECHO_N "(cached) $ECHO_C" >&6
15802 ac_check_lib_save_LIBS=$LIBS
15804 cat >conftest.$ac_ext <<_ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15811 /* Override any GCC internal prototype to avoid an error.
15812 Use char because int might match the return type of a GCC
15813 builtin and then its argument prototype would still apply. */
15821 return __ashrdi3 ();
15826 rm -f conftest.$ac_objext conftest$ac_exeext
15827 if { (ac_try="$ac_link"
15828 case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_link") 2>conftest.er1
15835 grep -v '^ *+' conftest.er1 >conftest.err
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } &&
15840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15841 { (case "(($ac_try" in
15842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843 *) ac_try_echo=$ac_try;;
15845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846 (eval "$ac_try") 2>&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; } &&
15850 { ac_try='test -s conftest$ac_exeext'
15851 { (case "(($ac_try" in
15852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853 *) ac_try_echo=$ac_try;;
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856 (eval "$ac_try") 2>&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; }; then
15860 ac_cv_lib_gcc___ashrdi3=yes
15862 echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15865 ac_cv_lib_gcc___ashrdi3=no
15868 rm -f core conftest.err conftest.$ac_objext \
15869 conftest$ac_exeext conftest.$ac_ext
15870 LIBS=$ac_check_lib_save_LIBS
15872 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15873 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15874 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15876 cat >>confdefs.h <<\_ACEOF
15877 #define HAVE___ASHRDI3 1
15882 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15883 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15884 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15887 ac_check_lib_save_LIBS=$LIBS
15889 cat >conftest.$ac_ext <<_ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15896 /* Override any GCC internal prototype to avoid an error.
15897 Use char because int might match the return type of a GCC
15898 builtin and then its argument prototype would still apply. */
15906 return __divdi3 ();
15911 rm -f conftest.$ac_objext conftest$ac_exeext
15912 if { (ac_try="$ac_link"
15913 case "(($ac_try" in
15914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915 *) ac_try_echo=$ac_try;;
15917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918 (eval "$ac_link") 2>conftest.er1
15920 grep -v '^ *+' conftest.er1 >conftest.err
15922 cat conftest.err >&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } &&
15925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15926 { (case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_try") 2>&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; } &&
15935 { ac_try='test -s conftest$ac_exeext'
15936 { (case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_try") 2>&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; }; then
15945 ac_cv_lib_gcc___divdi3=yes
15947 echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15950 ac_cv_lib_gcc___divdi3=no
15953 rm -f core conftest.err conftest.$ac_objext \
15954 conftest$ac_exeext conftest.$ac_ext
15955 LIBS=$ac_check_lib_save_LIBS
15957 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15958 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15959 if test $ac_cv_lib_gcc___divdi3 = yes; then
15961 cat >>confdefs.h <<\_ACEOF
15962 #define HAVE___DIVDI3 1
15967 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15968 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15969 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
15972 ac_check_lib_save_LIBS=$LIBS
15974 cat >conftest.$ac_ext <<_ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15981 /* Override any GCC internal prototype to avoid an error.
15982 Use char because int might match the return type of a GCC
15983 builtin and then its argument prototype would still apply. */
15991 return __fixdfdi ();
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_link") 2>conftest.er1
16005 grep -v '^ *+' conftest.er1 >conftest.err
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
16010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16011 { (case "(($ac_try" in
16012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013 *) ac_try_echo=$ac_try;;
16015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16016 (eval "$ac_try") 2>&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; } &&
16020 { ac_try='test -s conftest$ac_exeext'
16021 { (case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_try") 2>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; }; then
16030 ac_cv_lib_gcc___fixdfdi=yes
16032 echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16035 ac_cv_lib_gcc___fixdfdi=no
16038 rm -f core conftest.err conftest.$ac_objext \
16039 conftest$ac_exeext conftest.$ac_ext
16040 LIBS=$ac_check_lib_save_LIBS
16042 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16043 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16044 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16046 cat >>confdefs.h <<\_ACEOF
16047 #define HAVE___FIXDFDI 1
16052 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16053 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16054 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16057 ac_check_lib_save_LIBS=$LIBS
16059 cat >conftest.$ac_ext <<_ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16066 /* Override any GCC internal prototype to avoid an error.
16067 Use char because int might match the return type of a GCC
16068 builtin and then its argument prototype would still apply. */
16076 return __fixsfdi ();
16081 rm -f conftest.$ac_objext conftest$ac_exeext
16082 if { (ac_try="$ac_link"
16083 case "(($ac_try" in
16084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085 *) ac_try_echo=$ac_try;;
16087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088 (eval "$ac_link") 2>conftest.er1
16090 grep -v '^ *+' conftest.er1 >conftest.err
16092 cat conftest.err >&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); } &&
16095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16096 { (case "(($ac_try" in
16097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098 *) ac_try_echo=$ac_try;;
16100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101 (eval "$ac_try") 2>&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; } &&
16105 { ac_try='test -s conftest$ac_exeext'
16106 { (case "(($ac_try" in
16107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108 *) ac_try_echo=$ac_try;;
16110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111 (eval "$ac_try") 2>&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; }; then
16115 ac_cv_lib_gcc___fixsfdi=yes
16117 echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.$ac_ext >&5
16120 ac_cv_lib_gcc___fixsfdi=no
16123 rm -f core conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
16125 LIBS=$ac_check_lib_save_LIBS
16127 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16128 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16129 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16131 cat >>confdefs.h <<\_ACEOF
16132 #define HAVE___FIXSFDI 1
16137 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16138 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16139 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16142 ac_check_lib_save_LIBS=$LIBS
16144 cat >conftest.$ac_ext <<_ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16151 /* Override any GCC internal prototype to avoid an error.
16152 Use char because int might match the return type of a GCC
16153 builtin and then its argument prototype would still apply. */
16157 char __floatdidf ();
16161 return __floatdidf ();
16166 rm -f conftest.$ac_objext conftest$ac_exeext
16167 if { (ac_try="$ac_link"
16168 case "(($ac_try" in
16169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170 *) ac_try_echo=$ac_try;;
16172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173 (eval "$ac_link") 2>conftest.er1
16175 grep -v '^ *+' conftest.er1 >conftest.err
16177 cat conftest.err >&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16181 { (case "(($ac_try" in
16182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183 *) ac_try_echo=$ac_try;;
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186 (eval "$ac_try") 2>&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; } &&
16190 { ac_try='test -s conftest$ac_exeext'
16191 { (case "(($ac_try" in
16192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 *) ac_try_echo=$ac_try;;
16195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196 (eval "$ac_try") 2>&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; }; then
16200 ac_cv_lib_gcc___floatdidf=yes
16202 echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16205 ac_cv_lib_gcc___floatdidf=no
16208 rm -f core conftest.err conftest.$ac_objext \
16209 conftest$ac_exeext conftest.$ac_ext
16210 LIBS=$ac_check_lib_save_LIBS
16212 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16213 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16214 if test $ac_cv_lib_gcc___floatdidf = yes; then
16216 cat >>confdefs.h <<\_ACEOF
16217 #define HAVE___FLOATDIDF 1
16222 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16223 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16224 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16225 echo $ECHO_N "(cached) $ECHO_C" >&6
16227 ac_check_lib_save_LIBS=$LIBS
16229 cat >conftest.$ac_ext <<_ACEOF
16232 cat confdefs.h >>conftest.$ac_ext
16233 cat >>conftest.$ac_ext <<_ACEOF
16234 /* end confdefs.h. */
16236 /* Override any GCC internal prototype to avoid an error.
16237 Use char because int might match the return type of a GCC
16238 builtin and then its argument prototype would still apply. */
16246 return __lshrdi3 ();
16251 rm -f conftest.$ac_objext conftest$ac_exeext
16252 if { (ac_try="$ac_link"
16253 case "(($ac_try" in
16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255 *) ac_try_echo=$ac_try;;
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258 (eval "$ac_link") 2>conftest.er1
16260 grep -v '^ *+' conftest.er1 >conftest.err
16262 cat conftest.err >&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } &&
16265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16266 { (case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_try") 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; } &&
16275 { ac_try='test -s conftest$ac_exeext'
16276 { (case "(($ac_try" in
16277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16278 *) ac_try_echo=$ac_try;;
16280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281 (eval "$ac_try") 2>&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; }; then
16285 ac_cv_lib_gcc___lshrdi3=yes
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16290 ac_cv_lib_gcc___lshrdi3=no
16293 rm -f core conftest.err conftest.$ac_objext \
16294 conftest$ac_exeext conftest.$ac_ext
16295 LIBS=$ac_check_lib_save_LIBS
16297 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16298 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16299 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16301 cat >>confdefs.h <<\_ACEOF
16302 #define HAVE___LSHRDI3 1
16307 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16308 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16309 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16312 ac_check_lib_save_LIBS=$LIBS
16314 cat >conftest.$ac_ext <<_ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h. */
16321 /* Override any GCC internal prototype to avoid an error.
16322 Use char because int might match the return type of a GCC
16323 builtin and then its argument prototype would still apply. */
16331 return __moddi3 ();
16336 rm -f conftest.$ac_objext conftest$ac_exeext
16337 if { (ac_try="$ac_link"
16338 case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_link") 2>conftest.er1
16345 grep -v '^ *+' conftest.er1 >conftest.err
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
16350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16351 { (case "(($ac_try" in
16352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353 *) ac_try_echo=$ac_try;;
16355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16356 (eval "$ac_try") 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest$ac_exeext'
16361 { (case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366 (eval "$ac_try") 2>&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; }; then
16370 ac_cv_lib_gcc___moddi3=yes
16372 echo "$as_me: failed program was:" >&5
16373 sed 's/^/| /' conftest.$ac_ext >&5
16375 ac_cv_lib_gcc___moddi3=no
16378 rm -f core conftest.err conftest.$ac_objext \
16379 conftest$ac_exeext conftest.$ac_ext
16380 LIBS=$ac_check_lib_save_LIBS
16382 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16383 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16384 if test $ac_cv_lib_gcc___moddi3 = yes; then
16386 cat >>confdefs.h <<\_ACEOF
16387 #define HAVE___MODDI3 1
16392 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16393 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16394 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16395 echo $ECHO_N "(cached) $ECHO_C" >&6
16397 ac_check_lib_save_LIBS=$LIBS
16399 cat >conftest.$ac_ext <<_ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h. */
16406 /* Override any GCC internal prototype to avoid an error.
16407 Use char because int might match the return type of a GCC
16408 builtin and then its argument prototype would still apply. */
16416 return __udivdi3 ();
16421 rm -f conftest.$ac_objext conftest$ac_exeext
16422 if { (ac_try="$ac_link"
16423 case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_link") 2>conftest.er1
16430 grep -v '^ *+' conftest.er1 >conftest.err
16432 cat conftest.err >&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } &&
16435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16436 { (case "(($ac_try" in
16437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438 *) ac_try_echo=$ac_try;;
16440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441 (eval "$ac_try") 2>&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); }; } &&
16445 { ac_try='test -s conftest$ac_exeext'
16446 { (case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_try") 2>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; }; then
16455 ac_cv_lib_gcc___udivdi3=yes
16457 echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16460 ac_cv_lib_gcc___udivdi3=no
16463 rm -f core conftest.err conftest.$ac_objext \
16464 conftest$ac_exeext conftest.$ac_ext
16465 LIBS=$ac_check_lib_save_LIBS
16467 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16468 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16469 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16471 cat >>confdefs.h <<\_ACEOF
16472 #define HAVE___UDIVDI3 1
16477 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16478 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16479 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 ac_check_lib_save_LIBS=$LIBS
16484 cat >conftest.$ac_ext <<_ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16491 /* Override any GCC internal prototype to avoid an error.
16492 Use char because int might match the return type of a GCC
16493 builtin and then its argument prototype would still apply. */
16501 return __umoddi3 ();
16506 rm -f conftest.$ac_objext conftest$ac_exeext
16507 if { (ac_try="$ac_link"
16508 case "(($ac_try" in
16509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510 *) ac_try_echo=$ac_try;;
16512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513 (eval "$ac_link") 2>conftest.er1
16515 grep -v '^ *+' conftest.er1 >conftest.err
16517 cat conftest.err >&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); } &&
16520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16530 { ac_try='test -s conftest$ac_exeext'
16531 { (case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_try") 2>&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 ac_cv_lib_gcc___umoddi3=yes
16542 echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16545 ac_cv_lib_gcc___umoddi3=no
16548 rm -f core conftest.err conftest.$ac_objext \
16549 conftest$ac_exeext conftest.$ac_ext
16550 LIBS=$ac_check_lib_save_LIBS
16552 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16553 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16554 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16556 cat >>confdefs.h <<\_ACEOF
16557 #define HAVE___UMODDI3 1
16563 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16564 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16565 if test "${ac_cv_lib_gcc___main+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 ac_check_lib_save_LIBS=$LIBS
16570 cat >conftest.$ac_ext <<_ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16577 /* Override any GCC internal prototype to avoid an error.
16578 Use char because int might match the return type of a GCC
16579 builtin and then its argument prototype would still apply. */
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (ac_try="$ac_link"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_link") 2>conftest.er1
16601 grep -v '^ *+' conftest.er1 >conftest.err
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
16606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16607 { (case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_try") 2>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; } &&
16616 { ac_try='test -s conftest$ac_exeext'
16617 { (case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_try") 2>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_cv_lib_gcc___main=yes
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16631 ac_cv_lib_gcc___main=no
16634 rm -f core conftest.err conftest.$ac_objext \
16635 conftest$ac_exeext conftest.$ac_ext
16636 LIBS=$ac_check_lib_save_LIBS
16638 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16639 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16640 if test $ac_cv_lib_gcc___main = yes; then
16642 cat >>confdefs.h <<\_ACEOF
16643 #define HAVE___MAIN 1
16648 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16649 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16650 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 ac_check_lib_save_LIBS=$LIBS
16655 cat >conftest.$ac_ext <<_ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16662 /* Override any GCC internal prototype to avoid an error.
16663 Use char because int might match the return type of a GCC
16664 builtin and then its argument prototype would still apply. */
16672 return __cmpdi2 ();
16677 rm -f conftest.$ac_objext conftest$ac_exeext
16678 if { (ac_try="$ac_link"
16679 case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684 (eval "$ac_link") 2>conftest.er1
16686 grep -v '^ *+' conftest.er1 >conftest.err
16688 cat conftest.err >&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
16691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16692 { (case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_try") 2>&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; } &&
16701 { ac_try='test -s conftest$ac_exeext'
16702 { (case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_try") 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
16711 ac_cv_lib_gcc___cmpdi2=yes
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16716 ac_cv_lib_gcc___cmpdi2=no
16719 rm -f core conftest.err conftest.$ac_objext \
16720 conftest$ac_exeext conftest.$ac_ext
16721 LIBS=$ac_check_lib_save_LIBS
16723 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16724 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16725 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16727 cat >>confdefs.h <<\_ACEOF
16728 #define HAVE___CMPDI2 1
16735 if test "$llvm_cv_os_type" = "MingW" ; then
16736 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16737 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16738 cat >conftest.$ac_ext <<_ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h. */
16746 #include <windows.h>
16747 #include <imagehlp.h>
16748 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16749 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16753 rm -f conftest.$ac_objext
16754 if { (ac_try="$ac_compile"
16755 case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_compile") 2>conftest.er1
16762 grep -v '^ *+' conftest.er1 >conftest.err
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
16767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16768 { (case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_try") 2>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest.$ac_objext'
16778 { (case "(($ac_try" in
16779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780 *) ac_try_echo=$ac_try;;
16782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783 (eval "$ac_try") 2>&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; }; then
16788 { echo "$as_me:$LINENO: result: yes" >&5
16789 echo "${ECHO_T}yes" >&6; }
16790 llvm_cv_win32_elmcb_pcstr="PCSTR"
16793 echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.$ac_ext >&5
16797 { echo "$as_me:$LINENO: result: no" >&5
16798 echo "${ECHO_T}no" >&6; }
16799 llvm_cv_win32_elmcb_pcstr="PSTR"
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16805 cat >>confdefs.h <<_ACEOF
16806 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16813 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
16814 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
16815 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 ac_cpp='$CXXCPP $CPPFLAGS'
16821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16825 cat >conftest.$ac_ext <<_ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16840 rm -f conftest.$ac_objext
16841 if { (ac_try="$ac_compile"
16842 case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847 (eval "$ac_compile") 2>conftest.er1
16849 grep -v '^ *+' conftest.er1 >conftest.err
16851 cat conftest.err >&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
16854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16855 { (case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_try") 2>&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; } &&
16864 { ac_try='test -s conftest.$ac_objext'
16865 { (case "(($ac_try" in
16866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867 *) ac_try_echo=$ac_try;;
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870 (eval "$ac_try") 2>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874 ac_cv_func_isnan_in_math_h=yes
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ac_cv_func_isnan_in_math_h=no
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884 ac_cpp='$CPP $CPPFLAGS'
16885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16891 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
16892 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
16895 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
16897 cat >>confdefs.h <<\_ACEOF
16898 #define HAVE_ISNAN_IN_MATH_H 1
16904 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
16905 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
16906 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 ac_cpp='$CXXCPP $CPPFLAGS'
16912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16916 cat >conftest.$ac_ext <<_ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16931 rm -f conftest.$ac_objext
16932 if { (ac_try="$ac_compile"
16933 case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_compile") 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest.$ac_objext'
16956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 ac_cv_func_isnan_in_cmath=yes
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16970 ac_cv_func_isnan_in_cmath=no
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16975 ac_cpp='$CPP $CPPFLAGS'
16976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16982 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
16983 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
16985 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
16987 cat >>confdefs.h <<\_ACEOF
16988 #define HAVE_ISNAN_IN_CMATH 1
16994 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
16995 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
16996 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
16997 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 ac_cpp='$CXXCPP $CPPFLAGS'
17002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17006 cat >conftest.$ac_ext <<_ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17016 float f; std::isnan(f);
17021 rm -f conftest.$ac_objext
17022 if { (ac_try="$ac_compile"
17023 case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_compile") 2>conftest.er1
17030 grep -v '^ *+' conftest.er1 >conftest.err
17032 cat conftest.err >&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } &&
17035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17036 { (case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_try") 2>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; } &&
17045 { ac_try='test -s conftest.$ac_objext'
17046 { (case "(($ac_try" in
17047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048 *) ac_try_echo=$ac_try;;
17050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17051 (eval "$ac_try") 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 ac_cv_func_std_isnan_in_cmath=yes
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17060 ac_cv_func_std_isnan_in_cmath=no
17063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17065 ac_cpp='$CPP $CPPFLAGS'
17066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17072 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17073 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17075 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17077 cat >>confdefs.h <<\_ACEOF
17078 #define HAVE_STD_ISNAN_IN_CMATH 1
17086 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17087 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17088 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17093 ac_cpp='$CXXCPP $CPPFLAGS'
17094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17098 cat >conftest.$ac_ext <<_ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17113 rm -f conftest.$ac_objext
17114 if { (ac_try="$ac_compile"
17115 case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_compile") 2>conftest.er1
17122 grep -v '^ *+' conftest.er1 >conftest.err
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
17127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest.$ac_objext'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_cv_func_isinf_in_math_h=yes
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 ac_cv_func_isinf_in_math_h=no
17155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17157 ac_cpp='$CPP $CPPFLAGS'
17158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17164 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17165 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17167 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17169 cat >>confdefs.h <<\_ACEOF
17170 #define HAVE_ISINF_IN_MATH_H 1
17176 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17177 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17178 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17179 echo $ECHO_N "(cached) $ECHO_C" >&6
17183 ac_cpp='$CXXCPP $CPPFLAGS'
17184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17188 cat >conftest.$ac_ext <<_ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17203 rm -f conftest.$ac_objext
17204 if { (ac_try="$ac_compile"
17205 case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_compile") 2>conftest.er1
17212 grep -v '^ *+' conftest.er1 >conftest.err
17214 cat conftest.err >&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
17217 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17218 { (case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_try") 2>&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try='test -s conftest.$ac_objext'
17228 { (case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_try") 2>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 ac_cv_func_isinf_in_cmath=yes
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 ac_cv_func_isinf_in_cmath=no
17245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17247 ac_cpp='$CPP $CPPFLAGS'
17248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17254 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17255 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17257 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17259 cat >>confdefs.h <<\_ACEOF
17260 #define HAVE_ISINF_IN_CMATH 1
17266 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17267 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17268 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17269 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 ac_cpp='$CXXCPP $CPPFLAGS'
17274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17278 cat >conftest.$ac_ext <<_ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17288 float f; std::isinf(f);
17293 rm -f conftest.$ac_objext
17294 if { (ac_try="$ac_compile"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_compile") 2>conftest.er1
17302 grep -v '^ *+' conftest.er1 >conftest.err
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } &&
17307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17308 { (case "(($ac_try" in
17309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310 *) ac_try_echo=$ac_try;;
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313 (eval "$ac_try") 2>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; } &&
17317 { ac_try='test -s conftest.$ac_objext'
17318 { (case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 ac_cv_func_std_isinf_in_cmath=yes
17329 echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17332 ac_cv_func_std_isinf_in_cmath=no
17335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17337 ac_cpp='$CPP $CPPFLAGS'
17338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17344 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17345 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17347 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17349 cat >>confdefs.h <<\_ACEOF
17350 #define HAVE_STD_ISINF_IN_CMATH 1
17356 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17357 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17358 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17359 echo $ECHO_N "(cached) $ECHO_C" >&6
17363 ac_cpp='$CXXCPP $CPPFLAGS'
17364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17368 cat >conftest.$ac_ext <<_ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 #include <ieeefp.h>
17378 float f; finite(f);
17383 rm -f conftest.$ac_objext
17384 if { (ac_try="$ac_compile"
17385 case "(($ac_try" in
17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390 (eval "$ac_compile") 2>conftest.er1
17392 grep -v '^ *+' conftest.er1 >conftest.err
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
17397 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17398 { (case "(($ac_try" in
17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400 *) ac_try_echo=$ac_try;;
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403 (eval "$ac_try") 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; } &&
17407 { ac_try='test -s conftest.$ac_objext'
17408 { (case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_try") 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; }; then
17417 ac_cv_func_finite_in_ieeefp_h=yes
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17422 ac_cv_func_finite_in_ieeefp_h=no
17425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17427 ac_cpp='$CPP $CPPFLAGS'
17428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17434 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17435 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17437 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17439 cat >>confdefs.h <<\_ACEOF
17440 #define HAVE_FINITE_IN_IEEEFP_H 1
17447 if test "$llvm_cv_platform_type" = "Unix" ; then
17450 for ac_header in stdlib.h unistd.h
17452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 ac_res=`eval echo '${'$as_ac_Header'}'`
17460 { echo "$as_me:$LINENO: result: $ac_res" >&5
17461 echo "${ECHO_T}$ac_res" >&6; }
17463 # Is the header compilable?
17464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17466 cat >conftest.$ac_ext <<_ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17472 $ac_includes_default
17473 #include <$ac_header>
17475 rm -f conftest.$ac_objext
17476 if { (ac_try="$ac_compile"
17477 case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_compile") 2>conftest.er1
17484 grep -v '^ *+' conftest.er1 >conftest.err
17486 cat conftest.err >&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
17489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17490 { (case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_try") 2>&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; } &&
17499 { ac_try='test -s conftest.$ac_objext'
17500 { (case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_try") 2>&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; }; then
17509 ac_header_compiler=yes
17511 echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17514 ac_header_compiler=no
17517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17519 echo "${ECHO_T}$ac_header_compiler" >&6; }
17521 # Is the header present?
17522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17524 cat >conftest.$ac_ext <<_ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17530 #include <$ac_header>
17532 if { (ac_try="$ac_cpp conftest.$ac_ext"
17533 case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17540 grep -v '^ *+' conftest.er1 >conftest.err
17542 cat conftest.err >&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } >/dev/null; then
17545 if test -s conftest.err; then
17546 ac_cpp_err=$ac_c_preproc_warn_flag
17547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17554 if test -z "$ac_cpp_err"; then
17555 ac_header_preproc=yes
17557 echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17560 ac_header_preproc=no
17563 rm -f conftest.err conftest.$ac_ext
17564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17565 echo "${ECHO_T}$ac_header_preproc" >&6; }
17567 # So? What about this header?
17568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17574 ac_header_preproc=yes
17577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17590 ## ------------------------------------ ##
17591 ## Report this to http://llvm.org/bugs/ ##
17592 ## ------------------------------------ ##
17594 ) | sed "s/^/$as_me: WARNING: /" >&2
17597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 eval "$as_ac_Header=\$ac_header_preproc"
17604 ac_res=`eval echo '${'$as_ac_Header'}'`
17605 { echo "$as_me:$LINENO: result: $ac_res" >&5
17606 echo "${ECHO_T}$ac_res" >&6; }
17609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17610 cat >>confdefs.h <<_ACEOF
17611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17619 for ac_func in getpagesize
17621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
17627 cat >conftest.$ac_ext <<_ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17635 #define $ac_func innocuous_$ac_func
17637 /* System header to define __stub macros and hopefully few prototypes,
17638 which can conflict with char $ac_func (); below.
17639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17640 <limits.h> exists even on freestanding compilers. */
17643 # include <limits.h>
17645 # include <assert.h>
17650 /* Override any GCC internal prototype to avoid an error.
17651 Use char because int might match the return type of a GCC
17652 builtin and then its argument prototype would still apply. */
17657 /* The GNU C library defines this for functions which it implements
17658 to always fail with ENOSYS. Some functions are actually named
17659 something starting with __ and the normal name is an alias. */
17660 #if defined __stub_$ac_func || defined __stub___$ac_func
17667 return $ac_func ();
17672 rm -f conftest.$ac_objext conftest$ac_exeext
17673 if { (ac_try="$ac_link"
17674 case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_link") 2>conftest.er1
17681 grep -v '^ *+' conftest.er1 >conftest.err
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } &&
17686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17687 { (case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_try") 2>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; } &&
17696 { ac_try='test -s conftest$ac_exeext'
17697 { (case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_try") 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 eval "$as_ac_var=yes"
17708 echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17711 eval "$as_ac_var=no"
17714 rm -f core conftest.err conftest.$ac_objext \
17715 conftest$ac_exeext conftest.$ac_ext
17717 ac_res=`eval echo '${'$as_ac_var'}'`
17718 { echo "$as_me:$LINENO: result: $ac_res" >&5
17719 echo "${ECHO_T}$ac_res" >&6; }
17720 if test `eval echo '${'$as_ac_var'}'` = yes; then
17721 cat >>confdefs.h <<_ACEOF
17722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17728 { echo "$as_me:$LINENO: checking for working mmap" >&5
17729 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17730 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17731 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 if test "$cross_compiling" = yes; then
17734 ac_cv_func_mmap_fixed_mapped=no
17736 cat >conftest.$ac_ext <<_ACEOF
17739 cat confdefs.h >>conftest.$ac_ext
17740 cat >>conftest.$ac_ext <<_ACEOF
17741 /* end confdefs.h. */
17742 $ac_includes_default
17743 /* malloc might have been renamed as rpl_malloc. */
17746 /* Thanks to Mike Haertel and Jim Avera for this test.
17747 Here is a matrix of mmap possibilities:
17748 mmap private not fixed
17749 mmap private fixed at somewhere currently unmapped
17750 mmap private fixed at somewhere already mapped
17751 mmap shared not fixed
17752 mmap shared fixed at somewhere currently unmapped
17753 mmap shared fixed at somewhere already mapped
17754 For private mappings, we should verify that changes cannot be read()
17755 back from the file, nor mmap's back from the file at a different
17756 address. (There have been systems where private was not correctly
17757 implemented like the infamous i386 svr4.0, and systems where the
17758 VM page cache was not coherent with the file system buffer cache
17759 like early versions of FreeBSD and possibly contemporary NetBSD.)
17760 For shared mappings, we should conversely verify that changes get
17761 propagated back to all the places they're supposed to be.
17763 Grep wants private fixed already mapped.
17764 The main things grep needs to know about mmap are:
17765 * does it exist and is it safe to write into the mmap'd area
17766 * how to use it (BSD variants) */
17769 #include <sys/mman.h>
17771 #if !STDC_HEADERS && !HAVE_STDLIB_H
17775 /* This mess was copied from the GNU getpagesize.h. */
17776 #if !HAVE_GETPAGESIZE
17777 /* Assume that all systems that can run configure have sys/param.h. */
17778 # if !HAVE_SYS_PARAM_H
17779 # define HAVE_SYS_PARAM_H 1
17782 # ifdef _SC_PAGESIZE
17783 # define getpagesize() sysconf(_SC_PAGESIZE)
17784 # else /* no _SC_PAGESIZE */
17785 # if HAVE_SYS_PARAM_H
17786 # include <sys/param.h>
17787 # ifdef EXEC_PAGESIZE
17788 # define getpagesize() EXEC_PAGESIZE
17789 # else /* no EXEC_PAGESIZE */
17791 # define getpagesize() NBPG * CLSIZE
17794 # endif /* no CLSIZE */
17795 # else /* no NBPG */
17797 # define getpagesize() NBPC
17798 # else /* no NBPC */
17800 # define getpagesize() PAGESIZE
17801 # endif /* PAGESIZE */
17802 # endif /* no NBPC */
17803 # endif /* no NBPG */
17804 # endif /* no EXEC_PAGESIZE */
17805 # else /* no HAVE_SYS_PARAM_H */
17806 # define getpagesize() 8192 /* punt totally */
17807 # endif /* no HAVE_SYS_PARAM_H */
17808 # endif /* no _SC_PAGESIZE */
17810 #endif /* no HAVE_GETPAGESIZE */
17815 char *data, *data2, *data3;
17819 pagesize = getpagesize ();
17821 /* First, make a file with some known garbage in it. */
17822 data = (char *) malloc (pagesize);
17825 for (i = 0; i < pagesize; ++i)
17826 *(data + i) = rand ();
17828 fd = creat ("conftest.mmap", 0600);
17831 if (write (fd, data, pagesize) != pagesize)
17835 /* Next, try to mmap the file at a fixed address which already has
17836 something else allocated at it. If we can, also make sure that
17837 we see the same garbage. */
17838 fd = open ("conftest.mmap", O_RDWR);
17841 data2 = (char *) malloc (2 * pagesize);
17844 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17845 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17846 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17848 for (i = 0; i < pagesize; ++i)
17849 if (*(data + i) != *(data2 + i))
17852 /* Finally, make sure that changes to the mapped area do not
17853 percolate back to the file as seen by read(). (This is a bug on
17854 some variants of i386 svr4.0.) */
17855 for (i = 0; i < pagesize; ++i)
17856 *(data2 + i) = *(data2 + i) + 1;
17857 data3 = (char *) malloc (pagesize);
17860 if (read (fd, data3, pagesize) != pagesize)
17862 for (i = 0; i < pagesize; ++i)
17863 if (*(data + i) != *(data3 + i))
17869 rm -f conftest$ac_exeext
17870 if { (ac_try="$ac_link"
17871 case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876 (eval "$ac_link") 2>&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17880 { (case "(($ac_try" in
17881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17882 *) ac_try_echo=$ac_try;;
17884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17885 (eval "$ac_try") 2>&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); }; }; then
17889 ac_cv_func_mmap_fixed_mapped=yes
17891 echo "$as_me: program exited with status $ac_status" >&5
17892 echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17895 ( exit $ac_status )
17896 ac_cv_func_mmap_fixed_mapped=no
17898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17903 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17904 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17905 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17907 cat >>confdefs.h <<\_ACEOF
17908 #define HAVE_MMAP 1
17912 rm -f conftest.mmap
17914 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17915 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17916 if test "${ac_cv_func_mmap_file+set}" = set; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17920 ac_cpp='$CPP $CPPFLAGS'
17921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17925 if test "$cross_compiling" = yes; then
17926 ac_cv_func_mmap_file=no
17928 cat >conftest.$ac_ext <<_ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h. */
17936 #include <sys/types.h>
17937 #include <sys/mman.h>
17945 fd = creat ("foo",0777);
17946 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17948 return (fd != (int) MAP_FAILED);
17953 rm -f conftest$ac_exeext
17954 if { (ac_try="$ac_link"
17955 case "(($ac_try" in
17956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957 *) ac_try_echo=$ac_try;;
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960 (eval "$ac_link") 2>&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17964 { (case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969 (eval "$ac_try") 2>&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; }; then
17973 ac_cv_func_mmap_file=yes
17975 echo "$as_me: program exited with status $ac_status" >&5
17976 echo "$as_me: failed program was:" >&5
17977 sed 's/^/| /' conftest.$ac_ext >&5
17979 ( exit $ac_status )
17980 ac_cv_func_mmap_file=no
17982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17987 ac_cpp='$CPP $CPPFLAGS'
17988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17994 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17995 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17996 if test "$ac_cv_func_mmap_file" = yes; then
17998 cat >>confdefs.h <<\_ACEOF
17999 #define HAVE_MMAP_FILE
18006 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18007 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18008 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18011 if test "$llvm_cv_os_type" = "Interix" ; then
18012 ac_cv_need_dev_zero_for_mmap=yes
18014 ac_cv_need_dev_zero_for_mmap=no
18018 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18019 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18020 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18022 cat >>confdefs.h <<\_ACEOF
18023 #define NEED_DEV_ZERO_FOR_MMAP 1
18028 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18030 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18031 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18033 if test "$ac_cv_func_mmap_file" = "no"
18035 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18036 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18040 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18041 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18043 ac_cpp='$CXXCPP $CPPFLAGS'
18044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18048 cat >conftest.$ac_ext <<_ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18057 volatile unsigned long val = 1;
18058 __sync_synchronize();
18059 __sync_val_compare_and_swap(&val, 1, 0);
18060 __sync_add_and_fetch(&val, 1);
18061 __sync_sub_and_fetch(&val, 1);
18067 rm -f conftest.$ac_objext conftest$ac_exeext
18068 if { (ac_try="$ac_link"
18069 case "(($ac_try" in
18070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071 *) ac_try_echo=$ac_try;;
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074 (eval "$ac_link") 2>conftest.er1
18076 grep -v '^ *+' conftest.er1 >conftest.err
18078 cat conftest.err >&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); } &&
18081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18082 { (case "(($ac_try" in
18083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084 *) ac_try_echo=$ac_try;;
18086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087 (eval "$ac_try") 2>&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; } &&
18091 { ac_try='test -s conftest$ac_exeext'
18092 { (case "(($ac_try" in
18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_try") 2>&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; }; then
18102 { echo "$as_me:$LINENO: result: yes" >&5
18103 echo "${ECHO_T}yes" >&6; }
18105 cat >>confdefs.h <<\_ACEOF
18106 #define LLVM_HAS_ATOMICS 1
18111 echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18115 { echo "$as_me:$LINENO: result: no" >&5
18116 echo "${ECHO_T}no" >&6; }
18118 cat >>confdefs.h <<\_ACEOF
18119 #define LLVM_HAS_ATOMICS 0
18122 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18123 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18127 rm -f core conftest.err conftest.$ac_objext \
18128 conftest$ac_exeext conftest.$ac_ext
18130 ac_cpp='$CPP $CPPFLAGS'
18131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18137 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18138 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18139 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18140 if test "${llvm_cv_linux_mixed+set}" = set; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18144 ac_cpp='$CPP $CPPFLAGS'
18145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18149 cat >conftest.$ac_ext <<_ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18156 error: Not x86-64 even if uname says so!
18167 rm -f conftest.$ac_objext
18168 if { (ac_try="$ac_compile"
18169 case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_compile") 2>conftest.er1
18176 grep -v '^ *+' conftest.er1 >conftest.err
18178 cat conftest.err >&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } &&
18181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18182 { (case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_try") 2>&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; } &&
18191 { ac_try='test -s conftest.$ac_objext'
18192 { (case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_try") 2>&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; }; then
18201 llvm_cv_linux_mixed=no
18203 echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18206 llvm_cv_linux_mixed=yes
18209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18211 ac_cpp='$CPP $CPPFLAGS'
18212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18218 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18219 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18221 if test "$llvm_cv_linux_mixed" = "yes"; then
18222 llvm_cv_target_arch="x86"
18228 for ac_func in __dso_handle
18230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18236 cat >conftest.$ac_ext <<_ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h. */
18242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18244 #define $ac_func innocuous_$ac_func
18246 /* System header to define __stub macros and hopefully few prototypes,
18247 which can conflict with char $ac_func (); below.
18248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18249 <limits.h> exists even on freestanding compilers. */
18252 # include <limits.h>
18254 # include <assert.h>
18259 /* Override any GCC internal prototype to avoid an error.
18260 Use char because int might match the return type of a GCC
18261 builtin and then its argument prototype would still apply. */
18266 /* The GNU C library defines this for functions which it implements
18267 to always fail with ENOSYS. Some functions are actually named
18268 something starting with __ and the normal name is an alias. */
18269 #if defined __stub_$ac_func || defined __stub___$ac_func
18276 return $ac_func ();
18281 rm -f conftest.$ac_objext conftest$ac_exeext
18282 if { (ac_try="$ac_link"
18283 case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_link") 2>conftest.er1
18290 grep -v '^ *+' conftest.er1 >conftest.err
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
18295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18296 { (case "(($ac_try" in
18297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18298 *) ac_try_echo=$ac_try;;
18300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18301 (eval "$ac_try") 2>&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; } &&
18305 { ac_try='test -s conftest$ac_exeext'
18306 { (case "(($ac_try" in
18307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311 (eval "$ac_try") 2>&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
18315 eval "$as_ac_var=yes"
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18320 eval "$as_ac_var=no"
18323 rm -f core conftest.err conftest.$ac_objext \
18324 conftest$ac_exeext conftest.$ac_ext
18326 ac_res=`eval echo '${'$as_ac_var'}'`
18327 { echo "$as_me:$LINENO: result: $ac_res" >&5
18328 echo "${ECHO_T}$ac_res" >&6; }
18329 if test `eval echo '${'$as_ac_var'}'` = yes; then
18330 cat >>confdefs.h <<_ACEOF
18331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18338 SHLIBEXT=$llvm_shlib_ext
18341 if test "${prefix}" = "NONE" ; then
18342 prefix="/usr/local"
18344 eval LLVM_PREFIX="${prefix}";
18345 eval LLVM_BINDIR="${prefix}/bin";
18346 eval LLVM_DATADIR="${prefix}/share/llvm";
18347 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18348 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18349 eval LLVM_INCLUDEDIR="${prefix}/include";
18350 eval LLVM_INFODIR="${prefix}/info";
18351 eval LLVM_MANDIR="${prefix}/man";
18352 LLVM_CONFIGTIME=`date`
18363 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18364 LLVM_CONFIGTIME="(timestamp not enabled)"
18368 cat >>confdefs.h <<_ACEOF
18369 #define LLVM_PREFIX "$LLVM_PREFIX"
18373 cat >>confdefs.h <<_ACEOF
18374 #define LLVM_BINDIR "$LLVM_BINDIR"
18378 cat >>confdefs.h <<_ACEOF
18379 #define LLVM_DATADIR "$LLVM_DATADIR"
18383 cat >>confdefs.h <<_ACEOF
18384 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18388 cat >>confdefs.h <<_ACEOF
18389 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18393 cat >>confdefs.h <<_ACEOF
18394 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18398 cat >>confdefs.h <<_ACEOF
18399 #define LLVM_INFODIR "$LLVM_INFODIR"
18403 cat >>confdefs.h <<_ACEOF
18404 #define LLVM_MANDIR "$LLVM_MANDIR"
18408 cat >>confdefs.h <<_ACEOF
18409 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18413 cat >>confdefs.h <<_ACEOF
18414 #define LLVM_HOST_TRIPLE "$host"
18418 cat >>confdefs.h <<_ACEOF
18419 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18423 if test "$BINDINGS_TO_BUILD" = auto ; then
18424 BINDINGS_TO_BUILD=""
18425 if test "x$OCAMLFIND" != x ; then
18426 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18428 if test "x$GO" != x ; then
18429 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18430 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18434 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18437 binding_prereqs_failed=0
18438 for a_binding in $BINDINGS_TO_BUILD ; do
18439 case "$a_binding" in
18441 if test "x$OCAMLFIND" = x ; then
18442 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
18443 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
18444 binding_prereqs_failed=1
18447 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
18454 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
18455 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
18456 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
18457 binding_prereqs_failed=1
18460 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
18464 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
18465 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18469 if test "x$with_ocaml_libdir" != xauto ; then
18470 OCAML_LIBDIR=$with_ocaml_libdir
18473 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18474 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18476 # ocaml stdlib is beneath our prefix; use stdlib
18477 OCAML_LIBDIR=$ocaml_stdlib
18480 # ocaml stdlib is outside our prefix; use libdir/ocaml
18481 OCAML_LIBDIR=${prefix}/lib/ocaml
18487 if test "x$GO" = x ; then
18488 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18489 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18490 binding_prereqs_failed=1
18492 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18495 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18496 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18497 binding_prereqs_failed=1
18503 if test "$binding_prereqs_failed" = 1 ; then
18504 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18505 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18506 { (exit 1); exit 1; }; }
18509 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18510 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18511 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18515 ac_cpp='$CXXCPP $CPPFLAGS'
18516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18520 oldcxxflags="$CXXFLAGS"
18521 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18522 cat >conftest.$ac_ext <<_ACEOF
18525 cat confdefs.h >>conftest.$ac_ext
18526 cat >>conftest.$ac_ext <<_ACEOF
18527 /* end confdefs.h. */
18528 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18537 rm -f conftest.$ac_objext
18538 if { (ac_try="$ac_compile"
18539 case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_compile") 2>conftest.er1
18546 grep -v '^ *+' conftest.er1 >conftest.err
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18552 { (case "(($ac_try" in
18553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554 *) ac_try_echo=$ac_try;;
18556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557 (eval "$ac_try") 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try='test -s conftest.$ac_objext'
18562 { (case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_try") 2>&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; }; then
18571 llvm_cv_cxx_visibility_inlines_hidden=yes
18573 echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.$ac_ext >&5
18576 llvm_cv_cxx_visibility_inlines_hidden=no
18579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18580 CXXFLAGS="$oldcxxflags"
18582 ac_cpp='$CPP $CPPFLAGS'
18583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18589 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18590 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18591 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18592 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18595 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18600 if test "$llvm_cv_link_use_r" = "yes" ; then
18607 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18608 RDYNAMIC="-rdynamic"
18615 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18622 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18624 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18626 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18628 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18630 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18633 ac_config_files="$ac_config_files Makefile.config"
18636 ac_config_files="$ac_config_files llvm.spec"
18639 ac_config_files="$ac_config_files docs/doxygen.cfg"
18642 if test "${clang_src_root}" = ""; then
18643 clang_src_root="$srcdir/tools/clang"
18645 if test -f ${clang_src_root}/README.txt; then
18647 cat >>confdefs.h <<_ACEOF
18648 #define CLANG_LIBDIR_SUFFIX ""
18652 configh="include/clang/Config/config.h"
18653 doxy="docs/doxygen.cfg"
18654 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18656 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18660 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18663 test "x$program_prefix" = "xNONE" && program_prefix=""
18667 ac_config_commands="$ac_config_commands setup"
18669 ac_config_commands="$ac_config_commands Makefile"
18672 ac_config_commands="$ac_config_commands Makefile.common"
18675 ac_config_commands="$ac_config_commands examples/Makefile"
18678 ac_config_commands="$ac_config_commands lib/Makefile"
18681 ac_config_commands="$ac_config_commands test/Makefile"
18684 ac_config_commands="$ac_config_commands test/Makefile.tests"
18687 ac_config_commands="$ac_config_commands unittests/Makefile"
18690 ac_config_commands="$ac_config_commands tools/Makefile"
18693 ac_config_commands="$ac_config_commands utils/Makefile"
18696 ac_config_commands="$ac_config_commands projects/Makefile"
18699 ac_config_commands="$ac_config_commands bindings/Makefile"
18702 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18706 cat >confcache <<\_ACEOF
18707 # This file is a shell script that caches the results of configure
18708 # tests run on this system so they can be shared between configure
18709 # scripts and configure runs, see configure's option --config-cache.
18710 # It is not useful on other systems. If it contains results you don't
18711 # want to keep, you may remove or edit it.
18713 # config.status only pays attention to the cache file if you give it
18714 # the --recheck option to rerun configure.
18716 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18717 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18718 # following values.
18722 # The following way of writing the cache mishandles newlines in values,
18723 # but we know of no workaround that is simple, portable, and efficient.
18724 # So, we kill variables containing newlines.
18725 # Ultrix sh set writes to stderr and can't be redirected directly,
18726 # and sets the high bit in the cache file unless we assign to the vars.
18728 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18729 eval ac_val=\$$ac_var
18733 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18734 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18737 _ | IFS | as_nl) ;; #(
18738 *) $as_unset $ac_var ;;
18744 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18745 *${as_nl}ac_space=\ *)
18746 # `set' does not quote correctly, so add quotes (double-quote
18747 # substitution turns \\\\ into \\, and sed turns \\ into \).
18750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18753 # `set' quotes correctly as required by POSIX, so do not add quotes.
18754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18765 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18767 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18768 if test -w "$cache_file"; then
18769 test "x$cache_file" != "x/dev/null" &&
18770 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18771 echo "$as_me: updating cache $cache_file" >&6;}
18772 cat confcache >$cache_file
18774 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18775 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18781 # Let make expand exec_prefix.
18782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18784 DEFS=-DHAVE_CONFIG_H
18788 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18789 # 1. Remove the extension, and $U if already installed.
18790 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18791 ac_i=`echo "$ac_i" | sed "$ac_script"`
18792 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18793 # will be set to the directory where LIBOBJS objects are built.
18794 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18795 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18797 LIBOBJS=$ac_libobjs
18799 LTLIBOBJS=$ac_ltlibobjs
18803 : ${CONFIG_STATUS=./config.status}
18804 ac_clean_files_save=$ac_clean_files
18805 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18806 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18807 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18808 cat >$CONFIG_STATUS <<_ACEOF
18810 # Generated by $as_me.
18811 # Run this file to recreate the current configuration.
18812 # Compiler output produced by configure, useful for debugging
18813 # configure, is in config.log if it exists.
18816 ac_cs_recheck=false
18818 SHELL=\${CONFIG_SHELL-$SHELL}
18821 cat >>$CONFIG_STATUS <<\_ACEOF
18822 ## --------------------- ##
18823 ## M4sh Initialization. ##
18824 ## --------------------- ##
18826 # Be Bourne compatible
18827 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18830 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18831 # is contrary to our usage. Disable this feature.
18832 alias -g '${1+"$@"}'='"$@"'
18833 setopt NO_GLOB_SUBST
18835 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18837 BIN_SH=xpg4; export BIN_SH # for Tru64
18838 DUALCASE=1; export DUALCASE # for MKS sh
18842 # Avoid depending upon Character Ranges.
18843 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18844 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18845 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18846 as_cr_digits='0123456789'
18847 as_cr_alnum=$as_cr_Letters$as_cr_digits
18849 # The user is always right.
18850 if test "${PATH_SEPARATOR+set}" != set; then
18851 echo "#! /bin/sh" >conf$$.sh
18852 echo "exit 0" >>conf$$.sh
18854 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18862 # Support unset when possible.
18863 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18871 # We need space, tab and new line, in precisely that order. Quoting is
18872 # there to prevent editors from complaining about space-tab.
18873 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18874 # splitting by setting IFS to empty value.)
18879 # Find who we are. Look in the path if we contain no directory separator.
18881 *[\\/]* ) as_myself=$0 ;;
18882 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18883 for as_dir in $PATH
18886 test -z "$as_dir" && as_dir=.
18887 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18893 # We did not find ourselves, most probably we were run as `sh COMMAND'
18894 # in which case we are not to be found in the path.
18895 if test "x$as_myself" = x; then
18898 if test ! -f "$as_myself"; then
18899 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18900 { (exit 1); exit 1; }
18903 # Work around bugs in pre-3.0 UWIN ksh.
18904 for as_var in ENV MAIL MAILPATH
18905 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18913 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18914 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18915 LC_TELEPHONE LC_TIME
18917 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18918 eval $as_var=C; export $as_var
18920 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18924 # Required to use basename.
18925 if expr a : '\(a\)' >/dev/null 2>&1 &&
18926 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18932 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18933 as_basename=basename
18939 # Name of the executable.
18940 as_me=`$as_basename -- "$0" ||
18941 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18942 X"$0" : 'X\(//\)$' \| \
18943 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18945 sed '/^.*\/\([^/][^/]*\)\/*$/{
18964 as_lineno_1=$LINENO
18965 as_lineno_2=$LINENO
18966 test "x$as_lineno_1" != "x$as_lineno_2" &&
18967 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18969 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18970 # uniformly replaced by the line number. The first 'sed' inserts a
18971 # line-number line after each line using $LINENO; the second 'sed'
18972 # does the real work. The second script uses 'N' to pair each
18973 # line-number line with the line containing $LINENO, and appends
18974 # trailing '-' during substitution so that $LINENO is not a special
18975 # case at line end.
18976 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18977 # scripts with optimization help from Paolo Bonzini. Blame Lee
18978 # E. McMahon (1931-1989) for sed's syntax. :-)
18990 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18993 ' >$as_me.lineno &&
18994 chmod +x "$as_me.lineno" ||
18995 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18996 { (exit 1); exit 1; }; }
18998 # Don't try to exec as it changes $[0], causing all sort of problems
18999 # (the dirname of $[0] is not the place where we might find the
19000 # original and so on. Autoconf is especially sensitive to this).
19001 . "./$as_me.lineno"
19002 # Exit status is that of the last command.
19007 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19013 ECHO_C= ECHO_N= ECHO_T=
19014 case `echo -n x` in
19016 case `echo 'x\c'` in
19017 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19024 if expr a : '\(a\)' >/dev/null 2>&1 &&
19025 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19031 rm -f conf$$ conf$$.exe conf$$.file
19032 if test -d conf$$.dir; then
19033 rm -f conf$$.dir/conf$$.file
19039 if ln -s conf$$.file conf$$ 2>/dev/null; then
19041 # ... but there are two gotchas:
19042 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19043 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19044 # In both cases, we have to default to `cp -p'.
19045 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19047 elif ln conf$$.file conf$$ 2>/dev/null; then
19052 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19053 rmdir conf$$.dir 2>/dev/null
19055 if mkdir -p . 2>/dev/null; then
19058 test -d ./-p && rmdir ./-p
19062 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
19063 # systems may use methods other than mode bits to determine executability.
19064 cat >conf$$.file <<_ASEOF
19068 chmod +x conf$$.file
19069 if test -x conf$$.file >/dev/null 2>&1; then
19070 as_executable_p="test -x"
19076 # Sed expression to map a string onto a valid CPP name.
19077 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19079 # Sed expression to map a string onto a valid variable name.
19080 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19085 # Save the log message, to keep $[0] and so on meaningful, and to
19086 # report actual input values of CONFIG_FILES etc. instead of their
19087 # values after options handling.
19089 This file was extended by LLVM $as_me 3.7.0svn, which was
19090 generated by GNU Autoconf 2.60. Invocation command line was
19092 CONFIG_FILES = $CONFIG_FILES
19093 CONFIG_HEADERS = $CONFIG_HEADERS
19094 CONFIG_LINKS = $CONFIG_LINKS
19095 CONFIG_COMMANDS = $CONFIG_COMMANDS
19098 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19103 cat >>$CONFIG_STATUS <<_ACEOF
19104 # Files that config.status was made for.
19105 config_files="$ac_config_files"
19106 config_headers="$ac_config_headers"
19107 config_commands="$ac_config_commands"
19111 cat >>$CONFIG_STATUS <<\_ACEOF
19113 \`$as_me' instantiates files from templates according to the
19114 current configuration.
19116 Usage: $0 [OPTIONS] [FILE]...
19118 -h, --help print this help, then exit
19119 -V, --version print version number, then exit
19120 -q, --quiet do not print progress messages
19121 -d, --debug don't remove temporary files
19122 --recheck update $as_me by reconfiguring in the same conditions
19123 --file=FILE[:TEMPLATE]
19124 instantiate the configuration file FILE
19125 --header=FILE[:TEMPLATE]
19126 instantiate the configuration header FILE
19128 Configuration files:
19131 Configuration headers:
19134 Configuration commands:
19137 Report bugs to <bug-autoconf@gnu.org>."
19140 cat >>$CONFIG_STATUS <<_ACEOF
19142 LLVM config.status 3.7.0svn
19143 configured by $0, generated by GNU Autoconf 2.60,
19144 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19146 Copyright (C) 2006 Free Software Foundation, Inc.
19147 This config.status script is free software; the Free Software Foundation
19148 gives unlimited permission to copy, distribute and modify it."
19155 cat >>$CONFIG_STATUS <<\_ACEOF
19156 # If no file are specified by the user, then we need to provide default
19157 # value. By we need to know if files were specified by the user.
19163 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19164 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19175 # Handling of the options.
19176 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19178 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19179 echo "$ac_cs_version"; exit ;;
19180 --debug | --debu | --deb | --de | --d | -d )
19182 --file | --fil | --fi | --f )
19184 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19185 ac_need_defaults=false;;
19186 --header | --heade | --head | --hea )
19188 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19189 ac_need_defaults=false;;
19191 # Conflict between --help and --header
19192 { echo "$as_me: error: ambiguous option: $1
19193 Try \`$0 --help' for more information." >&2
19194 { (exit 1); exit 1; }; };;
19195 --help | --hel | -h )
19196 echo "$ac_cs_usage"; exit ;;
19197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19198 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19201 # This is an error.
19202 -*) { echo "$as_me: error: unrecognized option: $1
19203 Try \`$0 --help' for more information." >&2
19204 { (exit 1); exit 1; }; } ;;
19206 *) ac_config_targets="$ac_config_targets $1"
19207 ac_need_defaults=false ;;
19213 ac_configure_extra_args=
19215 if $ac_cs_silent; then
19217 ac_configure_extra_args="$ac_configure_extra_args --silent"
19221 cat >>$CONFIG_STATUS <<_ACEOF
19222 if \$ac_cs_recheck; then
19223 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19224 CONFIG_SHELL=$SHELL
19225 export CONFIG_SHELL
19226 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19230 cat >>$CONFIG_STATUS <<\_ACEOF
19234 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19235 ## Running $as_me. ##
19241 cat >>$CONFIG_STATUS <<_ACEOF
19245 llvm_src="${srcdir}"
19249 cat >>$CONFIG_STATUS <<\_ACEOF
19251 # Handling of arguments.
19252 for ac_config_target in $ac_config_targets
19254 case $ac_config_target in
19255 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19256 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19257 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19258 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19259 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19260 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19261 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19262 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19263 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19264 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19265 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19266 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19267 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19268 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19269 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19270 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19271 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19272 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19273 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19274 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19275 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19276 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19277 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19278 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19279 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19280 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19282 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19283 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19284 { (exit 1); exit 1; }; };;
19289 # If the user did not use the arguments to specify the items to instantiate,
19290 # then the envvar interface is used. Set only those that are not.
19291 # We use the long form for the default assignment because of an extremely
19292 # bizarre bug on SunOS 4.1.3.
19293 if $ac_need_defaults; then
19294 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19295 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19296 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19299 # Have a temporary directory for convenience. Make it in the build tree
19300 # simply because there is no reason against having it here, and in addition,
19301 # creating and moving files from /tmp can sometimes cause problems.
19302 # Hook for its removal unless debugging.
19303 # Note that there is a small window in which the directory will not be cleaned:
19304 # after its creation but before its name has been assigned to `$tmp'.
19308 trap 'exit_status=$?
19309 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19311 trap '{ (exit 1); exit 1; }' 1 2 13 15
19313 # Create a (secure) tmp directory for tmp files.
19316 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19317 test -n "$tmp" && test -d "$tmp"
19320 tmp=./conf$$-$RANDOM
19321 (umask 077 && mkdir "$tmp")
19324 echo "$me: cannot create a temporary directory in ." >&2
19325 { (exit 1); exit 1; }
19329 # Set up the sed scripts for CONFIG_FILES section.
19332 # No need to generate the scripts if there are no CONFIG_FILES.
19333 # This happens for instance when ./config.status config.h
19334 if test -n "$CONFIG_FILES"; then
19341 for ac_last_try in false false false false false :; do
19342 cat >conf$$subs.sed <<_ACEOF
19343 SHELL!$SHELL$ac_delim
19344 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19345 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19346 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19347 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19348 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19349 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19350 exec_prefix!$exec_prefix$ac_delim
19351 prefix!$prefix$ac_delim
19352 program_transform_name!$program_transform_name$ac_delim
19353 bindir!$bindir$ac_delim
19354 sbindir!$sbindir$ac_delim
19355 libexecdir!$libexecdir$ac_delim
19356 datarootdir!$datarootdir$ac_delim
19357 datadir!$datadir$ac_delim
19358 sysconfdir!$sysconfdir$ac_delim
19359 sharedstatedir!$sharedstatedir$ac_delim
19360 localstatedir!$localstatedir$ac_delim
19361 includedir!$includedir$ac_delim
19362 oldincludedir!$oldincludedir$ac_delim
19363 docdir!$docdir$ac_delim
19364 infodir!$infodir$ac_delim
19365 htmldir!$htmldir$ac_delim
19366 dvidir!$dvidir$ac_delim
19367 pdfdir!$pdfdir$ac_delim
19368 psdir!$psdir$ac_delim
19369 libdir!$libdir$ac_delim
19370 localedir!$localedir$ac_delim
19371 mandir!$mandir$ac_delim
19372 DEFS!$DEFS$ac_delim
19373 ECHO_C!$ECHO_C$ac_delim
19374 ECHO_N!$ECHO_N$ac_delim
19375 ECHO_T!$ECHO_T$ac_delim
19376 LIBS!$LIBS$ac_delim
19377 build_alias!$build_alias$ac_delim
19378 host_alias!$host_alias$ac_delim
19379 target_alias!$target_alias$ac_delim
19380 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19381 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19382 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19383 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19384 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19386 CFLAGS!$CFLAGS$ac_delim
19387 LDFLAGS!$LDFLAGS$ac_delim
19388 CPPFLAGS!$CPPFLAGS$ac_delim
19389 ac_ct_CC!$ac_ct_CC$ac_delim
19390 EXEEXT!$EXEEXT$ac_delim
19391 OBJEXT!$OBJEXT$ac_delim
19393 CXXFLAGS!$CXXFLAGS$ac_delim
19394 ac_ct_CXX!$ac_ct_CXX$ac_delim
19396 subdirs!$subdirs$ac_delim
19397 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19398 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19399 build!$build$ac_delim
19400 build_cpu!$build_cpu$ac_delim
19401 build_vendor!$build_vendor$ac_delim
19402 build_os!$build_os$ac_delim
19403 host!$host$ac_delim
19404 host_cpu!$host_cpu$ac_delim
19405 host_vendor!$host_vendor$ac_delim
19406 host_os!$host_os$ac_delim
19407 target!$target$ac_delim
19408 target_cpu!$target_cpu$ac_delim
19409 target_vendor!$target_vendor$ac_delim
19410 target_os!$target_os$ac_delim
19412 HOST_OS!$HOST_OS$ac_delim
19413 TARGET_OS!$TARGET_OS$ac_delim
19414 LINKALL!$LINKALL$ac_delim
19415 NOLINKALL!$NOLINKALL$ac_delim
19416 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19417 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19418 ARCH!$ARCH$ac_delim
19419 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19420 HOST_ARCH!$HOST_ARCH$ac_delim
19421 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19422 BUILD_CC!$BUILD_CC$ac_delim
19423 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19424 BUILD_CXX!$BUILD_CXX$ac_delim
19425 CVSBUILD!$CVSBUILD$ac_delim
19426 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19427 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19428 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19429 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19430 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19431 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19432 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19433 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19434 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19435 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19436 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19437 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19438 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19439 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19442 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19444 elif $ac_last_try; then
19445 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19446 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19447 { (exit 1); exit 1; }; }
19449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19453 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19454 if test -n "$ac_eof"; then
19455 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19456 ac_eof=`expr $ac_eof + 1`
19459 cat >>$CONFIG_STATUS <<_ACEOF
19460 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19461 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19464 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19465 s/^/s,@/; s/!/@,|#_!!_#|/
19468 s/'"$ac_delim"'$/,g/; t
19470 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19471 ' >>$CONFIG_STATUS <conf$$subs.sed
19472 rm -f conf$$subs.sed
19473 cat >>$CONFIG_STATUS <<_ACEOF
19479 for ac_last_try in false false false false false :; do
19480 cat >conf$$subs.sed <<_ACEOF
19481 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19483 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19484 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19485 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19486 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19487 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19488 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19489 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19490 ENABLE_PIC!$ENABLE_PIC$ac_delim
19491 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19492 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19493 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19494 ALL_TARGETS!$ALL_TARGETS$ac_delim
19495 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19496 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19497 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19498 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19499 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19500 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19501 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19502 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19503 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19504 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19505 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19506 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19507 ifGNUmake!$ifGNUmake$ac_delim
19508 LN_S!$LN_S$ac_delim
19512 DATE!$DATE$ac_delim
19513 FIND!$FIND$ac_delim
19514 GREP!$GREP$ac_delim
19515 MKDIR!$MKDIR$ac_delim
19517 RANLIB!$RANLIB$ac_delim
19522 BINPWD!$BINPWD$ac_delim
19524 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19525 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19526 INSTALL_DATA!$INSTALL_DATA$ac_delim
19527 BZIP2!$BZIP2$ac_delim
19529 DOXYGEN!$DOXYGEN$ac_delim
19530 GROFF!$GROFF$ac_delim
19531 GZIPBIN!$GZIPBIN$ac_delim
19532 PDFROFF!$PDFROFF$ac_delim
19535 OCAMLFIND!$OCAMLFIND$ac_delim
19537 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19538 EGREP!$EGREP$ac_delim
19539 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19540 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19541 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19542 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19543 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19544 NO_COMMENT!$NO_COMMENT$ac_delim
19545 PYTHON!$PYTHON$ac_delim
19546 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19547 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19548 USE_OPROFILE!$USE_OPROFILE$ac_delim
19549 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19550 XML2CONFIG!$XML2CONFIG$ac_delim
19551 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19552 LIBXML2_INC!$LIBXML2_INC$ac_delim
19553 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19554 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19555 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19556 MMAP_FILE!$MMAP_FILE$ac_delim
19557 SHLIBEXT!$SHLIBEXT$ac_delim
19558 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19559 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19560 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19561 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19562 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19563 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19564 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19565 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19566 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19567 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19568 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19569 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19570 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19571 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19572 RPATH!$RPATH$ac_delim
19573 RDYNAMIC!$RDYNAMIC$ac_delim
19574 program_prefix!$program_prefix$ac_delim
19575 LIBOBJS!$LIBOBJS$ac_delim
19576 LTLIBOBJS!$LTLIBOBJS$ac_delim
19579 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
19581 elif $ac_last_try; then
19582 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19583 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19584 { (exit 1); exit 1; }; }
19586 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19590 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19591 if test -n "$ac_eof"; then
19592 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19593 ac_eof=`expr $ac_eof + 1`
19596 cat >>$CONFIG_STATUS <<_ACEOF
19597 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19598 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19601 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19602 s/^/s,@/; s/!/@,|#_!!_#|/
19605 s/'"$ac_delim"'$/,g/; t
19607 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19608 ' >>$CONFIG_STATUS <conf$$subs.sed
19609 rm -f conf$$subs.sed
19610 cat >>$CONFIG_STATUS <<_ACEOF
19615 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19616 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19617 # trailing colons and then remove the whole line if VPATH becomes empty
19618 # (actually we leave an empty line to preserve line numbers).
19619 if test "x$srcdir" = x.; then
19620 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19621 s/:*\$(srcdir):*/:/
19622 s/:*\${srcdir}:*/:/
19624 s/^\([^=]*=[ ]*\):*/\1/
19630 cat >>$CONFIG_STATUS <<\_ACEOF
19631 fi # test -n "$CONFIG_FILES"
19634 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19637 :[FHLC]) ac_mode=$ac_tag; continue;;
19639 case $ac_mode$ac_tag in
19641 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19642 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19643 { (exit 1); exit 1; }; };;
19644 :[FH]-) ac_tag=-:-;;
19645 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19662 -) ac_f="$tmp/stdin";;
19663 *) # Look for the file first in the build tree, then in the source tree
19664 # (if the path is not absolute). The absolute path cannot be DOS-style,
19665 # because $ac_f cannot contain `:'.
19669 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19671 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19672 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19673 { (exit 1); exit 1; }; };;
19675 ac_file_inputs="$ac_file_inputs $ac_f"
19678 # Let's still pretend it is `configure' which instantiates (i.e., don't
19679 # use $as_me), people would be surprised to read:
19680 # /* config.h. Generated by config.status. */
19681 configure_input="Generated from "`IFS=:
19682 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19683 if test x"$ac_file" != x-; then
19684 configure_input="$ac_file. $configure_input"
19685 { echo "$as_me:$LINENO: creating $ac_file" >&5
19686 echo "$as_me: creating $ac_file" >&6;}
19690 *:-:* | *:-) cat >"$tmp/stdin";;
19695 ac_dir=`$as_dirname -- "$ac_file" ||
19696 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19697 X"$ac_file" : 'X\(//\)[^/]' \| \
19698 X"$ac_file" : 'X\(//\)$' \| \
19699 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19705 /^X\(\/\/\)[^/].*/{
19720 -*) as_dir=./$as_dir;;
19722 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19726 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19727 *) as_qdir=$as_dir;;
19729 as_dirs="'$as_qdir' $as_dirs"
19730 as_dir=`$as_dirname -- "$as_dir" ||
19731 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19732 X"$as_dir" : 'X\(//\)[^/]' \| \
19733 X"$as_dir" : 'X\(//\)$' \| \
19734 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19740 /^X\(\/\/\)[^/].*/{
19753 test -d "$as_dir" && break
19755 test -z "$as_dirs" || eval "mkdir $as_dirs"
19756 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19757 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19758 { (exit 1); exit 1; }; }; }
19762 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19764 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19765 # A ".." for each directory in $ac_dir_suffix.
19766 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19767 case $ac_top_builddir_sub in
19768 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19769 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19772 ac_abs_top_builddir=$ac_pwd
19773 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19774 # for backward compatibility:
19775 ac_top_builddir=$ac_top_build_prefix
19778 .) # We are building in place.
19780 ac_top_srcdir=$ac_top_builddir_sub
19781 ac_abs_top_srcdir=$ac_pwd ;;
19782 [\\/]* | ?:[\\/]* ) # Absolute name.
19783 ac_srcdir=$srcdir$ac_dir_suffix;
19784 ac_top_srcdir=$srcdir
19785 ac_abs_top_srcdir=$srcdir ;;
19786 *) # Relative name.
19787 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19788 ac_top_srcdir=$ac_top_build_prefix$srcdir
19789 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19791 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19801 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19802 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19806 cat >>$CONFIG_STATUS <<\_ACEOF
19807 # If the template does not know about datarootdir, expand it.
19808 # FIXME: This hack should be removed a few years after 2.60.
19809 ac_datarootdir_hack=; ac_datarootdir_seen=
19811 case `sed -n '/datarootdir/ {
19820 ' $ac_file_inputs` in
19821 *datarootdir*) ac_datarootdir_seen=yes;;
19822 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19823 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19824 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19826 cat >>$CONFIG_STATUS <<_ACEOF
19827 ac_datarootdir_hack='
19828 s&@datadir@&$datadir&g
19829 s&@docdir@&$docdir&g
19830 s&@infodir@&$infodir&g
19831 s&@localedir@&$localedir&g
19832 s&@mandir@&$mandir&g
19833 s&\\\${datarootdir}&$datarootdir&g' ;;
19837 # Neutralize VPATH when `$srcdir' = `.'.
19838 # Shell code in configure.ac might set extrasub.
19839 # FIXME: do we really want to maintain this feature?
19840 cat >>$CONFIG_STATUS <<_ACEOF
19844 cat >>$CONFIG_STATUS <<\_ACEOF
19846 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19847 s&@configure_input@&$configure_input&;t t
19848 s&@top_builddir@&$ac_top_builddir_sub&;t t
19849 s&@srcdir@&$ac_srcdir&;t t
19850 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19851 s&@top_srcdir@&$ac_top_srcdir&;t t
19852 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19853 s&@builddir@&$ac_builddir&;t t
19854 s&@abs_builddir@&$ac_abs_builddir&;t t
19855 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19856 s&@INSTALL@&$ac_INSTALL&;t t
19857 $ac_datarootdir_hack
19858 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
19860 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19861 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19862 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19863 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19864 which seems to be undefined. Please make sure it is defined." >&5
19865 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19866 which seems to be undefined. Please make sure it is defined." >&2;}
19870 -) cat "$tmp/out"; rm -f "$tmp/out";;
19871 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19880 # Transform confdefs.h into a sed script `conftest.defines', that
19881 # substitutes the proper values into config.h.in to produce config.h.
19882 rm -f conftest.defines conftest.tail
19883 # First, append a space to every undef/define line, to ease matching.
19884 echo 's/$/ /' >conftest.defines
19885 # Then, protect against being on the right side of a sed subst, or in
19886 # an unquoted here document, in config.status. If some macros were
19887 # called several times there might be several #defines for the same
19888 # symbol, which is useless. But do not sort them, since the last
19889 # AC_DEFINE must be honored.
19890 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19891 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19892 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19893 # PARAMS is the parameter list in the macro definition--in most cases, it's
19894 # just an empty string.
19895 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19896 ac_dB='\\)[ (].*,\\1define\\2'
19904 s/^[ ]*#[ ]*define[ ][ ]*//
19909 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19910 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19911 ' >>conftest.defines
19913 # Remove the space that was appended to ease matching.
19914 # Then replace #undef with comments. This is necessary, for
19915 # example, in the case of _POSIX_SOURCE, which is predefined and required
19916 # on some systems where configure will not decide to define it.
19917 # (The regexp can be short, since the line contains either #define or #undef.)
19919 s,^[ #]*u.*,/* & */,' >>conftest.defines
19921 # Break up conftest.defines:
19922 ac_max_sed_lines=50
19924 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19925 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19926 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19928 ac_in='$ac_file_inputs'
19929 ac_out='"$tmp/out1"'
19930 ac_nxt='"$tmp/out2"'
19934 # Write a here document:
19935 cat >>$CONFIG_STATUS <<_ACEOF
19936 # First, check the format of the line:
19937 cat >"\$tmp/defines.sed" <<\\CEOF
19938 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19939 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19943 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19945 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19946 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19947 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19948 grep . conftest.tail >/dev/null || break
19949 rm -f conftest.defines
19950 mv conftest.tail conftest.defines
19952 rm -f conftest.defines conftest.tail
19954 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19955 cat >>$CONFIG_STATUS <<\_ACEOF
19956 if test x"$ac_file" != x-; then
19957 echo "/* $configure_input */" >"$tmp/config.h"
19958 cat "$ac_result" >>"$tmp/config.h"
19959 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19960 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19961 echo "$as_me: $ac_file is unchanged" >&6;}
19964 mv "$tmp/config.h" $ac_file
19967 echo "/* $configure_input */"
19973 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19974 echo "$as_me: executing $ac_file commands" >&6;}
19979 case $ac_file$ac_mode in
19980 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19981 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19982 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19983 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19984 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19985 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19986 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19987 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19988 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19989 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19990 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19992 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19994 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19996 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19998 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20000 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20002 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20009 { (exit 0); exit 0; }
20011 chmod +x $CONFIG_STATUS
20012 ac_clean_files=$ac_clean_files_save
20015 # configure is writing to config.log, and then calls config.status.
20016 # config.status does its own redirection, appending to config.log.
20017 # Unfortunately, on DOS this fails, as config.log is still kept open
20018 # by configure, so config.status won't be able to write to it; its
20019 # output is simply discarded. So we exec the FD to /dev/null,
20020 # effectively closing config.log, so it can be properly (re)opened and
20021 # appended to by config.status. When coming back to configure, we
20022 # need to make the FD available again.
20023 if test "$no_create" != yes; then
20025 ac_config_status_args=
20026 test "$silent" = yes &&
20027 ac_config_status_args="$ac_config_status_args --quiet"
20029 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20031 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20032 # would make configure fail if this is the last instruction.
20033 $ac_cs_success || { (exit 1); exit 1; }
20037 # CONFIG_SUBDIRS section.
20039 if test "$no_recursion" != yes; then
20041 # Remove --cache-file and --srcdir arguments so they do not pile up.
20042 ac_sub_configure_args=
20044 eval "set x $ac_configure_args"
20048 if test -n "$ac_prev"; then
20053 -cache-file | --cache-file | --cache-fil | --cache-fi \
20054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20055 ac_prev=cache_file ;;
20056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20060 --config-cache | -C)
20062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20072 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20074 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20078 # Always prepend --prefix to ensure using the same prefix
20079 # in subdir configurations.
20080 ac_arg="--prefix=$prefix"
20082 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20084 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20087 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20089 # Do not complain, so a configure script can configure whichever
20090 # parts of a large source tree are present.
20091 test -d "$srcdir/$ac_dir" || continue
20093 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20094 echo "$as_me:$LINENO: $ac_msg" >&5
20098 -*) as_dir=./$as_dir;;
20100 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20104 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20105 *) as_qdir=$as_dir;;
20107 as_dirs="'$as_qdir' $as_dirs"
20108 as_dir=`$as_dirname -- "$as_dir" ||
20109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20110 X"$as_dir" : 'X\(//\)[^/]' \| \
20111 X"$as_dir" : 'X\(//\)$' \| \
20112 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20118 /^X\(\/\/\)[^/].*/{
20131 test -d "$as_dir" && break
20133 test -z "$as_dirs" || eval "mkdir $as_dirs"
20134 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20135 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20136 { (exit 1); exit 1; }; }; }
20140 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20142 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20143 # A ".." for each directory in $ac_dir_suffix.
20144 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20145 case $ac_top_builddir_sub in
20146 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20147 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20150 ac_abs_top_builddir=$ac_pwd
20151 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20152 # for backward compatibility:
20153 ac_top_builddir=$ac_top_build_prefix
20156 .) # We are building in place.
20158 ac_top_srcdir=$ac_top_builddir_sub
20159 ac_abs_top_srcdir=$ac_pwd ;;
20160 [\\/]* | ?:[\\/]* ) # Absolute name.
20161 ac_srcdir=$srcdir$ac_dir_suffix;
20162 ac_top_srcdir=$srcdir
20163 ac_abs_top_srcdir=$srcdir ;;
20164 *) # Relative name.
20165 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20166 ac_top_srcdir=$ac_top_build_prefix$srcdir
20167 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20169 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20174 # Check for guested configure; otherwise get Cygnus style configure.
20175 if test -f "$ac_srcdir/configure.gnu"; then
20176 ac_sub_configure=$ac_srcdir/configure.gnu
20177 elif test -f "$ac_srcdir/configure"; then
20178 ac_sub_configure=$ac_srcdir/configure
20179 elif test -f "$ac_srcdir/configure.in"; then
20180 # This should be Cygnus configure.
20181 ac_sub_configure=$ac_aux_dir/configure
20183 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20184 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20188 # The recursion is here.
20189 if test -n "$ac_sub_configure"; then
20190 # Make the cache file name correct relative to the subdirectory.
20191 case $cache_file in
20192 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20193 *) # Relative name.
20194 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20197 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20198 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20199 # The eval makes quoting arguments work.
20200 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20201 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20202 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20203 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20204 { (exit 1); exit 1; }; }