2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.6.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.6.0svn'
565 PACKAGE_STRING='LLVM 3.6.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_CLANG_STATIC_ANALYZER
698 ENABLE_EXPENSIVE_CHECKS
718 LLVM_ENUM_ASM_PRINTERS
719 LLVM_ENUM_ASM_PARSERS
720 LLVM_ENUM_DISASSEMBLERS
761 HAVE_LINK_VERSION_SCRIPT
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 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.6.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.6.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.6.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.6.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=6
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
1949 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1958 for ac_dir in autoconf "$srcdir"/autoconf; do
1959 if test -f "$ac_dir/install-sh"; then
1961 ac_install_sh="$ac_aux_dir/install-sh -c"
1963 elif test -f "$ac_dir/install.sh"; then
1965 ac_install_sh="$ac_aux_dir/install.sh -c"
1967 elif test -f "$ac_dir/shtool"; then
1969 ac_install_sh="$ac_aux_dir/shtool install -c"
1973 if test -z "$ac_aux_dir"; then
1974 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1975 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1976 { (exit 1); exit 1; }; }
1979 # These three variables are undocumented and unsupported,
1980 # and are intended to be withdrawn in a future Autoconf release.
1981 # They can cause serious problems if a builder's source tree is in a directory
1982 # whose full name contains unusual characters.
1983 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1984 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1985 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1989 if test ${srcdir} != "." ; then
1990 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1991 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1992 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1993 { (exit 1); exit 1; }; }
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 if test -n "$ac_tool_prefix"; then
2006 for ac_prog in clang gcc
2008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2025 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 if test -n "$CC"; then
2037 { echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6; }
2040 { echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6; }
2045 test -n "$CC" && break
2048 if test -z "$CC"; then
2050 for ac_prog in clang gcc
2052 # Extract the first word of "$ac_prog", so it can be a program name with args.
2053 set dummy $ac_prog; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test -n "$ac_ct_CC"; then
2060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 ac_cv_prog_ac_ct_CC="$ac_prog"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2080 if test -n "$ac_ct_CC"; then
2081 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2082 echo "${ECHO_T}$ac_ct_CC" >&6; }
2084 { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2089 test -n "$ac_ct_CC" && break
2092 if test "x$ac_ct_CC" = x; then
2095 case $cross_compiling:$ac_tool_warned in
2097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2098 whose name does not start with the host triplet. If you think this
2099 configuration is useful to you, please write to autoconf@gnu.org." >&5
2100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2101 whose name does not start with the host triplet. If you think this
2102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2103 ac_tool_warned=yes ;;
2110 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2111 See \`config.log' for more details." >&5
2112 echo "$as_me: error: no acceptable C compiler found in \$PATH
2113 See \`config.log' for more details." >&2;}
2114 { (exit 1); exit 1; }; }
2116 # Provide some information about the compiler.
2117 echo "$as_me:$LINENO: checking for C compiler version" >&5
2118 ac_compiler=`set X $ac_compile; echo $2`
2119 { (ac_try="$ac_compiler --version >&5"
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2125 (eval "$ac_compiler --version >&5") 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }
2129 { (ac_try="$ac_compiler -v >&5"
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2135 (eval "$ac_compiler -v >&5") 2>&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2139 { (ac_try="$ac_compiler -V >&5"
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2145 (eval "$ac_compiler -V >&5") 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2150 cat >conftest.$ac_ext <<_ACEOF
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h. */
2165 ac_clean_files_save=$ac_clean_files
2166 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2167 # Try to create an executable without -o first, disregard a.out.
2168 # It will help us diagnose broken compilers, and finding out an intuition
2170 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2171 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2172 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2174 # List of possible output files, starting from the most likely.
2175 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2176 # only as a last resort. b.out is created by i960 compilers.
2177 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2179 # The IRIX 6 linker writes into existing files which may not be
2180 # executable, retaining their permissions. Remove them first so a
2181 # subsequent execution test works.
2183 for ac_file in $ac_files
2186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2187 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2192 if { (ac_try="$ac_link_default"
2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195 *) ac_try_echo=$ac_try;;
2197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2198 (eval "$ac_link_default") 2>&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }; then
2202 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2203 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2204 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2205 # so that the user can short-circuit this test for compilers unknown to
2207 for ac_file in $ac_files
2209 test -f "$ac_file" || continue
2211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2214 # We found the default executable, but exeext='' is most
2218 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2220 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2222 # We set ac_cv_exeext here because the later test for it is not
2223 # safe: cross compilers may not add the suffix if given an `-o'
2224 # argument, so we may need to know it at that point already.
2225 # Even if this section looks crufty: it has the advantage of
2232 test "$ac_cv_exeext" = no && ac_cv_exeext=
2235 echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2238 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: C compiler cannot create executables
2241 See \`config.log' for more details." >&2;}
2242 { (exit 77); exit 77; }; }
2245 ac_exeext=$ac_cv_exeext
2246 { echo "$as_me:$LINENO: result: $ac_file" >&5
2247 echo "${ECHO_T}$ac_file" >&6; }
2249 # Check that the compiler produces executables we can run. If not, either
2250 # the compiler is broken, or we cross compile.
2251 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2252 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2253 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2254 # If not cross compiling, check that we can run a simple program.
2255 if test "$cross_compiling" != yes; then
2256 if { ac_try='./$ac_file'
2257 { (case "(($ac_try" in
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2262 (eval "$ac_try") 2>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; }; then
2268 if test "$cross_compiling" = maybe; then
2271 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2272 If you meant to cross compile, use \`--host'.
2273 See \`config.log' for more details." >&5
2274 echo "$as_me: error: cannot run C compiled programs.
2275 If you meant to cross compile, use \`--host'.
2276 See \`config.log' for more details." >&2;}
2277 { (exit 1); exit 1; }; }
2281 { echo "$as_me:$LINENO: result: yes" >&5
2282 echo "${ECHO_T}yes" >&6; }
2284 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2285 ac_clean_files=$ac_clean_files_save
2286 # Check that the compiler produces executables we can run. If not, either
2287 # the compiler is broken, or we cross compile.
2288 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2289 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2290 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2291 echo "${ECHO_T}$cross_compiling" >&6; }
2293 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2294 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2295 if { (ac_try="$ac_link"
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301 (eval "$ac_link") 2>&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; then
2305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2306 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2307 # work properly (i.e., refer to `conftest.exe'), while it won't with
2309 for ac_file in conftest.exe conftest conftest.*; do
2310 test -f "$ac_file" || continue
2312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2319 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2320 See \`config.log' for more details." >&5
2321 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2322 See \`config.log' for more details." >&2;}
2323 { (exit 1); exit 1; }; }
2326 rm -f conftest$ac_cv_exeext
2327 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2328 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2330 rm -f conftest.$ac_ext
2331 EXEEXT=$ac_cv_exeext
2333 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2334 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2335 if test "${ac_cv_objext+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 cat >conftest.$ac_ext <<_ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2353 rm -f conftest.o conftest.obj
2354 if { (ac_try="$ac_compile"
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_compile") 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; then
2364 for ac_file in conftest.o conftest.obj conftest.*; do
2365 test -f "$ac_file" || continue;
2367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2368 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2376 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2377 See \`config.log' for more details." >&5
2378 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2379 See \`config.log' for more details." >&2;}
2380 { (exit 1); exit 1; }; }
2383 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2385 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2386 echo "${ECHO_T}$ac_cv_objext" >&6; }
2387 OBJEXT=$ac_cv_objext
2389 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2390 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2391 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 cat >conftest.$ac_ext <<_ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2412 rm -f conftest.$ac_objext
2413 if { (ac_try="$ac_compile"
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval "$ac_compile") 2>conftest.er1
2421 grep -v '^ *+' conftest.er1 >conftest.err
2423 cat conftest.err >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); } &&
2426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2427 { (case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_try") 2>&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; } &&
2436 { ac_try='test -s conftest.$ac_objext'
2437 { (case "(($ac_try" in
2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439 *) ac_try_echo=$ac_try;;
2441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2442 (eval "$ac_try") 2>&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; }; then
2448 echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2458 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2459 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2460 GCC=`test $ac_compiler_gnu = yes && echo yes`
2461 ac_test_CFLAGS=${CFLAGS+set}
2462 ac_save_CFLAGS=$CFLAGS
2463 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2464 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_cc_g+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 ac_save_c_werror_flag=$ac_c_werror_flag
2469 ac_c_werror_flag=yes
2472 cat >conftest.$ac_ext <<_ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h. */
2487 rm -f conftest.$ac_objext
2488 if { (ac_try="$ac_compile"
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2494 (eval "$ac_compile") 2>conftest.er1
2496 grep -v '^ *+' conftest.er1 >conftest.err
2498 cat conftest.err >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } &&
2501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2502 { (case "(($ac_try" in
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507 (eval "$ac_try") 2>&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; } &&
2511 { ac_try='test -s conftest.$ac_objext'
2512 { (case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517 (eval "$ac_try") 2>&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2527 cat >conftest.$ac_ext <<_ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2542 rm -f conftest.$ac_objext
2543 if { (ac_try="$ac_compile"
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_compile") 2>conftest.er1
2551 grep -v '^ *+' conftest.er1 >conftest.err
2553 cat conftest.err >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } &&
2556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2557 { (case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_try") 2>&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; } &&
2566 { ac_try='test -s conftest.$ac_objext'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2581 ac_c_werror_flag=$ac_save_c_werror_flag
2583 cat >conftest.$ac_ext <<_ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2598 rm -f conftest.$ac_objext
2599 if { (ac_try="$ac_compile"
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2605 (eval "$ac_compile") 2>conftest.er1
2607 grep -v '^ *+' conftest.er1 >conftest.err
2609 cat conftest.err >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } &&
2612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2613 { (case "(($ac_try" in
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_try") 2>&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_try") 2>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 ac_c_werror_flag=$ac_save_c_werror_flag
2649 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2650 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2651 if test "$ac_test_CFLAGS" = set; then
2652 CFLAGS=$ac_save_CFLAGS
2653 elif test $ac_cv_prog_cc_g = yes; then
2654 if test "$GCC" = yes; then
2660 if test "$GCC" = yes; then
2666 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2667 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2668 if test "${ac_cv_prog_cc_c89+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 ac_cv_prog_cc_c89=no
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2681 #include <sys/types.h>
2682 #include <sys/stat.h>
2683 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2684 struct buf { int x; };
2685 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2686 static char *e (p, i)
2692 static char *f (char * (*g) (char **, int), char **p, ...)
2697 s = g (p, va_arg (v,int));
2702 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2703 function prototypes and stuff, but not '\xHH' hex character constants.
2704 These don't provoke an error unfortunately, instead are silently treated
2705 as 'x'. The following induces an error, until -std is added to get
2706 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2707 array size at least. It's necessary to write '\x00'==0 to get something
2708 that's true only with -std. */
2709 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2711 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2712 inside strings and character constants. */
2714 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2716 int test (int i, double x);
2717 struct s1 {int (*f) (int a);};
2718 struct s2 {int (*f) (double a);};
2719 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2730 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2731 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2733 CC="$ac_save_CC $ac_arg"
2734 rm -f conftest.$ac_objext
2735 if { (ac_try="$ac_compile"
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compile") 2>conftest.er1
2743 grep -v '^ *+' conftest.er1 >conftest.err
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2749 { (case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_try") 2>&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_try") 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; }; then
2768 ac_cv_prog_cc_c89=$ac_arg
2770 echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2776 rm -f core conftest.err conftest.$ac_objext
2777 test "x$ac_cv_prog_cc_c89" != "xno" && break
2779 rm -f conftest.$ac_ext
2784 case "x$ac_cv_prog_cc_c89" in
2786 { echo "$as_me:$LINENO: result: none needed" >&5
2787 echo "${ECHO_T}none needed" >&6; } ;;
2789 { echo "$as_me:$LINENO: result: unsupported" >&5
2790 echo "${ECHO_T}unsupported" >&6; } ;;
2792 CC="$CC $ac_cv_prog_cc_c89"
2793 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2794 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805 ac_cpp='$CXXCPP $CPPFLAGS'
2806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2809 if test -z "$CXX"; then
2810 if test -n "$CCC"; then
2813 if test -n "$ac_tool_prefix"; then
2814 for ac_prog in clang++ g++
2816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2820 if test "${ac_cv_prog_CXX+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 if test -n "$CXX"; then
2824 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 if test -n "$CXX"; then
2845 { echo "$as_me:$LINENO: result: $CXX" >&5
2846 echo "${ECHO_T}$CXX" >&6; }
2848 { echo "$as_me:$LINENO: result: no" >&5
2849 echo "${ECHO_T}no" >&6; }
2853 test -n "$CXX" && break
2856 if test -z "$CXX"; then
2858 for ac_prog in clang++ g++
2860 # Extract the first word of "$ac_prog", so it can be a program name with args.
2861 set dummy $ac_prog; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 if test -n "$ac_ct_CXX"; then
2868 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_ac_ct_CXX="$ac_prog"
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2888 if test -n "$ac_ct_CXX"; then
2889 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2890 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2892 { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2897 test -n "$ac_ct_CXX" && break
2900 if test "x$ac_ct_CXX" = x; then
2903 case $cross_compiling:$ac_tool_warned in
2905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2906 whose name does not start with the host triplet. If you think this
2907 configuration is useful to you, please write to autoconf@gnu.org." >&5
2908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2909 whose name does not start with the host triplet. If you think this
2910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2911 ac_tool_warned=yes ;;
2919 # Provide some information about the compiler.
2920 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2921 ac_compiler=`set X $ac_compile; echo $2`
2922 { (ac_try="$ac_compiler --version >&5"
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_compiler --version >&5") 2>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }
2932 { (ac_try="$ac_compiler -v >&5"
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compiler -v >&5") 2>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }
2942 { (ac_try="$ac_compiler -V >&5"
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compiler -V >&5") 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }
2953 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2954 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2955 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 cat >conftest.$ac_ext <<_ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2976 rm -f conftest.$ac_objext
2977 if { (ac_try="$ac_compile"
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>conftest.er1
2985 grep -v '^ *+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2991 { (case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_try") 2>&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; } &&
3000 { ac_try='test -s conftest.$ac_objext'
3001 { (case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_try") 2>&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; }; then
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3019 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3022 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3023 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3024 GXX=`test $ac_compiler_gnu = yes && echo yes`
3025 ac_test_CXXFLAGS=${CXXFLAGS+set}
3026 ac_save_CXXFLAGS=$CXXFLAGS
3027 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3028 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3029 if test "${ac_cv_prog_cxx_g+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3033 ac_cxx_werror_flag=yes
3036 cat >conftest.$ac_ext <<_ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3051 rm -f conftest.$ac_objext
3052 if { (ac_try="$ac_compile"
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compile") 2>conftest.er1
3060 grep -v '^ *+' conftest.er1 >conftest.err
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } &&
3065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3066 { (case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_try") 2>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }; } &&
3075 { ac_try='test -s conftest.$ac_objext'
3076 { (case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_try") 2>&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; }; then
3085 ac_cv_prog_cxx_g=yes
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3091 cat >conftest.$ac_ext <<_ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h. */
3106 rm -f conftest.$ac_objext
3107 if { (ac_try="$ac_compile"
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_compile") 2>conftest.er1
3115 grep -v '^ *+' conftest.er1 >conftest.err
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } &&
3120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3121 { (case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_try") 2>&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; } &&
3130 { ac_try='test -s conftest.$ac_objext'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3142 echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3147 cat >conftest.$ac_ext <<_ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_compile") 2>conftest.er1
3171 grep -v '^ *+' conftest.er1 >conftest.err
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3177 { (case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_try") 2>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; } &&
3186 { ac_try='test -s conftest.$ac_objext'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3196 ac_cv_prog_cxx_g=yes
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3213 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3214 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3215 if test "$ac_test_CXXFLAGS" = set; then
3216 CXXFLAGS=$ac_save_CXXFLAGS
3217 elif test $ac_cv_prog_cxx_g = yes; then
3218 if test "$GXX" = yes; then
3224 if test "$GXX" = yes; then
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3242 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3243 # On Suns, sometimes $CPP names a directory.
3244 if test -n "$CPP" && test -d "$CPP"; then
3247 if test -z "$CPP"; then
3248 if test "${ac_cv_prog_CPP+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 # Double quotes because CPP needs to be expanded
3252 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3255 for ac_c_preproc_warn_flag in '' yes
3257 # Use a header file that comes with gcc, so configuring glibc
3258 # with a fresh cross-compiler works.
3259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3260 # <limits.h> exists even on freestanding compilers.
3261 # On the NeXT, cc -E runs the code through the compiler's parser,
3262 # not just through cpp. "Syntax error" is here to catch this case.
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3270 # include <limits.h>
3272 # include <assert.h>
3276 if { (ac_try="$ac_cpp conftest.$ac_ext"
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3284 grep -v '^ *+' conftest.er1 >conftest.err
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } >/dev/null; then
3289 if test -s conftest.err; then
3290 ac_cpp_err=$ac_c_preproc_warn_flag
3291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3298 if test -z "$ac_cpp_err"; then
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3304 # Broken: fails on valid input.
3308 rm -f conftest.err conftest.$ac_ext
3310 # OK, works on sane cases. Now check whether nonexistent headers
3311 # can be detected and how.
3312 cat >conftest.$ac_ext <<_ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3318 #include <ac_nonexistent.h>
3320 if { (ac_try="$ac_cpp conftest.$ac_ext"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3328 grep -v '^ *+' conftest.er1 >conftest.err
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } >/dev/null; then
3333 if test -s conftest.err; then
3334 ac_cpp_err=$ac_c_preproc_warn_flag
3335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3342 if test -z "$ac_cpp_err"; then
3343 # Broken: success on invalid input.
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 # Passes both tests.
3354 rm -f conftest.err conftest.$ac_ext
3357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3358 rm -f conftest.err conftest.$ac_ext
3359 if $ac_preproc_ok; then
3371 { echo "$as_me:$LINENO: result: $CPP" >&5
3372 echo "${ECHO_T}$CPP" >&6; }
3374 for ac_c_preproc_warn_flag in '' yes
3376 # Use a header file that comes with gcc, so configuring glibc
3377 # with a fresh cross-compiler works.
3378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3379 # <limits.h> exists even on freestanding compilers.
3380 # On the NeXT, cc -E runs the code through the compiler's parser,
3381 # not just through cpp. "Syntax error" is here to catch this case.
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3389 # include <limits.h>
3391 # include <assert.h>
3395 if { (ac_try="$ac_cpp conftest.$ac_ext"
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3403 grep -v '^ *+' conftest.er1 >conftest.err
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } >/dev/null; then
3408 if test -s conftest.err; then
3409 ac_cpp_err=$ac_c_preproc_warn_flag
3410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417 if test -z "$ac_cpp_err"; then
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3423 # Broken: fails on valid input.
3427 rm -f conftest.err conftest.$ac_ext
3429 # OK, works on sane cases. Now check whether nonexistent headers
3430 # can be detected and how.
3431 cat >conftest.$ac_ext <<_ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3437 #include <ac_nonexistent.h>
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461 if test -z "$ac_cpp_err"; then
3462 # Broken: success on invalid input.
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3468 # Passes both tests.
3473 rm -f conftest.err conftest.$ac_ext
3476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477 rm -f conftest.err conftest.$ac_ext
3478 if $ac_preproc_ok; then
3481 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3482 See \`config.log' for more details." >&5
3483 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3484 See \`config.log' for more details." >&2;}
3485 { (exit 1); exit 1; }; }
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495 if test "$CXX" = "clang++" ; then
3496 { echo "$as_me:$LINENO: checking whether clang works" >&5
3497 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3499 ac_cpp='$CXXCPP $CPPFLAGS'
3500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3505 cat >conftest.$ac_ext <<_ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3512 #if __has_include (<cxxabi.h>)
3515 #if __has_include (<unwind.h>)
3527 rm -f conftest.$ac_objext
3528 if { (ac_try="$ac_compile"
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534 (eval "$ac_compile") 2>conftest.er1
3536 grep -v '^ *+' conftest.er1 >conftest.err
3538 cat conftest.err >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } &&
3541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3542 { (case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_try") 2>&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; } &&
3551 { ac_try='test -s conftest.$ac_objext'
3552 { (case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_try") 2>&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3562 { echo "$as_me:$LINENO: result: yes" >&5
3563 echo "${ECHO_T}yes" >&6; }
3566 echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3570 { echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6; }
3572 { { 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
3573 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;}
3574 { (exit 1); exit 1; }; }
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3588 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3590 ac_cpp='$CXXCPP $CPPFLAGS'
3591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3595 llvm_cv_cxx_compiler=unknown
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3616 grep -v '^ *+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3622 { (case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_try") 2>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest.$ac_objext'
3632 { (case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_try") 2>&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3641 llvm_cv_cxx_compiler=clang
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3657 rm -f conftest.$ac_objext
3658 if { (ac_try="$ac_compile"
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664 (eval "$ac_compile") 2>conftest.er1
3666 grep -v '^ *+' conftest.er1 >conftest.err
3668 cat conftest.err >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3672 { (case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_try") 2>&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; } &&
3681 { ac_try='test -s conftest.$ac_objext'
3682 { (case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_try") 2>&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 llvm_cv_cxx_compiler=gcc
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3710 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3714 if test -d ${srcdir}/projects/test-suite ; then
3715 subdirs="$subdirs projects/test-suite"
3719 if test -d ${srcdir}/projects/llvm-test ; then
3720 subdirs="$subdirs projects/llvm-test"
3724 if test -d ${srcdir}/projects/poolalloc ; then
3725 subdirs="$subdirs projects/poolalloc"
3729 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3730 subdirs="$subdirs projects/llvm-poolalloc"
3734 for i in `ls ${srcdir}/projects`
3736 if test -d ${srcdir}/projects/${i} ; then
3738 safecode) subdirs="$subdirs projects/safecode"
3746 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3747 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3753 # Check whether --enable-polly was given.
3754 if test "${enable_polly+set}" = set; then
3755 enableval=$enable_polly;
3760 case "$enableval" in
3765 default) ENABLE_POLLY=1
3767 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3768 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3769 { (exit 1); exit 1; }; } ;;
3773 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3776 subdirs="$subdirs tools/polly"
3781 # Make sure we can run config.sub.
3782 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3783 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3784 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3785 { (exit 1); exit 1; }; }
3787 { echo "$as_me:$LINENO: checking build system type" >&5
3788 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3789 if test "${ac_cv_build+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 ac_build_alias=$build_alias
3793 test "x$ac_build_alias" = x &&
3794 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3795 test "x$ac_build_alias" = x &&
3796 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3797 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3798 { (exit 1); exit 1; }; }
3799 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3800 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3801 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3802 { (exit 1); exit 1; }; }
3805 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3806 echo "${ECHO_T}$ac_cv_build" >&6; }
3807 case $ac_cv_build in
3809 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3810 echo "$as_me: error: invalid value of canonical build" >&2;}
3811 { (exit 1); exit 1; }; };;
3814 ac_save_IFS=$IFS; IFS='-'
3820 # Remember, the first character of IFS is used to create $*,
3821 # except with old shells:
3824 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3827 { echo "$as_me:$LINENO: checking host system type" >&5
3828 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3829 if test "${ac_cv_host+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 if test "x$host_alias" = x; then
3833 ac_cv_host=$ac_cv_build
3835 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3836 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3837 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3838 { (exit 1); exit 1; }; }
3842 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3843 echo "${ECHO_T}$ac_cv_host" >&6; }
3846 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3847 echo "$as_me: error: invalid value of canonical host" >&2;}
3848 { (exit 1); exit 1; }; };;
3851 ac_save_IFS=$IFS; IFS='-'
3857 # Remember, the first character of IFS is used to create $*,
3858 # except with old shells:
3861 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3864 { echo "$as_me:$LINENO: checking target system type" >&5
3865 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3866 if test "${ac_cv_target+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 if test "x$target_alias" = x; then
3870 ac_cv_target=$ac_cv_host
3872 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3873 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3874 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3875 { (exit 1); exit 1; }; }
3879 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3880 echo "${ECHO_T}$ac_cv_target" >&6; }
3881 case $ac_cv_target in
3883 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3884 echo "$as_me: error: invalid value of canonical target" >&2;}
3885 { (exit 1); exit 1; }; };;
3887 target=$ac_cv_target
3888 ac_save_IFS=$IFS; IFS='-'
3894 # Remember, the first character of IFS is used to create $*,
3895 # except with old shells:
3898 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3901 # The aliases save the names the user supplied, while $host etc.
3902 # will get canonicalized.
3903 test -n "$target_alias" &&
3904 test "$program_prefix$program_suffix$program_transform_name" = \
3906 program_prefix=${target_alias}-
3908 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3909 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3910 if test "${llvm_cv_os_type+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 llvm_cv_link_all_option="-Wl,--whole-archive"
3916 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3917 llvm_cv_os_type="AIX"
3918 llvm_cv_platform_type="Unix" ;;
3920 llvm_cv_link_all_option="-Wl,--whole-archive"
3921 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3922 llvm_cv_os_type="IRIX"
3923 llvm_cv_platform_type="Unix" ;;
3925 llvm_cv_link_all_option="-Wl,--whole-archive"
3926 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3927 llvm_cv_os_type="Cygwin"
3928 llvm_cv_platform_type="Unix" ;;
3930 llvm_cv_link_all_option="-Wl,-all_load"
3931 llvm_cv_no_link_all_option="-Wl,-noall_load"
3932 llvm_cv_os_type="Darwin"
3933 llvm_cv_platform_type="Unix" ;;
3935 llvm_cv_link_all_option="-Wl,-all_load"
3936 llvm_cv_no_link_all_option="-Wl,-noall_load"
3937 llvm_cv_os_type="Minix"
3938 llvm_cv_platform_type="Unix" ;;
3940 llvm_cv_link_all_option="-Wl,--whole-archive"
3941 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3942 llvm_cv_os_type="FreeBSD"
3943 llvm_cv_platform_type="Unix" ;;
3945 llvm_cv_link_all_option="-Wl,--whole-archive"
3946 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3947 llvm_cv_os_type="GNU/kFreeBSD"
3948 llvm_cv_platform_type="Unix" ;;
3950 llvm_cv_link_all_option="-Wl,--whole-archive"
3951 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952 llvm_cv_os_type="OpenBSD"
3953 llvm_cv_platform_type="Unix" ;;
3955 llvm_cv_link_all_option="-Wl,--whole-archive"
3956 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957 llvm_cv_os_type="NetBSD"
3958 llvm_cv_platform_type="Unix" ;;
3960 llvm_cv_link_all_option="-Wl,--whole-archive"
3961 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962 llvm_cv_os_type="DragonFly"
3963 llvm_cv_platform_type="Unix" ;;
3965 llvm_cv_link_all_option="-Wl,--whole-archive"
3966 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967 llvm_cv_os_type="HP-UX"
3968 llvm_cv_platform_type="Unix" ;;
3970 llvm_cv_link_all_option="-Wl,--whole-archive"
3971 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972 llvm_cv_os_type="Interix"
3973 llvm_cv_platform_type="Unix" ;;
3975 llvm_cv_link_all_option="-Wl,--whole-archive"
3976 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977 llvm_cv_os_type="Linux"
3978 llvm_cv_platform_type="Unix" ;;
3980 llvm_cv_link_all_option="-Wl,--whole-archive"
3981 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982 llvm_cv_os_type="GNU"
3983 llvm_cv_platform_type="Unix" ;;
3985 llvm_cv_link_all_option="-Wl,-z,allextract"
3986 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3987 llvm_cv_os_type="SunOS"
3988 llvm_cv_platform_type="Unix" ;;
3990 llvm_cv_link_all_option="-Wl,--whole-archive"
3991 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992 llvm_cv_os_type="Win32"
3993 llvm_cv_platform_type="Win32" ;;
3995 llvm_cv_link_all_option="-Wl,--whole-archive"
3996 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997 llvm_cv_os_type="MingW"
3998 llvm_cv_platform_type="Win32" ;;
4000 llvm_cv_link_all_option="-Wl,--whole-archive"
4001 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002 llvm_cv_os_type="Haiku"
4003 llvm_cv_platform_type="Unix" ;;
4005 llvm_cv_link_all_option="-Wl,--whole-archive"
4006 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007 llvm_cv_os_type="Freestanding"
4008 llvm_cv_platform_type="Unix" ;;
4010 llvm_cv_link_all_option="-Wl,--whole-archive"
4011 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012 llvm_cv_os_type="Freestanding"
4013 llvm_cv_platform_type="Unix" ;;
4015 llvm_cv_link_all_option=""
4016 llvm_cv_no_link_all_option=""
4017 llvm_cv_os_type="Unknown"
4018 llvm_cv_platform_type="Unknown" ;;
4021 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4022 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4024 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4025 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4026 if test "${llvm_cv_target_os_type+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 llvm_cv_target_os_type="AIX" ;;
4033 llvm_cv_target_os_type="IRIX" ;;
4035 llvm_cv_target_os_type="Cygwin" ;;
4037 llvm_cv_target_os_type="Darwin" ;;
4039 llvm_cv_target_os_type="Minix" ;;
4041 llvm_cv_target_os_type="FreeBSD" ;;
4043 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4045 llvm_cv_target_os_type="OpenBSD" ;;
4047 llvm_cv_target_os_type="NetBSD" ;;
4049 llvm_cv_target_os_type="DragonFly" ;;
4051 llvm_cv_target_os_type="HP-UX" ;;
4053 llvm_cv_target_os_type="Interix" ;;
4055 llvm_cv_target_os_type="Linux" ;;
4057 llvm_cv_target_os_type="GNU" ;;
4059 llvm_cv_target_os_type="SunOS" ;;
4061 llvm_cv_target_os_type="Win32" ;;
4063 llvm_cv_target_os_type="MingW" ;;
4065 llvm_cv_target_os_type="Haiku" ;;
4067 llvm_cv_target_os_type="RTEMS" ;;
4069 llvm_cv_target_os_type="NativeClient" ;;
4071 llvm_cv_target_os_type="Freestanding" ;;
4073 llvm_cv_target_os_type="Unknown" ;;
4076 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4077 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4079 if test "$llvm_cv_os_type" = "Unknown" ; then
4080 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4081 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4082 { (exit 1); exit 1; }; }
4087 HOST_OS=$llvm_cv_os_type
4089 TARGET_OS=$llvm_cv_target_os_type
4092 LINKALL=$llvm_cv_link_all_option
4094 NOLINKALL=$llvm_cv_no_link_all_option
4097 case $llvm_cv_platform_type in
4100 cat >>confdefs.h <<\_ACEOF
4101 #define LLVM_ON_UNIX 1
4111 cat >>confdefs.h <<\_ACEOF
4112 #define LLVM_ON_WIN32 1
4122 { echo "$as_me:$LINENO: checking target architecture" >&5
4123 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4124 if test "${llvm_cv_target_arch+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 i?86-*) llvm_cv_target_arch="x86" ;;
4129 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4130 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4131 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4132 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4133 arm*-*) llvm_cv_target_arch="ARM" ;;
4134 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4135 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4136 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4137 xcore-*) llvm_cv_target_arch="XCore" ;;
4138 msp430-*) llvm_cv_target_arch="MSP430" ;;
4139 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4140 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4141 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4142 *) llvm_cv_target_arch="Unknown" ;;
4145 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4146 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4148 if test "$llvm_cv_target_arch" = "Unknown" ; then
4149 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4150 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4153 case "$llvm_cv_target_arch" in
4154 x86) LLVM_NATIVE_ARCH="X86" ;;
4155 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4156 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4159 ARCH=$llvm_cv_target_arch
4161 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4165 i?86-*) host_arch="x86" ;;
4166 amd64-* | x86_64-*) host_arch="x86_64" ;;
4167 sparc*-*) host_arch="Sparc" ;;
4168 powerpc*-*) host_arch="PowerPC" ;;
4169 arm64*-*) host_arch="AArch64" ;;
4170 arm*-*) host_arch="ARM" ;;
4171 aarch64*-*) host_arch="AArch64" ;;
4172 mips-* | mips64-*) host_arch="Mips" ;;
4173 mipsel-* | mips64el-*) host_arch="Mips" ;;
4174 xcore-*) host_arch="XCore" ;;
4175 msp430-*) host_arch="MSP430" ;;
4176 hexagon-*) host_arch="Hexagon" ;;
4177 s390x-*) host_arch="SystemZ" ;;
4178 *) host_arch="Unknown" ;;
4181 if test "$host_arch" = "Unknown" ; then
4182 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4183 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4186 HOST_ARCH=$host_arch
4189 if test "$cross_compiling" = yes; then
4190 LLVM_CROSS_COMPILING=1
4193 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4194 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4195 if test "${ac_cv_build_exeext+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4199 ac_cv_build_exeext=.exe
4201 ac_build_prefix=${build_alias}-
4203 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4204 set dummy ${ac_build_prefix}gcc; ac_word=$2
4205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4207 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 if test -n "$BUILD_CC"; then
4211 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4220 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 BUILD_CC=$ac_cv_prog_BUILD_CC
4231 if test -n "$BUILD_CC"; then
4232 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4233 echo "${ECHO_T}$BUILD_CC" >&6; }
4235 { echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6; }
4240 if test -z "$BUILD_CC"; then
4241 # Extract the first word of "gcc", so it can be a program name with args.
4242 set dummy gcc; ac_word=$2
4243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4245 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 if test -n "$BUILD_CC"; then
4249 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4258 ac_cv_prog_BUILD_CC="gcc"
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 BUILD_CC=$ac_cv_prog_BUILD_CC
4269 if test -n "$BUILD_CC"; then
4270 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4271 echo "${ECHO_T}$BUILD_CC" >&6; }
4273 { echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6; }
4278 if test -z "$BUILD_CC"; then
4279 # Extract the first word of "cc", so it can be a program name with args.
4280 set dummy cc; ac_word=$2
4281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4283 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 if test -n "$BUILD_CC"; then
4287 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4298 ac_prog_rejected=yes
4301 ac_cv_prog_BUILD_CC="cc"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 if test $ac_prog_rejected = yes; then
4310 # We found a bogon in the path, so make sure we never use it.
4311 set dummy $ac_cv_prog_BUILD_CC
4313 if test $# != 0; then
4314 # We chose a different compiler from the bogus one.
4315 # However, it has the same basename, so the bogon will be chosen
4316 # first if we set BUILD_CC to just the basename; use the full file name.
4318 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4323 BUILD_CC=$ac_cv_prog_BUILD_CC
4324 if test -n "$BUILD_CC"; then
4325 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4326 echo "${ECHO_T}$BUILD_CC" >&6; }
4328 { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4335 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4336 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4337 { (exit 1); exit 1; }; }
4338 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4340 echo 'int main () { return 0; }' > conftest.$ac_ext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4343 (eval $ac_build_link) 2>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; then
4347 for file in conftest.*; do
4349 *.c | *.o | *.obj | *.dSYM) ;;
4350 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4354 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4355 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4356 { (exit 1); exit 1; }; }
4359 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4364 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4365 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4366 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4367 ac_build_exeext=$BUILD_EXEEXT
4369 ac_build_prefix=${build_alias}-
4370 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4371 set dummy ${ac_build_prefix}g++; ac_word=$2
4372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4374 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 if test -n "$BUILD_CXX"; then
4378 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4387 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4398 if test -n "$BUILD_CXX"; then
4399 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4400 echo "${ECHO_T}$BUILD_CXX" >&6; }
4402 { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }
4407 if test -z "$BUILD_CXX"; then
4408 # Extract the first word of "g++", so it can be a program name with args.
4409 set dummy g++; ac_word=$2
4410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4412 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 if test -n "$BUILD_CXX"; then
4416 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 ac_cv_prog_BUILD_CXX="g++"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4436 if test -n "$BUILD_CXX"; then
4437 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4438 echo "${ECHO_T}$BUILD_CXX" >&6; }
4440 { echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6; }
4445 if test -z "$BUILD_CXX"; then
4446 # Extract the first word of "c++", so it can be a program name with args.
4447 set dummy c++; ac_word=$2
4448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4450 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 if test -n "$BUILD_CXX"; then
4454 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4465 ac_prog_rejected=yes
4468 ac_cv_prog_BUILD_CXX="c++"
4469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 if test $ac_prog_rejected = yes; then
4477 # We found a bogon in the path, so make sure we never use it.
4478 set dummy $ac_cv_prog_BUILD_CXX
4480 if test $# != 0; then
4481 # We chose a different compiler from the bogus one.
4482 # However, it has the same basename, so the bogon will be chosen
4483 # first if we set BUILD_CXX to just the basename; use the full file name.
4485 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4490 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4491 if test -n "$BUILD_CXX"; then
4492 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4493 echo "${ECHO_T}$BUILD_CXX" >&6; }
4495 { echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6; }
4503 LLVM_CROSS_COMPILING=0
4507 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4518 # Check whether --enable-libcpp was given.
4519 if test "${enable_libcpp+set}" = set; then
4520 enableval=$enable_libcpp;
4525 case "$enableval" in
4526 yes) ENABLE_LIBCPP=1
4530 default) ENABLE_LIBCPP=0
4532 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4533 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4534 { (exit 1); exit 1; }; } ;;
4537 # Check whether --enable-compiler-version-checks was given.
4538 if test "${enable_compiler_version_checks+set}" = set; then
4539 enableval=$enable_compiler_version_checks;
4544 case "$enableval" in
4549 ac_cpp='$CXXCPP $CPPFLAGS'
4550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4554 case "$llvm_cv_cxx_compiler" in
4556 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4557 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4558 cat >conftest.$ac_ext <<_ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4565 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4566 #error This version of Clang is too old to build LLVM
4570 rm -f conftest.$ac_objext
4571 if { (ac_try="$ac_compile"
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4577 (eval "$ac_compile") 2>conftest.er1
4579 grep -v '^ *+' conftest.er1 >conftest.err
4581 cat conftest.err >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } &&
4584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4585 { (case "(($ac_try" in
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4590 (eval "$ac_try") 2>&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; } &&
4594 { ac_try='test -s conftest.$ac_objext'
4595 { (case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_try") 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 { echo "$as_me:$LINENO: result: yes" >&5
4605 echo "${ECHO_T}yes" >&6; }
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 { echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; }
4612 { { echo "$as_me:$LINENO: error:
4613 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4614 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4615 bypass these sanity checks." >&5
4616 echo "$as_me: error:
4617 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4618 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4619 bypass these sanity checks." >&2;}
4620 { (exit 1); exit 1; }; }
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 if test "$ENABLE_LIBCPP" -eq 0 ; then
4626 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4627 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4628 llvm_cv_old_cxxflags="$CXXFLAGS"
4629 CXXFLAGS="$CXXFLAGS -std=c++0x"
4630 cat >conftest.$ac_ext <<_ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4638 std::atomic<float> x(0.0f);
4639 int main() { return (float)x; }
4642 rm -f conftest.$ac_objext conftest$ac_exeext
4643 if { (ac_try="$ac_link"
4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646 *) ac_try_echo=$ac_try;;
4648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4649 (eval "$ac_link") 2>conftest.er1
4651 grep -v '^ *+' conftest.er1 >conftest.err
4653 cat conftest.err >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } &&
4656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4657 { (case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_try") 2>&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; } &&
4666 { ac_try='test -s conftest$ac_exeext'
4667 { (case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672 (eval "$ac_try") 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 { echo "$as_me:$LINENO: result: yes" >&5
4677 echo "${ECHO_T}yes" >&6; }
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4682 { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4684 { { echo "$as_me:$LINENO: error:
4685 We detected a missing feature in the standard C++ library that was known to be
4686 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4687 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4688 than 4.7. You will need to update your system and ensure Clang uses the newer
4691 If this error is incorrect or you need to force things to work, you may pass
4692 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4693 echo "$as_me: error:
4694 We detected a missing feature in the standard C++ library that was known to be
4695 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4696 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4697 than 4.7. You will need to update your system and ensure Clang uses the newer
4700 If this error is incorrect or you need to force things to work, you may pass
4701 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4702 { (exit 1); exit 1; }; }
4705 rm -f core conftest.err conftest.$ac_objext \
4706 conftest$ac_exeext conftest.$ac_ext
4707 CXXFLAGS="$llvm_cv_old_cxxflags"
4711 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4712 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4713 cat >conftest.$ac_ext <<_ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4720 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4721 #error This version of GCC is too old to build LLVM
4725 rm -f conftest.$ac_objext
4726 if { (ac_try="$ac_compile"
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_compile") 2>conftest.er1
4734 grep -v '^ *+' conftest.er1 >conftest.err
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4740 { (case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745 (eval "$ac_try") 2>&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; } &&
4749 { ac_try='test -s conftest.$ac_objext'
4750 { (case "(($ac_try" in
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755 (eval "$ac_try") 2>&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 { echo "$as_me:$LINENO: result: yes" >&5
4760 echo "${ECHO_T}yes" >&6; }
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4765 { echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6; }
4767 { { echo "$as_me:$LINENO: error:
4768 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4769 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4770 bypass these sanity checks." >&5
4771 echo "$as_me: error:
4772 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4773 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4774 bypass these sanity checks." >&2;}
4775 { (exit 1); exit 1; }; }
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4791 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4792 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4793 { (exit 1); exit 1; }; }
4797 # Check whether --enable-cxx1y was given.
4798 if test "${enable_cxx1y+set}" = set; then
4799 enableval=$enable_cxx1y;
4804 case "$enableval" in
4809 default) ENABLE_CXX1Y=0
4811 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4812 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4813 { (exit 1); exit 1; }; } ;;
4816 # Check whether --enable-split-dwarf was given.
4817 if test "${enable_split_dwarf+set}" = set; then
4818 enableval=$enable_split_dwarf;
4823 case "$enableval" in
4824 yes) ENABLE_SPLIT_DWARF=1
4826 no) ENABLE_SPLIT_DWARF=0
4828 default) ENABLE_SPLIT_DWARF=0
4830 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4831 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4832 { (exit 1); exit 1; }; } ;;
4836 # Check whether --enable-clang-arcmt was given.
4837 if test "${enable_clang_arcmt+set}" = set; then
4838 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4843 case "$enableval" in
4844 yes) ENABLE_CLANG_ARCMT=1
4846 no) ENABLE_CLANG_ARCMT=0
4848 default) ENABLE_CLANG_ARCMT=1
4850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
4855 clang_plugin_support="yes"
4856 # Check whether --enable-clang-plugin-support was given.
4857 if test "${enable_clang_plugin_support+set}" = set; then
4858 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4863 case "$enableval" in
4864 yes) CLANG_PLUGIN_SUPPORT=1
4866 no) CLANG_PLUGIN_SUPPORT=0
4868 default) CLANG_PLUGIN_SUPPORT=1
4870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
4875 clang_static_analyzer="yes"
4876 # Check whether --enable-clang-static-analyzer was given.
4877 if test "${enable_clang_static_analyzer+set}" = set; then
4878 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4883 case "$enableval" in
4884 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4887 if test ${clang_arcmt} != "no" ; then
4888 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4889 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4890 { (exit 1); exit 1; }; }
4892 ENABLE_CLANG_STATIC_ANALYZER=0
4895 default) ENABLE_CLANG_STATIC_ANALYZER=1
4897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
4902 # Check whether --enable-optimized was given.
4903 if test "${enable_optimized+set}" = set; then
4904 enableval=$enable_optimized;
4909 if test ${enableval} = "no" ; then
4913 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4917 # Check whether --enable-profiling was given.
4918 if test "${enable_profiling+set}" = set; then
4919 enableval=$enable_profiling;
4924 if test ${enableval} = "no" ; then
4928 ENABLE_PROFILING=ENABLE_PROFILING=1
4932 # Check whether --enable-assertions was given.
4933 if test "${enable_assertions+set}" = set; then
4934 enableval=$enable_assertions;
4939 if test ${enableval} = "yes" ; then
4943 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4947 # Check whether --enable-werror was given.
4948 if test "${enable_werror+set}" = set; then
4949 enableval=$enable_werror;
4954 case "$enableval" in
4955 yes) ENABLE_WERROR=1
4959 default) ENABLE_WERROR=0
4961 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4962 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4963 { (exit 1); exit 1; }; } ;;
4966 # Check whether --enable-expensive-checks was given.
4967 if test "${enable_expensive_checks+set}" = set; then
4968 enableval=$enable_expensive_checks;
4973 if test ${enableval} = "yes" ; then
4974 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4976 EXPENSIVE_CHECKS=yes
4979 ENABLE_EXPENSIVE_CHECKS=
4985 # Check whether --enable-debug-runtime was given.
4986 if test "${enable_debug_runtime+set}" = set; then
4987 enableval=$enable_debug_runtime;
4992 if test ${enableval} = "no" ; then
4996 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5000 # Check whether --enable-debug-symbols was given.
5001 if test "${enable_debug_symbols+set}" = set; then
5002 enableval=$enable_debug_symbols;
5007 if test ${enableval} = "no" ; then
5011 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5015 # Check whether --enable-keep-symbols was given.
5016 if test "${enable_keep_symbols+set}" = set; then
5017 enableval=$enable_keep_symbols;
5022 if test ${enableval} = "no" ; then
5026 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5030 # Check whether --enable-jit was given.
5031 if test "${enable_jit+set}" = set; then
5032 enableval=$enable_jit;
5037 if test ${enableval} = "no"
5042 case "$llvm_cv_target_arch" in
5043 x86) TARGET_HAS_JIT=1
5045 Sparc) TARGET_HAS_JIT=0
5047 PowerPC) TARGET_HAS_JIT=1
5049 x86_64) TARGET_HAS_JIT=1
5051 ARM) TARGET_HAS_JIT=1
5053 Mips) TARGET_HAS_JIT=1
5055 XCore) TARGET_HAS_JIT=0
5057 MSP430) TARGET_HAS_JIT=0
5059 Hexagon) TARGET_HAS_JIT=0
5061 NVPTX) TARGET_HAS_JIT=0
5063 SystemZ) TARGET_HAS_JIT=1
5070 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5071 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5074 # Check whether --enable-docs was given.
5075 if test "${enable_docs+set}" = set; then
5076 enableval=$enable_docs;
5081 case "$enableval" in
5086 default) ENABLE_DOCS=1
5088 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5089 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5090 { (exit 1); exit 1; }; } ;;
5093 # Check whether --enable-doxygen was given.
5094 if test "${enable_doxygen+set}" = set; then
5095 enableval=$enable_doxygen;
5100 case "$enableval" in
5101 yes) ENABLE_DOXYGEN=1
5103 no) ENABLE_DOXYGEN=0
5105 default) ENABLE_DOXYGEN=0
5107 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5108 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5109 { (exit 1); exit 1; }; } ;;
5112 # Check whether --enable-threads was given.
5113 if test "${enable_threads+set}" = set; then
5114 enableval=$enable_threads;
5119 case "$enableval" in
5120 yes) LLVM_ENABLE_THREADS=1
5122 no) LLVM_ENABLE_THREADS=0
5124 default) LLVM_ENABLE_THREADS=1
5126 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5127 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5128 { (exit 1); exit 1; }; } ;;
5131 cat >>confdefs.h <<_ACEOF
5132 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5136 # Check whether --enable-pthreads was given.
5137 if test "${enable_pthreads+set}" = set; then
5138 enableval=$enable_pthreads;
5143 case "$enableval" in
5144 yes) ENABLE_PTHREADS=1
5146 no) ENABLE_PTHREADS=0
5148 default) ENABLE_PTHREADS=1
5150 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5151 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5152 { (exit 1); exit 1; }; } ;;
5155 # Check whether --enable-zlib was given.
5156 if test "${enable_zlib+set}" = set; then
5157 enableval=$enable_zlib;
5162 case "$enableval" in
5163 yes) LLVM_ENABLE_ZLIB=1
5165 no) LLVM_ENABLE_ZLIB=0
5167 default) LLVM_ENABLE_ZLIB=1
5169 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5170 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5171 { (exit 1); exit 1; }; } ;;
5174 cat >>confdefs.h <<_ACEOF
5175 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5179 # Check whether --enable-pic was given.
5180 if test "${enable_pic+set}" = set; then
5181 enableval=$enable_pic;
5186 case "$enableval" in
5191 default) ENABLE_PIC=1
5193 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5194 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5195 { (exit 1); exit 1; }; } ;;
5198 cat >>confdefs.h <<_ACEOF
5199 #define ENABLE_PIC $ENABLE_PIC
5203 # Check whether --enable-shared was given.
5204 if test "${enable_shared+set}" = set; then
5205 enableval=$enable_shared;
5210 case "$enableval" in
5211 yes) ENABLE_SHARED=1
5215 default) ENABLE_SHARED=0
5217 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5218 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5219 { (exit 1); exit 1; }; } ;;
5222 # Check whether --enable-embed-stdcxx was given.
5223 if test "${enable_embed_stdcxx+set}" = set; then
5224 enableval=$enable_embed_stdcxx;
5229 case "$enableval" in
5230 yes) ENABLE_EMBED_STDCXX=1
5232 no) ENABLE_EMBED_STDCXX=0
5234 default) ENABLE_EMBED_STDCXX=0
5236 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5237 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5238 { (exit 1); exit 1; }; } ;;
5241 # Check whether --enable-timestamps was given.
5242 if test "${enable_timestamps+set}" = set; then
5243 enableval=$enable_timestamps;
5248 case "$enableval" in
5249 yes) ENABLE_TIMESTAMPS=1
5251 no) ENABLE_TIMESTAMPS=0
5253 default) ENABLE_TIMESTAMPS=1
5255 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5256 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5257 { (exit 1); exit 1; }; } ;;
5260 cat >>confdefs.h <<_ACEOF
5261 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5265 # Check whether --enable-backtraces was given.
5266 if test "${enable_backtraces+set}" = set; then
5267 enableval=$enable_backtraces; case "$enableval" in
5268 yes) llvm_cv_enable_backtraces="yes" ;;
5269 no) llvm_cv_enable_backtraces="no" ;;
5270 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5271 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5272 { (exit 1); exit 1; }; } ;;
5275 llvm_cv_enable_backtraces="yes"
5278 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5280 cat >>confdefs.h <<\_ACEOF
5281 #define ENABLE_BACKTRACES 1
5286 # Check whether --enable-crash-overrides was given.
5287 if test "${enable_crash_overrides+set}" = set; then
5288 enableval=$enable_crash_overrides; case "$enableval" in
5289 yes) llvm_cv_enable_crash_overrides="yes" ;;
5290 no) llvm_cv_enable_crash_overrides="no" ;;
5291 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5292 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5293 { (exit 1); exit 1; }; } ;;
5296 llvm_cv_enable_crash_overrides="yes"
5299 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5301 cat >>confdefs.h <<\_ACEOF
5302 #define ENABLE_CRASH_OVERRIDES 1
5307 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5308 ALL_TARGETS=$ALL_TARGETS
5312 # Check whether --enable-targets was given.
5313 if test "${enable_targets+set}" = set; then
5314 enableval=$enable_targets;
5319 if test "$enableval" = host-only ; then
5322 case "$enableval" in
5323 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5324 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5326 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5329 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5330 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5331 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5332 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5333 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5334 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5338 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5339 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5340 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5341 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5342 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5343 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5344 host) case "$llvm_cv_target_arch" in
5345 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5346 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5347 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5348 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5349 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5350 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5351 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5352 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5353 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5354 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5355 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5356 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5357 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5358 echo "$as_me: error: Can not set target to build" >&2;}
5359 { (exit 1); exit 1; }; } ;;
5361 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5362 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5363 { (exit 1); exit 1; }; } ;;
5369 # Check whether --enable-experimental-targets was given.
5370 if test "${enable_experimental_targets+set}" = set; then
5371 enableval=$enable_experimental_targets;
5377 if test ${enableval} != "disable"
5379 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5382 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5385 for a_target in $TARGETS_TO_BUILD; do
5386 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5392 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5393 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5394 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5395 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5396 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5397 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5399 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5400 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5413 cat >>confdefs.h <<_ACEOF
5414 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5422 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5424 cat >>confdefs.h <<_ACEOF
5425 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5429 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5431 cat >>confdefs.h <<_ACEOF
5432 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5439 LLVM_ENUM_TARGETS=""
5440 LLVM_ENUM_ASM_PRINTERS=""
5441 LLVM_ENUM_ASM_PARSERS=""
5442 LLVM_ENUM_DISASSEMBLERS=""
5443 for target_to_build in $TARGETS_TO_BUILD; do
5444 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5445 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5446 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5448 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5449 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5451 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5452 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5461 # Check whether --with-optimize-option was given.
5462 if test "${with_optimize_option+set}" = set; then
5463 withval=$with_optimize_option;
5468 { echo "$as_me:$LINENO: checking optimization flags" >&5
5469 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5472 case "$llvm_cv_os_type" in
5473 FreeBSD) optimize_option=-O2 ;;
5474 MingW) optimize_option=-O2 ;;
5475 *) optimize_option=-O3 ;;
5477 *) optimize_option="$withval" ;;
5479 OPTIMIZE_OPTION=$optimize_option
5481 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5482 echo "${ECHO_T}$optimize_option" >&6; }
5485 # Check whether --with-extra-options was given.
5486 if test "${with_extra_options+set}" = set; then
5487 withval=$with_extra_options;
5493 default) EXTRA_OPTIONS= ;;
5494 *) EXTRA_OPTIONS=$withval ;;
5496 EXTRA_OPTIONS=$EXTRA_OPTIONS
5500 # Check whether --with-extra-ld-options was given.
5501 if test "${with_extra_ld_options+set}" = set; then
5502 withval=$with_extra_ld_options;
5508 default) EXTRA_LD_OPTIONS= ;;
5509 *) EXTRA_LD_OPTIONS=$withval ;;
5511 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5514 # Check whether --enable-bindings was given.
5515 if test "${enable_bindings+set}" = set; then
5516 enableval=$enable_bindings;
5521 BINDINGS_TO_BUILD=""
5522 case "$enableval" in
5523 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5524 all ) BINDINGS_TO_BUILD="ocaml" ;;
5525 none | no) BINDINGS_TO_BUILD="" ;;
5526 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5527 case "$a_binding" in
5528 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5529 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5530 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5531 { (exit 1); exit 1; }; } ;;
5538 # Check whether --with-ocaml-libdir was given.
5539 if test "${with_ocaml_libdir+set}" = set; then
5540 withval=$with_ocaml_libdir;
5546 auto) with_ocaml_libdir="$withval" ;;
5547 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5548 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5549 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5550 { (exit 1); exit 1; }; } ;;
5554 # Check whether --with-clang-srcdir was given.
5555 if test "${with_clang_srcdir+set}" = set; then
5556 withval=$with_clang_srcdir;
5562 -) clang_src_root="" ;;
5563 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5564 *) clang_src_root="$ac_pwd/$withval" ;;
5566 CLANG_SRC_ROOT=$clang_src_root
5570 # Check whether --with-clang-resource-dir was given.
5571 if test "${with_clang_resource_dir+set}" = set; then
5572 withval=$with_clang_resource_dir;
5578 cat >>confdefs.h <<_ACEOF
5579 #define CLANG_RESOURCE_DIR "$withval"
5584 # Check whether --with-c-include-dirs was given.
5585 if test "${with_c_include_dirs+set}" = set; then
5586 withval=$with_c_include_dirs;
5592 cat >>confdefs.h <<_ACEOF
5593 #define C_INCLUDE_DIRS "$withval"
5597 # Clang normally uses the system c++ headers and libraries. With this option,
5598 # clang will use the ones provided by a gcc installation instead. This option should
5599 # be passed the same value that was used with --prefix when configuring gcc.
5601 # Check whether --with-gcc-toolchain was given.
5602 if test "${with_gcc_toolchain+set}" = set; then
5603 withval=$with_gcc_toolchain;
5609 cat >>confdefs.h <<_ACEOF
5610 #define GCC_INSTALL_PREFIX "$withval"
5615 # Check whether --with-default-sysroot was given.
5616 if test "${with_default_sysroot+set}" = set; then
5617 withval=$with_default_sysroot;
5623 cat >>confdefs.h <<_ACEOF
5624 #define DEFAULT_SYSROOT "$withval"
5629 # Check whether --with-binutils-include was given.
5630 if test "${with_binutils_include+set}" = set; then
5631 withval=$with_binutils_include;
5637 default) WITH_BINUTILS_INCDIR=default ;;
5638 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5639 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5640 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5641 { (exit 1); exit 1; }; } ;;
5643 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5644 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5646 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5647 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5648 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5649 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5650 { (exit 1); exit 1; }; };
5655 # Check whether --with-bug-report-url was given.
5656 if test "${with_bug_report_url+set}" = set; then
5657 withval=$with_bug_report_url;
5659 withval="http://llvm.org/bugs/"
5663 cat >>confdefs.h <<_ACEOF
5664 #define BUG_REPORT_URL "$withval"
5668 # Check whether --enable-terminfo was given.
5669 if test "${enable_terminfo+set}" = set; then
5670 enableval=$enable_terminfo; case "$enableval" in
5671 yes) llvm_cv_enable_terminfo="yes" ;;
5672 no) llvm_cv_enable_terminfo="no" ;;
5673 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5674 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5675 { (exit 1); exit 1; }; } ;;
5678 llvm_cv_enable_terminfo="yes"
5681 case "$llvm_cv_enable_terminfo" in
5682 yes) ENABLE_TERMINFO=1
5684 no) ENABLE_TERMINFO=0
5688 # Check whether --enable-libedit was given.
5689 if test "${enable_libedit+set}" = set; then
5690 enableval=$enable_libedit; case "$enableval" in
5691 yes) llvm_cv_enable_libedit="yes" ;;
5692 no) llvm_cv_enable_libedit="no" ;;
5693 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5694 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5695 { (exit 1); exit 1; }; } ;;
5698 llvm_cv_enable_libedit="yes"
5702 # Check whether --enable-libffi was given.
5703 if test "${enable_libffi+set}" = set; then
5704 enableval=$enable_libffi; case "$enableval" in
5705 yes) llvm_cv_enable_libffi="yes" ;;
5706 no) llvm_cv_enable_libffi="no" ;;
5707 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5708 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5709 { (exit 1); exit 1; }; } ;;
5712 llvm_cv_enable_libffi=no
5717 # Check whether --with-internal-prefix was given.
5718 if test "${with_internal_prefix+set}" = set; then
5719 withval=$with_internal_prefix;
5724 INTERNAL_PREFIX=$withval
5728 { echo "$as_me:$LINENO: checking for GNU make" >&5
5729 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5730 if test "${llvm_cv_gnu_make_command+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 llvm_cv_gnu_make_command=''
5734 for a in "$MAKE" make gmake gnumake ; do
5735 if test -z "$a" ; then continue ; fi ;
5736 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5738 llvm_cv_gnu_make_command=$a ;
5743 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5744 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5745 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5749 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5750 echo "${ECHO_T}\"Not found\"" >&6; };
5754 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5755 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5757 if test "$LN_S" = "ln -s"; then
5758 { echo "$as_me:$LINENO: result: yes" >&5
5759 echo "${ECHO_T}yes" >&6; }
5761 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5762 echo "${ECHO_T}no, using $LN_S" >&6; }
5765 # Extract the first word of "nm", so it can be a program name with args.
5766 set dummy nm; ac_word=$2
5767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5769 if test "${ac_cv_path_NM+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5784 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5797 if test -n "$NM"; then
5798 { echo "$as_me:$LINENO: result: $NM" >&5
5799 echo "${ECHO_T}$NM" >&6; }
5801 { echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6; }
5806 # Extract the first word of "cmp", so it can be a program name with args.
5807 set dummy cmp; ac_word=$2
5808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5810 if test "${ac_cv_path_CMP+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5825 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5838 if test -n "$CMP"; then
5839 { echo "$as_me:$LINENO: result: $CMP" >&5
5840 echo "${ECHO_T}$CMP" >&6; }
5842 { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5847 # Extract the first word of "cp", so it can be a program name with args.
5848 set dummy cp; ac_word=$2
5849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5851 if test "${ac_cv_path_CP+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5879 if test -n "$CP"; then
5880 { echo "$as_me:$LINENO: result: $CP" >&5
5881 echo "${ECHO_T}$CP" >&6; }
5883 { echo "$as_me:$LINENO: result: no" >&5
5884 echo "${ECHO_T}no" >&6; }
5888 # Extract the first word of "date", so it can be a program name with args.
5889 set dummy date; ac_word=$2
5890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5892 if test "${ac_cv_path_DATE+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5907 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5919 DATE=$ac_cv_path_DATE
5920 if test -n "$DATE"; then
5921 { echo "$as_me:$LINENO: result: $DATE" >&5
5922 echo "${ECHO_T}$DATE" >&6; }
5924 { echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6; }
5929 # Extract the first word of "find", so it can be a program name with args.
5930 set dummy find; ac_word=$2
5931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5933 if test "${ac_cv_path_FIND+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5948 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5960 FIND=$ac_cv_path_FIND
5961 if test -n "$FIND"; then
5962 { echo "$as_me:$LINENO: result: $FIND" >&5
5963 echo "${ECHO_T}$FIND" >&6; }
5965 { echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6; }
5970 # Extract the first word of "grep", so it can be a program name with args.
5971 set dummy grep; ac_word=$2
5972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5974 if test "${ac_cv_path_GREP+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 test -z "$as_dir" && as_dir=.
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5989 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6001 GREP=$ac_cv_path_GREP
6002 if test -n "$GREP"; then
6003 { echo "$as_me:$LINENO: result: $GREP" >&5
6004 echo "${ECHO_T}$GREP" >&6; }
6006 { echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6; }
6011 # Extract the first word of "mkdir", so it can be a program name with args.
6012 set dummy mkdir; ac_word=$2
6013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6015 if test "${ac_cv_path_MKDIR+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6042 MKDIR=$ac_cv_path_MKDIR
6043 if test -n "$MKDIR"; then
6044 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6045 echo "${ECHO_T}$MKDIR" >&6; }
6047 { echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6; }
6052 # Extract the first word of "mv", so it can be a program name with args.
6053 set dummy mv; ac_word=$2
6054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6056 if test "${ac_cv_path_MV+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6084 if test -n "$MV"; then
6085 { echo "$as_me:$LINENO: result: $MV" >&5
6086 echo "${ECHO_T}$MV" >&6; }
6088 { echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6; }
6093 if test -n "$ac_tool_prefix"; then
6094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_prog_RANLIB+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 if test -n "$RANLIB"; then
6102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 RANLIB=$ac_cv_prog_RANLIB
6122 if test -n "$RANLIB"; then
6123 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6124 echo "${ECHO_T}$RANLIB" >&6; }
6126 { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6132 if test -z "$ac_cv_prog_RANLIB"; then
6133 ac_ct_RANLIB=$RANLIB
6134 # Extract the first word of "ranlib", so it can be a program name with args.
6135 set dummy ranlib; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 if test -n "$ac_ct_RANLIB"; then
6142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_ac_ct_RANLIB="ranlib"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6162 if test -n "$ac_ct_RANLIB"; then
6163 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6164 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6166 { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6170 if test "x$ac_ct_RANLIB" = x; then
6173 case $cross_compiling:$ac_tool_warned in
6175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6176 whose name does not start with the host triplet. If you think this
6177 configuration is useful to you, please write to autoconf@gnu.org." >&5
6178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6179 whose name does not start with the host triplet. If you think this
6180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6181 ac_tool_warned=yes ;;
6183 RANLIB=$ac_ct_RANLIB
6186 RANLIB="$ac_cv_prog_RANLIB"
6189 if test -n "$ac_tool_prefix"; then
6190 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6191 set dummy ${ac_tool_prefix}ar; ac_word=$2
6192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194 if test "${ac_cv_prog_AR+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 if test -n "$AR"; then
6198 ac_cv_prog_AR="$AR" # Let the user override the test.
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_prog_AR="${ac_tool_prefix}ar"
6208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 if test -n "$AR"; then
6219 { echo "$as_me:$LINENO: result: $AR" >&5
6220 echo "${ECHO_T}$AR" >&6; }
6222 { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6228 if test -z "$ac_cv_prog_AR"; then
6230 # Extract the first word of "ar", so it can be a program name with args.
6231 set dummy ar; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 if test -n "$ac_ct_AR"; then
6238 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_ac_ct_AR="ar"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6258 if test -n "$ac_ct_AR"; then
6259 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6260 echo "${ECHO_T}$ac_ct_AR" >&6; }
6262 { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6266 if test "x$ac_ct_AR" = x; then
6269 case $cross_compiling:$ac_tool_warned in
6271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6272 whose name does not start with the host triplet. If you think this
6273 configuration is useful to you, please write to autoconf@gnu.org." >&5
6274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6275 whose name does not start with the host triplet. If you think this
6276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6277 ac_tool_warned=yes ;;
6285 # Extract the first word of "rm", so it can be a program name with args.
6286 set dummy rm; ac_word=$2
6287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6289 if test "${ac_cv_path_RM+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6317 if test -n "$RM"; then
6318 { echo "$as_me:$LINENO: result: $RM" >&5
6319 echo "${ECHO_T}$RM" >&6; }
6321 { echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6; }
6326 # Extract the first word of "sed", so it can be a program name with args.
6327 set dummy sed; ac_word=$2
6328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6330 if test "${ac_cv_path_SED+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6358 if test -n "$SED"; then
6359 { echo "$as_me:$LINENO: result: $SED" >&5
6360 echo "${ECHO_T}$SED" >&6; }
6362 { echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6; }
6367 # Extract the first word of "tar", so it can be a program name with args.
6368 set dummy tar; ac_word=$2
6369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371 if test "${ac_cv_path_TAR+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6399 if test -n "$TAR"; then
6400 { echo "$as_me:$LINENO: result: $TAR" >&5
6401 echo "${ECHO_T}$TAR" >&6; }
6403 { echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6; }
6408 # Extract the first word of "pwd", so it can be a program name with args.
6409 set dummy pwd; ac_word=$2
6410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6412 if test "${ac_cv_path_BINPWD+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6427 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6439 BINPWD=$ac_cv_path_BINPWD
6440 if test -n "$BINPWD"; then
6441 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6442 echo "${ECHO_T}$BINPWD" >&6; }
6444 { echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6; }
6450 # Extract the first word of "dot", so it can be a program name with args.
6451 set dummy dot; ac_word=$2
6452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6454 if test "${ac_cv_path_DOT+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6482 if test -n "$DOT"; then
6483 { echo "$as_me:$LINENO: result: $DOT" >&5
6484 echo "${ECHO_T}$DOT" >&6; }
6486 { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
6491 if test "$DOT" != "echo dot" ; then
6493 cat >>confdefs.h <<\_ACEOF
6497 if test "$llvm_cv_os_type" = "MingW" ; then
6498 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6501 cat >>confdefs.h <<_ACEOF
6502 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6507 # Find a good install program. We prefer a C program (faster),
6508 # so one script is as good as another. But avoid the broken or
6509 # incompatible versions:
6510 # SysV /etc/install, /usr/sbin/install
6511 # SunOS /usr/etc/install
6512 # IRIX /sbin/install
6514 # AmigaOS /C/install, which installs bootblocks on floppy discs
6515 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6516 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6517 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6518 # OS/2's system install, which has a completely different semantic
6519 # ./install, which can be erroneously created by make from ./install.sh.
6520 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6521 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6522 if test -z "$INSTALL"; then
6523 if test "${ac_cv_path_install+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 test -z "$as_dir" && as_dir=.
6531 # Account for people who put trailing slashes in PATH elements.
6533 ./ | .// | /cC/* | \
6534 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6535 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6538 # OSF1 and SCO ODT 3.0 have their own names for install.
6539 # Don't use installbsd from OSF since it installs stuff as root
6541 for ac_prog in ginstall scoinst install; do
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6544 if test $ac_prog = install &&
6545 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6546 # AIX install. It has an incompatible calling convention.
6548 elif test $ac_prog = install &&
6549 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6550 # program-specific install script used by HP pwplus--don't use.
6553 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6566 if test "${ac_cv_path_install+set}" = set; then
6567 INSTALL=$ac_cv_path_install
6569 # As a last resort, use the slow shell script. Don't cache a
6570 # value for INSTALL within a source directory, because that will
6571 # break other packages using the cache if that directory is
6572 # removed, or if the value is a relative name.
6573 INSTALL=$ac_install_sh
6576 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6577 echo "${ECHO_T}$INSTALL" >&6; }
6579 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6580 # It thinks the first close brace ends the variable substitution.
6581 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6583 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6585 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6588 [\\/$]* | ?:[\\/]* ) ;;
6589 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6592 # Extract the first word of "bzip2", so it can be a program name with args.
6593 set dummy bzip2; ac_word=$2
6594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596 if test "${ac_cv_path_BZIP2+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 BZIP2=$ac_cv_path_BZIP2
6623 if test -n "$BZIP2"; then
6624 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6625 echo "${ECHO_T}$BZIP2" >&6; }
6627 { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6632 # Extract the first word of "cat", so it can be a program name with args.
6633 set dummy cat; ac_word=$2
6634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636 if test "${ac_cv_path_CAT+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 if test -n "$CAT"; then
6664 { echo "$as_me:$LINENO: result: $CAT" >&5
6665 echo "${ECHO_T}$CAT" >&6; }
6667 { echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6; }
6672 # Extract the first word of "doxygen", so it can be a program name with args.
6673 set dummy doxygen; ac_word=$2
6674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6691 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 DOXYGEN=$ac_cv_path_DOXYGEN
6703 if test -n "$DOXYGEN"; then
6704 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6705 echo "${ECHO_T}$DOXYGEN" >&6; }
6707 { echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6; }
6712 # Extract the first word of "groff", so it can be a program name with args.
6713 set dummy groff; ac_word=$2
6714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6716 if test "${ac_cv_path_GROFF+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6731 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 GROFF=$ac_cv_path_GROFF
6743 if test -n "$GROFF"; then
6744 { echo "$as_me:$LINENO: result: $GROFF" >&5
6745 echo "${ECHO_T}$GROFF" >&6; }
6747 { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6752 # Extract the first word of "gzip", so it can be a program name with args.
6753 set dummy gzip; ac_word=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 GZIPBIN=$ac_cv_path_GZIPBIN
6783 if test -n "$GZIPBIN"; then
6784 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6785 echo "${ECHO_T}$GZIPBIN" >&6; }
6787 { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6792 # Extract the first word of "pdfroff", so it can be a program name with args.
6793 set dummy pdfroff; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_path_PDFROFF+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 PDFROFF=$ac_cv_path_PDFROFF
6823 if test -n "$PDFROFF"; then
6824 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6825 echo "${ECHO_T}$PDFROFF" >&6; }
6827 { echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6; }
6832 # Extract the first word of "zip", so it can be a program name with args.
6833 set dummy zip; ac_word=$2
6834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6836 if test "${ac_cv_path_ZIP+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6851 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 if test -n "$ZIP"; then
6864 { echo "$as_me:$LINENO: result: $ZIP" >&5
6865 echo "${ECHO_T}$ZIP" >&6; }
6867 { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6872 # Extract the first word of "go", so it can be a program name with args.
6873 set dummy go; ac_word=$2
6874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6876 if test "${ac_cv_path_GO+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 ac_cv_path_GO="$GO" # Let the user override the test with a path.
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 if test -n "$GO"; then
6904 { echo "$as_me:$LINENO: result: $GO" >&5
6905 echo "${ECHO_T}$GO" >&6; }
6907 { echo "$as_me:$LINENO: result: no" >&5
6908 echo "${ECHO_T}no" >&6; }
6912 for ac_prog in ocamlc
6914 # Extract the first word of "$ac_prog", so it can be a program name with args.
6915 set dummy $ac_prog; ac_word=$2
6916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6918 if test "${ac_cv_path_OCAMLC+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
6934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 OCAMLC=$ac_cv_path_OCAMLC
6945 if test -n "$OCAMLC"; then
6946 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
6947 echo "${ECHO_T}$OCAMLC" >&6; }
6949 { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6954 test -n "$OCAMLC" && break
6957 for ac_prog in ocamlopt
6959 # Extract the first word of "$ac_prog", so it can be a program name with args.
6960 set dummy $ac_prog; ac_word=$2
6961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6963 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
6979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 OCAMLOPT=$ac_cv_path_OCAMLOPT
6990 if test -n "$OCAMLOPT"; then
6991 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
6992 echo "${ECHO_T}$OCAMLOPT" >&6; }
6994 { echo "$as_me:$LINENO: result: no" >&5
6995 echo "${ECHO_T}no" >&6; }
6999 test -n "$OCAMLOPT" && break
7002 for ac_prog in ocamldep
7004 # Extract the first word of "$ac_prog", so it can be a program name with args.
7005 set dummy $ac_prog; ac_word=$2
7006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7008 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 OCAMLDEP=$ac_cv_path_OCAMLDEP
7035 if test -n "$OCAMLDEP"; then
7036 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7037 echo "${ECHO_T}$OCAMLDEP" >&6; }
7039 { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7044 test -n "$OCAMLDEP" && break
7047 for ac_prog in ocamldoc
7049 # Extract the first word of "$ac_prog", so it can be a program name with args.
7050 set dummy $ac_prog; ac_word=$2
7051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 OCAMLDOC=$ac_cv_path_OCAMLDOC
7080 if test -n "$OCAMLDOC"; then
7081 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7082 echo "${ECHO_T}$OCAMLDOC" >&6; }
7084 { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7089 test -n "$OCAMLDOC" && break
7092 for ac_prog in gas as
7094 # Extract the first word of "$ac_prog", so it can be a program name with args.
7095 set dummy $ac_prog; ac_word=$2
7096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098 if test "${ac_cv_path_GAS+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7113 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 if test -n "$GAS"; then
7126 { echo "$as_me:$LINENO: result: $GAS" >&5
7127 echo "${ECHO_T}$GAS" >&6; }
7129 { echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6; }
7134 test -n "$GAS" && break
7138 { echo "$as_me:$LINENO: checking for linker version" >&5
7139 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7140 if test "${llvm_cv_link_version+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7147 if (echo "$version_string" | grep -q "ld64"); then
7148 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7150 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7154 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7155 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7157 cat >>confdefs.h <<_ACEOF
7158 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7164 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7165 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7166 if test "${llvm_cv_link_use_r+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 ac_cpp='$CPP $CPPFLAGS'
7171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7176 CFLAGS="$CFLAGS -Wl,-R."
7177 cat >conftest.$ac_ext <<_ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
7201 grep -v '^ *+' conftest.er1 >conftest.err
7203 cat conftest.err >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } &&
7206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7207 { (case "(($ac_try" in
7208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209 *) ac_try_echo=$ac_try;;
7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212 (eval "$ac_try") 2>&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; } &&
7216 { ac_try='test -s conftest$ac_exeext'
7217 { (case "(($ac_try" in
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_try") 2>&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 llvm_cv_link_use_r=yes
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7231 llvm_cv_link_use_r=no
7234 rm -f core conftest.err conftest.$ac_objext \
7235 conftest$ac_exeext conftest.$ac_ext
7238 ac_cpp='$CPP $CPPFLAGS'
7239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7245 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7246 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7247 if test "$llvm_cv_link_use_r" = yes ; then
7249 cat >>confdefs.h <<\_ACEOF
7250 #define HAVE_LINK_R 1
7256 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7257 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7258 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 ac_cpp='$CPP $CPPFLAGS'
7263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7268 CFLAGS="$CFLAGS -rdynamic"
7269 cat >conftest.$ac_ext <<_ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h. */
7284 rm -f conftest.$ac_objext conftest$ac_exeext
7285 if { (ac_try="$ac_link"
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7291 (eval "$ac_link") 2>conftest.er1
7293 grep -v '^ *+' conftest.er1 >conftest.err
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7299 { (case "(($ac_try" in
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304 (eval "$ac_try") 2>&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; } &&
7308 { ac_try='test -s conftest$ac_exeext'
7309 { (case "(($ac_try" in
7310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311 *) ac_try_echo=$ac_try;;
7313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7314 (eval "$ac_try") 2>&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7318 llvm_cv_link_use_export_dynamic=yes
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7323 llvm_cv_link_use_export_dynamic=no
7326 rm -f core conftest.err conftest.$ac_objext \
7327 conftest$ac_exeext conftest.$ac_ext
7330 ac_cpp='$CPP $CPPFLAGS'
7331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7337 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7338 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7339 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7341 cat >>confdefs.h <<\_ACEOF
7342 #define HAVE_LINK_EXPORT_DYNAMIC 1
7348 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7349 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7350 if test "${llvm_cv_link_use_version_script+set}" = set; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 ac_cpp='$CPP $CPPFLAGS'
7355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361 # The following code is from the autoconf manual,
7362 # "11.13: Limitations of Usual Tools".
7363 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7364 # Use mktemp if possible; otherwise fall back on mkdir,
7365 # with $RANDOM to make collisions less likely.
7369 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7371 test -n "$tmp" && test -d "$tmp"
7373 tmp=$TMPDIR/foo$$-$RANDOM
7374 (umask 077 && mkdir "$tmp")
7377 echo "{" > "$tmp/export.map"
7378 echo " global: main;" >> "$tmp/export.map"
7379 echo " local: *;" >> "$tmp/export.map"
7380 echo "};" >> "$tmp/export.map"
7382 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7383 cat >conftest.$ac_ext <<_ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7398 rm -f conftest.$ac_objext conftest$ac_exeext
7399 if { (ac_try="$ac_link"
7401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7402 *) ac_try_echo=$ac_try;;
7404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7405 (eval "$ac_link") 2>conftest.er1
7407 grep -v '^ *+' conftest.er1 >conftest.err
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } &&
7412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7413 { (case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_try") 2>&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; } &&
7422 { ac_try='test -s conftest$ac_exeext'
7423 { (case "(($ac_try" in
7424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425 *) ac_try_echo=$ac_try;;
7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428 (eval "$ac_try") 2>&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; }; then
7432 llvm_cv_link_use_version_script=yes
7434 echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7437 llvm_cv_link_use_version_script=no
7440 rm -f core conftest.err conftest.$ac_objext \
7441 conftest$ac_exeext conftest.$ac_ext
7442 rm "$tmp/export.map"
7446 ac_cpp='$CPP $CPPFLAGS'
7447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7453 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7454 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7455 if test "$llvm_cv_link_use_version_script" = yes ; then
7456 HAVE_LINK_VERSION_SCRIPT=1
7462 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7463 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7464 if test "${ac_cv_path_GREP+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 # Extract the first word of "grep ggrep" to use in msg output
7468 if test -z "$GREP"; then
7469 set dummy grep ggrep; ac_prog_name=$2
7470 if test "${ac_cv_path_GREP+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 ac_path_GREP_found=false
7474 # Loop through the user's path and test for each of PROGNAME-LIST
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7479 test -z "$as_dir" && as_dir=.
7480 for ac_prog in grep ggrep; do
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7483 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7484 # Check for GNU ac_path_GREP and select it if it is found.
7485 # Check for GNU $ac_path_GREP
7486 case `"$ac_path_GREP" --version 2>&1` in
7488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7491 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7494 cat "conftest.in" "conftest.in" >"conftest.tmp"
7495 mv "conftest.tmp" "conftest.in"
7496 cp "conftest.in" "conftest.nl"
7497 echo 'GREP' >> "conftest.nl"
7498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7500 ac_count=`expr $ac_count + 1`
7501 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7502 # Best one so far, save it but keep looking for a better one
7503 ac_cv_path_GREP="$ac_path_GREP"
7504 ac_path_GREP_max=$ac_count
7506 # 10*(2^10) chars as input seems more than enough
7507 test $ac_count -gt 10 && break
7509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7513 $ac_path_GREP_found && break 3
7523 GREP="$ac_cv_path_GREP"
7524 if test -z "$GREP"; then
7525 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7526 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7527 { (exit 1); exit 1; }; }
7531 ac_cv_path_GREP=$GREP
7536 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7537 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7538 GREP="$ac_cv_path_GREP"
7541 { echo "$as_me:$LINENO: checking for egrep" >&5
7542 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7543 if test "${ac_cv_path_EGREP+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7547 then ac_cv_path_EGREP="$GREP -E"
7549 # Extract the first word of "egrep" to use in msg output
7550 if test -z "$EGREP"; then
7551 set dummy egrep; ac_prog_name=$2
7552 if test "${ac_cv_path_EGREP+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 ac_path_EGREP_found=false
7556 # Loop through the user's path and test for each of PROGNAME-LIST
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7561 test -z "$as_dir" && as_dir=.
7562 for ac_prog in egrep; do
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7565 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7566 # Check for GNU ac_path_EGREP and select it if it is found.
7567 # Check for GNU $ac_path_EGREP
7568 case `"$ac_path_EGREP" --version 2>&1` in
7570 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7573 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7576 cat "conftest.in" "conftest.in" >"conftest.tmp"
7577 mv "conftest.tmp" "conftest.in"
7578 cp "conftest.in" "conftest.nl"
7579 echo 'EGREP' >> "conftest.nl"
7580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7582 ac_count=`expr $ac_count + 1`
7583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7584 # Best one so far, save it but keep looking for a better one
7585 ac_cv_path_EGREP="$ac_path_EGREP"
7586 ac_path_EGREP_max=$ac_count
7588 # 10*(2^10) chars as input seems more than enough
7589 test $ac_count -gt 10 && break
7591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7595 $ac_path_EGREP_found && break 3
7605 EGREP="$ac_cv_path_EGREP"
7606 if test -z "$EGREP"; then
7607 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7608 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7609 { (exit 1); exit 1; }; }
7613 ac_cv_path_EGREP=$EGREP
7619 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7620 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7621 EGREP="$ac_cv_path_EGREP"
7624 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7625 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7626 if test "${ac_cv_header_stdc+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 cat >conftest.$ac_ext <<_ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7657 grep -v '^ *+' conftest.er1 >conftest.err
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
7662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7663 { (case "(($ac_try" in
7664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7668 (eval "$ac_try") 2>&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; } &&
7672 { ac_try='test -s conftest.$ac_objext'
7673 { (case "(($ac_try" in
7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7678 (eval "$ac_try") 2>&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; }; then
7682 ac_cv_header_stdc=yes
7684 echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7687 ac_cv_header_stdc=no
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 if test $ac_cv_header_stdc = yes; then
7693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7694 cat >conftest.$ac_ext <<_ACEOF
7697 cat confdefs.h >>conftest.$ac_ext
7698 cat >>conftest.$ac_ext <<_ACEOF
7699 /* end confdefs.h. */
7703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7704 $EGREP "memchr" >/dev/null 2>&1; then
7707 ac_cv_header_stdc=no
7713 if test $ac_cv_header_stdc = yes; then
7714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7715 cat >conftest.$ac_ext <<_ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7725 $EGREP "free" >/dev/null 2>&1; then
7728 ac_cv_header_stdc=no
7734 if test $ac_cv_header_stdc = yes; then
7735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7736 if test "$cross_compiling" = yes; then
7739 cat >conftest.$ac_ext <<_ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7747 #if ((' ' & 0x0FF) == 0x020)
7748 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7749 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7751 # define ISLOWER(c) \
7752 (('a' <= (c) && (c) <= 'i') \
7753 || ('j' <= (c) && (c) <= 'r') \
7754 || ('s' <= (c) && (c) <= 'z'))
7755 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7763 for (i = 0; i < 256; i++)
7764 if (XOR (islower (i), ISLOWER (i))
7765 || toupper (i) != TOUPPER (i))
7770 rm -f conftest$ac_exeext
7771 if { (ac_try="$ac_link"
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_link") 2>&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7781 { (case "(($ac_try" in
7782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783 *) ac_try_echo=$ac_try;;
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786 (eval "$ac_try") 2>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7792 echo "$as_me: program exited with status $ac_status" >&5
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7797 ac_cv_header_stdc=no
7799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7805 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7806 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7807 if test $ac_cv_header_stdc = yes; then
7809 cat >>confdefs.h <<\_ACEOF
7810 #define STDC_HEADERS 1
7815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7825 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7826 inttypes.h stdint.h unistd.h
7828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 cat >conftest.$ac_ext <<_ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7840 $ac_includes_default
7842 #include <$ac_header>
7844 rm -f conftest.$ac_objext
7845 if { (ac_try="$ac_compile"
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_compile") 2>conftest.er1
7853 grep -v '^ *+' conftest.er1 >conftest.err
7855 cat conftest.err >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } &&
7858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7859 { (case "(($ac_try" in
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_try") 2>&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; } &&
7868 { ac_try='test -s conftest.$ac_objext'
7869 { (case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_try") 2>&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; }; then
7878 eval "$as_ac_Header=yes"
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 eval "$as_ac_Header=no"
7886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 ac_res=`eval echo '${'$as_ac_Header'}'`
7889 { echo "$as_me:$LINENO: result: $ac_res" >&5
7890 echo "${ECHO_T}$ac_res" >&6; }
7891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7892 cat >>confdefs.h <<_ACEOF
7893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7902 for ac_header in errno.h
7904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 ac_res=`eval echo '${'$as_ac_Header'}'`
7912 { echo "$as_me:$LINENO: result: $ac_res" >&5
7913 echo "${ECHO_T}$ac_res" >&6; }
7915 # Is the header compilable?
7916 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7918 cat >conftest.$ac_ext <<_ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7924 $ac_includes_default
7925 #include <$ac_header>
7927 rm -f conftest.$ac_objext
7928 if { (ac_try="$ac_compile"
7930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931 *) ac_try_echo=$ac_try;;
7933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934 (eval "$ac_compile") 2>conftest.er1
7936 grep -v '^ *+' conftest.er1 >conftest.err
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } &&
7941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7942 { (case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_try") 2>&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try='test -s conftest.$ac_objext'
7952 { (case "(($ac_try" in
7953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957 (eval "$ac_try") 2>&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; }; then
7961 ac_header_compiler=yes
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7966 ac_header_compiler=no
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7971 echo "${ECHO_T}$ac_header_compiler" >&6; }
7973 # Is the header present?
7974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7976 cat >conftest.$ac_ext <<_ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 #include <$ac_header>
7984 if { (ac_try="$ac_cpp conftest.$ac_ext"
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7992 grep -v '^ *+' conftest.er1 >conftest.err
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } >/dev/null; then
7997 if test -s conftest.err; then
7998 ac_cpp_err=$ac_c_preproc_warn_flag
7999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8006 if test -z "$ac_cpp_err"; then
8007 ac_header_preproc=yes
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8012 ac_header_preproc=no
8015 rm -f conftest.err conftest.$ac_ext
8016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8017 echo "${ECHO_T}$ac_header_preproc" >&6; }
8019 # So? What about this header?
8020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8026 ac_header_preproc=yes
8029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8042 ## ------------------------------------ ##
8043 ## Report this to http://llvm.org/bugs/ ##
8044 ## ------------------------------------ ##
8046 ) | sed "s/^/$as_me: WARNING: /" >&2
8049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 eval "$as_ac_Header=\$ac_header_preproc"
8056 ac_res=`eval echo '${'$as_ac_Header'}'`
8057 { echo "$as_me:$LINENO: result: $ac_res" >&5
8058 echo "${ECHO_T}$ac_res" >&6; }
8061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8062 cat >>confdefs.h <<_ACEOF
8063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8071 case "$llvm_cv_os_type" in
8072 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8073 Darwin) llvm_shlib_ext=.dylib ;;
8074 *) llvm_shlib_ext=.so ;;
8078 cat >>confdefs.h <<_ACEOF
8079 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8083 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8084 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8097 if test "$GCC" != "yes" && test "$ICC" != "yes"
8099 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8100 echo "$as_me: error: gcc|icc required but not found" >&2;}
8101 { (exit 1); exit 1; }; }
8104 if test "$GXX" != "yes" && test "$IXX" != "yes"
8106 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8107 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8108 { (exit 1); exit 1; }; }
8111 if test "$GCC" = "yes"
8113 cat >conftest.$ac_ext <<_ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8121 #if !defined(__GNUC__) || __GNUC__ < 3
8122 #error Unsupported GCC version
8127 rm -f conftest.$ac_objext
8128 if { (ac_try="$ac_compile"
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_compile") 2>conftest.er1
8136 grep -v '^ *+' conftest.er1 >conftest.err
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8142 { (case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_try") 2>&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }; } &&
8151 { ac_try='test -s conftest.$ac_objext'
8152 { (case "(($ac_try" in
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8157 (eval "$ac_try") 2>&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; }; then
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8166 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8167 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8168 { (exit 1); exit 1; }; }
8171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 if test -z "$llvm_cv_gnu_make_command"
8176 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8177 echo "$as_me: error: GNU Make required but not found" >&2;}
8178 { (exit 1); exit 1; }; }
8181 { echo "$as_me:$LINENO: result: ok" >&5
8182 echo "${ECHO_T}ok" >&6; }
8184 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8185 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8186 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8188 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8190 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8194 NO_MAYBE_UNINITIALIZED=
8195 if test "$GXX" = "yes"
8197 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8199 if test -z "$NO_MAYBE_UNINITIALIZED"
8201 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8205 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8206 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8209 # Check whether --with-python was given.
8210 if test "${with_python+set}" = set; then
8211 withval=$with_python; PYTHON="$withval"
8215 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8216 { echo "$as_me:$LINENO: checking for python" >&5
8217 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8218 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8219 echo "${ECHO_T}user defined: $with_python" >&6; }
8221 if test -n "$PYTHON" ; then
8222 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8223 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8226 # Extract the first word of "python python2 python26", so it can be a program name with args.
8227 set dummy python python2 python26; ac_word=$2
8228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8230 if test "${ac_cv_path_PYTHON+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 test -z "$as_dir" && as_dir=.
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8245 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8253 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8254 echo "${ECHO_T}not found" >&6; }
8255 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8256 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8257 { (exit 1); exit 1; }; }"
8261 PYTHON=$ac_cv_path_PYTHON
8262 if test -n "$PYTHON"; then
8263 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8264 echo "${ECHO_T}$PYTHON" >&6; }
8266 { echo "$as_me:$LINENO: result: no" >&5
8267 echo "${ECHO_T}no" >&6; }
8273 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8274 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8275 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8276 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8277 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8278 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8279 if test "$ac_python_version_major" -gt "2" || \
8280 (test "$ac_python_version_major" -eq "2" && \
8281 test "$ac_python_version_minor" -ge "5") ; then
8282 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8283 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8285 { echo "$as_me:$LINENO: result: not found" >&5
8286 echo "${ECHO_T}not found" >&6; }
8287 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8288 See \`config.log' for more details." >&5
8289 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8290 See \`config.log' for more details." >&2;}
8291 { (exit 1); exit 1; }; }
8296 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8297 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8298 if test "${ac_cv_lib_m_sin+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 ac_check_lib_save_LIBS=$LIBS
8303 cat >conftest.$ac_ext <<_ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8310 /* Override any GCC internal prototype to avoid an error.
8311 Use char because int might match the return type of a GCC
8312 builtin and then its argument prototype would still apply. */
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (ac_try="$ac_link"
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8332 (eval "$ac_link") 2>conftest.er1
8334 grep -v '^ *+' conftest.er1 >conftest.err
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } &&
8339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8340 { (case "(($ac_try" in
8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_try") 2>&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; } &&
8349 { ac_try='test -s conftest$ac_exeext'
8350 { (case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_try") 2>&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8367 rm -f core conftest.err conftest.$ac_objext \
8368 conftest$ac_exeext conftest.$ac_ext
8369 LIBS=$ac_check_lib_save_LIBS
8371 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8372 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8373 if test $ac_cv_lib_m_sin = yes; then
8374 cat >>confdefs.h <<_ACEOF
8382 if test "$llvm_cv_os_type" = "MingW" ; then
8384 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8385 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8386 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 ac_check_lib_save_LIBS=$LIBS
8390 LIBS="-limagehlp $LIBS"
8391 cat >conftest.$ac_ext <<_ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (ac_try="$ac_link"
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_link") 2>conftest.er1
8416 grep -v '^ *+' conftest.er1 >conftest.err
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8422 { (case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_try") 2>&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; } &&
8431 { ac_try='test -s conftest$ac_exeext'
8432 { (case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_try") 2>&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; }; then
8441 ac_cv_lib_imagehlp_main=yes
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8446 ac_cv_lib_imagehlp_main=no
8449 rm -f core conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8451 LIBS=$ac_check_lib_save_LIBS
8453 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8454 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8455 if test $ac_cv_lib_imagehlp_main = yes; then
8456 cat >>confdefs.h <<_ACEOF
8457 #define HAVE_LIBIMAGEHLP 1
8460 LIBS="-limagehlp $LIBS"
8465 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8466 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8467 if test "${ac_cv_lib_psapi_main+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 ac_check_lib_save_LIBS=$LIBS
8471 LIBS="-lpsapi $LIBS"
8472 cat >conftest.$ac_ext <<_ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (ac_try="$ac_link"
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495 (eval "$ac_link") 2>conftest.er1
8497 grep -v '^ *+' conftest.er1 >conftest.err
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } &&
8502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; } &&
8512 { ac_try='test -s conftest$ac_exeext'
8513 { (case "(($ac_try" in
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_try") 2>&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; }; then
8522 ac_cv_lib_psapi_main=yes
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8527 ac_cv_lib_psapi_main=no
8530 rm -f core conftest.err conftest.$ac_objext \
8531 conftest$ac_exeext conftest.$ac_ext
8532 LIBS=$ac_check_lib_save_LIBS
8534 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8535 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8536 if test $ac_cv_lib_psapi_main = yes; then
8537 cat >>confdefs.h <<_ACEOF
8538 #define HAVE_LIBPSAPI 1
8541 LIBS="-lpsapi $LIBS"
8546 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8547 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8548 if test "${ac_cv_lib_shell32_main+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 ac_check_lib_save_LIBS=$LIBS
8552 LIBS="-lshell32 $LIBS"
8553 cat >conftest.$ac_ext <<_ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8569 rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (ac_try="$ac_link"
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576 (eval "$ac_link") 2>conftest.er1
8578 grep -v '^ *+' conftest.er1 >conftest.err
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } &&
8583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8584 { (case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_try") 2>&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; } &&
8593 { ac_try='test -s conftest$ac_exeext'
8594 { (case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_try") 2>&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; }; then
8603 ac_cv_lib_shell32_main=yes
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 ac_cv_lib_shell32_main=no
8611 rm -f core conftest.err conftest.$ac_objext \
8612 conftest$ac_exeext conftest.$ac_ext
8613 LIBS=$ac_check_lib_save_LIBS
8615 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8616 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8617 if test $ac_cv_lib_shell32_main = yes; then
8618 cat >>confdefs.h <<_ACEOF
8619 #define HAVE_LIBSHELL32 1
8622 LIBS="-lshell32 $LIBS"
8628 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8629 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8630 if test "${ac_cv_search_dlopen+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 ac_func_search_save_LIBS=$LIBS
8634 cat >conftest.$ac_ext <<_ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8641 /* Override any GCC internal prototype to avoid an error.
8642 Use char because int might match the return type of a GCC
8643 builtin and then its argument prototype would still apply. */
8656 for ac_lib in '' dl; do
8657 if test -z "$ac_lib"; then
8658 ac_res="none required"
8661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8663 rm -f conftest.$ac_objext conftest$ac_exeext
8664 if { (ac_try="$ac_link"
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_link") 2>conftest.er1
8672 grep -v '^ *+' conftest.er1 >conftest.err
8674 cat conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } &&
8677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8678 { (case "(($ac_try" in
8679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683 (eval "$ac_try") 2>&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest$ac_exeext'
8688 { (case "(($ac_try" in
8689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690 *) ac_try_echo=$ac_try;;
8692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8693 (eval "$ac_try") 2>&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_cv_search_dlopen=$ac_res
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8705 rm -f core conftest.err conftest.$ac_objext \
8707 if test "${ac_cv_search_dlopen+set}" = set; then
8711 if test "${ac_cv_search_dlopen+set}" = set; then
8714 ac_cv_search_dlopen=no
8717 LIBS=$ac_func_search_save_LIBS
8719 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8720 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8721 ac_res=$ac_cv_search_dlopen
8722 if test "$ac_res" != no; then
8723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8726 cat >>confdefs.h <<\_ACEOF
8727 #define HAVE_DLOPEN 1
8734 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8735 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8739 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8740 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8741 if test "${ac_cv_search_clock_gettime+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 ac_func_search_save_LIBS=$LIBS
8745 cat >conftest.$ac_ext <<_ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8752 /* Override any GCC internal prototype to avoid an error.
8753 Use char because int might match the return type of a GCC
8754 builtin and then its argument prototype would still apply. */
8758 char clock_gettime ();
8762 return clock_gettime ();
8767 for ac_lib in '' rt; do
8768 if test -z "$ac_lib"; then
8769 ac_res="none required"
8772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (ac_try="$ac_link"
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781 (eval "$ac_link") 2>conftest.er1
8783 grep -v '^ *+' conftest.er1 >conftest.err
8785 cat conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } &&
8788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8789 { (case "(($ac_try" in
8790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791 *) ac_try_echo=$ac_try;;
8793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8794 (eval "$ac_try") 2>&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; } &&
8798 { ac_try='test -s conftest$ac_exeext'
8799 { (case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_try") 2>&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 ac_cv_search_clock_gettime=$ac_res
8810 echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8816 rm -f core conftest.err conftest.$ac_objext \
8818 if test "${ac_cv_search_clock_gettime+set}" = set; then
8822 if test "${ac_cv_search_clock_gettime+set}" = set; then
8825 ac_cv_search_clock_gettime=no
8828 LIBS=$ac_func_search_save_LIBS
8830 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8831 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8832 ac_res=$ac_cv_search_clock_gettime
8833 if test "$ac_res" != no; then
8834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8839 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8840 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8841 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8842 if test "${ac_cv_search_setupterm+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 ac_func_search_save_LIBS=$LIBS
8846 cat >conftest.$ac_ext <<_ACEOF
8849 cat confdefs.h >>conftest.$ac_ext
8850 cat >>conftest.$ac_ext <<_ACEOF
8851 /* end confdefs.h. */
8853 /* Override any GCC internal prototype to avoid an error.
8854 Use char because int might match the return type of a GCC
8855 builtin and then its argument prototype would still apply. */
8863 return setupterm ();
8868 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8869 if test -z "$ac_lib"; then
8870 ac_res="none required"
8873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8875 rm -f conftest.$ac_objext conftest$ac_exeext
8876 if { (ac_try="$ac_link"
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_link") 2>conftest.er1
8884 grep -v '^ *+' conftest.er1 >conftest.err
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } &&
8889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8890 { (case "(($ac_try" in
8891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_try") 2>&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; } &&
8899 { ac_try='test -s conftest$ac_exeext'
8900 { (case "(($ac_try" in
8901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902 *) ac_try_echo=$ac_try;;
8904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905 (eval "$ac_try") 2>&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; }; then
8909 ac_cv_search_setupterm=$ac_res
8911 echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8917 rm -f core conftest.err conftest.$ac_objext \
8919 if test "${ac_cv_search_setupterm+set}" = set; then
8923 if test "${ac_cv_search_setupterm+set}" = set; then
8926 ac_cv_search_setupterm=no
8929 LIBS=$ac_func_search_save_LIBS
8931 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8932 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8933 ac_res=$ac_cv_search_setupterm
8934 if test "$ac_res" != no; then
8935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8938 cat >>confdefs.h <<\_ACEOF
8939 #define HAVE_TERMINFO 1
8949 if test "$llvm_cv_enable_libedit" = "yes" ; then
8950 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8951 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8952 if test "${ac_cv_search_el_init+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 ac_func_search_save_LIBS=$LIBS
8956 cat >conftest.$ac_ext <<_ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8963 /* Override any GCC internal prototype to avoid an error.
8964 Use char because int might match the return type of a GCC
8965 builtin and then its argument prototype would still apply. */
8978 for ac_lib in '' edit; do
8979 if test -z "$ac_lib"; then
8980 ac_res="none required"
8983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8985 rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (ac_try="$ac_link"
8988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989 *) ac_try_echo=$ac_try;;
8991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8992 (eval "$ac_link") 2>conftest.er1
8994 grep -v '^ *+' conftest.er1 >conftest.err
8996 cat conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } &&
8999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9000 { (case "(($ac_try" in
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_try") 2>&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; } &&
9009 { ac_try='test -s conftest$ac_exeext'
9010 { (case "(($ac_try" in
9011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015 (eval "$ac_try") 2>&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; }; then
9019 ac_cv_search_el_init=$ac_res
9021 echo "$as_me: failed program was:" >&5
9022 sed 's/^/| /' conftest.$ac_ext >&5
9027 rm -f core conftest.err conftest.$ac_objext \
9029 if test "${ac_cv_search_el_init+set}" = set; then
9033 if test "${ac_cv_search_el_init+set}" = set; then
9036 ac_cv_search_el_init=no
9039 LIBS=$ac_func_search_save_LIBS
9041 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9042 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9043 ac_res=$ac_cv_search_el_init
9044 if test "$ac_res" != no; then
9045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9047 cat >>confdefs.h <<\_ACEOF
9048 #define HAVE_LIBEDIT 1
9055 if test "$llvm_cv_enable_libffi" = "yes" ; then
9056 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9057 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9058 if test "${ac_cv_search_ffi_call+set}" = set; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9061 ac_func_search_save_LIBS=$LIBS
9062 cat >conftest.$ac_ext <<_ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9069 /* Override any GCC internal prototype to avoid an error.
9070 Use char because int might match the return type of a GCC
9071 builtin and then its argument prototype would still apply. */
9084 for ac_lib in '' ffi; do
9085 if test -z "$ac_lib"; then
9086 ac_res="none required"
9089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9091 rm -f conftest.$ac_objext conftest$ac_exeext
9092 if { (ac_try="$ac_link"
9094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9095 *) ac_try_echo=$ac_try;;
9097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9098 (eval "$ac_link") 2>conftest.er1
9100 grep -v '^ *+' conftest.er1 >conftest.err
9102 cat conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9106 { (case "(($ac_try" in
9107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108 *) ac_try_echo=$ac_try;;
9110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9111 (eval "$ac_try") 2>&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; } &&
9115 { ac_try='test -s conftest$ac_exeext'
9116 { (case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_try") 2>&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_search_ffi_call=$ac_res
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9133 rm -f core conftest.err conftest.$ac_objext \
9135 if test "${ac_cv_search_ffi_call+set}" = set; then
9139 if test "${ac_cv_search_ffi_call+set}" = set; then
9142 ac_cv_search_ffi_call=no
9145 LIBS=$ac_func_search_save_LIBS
9147 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9148 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9149 ac_res=$ac_cv_search_ffi_call
9150 if test "$ac_res" != no; then
9151 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9153 cat >>confdefs.h <<\_ACEOF
9154 #define HAVE_FFI_CALL 1
9158 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9159 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9160 { (exit 1); exit 1; }; }
9165 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9166 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9167 if test "${ac_cv_search_mallinfo+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 ac_func_search_save_LIBS=$LIBS
9171 cat >conftest.$ac_ext <<_ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9178 /* Override any GCC internal prototype to avoid an error.
9179 Use char because int might match the return type of a GCC
9180 builtin and then its argument prototype would still apply. */
9193 for ac_lib in '' malloc; do
9194 if test -z "$ac_lib"; then
9195 ac_res="none required"
9198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9200 rm -f conftest.$ac_objext conftest$ac_exeext
9201 if { (ac_try="$ac_link"
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_link") 2>conftest.er1
9209 grep -v '^ *+' conftest.er1 >conftest.err
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } &&
9214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9215 { (case "(($ac_try" in
9216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217 *) ac_try_echo=$ac_try;;
9219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9220 (eval "$ac_try") 2>&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; } &&
9224 { ac_try='test -s conftest$ac_exeext'
9225 { (case "(($ac_try" in
9226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227 *) ac_try_echo=$ac_try;;
9229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9230 (eval "$ac_try") 2>&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); }; }; then
9234 ac_cv_search_mallinfo=$ac_res
9236 echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9242 rm -f core conftest.err conftest.$ac_objext \
9244 if test "${ac_cv_search_mallinfo+set}" = set; then
9248 if test "${ac_cv_search_mallinfo+set}" = set; then
9251 ac_cv_search_mallinfo=no
9254 LIBS=$ac_func_search_save_LIBS
9256 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9257 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9258 ac_res=$ac_cv_search_mallinfo
9259 if test "$ac_res" != no; then
9260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9262 cat >>confdefs.h <<\_ACEOF
9263 #define HAVE_MALLINFO 1
9269 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9271 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9272 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9273 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 ac_check_lib_save_LIBS=$LIBS
9277 LIBS="-lpthread $LIBS"
9278 cat >conftest.$ac_ext <<_ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9285 /* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9291 char pthread_mutex_init ();
9295 return pthread_mutex_init ();
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (ac_try="$ac_link"
9303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304 *) ac_try_echo=$ac_try;;
9306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307 (eval "$ac_link") 2>conftest.er1
9309 grep -v '^ *+' conftest.er1 >conftest.err
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } &&
9314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9315 { (case "(($ac_try" in
9316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320 (eval "$ac_try") 2>&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; } &&
9324 { ac_try='test -s conftest$ac_exeext'
9325 { (case "(($ac_try" in
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330 (eval "$ac_try") 2>&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 ac_cv_lib_pthread_pthread_mutex_init=yes
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9339 ac_cv_lib_pthread_pthread_mutex_init=no
9342 rm -f core conftest.err conftest.$ac_objext \
9343 conftest$ac_exeext conftest.$ac_ext
9344 LIBS=$ac_check_lib_save_LIBS
9346 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9347 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9348 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9349 cat >>confdefs.h <<_ACEOF
9350 #define HAVE_LIBPTHREAD 1
9353 LIBS="-lpthread $LIBS"
9357 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9358 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9359 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 ac_func_search_save_LIBS=$LIBS
9363 cat >conftest.$ac_ext <<_ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9370 /* Override any GCC internal prototype to avoid an error.
9371 Use char because int might match the return type of a GCC
9372 builtin and then its argument prototype would still apply. */
9376 char pthread_mutex_lock ();
9380 return pthread_mutex_lock ();
9385 for ac_lib in '' pthread; do
9386 if test -z "$ac_lib"; then
9387 ac_res="none required"
9390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (ac_try="$ac_link"
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_link") 2>conftest.er1
9401 grep -v '^ *+' conftest.er1 >conftest.err
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } &&
9406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9407 { (case "(($ac_try" in
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_try") 2>&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; } &&
9416 { ac_try='test -s conftest$ac_exeext'
9417 { (case "(($ac_try" in
9418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9419 *) ac_try_echo=$ac_try;;
9421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9422 (eval "$ac_try") 2>&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9426 ac_cv_search_pthread_mutex_lock=$ac_res
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9434 rm -f core conftest.err conftest.$ac_objext \
9436 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9440 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9443 ac_cv_search_pthread_mutex_lock=no
9446 LIBS=$ac_func_search_save_LIBS
9448 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9449 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9450 ac_res=$ac_cv_search_pthread_mutex_lock
9451 if test "$ac_res" != no; then
9452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9454 cat >>confdefs.h <<\_ACEOF
9455 #define HAVE_PTHREAD_MUTEX_LOCK 1
9460 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9461 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9462 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 ac_func_search_save_LIBS=$LIBS
9466 cat >conftest.$ac_ext <<_ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9473 /* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
9479 char pthread_rwlock_init ();
9483 return pthread_rwlock_init ();
9488 for ac_lib in '' pthread; do
9489 if test -z "$ac_lib"; then
9490 ac_res="none required"
9493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (ac_try="$ac_link"
9498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499 *) ac_try_echo=$ac_try;;
9501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9502 (eval "$ac_link") 2>conftest.er1
9504 grep -v '^ *+' conftest.er1 >conftest.err
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9510 { (case "(($ac_try" in
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_try") 2>&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; } &&
9519 { ac_try='test -s conftest$ac_exeext'
9520 { (case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_try") 2>&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; }; then
9529 ac_cv_search_pthread_rwlock_init=$ac_res
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9537 rm -f core conftest.err conftest.$ac_objext \
9539 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9543 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9546 ac_cv_search_pthread_rwlock_init=no
9549 LIBS=$ac_func_search_save_LIBS
9551 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9552 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9553 ac_res=$ac_cv_search_pthread_rwlock_init
9554 if test "$ac_res" != no; then
9555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9557 cat >>confdefs.h <<\_ACEOF
9558 #define HAVE_PTHREAD_RWLOCK_INIT 1
9563 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9564 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9565 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9568 ac_func_search_save_LIBS=$LIBS
9569 cat >conftest.$ac_ext <<_ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9576 /* Override any GCC internal prototype to avoid an error.
9577 Use char because int might match the return type of a GCC
9578 builtin and then its argument prototype would still apply. */
9582 char pthread_getspecific ();
9586 return pthread_getspecific ();
9591 for ac_lib in '' pthread; do
9592 if test -z "$ac_lib"; then
9593 ac_res="none required"
9596 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (ac_try="$ac_link"
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_link") 2>conftest.er1
9607 grep -v '^ *+' conftest.er1 >conftest.err
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9613 { (case "(($ac_try" in
9614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615 *) ac_try_echo=$ac_try;;
9617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618 (eval "$ac_try") 2>&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; } &&
9622 { ac_try='test -s conftest$ac_exeext'
9623 { (case "(($ac_try" in
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_try") 2>&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 ac_cv_search_pthread_getspecific=$ac_res
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9640 rm -f core conftest.err conftest.$ac_objext \
9642 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9646 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9649 ac_cv_search_pthread_getspecific=no
9652 LIBS=$ac_func_search_save_LIBS
9654 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9655 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9656 ac_res=$ac_cv_search_pthread_getspecific
9657 if test "$ac_res" != no; then
9658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9660 cat >>confdefs.h <<\_ACEOF
9661 #define HAVE_PTHREAD_GETSPECIFIC 1
9668 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9670 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9671 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9672 if test "${ac_cv_lib_z_compress2+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 ac_check_lib_save_LIBS=$LIBS
9677 cat >conftest.$ac_ext <<_ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9684 /* Override any GCC internal prototype to avoid an error.
9685 Use char because int might match the return type of a GCC
9686 builtin and then its argument prototype would still apply. */
9694 return compress2 ();
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (ac_try="$ac_link"
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706 (eval "$ac_link") 2>conftest.er1
9708 grep -v '^ *+' conftest.er1 >conftest.err
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9714 { (case "(($ac_try" in
9715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716 *) ac_try_echo=$ac_try;;
9718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719 (eval "$ac_try") 2>&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; } &&
9723 { ac_try='test -s conftest$ac_exeext'
9724 { (case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_try") 2>&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_cv_lib_z_compress2=yes
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9738 ac_cv_lib_z_compress2=no
9741 rm -f core conftest.err conftest.$ac_objext \
9742 conftest$ac_exeext conftest.$ac_ext
9743 LIBS=$ac_check_lib_save_LIBS
9745 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9746 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9747 if test $ac_cv_lib_z_compress2 = yes; then
9748 cat >>confdefs.h <<_ACEOF
9759 # Check whether --with-oprofile was given.
9760 if test "${with_oprofile+set}" = set; then
9761 withval=$with_oprofile;
9765 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9769 *) llvm_cv_oppath="${withval}/lib/oprofile"
9770 CPPFLAGS="-I${withval}/include";;
9772 case $llvm_cv_os_type in
9774 if test -n "$llvm_cv_oppath" ; then
9775 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9776 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9777 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9778 if test "${ac_cv_search_bfd_init+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 ac_func_search_save_LIBS=$LIBS
9782 cat >conftest.$ac_ext <<_ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9789 /* Override any GCC internal prototype to avoid an error.
9790 Use char because int might match the return type of a GCC
9791 builtin and then its argument prototype would still apply. */
9804 for ac_lib in '' bfd; do
9805 if test -z "$ac_lib"; then
9806 ac_res="none required"
9809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9811 rm -f conftest.$ac_objext conftest$ac_exeext
9812 if { (ac_try="$ac_link"
9814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815 *) ac_try_echo=$ac_try;;
9817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818 (eval "$ac_link") 2>conftest.er1
9820 grep -v '^ *+' conftest.er1 >conftest.err
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9826 { (case "(($ac_try" in
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831 (eval "$ac_try") 2>&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest$ac_exeext'
9836 { (case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_try") 2>&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 ac_cv_search_bfd_init=$ac_res
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9853 rm -f core conftest.err conftest.$ac_objext \
9855 if test "${ac_cv_search_bfd_init+set}" = set; then
9859 if test "${ac_cv_search_bfd_init+set}" = set; then
9862 ac_cv_search_bfd_init=no
9865 LIBS=$ac_func_search_save_LIBS
9867 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9868 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9869 ac_res=$ac_cv_search_bfd_init
9870 if test "$ac_res" != no; then
9871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9875 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9876 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9877 if test "${ac_cv_search_op_open_agent+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 ac_func_search_save_LIBS=$LIBS
9881 cat >conftest.$ac_ext <<_ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9888 /* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
9890 builtin and then its argument prototype would still apply. */
9894 char op_open_agent ();
9898 return op_open_agent ();
9903 for ac_lib in '' opagent; do
9904 if test -z "$ac_lib"; then
9905 ac_res="none required"
9908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9910 rm -f conftest.$ac_objext conftest$ac_exeext
9911 if { (ac_try="$ac_link"
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_link") 2>conftest.er1
9919 grep -v '^ *+' conftest.er1 >conftest.err
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9925 { (case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_try") 2>&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; } &&
9934 { ac_try='test -s conftest$ac_exeext'
9935 { (case "(($ac_try" in
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940 (eval "$ac_try") 2>&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 ac_cv_search_op_open_agent=$ac_res
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9952 rm -f core conftest.err conftest.$ac_objext \
9954 if test "${ac_cv_search_op_open_agent+set}" = set; then
9958 if test "${ac_cv_search_op_open_agent+set}" = set; then
9961 ac_cv_search_op_open_agent=no
9964 LIBS=$ac_func_search_save_LIBS
9966 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9967 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9968 ac_res=$ac_cv_search_op_open_agent
9969 if test "$ac_res" != no; then
9970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9974 echo "Error! You need to have libopagent around."
9979 if test "${ac_cv_header_opagent_h+set}" = set; then
9980 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9981 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9982 if test "${ac_cv_header_opagent_h+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9986 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9988 # Is the header compilable?
9989 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9990 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9991 cat >conftest.$ac_ext <<_ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9997 $ac_includes_default
9998 #include <opagent.h>
10000 rm -f conftest.$ac_objext
10001 if { (ac_try="$ac_compile"
10002 case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_compile") 2>conftest.er1
10009 grep -v '^ *+' conftest.er1 >conftest.err
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
10014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10015 { (case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_try") 2>&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; } &&
10024 { ac_try='test -s conftest.$ac_objext'
10025 { (case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_try") 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 ac_header_compiler=yes
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10039 ac_header_compiler=no
10042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10044 echo "${ECHO_T}$ac_header_compiler" >&6; }
10046 # Is the header present?
10047 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10048 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10049 cat >conftest.$ac_ext <<_ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10055 #include <opagent.h>
10057 if { (ac_try="$ac_cpp conftest.$ac_ext"
10058 case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10065 grep -v '^ *+' conftest.er1 >conftest.err
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } >/dev/null; then
10070 if test -s conftest.err; then
10071 ac_cpp_err=$ac_c_preproc_warn_flag
10072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10079 if test -z "$ac_cpp_err"; then
10080 ac_header_preproc=yes
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 ac_header_preproc=no
10088 rm -f conftest.err conftest.$ac_ext
10089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10090 echo "${ECHO_T}$ac_header_preproc" >&6; }
10092 # So? What about this header?
10093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10095 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10096 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10097 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10098 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10099 ac_header_preproc=yes
10102 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10103 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10104 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10105 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10106 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10107 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10108 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10109 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10110 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10111 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10112 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10113 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10115 ## ------------------------------------ ##
10116 ## Report this to http://llvm.org/bugs/ ##
10117 ## ------------------------------------ ##
10119 ) | sed "s/^/$as_me: WARNING: /" >&2
10122 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10123 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10124 if test "${ac_cv_header_opagent_h+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 ac_cv_header_opagent_h=$ac_header_preproc
10129 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10130 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10133 if test $ac_cv_header_opagent_h = yes; then
10137 echo "Error! You need to have opagent.h around."
10145 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10146 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10147 { (exit 1); exit 1; }; } ;;
10158 cat >>confdefs.h <<_ACEOF
10159 #define LLVM_USE_OPROFILE $USE_OPROFILE
10164 # Check whether --with-intel-jitevents was given.
10165 if test "${with_intel_jitevents+set}" = set; then
10166 withval=$with_intel_jitevents;
10168 yes) USE_INTEL_JITEVENTS=1
10170 no) USE_INTEL_JITEVENTS=0
10172 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10173 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10174 { (exit 1); exit 1; }; };;
10177 case $llvm_cv_os_type in
10178 Linux|Win32|Cygwin|MingW) ;;
10179 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10180 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10181 { (exit 1); exit 1; }; };;
10184 case "$llvm_cv_target_arch" in
10186 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10187 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10188 { (exit 1); exit 1; }; };;
10193 USE_INTEL_JITEVENTS=0
10199 cat >>confdefs.h <<_ACEOF
10200 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10204 for ac_prog in xml2-config
10206 # Extract the first word of "$ac_prog", so it can be a program name with args.
10207 set dummy $ac_prog; ac_word=$2
10208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10210 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 if test -n "$XML2CONFIG"; then
10214 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217 for as_dir in $PATH
10220 test -z "$as_dir" && as_dir=.
10221 for ac_exec_ext in '' $ac_executable_extensions; do
10222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10223 ac_cv_prog_XML2CONFIG="$ac_prog"
10224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10234 if test -n "$XML2CONFIG"; then
10235 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10236 echo "${ECHO_T}$XML2CONFIG" >&6; }
10238 { echo "$as_me:$LINENO: result: no" >&5
10239 echo "${ECHO_T}no" >&6; }
10243 test -n "$XML2CONFIG" && break
10247 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10248 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10249 if test "x$XML2CONFIG" = "x"; then
10250 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10251 echo "${ECHO_T}xml2-config not found" >&6; }
10253 LIBXML2_INC=`$XML2CONFIG --cflags`
10254 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10255 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10256 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10257 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10258 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10261 ac_check_lib_save_LIBS=$LIBS
10262 LIBS="-lxml2 $LIBS"
10263 cat >conftest.$ac_ext <<_ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10270 /* Override any GCC internal prototype to avoid an error.
10271 Use char because int might match the return type of a GCC
10272 builtin and then its argument prototype would still apply. */
10276 char xmlReadFile ();
10280 return xmlReadFile ();
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (ac_try="$ac_link"
10287 case "(($ac_try" in
10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289 *) ac_try_echo=$ac_try;;
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292 (eval "$ac_link") 2>conftest.er1
10294 grep -v '^ *+' conftest.er1 >conftest.err
10296 cat conftest.err >&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10300 { (case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_try") 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; } &&
10309 { ac_try='test -s conftest$ac_exeext'
10310 { (case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_try") 2>&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10319 ac_cv_lib_xml2_xmlReadFile=yes
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10324 ac_cv_lib_xml2_xmlReadFile=no
10327 rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
10329 LIBS=$ac_check_lib_save_LIBS
10331 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10332 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10333 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10335 cat >>confdefs.h <<\_ACEOF
10336 #define CLANG_HAVE_LIBXML 1
10339 LIBXML2_LIBS="-lxml2"
10352 ac_header_dirent=no
10353 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10354 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10355 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10356 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 cat >conftest.$ac_ext <<_ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 #include <sys/types.h>
10378 rm -f conftest.$ac_objext
10379 if { (ac_try="$ac_compile"
10380 case "(($ac_try" in
10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382 *) ac_try_echo=$ac_try;;
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_compile") 2>conftest.er1
10387 grep -v '^ *+' conftest.er1 >conftest.err
10389 cat conftest.err >&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } &&
10392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10393 { (case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_try") 2>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; } &&
10402 { ac_try='test -s conftest.$ac_objext'
10403 { (case "(($ac_try" in
10404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405 *) ac_try_echo=$ac_try;;
10407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10408 (eval "$ac_try") 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; }; then
10412 eval "$as_ac_Header=yes"
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10417 eval "$as_ac_Header=no"
10420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10422 ac_res=`eval echo '${'$as_ac_Header'}'`
10423 { echo "$as_me:$LINENO: result: $ac_res" >&5
10424 echo "${ECHO_T}$ac_res" >&6; }
10425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10426 cat >>confdefs.h <<_ACEOF
10427 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10430 ac_header_dirent=$ac_hdr; break
10434 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10435 if test $ac_header_dirent = dirent.h; then
10436 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10437 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10438 if test "${ac_cv_search_opendir+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 ac_func_search_save_LIBS=$LIBS
10442 cat >conftest.$ac_ext <<_ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h. */
10449 /* Override any GCC internal prototype to avoid an error.
10450 Use char because int might match the return type of a GCC
10451 builtin and then its argument prototype would still apply. */
10464 for ac_lib in '' dir; do
10465 if test -z "$ac_lib"; then
10466 ac_res="none required"
10469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10471 rm -f conftest.$ac_objext conftest$ac_exeext
10472 if { (ac_try="$ac_link"
10473 case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_link") 2>conftest.er1
10480 grep -v '^ *+' conftest.er1 >conftest.err
10482 cat conftest.err >&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } &&
10485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10486 { (case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_try") 2>&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; } &&
10495 { ac_try='test -s conftest$ac_exeext'
10496 { (case "(($ac_try" in
10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498 *) ac_try_echo=$ac_try;;
10500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501 (eval "$ac_try") 2>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10505 ac_cv_search_opendir=$ac_res
10507 echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10513 rm -f core conftest.err conftest.$ac_objext \
10515 if test "${ac_cv_search_opendir+set}" = set; then
10519 if test "${ac_cv_search_opendir+set}" = set; then
10522 ac_cv_search_opendir=no
10524 rm conftest.$ac_ext
10525 LIBS=$ac_func_search_save_LIBS
10527 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10528 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10529 ac_res=$ac_cv_search_opendir
10530 if test "$ac_res" != no; then
10531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10536 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10537 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10538 if test "${ac_cv_search_opendir+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 ac_func_search_save_LIBS=$LIBS
10542 cat >conftest.$ac_ext <<_ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h. */
10549 /* Override any GCC internal prototype to avoid an error.
10550 Use char because int might match the return type of a GCC
10551 builtin and then its argument prototype would still apply. */
10564 for ac_lib in '' x; do
10565 if test -z "$ac_lib"; then
10566 ac_res="none required"
10569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10571 rm -f conftest.$ac_objext conftest$ac_exeext
10572 if { (ac_try="$ac_link"
10573 case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578 (eval "$ac_link") 2>conftest.er1
10580 grep -v '^ *+' conftest.er1 >conftest.err
10582 cat conftest.err >&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } &&
10585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10586 { (case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_try") 2>&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; } &&
10595 { ac_try='test -s conftest$ac_exeext'
10596 { (case "(($ac_try" in
10597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601 (eval "$ac_try") 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; }; then
10605 ac_cv_search_opendir=$ac_res
10607 echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10613 rm -f core conftest.err conftest.$ac_objext \
10615 if test "${ac_cv_search_opendir+set}" = set; then
10619 if test "${ac_cv_search_opendir+set}" = set; then
10622 ac_cv_search_opendir=no
10624 rm conftest.$ac_ext
10625 LIBS=$ac_func_search_save_LIBS
10627 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10628 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10629 ac_res=$ac_cv_search_opendir
10630 if test "$ac_res" != no; then
10631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10637 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10638 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10639 if test "${ac_cv_header_mmap_anon+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 ac_cpp='$CPP $CPPFLAGS'
10644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10648 cat >conftest.$ac_ext <<_ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 #include <sys/mman.h>
10655 #include <unistd.h>
10660 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10665 rm -f conftest.$ac_objext
10666 if { (ac_try="$ac_compile"
10667 case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_compile") 2>conftest.er1
10674 grep -v '^ *+' conftest.er1 >conftest.err
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } &&
10679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10680 { (case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_try") 2>&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; } &&
10689 { ac_try='test -s conftest.$ac_objext'
10690 { (case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_try") 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; }; then
10699 ac_cv_header_mmap_anon=yes
10701 echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10704 ac_cv_header_mmap_anon=no
10707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10709 ac_cpp='$CPP $CPPFLAGS'
10710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10716 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10717 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10718 if test "$ac_cv_header_mmap_anon" = yes; then
10720 cat >>confdefs.h <<\_ACEOF
10721 #define HAVE_MMAP_ANONYMOUS 1
10726 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10727 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10728 if test "${ac_cv_header_stat_broken+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 cat >conftest.$ac_ext <<_ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 #include <sys/types.h>
10738 #include <sys/stat.h>
10740 #if defined S_ISBLK && defined S_IFDIR
10741 # if S_ISBLK (S_IFDIR)
10746 #if defined S_ISBLK && defined S_IFCHR
10747 # if S_ISBLK (S_IFCHR)
10752 #if defined S_ISLNK && defined S_IFREG
10753 # if S_ISLNK (S_IFREG)
10758 #if defined S_ISSOCK && defined S_IFREG
10759 # if S_ISSOCK (S_IFREG)
10765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10766 $EGREP "You lose" >/dev/null 2>&1; then
10767 ac_cv_header_stat_broken=yes
10769 ac_cv_header_stat_broken=no
10774 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10775 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10776 if test $ac_cv_header_stat_broken = yes; then
10778 cat >>confdefs.h <<\_ACEOF
10779 #define STAT_MACROS_BROKEN 1
10784 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10785 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10786 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 cat >conftest.$ac_ext <<_ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h. */
10795 #include <sys/types.h>
10796 #include <sys/wait.h>
10797 #ifndef WEXITSTATUS
10798 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10801 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10809 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10814 rm -f conftest.$ac_objext
10815 if { (ac_try="$ac_compile"
10816 case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_compile") 2>conftest.er1
10823 grep -v '^ *+' conftest.er1 >conftest.err
10825 cat conftest.err >&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } &&
10828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10829 { (case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834 (eval "$ac_try") 2>&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; } &&
10838 { ac_try='test -s conftest.$ac_objext'
10839 { (case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_try") 2>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_cv_header_sys_wait_h=yes
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10853 ac_cv_header_sys_wait_h=no
10856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10858 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10859 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10860 if test $ac_cv_header_sys_wait_h = yes; then
10862 cat >>confdefs.h <<\_ACEOF
10863 #define HAVE_SYS_WAIT_H 1
10868 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10869 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10870 if test "${ac_cv_header_time+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 cat >conftest.$ac_ext <<_ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 #include <sys/types.h>
10880 #include <sys/time.h>
10886 if ((struct tm *) 0)
10892 rm -f conftest.$ac_objext
10893 if { (ac_try="$ac_compile"
10894 case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_compile") 2>conftest.er1
10901 grep -v '^ *+' conftest.er1 >conftest.err
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10907 { (case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_try") 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; } &&
10916 { ac_try='test -s conftest.$ac_objext'
10917 { (case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_try") 2>&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; }; then
10926 ac_cv_header_time=yes
10928 echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10931 ac_cv_header_time=no
10934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10936 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10937 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10938 if test $ac_cv_header_time = yes; then
10940 cat >>confdefs.h <<\_ACEOF
10941 #define TIME_WITH_SYS_TIME 1
10948 ac_cpp='$CXXCPP $CPPFLAGS'
10949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10954 for ac_header in cxxabi.h
10956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 #include <stddef.h>
10971 #include <$ac_header>
10973 rm -f conftest.$ac_objext
10974 if { (ac_try="$ac_compile"
10975 case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_compile") 2>conftest.er1
10982 grep -v '^ *+' conftest.er1 >conftest.err
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } &&
10987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10988 { (case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_try") 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; } &&
10997 { ac_try='test -s conftest.$ac_objext'
10998 { (case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_try") 2>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; }; then
11007 eval "$as_ac_Header=yes"
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11012 eval "$as_ac_Header=no"
11015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017 ac_res=`eval echo '${'$as_ac_Header'}'`
11018 { echo "$as_me:$LINENO: result: $ac_res" >&5
11019 echo "${ECHO_T}$ac_res" >&6; }
11020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11021 cat >>confdefs.h <<_ACEOF
11022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11030 ac_cpp='$CPP $CPPFLAGS'
11031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11041 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11050 ac_res=`eval echo '${'$as_ac_Header'}'`
11051 { echo "$as_me:$LINENO: result: $ac_res" >&5
11052 echo "${ECHO_T}$ac_res" >&6; }
11054 # Is the header compilable?
11055 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11057 cat >conftest.$ac_ext <<_ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11063 $ac_includes_default
11064 #include <$ac_header>
11066 rm -f conftest.$ac_objext
11067 if { (ac_try="$ac_compile"
11068 case "(($ac_try" in
11069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11070 *) ac_try_echo=$ac_try;;
11072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073 (eval "$ac_compile") 2>conftest.er1
11075 grep -v '^ *+' conftest.er1 >conftest.err
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } &&
11080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11081 { (case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086 (eval "$ac_try") 2>&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; } &&
11090 { ac_try='test -s conftest.$ac_objext'
11091 { (case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096 (eval "$ac_try") 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100 ac_header_compiler=yes
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11105 ac_header_compiler=no
11108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11110 echo "${ECHO_T}$ac_header_compiler" >&6; }
11112 # Is the header present?
11113 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11115 cat >conftest.$ac_ext <<_ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h. */
11121 #include <$ac_header>
11123 if { (ac_try="$ac_cpp conftest.$ac_ext"
11124 case "(($ac_try" in
11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126 *) ac_try_echo=$ac_try;;
11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11131 grep -v '^ *+' conftest.er1 >conftest.err
11133 cat conftest.err >&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } >/dev/null; then
11136 if test -s conftest.err; then
11137 ac_cpp_err=$ac_c_preproc_warn_flag
11138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11145 if test -z "$ac_cpp_err"; then
11146 ac_header_preproc=yes
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 ac_header_preproc=no
11154 rm -f conftest.err conftest.$ac_ext
11155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11156 echo "${ECHO_T}$ac_header_preproc" >&6; }
11158 # So? What about this header?
11159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11165 ac_header_preproc=yes
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11181 ## ------------------------------------ ##
11182 ## Report this to http://llvm.org/bugs/ ##
11183 ## ------------------------------------ ##
11185 ) | sed "s/^/$as_me: WARNING: /" >&2
11188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 eval "$as_ac_Header=\$ac_header_preproc"
11195 ac_res=`eval echo '${'$as_ac_Header'}'`
11196 { echo "$as_me:$LINENO: result: $ac_res" >&5
11197 echo "${ECHO_T}$ac_res" >&6; }
11200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11201 cat >>confdefs.h <<_ACEOF
11202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11215 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 ac_res=`eval echo '${'$as_ac_Header'}'`
11225 { echo "$as_me:$LINENO: result: $ac_res" >&5
11226 echo "${ECHO_T}$ac_res" >&6; }
11228 # Is the header compilable?
11229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11231 cat >conftest.$ac_ext <<_ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 $ac_includes_default
11238 #include <$ac_header>
11240 rm -f conftest.$ac_objext
11241 if { (ac_try="$ac_compile"
11242 case "(($ac_try" in
11243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244 *) ac_try_echo=$ac_try;;
11246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247 (eval "$ac_compile") 2>conftest.er1
11249 grep -v '^ *+' conftest.er1 >conftest.err
11251 cat conftest.err >&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
11254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11255 { (case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_try") 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; } &&
11264 { ac_try='test -s conftest.$ac_objext'
11265 { (case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_try") 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; }; then
11274 ac_header_compiler=yes
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11279 ac_header_compiler=no
11282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11284 echo "${ECHO_T}$ac_header_compiler" >&6; }
11286 # Is the header present?
11287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11289 cat >conftest.$ac_ext <<_ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 #include <$ac_header>
11297 if { (ac_try="$ac_cpp conftest.$ac_ext"
11298 case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11305 grep -v '^ *+' conftest.er1 >conftest.err
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } >/dev/null; then
11310 if test -s conftest.err; then
11311 ac_cpp_err=$ac_c_preproc_warn_flag
11312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11319 if test -z "$ac_cpp_err"; then
11320 ac_header_preproc=yes
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 ac_header_preproc=no
11328 rm -f conftest.err conftest.$ac_ext
11329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11330 echo "${ECHO_T}$ac_header_preproc" >&6; }
11332 # So? What about this header?
11333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11339 ac_header_preproc=yes
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11355 ## ------------------------------------ ##
11356 ## Report this to http://llvm.org/bugs/ ##
11357 ## ------------------------------------ ##
11359 ) | sed "s/^/$as_me: WARNING: /" >&2
11362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 eval "$as_ac_Header=\$ac_header_preproc"
11369 ac_res=`eval echo '${'$as_ac_Header'}'`
11370 { echo "$as_me:$LINENO: result: $ac_res" >&5
11371 echo "${ECHO_T}$ac_res" >&6; }
11374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11375 cat >>confdefs.h <<_ACEOF
11376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11384 for ac_header in utime.h
11386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 ac_res=`eval echo '${'$as_ac_Header'}'`
11394 { echo "$as_me:$LINENO: result: $ac_res" >&5
11395 echo "${ECHO_T}$ac_res" >&6; }
11397 # Is the header compilable?
11398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11400 cat >conftest.$ac_ext <<_ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406 $ac_includes_default
11407 #include <$ac_header>
11409 rm -f conftest.$ac_objext
11410 if { (ac_try="$ac_compile"
11411 case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416 (eval "$ac_compile") 2>conftest.er1
11418 grep -v '^ *+' conftest.er1 >conftest.err
11420 cat conftest.err >&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11424 { (case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_try") 2>&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }; } &&
11433 { ac_try='test -s conftest.$ac_objext'
11434 { (case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_try") 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
11443 ac_header_compiler=yes
11445 echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11448 ac_header_compiler=no
11451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11453 echo "${ECHO_T}$ac_header_compiler" >&6; }
11455 # Is the header present?
11456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11458 cat >conftest.$ac_ext <<_ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11464 #include <$ac_header>
11466 if { (ac_try="$ac_cpp conftest.$ac_ext"
11467 case "(($ac_try" in
11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469 *) ac_try_echo=$ac_try;;
11471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11474 grep -v '^ *+' conftest.er1 >conftest.err
11476 cat conftest.err >&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } >/dev/null; then
11479 if test -s conftest.err; then
11480 ac_cpp_err=$ac_c_preproc_warn_flag
11481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11488 if test -z "$ac_cpp_err"; then
11489 ac_header_preproc=yes
11491 echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11494 ac_header_preproc=no
11497 rm -f conftest.err conftest.$ac_ext
11498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11499 echo "${ECHO_T}$ac_header_preproc" >&6; }
11501 # So? What about this header?
11502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11508 ac_header_preproc=yes
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11524 ## ------------------------------------ ##
11525 ## Report this to http://llvm.org/bugs/ ##
11526 ## ------------------------------------ ##
11528 ) | sed "s/^/$as_me: WARNING: /" >&2
11531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 eval "$as_ac_Header=\$ac_header_preproc"
11538 ac_res=`eval echo '${'$as_ac_Header'}'`
11539 { echo "$as_me:$LINENO: result: $ac_res" >&5
11540 echo "${ECHO_T}$ac_res" >&6; }
11543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11544 cat >>confdefs.h <<_ACEOF
11545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11557 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 ac_res=`eval echo '${'$as_ac_Header'}'`
11567 { echo "$as_me:$LINENO: result: $ac_res" >&5
11568 echo "${ECHO_T}$ac_res" >&6; }
11570 # Is the header compilable?
11571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11573 cat >conftest.$ac_ext <<_ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 $ac_includes_default
11580 #include <$ac_header>
11582 rm -f conftest.$ac_objext
11583 if { (ac_try="$ac_compile"
11584 case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_compile") 2>conftest.er1
11591 grep -v '^ *+' conftest.er1 >conftest.err
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11597 { (case "(($ac_try" in
11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599 *) ac_try_echo=$ac_try;;
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602 (eval "$ac_try") 2>&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; } &&
11606 { ac_try='test -s conftest.$ac_objext'
11607 { (case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612 (eval "$ac_try") 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 ac_header_compiler=yes
11618 echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11621 ac_header_compiler=no
11624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11626 echo "${ECHO_T}$ac_header_compiler" >&6; }
11628 # Is the header present?
11629 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11631 cat >conftest.$ac_ext <<_ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11637 #include <$ac_header>
11639 if { (ac_try="$ac_cpp conftest.$ac_ext"
11640 case "(($ac_try" in
11641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642 *) ac_try_echo=$ac_try;;
11644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11647 grep -v '^ *+' conftest.er1 >conftest.err
11649 cat conftest.err >&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } >/dev/null; then
11652 if test -s conftest.err; then
11653 ac_cpp_err=$ac_c_preproc_warn_flag
11654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11661 if test -z "$ac_cpp_err"; then
11662 ac_header_preproc=yes
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11667 ac_header_preproc=no
11670 rm -f conftest.err conftest.$ac_ext
11671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11672 echo "${ECHO_T}$ac_header_preproc" >&6; }
11674 # So? What about this header?
11675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11681 ac_header_preproc=yes
11684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11691 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11697 ## ------------------------------------ ##
11698 ## Report this to http://llvm.org/bugs/ ##
11699 ## ------------------------------------ ##
11701 ) | sed "s/^/$as_me: WARNING: /" >&2
11704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 eval "$as_ac_Header=\$ac_header_preproc"
11711 ac_res=`eval echo '${'$as_ac_Header'}'`
11712 { echo "$as_me:$LINENO: result: $ac_res" >&5
11713 echo "${ECHO_T}$ac_res" >&6; }
11716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11717 cat >>confdefs.h <<_ACEOF
11718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11728 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 ac_res=`eval echo '${'$as_ac_Header'}'`
11738 { echo "$as_me:$LINENO: result: $ac_res" >&5
11739 echo "${ECHO_T}$ac_res" >&6; }
11741 # Is the header compilable?
11742 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11744 cat >conftest.$ac_ext <<_ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 $ac_includes_default
11751 #include <$ac_header>
11753 rm -f conftest.$ac_objext
11754 if { (ac_try="$ac_compile"
11755 case "(($ac_try" in
11756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757 *) ac_try_echo=$ac_try;;
11759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11760 (eval "$ac_compile") 2>conftest.er1
11762 grep -v '^ *+' conftest.er1 >conftest.err
11764 cat conftest.err >&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } &&
11767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11768 { (case "(($ac_try" in
11769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770 *) ac_try_echo=$ac_try;;
11772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773 (eval "$ac_try") 2>&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; } &&
11777 { ac_try='test -s conftest.$ac_objext'
11778 { (case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783 (eval "$ac_try") 2>&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 ac_header_compiler=yes
11789 echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11792 ac_header_compiler=no
11795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11797 echo "${ECHO_T}$ac_header_compiler" >&6; }
11799 # Is the header present?
11800 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11802 cat >conftest.$ac_ext <<_ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 #include <$ac_header>
11810 if { (ac_try="$ac_cpp conftest.$ac_ext"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11818 grep -v '^ *+' conftest.er1 >conftest.err
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } >/dev/null; then
11823 if test -s conftest.err; then
11824 ac_cpp_err=$ac_c_preproc_warn_flag
11825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11832 if test -z "$ac_cpp_err"; then
11833 ac_header_preproc=yes
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11838 ac_header_preproc=no
11841 rm -f conftest.err conftest.$ac_ext
11842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11843 echo "${ECHO_T}$ac_header_preproc" >&6; }
11845 # So? What about this header?
11846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11852 ac_header_preproc=yes
11855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11868 ## ------------------------------------ ##
11869 ## Report this to http://llvm.org/bugs/ ##
11870 ## ------------------------------------ ##
11872 ) | sed "s/^/$as_me: WARNING: /" >&2
11875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 eval "$as_ac_Header=\$ac_header_preproc"
11882 ac_res=`eval echo '${'$as_ac_Header'}'`
11883 { echo "$as_me:$LINENO: result: $ac_res" >&5
11884 echo "${ECHO_T}$ac_res" >&6; }
11887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11888 cat >>confdefs.h <<_ACEOF
11889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11897 for ac_header in valgrind/valgrind.h
11899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11906 ac_res=`eval echo '${'$as_ac_Header'}'`
11907 { echo "$as_me:$LINENO: result: $ac_res" >&5
11908 echo "${ECHO_T}$ac_res" >&6; }
11910 # Is the header compilable?
11911 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11913 cat >conftest.$ac_ext <<_ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h. */
11919 $ac_includes_default
11920 #include <$ac_header>
11922 rm -f conftest.$ac_objext
11923 if { (ac_try="$ac_compile"
11924 case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_compile") 2>conftest.er1
11931 grep -v '^ *+' conftest.er1 >conftest.err
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11937 { (case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_try") 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest.$ac_objext'
11947 { (case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_try") 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 ac_header_compiler=yes
11958 echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11961 ac_header_compiler=no
11964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11966 echo "${ECHO_T}$ac_header_compiler" >&6; }
11968 # Is the header present?
11969 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11971 cat >conftest.$ac_ext <<_ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h. */
11977 #include <$ac_header>
11979 if { (ac_try="$ac_cpp conftest.$ac_ext"
11980 case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11987 grep -v '^ *+' conftest.er1 >conftest.err
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } >/dev/null; then
11992 if test -s conftest.err; then
11993 ac_cpp_err=$ac_c_preproc_warn_flag
11994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12001 if test -z "$ac_cpp_err"; then
12002 ac_header_preproc=yes
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12007 ac_header_preproc=no
12010 rm -f conftest.err conftest.$ac_ext
12011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12012 echo "${ECHO_T}$ac_header_preproc" >&6; }
12014 # So? What about this header?
12015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12021 ac_header_preproc=yes
12024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12037 ## ------------------------------------ ##
12038 ## Report this to http://llvm.org/bugs/ ##
12039 ## ------------------------------------ ##
12041 ) | sed "s/^/$as_me: WARNING: /" >&2
12044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 eval "$as_ac_Header=\$ac_header_preproc"
12051 ac_res=`eval echo '${'$as_ac_Header'}'`
12052 { echo "$as_me:$LINENO: result: $ac_res" >&5
12053 echo "${ECHO_T}$ac_res" >&6; }
12056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12057 cat >>confdefs.h <<_ACEOF
12058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12066 for ac_header in fenv.h
12068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 ac_res=`eval echo '${'$as_ac_Header'}'`
12076 { echo "$as_me:$LINENO: result: $ac_res" >&5
12077 echo "${ECHO_T}$ac_res" >&6; }
12079 # Is the header compilable?
12080 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12082 cat >conftest.$ac_ext <<_ACEOF
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h. */
12088 $ac_includes_default
12089 #include <$ac_header>
12091 rm -f conftest.$ac_objext
12092 if { (ac_try="$ac_compile"
12093 case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_compile") 2>conftest.er1
12100 grep -v '^ *+' conftest.er1 >conftest.err
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12106 { (case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_try") 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; } &&
12115 { ac_try='test -s conftest.$ac_objext'
12116 { (case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_try") 2>&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 ac_header_compiler=yes
12127 echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12130 ac_header_compiler=no
12133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12135 echo "${ECHO_T}$ac_header_compiler" >&6; }
12137 # Is the header present?
12138 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 #include <$ac_header>
12148 if { (ac_try="$ac_cpp conftest.$ac_ext"
12149 case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12156 grep -v '^ *+' conftest.er1 >conftest.err
12158 cat conftest.err >&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } >/dev/null; then
12161 if test -s conftest.err; then
12162 ac_cpp_err=$ac_c_preproc_warn_flag
12163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12170 if test -z "$ac_cpp_err"; then
12171 ac_header_preproc=yes
12173 echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12176 ac_header_preproc=no
12179 rm -f conftest.err conftest.$ac_ext
12180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12181 echo "${ECHO_T}$ac_header_preproc" >&6; }
12183 # So? What about this header?
12184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12190 ac_header_preproc=yes
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12200 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12206 ## ------------------------------------ ##
12207 ## Report this to http://llvm.org/bugs/ ##
12208 ## ------------------------------------ ##
12210 ) | sed "s/^/$as_me: WARNING: /" >&2
12213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 eval "$as_ac_Header=\$ac_header_preproc"
12220 ac_res=`eval echo '${'$as_ac_Header'}'`
12221 { echo "$as_me:$LINENO: result: $ac_res" >&5
12222 echo "${ECHO_T}$ac_res" >&6; }
12225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12226 cat >>confdefs.h <<_ACEOF
12227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12234 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12235 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12236 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 cat >conftest.$ac_ext <<_ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12250 #ifndef FE_ALL_EXCEPT
12251 char *p = (char *) FE_ALL_EXCEPT;
12259 rm -f conftest.$ac_objext
12260 if { (ac_try="$ac_compile"
12261 case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_compile") 2>conftest.er1
12268 grep -v '^ *+' conftest.er1 >conftest.err
12270 cat conftest.err >&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } &&
12273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12274 { (case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_try") 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try='test -s conftest.$ac_objext'
12284 { (case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_try") 2>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; }; then
12293 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12295 echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12298 ac_cv_have_decl_FE_ALL_EXCEPT=no
12301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12303 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12304 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12305 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12307 cat >>confdefs.h <<_ACEOF
12308 #define HAVE_DECL_FE_ALL_EXCEPT 1
12313 cat >>confdefs.h <<_ACEOF
12314 #define HAVE_DECL_FE_ALL_EXCEPT 0
12319 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12320 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12321 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 cat >conftest.$ac_ext <<_ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12336 char *p = (char *) FE_INEXACT;
12344 rm -f conftest.$ac_objext
12345 if { (ac_try="$ac_compile"
12346 case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_compile") 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12359 { (case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_try") 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest.$ac_objext'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_cv_have_decl_FE_INEXACT=yes
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 ac_cv_have_decl_FE_INEXACT=no
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12389 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12390 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12392 cat >>confdefs.h <<_ACEOF
12393 #define HAVE_DECL_FE_INEXACT 1
12398 cat >>confdefs.h <<_ACEOF
12399 #define HAVE_DECL_FE_INEXACT 0
12406 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12408 for ac_header in pthread.h
12410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 ac_res=`eval echo '${'$as_ac_Header'}'`
12418 { echo "$as_me:$LINENO: result: $ac_res" >&5
12419 echo "${ECHO_T}$ac_res" >&6; }
12421 # Is the header compilable?
12422 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12424 cat >conftest.$ac_ext <<_ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 $ac_includes_default
12431 #include <$ac_header>
12433 rm -f conftest.$ac_objext
12434 if { (ac_try="$ac_compile"
12435 case "(($ac_try" in
12436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437 *) ac_try_echo=$ac_try;;
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440 (eval "$ac_compile") 2>conftest.er1
12442 grep -v '^ *+' conftest.er1 >conftest.err
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12448 { (case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453 (eval "$ac_try") 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; } &&
12457 { ac_try='test -s conftest.$ac_objext'
12458 { (case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_try") 2>&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_header_compiler=yes
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12472 ac_header_compiler=no
12475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12477 echo "${ECHO_T}$ac_header_compiler" >&6; }
12479 # Is the header present?
12480 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12482 cat >conftest.$ac_ext <<_ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 #include <$ac_header>
12490 if { (ac_try="$ac_cpp conftest.$ac_ext"
12491 case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12498 grep -v '^ *+' conftest.er1 >conftest.err
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } >/dev/null; then
12503 if test -s conftest.err; then
12504 ac_cpp_err=$ac_c_preproc_warn_flag
12505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12512 if test -z "$ac_cpp_err"; then
12513 ac_header_preproc=yes
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12518 ac_header_preproc=no
12521 rm -f conftest.err conftest.$ac_ext
12522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12523 echo "${ECHO_T}$ac_header_preproc" >&6; }
12525 # So? What about this header?
12526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12532 ac_header_preproc=yes
12535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12548 ## ------------------------------------ ##
12549 ## Report this to http://llvm.org/bugs/ ##
12550 ## ------------------------------------ ##
12552 ) | sed "s/^/$as_me: WARNING: /" >&2
12555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 eval "$as_ac_Header=\$ac_header_preproc"
12562 ac_res=`eval echo '${'$as_ac_Header'}'`
12563 { echo "$as_me:$LINENO: result: $ac_res" >&5
12564 echo "${ECHO_T}$ac_res" >&6; }
12567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12568 cat >>confdefs.h <<_ACEOF
12569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12584 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12586 for ac_header in zlib.h
12588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 ac_res=`eval echo '${'$as_ac_Header'}'`
12596 { echo "$as_me:$LINENO: result: $ac_res" >&5
12597 echo "${ECHO_T}$ac_res" >&6; }
12599 # Is the header compilable?
12600 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12602 cat >conftest.$ac_ext <<_ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12608 $ac_includes_default
12609 #include <$ac_header>
12611 rm -f conftest.$ac_objext
12612 if { (ac_try="$ac_compile"
12613 case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_compile") 2>conftest.er1
12620 grep -v '^ *+' conftest.er1 >conftest.err
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12626 { (case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_try") 2>&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } &&
12635 { ac_try='test -s conftest.$ac_objext'
12636 { (case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_try") 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 ac_header_compiler=yes
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12650 ac_header_compiler=no
12653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12655 echo "${ECHO_T}$ac_header_compiler" >&6; }
12657 # Is the header present?
12658 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12660 cat >conftest.$ac_ext <<_ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12666 #include <$ac_header>
12668 if { (ac_try="$ac_cpp conftest.$ac_ext"
12669 case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12676 grep -v '^ *+' conftest.er1 >conftest.err
12678 cat conftest.err >&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } >/dev/null; then
12681 if test -s conftest.err; then
12682 ac_cpp_err=$ac_c_preproc_warn_flag
12683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12690 if test -z "$ac_cpp_err"; then
12691 ac_header_preproc=yes
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12696 ac_header_preproc=no
12699 rm -f conftest.err conftest.$ac_ext
12700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12701 echo "${ECHO_T}$ac_header_preproc" >&6; }
12703 # So? What about this header?
12704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12710 ac_header_preproc=yes
12713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12726 ## ------------------------------------ ##
12727 ## Report this to http://llvm.org/bugs/ ##
12728 ## ------------------------------------ ##
12730 ) | sed "s/^/$as_me: WARNING: /" >&2
12733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 eval "$as_ac_Header=\$ac_header_preproc"
12740 ac_res=`eval echo '${'$as_ac_Header'}'`
12741 { echo "$as_me:$LINENO: result: $ac_res" >&5
12742 echo "${ECHO_T}$ac_res" >&6; }
12745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12746 cat >>confdefs.h <<_ACEOF
12747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12763 if test "$llvm_cv_enable_libffi" = "yes" ; then
12766 for ac_header in ffi.h ffi/ffi.h
12768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12775 ac_res=`eval echo '${'$as_ac_Header'}'`
12776 { echo "$as_me:$LINENO: result: $ac_res" >&5
12777 echo "${ECHO_T}$ac_res" >&6; }
12779 # Is the header compilable?
12780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12782 cat >conftest.$ac_ext <<_ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 $ac_includes_default
12789 #include <$ac_header>
12791 rm -f conftest.$ac_objext
12792 if { (ac_try="$ac_compile"
12793 case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_compile") 2>conftest.er1
12800 grep -v '^ *+' conftest.er1 >conftest.err
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } &&
12805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12806 { (case "(($ac_try" in
12807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808 *) ac_try_echo=$ac_try;;
12810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811 (eval "$ac_try") 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; } &&
12815 { ac_try='test -s conftest.$ac_objext'
12816 { (case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_try") 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 ac_header_compiler=yes
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 ac_header_compiler=no
12833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12835 echo "${ECHO_T}$ac_header_compiler" >&6; }
12837 # Is the header present?
12838 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12840 cat >conftest.$ac_ext <<_ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12846 #include <$ac_header>
12848 if { (ac_try="$ac_cpp conftest.$ac_ext"
12849 case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12856 grep -v '^ *+' conftest.er1 >conftest.err
12858 cat conftest.err >&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } >/dev/null; then
12861 if test -s conftest.err; then
12862 ac_cpp_err=$ac_c_preproc_warn_flag
12863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12870 if test -z "$ac_cpp_err"; then
12871 ac_header_preproc=yes
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 ac_header_preproc=no
12879 rm -f conftest.err conftest.$ac_ext
12880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12881 echo "${ECHO_T}$ac_header_preproc" >&6; }
12883 # So? What about this header?
12884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12890 ac_header_preproc=yes
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12900 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12906 ## ------------------------------------ ##
12907 ## Report this to http://llvm.org/bugs/ ##
12908 ## ------------------------------------ ##
12910 ) | sed "s/^/$as_me: WARNING: /" >&2
12913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12918 eval "$as_ac_Header=\$ac_header_preproc"
12920 ac_res=`eval echo '${'$as_ac_Header'}'`
12921 { echo "$as_me:$LINENO: result: $ac_res" >&5
12922 echo "${ECHO_T}$ac_res" >&6; }
12925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12926 cat >>confdefs.h <<_ACEOF
12927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12937 for ac_header in CrashReporterClient.h
12939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12944 echo $ECHO_N "(cached) $ECHO_C" >&6
12946 ac_res=`eval echo '${'$as_ac_Header'}'`
12947 { echo "$as_me:$LINENO: result: $ac_res" >&5
12948 echo "${ECHO_T}$ac_res" >&6; }
12950 # Is the header compilable?
12951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12953 cat >conftest.$ac_ext <<_ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12959 $ac_includes_default
12960 #include <$ac_header>
12962 rm -f conftest.$ac_objext
12963 if { (ac_try="$ac_compile"
12964 case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_compile") 2>conftest.er1
12971 grep -v '^ *+' conftest.er1 >conftest.err
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12977 { (case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_try") 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; } &&
12986 { ac_try='test -s conftest.$ac_objext'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 ac_header_compiler=yes
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 ac_header_compiler=no
13004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13006 echo "${ECHO_T}$ac_header_compiler" >&6; }
13008 # Is the header present?
13009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13011 cat >conftest.$ac_ext <<_ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13017 #include <$ac_header>
13019 if { (ac_try="$ac_cpp conftest.$ac_ext"
13020 case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13027 grep -v '^ *+' conftest.er1 >conftest.err
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } >/dev/null; then
13032 if test -s conftest.err; then
13033 ac_cpp_err=$ac_c_preproc_warn_flag
13034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13041 if test -z "$ac_cpp_err"; then
13042 ac_header_preproc=yes
13044 echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13047 ac_header_preproc=no
13050 rm -f conftest.err conftest.$ac_ext
13051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13052 echo "${ECHO_T}$ac_header_preproc" >&6; }
13054 # So? What about this header?
13055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13061 ac_header_preproc=yes
13064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13077 ## ------------------------------------ ##
13078 ## Report this to http://llvm.org/bugs/ ##
13079 ## ------------------------------------ ##
13081 ) | sed "s/^/$as_me: WARNING: /" >&2
13084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 eval "$as_ac_Header=\$ac_header_preproc"
13091 ac_res=`eval echo '${'$as_ac_Header'}'`
13092 { echo "$as_me:$LINENO: result: $ac_res" >&5
13093 echo "${ECHO_T}$ac_res" >&6; }
13096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13097 cat >>confdefs.h <<_ACEOF
13098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13106 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13107 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13108 cat >conftest.$ac_ext <<_ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13116 extern const char *__crashreporter_info__;
13118 __crashreporter_info__ = "test";
13124 rm -f conftest.$ac_objext conftest$ac_exeext
13125 if { (ac_try="$ac_link"
13126 case "(($ac_try" in
13127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128 *) ac_try_echo=$ac_try;;
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131 (eval "$ac_link") 2>conftest.er1
13133 grep -v '^ *+' conftest.er1 >conftest.err
13135 cat conftest.err >&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } &&
13138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13139 { (case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144 (eval "$ac_try") 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; } &&
13148 { ac_try='test -s conftest$ac_exeext'
13149 { (case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_try") 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; }; then
13159 { echo "$as_me:$LINENO: result: yes" >&5
13160 echo "${ECHO_T}yes" >&6; }
13162 cat >>confdefs.h <<\_ACEOF
13163 #define HAVE_CRASHREPORTER_INFO 1
13168 echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13172 { echo "$as_me:$LINENO: result: no" >&5
13173 echo "${ECHO_T}no" >&6; }
13175 cat >>confdefs.h <<\_ACEOF
13176 #define HAVE_CRASHREPORTER_INFO 0
13182 rm -f core conftest.err conftest.$ac_objext \
13183 conftest$ac_exeext conftest.$ac_ext
13187 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13188 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13189 if test "${ac_cv_huge_val_sanity+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 ac_cpp='$CXXCPP $CPPFLAGS'
13195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13199 ac_save_CXXFLAGS=$CXXFLAGS
13200 CXXFLAGS="$CXXFLAGS -pedantic"
13201 if test "$cross_compiling" = yes; then
13202 ac_cv_huge_val_sanity=yes
13204 cat >conftest.$ac_ext <<_ACEOF
13207 cat confdefs.h >>conftest.$ac_ext
13208 cat >>conftest.$ac_ext <<_ACEOF
13209 /* end confdefs.h. */
13214 double x = HUGE_VAL; return x != x;
13219 rm -f conftest$ac_exeext
13220 if { (ac_try="$ac_link"
13221 case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_link") 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13230 { (case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_try") 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 ac_cv_huge_val_sanity=yes
13241 echo "$as_me: program exited with status $ac_status" >&5
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13245 ( exit $ac_status )
13246 ac_cv_huge_val_sanity=no
13248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13252 CXXFLAGS=$ac_save_CXXFLAGS
13254 ac_cpp='$CPP $CPPFLAGS'
13255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13261 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13262 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13263 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13266 { echo "$as_me:$LINENO: checking for pid_t" >&5
13267 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13268 if test "${ac_cv_type_pid_t+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 cat >conftest.$ac_ext <<_ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 $ac_includes_default
13278 typedef pid_t ac__type_new_;
13282 if ((ac__type_new_ *) 0)
13284 if (sizeof (ac__type_new_))
13290 rm -f conftest.$ac_objext
13291 if { (ac_try="$ac_compile"
13292 case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_compile") 2>conftest.er1
13299 grep -v '^ *+' conftest.er1 >conftest.err
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13305 { (case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310 (eval "$ac_try") 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; } &&
13314 { ac_try='test -s conftest.$ac_objext'
13315 { (case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_try") 2>&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; }; then
13324 ac_cv_type_pid_t=yes
13326 echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13329 ac_cv_type_pid_t=no
13332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13334 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13335 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13336 if test $ac_cv_type_pid_t = yes; then
13340 cat >>confdefs.h <<_ACEOF
13346 { echo "$as_me:$LINENO: checking for size_t" >&5
13347 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13348 if test "${ac_cv_type_size_t+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 cat >conftest.$ac_ext <<_ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357 $ac_includes_default
13358 typedef size_t ac__type_new_;
13362 if ((ac__type_new_ *) 0)
13364 if (sizeof (ac__type_new_))
13370 rm -f conftest.$ac_objext
13371 if { (ac_try="$ac_compile"
13372 case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_compile") 2>conftest.er1
13379 grep -v '^ *+' conftest.er1 >conftest.err
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } &&
13384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13385 { (case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_try") 2>&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; } &&
13394 { ac_try='test -s conftest.$ac_objext'
13395 { (case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400 (eval "$ac_try") 2>&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; }; then
13404 ac_cv_type_size_t=yes
13406 echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13409 ac_cv_type_size_t=no
13412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13414 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13415 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13416 if test $ac_cv_type_size_t = yes; then
13420 cat >>confdefs.h <<_ACEOF
13421 #define size_t unsigned int
13427 cat >>confdefs.h <<_ACEOF
13428 #define RETSIGTYPE void
13431 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13432 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13433 if test "${ac_cv_struct_tm+set}" = set; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 cat >conftest.$ac_ext <<_ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13442 #include <sys/types.h>
13448 struct tm *tp; tp->tm_sec;
13453 rm -f conftest.$ac_objext
13454 if { (ac_try="$ac_compile"
13455 case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460 (eval "$ac_compile") 2>conftest.er1
13462 grep -v '^ *+' conftest.er1 >conftest.err
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13468 { (case "(($ac_try" in
13469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470 *) ac_try_echo=$ac_try;;
13472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473 (eval "$ac_try") 2>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; } &&
13477 { ac_try='test -s conftest.$ac_objext'
13478 { (case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_try") 2>&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; }; then
13487 ac_cv_struct_tm=time.h
13489 echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13492 ac_cv_struct_tm=sys/time.h
13495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13497 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13498 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13499 if test $ac_cv_struct_tm = sys/time.h; then
13501 cat >>confdefs.h <<\_ACEOF
13502 #define TM_IN_SYS_TIME 1
13507 { echo "$as_me:$LINENO: checking for int64_t" >&5
13508 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13509 if test "${ac_cv_type_int64_t+set}" = set; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13512 cat >conftest.$ac_ext <<_ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518 $ac_includes_default
13519 typedef int64_t ac__type_new_;
13523 if ((ac__type_new_ *) 0)
13525 if (sizeof (ac__type_new_))
13531 rm -f conftest.$ac_objext
13532 if { (ac_try="$ac_compile"
13533 case "(($ac_try" in
13534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13535 *) ac_try_echo=$ac_try;;
13537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13538 (eval "$ac_compile") 2>conftest.er1
13540 grep -v '^ *+' conftest.er1 >conftest.err
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
13545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13546 { (case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551 (eval "$ac_try") 2>&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; } &&
13555 { ac_try='test -s conftest.$ac_objext'
13556 { (case "(($ac_try" in
13557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558 *) ac_try_echo=$ac_try;;
13560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561 (eval "$ac_try") 2>&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; }; then
13565 ac_cv_type_int64_t=yes
13567 echo "$as_me: failed program was:" >&5
13568 sed 's/^/| /' conftest.$ac_ext >&5
13570 ac_cv_type_int64_t=no
13573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13575 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13576 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13577 if test $ac_cv_type_int64_t = yes; then
13579 cat >>confdefs.h <<_ACEOF
13580 #define HAVE_INT64_T 1
13585 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13586 echo "$as_me: error: Type int64_t required but not found" >&2;}
13587 { (exit 1); exit 1; }; }
13590 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13591 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13592 if test "${ac_cv_type_uint64_t+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13595 cat >conftest.$ac_ext <<_ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13601 $ac_includes_default
13602 typedef uint64_t ac__type_new_;
13606 if ((ac__type_new_ *) 0)
13608 if (sizeof (ac__type_new_))
13614 rm -f conftest.$ac_objext
13615 if { (ac_try="$ac_compile"
13616 case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_compile") 2>conftest.er1
13623 grep -v '^ *+' conftest.er1 >conftest.err
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13629 { (case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_try") 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; } &&
13638 { ac_try='test -s conftest.$ac_objext'
13639 { (case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_try") 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13648 ac_cv_type_uint64_t=yes
13650 echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13653 ac_cv_type_uint64_t=no
13656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13659 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13660 if test $ac_cv_type_uint64_t = yes; then
13662 cat >>confdefs.h <<_ACEOF
13663 #define HAVE_UINT64_T 1
13668 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13669 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13670 if test "${ac_cv_type_u_int64_t+set}" = set; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 cat >conftest.$ac_ext <<_ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13679 $ac_includes_default
13680 typedef u_int64_t ac__type_new_;
13684 if ((ac__type_new_ *) 0)
13686 if (sizeof (ac__type_new_))
13692 rm -f conftest.$ac_objext
13693 if { (ac_try="$ac_compile"
13694 case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_compile") 2>conftest.er1
13701 grep -v '^ *+' conftest.er1 >conftest.err
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707 { (case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712 (eval "$ac_try") 2>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest.$ac_objext'
13717 { (case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 ac_cv_type_u_int64_t=yes
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13731 ac_cv_type_u_int64_t=no
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13736 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13737 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13738 if test $ac_cv_type_u_int64_t = yes; then
13740 cat >>confdefs.h <<_ACEOF
13741 #define HAVE_U_INT64_T 1
13746 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13747 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13748 { (exit 1); exit 1; }; }
13762 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 cat >conftest.$ac_ext <<_ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h. */
13776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13778 #define $ac_func innocuous_$ac_func
13780 /* System header to define __stub macros and hopefully few prototypes,
13781 which can conflict with char $ac_func (); below.
13782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13783 <limits.h> exists even on freestanding compilers. */
13786 # include <limits.h>
13788 # include <assert.h>
13793 /* Override any GCC internal prototype to avoid an error.
13794 Use char because int might match the return type of a GCC
13795 builtin and then its argument prototype would still apply. */
13800 /* The GNU C library defines this for functions which it implements
13801 to always fail with ENOSYS. Some functions are actually named
13802 something starting with __ and the normal name is an alias. */
13803 #if defined __stub_$ac_func || defined __stub___$ac_func
13810 return $ac_func ();
13815 rm -f conftest.$ac_objext conftest$ac_exeext
13816 if { (ac_try="$ac_link"
13817 case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_link") 2>conftest.er1
13824 grep -v '^ *+' conftest.er1 >conftest.err
13826 cat conftest.err >&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
13829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13830 { (case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_try") 2>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; } &&
13839 { ac_try='test -s conftest$ac_exeext'
13840 { (case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_try") 2>&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 eval "$as_ac_var=yes"
13851 echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13854 eval "$as_ac_var=no"
13857 rm -f core conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
13860 ac_res=`eval echo '${'$as_ac_var'}'`
13861 { echo "$as_me:$LINENO: result: $ac_res" >&5
13862 echo "${ECHO_T}$ac_res" >&6; }
13863 if test `eval echo '${'$as_ac_var'}'` = yes; then
13864 cat >>confdefs.h <<_ACEOF
13865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13875 for ac_func in powf fmodf strtof round
13877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 cat >conftest.$ac_ext <<_ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13891 #define $ac_func innocuous_$ac_func
13893 /* System header to define __stub macros and hopefully few prototypes,
13894 which can conflict with char $ac_func (); below.
13895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13896 <limits.h> exists even on freestanding compilers. */
13899 # include <limits.h>
13901 # include <assert.h>
13906 /* Override any GCC internal prototype to avoid an error.
13907 Use char because int might match the return type of a GCC
13908 builtin and then its argument prototype would still apply. */
13913 /* The GNU C library defines this for functions which it implements
13914 to always fail with ENOSYS. Some functions are actually named
13915 something starting with __ and the normal name is an alias. */
13916 #if defined __stub_$ac_func || defined __stub___$ac_func
13923 return $ac_func ();
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (ac_try="$ac_link"
13930 case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_link") 2>conftest.er1
13937 grep -v '^ *+' conftest.er1 >conftest.err
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } &&
13942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13943 { (case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_try") 2>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; } &&
13952 { ac_try='test -s conftest$ac_exeext'
13953 { (case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958 (eval "$ac_try") 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13962 eval "$as_ac_var=yes"
13964 echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13967 eval "$as_ac_var=no"
13970 rm -f core conftest.err conftest.$ac_objext \
13971 conftest$ac_exeext conftest.$ac_ext
13973 ac_res=`eval echo '${'$as_ac_var'}'`
13974 { echo "$as_me:$LINENO: result: $ac_res" >&5
13975 echo "${ECHO_T}$ac_res" >&6; }
13976 if test `eval echo '${'$as_ac_var'}'` = yes; then
13977 cat >>confdefs.h <<_ACEOF
13978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13989 for ac_func in log log2 log10 exp exp2
13991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13997 cat >conftest.$ac_ext <<_ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14005 #define $ac_func innocuous_$ac_func
14007 /* System header to define __stub macros and hopefully few prototypes,
14008 which can conflict with char $ac_func (); below.
14009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14010 <limits.h> exists even on freestanding compilers. */
14013 # include <limits.h>
14015 # include <assert.h>
14020 /* Override any GCC internal prototype to avoid an error.
14021 Use char because int might match the return type of a GCC
14022 builtin and then its argument prototype would still apply. */
14027 /* The GNU C library defines this for functions which it implements
14028 to always fail with ENOSYS. Some functions are actually named
14029 something starting with __ and the normal name is an alias. */
14030 #if defined __stub_$ac_func || defined __stub___$ac_func
14037 return $ac_func ();
14042 rm -f conftest.$ac_objext conftest$ac_exeext
14043 if { (ac_try="$ac_link"
14044 case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_link") 2>conftest.er1
14051 grep -v '^ *+' conftest.er1 >conftest.err
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } &&
14056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14057 { (case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_try") 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; } &&
14066 { ac_try='test -s conftest$ac_exeext'
14067 { (case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072 (eval "$ac_try") 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
14076 eval "$as_ac_var=yes"
14078 echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14081 eval "$as_ac_var=no"
14084 rm -f core conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
14087 ac_res=`eval echo '${'$as_ac_var'}'`
14088 { echo "$as_me:$LINENO: result: $ac_res" >&5
14089 echo "${ECHO_T}$ac_res" >&6; }
14090 if test `eval echo '${'$as_ac_var'}'` = yes; then
14091 cat >>confdefs.h <<_ACEOF
14092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14103 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 cat >conftest.$ac_ext <<_ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14119 #define $ac_func innocuous_$ac_func
14121 /* System header to define __stub macros and hopefully few prototypes,
14122 which can conflict with char $ac_func (); below.
14123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14124 <limits.h> exists even on freestanding compilers. */
14127 # include <limits.h>
14129 # include <assert.h>
14134 /* Override any GCC internal prototype to avoid an error.
14135 Use char because int might match the return type of a GCC
14136 builtin and then its argument prototype would still apply. */
14141 /* The GNU C library defines this for functions which it implements
14142 to always fail with ENOSYS. Some functions are actually named
14143 something starting with __ and the normal name is an alias. */
14144 #if defined __stub_$ac_func || defined __stub___$ac_func
14151 return $ac_func ();
14156 rm -f conftest.$ac_objext conftest$ac_exeext
14157 if { (ac_try="$ac_link"
14158 case "(($ac_try" in
14159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160 *) ac_try_echo=$ac_try;;
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163 (eval "$ac_link") 2>conftest.er1
14165 grep -v '^ *+' conftest.er1 >conftest.err
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14171 { (case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_try") 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest$ac_exeext'
14181 { (case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_try") 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 eval "$as_ac_var=yes"
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14195 eval "$as_ac_var=no"
14198 rm -f core conftest.err conftest.$ac_objext \
14199 conftest$ac_exeext conftest.$ac_ext
14201 ac_res=`eval echo '${'$as_ac_var'}'`
14202 { echo "$as_me:$LINENO: result: $ac_res" >&5
14203 echo "${ECHO_T}$ac_res" >&6; }
14204 if test `eval echo '${'$as_ac_var'}'` = yes; then
14205 cat >>confdefs.h <<_ACEOF
14206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14215 for ac_func in isatty mkdtemp mkstemp
14217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 cat >conftest.$ac_ext <<_ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14231 #define $ac_func innocuous_$ac_func
14233 /* System header to define __stub macros and hopefully few prototypes,
14234 which can conflict with char $ac_func (); below.
14235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14236 <limits.h> exists even on freestanding compilers. */
14239 # include <limits.h>
14241 # include <assert.h>
14246 /* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14253 /* The GNU C library defines this for functions which it implements
14254 to always fail with ENOSYS. Some functions are actually named
14255 something starting with __ and the normal name is an alias. */
14256 #if defined __stub_$ac_func || defined __stub___$ac_func
14263 return $ac_func ();
14268 rm -f conftest.$ac_objext conftest$ac_exeext
14269 if { (ac_try="$ac_link"
14270 case "(($ac_try" in
14271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272 *) ac_try_echo=$ac_try;;
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_link") 2>conftest.er1
14277 grep -v '^ *+' conftest.er1 >conftest.err
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } &&
14282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14283 { (case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_try") 2>&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; } &&
14292 { ac_try='test -s conftest$ac_exeext'
14293 { (case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_try") 2>&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }; then
14302 eval "$as_ac_var=yes"
14304 echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.$ac_ext >&5
14307 eval "$as_ac_var=no"
14310 rm -f core conftest.err conftest.$ac_objext \
14311 conftest$ac_exeext conftest.$ac_ext
14313 ac_res=`eval echo '${'$as_ac_var'}'`
14314 { echo "$as_me:$LINENO: result: $ac_res" >&5
14315 echo "${ECHO_T}$ac_res" >&6; }
14316 if test `eval echo '${'$as_ac_var'}'` = yes; then
14317 cat >>confdefs.h <<_ACEOF
14318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14330 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 cat >conftest.$ac_ext <<_ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14346 #define $ac_func innocuous_$ac_func
14348 /* System header to define __stub macros and hopefully few prototypes,
14349 which can conflict with char $ac_func (); below.
14350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14351 <limits.h> exists even on freestanding compilers. */
14354 # include <limits.h>
14356 # include <assert.h>
14361 /* Override any GCC internal prototype to avoid an error.
14362 Use char because int might match the return type of a GCC
14363 builtin and then its argument prototype would still apply. */
14368 /* The GNU C library defines this for functions which it implements
14369 to always fail with ENOSYS. Some functions are actually named
14370 something starting with __ and the normal name is an alias. */
14371 #if defined __stub_$ac_func || defined __stub___$ac_func
14378 return $ac_func ();
14383 rm -f conftest.$ac_objext conftest$ac_exeext
14384 if { (ac_try="$ac_link"
14385 case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_link") 2>conftest.er1
14392 grep -v '^ *+' conftest.er1 >conftest.err
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } &&
14397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14398 { (case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_try") 2>&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } &&
14407 { ac_try='test -s conftest$ac_exeext'
14408 { (case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_try") 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 eval "$as_ac_var=yes"
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 eval "$as_ac_var=no"
14425 rm -f core conftest.err conftest.$ac_objext \
14426 conftest$ac_exeext conftest.$ac_ext
14428 ac_res=`eval echo '${'$as_ac_var'}'`
14429 { echo "$as_me:$LINENO: result: $ac_res" >&5
14430 echo "${ECHO_T}$ac_res" >&6; }
14431 if test `eval echo '${'$as_ac_var'}'` = yes; then
14432 cat >>confdefs.h <<_ACEOF
14433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14442 for ac_func in strerror strerror_r setenv
14444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 cat >conftest.$ac_ext <<_ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14458 #define $ac_func innocuous_$ac_func
14460 /* System header to define __stub macros and hopefully few prototypes,
14461 which can conflict with char $ac_func (); below.
14462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14463 <limits.h> exists even on freestanding compilers. */
14466 # include <limits.h>
14468 # include <assert.h>
14473 /* Override any GCC internal prototype to avoid an error.
14474 Use char because int might match the return type of a GCC
14475 builtin and then its argument prototype would still apply. */
14480 /* The GNU C library defines this for functions which it implements
14481 to always fail with ENOSYS. Some functions are actually named
14482 something starting with __ and the normal name is an alias. */
14483 #if defined __stub_$ac_func || defined __stub___$ac_func
14490 return $ac_func ();
14495 rm -f conftest.$ac_objext conftest$ac_exeext
14496 if { (ac_try="$ac_link"
14497 case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502 (eval "$ac_link") 2>conftest.er1
14504 grep -v '^ *+' conftest.er1 >conftest.err
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
14509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14510 { (case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_try") 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; } &&
14519 { ac_try='test -s conftest$ac_exeext'
14520 { (case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_try") 2>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 eval "$as_ac_var=yes"
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 eval "$as_ac_var=no"
14537 rm -f core conftest.err conftest.$ac_objext \
14538 conftest$ac_exeext conftest.$ac_ext
14540 ac_res=`eval echo '${'$as_ac_var'}'`
14541 { echo "$as_me:$LINENO: result: $ac_res" >&5
14542 echo "${ECHO_T}$ac_res" >&6; }
14543 if test `eval echo '${'$as_ac_var'}'` = yes; then
14544 cat >>confdefs.h <<_ACEOF
14545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14555 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 cat >conftest.$ac_ext <<_ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14571 #define $ac_func innocuous_$ac_func
14573 /* System header to define __stub macros and hopefully few prototypes,
14574 which can conflict with char $ac_func (); below.
14575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14576 <limits.h> exists even on freestanding compilers. */
14579 # include <limits.h>
14581 # include <assert.h>
14586 /* Override any GCC internal prototype to avoid an error.
14587 Use char because int might match the return type of a GCC
14588 builtin and then its argument prototype would still apply. */
14593 /* The GNU C library defines this for functions which it implements
14594 to always fail with ENOSYS. Some functions are actually named
14595 something starting with __ and the normal name is an alias. */
14596 #if defined __stub_$ac_func || defined __stub___$ac_func
14603 return $ac_func ();
14608 rm -f conftest.$ac_objext conftest$ac_exeext
14609 if { (ac_try="$ac_link"
14610 case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_link") 2>conftest.er1
14617 grep -v '^ *+' conftest.er1 >conftest.err
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } &&
14622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14623 { (case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_try") 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try='test -s conftest$ac_exeext'
14633 { (case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_try") 2>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; }; then
14642 eval "$as_ac_var=yes"
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 eval "$as_ac_var=no"
14650 rm -f core conftest.err conftest.$ac_objext \
14651 conftest$ac_exeext conftest.$ac_ext
14653 ac_res=`eval echo '${'$as_ac_var'}'`
14654 { echo "$as_me:$LINENO: result: $ac_res" >&5
14655 echo "${ECHO_T}$ac_res" >&6; }
14656 if test `eval echo '${'$as_ac_var'}'` = yes; then
14657 cat >>confdefs.h <<_ACEOF
14658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14669 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 cat >conftest.$ac_ext <<_ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14685 #define $ac_func innocuous_$ac_func
14687 /* System header to define __stub macros and hopefully few prototypes,
14688 which can conflict with char $ac_func (); below.
14689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14690 <limits.h> exists even on freestanding compilers. */
14693 # include <limits.h>
14695 # include <assert.h>
14700 /* Override any GCC internal prototype to avoid an error.
14701 Use char because int might match the return type of a GCC
14702 builtin and then its argument prototype would still apply. */
14707 /* The GNU C library defines this for functions which it implements
14708 to always fail with ENOSYS. Some functions are actually named
14709 something starting with __ and the normal name is an alias. */
14710 #if defined __stub_$ac_func || defined __stub___$ac_func
14717 return $ac_func ();
14722 rm -f conftest.$ac_objext conftest$ac_exeext
14723 if { (ac_try="$ac_link"
14724 case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_link") 2>conftest.er1
14731 grep -v '^ *+' conftest.er1 >conftest.err
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14737 { (case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_try") 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; } &&
14746 { ac_try='test -s conftest$ac_exeext'
14747 { (case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_try") 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; }; then
14756 eval "$as_ac_var=yes"
14758 echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14761 eval "$as_ac_var=no"
14764 rm -f core conftest.err conftest.$ac_objext \
14765 conftest$ac_exeext conftest.$ac_ext
14767 ac_res=`eval echo '${'$as_ac_var'}'`
14768 { echo "$as_me:$LINENO: result: $ac_res" >&5
14769 echo "${ECHO_T}$ac_res" >&6; }
14770 if test `eval echo '${'$as_ac_var'}'` = yes; then
14771 cat >>confdefs.h <<_ACEOF
14772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14780 for ac_func in futimes futimens
14782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 cat >conftest.$ac_ext <<_ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14796 #define $ac_func innocuous_$ac_func
14798 /* System header to define __stub macros and hopefully few prototypes,
14799 which can conflict with char $ac_func (); below.
14800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14801 <limits.h> exists even on freestanding compilers. */
14804 # include <limits.h>
14806 # include <assert.h>
14811 /* Override any GCC internal prototype to avoid an error.
14812 Use char because int might match the return type of a GCC
14813 builtin and then its argument prototype would still apply. */
14818 /* The GNU C library defines this for functions which it implements
14819 to always fail with ENOSYS. Some functions are actually named
14820 something starting with __ and the normal name is an alias. */
14821 #if defined __stub_$ac_func || defined __stub___$ac_func
14828 return $ac_func ();
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (ac_try="$ac_link"
14835 case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_link") 2>conftest.er1
14842 grep -v '^ *+' conftest.er1 >conftest.err
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } &&
14847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14848 { (case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_try") 2>&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; } &&
14857 { ac_try='test -s conftest$ac_exeext'
14858 { (case "(($ac_try" in
14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_try") 2>&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 eval "$as_ac_var=yes"
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 eval "$as_ac_var=no"
14875 rm -f core conftest.err conftest.$ac_objext \
14876 conftest$ac_exeext conftest.$ac_ext
14878 ac_res=`eval echo '${'$as_ac_var'}'`
14879 { echo "$as_me:$LINENO: result: $ac_res" >&5
14880 echo "${ECHO_T}$ac_res" >&6; }
14881 if test `eval echo '${'$as_ac_var'}'` = yes; then
14882 cat >>confdefs.h <<_ACEOF
14883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14889 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14890 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14891 if test "${llvm_cv_c_printf_a+set}" = set; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 ac_cpp='$CPP $CPPFLAGS'
14896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14900 if test "$cross_compiling" = yes; then
14901 llvmac_cv_c_printf_a=no
14903 cat >conftest.$ac_ext <<_ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h. */
14912 #include <stdlib.h>
14918 volatile double A, B;
14922 sprintf(Buffer, "%a", A);
14926 if (A != 0x1.999999999999ap-4)
14933 rm -f conftest$ac_exeext
14934 if { (ac_try="$ac_link"
14935 case "(($ac_try" in
14936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_link") 2>&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14944 { (case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949 (eval "$ac_try") 2>&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; }; then
14953 llvm_cv_c_printf_a=yes
14955 echo "$as_me: program exited with status $ac_status" >&5
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14959 ( exit $ac_status )
14960 llvmac_cv_c_printf_a=no
14962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14967 ac_cpp='$CPP $CPPFLAGS'
14968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14973 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14974 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14975 if test "$llvm_cv_c_printf_a" = "yes"; then
14977 cat >>confdefs.h <<\_ACEOF
14978 #define HAVE_PRINTF_A 1
14985 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14986 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14987 if test "${ac_cv_func_rand48+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 ac_cpp='$CXXCPP $CPPFLAGS'
14993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14997 cat >conftest.$ac_ext <<_ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15003 #include <stdlib.h>
15007 srand48(0);lrand48();drand48();
15012 rm -f conftest.$ac_objext
15013 if { (ac_try="$ac_compile"
15014 case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_compile") 2>conftest.er1
15021 grep -v '^ *+' conftest.er1 >conftest.err
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15027 { (case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_try") 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest.$ac_objext'
15037 { (case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_try") 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15046 ac_cv_func_rand48=yes
15048 echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15051 ac_cv_func_rand48=no
15054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 ac_cpp='$CPP $CPPFLAGS'
15057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15063 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15064 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15066 if test "$ac_cv_func_rand48" = "yes" ; then
15068 cat >>confdefs.h <<\_ACEOF
15069 #define HAVE_RAND48 1
15075 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15076 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15077 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 cat >conftest.$ac_ext <<_ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 $ac_includes_default
15091 char *p = (char *) arc4random;
15099 rm -f conftest.$ac_objext
15100 if { (ac_try="$ac_compile"
15101 case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_compile") 2>conftest.er1
15108 grep -v '^ *+' conftest.er1 >conftest.err
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } &&
15113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15114 { (case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_try") 2>&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; } &&
15123 { ac_try='test -s conftest.$ac_objext'
15124 { (case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_try") 2>&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; }; then
15133 ac_cv_have_decl_arc4random=yes
15135 echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15138 ac_cv_have_decl_arc4random=no
15141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15144 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15145 if test $ac_cv_have_decl_arc4random = yes; then
15147 cat >>confdefs.h <<_ACEOF
15148 #define HAVE_DECL_ARC4RANDOM 1
15153 cat >>confdefs.h <<_ACEOF
15154 #define HAVE_DECL_ARC4RANDOM 0
15162 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15163 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15164 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 cat >conftest.$ac_ext <<_ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 $ac_includes_default
15178 char *p = (char *) strerror_s;
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_compile") 2>conftest.er1
15195 grep -v '^ *+' conftest.er1 >conftest.err
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; } &&
15210 { ac_try='test -s conftest.$ac_objext'
15211 { (case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_try") 2>&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_cv_have_decl_strerror_s=yes
15222 echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15225 ac_cv_have_decl_strerror_s=no
15228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15230 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15231 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15232 if test $ac_cv_have_decl_strerror_s = yes; then
15234 cat >>confdefs.h <<_ACEOF
15235 #define HAVE_DECL_STRERROR_S 1
15240 cat >>confdefs.h <<_ACEOF
15241 #define HAVE_DECL_STRERROR_S 0
15249 if test "$llvm_cv_os_type" = "MingW" ; then
15250 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15251 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15252 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15255 ac_check_lib_save_LIBS=$LIBS
15257 cat >conftest.$ac_ext <<_ACEOF
15260 cat confdefs.h >>conftest.$ac_ext
15261 cat >>conftest.$ac_ext <<_ACEOF
15262 /* end confdefs.h. */
15264 /* Override any GCC internal prototype to avoid an error.
15265 Use char because int might match the return type of a GCC
15266 builtin and then its argument prototype would still apply. */
15279 rm -f conftest.$ac_objext conftest$ac_exeext
15280 if { (ac_try="$ac_link"
15281 case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286 (eval "$ac_link") 2>conftest.er1
15288 grep -v '^ *+' conftest.er1 >conftest.err
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } &&
15293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15294 { (case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299 (eval "$ac_try") 2>&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; } &&
15303 { ac_try='test -s conftest$ac_exeext'
15304 { (case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_try") 2>&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
15313 ac_cv_lib_gcc__alloca=yes
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 ac_cv_lib_gcc__alloca=no
15321 rm -f core conftest.err conftest.$ac_objext \
15322 conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_check_lib_save_LIBS
15325 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15326 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15327 if test $ac_cv_lib_gcc__alloca = yes; then
15329 cat >>confdefs.h <<\_ACEOF
15330 #define HAVE__ALLOCA 1
15335 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15336 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15337 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 ac_check_lib_save_LIBS=$LIBS
15342 cat >conftest.$ac_ext <<_ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15349 /* Override any GCC internal prototype to avoid an error.
15350 Use char because int might match the return type of a GCC
15351 builtin and then its argument prototype would still apply. */
15359 return __alloca ();
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365 if { (ac_try="$ac_link"
15366 case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_link") 2>conftest.er1
15373 grep -v '^ *+' conftest.er1 >conftest.err
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15379 { (case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_try") 2>&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; } &&
15388 { ac_try='test -s conftest$ac_exeext'
15389 { (case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_try") 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_cv_lib_gcc___alloca=yes
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15403 ac_cv_lib_gcc___alloca=no
15406 rm -f core conftest.err conftest.$ac_objext \
15407 conftest$ac_exeext conftest.$ac_ext
15408 LIBS=$ac_check_lib_save_LIBS
15410 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15411 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15412 if test $ac_cv_lib_gcc___alloca = yes; then
15414 cat >>confdefs.h <<\_ACEOF
15415 #define HAVE___ALLOCA 1
15420 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15421 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15422 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 ac_check_lib_save_LIBS=$LIBS
15427 cat >conftest.$ac_ext <<_ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15434 /* Override any GCC internal prototype to avoid an error.
15435 Use char because int might match the return type of a GCC
15436 builtin and then its argument prototype would still apply. */
15444 return __chkstk ();
15449 rm -f conftest.$ac_objext conftest$ac_exeext
15450 if { (ac_try="$ac_link"
15451 case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_link") 2>conftest.er1
15458 grep -v '^ *+' conftest.er1 >conftest.err
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15464 { (case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469 (eval "$ac_try") 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; } &&
15473 { ac_try='test -s conftest$ac_exeext'
15474 { (case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_try") 2>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; }; then
15483 ac_cv_lib_gcc___chkstk=yes
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15488 ac_cv_lib_gcc___chkstk=no
15491 rm -f core conftest.err conftest.$ac_objext \
15492 conftest$ac_exeext conftest.$ac_ext
15493 LIBS=$ac_check_lib_save_LIBS
15495 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15496 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15497 if test $ac_cv_lib_gcc___chkstk = yes; then
15499 cat >>confdefs.h <<\_ACEOF
15500 #define HAVE___CHKSTK 1
15505 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15506 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15507 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15510 ac_check_lib_save_LIBS=$LIBS
15512 cat >conftest.$ac_ext <<_ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15519 /* Override any GCC internal prototype to avoid an error.
15520 Use char because int might match the return type of a GCC
15521 builtin and then its argument prototype would still apply. */
15529 return ___chkstk ();
15534 rm -f conftest.$ac_objext conftest$ac_exeext
15535 if { (ac_try="$ac_link"
15536 case "(($ac_try" in
15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538 *) ac_try_echo=$ac_try;;
15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541 (eval "$ac_link") 2>conftest.er1
15543 grep -v '^ *+' conftest.er1 >conftest.err
15545 cat conftest.err >&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15549 { (case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_try") 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; } &&
15558 { ac_try='test -s conftest$ac_exeext'
15559 { (case "(($ac_try" in
15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561 *) ac_try_echo=$ac_try;;
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564 (eval "$ac_try") 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; }; then
15568 ac_cv_lib_gcc____chkstk=yes
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 ac_cv_lib_gcc____chkstk=no
15576 rm -f core conftest.err conftest.$ac_objext \
15577 conftest$ac_exeext conftest.$ac_ext
15578 LIBS=$ac_check_lib_save_LIBS
15580 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15581 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15582 if test $ac_cv_lib_gcc____chkstk = yes; then
15584 cat >>confdefs.h <<\_ACEOF
15585 #define HAVE____CHKSTK 1
15591 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15592 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15593 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15596 ac_check_lib_save_LIBS=$LIBS
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15605 /* Override any GCC internal prototype to avoid an error.
15606 Use char because int might match the return type of a GCC
15607 builtin and then its argument prototype would still apply. */
15615 return __ashldi3 ();
15620 rm -f conftest.$ac_objext conftest$ac_exeext
15621 if { (ac_try="$ac_link"
15622 case "(($ac_try" in
15623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624 *) ac_try_echo=$ac_try;;
15626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627 (eval "$ac_link") 2>conftest.er1
15629 grep -v '^ *+' conftest.er1 >conftest.err
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15635 { (case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_try") 2>&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; } &&
15644 { ac_try='test -s conftest$ac_exeext'
15645 { (case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_try") 2>&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 ac_cv_lib_gcc___ashldi3=yes
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15659 ac_cv_lib_gcc___ashldi3=no
15662 rm -f core conftest.err conftest.$ac_objext \
15663 conftest$ac_exeext conftest.$ac_ext
15664 LIBS=$ac_check_lib_save_LIBS
15666 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15667 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15668 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15670 cat >>confdefs.h <<\_ACEOF
15671 #define HAVE___ASHLDI3 1
15676 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15677 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15678 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15679 echo $ECHO_N "(cached) $ECHO_C" >&6
15681 ac_check_lib_save_LIBS=$LIBS
15683 cat >conftest.$ac_ext <<_ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15690 /* Override any GCC internal prototype to avoid an error.
15691 Use char because int might match the return type of a GCC
15692 builtin and then its argument prototype would still apply. */
15700 return __ashrdi3 ();
15705 rm -f conftest.$ac_objext conftest$ac_exeext
15706 if { (ac_try="$ac_link"
15707 case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712 (eval "$ac_link") 2>conftest.er1
15714 grep -v '^ *+' conftest.er1 >conftest.err
15716 cat conftest.err >&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
15719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15720 { (case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_try") 2>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; } &&
15729 { ac_try='test -s conftest$ac_exeext'
15730 { (case "(($ac_try" in
15731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735 (eval "$ac_try") 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 ac_cv_lib_gcc___ashrdi3=yes
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15744 ac_cv_lib_gcc___ashrdi3=no
15747 rm -f core conftest.err conftest.$ac_objext \
15748 conftest$ac_exeext conftest.$ac_ext
15749 LIBS=$ac_check_lib_save_LIBS
15751 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15752 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15753 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15755 cat >>confdefs.h <<\_ACEOF
15756 #define HAVE___ASHRDI3 1
15761 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15762 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15763 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 ac_check_lib_save_LIBS=$LIBS
15768 cat >conftest.$ac_ext <<_ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15775 /* Override any GCC internal prototype to avoid an error.
15776 Use char because int might match the return type of a GCC
15777 builtin and then its argument prototype would still apply. */
15785 return __divdi3 ();
15790 rm -f conftest.$ac_objext conftest$ac_exeext
15791 if { (ac_try="$ac_link"
15792 case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_link") 2>conftest.er1
15799 grep -v '^ *+' conftest.er1 >conftest.err
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } &&
15804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15805 { (case "(($ac_try" in
15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810 (eval "$ac_try") 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; } &&
15814 { ac_try='test -s conftest$ac_exeext'
15815 { (case "(($ac_try" in
15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817 *) ac_try_echo=$ac_try;;
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820 (eval "$ac_try") 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_cv_lib_gcc___divdi3=yes
15826 echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 ac_cv_lib_gcc___divdi3=no
15832 rm -f core conftest.err conftest.$ac_objext \
15833 conftest$ac_exeext conftest.$ac_ext
15834 LIBS=$ac_check_lib_save_LIBS
15836 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15837 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15838 if test $ac_cv_lib_gcc___divdi3 = yes; then
15840 cat >>confdefs.h <<\_ACEOF
15841 #define HAVE___DIVDI3 1
15846 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15847 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15848 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15851 ac_check_lib_save_LIBS=$LIBS
15853 cat >conftest.$ac_ext <<_ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15860 /* Override any GCC internal prototype to avoid an error.
15861 Use char because int might match the return type of a GCC
15862 builtin and then its argument prototype would still apply. */
15870 return __fixdfdi ();
15875 rm -f conftest.$ac_objext conftest$ac_exeext
15876 if { (ac_try="$ac_link"
15877 case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882 (eval "$ac_link") 2>conftest.er1
15884 grep -v '^ *+' conftest.er1 >conftest.err
15886 cat conftest.err >&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15890 { (case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_try") 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; } &&
15899 { ac_try='test -s conftest$ac_exeext'
15900 { (case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_try") 2>&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; }; then
15909 ac_cv_lib_gcc___fixdfdi=yes
15911 echo "$as_me: failed program was:" >&5
15912 sed 's/^/| /' conftest.$ac_ext >&5
15914 ac_cv_lib_gcc___fixdfdi=no
15917 rm -f core conftest.err conftest.$ac_objext \
15918 conftest$ac_exeext conftest.$ac_ext
15919 LIBS=$ac_check_lib_save_LIBS
15921 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
15922 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
15923 if test $ac_cv_lib_gcc___fixdfdi = yes; then
15925 cat >>confdefs.h <<\_ACEOF
15926 #define HAVE___FIXDFDI 1
15931 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15932 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15933 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15936 ac_check_lib_save_LIBS=$LIBS
15938 cat >conftest.$ac_ext <<_ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15945 /* Override any GCC internal prototype to avoid an error.
15946 Use char because int might match the return type of a GCC
15947 builtin and then its argument prototype would still apply. */
15955 return __fixsfdi ();
15960 rm -f conftest.$ac_objext conftest$ac_exeext
15961 if { (ac_try="$ac_link"
15962 case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_link") 2>conftest.er1
15969 grep -v '^ *+' conftest.er1 >conftest.err
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } &&
15974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15975 { (case "(($ac_try" in
15976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977 *) ac_try_echo=$ac_try;;
15979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15980 (eval "$ac_try") 2>&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; } &&
15984 { ac_try='test -s conftest$ac_exeext'
15985 { (case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_try") 2>&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; }; then
15994 ac_cv_lib_gcc___fixsfdi=yes
15996 echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15999 ac_cv_lib_gcc___fixsfdi=no
16002 rm -f core conftest.err conftest.$ac_objext \
16003 conftest$ac_exeext conftest.$ac_ext
16004 LIBS=$ac_check_lib_save_LIBS
16006 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16007 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16008 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16010 cat >>confdefs.h <<\_ACEOF
16011 #define HAVE___FIXSFDI 1
16016 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16017 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16018 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 ac_check_lib_save_LIBS=$LIBS
16023 cat >conftest.$ac_ext <<_ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16030 /* Override any GCC internal prototype to avoid an error.
16031 Use char because int might match the return type of a GCC
16032 builtin and then its argument prototype would still apply. */
16036 char __floatdidf ();
16040 return __floatdidf ();
16045 rm -f conftest.$ac_objext conftest$ac_exeext
16046 if { (ac_try="$ac_link"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_link") 2>conftest.er1
16054 grep -v '^ *+' conftest.er1 >conftest.err
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
16059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16060 { (case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_try") 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; } &&
16069 { ac_try='test -s conftest$ac_exeext'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079 ac_cv_lib_gcc___floatdidf=yes
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 ac_cv_lib_gcc___floatdidf=no
16087 rm -f core conftest.err conftest.$ac_objext \
16088 conftest$ac_exeext conftest.$ac_ext
16089 LIBS=$ac_check_lib_save_LIBS
16091 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16092 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16093 if test $ac_cv_lib_gcc___floatdidf = yes; then
16095 cat >>confdefs.h <<\_ACEOF
16096 #define HAVE___FLOATDIDF 1
16101 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16102 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16103 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16104 echo $ECHO_N "(cached) $ECHO_C" >&6
16106 ac_check_lib_save_LIBS=$LIBS
16108 cat >conftest.$ac_ext <<_ACEOF
16111 cat confdefs.h >>conftest.$ac_ext
16112 cat >>conftest.$ac_ext <<_ACEOF
16113 /* end confdefs.h. */
16115 /* Override any GCC internal prototype to avoid an error.
16116 Use char because int might match the return type of a GCC
16117 builtin and then its argument prototype would still apply. */
16125 return __lshrdi3 ();
16130 rm -f conftest.$ac_objext conftest$ac_exeext
16131 if { (ac_try="$ac_link"
16132 case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_link") 2>conftest.er1
16139 grep -v '^ *+' conftest.er1 >conftest.err
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } &&
16144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16145 { (case "(($ac_try" in
16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147 *) ac_try_echo=$ac_try;;
16149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150 (eval "$ac_try") 2>&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; } &&
16154 { ac_try='test -s conftest$ac_exeext'
16155 { (case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_try") 2>&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; }; then
16164 ac_cv_lib_gcc___lshrdi3=yes
16166 echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16169 ac_cv_lib_gcc___lshrdi3=no
16172 rm -f core conftest.err conftest.$ac_objext \
16173 conftest$ac_exeext conftest.$ac_ext
16174 LIBS=$ac_check_lib_save_LIBS
16176 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16177 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16178 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16180 cat >>confdefs.h <<\_ACEOF
16181 #define HAVE___LSHRDI3 1
16186 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16187 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16188 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16191 ac_check_lib_save_LIBS=$LIBS
16193 cat >conftest.$ac_ext <<_ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16200 /* Override any GCC internal prototype to avoid an error.
16201 Use char because int might match the return type of a GCC
16202 builtin and then its argument prototype would still apply. */
16210 return __moddi3 ();
16215 rm -f conftest.$ac_objext conftest$ac_exeext
16216 if { (ac_try="$ac_link"
16217 case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_link") 2>conftest.er1
16224 grep -v '^ *+' conftest.er1 >conftest.err
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } &&
16229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16230 { (case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_try") 2>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest$ac_exeext'
16240 { (case "(($ac_try" in
16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242 *) ac_try_echo=$ac_try;;
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245 (eval "$ac_try") 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }; then
16249 ac_cv_lib_gcc___moddi3=yes
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16254 ac_cv_lib_gcc___moddi3=no
16257 rm -f core conftest.err conftest.$ac_objext \
16258 conftest$ac_exeext conftest.$ac_ext
16259 LIBS=$ac_check_lib_save_LIBS
16261 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16262 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16263 if test $ac_cv_lib_gcc___moddi3 = yes; then
16265 cat >>confdefs.h <<\_ACEOF
16266 #define HAVE___MODDI3 1
16271 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16272 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16273 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16276 ac_check_lib_save_LIBS=$LIBS
16278 cat >conftest.$ac_ext <<_ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16285 /* Override any GCC internal prototype to avoid an error.
16286 Use char because int might match the return type of a GCC
16287 builtin and then its argument prototype would still apply. */
16295 return __udivdi3 ();
16300 rm -f conftest.$ac_objext conftest$ac_exeext
16301 if { (ac_try="$ac_link"
16302 case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307 (eval "$ac_link") 2>conftest.er1
16309 grep -v '^ *+' conftest.er1 >conftest.err
16311 cat conftest.err >&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } &&
16314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16315 { (case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_try") 2>&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; } &&
16324 { ac_try='test -s conftest$ac_exeext'
16325 { (case "(($ac_try" in
16326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327 *) ac_try_echo=$ac_try;;
16329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16330 (eval "$ac_try") 2>&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_cv_lib_gcc___udivdi3=yes
16336 echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16339 ac_cv_lib_gcc___udivdi3=no
16342 rm -f core conftest.err conftest.$ac_objext \
16343 conftest$ac_exeext conftest.$ac_ext
16344 LIBS=$ac_check_lib_save_LIBS
16346 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16347 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16348 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16350 cat >>confdefs.h <<\_ACEOF
16351 #define HAVE___UDIVDI3 1
16356 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16357 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16358 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 ac_check_lib_save_LIBS=$LIBS
16363 cat >conftest.$ac_ext <<_ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16370 /* Override any GCC internal prototype to avoid an error.
16371 Use char because int might match the return type of a GCC
16372 builtin and then its argument prototype would still apply. */
16380 return __umoddi3 ();
16385 rm -f conftest.$ac_objext conftest$ac_exeext
16386 if { (ac_try="$ac_link"
16387 case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_link") 2>conftest.er1
16394 grep -v '^ *+' conftest.er1 >conftest.err
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16400 { (case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_try") 2>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; } &&
16409 { ac_try='test -s conftest$ac_exeext'
16410 { (case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_try") 2>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; }; then
16419 ac_cv_lib_gcc___umoddi3=yes
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16424 ac_cv_lib_gcc___umoddi3=no
16427 rm -f core conftest.err conftest.$ac_objext \
16428 conftest$ac_exeext conftest.$ac_ext
16429 LIBS=$ac_check_lib_save_LIBS
16431 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16432 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16433 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16435 cat >>confdefs.h <<\_ACEOF
16436 #define HAVE___UMODDI3 1
16442 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16443 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16444 if test "${ac_cv_lib_gcc___main+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16447 ac_check_lib_save_LIBS=$LIBS
16449 cat >conftest.$ac_ext <<_ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16456 /* Override any GCC internal prototype to avoid an error.
16457 Use char because int might match the return type of a GCC
16458 builtin and then its argument prototype would still apply. */
16471 rm -f conftest.$ac_objext conftest$ac_exeext
16472 if { (ac_try="$ac_link"
16473 case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478 (eval "$ac_link") 2>conftest.er1
16480 grep -v '^ *+' conftest.er1 >conftest.err
16482 cat conftest.err >&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } &&
16485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16486 { (case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491 (eval "$ac_try") 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest$ac_exeext'
16496 { (case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501 (eval "$ac_try") 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16505 ac_cv_lib_gcc___main=yes
16507 echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16510 ac_cv_lib_gcc___main=no
16513 rm -f core conftest.err conftest.$ac_objext \
16514 conftest$ac_exeext conftest.$ac_ext
16515 LIBS=$ac_check_lib_save_LIBS
16517 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16518 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16519 if test $ac_cv_lib_gcc___main = yes; then
16521 cat >>confdefs.h <<\_ACEOF
16522 #define HAVE___MAIN 1
16527 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16528 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16529 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16532 ac_check_lib_save_LIBS=$LIBS
16534 cat >conftest.$ac_ext <<_ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16541 /* Override any GCC internal prototype to avoid an error.
16542 Use char because int might match the return type of a GCC
16543 builtin and then its argument prototype would still apply. */
16551 return __cmpdi2 ();
16556 rm -f conftest.$ac_objext conftest$ac_exeext
16557 if { (ac_try="$ac_link"
16558 case "(($ac_try" in
16559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560 *) ac_try_echo=$ac_try;;
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563 (eval "$ac_link") 2>conftest.er1
16565 grep -v '^ *+' conftest.er1 >conftest.err
16567 cat conftest.err >&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } &&
16570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16571 { (case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_try") 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; } &&
16580 { ac_try='test -s conftest$ac_exeext'
16581 { (case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586 (eval "$ac_try") 2>&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
16590 ac_cv_lib_gcc___cmpdi2=yes
16592 echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16595 ac_cv_lib_gcc___cmpdi2=no
16598 rm -f core conftest.err conftest.$ac_objext \
16599 conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_lib_save_LIBS
16602 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16603 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16604 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16606 cat >>confdefs.h <<\_ACEOF
16607 #define HAVE___CMPDI2 1
16614 if test "$llvm_cv_os_type" = "MingW" ; then
16615 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16616 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16617 cat >conftest.$ac_ext <<_ACEOF
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16625 #include <windows.h>
16626 #include <imagehlp.h>
16627 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16628 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16632 rm -f conftest.$ac_objext
16633 if { (ac_try="$ac_compile"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_compile") 2>conftest.er1
16641 grep -v '^ *+' conftest.er1 >conftest.err
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
16646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16647 { (case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_try") 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest.$ac_objext'
16657 { (case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_try") 2>&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16667 { echo "$as_me:$LINENO: result: yes" >&5
16668 echo "${ECHO_T}yes" >&6; }
16669 llvm_cv_win32_elmcb_pcstr="PCSTR"
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16676 { echo "$as_me:$LINENO: result: no" >&5
16677 echo "${ECHO_T}no" >&6; }
16678 llvm_cv_win32_elmcb_pcstr="PSTR"
16682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16684 cat >>confdefs.h <<_ACEOF
16685 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16692 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
16693 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
16694 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
16695 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 ac_cpp='$CXXCPP $CPPFLAGS'
16700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16704 cat >conftest.$ac_ext <<_ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16719 rm -f conftest.$ac_objext
16720 if { (ac_try="$ac_compile"
16721 case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_compile") 2>conftest.er1
16728 grep -v '^ *+' conftest.er1 >conftest.err
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16734 { (case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_try") 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; } &&
16743 { ac_try='test -s conftest.$ac_objext'
16744 { (case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_try") 2>&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; }; then
16753 ac_cv_func_isnan_in_math_h=yes
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 ac_cv_func_isnan_in_math_h=no
16761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16763 ac_cpp='$CPP $CPPFLAGS'
16764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16770 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
16771 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
16774 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
16776 cat >>confdefs.h <<\_ACEOF
16777 #define HAVE_ISNAN_IN_MATH_H 1
16783 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
16784 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
16785 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16790 ac_cpp='$CXXCPP $CPPFLAGS'
16791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16795 cat >conftest.$ac_ext <<_ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h. */
16810 rm -f conftest.$ac_objext
16811 if { (ac_try="$ac_compile"
16812 case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_compile") 2>conftest.er1
16819 grep -v '^ *+' conftest.er1 >conftest.err
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; } &&
16834 { ac_try='test -s conftest.$ac_objext'
16835 { (case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_try") 2>&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
16844 ac_cv_func_isnan_in_cmath=yes
16846 echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16849 ac_cv_func_isnan_in_cmath=no
16852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16854 ac_cpp='$CPP $CPPFLAGS'
16855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16861 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
16862 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
16864 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
16866 cat >>confdefs.h <<\_ACEOF
16867 #define HAVE_ISNAN_IN_CMATH 1
16873 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
16874 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
16875 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16880 ac_cpp='$CXXCPP $CPPFLAGS'
16881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16885 cat >conftest.$ac_ext <<_ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h. */
16895 float f; std::isnan(f);
16900 rm -f conftest.$ac_objext
16901 if { (ac_try="$ac_compile"
16902 case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_compile") 2>conftest.er1
16909 grep -v '^ *+' conftest.er1 >conftest.err
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
16914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16915 { (case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_try") 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; } &&
16924 { ac_try='test -s conftest.$ac_objext'
16925 { (case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_try") 2>&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 ac_cv_func_std_isnan_in_cmath=yes
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16939 ac_cv_func_std_isnan_in_cmath=no
16942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16944 ac_cpp='$CPP $CPPFLAGS'
16945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16951 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
16952 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
16954 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
16956 cat >>confdefs.h <<\_ACEOF
16957 #define HAVE_STD_ISNAN_IN_CMATH 1
16965 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
16966 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
16967 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
16968 echo $ECHO_N "(cached) $ECHO_C" >&6
16972 ac_cpp='$CXXCPP $CPPFLAGS'
16973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16977 cat >conftest.$ac_ext <<_ACEOF
16980 cat confdefs.h >>conftest.$ac_ext
16981 cat >>conftest.$ac_ext <<_ACEOF
16982 /* end confdefs.h. */
16992 rm -f conftest.$ac_objext
16993 if { (ac_try="$ac_compile"
16994 case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_compile") 2>conftest.er1
17001 grep -v '^ *+' conftest.er1 >conftest.err
17003 cat conftest.err >&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); } &&
17006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17007 { (case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012 (eval "$ac_try") 2>&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; } &&
17016 { ac_try='test -s conftest.$ac_objext'
17017 { (case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_try") 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 ac_cv_func_isinf_in_math_h=yes
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17031 ac_cv_func_isinf_in_math_h=no
17034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17036 ac_cpp='$CPP $CPPFLAGS'
17037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17043 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17044 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17046 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17048 cat >>confdefs.h <<\_ACEOF
17049 #define HAVE_ISINF_IN_MATH_H 1
17055 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17056 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17057 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17062 ac_cpp='$CXXCPP $CPPFLAGS'
17063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17067 cat >conftest.$ac_ext <<_ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17082 rm -f conftest.$ac_objext
17083 if { (ac_try="$ac_compile"
17084 case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_compile") 2>conftest.er1
17091 grep -v '^ *+' conftest.er1 >conftest.err
17093 cat conftest.err >&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } &&
17096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17097 { (case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_try") 2>&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; } &&
17106 { ac_try='test -s conftest.$ac_objext'
17107 { (case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_try") 2>&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; }; then
17116 ac_cv_func_isinf_in_cmath=yes
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17121 ac_cv_func_isinf_in_cmath=no
17124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17126 ac_cpp='$CPP $CPPFLAGS'
17127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17133 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17134 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17136 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17138 cat >>confdefs.h <<\_ACEOF
17139 #define HAVE_ISINF_IN_CMATH 1
17145 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17146 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17147 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17152 ac_cpp='$CXXCPP $CPPFLAGS'
17153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17157 cat >conftest.$ac_ext <<_ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17167 float f; std::isinf(f);
17172 rm -f conftest.$ac_objext
17173 if { (ac_try="$ac_compile"
17174 case "(($ac_try" in
17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176 *) ac_try_echo=$ac_try;;
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_compile") 2>conftest.er1
17181 grep -v '^ *+' conftest.er1 >conftest.err
17183 cat conftest.err >&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } &&
17186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17187 { (case "(($ac_try" in
17188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17189 *) ac_try_echo=$ac_try;;
17191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17192 (eval "$ac_try") 2>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; } &&
17196 { ac_try='test -s conftest.$ac_objext'
17197 { (case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_try") 2>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; }; then
17206 ac_cv_func_std_isinf_in_cmath=yes
17208 echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17211 ac_cv_func_std_isinf_in_cmath=no
17214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17216 ac_cpp='$CPP $CPPFLAGS'
17217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17223 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17224 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17226 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17228 cat >>confdefs.h <<\_ACEOF
17229 #define HAVE_STD_ISINF_IN_CMATH 1
17235 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17236 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17237 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17242 ac_cpp='$CXXCPP $CPPFLAGS'
17243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17247 cat >conftest.$ac_ext <<_ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h. */
17253 #include <ieeefp.h>
17257 float f; finite(f);
17262 rm -f conftest.$ac_objext
17263 if { (ac_try="$ac_compile"
17264 case "(($ac_try" in
17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269 (eval "$ac_compile") 2>conftest.er1
17271 grep -v '^ *+' conftest.er1 >conftest.err
17273 cat conftest.err >&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } &&
17276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17277 { (case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282 (eval "$ac_try") 2>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; } &&
17286 { ac_try='test -s conftest.$ac_objext'
17287 { (case "(($ac_try" in
17288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289 *) ac_try_echo=$ac_try;;
17291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17292 (eval "$ac_try") 2>&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; }; then
17296 ac_cv_func_finite_in_ieeefp_h=yes
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17301 ac_cv_func_finite_in_ieeefp_h=no
17304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17306 ac_cpp='$CPP $CPPFLAGS'
17307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17313 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17314 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17316 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17318 cat >>confdefs.h <<\_ACEOF
17319 #define HAVE_FINITE_IN_IEEEFP_H 1
17326 if test "$llvm_cv_platform_type" = "Unix" ; then
17329 for ac_header in stdlib.h unistd.h
17331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17338 ac_res=`eval echo '${'$as_ac_Header'}'`
17339 { echo "$as_me:$LINENO: result: $ac_res" >&5
17340 echo "${ECHO_T}$ac_res" >&6; }
17342 # Is the header compilable?
17343 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17345 cat >conftest.$ac_ext <<_ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 $ac_includes_default
17352 #include <$ac_header>
17354 rm -f conftest.$ac_objext
17355 if { (ac_try="$ac_compile"
17356 case "(($ac_try" in
17357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361 (eval "$ac_compile") 2>conftest.er1
17363 grep -v '^ *+' conftest.er1 >conftest.err
17365 cat conftest.err >&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } &&
17368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17369 { (case "(($ac_try" in
17370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371 *) ac_try_echo=$ac_try;;
17373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374 (eval "$ac_try") 2>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; } &&
17378 { ac_try='test -s conftest.$ac_objext'
17379 { (case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_try") 2>&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17388 ac_header_compiler=yes
17390 echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17393 ac_header_compiler=no
17396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17398 echo "${ECHO_T}$ac_header_compiler" >&6; }
17400 # Is the header present?
17401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17403 cat >conftest.$ac_ext <<_ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17409 #include <$ac_header>
17411 if { (ac_try="$ac_cpp conftest.$ac_ext"
17412 case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17419 grep -v '^ *+' conftest.er1 >conftest.err
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } >/dev/null; then
17424 if test -s conftest.err; then
17425 ac_cpp_err=$ac_c_preproc_warn_flag
17426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17433 if test -z "$ac_cpp_err"; then
17434 ac_header_preproc=yes
17436 echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17439 ac_header_preproc=no
17442 rm -f conftest.err conftest.$ac_ext
17443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17444 echo "${ECHO_T}$ac_header_preproc" >&6; }
17446 # So? What about this header?
17447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17453 ac_header_preproc=yes
17456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17469 ## ------------------------------------ ##
17470 ## Report this to http://llvm.org/bugs/ ##
17471 ## ------------------------------------ ##
17473 ) | sed "s/^/$as_me: WARNING: /" >&2
17476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17481 eval "$as_ac_Header=\$ac_header_preproc"
17483 ac_res=`eval echo '${'$as_ac_Header'}'`
17484 { echo "$as_me:$LINENO: result: $ac_res" >&5
17485 echo "${ECHO_T}$ac_res" >&6; }
17488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17489 cat >>confdefs.h <<_ACEOF
17490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17498 for ac_func in getpagesize
17500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17501 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17503 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17504 echo $ECHO_N "(cached) $ECHO_C" >&6
17506 cat >conftest.$ac_ext <<_ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h. */
17512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17514 #define $ac_func innocuous_$ac_func
17516 /* System header to define __stub macros and hopefully few prototypes,
17517 which can conflict with char $ac_func (); below.
17518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17519 <limits.h> exists even on freestanding compilers. */
17522 # include <limits.h>
17524 # include <assert.h>
17529 /* Override any GCC internal prototype to avoid an error.
17530 Use char because int might match the return type of a GCC
17531 builtin and then its argument prototype would still apply. */
17536 /* The GNU C library defines this for functions which it implements
17537 to always fail with ENOSYS. Some functions are actually named
17538 something starting with __ and the normal name is an alias. */
17539 #if defined __stub_$ac_func || defined __stub___$ac_func
17546 return $ac_func ();
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (ac_try="$ac_link"
17553 case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_link") 2>conftest.er1
17560 grep -v '^ *+' conftest.er1 >conftest.err
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
17565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17566 { (case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_try") 2>&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; } &&
17575 { ac_try='test -s conftest$ac_exeext'
17576 { (case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_try") 2>&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; }; then
17585 eval "$as_ac_var=yes"
17587 echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17590 eval "$as_ac_var=no"
17593 rm -f core conftest.err conftest.$ac_objext \
17594 conftest$ac_exeext conftest.$ac_ext
17596 ac_res=`eval echo '${'$as_ac_var'}'`
17597 { echo "$as_me:$LINENO: result: $ac_res" >&5
17598 echo "${ECHO_T}$ac_res" >&6; }
17599 if test `eval echo '${'$as_ac_var'}'` = yes; then
17600 cat >>confdefs.h <<_ACEOF
17601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17607 { echo "$as_me:$LINENO: checking for working mmap" >&5
17608 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17609 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 if test "$cross_compiling" = yes; then
17613 ac_cv_func_mmap_fixed_mapped=no
17615 cat >conftest.$ac_ext <<_ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17621 $ac_includes_default
17622 /* malloc might have been renamed as rpl_malloc. */
17625 /* Thanks to Mike Haertel and Jim Avera for this test.
17626 Here is a matrix of mmap possibilities:
17627 mmap private not fixed
17628 mmap private fixed at somewhere currently unmapped
17629 mmap private fixed at somewhere already mapped
17630 mmap shared not fixed
17631 mmap shared fixed at somewhere currently unmapped
17632 mmap shared fixed at somewhere already mapped
17633 For private mappings, we should verify that changes cannot be read()
17634 back from the file, nor mmap's back from the file at a different
17635 address. (There have been systems where private was not correctly
17636 implemented like the infamous i386 svr4.0, and systems where the
17637 VM page cache was not coherent with the file system buffer cache
17638 like early versions of FreeBSD and possibly contemporary NetBSD.)
17639 For shared mappings, we should conversely verify that changes get
17640 propagated back to all the places they're supposed to be.
17642 Grep wants private fixed already mapped.
17643 The main things grep needs to know about mmap are:
17644 * does it exist and is it safe to write into the mmap'd area
17645 * how to use it (BSD variants) */
17648 #include <sys/mman.h>
17650 #if !STDC_HEADERS && !HAVE_STDLIB_H
17654 /* This mess was copied from the GNU getpagesize.h. */
17655 #if !HAVE_GETPAGESIZE
17656 /* Assume that all systems that can run configure have sys/param.h. */
17657 # if !HAVE_SYS_PARAM_H
17658 # define HAVE_SYS_PARAM_H 1
17661 # ifdef _SC_PAGESIZE
17662 # define getpagesize() sysconf(_SC_PAGESIZE)
17663 # else /* no _SC_PAGESIZE */
17664 # if HAVE_SYS_PARAM_H
17665 # include <sys/param.h>
17666 # ifdef EXEC_PAGESIZE
17667 # define getpagesize() EXEC_PAGESIZE
17668 # else /* no EXEC_PAGESIZE */
17670 # define getpagesize() NBPG * CLSIZE
17673 # endif /* no CLSIZE */
17674 # else /* no NBPG */
17676 # define getpagesize() NBPC
17677 # else /* no NBPC */
17679 # define getpagesize() PAGESIZE
17680 # endif /* PAGESIZE */
17681 # endif /* no NBPC */
17682 # endif /* no NBPG */
17683 # endif /* no EXEC_PAGESIZE */
17684 # else /* no HAVE_SYS_PARAM_H */
17685 # define getpagesize() 8192 /* punt totally */
17686 # endif /* no HAVE_SYS_PARAM_H */
17687 # endif /* no _SC_PAGESIZE */
17689 #endif /* no HAVE_GETPAGESIZE */
17694 char *data, *data2, *data3;
17698 pagesize = getpagesize ();
17700 /* First, make a file with some known garbage in it. */
17701 data = (char *) malloc (pagesize);
17704 for (i = 0; i < pagesize; ++i)
17705 *(data + i) = rand ();
17707 fd = creat ("conftest.mmap", 0600);
17710 if (write (fd, data, pagesize) != pagesize)
17714 /* Next, try to mmap the file at a fixed address which already has
17715 something else allocated at it. If we can, also make sure that
17716 we see the same garbage. */
17717 fd = open ("conftest.mmap", O_RDWR);
17720 data2 = (char *) malloc (2 * pagesize);
17723 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17724 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17725 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17727 for (i = 0; i < pagesize; ++i)
17728 if (*(data + i) != *(data2 + i))
17731 /* Finally, make sure that changes to the mapped area do not
17732 percolate back to the file as seen by read(). (This is a bug on
17733 some variants of i386 svr4.0.) */
17734 for (i = 0; i < pagesize; ++i)
17735 *(data2 + i) = *(data2 + i) + 1;
17736 data3 = (char *) malloc (pagesize);
17739 if (read (fd, data3, pagesize) != pagesize)
17741 for (i = 0; i < pagesize; ++i)
17742 if (*(data + i) != *(data3 + i))
17748 rm -f conftest$ac_exeext
17749 if { (ac_try="$ac_link"
17750 case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_link") 2>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17759 { (case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764 (eval "$ac_try") 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
17768 ac_cv_func_mmap_fixed_mapped=yes
17770 echo "$as_me: program exited with status $ac_status" >&5
17771 echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17774 ( exit $ac_status )
17775 ac_cv_func_mmap_fixed_mapped=no
17777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17782 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17783 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17784 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17786 cat >>confdefs.h <<\_ACEOF
17787 #define HAVE_MMAP 1
17791 rm -f conftest.mmap
17793 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17794 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17795 if test "${ac_cv_func_mmap_file+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 ac_cpp='$CPP $CPPFLAGS'
17800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17804 if test "$cross_compiling" = yes; then
17805 ac_cv_func_mmap_file=no
17807 cat >conftest.$ac_ext <<_ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h. */
17815 #include <sys/types.h>
17816 #include <sys/mman.h>
17824 fd = creat ("foo",0777);
17825 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17827 return (fd != (int) MAP_FAILED);
17832 rm -f conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_link") 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17843 { (case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_try") 2>&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; }; then
17852 ac_cv_func_mmap_file=yes
17854 echo "$as_me: program exited with status $ac_status" >&5
17855 echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17858 ( exit $ac_status )
17859 ac_cv_func_mmap_file=no
17861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17866 ac_cpp='$CPP $CPPFLAGS'
17867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17873 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17874 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17875 if test "$ac_cv_func_mmap_file" = yes; then
17877 cat >>confdefs.h <<\_ACEOF
17878 #define HAVE_MMAP_FILE
17885 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17886 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17887 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17888 echo $ECHO_N "(cached) $ECHO_C" >&6
17890 if test "$llvm_cv_os_type" = "Interix" ; then
17891 ac_cv_need_dev_zero_for_mmap=yes
17893 ac_cv_need_dev_zero_for_mmap=no
17897 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17898 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17899 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17901 cat >>confdefs.h <<\_ACEOF
17902 #define NEED_DEV_ZERO_FOR_MMAP 1
17907 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17909 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17910 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17912 if test "$ac_cv_func_mmap_file" = "no"
17914 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17915 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17919 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17920 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17922 ac_cpp='$CXXCPP $CPPFLAGS'
17923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17927 cat >conftest.$ac_ext <<_ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17936 volatile unsigned long val = 1;
17937 __sync_synchronize();
17938 __sync_val_compare_and_swap(&val, 1, 0);
17939 __sync_add_and_fetch(&val, 1);
17940 __sync_sub_and_fetch(&val, 1);
17946 rm -f conftest.$ac_objext conftest$ac_exeext
17947 if { (ac_try="$ac_link"
17948 case "(($ac_try" in
17949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950 *) ac_try_echo=$ac_try;;
17952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953 (eval "$ac_link") 2>conftest.er1
17955 grep -v '^ *+' conftest.er1 >conftest.err
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
17960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17961 { (case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_try") 2>&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; } &&
17970 { ac_try='test -s conftest$ac_exeext'
17971 { (case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_try") 2>&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; }; then
17981 { echo "$as_me:$LINENO: result: yes" >&5
17982 echo "${ECHO_T}yes" >&6; }
17984 cat >>confdefs.h <<\_ACEOF
17985 #define LLVM_HAS_ATOMICS 1
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17994 { echo "$as_me:$LINENO: result: no" >&5
17995 echo "${ECHO_T}no" >&6; }
17997 cat >>confdefs.h <<\_ACEOF
17998 #define LLVM_HAS_ATOMICS 0
18001 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18002 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18006 rm -f core conftest.err conftest.$ac_objext \
18007 conftest$ac_exeext conftest.$ac_ext
18009 ac_cpp='$CPP $CPPFLAGS'
18010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18016 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18017 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18018 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18019 if test "${llvm_cv_linux_mixed+set}" = set; then
18020 echo $ECHO_N "(cached) $ECHO_C" >&6
18023 ac_cpp='$CPP $CPPFLAGS'
18024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18028 cat >conftest.$ac_ext <<_ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18035 error: Not x86-64 even if uname says so!
18046 rm -f conftest.$ac_objext
18047 if { (ac_try="$ac_compile"
18048 case "(($ac_try" in
18049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050 *) ac_try_echo=$ac_try;;
18052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053 (eval "$ac_compile") 2>conftest.er1
18055 grep -v '^ *+' conftest.er1 >conftest.err
18057 cat conftest.err >&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); } &&
18060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18061 { (case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_try") 2>&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; } &&
18070 { ac_try='test -s conftest.$ac_objext'
18071 { (case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_try") 2>&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; }; then
18080 llvm_cv_linux_mixed=no
18082 echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18085 llvm_cv_linux_mixed=yes
18088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18090 ac_cpp='$CPP $CPPFLAGS'
18091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18097 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18098 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18100 if test "$llvm_cv_linux_mixed" = "yes"; then
18101 llvm_cv_target_arch="x86"
18107 for ac_func in __dso_handle
18109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18115 cat >conftest.$ac_ext <<_ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18123 #define $ac_func innocuous_$ac_func
18125 /* System header to define __stub macros and hopefully few prototypes,
18126 which can conflict with char $ac_func (); below.
18127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18128 <limits.h> exists even on freestanding compilers. */
18131 # include <limits.h>
18133 # include <assert.h>
18138 /* Override any GCC internal prototype to avoid an error.
18139 Use char because int might match the return type of a GCC
18140 builtin and then its argument prototype would still apply. */
18145 /* The GNU C library defines this for functions which it implements
18146 to always fail with ENOSYS. Some functions are actually named
18147 something starting with __ and the normal name is an alias. */
18148 #if defined __stub_$ac_func || defined __stub___$ac_func
18155 return $ac_func ();
18160 rm -f conftest.$ac_objext conftest$ac_exeext
18161 if { (ac_try="$ac_link"
18162 case "(($ac_try" in
18163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18164 *) ac_try_echo=$ac_try;;
18166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18167 (eval "$ac_link") 2>conftest.er1
18169 grep -v '^ *+' conftest.er1 >conftest.err
18171 cat conftest.err >&5
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); } &&
18174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18175 { (case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_try") 2>&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; } &&
18184 { ac_try='test -s conftest$ac_exeext'
18185 { (case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_try") 2>&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; }; then
18194 eval "$as_ac_var=yes"
18196 echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18199 eval "$as_ac_var=no"
18202 rm -f core conftest.err conftest.$ac_objext \
18203 conftest$ac_exeext conftest.$ac_ext
18205 ac_res=`eval echo '${'$as_ac_var'}'`
18206 { echo "$as_me:$LINENO: result: $ac_res" >&5
18207 echo "${ECHO_T}$ac_res" >&6; }
18208 if test `eval echo '${'$as_ac_var'}'` = yes; then
18209 cat >>confdefs.h <<_ACEOF
18210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18217 SHLIBEXT=$llvm_shlib_ext
18220 if test "${prefix}" = "NONE" ; then
18221 prefix="/usr/local"
18223 eval LLVM_PREFIX="${prefix}";
18224 eval LLVM_BINDIR="${prefix}/bin";
18225 eval LLVM_DATADIR="${prefix}/share/llvm";
18226 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18227 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18228 eval LLVM_INCLUDEDIR="${prefix}/include";
18229 eval LLVM_INFODIR="${prefix}/info";
18230 eval LLVM_MANDIR="${prefix}/man";
18231 LLVM_CONFIGTIME=`date`
18242 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18243 LLVM_CONFIGTIME="(timestamp not enabled)"
18247 cat >>confdefs.h <<_ACEOF
18248 #define LLVM_PREFIX "$LLVM_PREFIX"
18252 cat >>confdefs.h <<_ACEOF
18253 #define LLVM_BINDIR "$LLVM_BINDIR"
18257 cat >>confdefs.h <<_ACEOF
18258 #define LLVM_DATADIR "$LLVM_DATADIR"
18262 cat >>confdefs.h <<_ACEOF
18263 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18267 cat >>confdefs.h <<_ACEOF
18268 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18272 cat >>confdefs.h <<_ACEOF
18273 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18277 cat >>confdefs.h <<_ACEOF
18278 #define LLVM_INFODIR "$LLVM_INFODIR"
18282 cat >>confdefs.h <<_ACEOF
18283 #define LLVM_MANDIR "$LLVM_MANDIR"
18287 cat >>confdefs.h <<_ACEOF
18288 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18292 cat >>confdefs.h <<_ACEOF
18293 #define LLVM_HOST_TRIPLE "$host"
18297 cat >>confdefs.h <<_ACEOF
18298 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18302 if test "$BINDINGS_TO_BUILD" = auto ; then
18303 BINDINGS_TO_BUILD=""
18304 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
18305 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18307 if test "x$GO" != x ; then
18308 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18309 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18313 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18316 binding_prereqs_failed=0
18317 for a_binding in $BINDINGS_TO_BUILD ; do
18318 case "$a_binding" in
18320 if test "x$OCAMLC" = x ; then
18321 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
18322 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
18323 binding_prereqs_failed=1
18325 if test "x$OCAMLDEP" = x ; then
18326 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
18327 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
18328 binding_prereqs_failed=1
18330 if test "x$OCAMLOPT" = x ; then
18331 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
18332 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
18334 if test "x$with_ocaml_libdir" != xauto ; then
18335 OCAML_LIBDIR=$with_ocaml_libdir
18338 ocaml_stdlib="`"$OCAMLC" -where`"
18339 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18341 # ocaml stdlib is beneath our prefix; use stdlib
18342 OCAML_LIBDIR=$ocaml_stdlib
18345 # ocaml stdlib is outside our prefix; use libdir/ocaml
18346 OCAML_LIBDIR=${prefix}/lib/ocaml
18352 if test "x$GO" = x ; then
18353 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18354 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18355 binding_prereqs_failed=1
18357 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18360 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18361 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18362 binding_prereqs_failed=1
18368 if test "$binding_prereqs_failed" = 1 ; then
18369 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18370 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18371 { (exit 1); exit 1; }; }
18374 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18375 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18376 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18377 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 ac_cpp='$CXXCPP $CPPFLAGS'
18381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18385 oldcxxflags="$CXXFLAGS"
18386 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18387 cat >conftest.$ac_ext <<_ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h. */
18393 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18402 rm -f conftest.$ac_objext
18403 if { (ac_try="$ac_compile"
18404 case "(($ac_try" in
18405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406 *) ac_try_echo=$ac_try;;
18408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409 (eval "$ac_compile") 2>conftest.er1
18411 grep -v '^ *+' conftest.er1 >conftest.err
18413 cat conftest.err >&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } &&
18416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18417 { (case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_try") 2>&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; } &&
18426 { ac_try='test -s conftest.$ac_objext'
18427 { (case "(($ac_try" in
18428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18429 *) ac_try_echo=$ac_try;;
18431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432 (eval "$ac_try") 2>&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; }; then
18436 llvm_cv_cxx_visibility_inlines_hidden=yes
18438 echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18441 llvm_cv_cxx_visibility_inlines_hidden=no
18444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18445 CXXFLAGS="$oldcxxflags"
18447 ac_cpp='$CPP $CPPFLAGS'
18448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18454 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18455 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18456 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18457 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18460 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18465 if test "$llvm_cv_link_use_r" = "yes" ; then
18472 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18473 RDYNAMIC="-rdynamic"
18480 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18487 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18489 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18491 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18493 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18495 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18498 ac_config_files="$ac_config_files Makefile.config"
18501 ac_config_files="$ac_config_files llvm.spec"
18504 ac_config_files="$ac_config_files docs/doxygen.cfg"
18507 if test "${clang_src_root}" = ""; then
18508 clang_src_root="$srcdir/tools/clang"
18510 if test -f ${clang_src_root}/README.txt; then
18511 configh="include/clang/Config/config.h"
18512 doxy="docs/doxygen.cfg"
18513 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18515 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18519 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18522 test "x$program_prefix" = "xNONE" && program_prefix=""
18526 ac_config_commands="$ac_config_commands setup"
18528 ac_config_commands="$ac_config_commands Makefile"
18531 ac_config_commands="$ac_config_commands Makefile.common"
18534 ac_config_commands="$ac_config_commands examples/Makefile"
18537 ac_config_commands="$ac_config_commands lib/Makefile"
18540 ac_config_commands="$ac_config_commands test/Makefile"
18543 ac_config_commands="$ac_config_commands test/Makefile.tests"
18546 ac_config_commands="$ac_config_commands unittests/Makefile"
18549 ac_config_commands="$ac_config_commands tools/Makefile"
18552 ac_config_commands="$ac_config_commands utils/Makefile"
18555 ac_config_commands="$ac_config_commands projects/Makefile"
18558 ac_config_commands="$ac_config_commands bindings/Makefile"
18561 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18565 cat >confcache <<\_ACEOF
18566 # This file is a shell script that caches the results of configure
18567 # tests run on this system so they can be shared between configure
18568 # scripts and configure runs, see configure's option --config-cache.
18569 # It is not useful on other systems. If it contains results you don't
18570 # want to keep, you may remove or edit it.
18572 # config.status only pays attention to the cache file if you give it
18573 # the --recheck option to rerun configure.
18575 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18576 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18577 # following values.
18581 # The following way of writing the cache mishandles newlines in values,
18582 # but we know of no workaround that is simple, portable, and efficient.
18583 # So, we kill variables containing newlines.
18584 # Ultrix sh set writes to stderr and can't be redirected directly,
18585 # and sets the high bit in the cache file unless we assign to the vars.
18587 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18588 eval ac_val=\$$ac_var
18592 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18593 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18596 _ | IFS | as_nl) ;; #(
18597 *) $as_unset $ac_var ;;
18603 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18604 *${as_nl}ac_space=\ *)
18605 # `set' does not quote correctly, so add quotes (double-quote
18606 # substitution turns \\\\ into \\, and sed turns \\ into \).
18609 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18612 # `set' quotes correctly as required by POSIX, so do not add quotes.
18613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18622 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18624 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18626 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18627 if test -w "$cache_file"; then
18628 test "x$cache_file" != "x/dev/null" &&
18629 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18630 echo "$as_me: updating cache $cache_file" >&6;}
18631 cat confcache >$cache_file
18633 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18634 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18639 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18640 # Let make expand exec_prefix.
18641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18643 DEFS=-DHAVE_CONFIG_H
18647 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18648 # 1. Remove the extension, and $U if already installed.
18649 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18650 ac_i=`echo "$ac_i" | sed "$ac_script"`
18651 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18652 # will be set to the directory where LIBOBJS objects are built.
18653 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18654 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18656 LIBOBJS=$ac_libobjs
18658 LTLIBOBJS=$ac_ltlibobjs
18662 : ${CONFIG_STATUS=./config.status}
18663 ac_clean_files_save=$ac_clean_files
18664 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18665 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18666 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18667 cat >$CONFIG_STATUS <<_ACEOF
18669 # Generated by $as_me.
18670 # Run this file to recreate the current configuration.
18671 # Compiler output produced by configure, useful for debugging
18672 # configure, is in config.log if it exists.
18675 ac_cs_recheck=false
18677 SHELL=\${CONFIG_SHELL-$SHELL}
18680 cat >>$CONFIG_STATUS <<\_ACEOF
18681 ## --------------------- ##
18682 ## M4sh Initialization. ##
18683 ## --------------------- ##
18685 # Be Bourne compatible
18686 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18689 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18690 # is contrary to our usage. Disable this feature.
18691 alias -g '${1+"$@"}'='"$@"'
18692 setopt NO_GLOB_SUBST
18694 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18696 BIN_SH=xpg4; export BIN_SH # for Tru64
18697 DUALCASE=1; export DUALCASE # for MKS sh
18701 # Avoid depending upon Character Ranges.
18702 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18703 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18704 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18705 as_cr_digits='0123456789'
18706 as_cr_alnum=$as_cr_Letters$as_cr_digits
18708 # The user is always right.
18709 if test "${PATH_SEPARATOR+set}" != set; then
18710 echo "#! /bin/sh" >conf$$.sh
18711 echo "exit 0" >>conf$$.sh
18713 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18721 # Support unset when possible.
18722 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18730 # We need space, tab and new line, in precisely that order. Quoting is
18731 # there to prevent editors from complaining about space-tab.
18732 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18733 # splitting by setting IFS to empty value.)
18738 # Find who we are. Look in the path if we contain no directory separator.
18740 *[\\/]* ) as_myself=$0 ;;
18741 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18742 for as_dir in $PATH
18745 test -z "$as_dir" && as_dir=.
18746 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18752 # We did not find ourselves, most probably we were run as `sh COMMAND'
18753 # in which case we are not to be found in the path.
18754 if test "x$as_myself" = x; then
18757 if test ! -f "$as_myself"; then
18758 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18759 { (exit 1); exit 1; }
18762 # Work around bugs in pre-3.0 UWIN ksh.
18763 for as_var in ENV MAIL MAILPATH
18764 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18772 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18773 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18774 LC_TELEPHONE LC_TIME
18776 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18777 eval $as_var=C; export $as_var
18779 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18783 # Required to use basename.
18784 if expr a : '\(a\)' >/dev/null 2>&1 &&
18785 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18791 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18792 as_basename=basename
18798 # Name of the executable.
18799 as_me=`$as_basename -- "$0" ||
18800 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18801 X"$0" : 'X\(//\)$' \| \
18802 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18804 sed '/^.*\/\([^/][^/]*\)\/*$/{
18823 as_lineno_1=$LINENO
18824 as_lineno_2=$LINENO
18825 test "x$as_lineno_1" != "x$as_lineno_2" &&
18826 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18828 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18829 # uniformly replaced by the line number. The first 'sed' inserts a
18830 # line-number line after each line using $LINENO; the second 'sed'
18831 # does the real work. The second script uses 'N' to pair each
18832 # line-number line with the line containing $LINENO, and appends
18833 # trailing '-' during substitution so that $LINENO is not a special
18834 # case at line end.
18835 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18836 # scripts with optimization help from Paolo Bonzini. Blame Lee
18837 # E. McMahon (1931-1989) for sed's syntax. :-)
18849 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18852 ' >$as_me.lineno &&
18853 chmod +x "$as_me.lineno" ||
18854 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18855 { (exit 1); exit 1; }; }
18857 # Don't try to exec as it changes $[0], causing all sort of problems
18858 # (the dirname of $[0] is not the place where we might find the
18859 # original and so on. Autoconf is especially sensitive to this).
18860 . "./$as_me.lineno"
18861 # Exit status is that of the last command.
18866 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18872 ECHO_C= ECHO_N= ECHO_T=
18873 case `echo -n x` in
18875 case `echo 'x\c'` in
18876 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18883 if expr a : '\(a\)' >/dev/null 2>&1 &&
18884 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18890 rm -f conf$$ conf$$.exe conf$$.file
18891 if test -d conf$$.dir; then
18892 rm -f conf$$.dir/conf$$.file
18898 if ln -s conf$$.file conf$$ 2>/dev/null; then
18900 # ... but there are two gotchas:
18901 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18902 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18903 # In both cases, we have to default to `cp -p'.
18904 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18906 elif ln conf$$.file conf$$ 2>/dev/null; then
18911 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18912 rmdir conf$$.dir 2>/dev/null
18914 if mkdir -p . 2>/dev/null; then
18917 test -d ./-p && rmdir ./-p
18921 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18922 # systems may use methods other than mode bits to determine executability.
18923 cat >conf$$.file <<_ASEOF
18927 chmod +x conf$$.file
18928 if test -x conf$$.file >/dev/null 2>&1; then
18929 as_executable_p="test -x"
18935 # Sed expression to map a string onto a valid CPP name.
18936 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18938 # Sed expression to map a string onto a valid variable name.
18939 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18944 # Save the log message, to keep $[0] and so on meaningful, and to
18945 # report actual input values of CONFIG_FILES etc. instead of their
18946 # values after options handling.
18948 This file was extended by LLVM $as_me 3.6.0svn, which was
18949 generated by GNU Autoconf 2.60. Invocation command line was
18951 CONFIG_FILES = $CONFIG_FILES
18952 CONFIG_HEADERS = $CONFIG_HEADERS
18953 CONFIG_LINKS = $CONFIG_LINKS
18954 CONFIG_COMMANDS = $CONFIG_COMMANDS
18957 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18962 cat >>$CONFIG_STATUS <<_ACEOF
18963 # Files that config.status was made for.
18964 config_files="$ac_config_files"
18965 config_headers="$ac_config_headers"
18966 config_commands="$ac_config_commands"
18970 cat >>$CONFIG_STATUS <<\_ACEOF
18972 \`$as_me' instantiates files from templates according to the
18973 current configuration.
18975 Usage: $0 [OPTIONS] [FILE]...
18977 -h, --help print this help, then exit
18978 -V, --version print version number, then exit
18979 -q, --quiet do not print progress messages
18980 -d, --debug don't remove temporary files
18981 --recheck update $as_me by reconfiguring in the same conditions
18982 --file=FILE[:TEMPLATE]
18983 instantiate the configuration file FILE
18984 --header=FILE[:TEMPLATE]
18985 instantiate the configuration header FILE
18987 Configuration files:
18990 Configuration headers:
18993 Configuration commands:
18996 Report bugs to <bug-autoconf@gnu.org>."
18999 cat >>$CONFIG_STATUS <<_ACEOF
19001 LLVM config.status 3.6.0svn
19002 configured by $0, generated by GNU Autoconf 2.60,
19003 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19005 Copyright (C) 2006 Free Software Foundation, Inc.
19006 This config.status script is free software; the Free Software Foundation
19007 gives unlimited permission to copy, distribute and modify it."
19014 cat >>$CONFIG_STATUS <<\_ACEOF
19015 # If no file are specified by the user, then we need to provide default
19016 # value. By we need to know if files were specified by the user.
19022 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19023 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19034 # Handling of the options.
19035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19037 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19038 echo "$ac_cs_version"; exit ;;
19039 --debug | --debu | --deb | --de | --d | -d )
19041 --file | --fil | --fi | --f )
19043 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19044 ac_need_defaults=false;;
19045 --header | --heade | --head | --hea )
19047 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19048 ac_need_defaults=false;;
19050 # Conflict between --help and --header
19051 { echo "$as_me: error: ambiguous option: $1
19052 Try \`$0 --help' for more information." >&2
19053 { (exit 1); exit 1; }; };;
19054 --help | --hel | -h )
19055 echo "$ac_cs_usage"; exit ;;
19056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19057 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19060 # This is an error.
19061 -*) { echo "$as_me: error: unrecognized option: $1
19062 Try \`$0 --help' for more information." >&2
19063 { (exit 1); exit 1; }; } ;;
19065 *) ac_config_targets="$ac_config_targets $1"
19066 ac_need_defaults=false ;;
19072 ac_configure_extra_args=
19074 if $ac_cs_silent; then
19076 ac_configure_extra_args="$ac_configure_extra_args --silent"
19080 cat >>$CONFIG_STATUS <<_ACEOF
19081 if \$ac_cs_recheck; then
19082 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19083 CONFIG_SHELL=$SHELL
19084 export CONFIG_SHELL
19085 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19089 cat >>$CONFIG_STATUS <<\_ACEOF
19093 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19094 ## Running $as_me. ##
19100 cat >>$CONFIG_STATUS <<_ACEOF
19104 llvm_src="${srcdir}"
19108 cat >>$CONFIG_STATUS <<\_ACEOF
19110 # Handling of arguments.
19111 for ac_config_target in $ac_config_targets
19113 case $ac_config_target in
19114 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19115 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19116 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19117 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19118 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19119 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19120 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19121 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19122 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19123 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19124 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19125 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19126 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19127 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19128 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19129 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19130 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19131 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19132 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19133 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19134 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19135 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19136 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19137 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19138 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19139 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19141 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19142 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19143 { (exit 1); exit 1; }; };;
19148 # If the user did not use the arguments to specify the items to instantiate,
19149 # then the envvar interface is used. Set only those that are not.
19150 # We use the long form for the default assignment because of an extremely
19151 # bizarre bug on SunOS 4.1.3.
19152 if $ac_need_defaults; then
19153 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19154 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19155 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19158 # Have a temporary directory for convenience. Make it in the build tree
19159 # simply because there is no reason against having it here, and in addition,
19160 # creating and moving files from /tmp can sometimes cause problems.
19161 # Hook for its removal unless debugging.
19162 # Note that there is a small window in which the directory will not be cleaned:
19163 # after its creation but before its name has been assigned to `$tmp'.
19167 trap 'exit_status=$?
19168 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19170 trap '{ (exit 1); exit 1; }' 1 2 13 15
19172 # Create a (secure) tmp directory for tmp files.
19175 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19176 test -n "$tmp" && test -d "$tmp"
19179 tmp=./conf$$-$RANDOM
19180 (umask 077 && mkdir "$tmp")
19183 echo "$me: cannot create a temporary directory in ." >&2
19184 { (exit 1); exit 1; }
19188 # Set up the sed scripts for CONFIG_FILES section.
19191 # No need to generate the scripts if there are no CONFIG_FILES.
19192 # This happens for instance when ./config.status config.h
19193 if test -n "$CONFIG_FILES"; then
19200 for ac_last_try in false false false false false :; do
19201 cat >conf$$subs.sed <<_ACEOF
19202 SHELL!$SHELL$ac_delim
19203 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19204 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19205 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19206 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19207 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19208 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19209 exec_prefix!$exec_prefix$ac_delim
19210 prefix!$prefix$ac_delim
19211 program_transform_name!$program_transform_name$ac_delim
19212 bindir!$bindir$ac_delim
19213 sbindir!$sbindir$ac_delim
19214 libexecdir!$libexecdir$ac_delim
19215 datarootdir!$datarootdir$ac_delim
19216 datadir!$datadir$ac_delim
19217 sysconfdir!$sysconfdir$ac_delim
19218 sharedstatedir!$sharedstatedir$ac_delim
19219 localstatedir!$localstatedir$ac_delim
19220 includedir!$includedir$ac_delim
19221 oldincludedir!$oldincludedir$ac_delim
19222 docdir!$docdir$ac_delim
19223 infodir!$infodir$ac_delim
19224 htmldir!$htmldir$ac_delim
19225 dvidir!$dvidir$ac_delim
19226 pdfdir!$pdfdir$ac_delim
19227 psdir!$psdir$ac_delim
19228 libdir!$libdir$ac_delim
19229 localedir!$localedir$ac_delim
19230 mandir!$mandir$ac_delim
19231 DEFS!$DEFS$ac_delim
19232 ECHO_C!$ECHO_C$ac_delim
19233 ECHO_N!$ECHO_N$ac_delim
19234 ECHO_T!$ECHO_T$ac_delim
19235 LIBS!$LIBS$ac_delim
19236 build_alias!$build_alias$ac_delim
19237 host_alias!$host_alias$ac_delim
19238 target_alias!$target_alias$ac_delim
19239 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19240 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19241 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19242 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19243 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19245 CFLAGS!$CFLAGS$ac_delim
19246 LDFLAGS!$LDFLAGS$ac_delim
19247 CPPFLAGS!$CPPFLAGS$ac_delim
19248 ac_ct_CC!$ac_ct_CC$ac_delim
19249 EXEEXT!$EXEEXT$ac_delim
19250 OBJEXT!$OBJEXT$ac_delim
19252 CXXFLAGS!$CXXFLAGS$ac_delim
19253 ac_ct_CXX!$ac_ct_CXX$ac_delim
19255 subdirs!$subdirs$ac_delim
19256 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19257 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19258 build!$build$ac_delim
19259 build_cpu!$build_cpu$ac_delim
19260 build_vendor!$build_vendor$ac_delim
19261 build_os!$build_os$ac_delim
19262 host!$host$ac_delim
19263 host_cpu!$host_cpu$ac_delim
19264 host_vendor!$host_vendor$ac_delim
19265 host_os!$host_os$ac_delim
19266 target!$target$ac_delim
19267 target_cpu!$target_cpu$ac_delim
19268 target_vendor!$target_vendor$ac_delim
19269 target_os!$target_os$ac_delim
19271 HOST_OS!$HOST_OS$ac_delim
19272 TARGET_OS!$TARGET_OS$ac_delim
19273 LINKALL!$LINKALL$ac_delim
19274 NOLINKALL!$NOLINKALL$ac_delim
19275 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19276 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19277 ARCH!$ARCH$ac_delim
19278 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19279 HOST_ARCH!$HOST_ARCH$ac_delim
19280 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19281 BUILD_CC!$BUILD_CC$ac_delim
19282 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19283 BUILD_CXX!$BUILD_CXX$ac_delim
19284 CVSBUILD!$CVSBUILD$ac_delim
19285 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19286 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19287 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19288 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19289 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19290 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19291 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19292 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19293 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19294 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19295 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19296 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19297 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19298 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19301 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19303 elif $ac_last_try; then
19304 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19305 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19306 { (exit 1); exit 1; }; }
19308 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19312 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19313 if test -n "$ac_eof"; then
19314 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19315 ac_eof=`expr $ac_eof + 1`
19318 cat >>$CONFIG_STATUS <<_ACEOF
19319 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19323 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19324 s/^/s,@/; s/!/@,|#_!!_#|/
19327 s/'"$ac_delim"'$/,g/; t
19329 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19330 ' >>$CONFIG_STATUS <conf$$subs.sed
19331 rm -f conf$$subs.sed
19332 cat >>$CONFIG_STATUS <<_ACEOF
19338 for ac_last_try in false false false false false :; do
19339 cat >conf$$subs.sed <<_ACEOF
19340 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19342 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19343 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19344 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19345 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19346 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19347 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19348 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19349 ENABLE_PIC!$ENABLE_PIC$ac_delim
19350 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19351 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19352 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19353 ALL_TARGETS!$ALL_TARGETS$ac_delim
19354 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19355 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19356 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19357 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19358 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19359 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19360 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19361 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19362 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19363 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19364 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19365 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19366 ifGNUmake!$ifGNUmake$ac_delim
19367 LN_S!$LN_S$ac_delim
19371 DATE!$DATE$ac_delim
19372 FIND!$FIND$ac_delim
19373 GREP!$GREP$ac_delim
19374 MKDIR!$MKDIR$ac_delim
19376 RANLIB!$RANLIB$ac_delim
19381 BINPWD!$BINPWD$ac_delim
19383 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19384 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19385 INSTALL_DATA!$INSTALL_DATA$ac_delim
19386 BZIP2!$BZIP2$ac_delim
19388 DOXYGEN!$DOXYGEN$ac_delim
19389 GROFF!$GROFF$ac_delim
19390 GZIPBIN!$GZIPBIN$ac_delim
19391 PDFROFF!$PDFROFF$ac_delim
19394 OCAMLC!$OCAMLC$ac_delim
19395 OCAMLOPT!$OCAMLOPT$ac_delim
19396 OCAMLDEP!$OCAMLDEP$ac_delim
19397 OCAMLDOC!$OCAMLDOC$ac_delim
19399 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19400 EGREP!$EGREP$ac_delim
19401 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19402 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19403 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19404 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19405 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19406 PYTHON!$PYTHON$ac_delim
19407 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19408 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19409 USE_OPROFILE!$USE_OPROFILE$ac_delim
19410 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19411 XML2CONFIG!$XML2CONFIG$ac_delim
19412 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19413 LIBXML2_INC!$LIBXML2_INC$ac_delim
19414 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19415 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19416 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19417 MMAP_FILE!$MMAP_FILE$ac_delim
19418 SHLIBEXT!$SHLIBEXT$ac_delim
19419 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19420 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19421 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19422 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19423 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19424 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19425 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19426 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19427 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19428 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19429 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19430 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19431 RPATH!$RPATH$ac_delim
19432 RDYNAMIC!$RDYNAMIC$ac_delim
19433 program_prefix!$program_prefix$ac_delim
19434 LIBOBJS!$LIBOBJS$ac_delim
19435 LTLIBOBJS!$LTLIBOBJS$ac_delim
19438 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
19440 elif $ac_last_try; then
19441 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19442 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19443 { (exit 1); exit 1; }; }
19445 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19449 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19450 if test -n "$ac_eof"; then
19451 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19452 ac_eof=`expr $ac_eof + 1`
19455 cat >>$CONFIG_STATUS <<_ACEOF
19456 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19460 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19461 s/^/s,@/; s/!/@,|#_!!_#|/
19464 s/'"$ac_delim"'$/,g/; t
19466 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19467 ' >>$CONFIG_STATUS <conf$$subs.sed
19468 rm -f conf$$subs.sed
19469 cat >>$CONFIG_STATUS <<_ACEOF
19474 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19475 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19476 # trailing colons and then remove the whole line if VPATH becomes empty
19477 # (actually we leave an empty line to preserve line numbers).
19478 if test "x$srcdir" = x.; then
19479 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19480 s/:*\$(srcdir):*/:/
19481 s/:*\${srcdir}:*/:/
19483 s/^\([^=]*=[ ]*\):*/\1/
19489 cat >>$CONFIG_STATUS <<\_ACEOF
19490 fi # test -n "$CONFIG_FILES"
19493 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19496 :[FHLC]) ac_mode=$ac_tag; continue;;
19498 case $ac_mode$ac_tag in
19500 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19501 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19502 { (exit 1); exit 1; }; };;
19503 :[FH]-) ac_tag=-:-;;
19504 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19521 -) ac_f="$tmp/stdin";;
19522 *) # Look for the file first in the build tree, then in the source tree
19523 # (if the path is not absolute). The absolute path cannot be DOS-style,
19524 # because $ac_f cannot contain `:'.
19528 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19530 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19531 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19532 { (exit 1); exit 1; }; };;
19534 ac_file_inputs="$ac_file_inputs $ac_f"
19537 # Let's still pretend it is `configure' which instantiates (i.e., don't
19538 # use $as_me), people would be surprised to read:
19539 # /* config.h. Generated by config.status. */
19540 configure_input="Generated from "`IFS=:
19541 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19542 if test x"$ac_file" != x-; then
19543 configure_input="$ac_file. $configure_input"
19544 { echo "$as_me:$LINENO: creating $ac_file" >&5
19545 echo "$as_me: creating $ac_file" >&6;}
19549 *:-:* | *:-) cat >"$tmp/stdin";;
19554 ac_dir=`$as_dirname -- "$ac_file" ||
19555 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19556 X"$ac_file" : 'X\(//\)[^/]' \| \
19557 X"$ac_file" : 'X\(//\)$' \| \
19558 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19564 /^X\(\/\/\)[^/].*/{
19579 -*) as_dir=./$as_dir;;
19581 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19585 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19586 *) as_qdir=$as_dir;;
19588 as_dirs="'$as_qdir' $as_dirs"
19589 as_dir=`$as_dirname -- "$as_dir" ||
19590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19591 X"$as_dir" : 'X\(//\)[^/]' \| \
19592 X"$as_dir" : 'X\(//\)$' \| \
19593 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19599 /^X\(\/\/\)[^/].*/{
19612 test -d "$as_dir" && break
19614 test -z "$as_dirs" || eval "mkdir $as_dirs"
19615 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19616 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19617 { (exit 1); exit 1; }; }; }
19621 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19623 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19624 # A ".." for each directory in $ac_dir_suffix.
19625 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19626 case $ac_top_builddir_sub in
19627 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19628 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19631 ac_abs_top_builddir=$ac_pwd
19632 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19633 # for backward compatibility:
19634 ac_top_builddir=$ac_top_build_prefix
19637 .) # We are building in place.
19639 ac_top_srcdir=$ac_top_builddir_sub
19640 ac_abs_top_srcdir=$ac_pwd ;;
19641 [\\/]* | ?:[\\/]* ) # Absolute name.
19642 ac_srcdir=$srcdir$ac_dir_suffix;
19643 ac_top_srcdir=$srcdir
19644 ac_abs_top_srcdir=$srcdir ;;
19645 *) # Relative name.
19646 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19647 ac_top_srcdir=$ac_top_build_prefix$srcdir
19648 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19650 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19660 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19661 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19665 cat >>$CONFIG_STATUS <<\_ACEOF
19666 # If the template does not know about datarootdir, expand it.
19667 # FIXME: This hack should be removed a few years after 2.60.
19668 ac_datarootdir_hack=; ac_datarootdir_seen=
19670 case `sed -n '/datarootdir/ {
19679 ' $ac_file_inputs` in
19680 *datarootdir*) ac_datarootdir_seen=yes;;
19681 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19682 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19683 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19685 cat >>$CONFIG_STATUS <<_ACEOF
19686 ac_datarootdir_hack='
19687 s&@datadir@&$datadir&g
19688 s&@docdir@&$docdir&g
19689 s&@infodir@&$infodir&g
19690 s&@localedir@&$localedir&g
19691 s&@mandir@&$mandir&g
19692 s&\\\${datarootdir}&$datarootdir&g' ;;
19696 # Neutralize VPATH when `$srcdir' = `.'.
19697 # Shell code in configure.ac might set extrasub.
19698 # FIXME: do we really want to maintain this feature?
19699 cat >>$CONFIG_STATUS <<_ACEOF
19703 cat >>$CONFIG_STATUS <<\_ACEOF
19705 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19706 s&@configure_input@&$configure_input&;t t
19707 s&@top_builddir@&$ac_top_builddir_sub&;t t
19708 s&@srcdir@&$ac_srcdir&;t t
19709 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19710 s&@top_srcdir@&$ac_top_srcdir&;t t
19711 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19712 s&@builddir@&$ac_builddir&;t t
19713 s&@abs_builddir@&$ac_abs_builddir&;t t
19714 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19715 s&@INSTALL@&$ac_INSTALL&;t t
19716 $ac_datarootdir_hack
19717 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
19719 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19720 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19721 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19722 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19723 which seems to be undefined. Please make sure it is defined." >&5
19724 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19725 which seems to be undefined. Please make sure it is defined." >&2;}
19729 -) cat "$tmp/out"; rm -f "$tmp/out";;
19730 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19739 # Transform confdefs.h into a sed script `conftest.defines', that
19740 # substitutes the proper values into config.h.in to produce config.h.
19741 rm -f conftest.defines conftest.tail
19742 # First, append a space to every undef/define line, to ease matching.
19743 echo 's/$/ /' >conftest.defines
19744 # Then, protect against being on the right side of a sed subst, or in
19745 # an unquoted here document, in config.status. If some macros were
19746 # called several times there might be several #defines for the same
19747 # symbol, which is useless. But do not sort them, since the last
19748 # AC_DEFINE must be honored.
19749 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19750 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19751 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19752 # PARAMS is the parameter list in the macro definition--in most cases, it's
19753 # just an empty string.
19754 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19755 ac_dB='\\)[ (].*,\\1define\\2'
19763 s/^[ ]*#[ ]*define[ ][ ]*//
19768 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19769 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19770 ' >>conftest.defines
19772 # Remove the space that was appended to ease matching.
19773 # Then replace #undef with comments. This is necessary, for
19774 # example, in the case of _POSIX_SOURCE, which is predefined and required
19775 # on some systems where configure will not decide to define it.
19776 # (The regexp can be short, since the line contains either #define or #undef.)
19778 s,^[ #]*u.*,/* & */,' >>conftest.defines
19780 # Break up conftest.defines:
19781 ac_max_sed_lines=50
19783 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19784 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19785 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19787 ac_in='$ac_file_inputs'
19788 ac_out='"$tmp/out1"'
19789 ac_nxt='"$tmp/out2"'
19793 # Write a here document:
19794 cat >>$CONFIG_STATUS <<_ACEOF
19795 # First, check the format of the line:
19796 cat >"\$tmp/defines.sed" <<\\CEOF
19797 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19798 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19802 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19804 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19805 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19806 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19807 grep . conftest.tail >/dev/null || break
19808 rm -f conftest.defines
19809 mv conftest.tail conftest.defines
19811 rm -f conftest.defines conftest.tail
19813 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19814 cat >>$CONFIG_STATUS <<\_ACEOF
19815 if test x"$ac_file" != x-; then
19816 echo "/* $configure_input */" >"$tmp/config.h"
19817 cat "$ac_result" >>"$tmp/config.h"
19818 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19819 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19820 echo "$as_me: $ac_file is unchanged" >&6;}
19823 mv "$tmp/config.h" $ac_file
19826 echo "/* $configure_input */"
19832 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19833 echo "$as_me: executing $ac_file commands" >&6;}
19838 case $ac_file$ac_mode in
19839 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19840 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19841 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19842 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19843 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19844 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19845 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19846 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19847 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19848 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19849 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19850 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19851 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19852 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19853 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19854 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19855 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19856 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19857 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19858 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19859 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19860 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19861 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19862 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19868 { (exit 0); exit 0; }
19870 chmod +x $CONFIG_STATUS
19871 ac_clean_files=$ac_clean_files_save
19874 # configure is writing to config.log, and then calls config.status.
19875 # config.status does its own redirection, appending to config.log.
19876 # Unfortunately, on DOS this fails, as config.log is still kept open
19877 # by configure, so config.status won't be able to write to it; its
19878 # output is simply discarded. So we exec the FD to /dev/null,
19879 # effectively closing config.log, so it can be properly (re)opened and
19880 # appended to by config.status. When coming back to configure, we
19881 # need to make the FD available again.
19882 if test "$no_create" != yes; then
19884 ac_config_status_args=
19885 test "$silent" = yes &&
19886 ac_config_status_args="$ac_config_status_args --quiet"
19888 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19890 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19891 # would make configure fail if this is the last instruction.
19892 $ac_cs_success || { (exit 1); exit 1; }
19896 # CONFIG_SUBDIRS section.
19898 if test "$no_recursion" != yes; then
19900 # Remove --cache-file and --srcdir arguments so they do not pile up.
19901 ac_sub_configure_args=
19903 eval "set x $ac_configure_args"
19907 if test -n "$ac_prev"; then
19912 -cache-file | --cache-file | --cache-fil | --cache-fi \
19913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19914 ac_prev=cache_file ;;
19915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19919 --config-cache | -C)
19921 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19923 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19925 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19927 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19931 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19933 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19937 # Always prepend --prefix to ensure using the same prefix
19938 # in subdir configurations.
19939 ac_arg="--prefix=$prefix"
19941 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19943 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19946 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19948 # Do not complain, so a configure script can configure whichever
19949 # parts of a large source tree are present.
19950 test -d "$srcdir/$ac_dir" || continue
19952 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19953 echo "$as_me:$LINENO: $ac_msg" >&5
19957 -*) as_dir=./$as_dir;;
19959 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19963 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19964 *) as_qdir=$as_dir;;
19966 as_dirs="'$as_qdir' $as_dirs"
19967 as_dir=`$as_dirname -- "$as_dir" ||
19968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19969 X"$as_dir" : 'X\(//\)[^/]' \| \
19970 X"$as_dir" : 'X\(//\)$' \| \
19971 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19977 /^X\(\/\/\)[^/].*/{
19990 test -d "$as_dir" && break
19992 test -z "$as_dirs" || eval "mkdir $as_dirs"
19993 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19994 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19995 { (exit 1); exit 1; }; }; }
19999 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20001 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20002 # A ".." for each directory in $ac_dir_suffix.
20003 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20004 case $ac_top_builddir_sub in
20005 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20006 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20009 ac_abs_top_builddir=$ac_pwd
20010 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20011 # for backward compatibility:
20012 ac_top_builddir=$ac_top_build_prefix
20015 .) # We are building in place.
20017 ac_top_srcdir=$ac_top_builddir_sub
20018 ac_abs_top_srcdir=$ac_pwd ;;
20019 [\\/]* | ?:[\\/]* ) # Absolute name.
20020 ac_srcdir=$srcdir$ac_dir_suffix;
20021 ac_top_srcdir=$srcdir
20022 ac_abs_top_srcdir=$srcdir ;;
20023 *) # Relative name.
20024 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20025 ac_top_srcdir=$ac_top_build_prefix$srcdir
20026 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20028 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20033 # Check for guested configure; otherwise get Cygnus style configure.
20034 if test -f "$ac_srcdir/configure.gnu"; then
20035 ac_sub_configure=$ac_srcdir/configure.gnu
20036 elif test -f "$ac_srcdir/configure"; then
20037 ac_sub_configure=$ac_srcdir/configure
20038 elif test -f "$ac_srcdir/configure.in"; then
20039 # This should be Cygnus configure.
20040 ac_sub_configure=$ac_aux_dir/configure
20042 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20043 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20047 # The recursion is here.
20048 if test -n "$ac_sub_configure"; then
20049 # Make the cache file name correct relative to the subdirectory.
20050 case $cache_file in
20051 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20052 *) # Relative name.
20053 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20056 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20057 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20058 # The eval makes quoting arguments work.
20059 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20060 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20061 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20062 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20063 { (exit 1); exit 1; }; }