2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_CLANG_STATIC_ANALYZER
698 ENABLE_EXPENSIVE_CHECKS
718 LLVM_ENUM_ASM_PRINTERS
719 LLVM_ENUM_ASM_PARSERS
720 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
763 NO_MAYBE_UNINITIALIZED
792 ENABLE_VISIBILITY_INLINES_HIDDEN
799 ac_precious_vars='build_alias
810 ac_subdirs_all='projects/test-suite
813 projects/llvm-poolalloc
817 # Initialize some variables set by options.
819 ac_init_version=false
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
829 program_transform_name=s,x,x,
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
903 cache_file=config.cache ;;
905 -datadir | --datadir | --datadi | --datad)
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
917 -disable-* | --disable-*)
918 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922 { (exit 1); exit 1; }; }
923 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924 eval enable_$ac_feature=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 -enable-* | --enable-*)
937 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
958 -help | --help | --hel | --he | -h)
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1107 -site=* | --site=* | --sit=*)
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1134 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137 { echo "$as_me: error: invalid package name: $ac_package" >&2
1138 { (exit 1); exit 1; }; }
1139 ac_package=`echo $ac_package| sed 's/-/_/g'`
1140 eval with_$ac_package=\$ac_optarg ;;
1142 -without-* | --without-*)
1143 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid package name: $ac_package" >&2
1147 { (exit 1); exit 1; }; }
1148 ac_package=`echo $ac_package | sed 's/-/_/g'`
1149 eval with_$ac_package=no ;;
1152 # Obsolete; use --with-x.
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1169 -*) { echo "$as_me: error: unrecognized option: $ac_option
1170 Try \`$0 --help' for more information." >&2
1171 { (exit 1); exit 1; }; }
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179 { (exit 1); exit 1; }; }
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 { echo "$as_me: error: missing argument to $ac_option" >&2
1197 { (exit 1); exit 1; }; }
1200 # Be sure to have absolute directory names.
1201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1206 eval ac_val=\$$ac_var
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212 { (exit 1); exit 1; }; }
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1220 target=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 { echo "$as_me: error: Working directory cannot be determined" >&2
1243 { (exit 1); exit 1; }; }
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245 { echo "$as_me: error: pwd does not report name of working directory" >&2
1246 { (exit 1); exit 1; }; }
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$0" ||
1254 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$0" : 'X\(//\)[^/]' \| \
1256 X"$0" : 'X\(//\)$' \| \
1257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1281 ac_srcdir_defaulted=no
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286 { (exit 1); exit 1; }; }
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291 { (exit 1); exit 1; }; }
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-polly Use polly if available (default is YES)
1391 --enable-libcpp Use libc++ if available (default is NO)
1392 --enable-compiler-version-checks
1393 Check the version of the host compiler (default is
1395 --enable-cxx1y Use c++1y if available (default is NO)
1396 --enable-split-dwarf Use split-dwarf if available (default is NO)
1397 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1398 --enable-clang-plugin-support
1399 Enable plugin support in clang (default is YES)
1400 --enable-clang-static-analyzer
1401 Enable building of clang Static Analyzer (default is
1403 --enable-optimized Compile with optimizations enabled (default is NO)
1404 --enable-profiling Compile with profiling enabled (default is NO)
1405 --enable-assertions Compile with assertion checks enabled (default is
1407 --enable-werror Compile with -Werror enabled (default is NO)
1408 --enable-expensive-checks
1409 Compile with expensive debug checks enabled (default
1411 --enable-debug-runtime Build runtime libs with debug symbols (default is
1413 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1414 optimization is on and YES if it's off)
1415 --enable-keep-symbols Do not strip installed executables)
1416 --enable-jit Enable Just In Time Compiling (default is YES)
1417 --enable-docs Build documents (default is YES)
1418 --enable-doxygen Build doxygen documentation (default is NO)
1419 --enable-threads Use threads if available (default is YES)
1420 --enable-pthreads Use pthreads if available (default is YES)
1421 --enable-zlib Use zlib for compression/decompression if available
1423 --enable-pic Build LLVM with Position Independent Code (default
1425 --enable-shared Build a shared library and link tools against it
1427 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1428 Win32 DLL (default is NO)
1429 --enable-timestamps Enable embedding timestamp information in build
1431 --enable-backtraces Enable embedding backtraces on crash (default is
1433 --enable-crash-overrides
1434 Enable crash handling overrides (default is YES)
1435 --enable-targets Build specific host targets: all or
1436 target1,target2,... Valid targets are: host, x86,
1437 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1438 hexagon, xcore, msp430, nvptx, systemz, r600, and
1440 --enable-experimental-targets
1441 Build experimental host targets: disable or
1442 target1,target2,... (default=disable)
1443 --enable-bindings Build specific language bindings:
1444 all,auto,none,{binding-name} (default=auto)
1445 --enable-terminfo Query the terminfo database if available (default is
1447 --enable-libedit Use libedit if available (default is YES)
1448 --enable-libffi Check for the presence of libffi (default is NO)
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-optimize-option Select the compiler options to use for optimized
1455 --with-extra-options Specify additional options to compile LLVM with
1456 --with-extra-ld-options Specify additional options to link LLVM with
1457 --with-ocaml-libdir Specify install location for ocaml bindings (default
1459 --with-clang-srcdir Directory to the out-of-tree Clang source
1460 --with-clang-resource-dir
1461 Relative directory from the Clang binary for
1463 --with-c-include-dirs Colon separated list of directories clang will
1465 --with-gcc-toolchain Directory where gcc is installed.
1466 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1467 --with-binutils-include Specify path to binutils/include/ containing
1468 plugin-api.h file for gold plugin.
1469 --with-bug-report-url Specify the URL where bug reports should be
1470 submitted (default=http://llvm.org/bugs/)
1471 --with-internal-prefix Installation directory for internal files
1472 --with-python path to python
1473 --with-oprofile=<prefix>
1474 Tell OProfile >= 0.9.4 how to symbolize JIT output
1475 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1478 Some influential environment variables:
1479 CC C compiler command
1480 CFLAGS C compiler flags
1481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482 nonstandard directory <lib dir>
1483 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CXX C++ compiler command
1486 CXXFLAGS C++ compiler flags
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1492 Report bugs to <http://llvm.org/bugs/>.
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" || continue
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1520 .) # We are building in place.
1522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
1525 ac_srcdir=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1544 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 cd "$ac_pwd" || { ac_status=$?; break; }
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1553 LLVM configure 3.7.0svn
1554 generated by GNU Autoconf 2.60
1556 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1557 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1561 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1569 It was created by LLVM $as_me 3.7.0svn, which was
1570 generated by GNU Autoconf 2.60. Invocation command line was
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1591 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1595 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir=.
1606 echo "PATH: $as_dir"
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_must_keep_next=false
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1641 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1644 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1646 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647 if test $ac_must_keep_next = true; then
1648 ac_must_keep_next=false # Got value, back to normal.
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1659 -* ) ac_must_keep_next=true ;;
1662 ac_configure_args="$ac_configure_args '$ac_arg'"
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log. We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1686 # The following way of writing the cache mishandles newlines in values,
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1693 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1697 _ | IFS | as_nl) ;; #(
1698 *) $as_unset $ac_var ;;
1703 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704 *${as_nl}ac_space=\ *)
1706 "s/'\''/'\''\\\\'\'''\''/g;
1707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1718 ## ----------------- ##
1719 ## Output variables. ##
1720 ## ----------------- ##
1723 for ac_var in $ac_subst_vars
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1733 if test -n "$ac_subst_files"; then
1735 ## ------------------- ##
1736 ## File substitutions. ##
1737 ## ------------------- ##
1740 for ac_var in $ac_subst_files
1742 eval ac_val=\$$ac_var
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 echo "$ac_var='\''$ac_val'\''"
1751 if test -s confdefs.h; then
1761 test "$ac_signal" != 0 &&
1762 echo "$as_me: caught signal $ac_signal"
1763 echo "$as_me: exit $exit_status"
1765 rm -f core *.core core.conftest.* &&
1766 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1769 for ac_signal in 1 2 13 15; do
1770 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1774 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1775 rm -f -r conftest* confdefs.h
1777 # Predefined preprocessor variables.
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_NAME "$PACKAGE_NAME"
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804 # Let the site file select an alternate cache file if it wants to.
1805 # Prefer explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807 set x "$CONFIG_SITE"
1808 elif test "x$prefix" != xNONE; then
1809 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1811 set x "$ac_default_prefix/share/config.site" \
1812 "$ac_default_prefix/etc/config.site"
1817 if test -r "$ac_site_file"; then
1818 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 echo "$as_me: loading site script $ac_site_file" >&6;}
1820 sed 's/^/| /' "$ac_site_file" >&5
1825 if test -r "$cache_file"; then
1826 # Some versions of bash will fail to source /dev/null (special
1827 # files actually), so we avoid doing that.
1828 if test -f "$cache_file"; then
1829 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 echo "$as_me: loading cache $cache_file" >&6;}
1832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833 *) . "./$cache_file";;
1837 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 echo "$as_me: creating cache $cache_file" >&6;}
1842 # Check that the precious variables saved in the cache have kept the same
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847 eval ac_new_set=\$ac_env_${ac_var}_set
1848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849 eval ac_new_val=\$ac_env_${ac_var}_value
1850 case $ac_old_set,$ac_new_set in
1852 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1856 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1861 if test "x$ac_old_val" != "x$ac_new_val"; then
1862 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1865 echo "$as_me: former value: $ac_old_val" >&2;}
1866 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1867 echo "$as_me: current value: $ac_new_val" >&2;}
1868 ac_cache_corrupted=:
1871 # Pass precious variables to config.status.
1872 if test "$ac_new_set" = set; then
1874 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 *) ac_arg=$ac_var=$ac_new_val ;;
1877 case " $ac_configure_args " in
1878 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1879 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883 if $ac_cache_corrupted; then
1884 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888 { (exit 1); exit 1; }; }
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923 LLVM_VERSION_MAJOR=3
1924 LLVM_VERSION_MINOR=7
1925 LLVM_VERSION_PATCH=0
1926 LLVM_VERSION_SUFFIX=svn
1929 cat >>confdefs.h <<_ACEOF
1930 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1934 cat >>confdefs.h <<_ACEOF
1935 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1939 cat >>confdefs.h <<_ACEOF
1940 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1944 cat >>confdefs.h <<_ACEOF
1945 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1954 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1963 for ac_dir in autoconf "$srcdir"/autoconf; do
1964 if test -f "$ac_dir/install-sh"; then
1966 ac_install_sh="$ac_aux_dir/install-sh -c"
1968 elif test -f "$ac_dir/install.sh"; then
1970 ac_install_sh="$ac_aux_dir/install.sh -c"
1972 elif test -f "$ac_dir/shtool"; then
1974 ac_install_sh="$ac_aux_dir/shtool install -c"
1978 if test -z "$ac_aux_dir"; then
1979 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1980 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1981 { (exit 1); exit 1; }; }
1984 # These three variables are undocumented and unsupported,
1985 # and are intended to be withdrawn in a future Autoconf release.
1986 # They can cause serious problems if a builder's source tree is in a directory
1987 # whose full name contains unusual characters.
1988 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1989 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1990 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1994 if test ${srcdir} != "." ; then
1995 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1996 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1997 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1998 { (exit 1); exit 1; }; }
2006 ac_cpp='$CPP $CPPFLAGS'
2007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010 if test -n "$ac_tool_prefix"; then
2011 for ac_prog in clang gcc
2013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2030 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 if test -n "$CC"; then
2042 { echo "$as_me:$LINENO: result: $CC" >&5
2043 echo "${ECHO_T}$CC" >&6; }
2045 { echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6; }
2050 test -n "$CC" && break
2053 if test -z "$CC"; then
2055 for ac_prog in clang gcc
2057 # Extract the first word of "$ac_prog", so it can be a program name with args.
2058 set dummy $ac_prog; ac_word=$2
2059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 if test -n "$ac_ct_CC"; then
2065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2074 ac_cv_prog_ac_ct_CC="$ac_prog"
2075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085 if test -n "$ac_ct_CC"; then
2086 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087 echo "${ECHO_T}$ac_ct_CC" >&6; }
2089 { echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6; }
2094 test -n "$ac_ct_CC" && break
2097 if test "x$ac_ct_CC" = x; then
2100 case $cross_compiling:$ac_tool_warned in
2102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2103 whose name does not start with the host triplet. If you think this
2104 configuration is useful to you, please write to autoconf@gnu.org." >&5
2105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2106 whose name does not start with the host triplet. If you think this
2107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2108 ac_tool_warned=yes ;;
2115 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2121 # Provide some information about the compiler.
2122 echo "$as_me:$LINENO: checking for C compiler version" >&5
2123 ac_compiler=`set X $ac_compile; echo $2`
2124 { (ac_try="$ac_compiler --version >&5"
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130 (eval "$ac_compiler --version >&5") 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134 { (ac_try="$ac_compiler -v >&5"
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140 (eval "$ac_compiler -v >&5") 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144 { (ac_try="$ac_compiler -V >&5"
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150 (eval "$ac_compiler -V >&5") 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2155 cat >conftest.$ac_ext <<_ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2170 ac_clean_files_save=$ac_clean_files
2171 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2172 # Try to create an executable without -o first, disregard a.out.
2173 # It will help us diagnose broken compilers, and finding out an intuition
2175 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2177 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2179 # List of possible output files, starting from the most likely.
2180 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2181 # only as a last resort. b.out is created by i960 compilers.
2182 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2184 # The IRIX 6 linker writes into existing files which may not be
2185 # executable, retaining their permissions. Remove them first so a
2186 # subsequent execution test works.
2188 for ac_file in $ac_files
2191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2197 if { (ac_try="$ac_link_default"
2199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200 *) ac_try_echo=$ac_try;;
2202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2203 (eval "$ac_link_default") 2>&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; then
2207 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2208 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2209 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2210 # so that the user can short-circuit this test for compilers unknown to
2212 for ac_file in $ac_files
2214 test -f "$ac_file" || continue
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2219 # We found the default executable, but exeext='' is most
2223 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2225 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227 # We set ac_cv_exeext here because the later test for it is not
2228 # safe: cross compilers may not add the suffix if given an `-o'
2229 # argument, so we may need to know it at that point already.
2230 # Even if this section looks crufty: it has the advantage of
2237 test "$ac_cv_exeext" = no && ac_cv_exeext=
2240 echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2243 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: C compiler cannot create executables
2246 See \`config.log' for more details." >&2;}
2247 { (exit 77); exit 77; }; }
2250 ac_exeext=$ac_cv_exeext
2251 { echo "$as_me:$LINENO: result: $ac_file" >&5
2252 echo "${ECHO_T}$ac_file" >&6; }
2254 # Check that the compiler produces executables we can run. If not, either
2255 # the compiler is broken, or we cross compile.
2256 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2257 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2258 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2259 # If not cross compiling, check that we can run a simple program.
2260 if test "$cross_compiling" != yes; then
2261 if { ac_try='./$ac_file'
2262 { (case "(($ac_try" in
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267 (eval "$ac_try") 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; }; then
2273 if test "$cross_compiling" = maybe; then
2276 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2277 If you meant to cross compile, use \`--host'.
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot run C compiled programs.
2280 If you meant to cross compile, use \`--host'.
2281 See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
2286 { echo "$as_me:$LINENO: result: yes" >&5
2287 echo "${ECHO_T}yes" >&6; }
2289 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2290 ac_clean_files=$ac_clean_files_save
2291 # Check that the compiler produces executables we can run. If not, either
2292 # the compiler is broken, or we cross compile.
2293 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2294 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2295 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2296 echo "${ECHO_T}$cross_compiling" >&6; }
2298 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2299 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2300 if { (ac_try="$ac_link"
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306 (eval "$ac_link") 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; then
2310 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2311 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2312 # work properly (i.e., refer to `conftest.exe'), while it won't with
2314 for ac_file in conftest.exe conftest conftest.*; do
2315 test -f "$ac_file" || continue
2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2318 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2324 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2327 See \`config.log' for more details." >&2;}
2328 { (exit 1); exit 1; }; }
2331 rm -f conftest$ac_cv_exeext
2332 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2333 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2335 rm -f conftest.$ac_ext
2336 EXEEXT=$ac_cv_exeext
2338 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2339 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2340 if test "${ac_cv_objext+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 cat >conftest.$ac_ext <<_ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h. */
2358 rm -f conftest.o conftest.obj
2359 if { (ac_try="$ac_compile"
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365 (eval "$ac_compile") 2>&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; then
2369 for ac_file in conftest.o conftest.obj conftest.*; do
2370 test -f "$ac_file" || continue;
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2373 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2381 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&5
2383 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2384 See \`config.log' for more details." >&2;}
2385 { (exit 1); exit 1; }; }
2388 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2390 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2391 echo "${ECHO_T}$ac_cv_objext" >&6; }
2392 OBJEXT=$ac_cv_objext
2394 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2395 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2396 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 cat >conftest.$ac_ext <<_ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2417 rm -f conftest.$ac_objext
2418 if { (ac_try="$ac_compile"
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_compile") 2>conftest.er1
2426 grep -v '^ *+' conftest.er1 >conftest.err
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2432 { (case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_try") 2>&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_try") 2>&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2463 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2464 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2465 GCC=`test $ac_compiler_gnu = yes && echo yes`
2466 ac_test_CFLAGS=${CFLAGS+set}
2467 ac_save_CFLAGS=$CFLAGS
2468 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2469 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_cc_g+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 ac_save_c_werror_flag=$ac_c_werror_flag
2474 ac_c_werror_flag=yes
2477 cat >conftest.$ac_ext <<_ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2492 rm -f conftest.$ac_objext
2493 if { (ac_try="$ac_compile"
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_compile") 2>conftest.er1
2501 grep -v '^ *+' conftest.er1 >conftest.err
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2507 { (case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_try") 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2532 cat >conftest.$ac_ext <<_ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2547 rm -f conftest.$ac_objext
2548 if { (ac_try="$ac_compile"
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554 (eval "$ac_compile") 2>conftest.er1
2556 grep -v '^ *+' conftest.er1 >conftest.err
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2562 { (case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_try") 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2586 ac_c_werror_flag=$ac_save_c_werror_flag
2588 cat >conftest.$ac_ext <<_ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h. */
2603 rm -f conftest.$ac_objext
2604 if { (ac_try="$ac_compile"
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2610 (eval "$ac_compile") 2>conftest.er1
2612 grep -v '^ *+' conftest.er1 >conftest.err
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2618 { (case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_try") 2>&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
2628 { (case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633 (eval "$ac_try") 2>&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652 ac_c_werror_flag=$ac_save_c_werror_flag
2654 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2655 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2656 if test "$ac_test_CFLAGS" = set; then
2657 CFLAGS=$ac_save_CFLAGS
2658 elif test $ac_cv_prog_cc_g = yes; then
2659 if test "$GCC" = yes; then
2665 if test "$GCC" = yes; then
2671 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2672 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2673 if test "${ac_cv_prog_cc_c89+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 ac_cv_prog_cc_c89=no
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2686 #include <sys/types.h>
2687 #include <sys/stat.h>
2688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2689 struct buf { int x; };
2690 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2691 static char *e (p, i)
2697 static char *f (char * (*g) (char **, int), char **p, ...)
2702 s = g (p, va_arg (v,int));
2707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2708 function prototypes and stuff, but not '\xHH' hex character constants.
2709 These don't provoke an error unfortunately, instead are silently treated
2710 as 'x'. The following induces an error, until -std is added to get
2711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2712 array size at least. It's necessary to write '\x00'==0 to get something
2713 that's true only with -std. */
2714 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2716 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2717 inside strings and character constants. */
2719 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2721 int test (int i, double x);
2722 struct s1 {int (*f) (int a);};
2723 struct s2 {int (*f) (double a);};
2724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2735 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2736 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2738 CC="$ac_save_CC $ac_arg"
2739 rm -f conftest.$ac_objext
2740 if { (ac_try="$ac_compile"
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compile") 2>conftest.er1
2748 grep -v '^ *+' conftest.er1 >conftest.err
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2754 { (case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_try") 2>&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_try") 2>&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2773 ac_cv_prog_cc_c89=$ac_arg
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2781 rm -f core conftest.err conftest.$ac_objext
2782 test "x$ac_cv_prog_cc_c89" != "xno" && break
2784 rm -f conftest.$ac_ext
2789 case "x$ac_cv_prog_cc_c89" in
2791 { echo "$as_me:$LINENO: result: none needed" >&5
2792 echo "${ECHO_T}none needed" >&6; } ;;
2794 { echo "$as_me:$LINENO: result: unsupported" >&5
2795 echo "${ECHO_T}unsupported" >&6; } ;;
2797 CC="$CC $ac_cv_prog_cc_c89"
2798 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2799 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2810 ac_cpp='$CXXCPP $CPPFLAGS'
2811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2814 if test -z "$CXX"; then
2815 if test -n "$CCC"; then
2818 if test -n "$ac_tool_prefix"; then
2819 for ac_prog in clang++ g++
2821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825 if test "${ac_cv_prog_CXX+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 if test -n "$CXX"; then
2829 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 if test -n "$CXX"; then
2850 { echo "$as_me:$LINENO: result: $CXX" >&5
2851 echo "${ECHO_T}$CXX" >&6; }
2853 { echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6; }
2858 test -n "$CXX" && break
2861 if test -z "$CXX"; then
2863 for ac_prog in clang++ g++
2865 # Extract the first word of "$ac_prog", so it can be a program name with args.
2866 set dummy $ac_prog; ac_word=$2
2867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2869 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 if test -n "$ac_ct_CXX"; then
2873 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 ac_cv_prog_ac_ct_CXX="$ac_prog"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2893 if test -n "$ac_ct_CXX"; then
2894 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2895 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2897 { echo "$as_me:$LINENO: result: no" >&5
2898 echo "${ECHO_T}no" >&6; }
2902 test -n "$ac_ct_CXX" && break
2905 if test "x$ac_ct_CXX" = x; then
2908 case $cross_compiling:$ac_tool_warned in
2910 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2911 whose name does not start with the host triplet. If you think this
2912 configuration is useful to you, please write to autoconf@gnu.org." >&5
2913 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2914 whose name does not start with the host triplet. If you think this
2915 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2916 ac_tool_warned=yes ;;
2924 # Provide some information about the compiler.
2925 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2926 ac_compiler=`set X $ac_compile; echo $2`
2927 { (ac_try="$ac_compiler --version >&5"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compiler --version >&5") 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937 { (ac_try="$ac_compiler -v >&5"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compiler -v >&5") 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2947 { (ac_try="$ac_compiler -V >&5"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compiler -V >&5") 2>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2958 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2959 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2960 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 cat >conftest.$ac_ext <<_ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2981 rm -f conftest.$ac_objext
2982 if { (ac_try="$ac_compile"
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>conftest.er1
2990 grep -v '^ *+' conftest.er1 >conftest.err
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } &&
2995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2996 { (case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_try") 2>&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; } &&
3005 { ac_try='test -s conftest.$ac_objext'
3006 { (case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_try") 2>&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3027 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3028 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3029 GXX=`test $ac_compiler_gnu = yes && echo yes`
3030 ac_test_CXXFLAGS=${CXXFLAGS+set}
3031 ac_save_CXXFLAGS=$CXXFLAGS
3032 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3033 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3034 if test "${ac_cv_prog_cxx_g+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3038 ac_cxx_werror_flag=yes
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 ac_cv_prog_cxx_g=yes
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3096 cat >conftest.$ac_ext <<_ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3111 rm -f conftest.$ac_objext
3112 if { (ac_try="$ac_compile"
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_compile") 2>conftest.er1
3120 grep -v '^ *+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } &&
3125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3152 cat >conftest.$ac_ext <<_ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3167 rm -f conftest.$ac_objext
3168 if { (ac_try="$ac_compile"
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_compile") 2>conftest.er1
3176 grep -v '^ *+' conftest.er1 >conftest.err
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 ac_cv_prog_cxx_g=yes
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3218 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3219 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3220 if test "$ac_test_CXXFLAGS" = set; then
3221 CXXFLAGS=$ac_save_CXXFLAGS
3222 elif test $ac_cv_prog_cxx_g = yes; then
3223 if test "$GXX" = yes; then
3229 if test "$GXX" = yes; then
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3247 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3248 # On Suns, sometimes $CPP names a directory.
3249 if test -n "$CPP" && test -d "$CPP"; then
3252 if test -z "$CPP"; then
3253 if test "${ac_cv_prog_CPP+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 # Double quotes because CPP needs to be expanded
3257 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3260 for ac_c_preproc_warn_flag in '' yes
3262 # Use a header file that comes with gcc, so configuring glibc
3263 # with a fresh cross-compiler works.
3264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3265 # <limits.h> exists even on freestanding compilers.
3266 # On the NeXT, cc -E runs the code through the compiler's parser,
3267 # not just through cpp. "Syntax error" is here to catch this case.
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3275 # include <limits.h>
3277 # include <assert.h>
3281 if { (ac_try="$ac_cpp conftest.$ac_ext"
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3289 grep -v '^ *+' conftest.er1 >conftest.err
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } >/dev/null; then
3294 if test -s conftest.err; then
3295 ac_cpp_err=$ac_c_preproc_warn_flag
3296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303 if test -z "$ac_cpp_err"; then
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 # Broken: fails on valid input.
3313 rm -f conftest.err conftest.$ac_ext
3315 # OK, works on sane cases. Now check whether nonexistent headers
3316 # can be detected and how.
3317 cat >conftest.$ac_ext <<_ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3323 #include <ac_nonexistent.h>
3325 if { (ac_try="$ac_cpp conftest.$ac_ext"
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3333 grep -v '^ *+' conftest.er1 >conftest.err
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } >/dev/null; then
3338 if test -s conftest.err; then
3339 ac_cpp_err=$ac_c_preproc_warn_flag
3340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3347 if test -z "$ac_cpp_err"; then
3348 # Broken: success on invalid input.
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 # Passes both tests.
3359 rm -f conftest.err conftest.$ac_ext
3362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3363 rm -f conftest.err conftest.$ac_ext
3364 if $ac_preproc_ok; then
3376 { echo "$as_me:$LINENO: result: $CPP" >&5
3377 echo "${ECHO_T}$CPP" >&6; }
3379 for ac_c_preproc_warn_flag in '' yes
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
3383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
3385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
3387 cat >conftest.$ac_ext <<_ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3394 # include <limits.h>
3396 # include <assert.h>
3400 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408 grep -v '^ *+' conftest.er1 >conftest.err
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
3415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422 if test -z "$ac_cpp_err"; then
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 # Broken: fails on valid input.
3432 rm -f conftest.err conftest.$ac_ext
3434 # OK, works on sane cases. Now check whether nonexistent headers
3435 # can be detected and how.
3436 cat >conftest.$ac_ext <<_ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #include <ac_nonexistent.h>
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3466 if test -z "$ac_cpp_err"; then
3467 # Broken: success on invalid input.
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 # Passes both tests.
3478 rm -f conftest.err conftest.$ac_ext
3481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482 rm -f conftest.err conftest.$ac_ext
3483 if $ac_preproc_ok; then
3486 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&5
3488 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3489 See \`config.log' for more details." >&2;}
3490 { (exit 1); exit 1; }; }
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 if test "$CXX" = "clang++" ; then
3501 { echo "$as_me:$LINENO: checking whether clang works" >&5
3502 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3504 ac_cpp='$CXXCPP $CPPFLAGS'
3505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3510 cat >conftest.$ac_ext <<_ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3517 #if __has_include (<cxxabi.h>)
3520 #if __has_include (<unwind.h>)
3532 rm -f conftest.$ac_objext
3533 if { (ac_try="$ac_compile"
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_compile") 2>conftest.er1
3541 grep -v '^ *+' conftest.er1 >conftest.err
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3547 { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_try") 2>&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; } &&
3556 { ac_try='test -s conftest.$ac_objext'
3557 { (case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_try") 2>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3567 { echo "$as_me:$LINENO: result: yes" >&5
3568 echo "${ECHO_T}yes" >&6; }
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3575 { echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6; }
3577 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3578 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3579 { (exit 1); exit 1; }; }
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_cpp='$CPP $CPPFLAGS'
3586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3592 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3593 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3595 ac_cpp='$CXXCPP $CPPFLAGS'
3596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3600 llvm_cv_cxx_compiler=unknown
3601 cat >conftest.$ac_ext <<_ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_compile") 2>conftest.er1
3621 grep -v '^ *+' conftest.er1 >conftest.err
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3627 { (case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_try") 2>&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; } &&
3636 { ac_try='test -s conftest.$ac_objext'
3637 { (case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_try") 2>&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 llvm_cv_cxx_compiler=clang
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3651 cat >conftest.$ac_ext <<_ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3662 rm -f conftest.$ac_objext
3663 if { (ac_try="$ac_compile"
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_compile") 2>conftest.er1
3671 grep -v '^ *+' conftest.er1 >conftest.err
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3677 { (case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_try") 2>&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; } &&
3686 { ac_try='test -s conftest.$ac_objext'
3687 { (case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_try") 2>&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; }; then
3696 llvm_cv_cxx_compiler=gcc
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3715 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3719 if test -d ${srcdir}/projects/test-suite ; then
3720 subdirs="$subdirs projects/test-suite"
3724 if test -d ${srcdir}/projects/llvm-test ; then
3725 subdirs="$subdirs projects/llvm-test"
3729 if test -d ${srcdir}/projects/poolalloc ; then
3730 subdirs="$subdirs projects/poolalloc"
3734 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3735 subdirs="$subdirs projects/llvm-poolalloc"
3739 for i in `ls ${srcdir}/projects`
3741 if test -d ${srcdir}/projects/${i} ; then
3743 safecode) subdirs="$subdirs projects/safecode"
3751 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3752 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3758 # Check whether --enable-polly was given.
3759 if test "${enable_polly+set}" = set; then
3760 enableval=$enable_polly;
3765 case "$enableval" in
3770 default) ENABLE_POLLY=1
3772 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3773 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3774 { (exit 1); exit 1; }; } ;;
3778 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3781 subdirs="$subdirs tools/polly"
3786 # Make sure we can run config.sub.
3787 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3788 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3789 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3790 { (exit 1); exit 1; }; }
3792 { echo "$as_me:$LINENO: checking build system type" >&5
3793 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3794 if test "${ac_cv_build+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 ac_build_alias=$build_alias
3798 test "x$ac_build_alias" = x &&
3799 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3800 test "x$ac_build_alias" = x &&
3801 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3802 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3803 { (exit 1); exit 1; }; }
3804 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3805 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3806 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3807 { (exit 1); exit 1; }; }
3810 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3811 echo "${ECHO_T}$ac_cv_build" >&6; }
3812 case $ac_cv_build in
3814 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3815 echo "$as_me: error: invalid value of canonical build" >&2;}
3816 { (exit 1); exit 1; }; };;
3819 ac_save_IFS=$IFS; IFS='-'
3825 # Remember, the first character of IFS is used to create $*,
3826 # except with old shells:
3829 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3832 { echo "$as_me:$LINENO: checking host system type" >&5
3833 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3834 if test "${ac_cv_host+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 if test "x$host_alias" = x; then
3838 ac_cv_host=$ac_cv_build
3840 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3841 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3842 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3843 { (exit 1); exit 1; }; }
3847 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3848 echo "${ECHO_T}$ac_cv_host" >&6; }
3851 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3852 echo "$as_me: error: invalid value of canonical host" >&2;}
3853 { (exit 1); exit 1; }; };;
3856 ac_save_IFS=$IFS; IFS='-'
3862 # Remember, the first character of IFS is used to create $*,
3863 # except with old shells:
3866 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3869 { echo "$as_me:$LINENO: checking target system type" >&5
3870 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3871 if test "${ac_cv_target+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 if test "x$target_alias" = x; then
3875 ac_cv_target=$ac_cv_host
3877 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3878 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3879 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3880 { (exit 1); exit 1; }; }
3884 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3885 echo "${ECHO_T}$ac_cv_target" >&6; }
3886 case $ac_cv_target in
3888 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3889 echo "$as_me: error: invalid value of canonical target" >&2;}
3890 { (exit 1); exit 1; }; };;
3892 target=$ac_cv_target
3893 ac_save_IFS=$IFS; IFS='-'
3899 # Remember, the first character of IFS is used to create $*,
3900 # except with old shells:
3903 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3906 # The aliases save the names the user supplied, while $host etc.
3907 # will get canonicalized.
3908 test -n "$target_alias" &&
3909 test "$program_prefix$program_suffix$program_transform_name" = \
3911 program_prefix=${target_alias}-
3913 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3914 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3915 if test "${llvm_cv_os_type+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 llvm_cv_link_all_option="-Wl,--whole-archive"
3921 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3922 llvm_cv_os_type="AIX"
3923 llvm_cv_platform_type="Unix" ;;
3925 llvm_cv_link_all_option="-Wl,--whole-archive"
3926 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3927 llvm_cv_os_type="IRIX"
3928 llvm_cv_platform_type="Unix" ;;
3930 llvm_cv_link_all_option="-Wl,--whole-archive"
3931 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3932 llvm_cv_os_type="Cygwin"
3933 llvm_cv_platform_type="Unix" ;;
3935 llvm_cv_link_all_option="-Wl,-all_load"
3936 llvm_cv_no_link_all_option="-Wl,-noall_load"
3937 llvm_cv_os_type="Darwin"
3938 llvm_cv_platform_type="Unix" ;;
3940 llvm_cv_link_all_option="-Wl,-all_load"
3941 llvm_cv_no_link_all_option="-Wl,-noall_load"
3942 llvm_cv_os_type="Minix"
3943 llvm_cv_platform_type="Unix" ;;
3945 llvm_cv_link_all_option="-Wl,--whole-archive"
3946 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3947 llvm_cv_os_type="FreeBSD"
3948 llvm_cv_platform_type="Unix" ;;
3950 llvm_cv_link_all_option="-Wl,--whole-archive"
3951 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952 llvm_cv_os_type="GNU/kFreeBSD"
3953 llvm_cv_platform_type="Unix" ;;
3955 llvm_cv_link_all_option="-Wl,--whole-archive"
3956 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957 llvm_cv_os_type="OpenBSD"
3958 llvm_cv_platform_type="Unix" ;;
3960 llvm_cv_link_all_option="-Wl,--whole-archive"
3961 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962 llvm_cv_os_type="NetBSD"
3963 llvm_cv_platform_type="Unix" ;;
3965 llvm_cv_link_all_option="-Wl,--whole-archive"
3966 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967 llvm_cv_os_type="DragonFly"
3968 llvm_cv_platform_type="Unix" ;;
3970 llvm_cv_link_all_option="-Wl,--whole-archive"
3971 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972 llvm_cv_os_type="HP-UX"
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="Interix"
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="Linux"
3983 llvm_cv_platform_type="Unix" ;;
3985 llvm_cv_link_all_option="-Wl,--whole-archive"
3986 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987 llvm_cv_os_type="GNU"
3988 llvm_cv_platform_type="Unix" ;;
3990 llvm_cv_link_all_option="-Wl,-z,allextract"
3991 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3992 llvm_cv_os_type="SunOS"
3993 llvm_cv_platform_type="Unix" ;;
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="Win32"
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="MingW"
4003 llvm_cv_platform_type="Win32" ;;
4005 llvm_cv_link_all_option="-Wl,--whole-archive"
4006 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007 llvm_cv_os_type="Haiku"
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="-Wl,--whole-archive"
4016 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017 llvm_cv_os_type="Freestanding"
4018 llvm_cv_platform_type="Unix" ;;
4020 llvm_cv_link_all_option=""
4021 llvm_cv_no_link_all_option=""
4022 llvm_cv_os_type="Unknown"
4023 llvm_cv_platform_type="Unknown" ;;
4026 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4027 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4029 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4030 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4031 if test "${llvm_cv_target_os_type+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 llvm_cv_target_os_type="AIX" ;;
4038 llvm_cv_target_os_type="IRIX" ;;
4040 llvm_cv_target_os_type="Cygwin" ;;
4042 llvm_cv_target_os_type="Darwin" ;;
4044 llvm_cv_target_os_type="Minix" ;;
4046 llvm_cv_target_os_type="FreeBSD" ;;
4048 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4050 llvm_cv_target_os_type="OpenBSD" ;;
4052 llvm_cv_target_os_type="NetBSD" ;;
4054 llvm_cv_target_os_type="DragonFly" ;;
4056 llvm_cv_target_os_type="HP-UX" ;;
4058 llvm_cv_target_os_type="Interix" ;;
4060 llvm_cv_target_os_type="Linux" ;;
4062 llvm_cv_target_os_type="GNU" ;;
4064 llvm_cv_target_os_type="SunOS" ;;
4066 llvm_cv_target_os_type="Win32" ;;
4068 llvm_cv_target_os_type="MingW" ;;
4070 llvm_cv_target_os_type="Haiku" ;;
4072 llvm_cv_target_os_type="RTEMS" ;;
4074 llvm_cv_target_os_type="NativeClient" ;;
4076 llvm_cv_target_os_type="Freestanding" ;;
4078 llvm_cv_target_os_type="PS4" ;;
4080 llvm_cv_target_os_type="Unknown" ;;
4083 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4084 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4086 if test "$llvm_cv_os_type" = "Unknown" ; then
4087 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4088 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4089 { (exit 1); exit 1; }; }
4094 HOST_OS=$llvm_cv_os_type
4096 TARGET_OS=$llvm_cv_target_os_type
4099 LINKALL=$llvm_cv_link_all_option
4101 NOLINKALL=$llvm_cv_no_link_all_option
4104 case $llvm_cv_platform_type in
4107 cat >>confdefs.h <<\_ACEOF
4108 #define LLVM_ON_UNIX 1
4118 cat >>confdefs.h <<\_ACEOF
4119 #define LLVM_ON_WIN32 1
4129 { echo "$as_me:$LINENO: checking target architecture" >&5
4130 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4131 if test "${llvm_cv_target_arch+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 i?86-*) llvm_cv_target_arch="x86" ;;
4136 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4137 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4138 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4139 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4140 arm*-*) llvm_cv_target_arch="ARM" ;;
4141 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4142 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4143 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4144 xcore-*) llvm_cv_target_arch="XCore" ;;
4145 msp430-*) llvm_cv_target_arch="MSP430" ;;
4146 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4147 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4148 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4149 *) llvm_cv_target_arch="Unknown" ;;
4152 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4153 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4155 if test "$llvm_cv_target_arch" = "Unknown" ; then
4156 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4157 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4160 case "$llvm_cv_target_arch" in
4161 x86) LLVM_NATIVE_ARCH="X86" ;;
4162 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4163 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4166 ARCH=$llvm_cv_target_arch
4168 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4172 i?86-*) host_arch="x86" ;;
4173 amd64-* | x86_64-*) host_arch="x86_64" ;;
4174 sparc*-*) host_arch="Sparc" ;;
4175 powerpc*-*) host_arch="PowerPC" ;;
4176 arm64*-*) host_arch="AArch64" ;;
4177 arm*-*) host_arch="ARM" ;;
4178 aarch64*-*) host_arch="AArch64" ;;
4179 mips-* | mips64-*) host_arch="Mips" ;;
4180 mipsel-* | mips64el-*) host_arch="Mips" ;;
4181 xcore-*) host_arch="XCore" ;;
4182 msp430-*) host_arch="MSP430" ;;
4183 hexagon-*) host_arch="Hexagon" ;;
4184 s390x-*) host_arch="SystemZ" ;;
4185 *) host_arch="Unknown" ;;
4188 if test "$host_arch" = "Unknown" ; then
4189 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4190 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4193 HOST_ARCH=$host_arch
4196 if test "$cross_compiling" = yes; then
4197 LLVM_CROSS_COMPILING=1
4200 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4201 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4202 if test "${ac_cv_build_exeext+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4206 ac_cv_build_exeext=.exe
4208 ac_build_prefix=${build_alias}-
4210 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4211 set dummy ${ac_build_prefix}gcc; ac_word=$2
4212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4214 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 if test -n "$BUILD_CC"; then
4218 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4227 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 BUILD_CC=$ac_cv_prog_BUILD_CC
4238 if test -n "$BUILD_CC"; then
4239 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4240 echo "${ECHO_T}$BUILD_CC" >&6; }
4242 { echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6; }
4247 if test -z "$BUILD_CC"; then
4248 # Extract the first word of "gcc", so it can be a program name with args.
4249 set dummy gcc; ac_word=$2
4250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4252 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 if test -n "$BUILD_CC"; then
4256 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 test -z "$as_dir" && as_dir=.
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4265 ac_cv_prog_BUILD_CC="gcc"
4266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 BUILD_CC=$ac_cv_prog_BUILD_CC
4276 if test -n "$BUILD_CC"; then
4277 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4278 echo "${ECHO_T}$BUILD_CC" >&6; }
4280 { echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6; }
4285 if test -z "$BUILD_CC"; then
4286 # Extract the first word of "cc", so it can be a program name with args.
4287 set dummy cc; ac_word=$2
4288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4290 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 if test -n "$BUILD_CC"; then
4294 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 test -z "$as_dir" && as_dir=.
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4304 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4305 ac_prog_rejected=yes
4308 ac_cv_prog_BUILD_CC="cc"
4309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 if test $ac_prog_rejected = yes; then
4317 # We found a bogon in the path, so make sure we never use it.
4318 set dummy $ac_cv_prog_BUILD_CC
4320 if test $# != 0; then
4321 # We chose a different compiler from the bogus one.
4322 # However, it has the same basename, so the bogon will be chosen
4323 # first if we set BUILD_CC to just the basename; use the full file name.
4325 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4330 BUILD_CC=$ac_cv_prog_BUILD_CC
4331 if test -n "$BUILD_CC"; then
4332 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4333 echo "${ECHO_T}$BUILD_CC" >&6; }
4335 { echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6; }
4342 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4343 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4344 { (exit 1); exit 1; }; }
4345 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4347 echo 'int main () { return 0; }' > conftest.$ac_ext
4349 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4350 (eval $ac_build_link) 2>&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; then
4354 for file in conftest.*; do
4356 *.c | *.o | *.obj | *.dSYM) ;;
4357 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4361 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4362 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4363 { (exit 1); exit 1; }; }
4366 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4371 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4372 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4373 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4374 ac_build_exeext=$BUILD_EXEEXT
4376 ac_build_prefix=${build_alias}-
4377 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4378 set dummy ${ac_build_prefix}g++; ac_word=$2
4379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4381 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 if test -n "$BUILD_CXX"; then
4385 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4405 if test -n "$BUILD_CXX"; then
4406 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4407 echo "${ECHO_T}$BUILD_CXX" >&6; }
4409 { echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6; }
4414 if test -z "$BUILD_CXX"; then
4415 # Extract the first word of "g++", so it can be a program name with args.
4416 set dummy g++; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 if test -n "$BUILD_CXX"; then
4423 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4432 ac_cv_prog_BUILD_CXX="g++"
4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4443 if test -n "$BUILD_CXX"; then
4444 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4445 echo "${ECHO_T}$BUILD_CXX" >&6; }
4447 { echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6; }
4452 if test -z "$BUILD_CXX"; then
4453 # Extract the first word of "c++", so it can be a program name with args.
4454 set dummy c++; ac_word=$2
4455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4457 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 if test -n "$BUILD_CXX"; then
4461 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4472 ac_prog_rejected=yes
4475 ac_cv_prog_BUILD_CXX="c++"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 if test $ac_prog_rejected = yes; then
4484 # We found a bogon in the path, so make sure we never use it.
4485 set dummy $ac_cv_prog_BUILD_CXX
4487 if test $# != 0; then
4488 # We chose a different compiler from the bogus one.
4489 # However, it has the same basename, so the bogon will be chosen
4490 # first if we set BUILD_CXX to just the basename; use the full file name.
4492 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4497 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4498 if test -n "$BUILD_CXX"; then
4499 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4500 echo "${ECHO_T}$BUILD_CXX" >&6; }
4502 { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4510 LLVM_CROSS_COMPILING=0
4514 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4525 # Check whether --enable-libcpp was given.
4526 if test "${enable_libcpp+set}" = set; then
4527 enableval=$enable_libcpp;
4532 case "$enableval" in
4533 yes) ENABLE_LIBCPP=1
4537 default) ENABLE_LIBCPP=0
4539 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4540 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4541 { (exit 1); exit 1; }; } ;;
4544 # Check whether --enable-compiler-version-checks was given.
4545 if test "${enable_compiler_version_checks+set}" = set; then
4546 enableval=$enable_compiler_version_checks;
4551 case "$enableval" in
4556 ac_cpp='$CXXCPP $CPPFLAGS'
4557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4561 case "$llvm_cv_cxx_compiler" in
4563 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4564 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4565 cat >conftest.$ac_ext <<_ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4572 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4573 #error This version of Clang is too old to build LLVM
4577 rm -f conftest.$ac_objext
4578 if { (ac_try="$ac_compile"
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_compile") 2>conftest.er1
4586 grep -v '^ *+' conftest.er1 >conftest.err
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4592 { (case "(($ac_try" in
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_try") 2>&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; } &&
4601 { ac_try='test -s conftest.$ac_objext'
4602 { (case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607 (eval "$ac_try") 2>&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 { echo "$as_me:$LINENO: result: yes" >&5
4612 echo "${ECHO_T}yes" >&6; }
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4617 { echo "$as_me:$LINENO: result: no" >&5
4618 echo "${ECHO_T}no" >&6; }
4619 { { echo "$as_me:$LINENO: error:
4620 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4621 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4622 bypass these sanity checks." >&5
4623 echo "$as_me: error:
4624 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4625 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4626 bypass these sanity checks." >&2;}
4627 { (exit 1); exit 1; }; }
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 if test "$ENABLE_LIBCPP" -eq 0 ; then
4633 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4634 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4635 llvm_cv_old_cxxflags="$CXXFLAGS"
4636 CXXFLAGS="$CXXFLAGS -std=c++0x"
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4645 std::atomic<float> x(0.0f);
4646 int main() { return (float)x; }
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (ac_try="$ac_link"
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656 (eval "$ac_link") 2>conftest.er1
4658 grep -v '^ *+' conftest.er1 >conftest.err
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4664 { (case "(($ac_try" in
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4669 (eval "$ac_try") 2>&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; } &&
4673 { ac_try='test -s conftest$ac_exeext'
4674 { (case "(($ac_try" in
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679 (eval "$ac_try") 2>&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 { echo "$as_me:$LINENO: result: yes" >&5
4684 echo "${ECHO_T}yes" >&6; }
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4689 { echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6; }
4691 { { echo "$as_me:$LINENO: error:
4692 We detected a missing feature in the standard C++ library that was known to be
4693 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4694 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4695 than 4.7. You will need to update your system and ensure Clang uses the newer
4698 If this error is incorrect or you need to force things to work, you may pass
4699 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4700 echo "$as_me: error:
4701 We detected a missing feature in the standard C++ library that was known to be
4702 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4703 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4704 than 4.7. You will need to update your system and ensure Clang uses the newer
4707 If this error is incorrect or you need to force things to work, you may pass
4708 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4709 { (exit 1); exit 1; }; }
4712 rm -f core conftest.err conftest.$ac_objext \
4713 conftest$ac_exeext conftest.$ac_ext
4714 CXXFLAGS="$llvm_cv_old_cxxflags"
4718 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4719 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4727 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4728 #error This version of GCC is too old to build LLVM
4732 rm -f conftest.$ac_objext
4733 if { (ac_try="$ac_compile"
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739 (eval "$ac_compile") 2>conftest.er1
4741 grep -v '^ *+' conftest.er1 >conftest.err
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4747 { (case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4752 (eval "$ac_try") 2>&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; } &&
4756 { ac_try='test -s conftest.$ac_objext'
4757 { (case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_try") 2>&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4766 { echo "$as_me:$LINENO: result: yes" >&5
4767 echo "${ECHO_T}yes" >&6; }
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 { echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6; }
4774 { { echo "$as_me:$LINENO: error:
4775 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4776 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4777 bypass these sanity checks." >&5
4778 echo "$as_me: error:
4779 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4780 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4781 bypass these sanity checks." >&2;}
4782 { (exit 1); exit 1; }; }
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 ac_cpp='$CPP $CPPFLAGS'
4792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4799 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4800 { (exit 1); exit 1; }; }
4804 # Check whether --enable-cxx1y was given.
4805 if test "${enable_cxx1y+set}" = set; then
4806 enableval=$enable_cxx1y;
4811 case "$enableval" in
4816 default) ENABLE_CXX1Y=0
4818 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4819 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4820 { (exit 1); exit 1; }; } ;;
4823 # Check whether --enable-split-dwarf was given.
4824 if test "${enable_split_dwarf+set}" = set; then
4825 enableval=$enable_split_dwarf;
4830 case "$enableval" in
4831 yes) ENABLE_SPLIT_DWARF=1
4833 no) ENABLE_SPLIT_DWARF=0
4835 default) ENABLE_SPLIT_DWARF=0
4837 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4838 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4839 { (exit 1); exit 1; }; } ;;
4843 # Check whether --enable-clang-arcmt was given.
4844 if test "${enable_clang_arcmt+set}" = set; then
4845 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4850 case "$enableval" in
4851 yes) ENABLE_CLANG_ARCMT=1
4853 no) ENABLE_CLANG_ARCMT=0
4855 default) ENABLE_CLANG_ARCMT=1
4857 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4858 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4859 { (exit 1); exit 1; }; } ;;
4862 clang_plugin_support="yes"
4863 # Check whether --enable-clang-plugin-support was given.
4864 if test "${enable_clang_plugin_support+set}" = set; then
4865 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4870 case "$enableval" in
4871 yes) CLANG_PLUGIN_SUPPORT=1
4873 no) CLANG_PLUGIN_SUPPORT=0
4875 default) CLANG_PLUGIN_SUPPORT=1
4877 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4878 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4879 { (exit 1); exit 1; }; } ;;
4882 clang_static_analyzer="yes"
4883 # Check whether --enable-clang-static-analyzer was given.
4884 if test "${enable_clang_static_analyzer+set}" = set; then
4885 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4890 case "$enableval" in
4891 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4894 if test ${clang_arcmt} != "no" ; then
4895 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4896 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4897 { (exit 1); exit 1; }; }
4899 ENABLE_CLANG_STATIC_ANALYZER=0
4902 default) ENABLE_CLANG_STATIC_ANALYZER=1
4904 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4905 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4906 { (exit 1); exit 1; }; } ;;
4909 # Check whether --enable-optimized was given.
4910 if test "${enable_optimized+set}" = set; then
4911 enableval=$enable_optimized;
4916 if test ${enableval} = "no" ; then
4920 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4924 # Check whether --enable-profiling was given.
4925 if test "${enable_profiling+set}" = set; then
4926 enableval=$enable_profiling;
4931 if test ${enableval} = "no" ; then
4935 ENABLE_PROFILING=ENABLE_PROFILING=1
4939 # Check whether --enable-assertions was given.
4940 if test "${enable_assertions+set}" = set; then
4941 enableval=$enable_assertions;
4946 if test ${enableval} = "yes" ; then
4950 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4954 # Check whether --enable-werror was given.
4955 if test "${enable_werror+set}" = set; then
4956 enableval=$enable_werror;
4961 case "$enableval" in
4962 yes) ENABLE_WERROR=1
4966 default) ENABLE_WERROR=0
4968 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4969 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4970 { (exit 1); exit 1; }; } ;;
4973 # Check whether --enable-expensive-checks was given.
4974 if test "${enable_expensive_checks+set}" = set; then
4975 enableval=$enable_expensive_checks;
4980 if test ${enableval} = "yes" ; then
4981 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4983 EXPENSIVE_CHECKS=yes
4986 ENABLE_EXPENSIVE_CHECKS=
4992 # Check whether --enable-debug-runtime was given.
4993 if test "${enable_debug_runtime+set}" = set; then
4994 enableval=$enable_debug_runtime;
4999 if test ${enableval} = "no" ; then
5003 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5007 # Check whether --enable-debug-symbols was given.
5008 if test "${enable_debug_symbols+set}" = set; then
5009 enableval=$enable_debug_symbols;
5014 if test ${enableval} = "no" ; then
5018 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5022 # Check whether --enable-keep-symbols was given.
5023 if test "${enable_keep_symbols+set}" = set; then
5024 enableval=$enable_keep_symbols;
5029 if test ${enableval} = "no" ; then
5033 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5037 # Check whether --enable-jit was given.
5038 if test "${enable_jit+set}" = set; then
5039 enableval=$enable_jit;
5044 if test ${enableval} = "no"
5049 case "$llvm_cv_target_arch" in
5050 x86) TARGET_HAS_JIT=1
5052 Sparc) TARGET_HAS_JIT=0
5054 PowerPC) TARGET_HAS_JIT=1
5056 x86_64) TARGET_HAS_JIT=1
5058 ARM) TARGET_HAS_JIT=1
5060 Mips) TARGET_HAS_JIT=1
5062 XCore) TARGET_HAS_JIT=0
5064 MSP430) TARGET_HAS_JIT=0
5066 Hexagon) TARGET_HAS_JIT=0
5068 NVPTX) TARGET_HAS_JIT=0
5070 SystemZ) TARGET_HAS_JIT=1
5077 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5078 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5081 # Check whether --enable-docs was given.
5082 if test "${enable_docs+set}" = set; then
5083 enableval=$enable_docs;
5088 case "$enableval" in
5093 default) ENABLE_DOCS=1
5095 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5096 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5097 { (exit 1); exit 1; }; } ;;
5100 # Check whether --enable-doxygen was given.
5101 if test "${enable_doxygen+set}" = set; then
5102 enableval=$enable_doxygen;
5107 case "$enableval" in
5108 yes) ENABLE_DOXYGEN=1
5110 no) ENABLE_DOXYGEN=0
5112 default) ENABLE_DOXYGEN=0
5114 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5115 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5116 { (exit 1); exit 1; }; } ;;
5119 # Check whether --enable-threads was given.
5120 if test "${enable_threads+set}" = set; then
5121 enableval=$enable_threads;
5126 case "$enableval" in
5127 yes) LLVM_ENABLE_THREADS=1
5129 no) LLVM_ENABLE_THREADS=0
5131 default) LLVM_ENABLE_THREADS=1
5133 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5134 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5135 { (exit 1); exit 1; }; } ;;
5138 cat >>confdefs.h <<_ACEOF
5139 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5143 # Check whether --enable-pthreads was given.
5144 if test "${enable_pthreads+set}" = set; then
5145 enableval=$enable_pthreads;
5150 case "$enableval" in
5151 yes) ENABLE_PTHREADS=1
5153 no) ENABLE_PTHREADS=0
5155 default) ENABLE_PTHREADS=1
5157 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5158 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5159 { (exit 1); exit 1; }; } ;;
5162 # Check whether --enable-zlib was given.
5163 if test "${enable_zlib+set}" = set; then
5164 enableval=$enable_zlib;
5169 case "$enableval" in
5170 yes) LLVM_ENABLE_ZLIB=1
5172 no) LLVM_ENABLE_ZLIB=0
5174 default) LLVM_ENABLE_ZLIB=1
5176 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5177 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5178 { (exit 1); exit 1; }; } ;;
5181 cat >>confdefs.h <<_ACEOF
5182 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5186 # Check whether --enable-pic was given.
5187 if test "${enable_pic+set}" = set; then
5188 enableval=$enable_pic;
5193 case "$enableval" in
5198 default) ENABLE_PIC=1
5200 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5201 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5202 { (exit 1); exit 1; }; } ;;
5205 cat >>confdefs.h <<_ACEOF
5206 #define ENABLE_PIC $ENABLE_PIC
5210 # Check whether --enable-shared was given.
5211 if test "${enable_shared+set}" = set; then
5212 enableval=$enable_shared;
5217 case "$enableval" in
5218 yes) ENABLE_SHARED=1
5222 default) ENABLE_SHARED=0
5224 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5225 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5226 { (exit 1); exit 1; }; } ;;
5229 # Check whether --enable-embed-stdcxx was given.
5230 if test "${enable_embed_stdcxx+set}" = set; then
5231 enableval=$enable_embed_stdcxx;
5236 case "$enableval" in
5237 yes) ENABLE_EMBED_STDCXX=1
5239 no) ENABLE_EMBED_STDCXX=0
5241 default) ENABLE_EMBED_STDCXX=0
5243 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5244 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5248 # Check whether --enable-timestamps was given.
5249 if test "${enable_timestamps+set}" = set; then
5250 enableval=$enable_timestamps;
5255 case "$enableval" in
5256 yes) ENABLE_TIMESTAMPS=1
5258 no) ENABLE_TIMESTAMPS=0
5260 default) ENABLE_TIMESTAMPS=1
5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5267 cat >>confdefs.h <<_ACEOF
5268 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5272 # Check whether --enable-backtraces was given.
5273 if test "${enable_backtraces+set}" = set; then
5274 enableval=$enable_backtraces; case "$enableval" in
5275 yes) llvm_cv_enable_backtraces="yes" ;;
5276 no) llvm_cv_enable_backtraces="no" ;;
5277 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5278 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5279 { (exit 1); exit 1; }; } ;;
5282 llvm_cv_enable_backtraces="yes"
5285 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5287 cat >>confdefs.h <<\_ACEOF
5288 #define ENABLE_BACKTRACES 1
5293 # Check whether --enable-crash-overrides was given.
5294 if test "${enable_crash_overrides+set}" = set; then
5295 enableval=$enable_crash_overrides; case "$enableval" in
5296 yes) llvm_cv_enable_crash_overrides="yes" ;;
5297 no) llvm_cv_enable_crash_overrides="no" ;;
5298 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5299 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5300 { (exit 1); exit 1; }; } ;;
5303 llvm_cv_enable_crash_overrides="yes"
5306 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5308 cat >>confdefs.h <<\_ACEOF
5309 #define ENABLE_CRASH_OVERRIDES 1
5314 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5315 ALL_TARGETS=$ALL_TARGETS
5319 # Check whether --enable-targets was given.
5320 if test "${enable_targets+set}" = set; then
5321 enableval=$enable_targets;
5326 if test "$enableval" = host-only ; then
5329 case "$enableval" in
5330 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5331 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5333 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5334 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5335 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5336 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5337 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5338 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5339 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5340 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5341 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5342 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5343 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5344 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5345 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5346 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5347 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5348 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5349 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5350 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5351 host) case "$llvm_cv_target_arch" in
5352 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5353 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5354 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5355 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5356 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5357 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5358 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5359 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5360 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5361 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5362 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5363 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5364 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5365 echo "$as_me: error: Can not set target to build" >&2;}
5366 { (exit 1); exit 1; }; } ;;
5368 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5369 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5370 { (exit 1); exit 1; }; } ;;
5376 # Check whether --enable-experimental-targets was given.
5377 if test "${enable_experimental_targets+set}" = set; then
5378 enableval=$enable_experimental_targets;
5384 if test ${enableval} != "disable"
5386 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5389 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5392 for a_target in $TARGETS_TO_BUILD; do
5393 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5395 cat >>confdefs.h <<_ACEOF
5396 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5399 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5400 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5401 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5402 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5403 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5404 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5406 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5407 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5410 cat >>confdefs.h <<_ACEOF
5411 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5415 cat >>confdefs.h <<_ACEOF
5416 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5420 cat >>confdefs.h <<_ACEOF
5421 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5425 cat >>confdefs.h <<_ACEOF
5426 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5429 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5431 cat >>confdefs.h <<_ACEOF
5432 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5436 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5438 cat >>confdefs.h <<_ACEOF
5439 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5446 LLVM_ENUM_TARGETS=""
5447 LLVM_ENUM_ASM_PRINTERS=""
5448 LLVM_ENUM_ASM_PARSERS=""
5449 LLVM_ENUM_DISASSEMBLERS=""
5450 for target_to_build in $TARGETS_TO_BUILD; do
5451 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5452 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5453 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5455 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5456 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5458 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5459 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5468 # Check whether --with-optimize-option was given.
5469 if test "${with_optimize_option+set}" = set; then
5470 withval=$with_optimize_option;
5475 { echo "$as_me:$LINENO: checking optimization flags" >&5
5476 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5479 case "$llvm_cv_os_type" in
5480 FreeBSD) optimize_option=-O2 ;;
5481 MingW) optimize_option=-O2 ;;
5482 *) optimize_option=-O3 ;;
5484 *) optimize_option="$withval" ;;
5486 OPTIMIZE_OPTION=$optimize_option
5488 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5489 echo "${ECHO_T}$optimize_option" >&6; }
5492 # Check whether --with-extra-options was given.
5493 if test "${with_extra_options+set}" = set; then
5494 withval=$with_extra_options;
5500 default) EXTRA_OPTIONS= ;;
5501 *) EXTRA_OPTIONS=$withval ;;
5503 EXTRA_OPTIONS=$EXTRA_OPTIONS
5507 # Check whether --with-extra-ld-options was given.
5508 if test "${with_extra_ld_options+set}" = set; then
5509 withval=$with_extra_ld_options;
5515 default) EXTRA_LD_OPTIONS= ;;
5516 *) EXTRA_LD_OPTIONS=$withval ;;
5518 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5521 # Check whether --enable-bindings was given.
5522 if test "${enable_bindings+set}" = set; then
5523 enableval=$enable_bindings;
5528 BINDINGS_TO_BUILD=""
5529 case "$enableval" in
5530 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5531 all ) BINDINGS_TO_BUILD="ocaml" ;;
5532 none | no) BINDINGS_TO_BUILD="" ;;
5533 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5534 case "$a_binding" in
5535 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5536 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5537 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5538 { (exit 1); exit 1; }; } ;;
5545 # Check whether --with-ocaml-libdir was given.
5546 if test "${with_ocaml_libdir+set}" = set; then
5547 withval=$with_ocaml_libdir;
5553 auto) with_ocaml_libdir="$withval" ;;
5554 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5555 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5556 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5557 { (exit 1); exit 1; }; } ;;
5561 # Check whether --with-clang-srcdir was given.
5562 if test "${with_clang_srcdir+set}" = set; then
5563 withval=$with_clang_srcdir;
5569 -) clang_src_root="" ;;
5570 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5571 *) clang_src_root="$ac_pwd/$withval" ;;
5573 CLANG_SRC_ROOT=$clang_src_root
5577 # Check whether --with-clang-resource-dir was given.
5578 if test "${with_clang_resource_dir+set}" = set; then
5579 withval=$with_clang_resource_dir;
5585 cat >>confdefs.h <<_ACEOF
5586 #define CLANG_RESOURCE_DIR "$withval"
5591 # Check whether --with-c-include-dirs was given.
5592 if test "${with_c_include_dirs+set}" = set; then
5593 withval=$with_c_include_dirs;
5599 cat >>confdefs.h <<_ACEOF
5600 #define C_INCLUDE_DIRS "$withval"
5604 # Clang normally uses the system c++ headers and libraries. With this option,
5605 # clang will use the ones provided by a gcc installation instead. This option should
5606 # be passed the same value that was used with --prefix when configuring gcc.
5608 # Check whether --with-gcc-toolchain was given.
5609 if test "${with_gcc_toolchain+set}" = set; then
5610 withval=$with_gcc_toolchain;
5616 cat >>confdefs.h <<_ACEOF
5617 #define GCC_INSTALL_PREFIX "$withval"
5622 # Check whether --with-default-sysroot was given.
5623 if test "${with_default_sysroot+set}" = set; then
5624 withval=$with_default_sysroot;
5630 cat >>confdefs.h <<_ACEOF
5631 #define DEFAULT_SYSROOT "$withval"
5636 # Check whether --with-binutils-include was given.
5637 if test "${with_binutils_include+set}" = set; then
5638 withval=$with_binutils_include;
5644 default) WITH_BINUTILS_INCDIR=default ;;
5645 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5646 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5647 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5648 { (exit 1); exit 1; }; } ;;
5650 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5651 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5653 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5654 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5655 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5656 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5657 { (exit 1); exit 1; }; };
5662 # Check whether --with-bug-report-url was given.
5663 if test "${with_bug_report_url+set}" = set; then
5664 withval=$with_bug_report_url;
5666 withval="http://llvm.org/bugs/"
5670 cat >>confdefs.h <<_ACEOF
5671 #define BUG_REPORT_URL "$withval"
5675 # Check whether --enable-terminfo was given.
5676 if test "${enable_terminfo+set}" = set; then
5677 enableval=$enable_terminfo; case "$enableval" in
5678 yes) llvm_cv_enable_terminfo="yes" ;;
5679 no) llvm_cv_enable_terminfo="no" ;;
5680 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5681 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5682 { (exit 1); exit 1; }; } ;;
5685 llvm_cv_enable_terminfo="yes"
5688 case "$llvm_cv_enable_terminfo" in
5689 yes) ENABLE_TERMINFO=1
5691 no) ENABLE_TERMINFO=0
5695 # Check whether --enable-libedit was given.
5696 if test "${enable_libedit+set}" = set; then
5697 enableval=$enable_libedit; case "$enableval" in
5698 yes) llvm_cv_enable_libedit="yes" ;;
5699 no) llvm_cv_enable_libedit="no" ;;
5700 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5701 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5702 { (exit 1); exit 1; }; } ;;
5705 llvm_cv_enable_libedit="yes"
5709 # Check whether --enable-libffi was given.
5710 if test "${enable_libffi+set}" = set; then
5711 enableval=$enable_libffi; case "$enableval" in
5712 yes) llvm_cv_enable_libffi="yes" ;;
5713 no) llvm_cv_enable_libffi="no" ;;
5714 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5715 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5716 { (exit 1); exit 1; }; } ;;
5719 llvm_cv_enable_libffi=no
5724 # Check whether --with-internal-prefix was given.
5725 if test "${with_internal_prefix+set}" = set; then
5726 withval=$with_internal_prefix;
5731 INTERNAL_PREFIX=$withval
5735 { echo "$as_me:$LINENO: checking for GNU make" >&5
5736 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5737 if test "${llvm_cv_gnu_make_command+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 llvm_cv_gnu_make_command=''
5741 for a in "$MAKE" make gmake gnumake ; do
5742 if test -z "$a" ; then continue ; fi ;
5743 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5745 llvm_cv_gnu_make_command=$a ;
5750 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5751 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5752 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5756 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5757 echo "${ECHO_T}\"Not found\"" >&6; };
5761 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5762 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5764 if test "$LN_S" = "ln -s"; then
5765 { echo "$as_me:$LINENO: result: yes" >&5
5766 echo "${ECHO_T}yes" >&6; }
5768 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5769 echo "${ECHO_T}no, using $LN_S" >&6; }
5772 # Extract the first word of "nm", so it can be a program name with args.
5773 set dummy nm; ac_word=$2
5774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5776 if test "${ac_cv_path_NM+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5791 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5804 if test -n "$NM"; then
5805 { echo "$as_me:$LINENO: result: $NM" >&5
5806 echo "${ECHO_T}$NM" >&6; }
5808 { echo "$as_me:$LINENO: result: no" >&5
5809 echo "${ECHO_T}no" >&6; }
5813 # Extract the first word of "cmp", so it can be a program name with args.
5814 set dummy cmp; ac_word=$2
5815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5817 if test "${ac_cv_path_CMP+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5845 if test -n "$CMP"; then
5846 { echo "$as_me:$LINENO: result: $CMP" >&5
5847 echo "${ECHO_T}$CMP" >&6; }
5849 { echo "$as_me:$LINENO: result: no" >&5
5850 echo "${ECHO_T}no" >&6; }
5854 # Extract the first word of "cp", so it can be a program name with args.
5855 set dummy cp; ac_word=$2
5856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5858 if test "${ac_cv_path_CP+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5873 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5886 if test -n "$CP"; then
5887 { echo "$as_me:$LINENO: result: $CP" >&5
5888 echo "${ECHO_T}$CP" >&6; }
5890 { echo "$as_me:$LINENO: result: no" >&5
5891 echo "${ECHO_T}no" >&6; }
5895 # Extract the first word of "date", so it can be a program name with args.
5896 set dummy date; ac_word=$2
5897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5899 if test "${ac_cv_path_DATE+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5914 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5926 DATE=$ac_cv_path_DATE
5927 if test -n "$DATE"; then
5928 { echo "$as_me:$LINENO: result: $DATE" >&5
5929 echo "${ECHO_T}$DATE" >&6; }
5931 { echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6; }
5936 # Extract the first word of "find", so it can be a program name with args.
5937 set dummy find; ac_word=$2
5938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5940 if test "${ac_cv_path_FIND+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5955 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5967 FIND=$ac_cv_path_FIND
5968 if test -n "$FIND"; then
5969 { echo "$as_me:$LINENO: result: $FIND" >&5
5970 echo "${ECHO_T}$FIND" >&6; }
5972 { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5977 # Extract the first word of "grep", so it can be a program name with args.
5978 set dummy grep; ac_word=$2
5979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981 if test "${ac_cv_path_GREP+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5996 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6008 GREP=$ac_cv_path_GREP
6009 if test -n "$GREP"; then
6010 { echo "$as_me:$LINENO: result: $GREP" >&5
6011 echo "${ECHO_T}$GREP" >&6; }
6013 { echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6; }
6018 # Extract the first word of "mkdir", so it can be a program name with args.
6019 set dummy mkdir; ac_word=$2
6020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6022 if test "${ac_cv_path_MKDIR+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6037 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6049 MKDIR=$ac_cv_path_MKDIR
6050 if test -n "$MKDIR"; then
6051 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6052 echo "${ECHO_T}$MKDIR" >&6; }
6054 { echo "$as_me:$LINENO: result: no" >&5
6055 echo "${ECHO_T}no" >&6; }
6059 # Extract the first word of "mv", so it can be a program name with args.
6060 set dummy mv; ac_word=$2
6061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6063 if test "${ac_cv_path_MV+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6078 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6091 if test -n "$MV"; then
6092 { echo "$as_me:$LINENO: result: $MV" >&5
6093 echo "${ECHO_T}$MV" >&6; }
6095 { echo "$as_me:$LINENO: result: no" >&5
6096 echo "${ECHO_T}no" >&6; }
6100 if test -n "$ac_tool_prefix"; then
6101 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6102 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6105 if test "${ac_cv_prog_RANLIB+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 if test -n "$RANLIB"; then
6109 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6118 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 RANLIB=$ac_cv_prog_RANLIB
6129 if test -n "$RANLIB"; then
6130 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6131 echo "${ECHO_T}$RANLIB" >&6; }
6133 { echo "$as_me:$LINENO: result: no" >&5
6134 echo "${ECHO_T}no" >&6; }
6139 if test -z "$ac_cv_prog_RANLIB"; then
6140 ac_ct_RANLIB=$RANLIB
6141 # Extract the first word of "ranlib", so it can be a program name with args.
6142 set dummy ranlib; ac_word=$2
6143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6145 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 if test -n "$ac_ct_RANLIB"; then
6149 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_ac_ct_RANLIB="ranlib"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6169 if test -n "$ac_ct_RANLIB"; then
6170 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6171 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6173 { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6177 if test "x$ac_ct_RANLIB" = x; then
6180 case $cross_compiling:$ac_tool_warned in
6182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6183 whose name does not start with the host triplet. If you think this
6184 configuration is useful to you, please write to autoconf@gnu.org." >&5
6185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6186 whose name does not start with the host triplet. If you think this
6187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6188 ac_tool_warned=yes ;;
6190 RANLIB=$ac_ct_RANLIB
6193 RANLIB="$ac_cv_prog_RANLIB"
6196 if test -n "$ac_tool_prefix"; then
6197 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6198 set dummy ${ac_tool_prefix}ar; ac_word=$2
6199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6201 if test "${ac_cv_prog_AR+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 if test -n "$AR"; then
6205 ac_cv_prog_AR="$AR" # Let the user override the test.
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6214 ac_cv_prog_AR="${ac_tool_prefix}ar"
6215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 if test -n "$AR"; then
6226 { echo "$as_me:$LINENO: result: $AR" >&5
6227 echo "${ECHO_T}$AR" >&6; }
6229 { echo "$as_me:$LINENO: result: no" >&5
6230 echo "${ECHO_T}no" >&6; }
6235 if test -z "$ac_cv_prog_AR"; then
6237 # Extract the first word of "ar", so it can be a program name with args.
6238 set dummy ar; ac_word=$2
6239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6241 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 if test -n "$ac_ct_AR"; then
6245 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6254 ac_cv_prog_ac_ct_AR="ar"
6255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6265 if test -n "$ac_ct_AR"; then
6266 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6267 echo "${ECHO_T}$ac_ct_AR" >&6; }
6269 { echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6; }
6273 if test "x$ac_ct_AR" = x; then
6276 case $cross_compiling:$ac_tool_warned in
6278 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6279 whose name does not start with the host triplet. If you think this
6280 configuration is useful to you, please write to autoconf@gnu.org." >&5
6281 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6282 whose name does not start with the host triplet. If you think this
6283 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6284 ac_tool_warned=yes ;;
6292 # Extract the first word of "rm", so it can be a program name with args.
6293 set dummy rm; ac_word=$2
6294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6296 if test "${ac_cv_path_RM+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6311 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6324 if test -n "$RM"; then
6325 { echo "$as_me:$LINENO: result: $RM" >&5
6326 echo "${ECHO_T}$RM" >&6; }
6328 { echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6; }
6333 # Extract the first word of "sed", so it can be a program name with args.
6334 set dummy sed; ac_word=$2
6335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6337 if test "${ac_cv_path_SED+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6352 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6365 if test -n "$SED"; then
6366 { echo "$as_me:$LINENO: result: $SED" >&5
6367 echo "${ECHO_T}$SED" >&6; }
6369 { echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6; }
6374 # Extract the first word of "tar", so it can be a program name with args.
6375 set dummy tar; ac_word=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_path_TAR+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6406 if test -n "$TAR"; then
6407 { echo "$as_me:$LINENO: result: $TAR" >&5
6408 echo "${ECHO_T}$TAR" >&6; }
6410 { echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6; }
6415 # Extract the first word of "pwd", so it can be a program name with args.
6416 set dummy pwd; ac_word=$2
6417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6419 if test "${ac_cv_path_BINPWD+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6446 BINPWD=$ac_cv_path_BINPWD
6447 if test -n "$BINPWD"; then
6448 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6449 echo "${ECHO_T}$BINPWD" >&6; }
6451 { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6457 # Extract the first word of "dot", so it can be a program name with args.
6458 set dummy dot; ac_word=$2
6459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6461 if test "${ac_cv_path_DOT+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6489 if test -n "$DOT"; then
6490 { echo "$as_me:$LINENO: result: $DOT" >&5
6491 echo "${ECHO_T}$DOT" >&6; }
6493 { echo "$as_me:$LINENO: result: no" >&5
6494 echo "${ECHO_T}no" >&6; }
6498 if test "$DOT" != "echo dot" ; then
6500 cat >>confdefs.h <<\_ACEOF
6504 if test "$llvm_cv_os_type" = "MingW" ; then
6505 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6508 cat >>confdefs.h <<_ACEOF
6509 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6514 # Find a good install program. We prefer a C program (faster),
6515 # so one script is as good as another. But avoid the broken or
6516 # incompatible versions:
6517 # SysV /etc/install, /usr/sbin/install
6518 # SunOS /usr/etc/install
6519 # IRIX /sbin/install
6521 # AmigaOS /C/install, which installs bootblocks on floppy discs
6522 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6523 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6524 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6525 # OS/2's system install, which has a completely different semantic
6526 # ./install, which can be erroneously created by make from ./install.sh.
6527 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6528 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6529 if test -z "$INSTALL"; then
6530 if test "${ac_cv_path_install+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 test -z "$as_dir" && as_dir=.
6538 # Account for people who put trailing slashes in PATH elements.
6540 ./ | .// | /cC/* | \
6541 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6542 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6545 # OSF1 and SCO ODT 3.0 have their own names for install.
6546 # Don't use installbsd from OSF since it installs stuff as root
6548 for ac_prog in ginstall scoinst install; do
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6551 if test $ac_prog = install &&
6552 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6553 # AIX install. It has an incompatible calling convention.
6555 elif test $ac_prog = install &&
6556 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6557 # program-specific install script used by HP pwplus--don't use.
6560 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6573 if test "${ac_cv_path_install+set}" = set; then
6574 INSTALL=$ac_cv_path_install
6576 # As a last resort, use the slow shell script. Don't cache a
6577 # value for INSTALL within a source directory, because that will
6578 # break other packages using the cache if that directory is
6579 # removed, or if the value is a relative name.
6580 INSTALL=$ac_install_sh
6583 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6584 echo "${ECHO_T}$INSTALL" >&6; }
6586 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6587 # It thinks the first close brace ends the variable substitution.
6588 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6590 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6592 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6595 [\\/$]* | ?:[\\/]* ) ;;
6596 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6599 # Extract the first word of "bzip2", so it can be a program name with args.
6600 set dummy bzip2; ac_word=$2
6601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6603 if test "${ac_cv_path_BZIP2+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 BZIP2=$ac_cv_path_BZIP2
6630 if test -n "$BZIP2"; then
6631 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6632 echo "${ECHO_T}$BZIP2" >&6; }
6634 { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6639 # Extract the first word of "cat", so it can be a program name with args.
6640 set dummy cat; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_path_CAT+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 if test -n "$CAT"; then
6671 { echo "$as_me:$LINENO: result: $CAT" >&5
6672 echo "${ECHO_T}$CAT" >&6; }
6674 { echo "$as_me:$LINENO: result: no" >&5
6675 echo "${ECHO_T}no" >&6; }
6679 # Extract the first word of "doxygen", so it can be a program name with args.
6680 set dummy doxygen; ac_word=$2
6681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6683 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6698 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 DOXYGEN=$ac_cv_path_DOXYGEN
6710 if test -n "$DOXYGEN"; then
6711 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6712 echo "${ECHO_T}$DOXYGEN" >&6; }
6714 { echo "$as_me:$LINENO: result: no" >&5
6715 echo "${ECHO_T}no" >&6; }
6719 # Extract the first word of "groff", so it can be a program name with args.
6720 set dummy groff; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_path_GROFF+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 GROFF=$ac_cv_path_GROFF
6750 if test -n "$GROFF"; then
6751 { echo "$as_me:$LINENO: result: $GROFF" >&5
6752 echo "${ECHO_T}$GROFF" >&6; }
6754 { echo "$as_me:$LINENO: result: no" >&5
6755 echo "${ECHO_T}no" >&6; }
6759 # Extract the first word of "gzip", so it can be a program name with args.
6760 set dummy gzip; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 GZIPBIN=$ac_cv_path_GZIPBIN
6790 if test -n "$GZIPBIN"; then
6791 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6792 echo "${ECHO_T}$GZIPBIN" >&6; }
6794 { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6799 # Extract the first word of "pdfroff", so it can be a program name with args.
6800 set dummy pdfroff; ac_word=$2
6801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803 if test "${ac_cv_path_PDFROFF+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6818 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 PDFROFF=$ac_cv_path_PDFROFF
6830 if test -n "$PDFROFF"; then
6831 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6832 echo "${ECHO_T}$PDFROFF" >&6; }
6834 { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6839 # Extract the first word of "zip", so it can be a program name with args.
6840 set dummy zip; ac_word=$2
6841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843 if test "${ac_cv_path_ZIP+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6858 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 if test -n "$ZIP"; then
6871 { echo "$as_me:$LINENO: result: $ZIP" >&5
6872 echo "${ECHO_T}$ZIP" >&6; }
6874 { echo "$as_me:$LINENO: result: no" >&5
6875 echo "${ECHO_T}no" >&6; }
6879 # Extract the first word of "go", so it can be a program name with args.
6880 set dummy go; ac_word=$2
6881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6883 if test "${ac_cv_path_GO+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 ac_cv_path_GO="$GO" # Let the user override the test with a path.
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6898 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 if test -n "$GO"; then
6911 { echo "$as_me:$LINENO: result: $GO" >&5
6912 echo "${ECHO_T}$GO" >&6; }
6914 { echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6; }
6919 for ac_prog in ocamlfind
6921 # Extract the first word of "$ac_prog", so it can be a program name with args.
6922 set dummy $ac_prog; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
6941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 OCAMLFIND=$ac_cv_path_OCAMLFIND
6952 if test -n "$OCAMLFIND"; then
6953 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
6954 echo "${ECHO_T}$OCAMLFIND" >&6; }
6956 { echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6; }
6961 test -n "$OCAMLFIND" && break
6964 for ac_prog in gas as
6966 # Extract the first word of "$ac_prog", so it can be a program name with args.
6967 set dummy $ac_prog; ac_word=$2
6968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6970 if test "${ac_cv_path_GAS+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
6986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 if test -n "$GAS"; then
6998 { echo "$as_me:$LINENO: result: $GAS" >&5
6999 echo "${ECHO_T}$GAS" >&6; }
7001 { echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6; }
7006 test -n "$GAS" && break
7010 { echo "$as_me:$LINENO: checking for linker version" >&5
7011 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7012 if test "${llvm_cv_link_version+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7019 if (echo "$version_string" | grep -q "ld64"); then
7020 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7022 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7026 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7027 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7029 cat >>confdefs.h <<_ACEOF
7030 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7036 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7037 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7038 if test "${llvm_cv_link_use_r+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 ac_cpp='$CPP $CPPFLAGS'
7043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7048 CFLAGS="$CFLAGS -Wl,-R."
7049 cat >conftest.$ac_ext <<_ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7064 rm -f conftest.$ac_objext conftest$ac_exeext
7065 if { (ac_try="$ac_link"
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071 (eval "$ac_link") 2>conftest.er1
7073 grep -v '^ *+' conftest.er1 >conftest.err
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } &&
7078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7079 { (case "(($ac_try" in
7080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084 (eval "$ac_try") 2>&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; } &&
7088 { ac_try='test -s conftest$ac_exeext'
7089 { (case "(($ac_try" in
7090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091 *) ac_try_echo=$ac_try;;
7093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094 (eval "$ac_try") 2>&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 llvm_cv_link_use_r=yes
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7103 llvm_cv_link_use_r=no
7106 rm -f core conftest.err conftest.$ac_objext \
7107 conftest$ac_exeext conftest.$ac_ext
7110 ac_cpp='$CPP $CPPFLAGS'
7111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7117 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7118 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7119 if test "$llvm_cv_link_use_r" = yes ; then
7121 cat >>confdefs.h <<\_ACEOF
7122 #define HAVE_LINK_R 1
7128 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7129 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7130 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 ac_cpp='$CPP $CPPFLAGS'
7135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7140 CFLAGS="$CFLAGS -rdynamic"
7141 cat >conftest.$ac_ext <<_ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7156 rm -f conftest.$ac_objext conftest$ac_exeext
7157 if { (ac_try="$ac_link"
7159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160 *) ac_try_echo=$ac_try;;
7162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7163 (eval "$ac_link") 2>conftest.er1
7165 grep -v '^ *+' conftest.er1 >conftest.err
7167 cat conftest.err >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); } &&
7170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7171 { (case "(($ac_try" in
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_try") 2>&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; } &&
7180 { ac_try='test -s conftest$ac_exeext'
7181 { (case "(($ac_try" in
7182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7183 *) ac_try_echo=$ac_try;;
7185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7186 (eval "$ac_try") 2>&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; }; then
7190 llvm_cv_link_use_export_dynamic=yes
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7195 llvm_cv_link_use_export_dynamic=no
7198 rm -f core conftest.err conftest.$ac_objext \
7199 conftest$ac_exeext conftest.$ac_ext
7202 ac_cpp='$CPP $CPPFLAGS'
7203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7209 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7210 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7211 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7213 cat >>confdefs.h <<\_ACEOF
7214 #define HAVE_LINK_EXPORT_DYNAMIC 1
7220 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7221 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7222 if test "${llvm_cv_link_use_version_script+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 ac_cpp='$CPP $CPPFLAGS'
7227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7233 # The following code is from the autoconf manual,
7234 # "11.13: Limitations of Usual Tools".
7235 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7236 # Use mktemp if possible; otherwise fall back on mkdir,
7237 # with $RANDOM to make collisions less likely.
7241 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7243 test -n "$tmp" && test -d "$tmp"
7245 tmp=$TMPDIR/foo$$-$RANDOM
7246 (umask 077 && mkdir "$tmp")
7249 echo "{" > "$tmp/export.map"
7250 echo " global: main;" >> "$tmp/export.map"
7251 echo " local: *;" >> "$tmp/export.map"
7252 echo "};" >> "$tmp/export.map"
7254 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7255 cat >conftest.$ac_ext <<_ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (ac_try="$ac_link"
7273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277 (eval "$ac_link") 2>conftest.er1
7279 grep -v '^ *+' conftest.er1 >conftest.err
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } &&
7284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7285 { (case "(($ac_try" in
7286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287 *) ac_try_echo=$ac_try;;
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290 (eval "$ac_try") 2>&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; } &&
7294 { ac_try='test -s conftest$ac_exeext'
7295 { (case "(($ac_try" in
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_try") 2>&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; }; then
7304 llvm_cv_link_use_version_script=yes
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7309 llvm_cv_link_use_version_script=no
7312 rm -f core conftest.err conftest.$ac_objext \
7313 conftest$ac_exeext conftest.$ac_ext
7314 rm "$tmp/export.map"
7318 ac_cpp='$CPP $CPPFLAGS'
7319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7325 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7326 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7327 if test "$llvm_cv_link_use_version_script" = yes ; then
7328 HAVE_LINK_VERSION_SCRIPT=1
7334 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7335 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7336 if test "${ac_cv_path_GREP+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 # Extract the first word of "grep ggrep" to use in msg output
7340 if test -z "$GREP"; then
7341 set dummy grep ggrep; ac_prog_name=$2
7342 if test "${ac_cv_path_GREP+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 ac_path_GREP_found=false
7346 # Loop through the user's path and test for each of PROGNAME-LIST
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7351 test -z "$as_dir" && as_dir=.
7352 for ac_prog in grep ggrep; do
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7355 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7356 # Check for GNU ac_path_GREP and select it if it is found.
7357 # Check for GNU $ac_path_GREP
7358 case `"$ac_path_GREP" --version 2>&1` in
7360 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7363 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7366 cat "conftest.in" "conftest.in" >"conftest.tmp"
7367 mv "conftest.tmp" "conftest.in"
7368 cp "conftest.in" "conftest.nl"
7369 echo 'GREP' >> "conftest.nl"
7370 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7372 ac_count=`expr $ac_count + 1`
7373 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7374 # Best one so far, save it but keep looking for a better one
7375 ac_cv_path_GREP="$ac_path_GREP"
7376 ac_path_GREP_max=$ac_count
7378 # 10*(2^10) chars as input seems more than enough
7379 test $ac_count -gt 10 && break
7381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7385 $ac_path_GREP_found && break 3
7395 GREP="$ac_cv_path_GREP"
7396 if test -z "$GREP"; then
7397 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7398 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7399 { (exit 1); exit 1; }; }
7403 ac_cv_path_GREP=$GREP
7408 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7409 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7410 GREP="$ac_cv_path_GREP"
7413 { echo "$as_me:$LINENO: checking for egrep" >&5
7414 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7415 if test "${ac_cv_path_EGREP+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7419 then ac_cv_path_EGREP="$GREP -E"
7421 # Extract the first word of "egrep" to use in msg output
7422 if test -z "$EGREP"; then
7423 set dummy egrep; ac_prog_name=$2
7424 if test "${ac_cv_path_EGREP+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 ac_path_EGREP_found=false
7428 # Loop through the user's path and test for each of PROGNAME-LIST
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7433 test -z "$as_dir" && as_dir=.
7434 for ac_prog in egrep; do
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7437 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7438 # Check for GNU ac_path_EGREP and select it if it is found.
7439 # Check for GNU $ac_path_EGREP
7440 case `"$ac_path_EGREP" --version 2>&1` in
7442 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7445 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7448 cat "conftest.in" "conftest.in" >"conftest.tmp"
7449 mv "conftest.tmp" "conftest.in"
7450 cp "conftest.in" "conftest.nl"
7451 echo 'EGREP' >> "conftest.nl"
7452 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7453 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7454 ac_count=`expr $ac_count + 1`
7455 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7456 # Best one so far, save it but keep looking for a better one
7457 ac_cv_path_EGREP="$ac_path_EGREP"
7458 ac_path_EGREP_max=$ac_count
7460 # 10*(2^10) chars as input seems more than enough
7461 test $ac_count -gt 10 && break
7463 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7467 $ac_path_EGREP_found && break 3
7477 EGREP="$ac_cv_path_EGREP"
7478 if test -z "$EGREP"; then
7479 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7480 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7481 { (exit 1); exit 1; }; }
7485 ac_cv_path_EGREP=$EGREP
7491 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7492 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7493 EGREP="$ac_cv_path_EGREP"
7496 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7497 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7498 if test "${ac_cv_header_stdc+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 cat >conftest.$ac_ext <<_ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7520 rm -f conftest.$ac_objext
7521 if { (ac_try="$ac_compile"
7523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_compile") 2>conftest.er1
7529 grep -v '^ *+' conftest.er1 >conftest.err
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7535 { (case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_try") 2>&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; } &&
7544 { ac_try='test -s conftest.$ac_objext'
7545 { (case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_try") 2>&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
7554 ac_cv_header_stdc=yes
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7559 ac_cv_header_stdc=no
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 if test $ac_cv_header_stdc = yes; then
7565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7566 cat >conftest.$ac_ext <<_ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7576 $EGREP "memchr" >/dev/null 2>&1; then
7579 ac_cv_header_stdc=no
7585 if test $ac_cv_header_stdc = yes; then
7586 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7587 cat >conftest.$ac_ext <<_ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7597 $EGREP "free" >/dev/null 2>&1; then
7600 ac_cv_header_stdc=no
7606 if test $ac_cv_header_stdc = yes; then
7607 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7608 if test "$cross_compiling" = yes; then
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7619 #if ((' ' & 0x0FF) == 0x020)
7620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7623 # define ISLOWER(c) \
7624 (('a' <= (c) && (c) <= 'i') \
7625 || ('j' <= (c) && (c) <= 'r') \
7626 || ('s' <= (c) && (c) <= 'z'))
7627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7635 for (i = 0; i < 256; i++)
7636 if (XOR (islower (i), ISLOWER (i))
7637 || toupper (i) != TOUPPER (i))
7642 rm -f conftest$ac_exeext
7643 if { (ac_try="$ac_link"
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_link") 2>&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7653 { (case "(($ac_try" in
7654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7655 *) ac_try_echo=$ac_try;;
7657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7658 (eval "$ac_try") 2>&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7664 echo "$as_me: program exited with status $ac_status" >&5
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7669 ac_cv_header_stdc=no
7671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7677 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7678 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7679 if test $ac_cv_header_stdc = yes; then
7681 cat >>confdefs.h <<\_ACEOF
7682 #define STDC_HEADERS 1
7687 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7697 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7698 inttypes.h stdint.h unistd.h
7700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 cat >conftest.$ac_ext <<_ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 $ac_includes_default
7714 #include <$ac_header>
7716 rm -f conftest.$ac_objext
7717 if { (ac_try="$ac_compile"
7719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720 *) ac_try_echo=$ac_try;;
7722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7723 (eval "$ac_compile") 2>conftest.er1
7725 grep -v '^ *+' conftest.er1 >conftest.err
7727 cat conftest.err >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } &&
7730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7731 { (case "(($ac_try" in
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7736 (eval "$ac_try") 2>&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; } &&
7740 { ac_try='test -s conftest.$ac_objext'
7741 { (case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_try") 2>&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; }; then
7750 eval "$as_ac_Header=yes"
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7755 eval "$as_ac_Header=no"
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7760 ac_res=`eval echo '${'$as_ac_Header'}'`
7761 { echo "$as_me:$LINENO: result: $ac_res" >&5
7762 echo "${ECHO_T}$ac_res" >&6; }
7763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7764 cat >>confdefs.h <<_ACEOF
7765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7774 for ac_header in errno.h
7776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 ac_res=`eval echo '${'$as_ac_Header'}'`
7784 { echo "$as_me:$LINENO: result: $ac_res" >&5
7785 echo "${ECHO_T}$ac_res" >&6; }
7787 # Is the header compilable?
7788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7790 cat >conftest.$ac_ext <<_ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h. */
7796 $ac_includes_default
7797 #include <$ac_header>
7799 rm -f conftest.$ac_objext
7800 if { (ac_try="$ac_compile"
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_compile") 2>conftest.er1
7808 grep -v '^ *+' conftest.er1 >conftest.err
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7814 { (case "(($ac_try" in
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819 (eval "$ac_try") 2>&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }; } &&
7823 { ac_try='test -s conftest.$ac_objext'
7824 { (case "(($ac_try" in
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7829 (eval "$ac_try") 2>&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_header_compiler=yes
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 ac_header_compiler=no
7841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7843 echo "${ECHO_T}$ac_header_compiler" >&6; }
7845 # Is the header present?
7846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 #include <$ac_header>
7856 if { (ac_try="$ac_cpp conftest.$ac_ext"
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7864 grep -v '^ *+' conftest.er1 >conftest.err
7866 cat conftest.err >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); } >/dev/null; then
7869 if test -s conftest.err; then
7870 ac_cpp_err=$ac_c_preproc_warn_flag
7871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7878 if test -z "$ac_cpp_err"; then
7879 ac_header_preproc=yes
7881 echo "$as_me: failed program was:" >&5
7882 sed 's/^/| /' conftest.$ac_ext >&5
7884 ac_header_preproc=no
7887 rm -f conftest.err conftest.$ac_ext
7888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7889 echo "${ECHO_T}$ac_header_preproc" >&6; }
7891 # So? What about this header?
7892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7898 ac_header_preproc=yes
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7914 ## ------------------------------------ ##
7915 ## Report this to http://llvm.org/bugs/ ##
7916 ## ------------------------------------ ##
7918 ) | sed "s/^/$as_me: WARNING: /" >&2
7921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 eval "$as_ac_Header=\$ac_header_preproc"
7928 ac_res=`eval echo '${'$as_ac_Header'}'`
7929 { echo "$as_me:$LINENO: result: $ac_res" >&5
7930 echo "${ECHO_T}$ac_res" >&6; }
7933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7934 cat >>confdefs.h <<_ACEOF
7935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7943 case "$llvm_cv_os_type" in
7944 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
7945 Darwin) llvm_shlib_ext=.dylib ;;
7946 *) llvm_shlib_ext=.so ;;
7950 cat >>confdefs.h <<_ACEOF
7951 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
7955 { echo "$as_me:$LINENO: checking tool compatibility" >&5
7956 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
7969 if test "$GCC" != "yes" && test "$ICC" != "yes"
7971 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
7972 echo "$as_me: error: gcc|icc required but not found" >&2;}
7973 { (exit 1); exit 1; }; }
7976 if test "$GXX" != "yes" && test "$IXX" != "yes"
7978 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
7979 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
7980 { (exit 1); exit 1; }; }
7983 if test "$GCC" = "yes"
7985 cat >conftest.$ac_ext <<_ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7993 #if !defined(__GNUC__) || __GNUC__ < 3
7994 #error Unsupported GCC version
7999 rm -f conftest.$ac_objext
8000 if { (ac_try="$ac_compile"
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_compile") 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8014 { (case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_try") 2>&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; } &&
8023 { ac_try='test -s conftest.$ac_objext'
8024 { (case "(($ac_try" in
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_try") 2>&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; }; then
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8038 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8039 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8040 { (exit 1); exit 1; }; }
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046 if test -z "$llvm_cv_gnu_make_command"
8048 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8049 echo "$as_me: error: GNU Make required but not found" >&2;}
8050 { (exit 1); exit 1; }; }
8053 { echo "$as_me:$LINENO: result: ok" >&5
8054 echo "${ECHO_T}ok" >&6; }
8056 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8057 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8058 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8060 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8062 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8066 NO_MAYBE_UNINITIALIZED=
8067 if test "$GXX" = "yes"
8069 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8071 if test -z "$NO_MAYBE_UNINITIALIZED"
8073 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8079 llvm_cv_old_cxxflags="$CXXFLAGS"
8080 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8081 cat >conftest.$ac_ext <<_ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8090 int main() { return 0; }
8094 rm -f conftest.$ac_objext
8095 if { (ac_try="$ac_compile"
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_compile") 2>conftest.er1
8103 grep -v '^ *+' conftest.er1 >conftest.err
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
8108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8109 { (case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_try") 2>&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; } &&
8118 { ac_try='test -s conftest.$ac_objext'
8119 { (case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_try") 2>&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8129 no_comment=-Wno-comment
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 NO_COMMENT=$no_comment
8141 CXXFLAGS="$llvm_cv_old_cxxflags"
8143 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8144 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8147 # Check whether --with-python was given.
8148 if test "${with_python+set}" = set; then
8149 withval=$with_python; PYTHON="$withval"
8153 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8154 { echo "$as_me:$LINENO: checking for python" >&5
8155 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8156 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8157 echo "${ECHO_T}user defined: $with_python" >&6; }
8159 if test -n "$PYTHON" ; then
8160 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8161 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8164 # Extract the first word of "python python2 python27", so it can be a program name with args.
8165 set dummy python python2 python27; ac_word=$2
8166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8168 if test "${ac_cv_path_PYTHON+set}" = set; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 test -z "$as_dir" && as_dir=.
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8183 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8192 echo "${ECHO_T}not found" >&6; }
8193 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8194 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8195 { (exit 1); exit 1; }; }"
8199 PYTHON=$ac_cv_path_PYTHON
8200 if test -n "$PYTHON"; then
8201 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8202 echo "${ECHO_T}$PYTHON" >&6; }
8204 { echo "$as_me:$LINENO: result: no" >&5
8205 echo "${ECHO_T}no" >&6; }
8211 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8212 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8213 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8214 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8215 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8216 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8217 if test "$ac_python_version_major" -gt "2" || \
8218 (test "$ac_python_version_major" -eq "2" && \
8219 test "$ac_python_version_minor" -ge "7") ; then
8220 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8221 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8223 { echo "$as_me:$LINENO: result: not found" >&5
8224 echo "${ECHO_T}not found" >&6; }
8225 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8226 See \`config.log' for more details." >&5
8227 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8228 See \`config.log' for more details." >&2;}
8229 { (exit 1); exit 1; }; }
8234 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8235 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8236 if test "${ac_cv_lib_m_sin+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 ac_check_lib_save_LIBS=$LIBS
8241 cat >conftest.$ac_ext <<_ACEOF
8244 cat confdefs.h >>conftest.$ac_ext
8245 cat >>conftest.$ac_ext <<_ACEOF
8246 /* end confdefs.h. */
8248 /* Override any GCC internal prototype to avoid an error.
8249 Use char because int might match the return type of a GCC
8250 builtin and then its argument prototype would still apply. */
8263 rm -f conftest.$ac_objext conftest$ac_exeext
8264 if { (ac_try="$ac_link"
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_link") 2>conftest.er1
8272 grep -v '^ *+' conftest.er1 >conftest.err
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
8277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8278 { (case "(($ac_try" in
8279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_try") 2>&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; } &&
8287 { ac_try='test -s conftest$ac_exeext'
8288 { (case "(($ac_try" in
8289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290 *) ac_try_echo=$ac_try;;
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 (eval "$ac_try") 2>&5
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); }; }; then
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8305 rm -f core conftest.err conftest.$ac_objext \
8306 conftest$ac_exeext conftest.$ac_ext
8307 LIBS=$ac_check_lib_save_LIBS
8309 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8310 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8311 if test $ac_cv_lib_m_sin = yes; then
8312 cat >>confdefs.h <<_ACEOF
8320 if test "$llvm_cv_os_type" = "MingW" ; then
8322 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8323 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8324 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 ac_check_lib_save_LIBS=$LIBS
8328 LIBS="-limagehlp $LIBS"
8329 cat >conftest.$ac_ext <<_ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h. */
8345 rm -f conftest.$ac_objext conftest$ac_exeext
8346 if { (ac_try="$ac_link"
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_link") 2>conftest.er1
8354 grep -v '^ *+' conftest.er1 >conftest.err
8356 cat conftest.err >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8360 { (case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_try") 2>&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; } &&
8369 { ac_try='test -s conftest$ac_exeext'
8370 { (case "(($ac_try" in
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_try") 2>&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; }; then
8379 ac_cv_lib_imagehlp_main=yes
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8384 ac_cv_lib_imagehlp_main=no
8387 rm -f core conftest.err conftest.$ac_objext \
8388 conftest$ac_exeext conftest.$ac_ext
8389 LIBS=$ac_check_lib_save_LIBS
8391 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8392 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8393 if test $ac_cv_lib_imagehlp_main = yes; then
8394 cat >>confdefs.h <<_ACEOF
8395 #define HAVE_LIBIMAGEHLP 1
8398 LIBS="-limagehlp $LIBS"
8403 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8404 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8405 if test "${ac_cv_lib_psapi_main+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 ac_check_lib_save_LIBS=$LIBS
8409 LIBS="-lpsapi $LIBS"
8410 cat >conftest.$ac_ext <<_ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (ac_try="$ac_link"
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433 (eval "$ac_link") 2>conftest.er1
8435 grep -v '^ *+' conftest.er1 >conftest.err
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8441 { (case "(($ac_try" in
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_try") 2>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; } &&
8450 { ac_try='test -s conftest$ac_exeext'
8451 { (case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_try") 2>&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8460 ac_cv_lib_psapi_main=yes
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 ac_cv_lib_psapi_main=no
8468 rm -f core conftest.err conftest.$ac_objext \
8469 conftest$ac_exeext conftest.$ac_ext
8470 LIBS=$ac_check_lib_save_LIBS
8472 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8473 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8474 if test $ac_cv_lib_psapi_main = yes; then
8475 cat >>confdefs.h <<_ACEOF
8476 #define HAVE_LIBPSAPI 1
8479 LIBS="-lpsapi $LIBS"
8484 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8485 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8486 if test "${ac_cv_lib_shell32_main+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 ac_check_lib_save_LIBS=$LIBS
8490 LIBS="-lshell32 $LIBS"
8491 cat >conftest.$ac_ext <<_ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8507 rm -f conftest.$ac_objext conftest$ac_exeext
8508 if { (ac_try="$ac_link"
8510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511 *) ac_try_echo=$ac_try;;
8513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514 (eval "$ac_link") 2>conftest.er1
8516 grep -v '^ *+' conftest.er1 >conftest.err
8518 cat conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } &&
8521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8522 { (case "(($ac_try" in
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_try") 2>&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; } &&
8531 { ac_try='test -s conftest$ac_exeext'
8532 { (case "(($ac_try" in
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_try") 2>&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; }; then
8541 ac_cv_lib_shell32_main=yes
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 ac_cv_lib_shell32_main=no
8549 rm -f core conftest.err conftest.$ac_objext \
8550 conftest$ac_exeext conftest.$ac_ext
8551 LIBS=$ac_check_lib_save_LIBS
8553 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8554 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8555 if test $ac_cv_lib_shell32_main = yes; then
8556 cat >>confdefs.h <<_ACEOF
8557 #define HAVE_LIBSHELL32 1
8560 LIBS="-lshell32 $LIBS"
8566 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8567 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8568 if test "${ac_cv_search_dlopen+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 ac_func_search_save_LIBS=$LIBS
8572 cat >conftest.$ac_ext <<_ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8579 /* Override any GCC internal prototype to avoid an error.
8580 Use char because int might match the return type of a GCC
8581 builtin and then its argument prototype would still apply. */
8594 for ac_lib in '' dl; do
8595 if test -z "$ac_lib"; then
8596 ac_res="none required"
8599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8601 rm -f conftest.$ac_objext conftest$ac_exeext
8602 if { (ac_try="$ac_link"
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_link") 2>conftest.er1
8610 grep -v '^ *+' conftest.er1 >conftest.err
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616 { (case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_try") 2>&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try='test -s conftest$ac_exeext'
8626 { (case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_try") 2>&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_cv_search_dlopen=$ac_res
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8643 rm -f core conftest.err conftest.$ac_objext \
8645 if test "${ac_cv_search_dlopen+set}" = set; then
8649 if test "${ac_cv_search_dlopen+set}" = set; then
8652 ac_cv_search_dlopen=no
8655 LIBS=$ac_func_search_save_LIBS
8657 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8658 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8659 ac_res=$ac_cv_search_dlopen
8660 if test "$ac_res" != no; then
8661 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8664 cat >>confdefs.h <<\_ACEOF
8665 #define HAVE_DLOPEN 1
8672 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8673 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8677 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8678 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8679 if test "${ac_cv_search_clock_gettime+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8682 ac_func_search_save_LIBS=$LIBS
8683 cat >conftest.$ac_ext <<_ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8690 /* Override any GCC internal prototype to avoid an error.
8691 Use char because int might match the return type of a GCC
8692 builtin and then its argument prototype would still apply. */
8696 char clock_gettime ();
8700 return clock_gettime ();
8705 for ac_lib in '' rt; do
8706 if test -z "$ac_lib"; then
8707 ac_res="none required"
8710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (ac_try="$ac_link"
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719 (eval "$ac_link") 2>conftest.er1
8721 grep -v '^ *+' conftest.er1 >conftest.err
8723 cat conftest.err >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } &&
8726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8727 { (case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_try") 2>&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; } &&
8736 { ac_try='test -s conftest$ac_exeext'
8737 { (case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_try") 2>&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746 ac_cv_search_clock_gettime=$ac_res
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8754 rm -f core conftest.err conftest.$ac_objext \
8756 if test "${ac_cv_search_clock_gettime+set}" = set; then
8760 if test "${ac_cv_search_clock_gettime+set}" = set; then
8763 ac_cv_search_clock_gettime=no
8766 LIBS=$ac_func_search_save_LIBS
8768 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8769 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8770 ac_res=$ac_cv_search_clock_gettime
8771 if test "$ac_res" != no; then
8772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8777 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8778 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8779 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8780 if test "${ac_cv_search_setupterm+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 ac_func_search_save_LIBS=$LIBS
8784 cat >conftest.$ac_ext <<_ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8791 /* Override any GCC internal prototype to avoid an error.
8792 Use char because int might match the return type of a GCC
8793 builtin and then its argument prototype would still apply. */
8801 return setupterm ();
8806 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8807 if test -z "$ac_lib"; then
8808 ac_res="none required"
8811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8813 rm -f conftest.$ac_objext conftest$ac_exeext
8814 if { (ac_try="$ac_link"
8816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817 *) ac_try_echo=$ac_try;;
8819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820 (eval "$ac_link") 2>conftest.er1
8822 grep -v '^ *+' conftest.er1 >conftest.err
8824 cat conftest.err >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } &&
8827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8828 { (case "(($ac_try" in
8829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830 *) ac_try_echo=$ac_try;;
8832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833 (eval "$ac_try") 2>&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; } &&
8837 { ac_try='test -s conftest$ac_exeext'
8838 { (case "(($ac_try" in
8839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8840 *) ac_try_echo=$ac_try;;
8842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8843 (eval "$ac_try") 2>&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; }; then
8847 ac_cv_search_setupterm=$ac_res
8849 echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8855 rm -f core conftest.err conftest.$ac_objext \
8857 if test "${ac_cv_search_setupterm+set}" = set; then
8861 if test "${ac_cv_search_setupterm+set}" = set; then
8864 ac_cv_search_setupterm=no
8867 LIBS=$ac_func_search_save_LIBS
8869 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8870 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8871 ac_res=$ac_cv_search_setupterm
8872 if test "$ac_res" != no; then
8873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8876 cat >>confdefs.h <<\_ACEOF
8877 #define HAVE_TERMINFO 1
8887 if test "$llvm_cv_enable_libedit" = "yes" ; then
8888 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8889 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8890 if test "${ac_cv_search_el_init+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 ac_func_search_save_LIBS=$LIBS
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8901 /* Override any GCC internal prototype to avoid an error.
8902 Use char because int might match the return type of a GCC
8903 builtin and then its argument prototype would still apply. */
8916 for ac_lib in '' edit; do
8917 if test -z "$ac_lib"; then
8918 ac_res="none required"
8921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8923 rm -f conftest.$ac_objext conftest$ac_exeext
8924 if { (ac_try="$ac_link"
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_link") 2>conftest.er1
8932 grep -v '^ *+' conftest.er1 >conftest.err
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8938 { (case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_try") 2>&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try='test -s conftest$ac_exeext'
8948 { (case "(($ac_try" in
8949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953 (eval "$ac_try") 2>&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 ac_cv_search_el_init=$ac_res
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8965 rm -f core conftest.err conftest.$ac_objext \
8967 if test "${ac_cv_search_el_init+set}" = set; then
8971 if test "${ac_cv_search_el_init+set}" = set; then
8974 ac_cv_search_el_init=no
8977 LIBS=$ac_func_search_save_LIBS
8979 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
8980 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
8981 ac_res=$ac_cv_search_el_init
8982 if test "$ac_res" != no; then
8983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8985 cat >>confdefs.h <<\_ACEOF
8986 #define HAVE_LIBEDIT 1
8993 if test "$llvm_cv_enable_libffi" = "yes" ; then
8994 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
8995 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
8996 if test "${ac_cv_search_ffi_call+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8999 ac_func_search_save_LIBS=$LIBS
9000 cat >conftest.$ac_ext <<_ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h. */
9007 /* Override any GCC internal prototype to avoid an error.
9008 Use char because int might match the return type of a GCC
9009 builtin and then its argument prototype would still apply. */
9022 for ac_lib in '' ffi; do
9023 if test -z "$ac_lib"; then
9024 ac_res="none required"
9027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9029 rm -f conftest.$ac_objext conftest$ac_exeext
9030 if { (ac_try="$ac_link"
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036 (eval "$ac_link") 2>conftest.er1
9038 grep -v '^ *+' conftest.er1 >conftest.err
9040 cat conftest.err >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } &&
9043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9044 { (case "(($ac_try" in
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049 (eval "$ac_try") 2>&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; } &&
9053 { ac_try='test -s conftest$ac_exeext'
9054 { (case "(($ac_try" in
9055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059 (eval "$ac_try") 2>&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 ac_cv_search_ffi_call=$ac_res
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9071 rm -f core conftest.err conftest.$ac_objext \
9073 if test "${ac_cv_search_ffi_call+set}" = set; then
9077 if test "${ac_cv_search_ffi_call+set}" = set; then
9080 ac_cv_search_ffi_call=no
9083 LIBS=$ac_func_search_save_LIBS
9085 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9086 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9087 ac_res=$ac_cv_search_ffi_call
9088 if test "$ac_res" != no; then
9089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9091 cat >>confdefs.h <<\_ACEOF
9092 #define HAVE_FFI_CALL 1
9096 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9097 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9098 { (exit 1); exit 1; }; }
9103 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9104 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9105 if test "${ac_cv_search_mallinfo+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 ac_func_search_save_LIBS=$LIBS
9109 cat >conftest.$ac_ext <<_ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9116 /* Override any GCC internal prototype to avoid an error.
9117 Use char because int might match the return type of a GCC
9118 builtin and then its argument prototype would still apply. */
9131 for ac_lib in '' malloc; do
9132 if test -z "$ac_lib"; then
9133 ac_res="none required"
9136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9138 rm -f conftest.$ac_objext conftest$ac_exeext
9139 if { (ac_try="$ac_link"
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_link") 2>conftest.er1
9147 grep -v '^ *+' conftest.er1 >conftest.err
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9153 { (case "(($ac_try" in
9154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155 *) ac_try_echo=$ac_try;;
9157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158 (eval "$ac_try") 2>&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; } &&
9162 { ac_try='test -s conftest$ac_exeext'
9163 { (case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_try") 2>&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; }; then
9172 ac_cv_search_mallinfo=$ac_res
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9180 rm -f core conftest.err conftest.$ac_objext \
9182 if test "${ac_cv_search_mallinfo+set}" = set; then
9186 if test "${ac_cv_search_mallinfo+set}" = set; then
9189 ac_cv_search_mallinfo=no
9192 LIBS=$ac_func_search_save_LIBS
9194 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9195 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9196 ac_res=$ac_cv_search_mallinfo
9197 if test "$ac_res" != no; then
9198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9200 cat >>confdefs.h <<\_ACEOF
9201 #define HAVE_MALLINFO 1
9207 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9209 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9210 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9211 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 ac_check_lib_save_LIBS=$LIBS
9215 LIBS="-lpthread $LIBS"
9216 cat >conftest.$ac_ext <<_ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9223 /* Override any GCC internal prototype to avoid an error.
9224 Use char because int might match the return type of a GCC
9225 builtin and then its argument prototype would still apply. */
9229 char pthread_mutex_init ();
9233 return pthread_mutex_init ();
9238 rm -f conftest.$ac_objext conftest$ac_exeext
9239 if { (ac_try="$ac_link"
9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242 *) ac_try_echo=$ac_try;;
9244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245 (eval "$ac_link") 2>conftest.er1
9247 grep -v '^ *+' conftest.er1 >conftest.err
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9253 { (case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_try") 2>&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest$ac_exeext'
9263 { (case "(($ac_try" in
9264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265 *) ac_try_echo=$ac_try;;
9267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268 (eval "$ac_try") 2>&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_cv_lib_pthread_pthread_mutex_init=yes
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9277 ac_cv_lib_pthread_pthread_mutex_init=no
9280 rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 LIBS=$ac_check_lib_save_LIBS
9284 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9285 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9286 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9287 cat >>confdefs.h <<_ACEOF
9288 #define HAVE_LIBPTHREAD 1
9291 LIBS="-lpthread $LIBS"
9295 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9296 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9297 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9298 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 ac_func_search_save_LIBS=$LIBS
9301 cat >conftest.$ac_ext <<_ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9308 /* Override any GCC internal prototype to avoid an error.
9309 Use char because int might match the return type of a GCC
9310 builtin and then its argument prototype would still apply. */
9314 char pthread_mutex_lock ();
9318 return pthread_mutex_lock ();
9323 for ac_lib in '' pthread; do
9324 if test -z "$ac_lib"; then
9325 ac_res="none required"
9328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9330 rm -f conftest.$ac_objext conftest$ac_exeext
9331 if { (ac_try="$ac_link"
9333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334 *) ac_try_echo=$ac_try;;
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337 (eval "$ac_link") 2>conftest.er1
9339 grep -v '^ *+' conftest.er1 >conftest.err
9341 cat conftest.err >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } &&
9344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9345 { (case "(($ac_try" in
9346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347 *) ac_try_echo=$ac_try;;
9349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350 (eval "$ac_try") 2>&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; } &&
9354 { ac_try='test -s conftest$ac_exeext'
9355 { (case "(($ac_try" in
9356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357 *) ac_try_echo=$ac_try;;
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_try") 2>&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; }; then
9364 ac_cv_search_pthread_mutex_lock=$ac_res
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9372 rm -f core conftest.err conftest.$ac_objext \
9374 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9378 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9381 ac_cv_search_pthread_mutex_lock=no
9384 LIBS=$ac_func_search_save_LIBS
9386 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9387 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9388 ac_res=$ac_cv_search_pthread_mutex_lock
9389 if test "$ac_res" != no; then
9390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9392 cat >>confdefs.h <<\_ACEOF
9393 #define HAVE_PTHREAD_MUTEX_LOCK 1
9398 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9399 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9400 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 ac_func_search_save_LIBS=$LIBS
9404 cat >conftest.$ac_ext <<_ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9411 /* Override any GCC internal prototype to avoid an error.
9412 Use char because int might match the return type of a GCC
9413 builtin and then its argument prototype would still apply. */
9417 char pthread_rwlock_init ();
9421 return pthread_rwlock_init ();
9426 for ac_lib in '' pthread; do
9427 if test -z "$ac_lib"; then
9428 ac_res="none required"
9431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9433 rm -f conftest.$ac_objext conftest$ac_exeext
9434 if { (ac_try="$ac_link"
9436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9437 *) ac_try_echo=$ac_try;;
9439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9440 (eval "$ac_link") 2>conftest.er1
9442 grep -v '^ *+' conftest.er1 >conftest.err
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9448 { (case "(($ac_try" in
9449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450 *) ac_try_echo=$ac_try;;
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453 (eval "$ac_try") 2>&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; } &&
9457 { ac_try='test -s conftest$ac_exeext'
9458 { (case "(($ac_try" in
9459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9460 *) ac_try_echo=$ac_try;;
9462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463 (eval "$ac_try") 2>&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 ac_cv_search_pthread_rwlock_init=$ac_res
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9475 rm -f core conftest.err conftest.$ac_objext \
9477 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9481 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9484 ac_cv_search_pthread_rwlock_init=no
9487 LIBS=$ac_func_search_save_LIBS
9489 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9490 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9491 ac_res=$ac_cv_search_pthread_rwlock_init
9492 if test "$ac_res" != no; then
9493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9495 cat >>confdefs.h <<\_ACEOF
9496 #define HAVE_PTHREAD_RWLOCK_INIT 1
9501 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9502 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9503 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 ac_func_search_save_LIBS=$LIBS
9507 cat >conftest.$ac_ext <<_ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h. */
9514 /* Override any GCC internal prototype to avoid an error.
9515 Use char because int might match the return type of a GCC
9516 builtin and then its argument prototype would still apply. */
9520 char pthread_getspecific ();
9524 return pthread_getspecific ();
9529 for ac_lib in '' pthread; do
9530 if test -z "$ac_lib"; then
9531 ac_res="none required"
9534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9536 rm -f conftest.$ac_objext conftest$ac_exeext
9537 if { (ac_try="$ac_link"
9539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540 *) ac_try_echo=$ac_try;;
9542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9543 (eval "$ac_link") 2>conftest.er1
9545 grep -v '^ *+' conftest.er1 >conftest.err
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9551 { (case "(($ac_try" in
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_try") 2>&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; } &&
9560 { ac_try='test -s conftest$ac_exeext'
9561 { (case "(($ac_try" in
9562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9563 *) ac_try_echo=$ac_try;;
9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566 (eval "$ac_try") 2>&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
9570 ac_cv_search_pthread_getspecific=$ac_res
9572 echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.$ac_ext >&5
9578 rm -f core conftest.err conftest.$ac_objext \
9580 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9584 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9587 ac_cv_search_pthread_getspecific=no
9590 LIBS=$ac_func_search_save_LIBS
9592 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9593 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9594 ac_res=$ac_cv_search_pthread_getspecific
9595 if test "$ac_res" != no; then
9596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9598 cat >>confdefs.h <<\_ACEOF
9599 #define HAVE_PTHREAD_GETSPECIFIC 1
9606 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9608 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9609 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9610 if test "${ac_cv_lib_z_compress2+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 ac_check_lib_save_LIBS=$LIBS
9615 cat >conftest.$ac_ext <<_ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9622 /* Override any GCC internal prototype to avoid an error.
9623 Use char because int might match the return type of a GCC
9624 builtin and then its argument prototype would still apply. */
9632 return compress2 ();
9637 rm -f conftest.$ac_objext conftest$ac_exeext
9638 if { (ac_try="$ac_link"
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_link") 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9652 { (case "(($ac_try" in
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_try") 2>&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest$ac_exeext'
9662 { (case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_try") 2>&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; }; then
9671 ac_cv_lib_z_compress2=yes
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9676 ac_cv_lib_z_compress2=no
9679 rm -f core conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9681 LIBS=$ac_check_lib_save_LIBS
9683 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9684 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9685 if test $ac_cv_lib_z_compress2 = yes; then
9686 cat >>confdefs.h <<_ACEOF
9697 # Check whether --with-oprofile was given.
9698 if test "${with_oprofile+set}" = set; then
9699 withval=$with_oprofile;
9703 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9707 *) llvm_cv_oppath="${withval}/lib/oprofile"
9708 CPPFLAGS="-I${withval}/include";;
9710 case $llvm_cv_os_type in
9712 if test -n "$llvm_cv_oppath" ; then
9713 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9714 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9715 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9716 if test "${ac_cv_search_bfd_init+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 ac_func_search_save_LIBS=$LIBS
9720 cat >conftest.$ac_ext <<_ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9727 /* Override any GCC internal prototype to avoid an error.
9728 Use char because int might match the return type of a GCC
9729 builtin and then its argument prototype would still apply. */
9742 for ac_lib in '' bfd; do
9743 if test -z "$ac_lib"; then
9744 ac_res="none required"
9747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9749 rm -f conftest.$ac_objext conftest$ac_exeext
9750 if { (ac_try="$ac_link"
9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_link") 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9764 { (case "(($ac_try" in
9765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766 *) ac_try_echo=$ac_try;;
9768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769 (eval "$ac_try") 2>&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; } &&
9773 { ac_try='test -s conftest$ac_exeext'
9774 { (case "(($ac_try" in
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_try") 2>&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then
9783 ac_cv_search_bfd_init=$ac_res
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9791 rm -f core conftest.err conftest.$ac_objext \
9793 if test "${ac_cv_search_bfd_init+set}" = set; then
9797 if test "${ac_cv_search_bfd_init+set}" = set; then
9800 ac_cv_search_bfd_init=no
9803 LIBS=$ac_func_search_save_LIBS
9805 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9806 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9807 ac_res=$ac_cv_search_bfd_init
9808 if test "$ac_res" != no; then
9809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9813 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9814 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9815 if test "${ac_cv_search_op_open_agent+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 ac_func_search_save_LIBS=$LIBS
9819 cat >conftest.$ac_ext <<_ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9826 /* Override any GCC internal prototype to avoid an error.
9827 Use char because int might match the return type of a GCC
9828 builtin and then its argument prototype would still apply. */
9832 char op_open_agent ();
9836 return op_open_agent ();
9841 for ac_lib in '' opagent; do
9842 if test -z "$ac_lib"; then
9843 ac_res="none required"
9846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_link") 2>conftest.er1
9857 grep -v '^ *+' conftest.er1 >conftest.err
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9863 { (case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_try") 2>&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; } &&
9872 { ac_try='test -s conftest$ac_exeext'
9873 { (case "(($ac_try" in
9874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875 *) ac_try_echo=$ac_try;;
9877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878 (eval "$ac_try") 2>&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; }; then
9882 ac_cv_search_op_open_agent=$ac_res
9884 echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9890 rm -f core conftest.err conftest.$ac_objext \
9892 if test "${ac_cv_search_op_open_agent+set}" = set; then
9896 if test "${ac_cv_search_op_open_agent+set}" = set; then
9899 ac_cv_search_op_open_agent=no
9902 LIBS=$ac_func_search_save_LIBS
9904 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9905 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9906 ac_res=$ac_cv_search_op_open_agent
9907 if test "$ac_res" != no; then
9908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9912 echo "Error! You need to have libopagent around."
9917 if test "${ac_cv_header_opagent_h+set}" = set; then
9918 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9919 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9920 if test "${ac_cv_header_opagent_h+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9924 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9926 # Is the header compilable?
9927 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9928 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9929 cat >conftest.$ac_ext <<_ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 $ac_includes_default
9936 #include <opagent.h>
9938 rm -f conftest.$ac_objext
9939 if { (ac_try="$ac_compile"
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_compile") 2>conftest.er1
9947 grep -v '^ *+' conftest.er1 >conftest.err
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9953 { (case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_try") 2>&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; } &&
9962 { ac_try='test -s conftest.$ac_objext'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9972 ac_header_compiler=yes
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9977 ac_header_compiler=no
9980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9982 echo "${ECHO_T}$ac_header_compiler" >&6; }
9984 # Is the header present?
9985 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
9986 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
9987 cat >conftest.$ac_ext <<_ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 #include <opagent.h>
9995 if { (ac_try="$ac_cpp conftest.$ac_ext"
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10003 grep -v '^ *+' conftest.er1 >conftest.err
10005 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } >/dev/null; then
10008 if test -s conftest.err; then
10009 ac_cpp_err=$ac_c_preproc_warn_flag
10010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10017 if test -z "$ac_cpp_err"; then
10018 ac_header_preproc=yes
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023 ac_header_preproc=no
10026 rm -f conftest.err conftest.$ac_ext
10027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10028 echo "${ECHO_T}$ac_header_preproc" >&6; }
10030 # So? What about this header?
10031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10033 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10034 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10036 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10037 ac_header_preproc=yes
10040 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10041 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10042 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10043 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10044 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10045 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10046 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10047 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10049 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10051 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10053 ## ------------------------------------ ##
10054 ## Report this to http://llvm.org/bugs/ ##
10055 ## ------------------------------------ ##
10057 ) | sed "s/^/$as_me: WARNING: /" >&2
10060 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10061 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10062 if test "${ac_cv_header_opagent_h+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 ac_cv_header_opagent_h=$ac_header_preproc
10067 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10068 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10071 if test $ac_cv_header_opagent_h = yes; then
10075 echo "Error! You need to have opagent.h around."
10083 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10084 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10085 { (exit 1); exit 1; }; } ;;
10096 cat >>confdefs.h <<_ACEOF
10097 #define LLVM_USE_OPROFILE $USE_OPROFILE
10102 # Check whether --with-intel-jitevents was given.
10103 if test "${with_intel_jitevents+set}" = set; then
10104 withval=$with_intel_jitevents;
10106 yes) USE_INTEL_JITEVENTS=1
10108 no) USE_INTEL_JITEVENTS=0
10110 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10111 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10112 { (exit 1); exit 1; }; };;
10115 case $llvm_cv_os_type in
10116 Linux|Win32|Cygwin|MingW) ;;
10117 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10118 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10119 { (exit 1); exit 1; }; };;
10122 case "$llvm_cv_target_arch" in
10124 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10125 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10126 { (exit 1); exit 1; }; };;
10131 USE_INTEL_JITEVENTS=0
10137 cat >>confdefs.h <<_ACEOF
10138 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10142 for ac_prog in xml2-config
10144 # Extract the first word of "$ac_prog", so it can be a program name with args.
10145 set dummy $ac_prog; ac_word=$2
10146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10148 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 if test -n "$XML2CONFIG"; then
10152 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10158 test -z "$as_dir" && as_dir=.
10159 for ac_exec_ext in '' $ac_executable_extensions; do
10160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10161 ac_cv_prog_XML2CONFIG="$ac_prog"
10162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10171 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10172 if test -n "$XML2CONFIG"; then
10173 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10174 echo "${ECHO_T}$XML2CONFIG" >&6; }
10176 { echo "$as_me:$LINENO: result: no" >&5
10177 echo "${ECHO_T}no" >&6; }
10181 test -n "$XML2CONFIG" && break
10185 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10186 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10187 if test "x$XML2CONFIG" = "x"; then
10188 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10189 echo "${ECHO_T}xml2-config not found" >&6; }
10191 LIBXML2_INC=`$XML2CONFIG --cflags`
10192 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10193 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10194 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10195 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10196 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-lxml2 $LIBS"
10201 cat >conftest.$ac_ext <<_ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10208 /* Override any GCC internal prototype to avoid an error.
10209 Use char because int might match the return type of a GCC
10210 builtin and then its argument prototype would still apply. */
10214 char xmlReadFile ();
10218 return xmlReadFile ();
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>conftest.er1
10232 grep -v '^ *+' conftest.er1 >conftest.err
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
10237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10238 { (case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_try") 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try='test -s conftest$ac_exeext'
10248 { (case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_try") 2>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_cv_lib_xml2_xmlReadFile=yes
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 ac_cv_lib_xml2_xmlReadFile=no
10265 rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10267 LIBS=$ac_check_lib_save_LIBS
10269 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10270 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10271 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10273 cat >>confdefs.h <<\_ACEOF
10274 #define CLANG_HAVE_LIBXML 1
10277 LIBXML2_LIBS="-lxml2"
10290 ac_header_dirent=no
10291 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10292 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10293 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10294 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 cat >conftest.$ac_ext <<_ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10304 #include <sys/types.h>
10316 rm -f conftest.$ac_objext
10317 if { (ac_try="$ac_compile"
10318 case "(($ac_try" in
10319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320 *) ac_try_echo=$ac_try;;
10322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10323 (eval "$ac_compile") 2>conftest.er1
10325 grep -v '^ *+' conftest.er1 >conftest.err
10327 cat conftest.err >&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } &&
10330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10331 { (case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_try") 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try='test -s conftest.$ac_objext'
10341 { (case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_try") 2>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; }; then
10350 eval "$as_ac_Header=yes"
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10355 eval "$as_ac_Header=no"
10358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360 ac_res=`eval echo '${'$as_ac_Header'}'`
10361 { echo "$as_me:$LINENO: result: $ac_res" >&5
10362 echo "${ECHO_T}$ac_res" >&6; }
10363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10364 cat >>confdefs.h <<_ACEOF
10365 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10368 ac_header_dirent=$ac_hdr; break
10372 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10373 if test $ac_header_dirent = dirent.h; then
10374 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10376 if test "${ac_cv_search_opendir+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 ac_func_search_save_LIBS=$LIBS
10380 cat >conftest.$ac_ext <<_ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10387 /* Override any GCC internal prototype to avoid an error.
10388 Use char because int might match the return type of a GCC
10389 builtin and then its argument prototype would still apply. */
10402 for ac_lib in '' dir; do
10403 if test -z "$ac_lib"; then
10404 ac_res="none required"
10407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10409 rm -f conftest.$ac_objext conftest$ac_exeext
10410 if { (ac_try="$ac_link"
10411 case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_link") 2>conftest.er1
10418 grep -v '^ *+' conftest.er1 >conftest.err
10420 cat conftest.err >&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } &&
10423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10424 { (case "(($ac_try" in
10425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429 (eval "$ac_try") 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; } &&
10433 { ac_try='test -s conftest$ac_exeext'
10434 { (case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_try") 2>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
10443 ac_cv_search_opendir=$ac_res
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10451 rm -f core conftest.err conftest.$ac_objext \
10453 if test "${ac_cv_search_opendir+set}" = set; then
10457 if test "${ac_cv_search_opendir+set}" = set; then
10460 ac_cv_search_opendir=no
10462 rm conftest.$ac_ext
10463 LIBS=$ac_func_search_save_LIBS
10465 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10466 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10467 ac_res=$ac_cv_search_opendir
10468 if test "$ac_res" != no; then
10469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10474 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10475 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10476 if test "${ac_cv_search_opendir+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 ac_func_search_save_LIBS=$LIBS
10480 cat >conftest.$ac_ext <<_ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10487 /* Override any GCC internal prototype to avoid an error.
10488 Use char because int might match the return type of a GCC
10489 builtin and then its argument prototype would still apply. */
10502 for ac_lib in '' x; do
10503 if test -z "$ac_lib"; then
10504 ac_res="none required"
10507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10509 rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (ac_try="$ac_link"
10511 case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_link") 2>conftest.er1
10518 grep -v '^ *+' conftest.er1 >conftest.err
10520 cat conftest.err >&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); } &&
10523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10524 { (case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_try") 2>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; } &&
10533 { ac_try='test -s conftest$ac_exeext'
10534 { (case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_try") 2>&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
10543 ac_cv_search_opendir=$ac_res
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10551 rm -f core conftest.err conftest.$ac_objext \
10553 if test "${ac_cv_search_opendir+set}" = set; then
10557 if test "${ac_cv_search_opendir+set}" = set; then
10560 ac_cv_search_opendir=no
10562 rm conftest.$ac_ext
10563 LIBS=$ac_func_search_save_LIBS
10565 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10566 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10567 ac_res=$ac_cv_search_opendir
10568 if test "$ac_res" != no; then
10569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10575 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10576 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10577 if test "${ac_cv_header_mmap_anon+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 ac_cpp='$CPP $CPPFLAGS'
10582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10586 cat >conftest.$ac_ext <<_ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10592 #include <sys/mman.h>
10593 #include <unistd.h>
10598 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10603 rm -f conftest.$ac_objext
10604 if { (ac_try="$ac_compile"
10605 case "(($ac_try" in
10606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610 (eval "$ac_compile") 2>conftest.er1
10612 grep -v '^ *+' conftest.er1 >conftest.err
10614 cat conftest.err >&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
10617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10618 { (case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_try") 2>&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; } &&
10627 { ac_try='test -s conftest.$ac_objext'
10628 { (case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_try") 2>&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; }; then
10637 ac_cv_header_mmap_anon=yes
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10642 ac_cv_header_mmap_anon=no
10645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10647 ac_cpp='$CPP $CPPFLAGS'
10648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10654 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10655 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10656 if test "$ac_cv_header_mmap_anon" = yes; then
10658 cat >>confdefs.h <<\_ACEOF
10659 #define HAVE_MMAP_ANONYMOUS 1
10664 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10665 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10666 if test "${ac_cv_header_stat_broken+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 cat >conftest.$ac_ext <<_ACEOF
10672 cat confdefs.h >>conftest.$ac_ext
10673 cat >>conftest.$ac_ext <<_ACEOF
10674 /* end confdefs.h. */
10675 #include <sys/types.h>
10676 #include <sys/stat.h>
10678 #if defined S_ISBLK && defined S_IFDIR
10679 # if S_ISBLK (S_IFDIR)
10684 #if defined S_ISBLK && defined S_IFCHR
10685 # if S_ISBLK (S_IFCHR)
10690 #if defined S_ISLNK && defined S_IFREG
10691 # if S_ISLNK (S_IFREG)
10696 #if defined S_ISSOCK && defined S_IFREG
10697 # if S_ISSOCK (S_IFREG)
10703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10704 $EGREP "You lose" >/dev/null 2>&1; then
10705 ac_cv_header_stat_broken=yes
10707 ac_cv_header_stat_broken=no
10712 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10713 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10714 if test $ac_cv_header_stat_broken = yes; then
10716 cat >>confdefs.h <<\_ACEOF
10717 #define STAT_MACROS_BROKEN 1
10722 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10723 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10724 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 cat >conftest.$ac_ext <<_ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10733 #include <sys/types.h>
10734 #include <sys/wait.h>
10735 #ifndef WEXITSTATUS
10736 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10739 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10747 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10752 rm -f conftest.$ac_objext
10753 if { (ac_try="$ac_compile"
10754 case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_compile") 2>conftest.er1
10761 grep -v '^ *+' conftest.er1 >conftest.err
10763 cat conftest.err >&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } &&
10766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10767 { (case "(($ac_try" in
10768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_try") 2>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; } &&
10776 { ac_try='test -s conftest.$ac_objext'
10777 { (case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_try") 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 ac_cv_header_sys_wait_h=yes
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 ac_cv_header_sys_wait_h=no
10794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10796 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10797 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10798 if test $ac_cv_header_sys_wait_h = yes; then
10800 cat >>confdefs.h <<\_ACEOF
10801 #define HAVE_SYS_WAIT_H 1
10806 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10807 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10808 if test "${ac_cv_header_time+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 cat >conftest.$ac_ext <<_ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817 #include <sys/types.h>
10818 #include <sys/time.h>
10824 if ((struct tm *) 0)
10830 rm -f conftest.$ac_objext
10831 if { (ac_try="$ac_compile"
10832 case "(($ac_try" in
10833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 (eval "$ac_compile") 2>conftest.er1
10839 grep -v '^ *+' conftest.er1 >conftest.err
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10845 { (case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850 (eval "$ac_try") 2>&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; } &&
10854 { ac_try='test -s conftest.$ac_objext'
10855 { (case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_try") 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_cv_header_time=yes
10866 echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10869 ac_cv_header_time=no
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10875 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10876 if test $ac_cv_header_time = yes; then
10878 cat >>confdefs.h <<\_ACEOF
10879 #define TIME_WITH_SYS_TIME 1
10886 ac_cpp='$CXXCPP $CPPFLAGS'
10887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10892 for ac_header in cxxabi.h
10894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10900 cat >conftest.$ac_ext <<_ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10906 #include <stddef.h>
10909 #include <$ac_header>
10911 rm -f conftest.$ac_objext
10912 if { (ac_try="$ac_compile"
10913 case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_compile") 2>conftest.er1
10920 grep -v '^ *+' conftest.er1 >conftest.err
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } &&
10925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10926 { (case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_try") 2>&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; } &&
10935 { ac_try='test -s conftest.$ac_objext'
10936 { (case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941 (eval "$ac_try") 2>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10945 eval "$as_ac_Header=yes"
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 eval "$as_ac_Header=no"
10953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10955 ac_res=`eval echo '${'$as_ac_Header'}'`
10956 { echo "$as_me:$LINENO: result: $ac_res" >&5
10957 echo "${ECHO_T}$ac_res" >&6; }
10958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10959 cat >>confdefs.h <<_ACEOF
10960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10968 ac_cpp='$CPP $CPPFLAGS'
10969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10979 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
10981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10988 ac_res=`eval echo '${'$as_ac_Header'}'`
10989 { echo "$as_me:$LINENO: result: $ac_res" >&5
10990 echo "${ECHO_T}$ac_res" >&6; }
10992 # Is the header compilable?
10993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10995 cat >conftest.$ac_ext <<_ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 $ac_includes_default
11002 #include <$ac_header>
11004 rm -f conftest.$ac_objext
11005 if { (ac_try="$ac_compile"
11006 case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_compile") 2>conftest.er1
11013 grep -v '^ *+' conftest.er1 >conftest.err
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11019 { (case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_try") 2>&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; } &&
11028 { ac_try='test -s conftest.$ac_objext'
11029 { (case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_try") 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 ac_header_compiler=yes
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11043 ac_header_compiler=no
11046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11047 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11048 echo "${ECHO_T}$ac_header_compiler" >&6; }
11050 # Is the header present?
11051 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11053 cat >conftest.$ac_ext <<_ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11059 #include <$ac_header>
11061 if { (ac_try="$ac_cpp conftest.$ac_ext"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11069 grep -v '^ *+' conftest.er1 >conftest.err
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } >/dev/null; then
11074 if test -s conftest.err; then
11075 ac_cpp_err=$ac_c_preproc_warn_flag
11076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11083 if test -z "$ac_cpp_err"; then
11084 ac_header_preproc=yes
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11089 ac_header_preproc=no
11092 rm -f conftest.err conftest.$ac_ext
11093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11094 echo "${ECHO_T}$ac_header_preproc" >&6; }
11096 # So? What about this header?
11097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11103 ac_header_preproc=yes
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11119 ## ------------------------------------ ##
11120 ## Report this to http://llvm.org/bugs/ ##
11121 ## ------------------------------------ ##
11123 ) | sed "s/^/$as_me: WARNING: /" >&2
11126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 eval "$as_ac_Header=\$ac_header_preproc"
11133 ac_res=`eval echo '${'$as_ac_Header'}'`
11134 { echo "$as_me:$LINENO: result: $ac_res" >&5
11135 echo "${ECHO_T}$ac_res" >&6; }
11138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11139 cat >>confdefs.h <<_ACEOF
11140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11153 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 ac_res=`eval echo '${'$as_ac_Header'}'`
11163 { echo "$as_me:$LINENO: result: $ac_res" >&5
11164 echo "${ECHO_T}$ac_res" >&6; }
11166 # Is the header compilable?
11167 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11169 cat >conftest.$ac_ext <<_ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 $ac_includes_default
11176 #include <$ac_header>
11178 rm -f conftest.$ac_objext
11179 if { (ac_try="$ac_compile"
11180 case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_compile") 2>conftest.er1
11187 grep -v '^ *+' conftest.er1 >conftest.err
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11193 { (case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_try") 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; } &&
11202 { ac_try='test -s conftest.$ac_objext'
11203 { (case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_try") 2>&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; }; then
11212 ac_header_compiler=yes
11214 echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11217 ac_header_compiler=no
11220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11222 echo "${ECHO_T}$ac_header_compiler" >&6; }
11224 # Is the header present?
11225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11227 cat >conftest.$ac_ext <<_ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11233 #include <$ac_header>
11235 if { (ac_try="$ac_cpp conftest.$ac_ext"
11236 case "(($ac_try" in
11237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11238 *) ac_try_echo=$ac_try;;
11240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11243 grep -v '^ *+' conftest.er1 >conftest.err
11245 cat conftest.err >&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } >/dev/null; then
11248 if test -s conftest.err; then
11249 ac_cpp_err=$ac_c_preproc_warn_flag
11250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11257 if test -z "$ac_cpp_err"; then
11258 ac_header_preproc=yes
11260 echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.$ac_ext >&5
11263 ac_header_preproc=no
11266 rm -f conftest.err conftest.$ac_ext
11267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11268 echo "${ECHO_T}$ac_header_preproc" >&6; }
11270 # So? What about this header?
11271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11277 ac_header_preproc=yes
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11293 ## ------------------------------------ ##
11294 ## Report this to http://llvm.org/bugs/ ##
11295 ## ------------------------------------ ##
11297 ) | sed "s/^/$as_me: WARNING: /" >&2
11300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11305 eval "$as_ac_Header=\$ac_header_preproc"
11307 ac_res=`eval echo '${'$as_ac_Header'}'`
11308 { echo "$as_me:$LINENO: result: $ac_res" >&5
11309 echo "${ECHO_T}$ac_res" >&6; }
11312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11313 cat >>confdefs.h <<_ACEOF
11314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11322 for ac_header in utime.h
11324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 ac_res=`eval echo '${'$as_ac_Header'}'`
11332 { echo "$as_me:$LINENO: result: $ac_res" >&5
11333 echo "${ECHO_T}$ac_res" >&6; }
11335 # Is the header compilable?
11336 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11338 cat >conftest.$ac_ext <<_ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h. */
11344 $ac_includes_default
11345 #include <$ac_header>
11347 rm -f conftest.$ac_objext
11348 if { (ac_try="$ac_compile"
11349 case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_compile") 2>conftest.er1
11356 grep -v '^ *+' conftest.er1 >conftest.err
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } &&
11361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11362 { (case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_try") 2>&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; } &&
11371 { ac_try='test -s conftest.$ac_objext'
11372 { (case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377 (eval "$ac_try") 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_header_compiler=yes
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 ac_header_compiler=no
11389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11391 echo "${ECHO_T}$ac_header_compiler" >&6; }
11393 # Is the header present?
11394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11396 cat >conftest.$ac_ext <<_ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 #include <$ac_header>
11404 if { (ac_try="$ac_cpp conftest.$ac_ext"
11405 case "(($ac_try" in
11406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407 *) ac_try_echo=$ac_try;;
11409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11412 grep -v '^ *+' conftest.er1 >conftest.err
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } >/dev/null; then
11417 if test -s conftest.err; then
11418 ac_cpp_err=$ac_c_preproc_warn_flag
11419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11426 if test -z "$ac_cpp_err"; then
11427 ac_header_preproc=yes
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11432 ac_header_preproc=no
11435 rm -f conftest.err conftest.$ac_ext
11436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437 echo "${ECHO_T}$ac_header_preproc" >&6; }
11439 # So? What about this header?
11440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446 ac_header_preproc=yes
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11462 ## ------------------------------------ ##
11463 ## Report this to http://llvm.org/bugs/ ##
11464 ## ------------------------------------ ##
11466 ) | sed "s/^/$as_me: WARNING: /" >&2
11469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11474 eval "$as_ac_Header=\$ac_header_preproc"
11476 ac_res=`eval echo '${'$as_ac_Header'}'`
11477 { echo "$as_me:$LINENO: result: $ac_res" >&5
11478 echo "${ECHO_T}$ac_res" >&6; }
11481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11482 cat >>confdefs.h <<_ACEOF
11483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11495 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 ac_res=`eval echo '${'$as_ac_Header'}'`
11505 { echo "$as_me:$LINENO: result: $ac_res" >&5
11506 echo "${ECHO_T}$ac_res" >&6; }
11508 # Is the header compilable?
11509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11511 cat >conftest.$ac_ext <<_ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 $ac_includes_default
11518 #include <$ac_header>
11520 rm -f conftest.$ac_objext
11521 if { (ac_try="$ac_compile"
11522 case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527 (eval "$ac_compile") 2>conftest.er1
11529 grep -v '^ *+' conftest.er1 >conftest.err
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11535 { (case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_try") 2>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; } &&
11544 { ac_try='test -s conftest.$ac_objext'
11545 { (case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_try") 2>&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
11554 ac_header_compiler=yes
11556 echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11559 ac_header_compiler=no
11562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11564 echo "${ECHO_T}$ac_header_compiler" >&6; }
11566 # Is the header present?
11567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11569 cat >conftest.$ac_ext <<_ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 #include <$ac_header>
11577 if { (ac_try="$ac_cpp conftest.$ac_ext"
11578 case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11585 grep -v '^ *+' conftest.er1 >conftest.err
11587 cat conftest.err >&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } >/dev/null; then
11590 if test -s conftest.err; then
11591 ac_cpp_err=$ac_c_preproc_warn_flag
11592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11599 if test -z "$ac_cpp_err"; then
11600 ac_header_preproc=yes
11602 echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11605 ac_header_preproc=no
11608 rm -f conftest.err conftest.$ac_ext
11609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11610 echo "${ECHO_T}$ac_header_preproc" >&6; }
11612 # So? What about this header?
11613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11619 ac_header_preproc=yes
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11635 ## ------------------------------------ ##
11636 ## Report this to http://llvm.org/bugs/ ##
11637 ## ------------------------------------ ##
11639 ) | sed "s/^/$as_me: WARNING: /" >&2
11642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 eval "$as_ac_Header=\$ac_header_preproc"
11649 ac_res=`eval echo '${'$as_ac_Header'}'`
11650 { echo "$as_me:$LINENO: result: $ac_res" >&5
11651 echo "${ECHO_T}$ac_res" >&6; }
11654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11655 cat >>confdefs.h <<_ACEOF
11656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11666 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 ac_res=`eval echo '${'$as_ac_Header'}'`
11676 { echo "$as_me:$LINENO: result: $ac_res" >&5
11677 echo "${ECHO_T}$ac_res" >&6; }
11679 # Is the header compilable?
11680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11682 cat >conftest.$ac_ext <<_ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11688 $ac_includes_default
11689 #include <$ac_header>
11691 rm -f conftest.$ac_objext
11692 if { (ac_try="$ac_compile"
11693 case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_compile") 2>conftest.er1
11700 grep -v '^ *+' conftest.er1 >conftest.err
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
11705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11706 { (case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_try") 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; } &&
11715 { ac_try='test -s conftest.$ac_objext'
11716 { (case "(($ac_try" in
11717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718 *) ac_try_echo=$ac_try;;
11720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11721 (eval "$ac_try") 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 ac_header_compiler=yes
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11730 ac_header_compiler=no
11733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11735 echo "${ECHO_T}$ac_header_compiler" >&6; }
11737 # Is the header present?
11738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11740 cat >conftest.$ac_ext <<_ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746 #include <$ac_header>
11748 if { (ac_try="$ac_cpp conftest.$ac_ext"
11749 case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11756 grep -v '^ *+' conftest.er1 >conftest.err
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } >/dev/null; then
11761 if test -s conftest.err; then
11762 ac_cpp_err=$ac_c_preproc_warn_flag
11763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11770 if test -z "$ac_cpp_err"; then
11771 ac_header_preproc=yes
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 ac_header_preproc=no
11779 rm -f conftest.err conftest.$ac_ext
11780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11781 echo "${ECHO_T}$ac_header_preproc" >&6; }
11783 # So? What about this header?
11784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11790 ac_header_preproc=yes
11793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11806 ## ------------------------------------ ##
11807 ## Report this to http://llvm.org/bugs/ ##
11808 ## ------------------------------------ ##
11810 ) | sed "s/^/$as_me: WARNING: /" >&2
11813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 eval "$as_ac_Header=\$ac_header_preproc"
11820 ac_res=`eval echo '${'$as_ac_Header'}'`
11821 { echo "$as_me:$LINENO: result: $ac_res" >&5
11822 echo "${ECHO_T}$ac_res" >&6; }
11825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11826 cat >>confdefs.h <<_ACEOF
11827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11835 for ac_header in valgrind/valgrind.h
11837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11844 ac_res=`eval echo '${'$as_ac_Header'}'`
11845 { echo "$as_me:$LINENO: result: $ac_res" >&5
11846 echo "${ECHO_T}$ac_res" >&6; }
11848 # Is the header compilable?
11849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11851 cat >conftest.$ac_ext <<_ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 $ac_includes_default
11858 #include <$ac_header>
11860 rm -f conftest.$ac_objext
11861 if { (ac_try="$ac_compile"
11862 case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_compile") 2>conftest.er1
11869 grep -v '^ *+' conftest.er1 >conftest.err
11871 cat conftest.err >&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11875 { (case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_try") 2>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; } &&
11884 { ac_try='test -s conftest.$ac_objext'
11885 { (case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_try") 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11894 ac_header_compiler=yes
11896 echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11899 ac_header_compiler=no
11902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11904 echo "${ECHO_T}$ac_header_compiler" >&6; }
11906 # Is the header present?
11907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11909 cat >conftest.$ac_ext <<_ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11915 #include <$ac_header>
11917 if { (ac_try="$ac_cpp conftest.$ac_ext"
11918 case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11925 grep -v '^ *+' conftest.er1 >conftest.err
11927 cat conftest.err >&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } >/dev/null; then
11930 if test -s conftest.err; then
11931 ac_cpp_err=$ac_c_preproc_warn_flag
11932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11939 if test -z "$ac_cpp_err"; then
11940 ac_header_preproc=yes
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 ac_header_preproc=no
11948 rm -f conftest.err conftest.$ac_ext
11949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11950 echo "${ECHO_T}$ac_header_preproc" >&6; }
11952 # So? What about this header?
11953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11959 ac_header_preproc=yes
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11975 ## ------------------------------------ ##
11976 ## Report this to http://llvm.org/bugs/ ##
11977 ## ------------------------------------ ##
11979 ) | sed "s/^/$as_me: WARNING: /" >&2
11982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 eval "$as_ac_Header=\$ac_header_preproc"
11989 ac_res=`eval echo '${'$as_ac_Header'}'`
11990 { echo "$as_me:$LINENO: result: $ac_res" >&5
11991 echo "${ECHO_T}$ac_res" >&6; }
11994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11995 cat >>confdefs.h <<_ACEOF
11996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12004 for ac_header in fenv.h
12006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 ac_res=`eval echo '${'$as_ac_Header'}'`
12014 { echo "$as_me:$LINENO: result: $ac_res" >&5
12015 echo "${ECHO_T}$ac_res" >&6; }
12017 # Is the header compilable?
12018 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12020 cat >conftest.$ac_ext <<_ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12026 $ac_includes_default
12027 #include <$ac_header>
12029 rm -f conftest.$ac_objext
12030 if { (ac_try="$ac_compile"
12031 case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_compile") 2>conftest.er1
12038 grep -v '^ *+' conftest.er1 >conftest.err
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12044 { (case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_try") 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest.$ac_objext'
12054 { (case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_try") 2>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 ac_header_compiler=yes
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 ac_header_compiler=no
12071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12073 echo "${ECHO_T}$ac_header_compiler" >&6; }
12075 # Is the header present?
12076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12078 cat >conftest.$ac_ext <<_ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084 #include <$ac_header>
12086 if { (ac_try="$ac_cpp conftest.$ac_ext"
12087 case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12094 grep -v '^ *+' conftest.er1 >conftest.err
12096 cat conftest.err >&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } >/dev/null; then
12099 if test -s conftest.err; then
12100 ac_cpp_err=$ac_c_preproc_warn_flag
12101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12108 if test -z "$ac_cpp_err"; then
12109 ac_header_preproc=yes
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12114 ac_header_preproc=no
12117 rm -f conftest.err conftest.$ac_ext
12118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12119 echo "${ECHO_T}$ac_header_preproc" >&6; }
12121 # So? What about this header?
12122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12128 ac_header_preproc=yes
12131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12144 ## ------------------------------------ ##
12145 ## Report this to http://llvm.org/bugs/ ##
12146 ## ------------------------------------ ##
12148 ) | sed "s/^/$as_me: WARNING: /" >&2
12151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 eval "$as_ac_Header=\$ac_header_preproc"
12158 ac_res=`eval echo '${'$as_ac_Header'}'`
12159 { echo "$as_me:$LINENO: result: $ac_res" >&5
12160 echo "${ECHO_T}$ac_res" >&6; }
12163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12164 cat >>confdefs.h <<_ACEOF
12165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12172 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12173 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12174 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 cat >conftest.$ac_ext <<_ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12188 #ifndef FE_ALL_EXCEPT
12189 char *p = (char *) FE_ALL_EXCEPT;
12197 rm -f conftest.$ac_objext
12198 if { (ac_try="$ac_compile"
12199 case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_compile") 2>conftest.er1
12206 grep -v '^ *+' conftest.er1 >conftest.err
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12212 { (case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_try") 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; } &&
12221 { ac_try='test -s conftest.$ac_objext'
12222 { (case "(($ac_try" in
12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227 (eval "$ac_try") 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 ac_cv_have_decl_FE_ALL_EXCEPT=no
12239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12241 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12242 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12243 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12245 cat >>confdefs.h <<_ACEOF
12246 #define HAVE_DECL_FE_ALL_EXCEPT 1
12251 cat >>confdefs.h <<_ACEOF
12252 #define HAVE_DECL_FE_ALL_EXCEPT 0
12257 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12258 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12259 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12260 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 cat >conftest.$ac_ext <<_ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12274 char *p = (char *) FE_INEXACT;
12282 rm -f conftest.$ac_objext
12283 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12291 grep -v '^ *+' conftest.er1 >conftest.err
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } &&
12296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12297 { (case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_try") 2>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; } &&
12306 { ac_try='test -s conftest.$ac_objext'
12307 { (case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_try") 2>&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
12316 ac_cv_have_decl_FE_INEXACT=yes
12318 echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12321 ac_cv_have_decl_FE_INEXACT=no
12324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12326 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12327 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12328 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12330 cat >>confdefs.h <<_ACEOF
12331 #define HAVE_DECL_FE_INEXACT 1
12336 cat >>confdefs.h <<_ACEOF
12337 #define HAVE_DECL_FE_INEXACT 0
12344 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12346 for ac_header in pthread.h
12348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 ac_res=`eval echo '${'$as_ac_Header'}'`
12356 { echo "$as_me:$LINENO: result: $ac_res" >&5
12357 echo "${ECHO_T}$ac_res" >&6; }
12359 # Is the header compilable?
12360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12362 cat >conftest.$ac_ext <<_ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12368 $ac_includes_default
12369 #include <$ac_header>
12371 rm -f conftest.$ac_objext
12372 if { (ac_try="$ac_compile"
12373 case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_compile") 2>conftest.er1
12380 grep -v '^ *+' conftest.er1 >conftest.err
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12386 { (case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_try") 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; } &&
12395 { ac_try='test -s conftest.$ac_objext'
12396 { (case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_try") 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; }; then
12405 ac_header_compiler=yes
12407 echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12410 ac_header_compiler=no
12413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12415 echo "${ECHO_T}$ac_header_compiler" >&6; }
12417 # Is the header present?
12418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12420 cat >conftest.$ac_ext <<_ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h. */
12426 #include <$ac_header>
12428 if { (ac_try="$ac_cpp conftest.$ac_ext"
12429 case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12436 grep -v '^ *+' conftest.er1 >conftest.err
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } >/dev/null; then
12441 if test -s conftest.err; then
12442 ac_cpp_err=$ac_c_preproc_warn_flag
12443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12450 if test -z "$ac_cpp_err"; then
12451 ac_header_preproc=yes
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12456 ac_header_preproc=no
12459 rm -f conftest.err conftest.$ac_ext
12460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12461 echo "${ECHO_T}$ac_header_preproc" >&6; }
12463 # So? What about this header?
12464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12470 ac_header_preproc=yes
12473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12486 ## ------------------------------------ ##
12487 ## Report this to http://llvm.org/bugs/ ##
12488 ## ------------------------------------ ##
12490 ) | sed "s/^/$as_me: WARNING: /" >&2
12493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 eval "$as_ac_Header=\$ac_header_preproc"
12500 ac_res=`eval echo '${'$as_ac_Header'}'`
12501 { echo "$as_me:$LINENO: result: $ac_res" >&5
12502 echo "${ECHO_T}$ac_res" >&6; }
12505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12506 cat >>confdefs.h <<_ACEOF
12507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12522 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12524 for ac_header in zlib.h
12526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 ac_res=`eval echo '${'$as_ac_Header'}'`
12534 { echo "$as_me:$LINENO: result: $ac_res" >&5
12535 echo "${ECHO_T}$ac_res" >&6; }
12537 # Is the header compilable?
12538 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12540 cat >conftest.$ac_ext <<_ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546 $ac_includes_default
12547 #include <$ac_header>
12549 rm -f conftest.$ac_objext
12550 if { (ac_try="$ac_compile"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_compile") 2>conftest.er1
12558 grep -v '^ *+' conftest.er1 >conftest.err
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12564 { (case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_try") 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try='test -s conftest.$ac_objext'
12574 { (case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_try") 2>&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 ac_header_compiler=yes
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12588 ac_header_compiler=no
12591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12593 echo "${ECHO_T}$ac_header_compiler" >&6; }
12595 # Is the header present?
12596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12598 cat >conftest.$ac_ext <<_ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 #include <$ac_header>
12606 if { (ac_try="$ac_cpp conftest.$ac_ext"
12607 case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12614 grep -v '^ *+' conftest.er1 >conftest.err
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } >/dev/null; then
12619 if test -s conftest.err; then
12620 ac_cpp_err=$ac_c_preproc_warn_flag
12621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12628 if test -z "$ac_cpp_err"; then
12629 ac_header_preproc=yes
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12634 ac_header_preproc=no
12637 rm -f conftest.err conftest.$ac_ext
12638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12639 echo "${ECHO_T}$ac_header_preproc" >&6; }
12641 # So? What about this header?
12642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12648 ac_header_preproc=yes
12651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12664 ## ------------------------------------ ##
12665 ## Report this to http://llvm.org/bugs/ ##
12666 ## ------------------------------------ ##
12668 ) | sed "s/^/$as_me: WARNING: /" >&2
12671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 eval "$as_ac_Header=\$ac_header_preproc"
12678 ac_res=`eval echo '${'$as_ac_Header'}'`
12679 { echo "$as_me:$LINENO: result: $ac_res" >&5
12680 echo "${ECHO_T}$ac_res" >&6; }
12683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12684 cat >>confdefs.h <<_ACEOF
12685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12701 if test "$llvm_cv_enable_libffi" = "yes" ; then
12704 for ac_header in ffi.h ffi/ffi.h
12706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 ac_res=`eval echo '${'$as_ac_Header'}'`
12714 { echo "$as_me:$LINENO: result: $ac_res" >&5
12715 echo "${ECHO_T}$ac_res" >&6; }
12717 # Is the header compilable?
12718 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12720 cat >conftest.$ac_ext <<_ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h. */
12726 $ac_includes_default
12727 #include <$ac_header>
12729 rm -f conftest.$ac_objext
12730 if { (ac_try="$ac_compile"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_compile") 2>conftest.er1
12738 grep -v '^ *+' conftest.er1 >conftest.err
12740 cat conftest.err >&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } &&
12743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12744 { (case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_try") 2>&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; } &&
12753 { ac_try='test -s conftest.$ac_objext'
12754 { (case "(($ac_try" in
12755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756 *) ac_try_echo=$ac_try;;
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759 (eval "$ac_try") 2>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; }; then
12763 ac_header_compiler=yes
12765 echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12768 ac_header_compiler=no
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12773 echo "${ECHO_T}$ac_header_compiler" >&6; }
12775 # Is the header present?
12776 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12778 cat >conftest.$ac_ext <<_ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12784 #include <$ac_header>
12786 if { (ac_try="$ac_cpp conftest.$ac_ext"
12787 case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12794 grep -v '^ *+' conftest.er1 >conftest.err
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } >/dev/null; then
12799 if test -s conftest.err; then
12800 ac_cpp_err=$ac_c_preproc_warn_flag
12801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12808 if test -z "$ac_cpp_err"; then
12809 ac_header_preproc=yes
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12814 ac_header_preproc=no
12817 rm -f conftest.err conftest.$ac_ext
12818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12819 echo "${ECHO_T}$ac_header_preproc" >&6; }
12821 # So? What about this header?
12822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12828 ac_header_preproc=yes
12831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12844 ## ------------------------------------ ##
12845 ## Report this to http://llvm.org/bugs/ ##
12846 ## ------------------------------------ ##
12848 ) | sed "s/^/$as_me: WARNING: /" >&2
12851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 eval "$as_ac_Header=\$ac_header_preproc"
12858 ac_res=`eval echo '${'$as_ac_Header'}'`
12859 { echo "$as_me:$LINENO: result: $ac_res" >&5
12860 echo "${ECHO_T}$ac_res" >&6; }
12863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12864 cat >>confdefs.h <<_ACEOF
12865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12875 for ac_header in CrashReporterClient.h
12877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 ac_res=`eval echo '${'$as_ac_Header'}'`
12885 { echo "$as_me:$LINENO: result: $ac_res" >&5
12886 echo "${ECHO_T}$ac_res" >&6; }
12888 # Is the header compilable?
12889 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12891 cat >conftest.$ac_ext <<_ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12897 $ac_includes_default
12898 #include <$ac_header>
12900 rm -f conftest.$ac_objext
12901 if { (ac_try="$ac_compile"
12902 case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_compile") 2>conftest.er1
12909 grep -v '^ *+' conftest.er1 >conftest.err
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } &&
12914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12915 { (case "(($ac_try" in
12916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920 (eval "$ac_try") 2>&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; } &&
12924 { ac_try='test -s conftest.$ac_objext'
12925 { (case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_try") 2>&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 ac_header_compiler=yes
12936 echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12939 ac_header_compiler=no
12942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12943 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12944 echo "${ECHO_T}$ac_header_compiler" >&6; }
12946 # Is the header present?
12947 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12949 cat >conftest.$ac_ext <<_ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12955 #include <$ac_header>
12957 if { (ac_try="$ac_cpp conftest.$ac_ext"
12958 case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12965 grep -v '^ *+' conftest.er1 >conftest.err
12967 cat conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } >/dev/null; then
12970 if test -s conftest.err; then
12971 ac_cpp_err=$ac_c_preproc_warn_flag
12972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12979 if test -z "$ac_cpp_err"; then
12980 ac_header_preproc=yes
12982 echo "$as_me: failed program was:" >&5
12983 sed 's/^/| /' conftest.$ac_ext >&5
12985 ac_header_preproc=no
12988 rm -f conftest.err conftest.$ac_ext
12989 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12990 echo "${ECHO_T}$ac_header_preproc" >&6; }
12992 # So? What about this header?
12993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12999 ac_header_preproc=yes
13002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13009 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13015 ## ------------------------------------ ##
13016 ## Report this to http://llvm.org/bugs/ ##
13017 ## ------------------------------------ ##
13019 ) | sed "s/^/$as_me: WARNING: /" >&2
13022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 eval "$as_ac_Header=\$ac_header_preproc"
13029 ac_res=`eval echo '${'$as_ac_Header'}'`
13030 { echo "$as_me:$LINENO: result: $ac_res" >&5
13031 echo "${ECHO_T}$ac_res" >&6; }
13034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13035 cat >>confdefs.h <<_ACEOF
13036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13044 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13045 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13046 cat >conftest.$ac_ext <<_ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13054 extern const char *__crashreporter_info__;
13056 __crashreporter_info__ = "test";
13062 rm -f conftest.$ac_objext conftest$ac_exeext
13063 if { (ac_try="$ac_link"
13064 case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_link") 2>conftest.er1
13071 grep -v '^ *+' conftest.er1 >conftest.err
13073 cat conftest.err >&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } &&
13076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13077 { (case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_try") 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; } &&
13086 { ac_try='test -s conftest$ac_exeext'
13087 { (case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; }; then
13097 { echo "$as_me:$LINENO: result: yes" >&5
13098 echo "${ECHO_T}yes" >&6; }
13100 cat >>confdefs.h <<\_ACEOF
13101 #define HAVE_CRASHREPORTER_INFO 1
13106 echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13110 { echo "$as_me:$LINENO: result: no" >&5
13111 echo "${ECHO_T}no" >&6; }
13113 cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_CRASHREPORTER_INFO 0
13120 rm -f core conftest.err conftest.$ac_objext \
13121 conftest$ac_exeext conftest.$ac_ext
13125 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13126 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13127 if test "${ac_cv_huge_val_sanity+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 ac_cpp='$CXXCPP $CPPFLAGS'
13133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13137 ac_save_CXXFLAGS=$CXXFLAGS
13138 CXXFLAGS="$CXXFLAGS -pedantic"
13139 if test "$cross_compiling" = yes; then
13140 ac_cv_huge_val_sanity=yes
13142 cat >conftest.$ac_ext <<_ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13152 double x = HUGE_VAL; return x != x;
13157 rm -f conftest$ac_exeext
13158 if { (ac_try="$ac_link"
13159 case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_link") 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13168 { (case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_try") 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_cv_huge_val_sanity=yes
13179 echo "$as_me: program exited with status $ac_status" >&5
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13183 ( exit $ac_status )
13184 ac_cv_huge_val_sanity=no
13186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13190 CXXFLAGS=$ac_save_CXXFLAGS
13192 ac_cpp='$CPP $CPPFLAGS'
13193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13199 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13200 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13201 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13204 { echo "$as_me:$LINENO: checking for pid_t" >&5
13205 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13206 if test "${ac_cv_type_pid_t+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13209 cat >conftest.$ac_ext <<_ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13215 $ac_includes_default
13216 typedef pid_t ac__type_new_;
13220 if ((ac__type_new_ *) 0)
13222 if (sizeof (ac__type_new_))
13228 rm -f conftest.$ac_objext
13229 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13237 grep -v '^ *+' conftest.er1 >conftest.err
13239 cat conftest.err >&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } &&
13242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13243 { (case "(($ac_try" in
13244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245 *) ac_try_echo=$ac_try;;
13247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248 (eval "$ac_try") 2>&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; } &&
13252 { ac_try='test -s conftest.$ac_objext'
13253 { (case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258 (eval "$ac_try") 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 ac_cv_type_pid_t=yes
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13267 ac_cv_type_pid_t=no
13270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13272 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13273 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13274 if test $ac_cv_type_pid_t = yes; then
13278 cat >>confdefs.h <<_ACEOF
13284 { echo "$as_me:$LINENO: checking for size_t" >&5
13285 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13286 if test "${ac_cv_type_size_t+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 cat >conftest.$ac_ext <<_ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 $ac_includes_default
13296 typedef size_t ac__type_new_;
13300 if ((ac__type_new_ *) 0)
13302 if (sizeof (ac__type_new_))
13308 rm -f conftest.$ac_objext
13309 if { (ac_try="$ac_compile"
13310 case "(($ac_try" in
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_compile") 2>conftest.er1
13317 grep -v '^ *+' conftest.er1 >conftest.err
13319 cat conftest.err >&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } &&
13322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13323 { (case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_try") 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; } &&
13332 { ac_try='test -s conftest.$ac_objext'
13333 { (case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_try") 2>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; }; then
13342 ac_cv_type_size_t=yes
13344 echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13347 ac_cv_type_size_t=no
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13353 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13354 if test $ac_cv_type_size_t = yes; then
13358 cat >>confdefs.h <<_ACEOF
13359 #define size_t unsigned int
13365 cat >>confdefs.h <<_ACEOF
13366 #define RETSIGTYPE void
13369 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13370 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13371 if test "${ac_cv_struct_tm+set}" = set; then
13372 echo $ECHO_N "(cached) $ECHO_C" >&6
13374 cat >conftest.$ac_ext <<_ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13380 #include <sys/types.h>
13386 struct tm *tp; tp->tm_sec;
13391 rm -f conftest.$ac_objext
13392 if { (ac_try="$ac_compile"
13393 case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_compile") 2>conftest.er1
13400 grep -v '^ *+' conftest.er1 >conftest.err
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } &&
13405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13406 { (case "(($ac_try" in
13407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 *) ac_try_echo=$ac_try;;
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411 (eval "$ac_try") 2>&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; } &&
13415 { ac_try='test -s conftest.$ac_objext'
13416 { (case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_try") 2>&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13425 ac_cv_struct_tm=time.h
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13430 ac_cv_struct_tm=sys/time.h
13433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13435 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13436 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13437 if test $ac_cv_struct_tm = sys/time.h; then
13439 cat >>confdefs.h <<\_ACEOF
13440 #define TM_IN_SYS_TIME 1
13445 { echo "$as_me:$LINENO: checking for int64_t" >&5
13446 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13447 if test "${ac_cv_type_int64_t+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 cat >conftest.$ac_ext <<_ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h. */
13456 $ac_includes_default
13457 typedef int64_t ac__type_new_;
13461 if ((ac__type_new_ *) 0)
13463 if (sizeof (ac__type_new_))
13469 rm -f conftest.$ac_objext
13470 if { (ac_try="$ac_compile"
13471 case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_compile") 2>conftest.er1
13478 grep -v '^ *+' conftest.er1 >conftest.err
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13484 { (case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_try") 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest.$ac_objext'
13494 { (case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_try") 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; }; then
13503 ac_cv_type_int64_t=yes
13505 echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13508 ac_cv_type_int64_t=no
13511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13513 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13514 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13515 if test $ac_cv_type_int64_t = yes; then
13517 cat >>confdefs.h <<_ACEOF
13518 #define HAVE_INT64_T 1
13523 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13524 echo "$as_me: error: Type int64_t required but not found" >&2;}
13525 { (exit 1); exit 1; }; }
13528 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13529 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13530 if test "${ac_cv_type_uint64_t+set}" = set; then
13531 echo $ECHO_N "(cached) $ECHO_C" >&6
13533 cat >conftest.$ac_ext <<_ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13539 $ac_includes_default
13540 typedef uint64_t ac__type_new_;
13544 if ((ac__type_new_ *) 0)
13546 if (sizeof (ac__type_new_))
13552 rm -f conftest.$ac_objext
13553 if { (ac_try="$ac_compile"
13554 case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_compile") 2>conftest.er1
13561 grep -v '^ *+' conftest.er1 >conftest.err
13563 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } &&
13566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13567 { (case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_try") 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; } &&
13576 { ac_try='test -s conftest.$ac_objext'
13577 { (case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582 (eval "$ac_try") 2>&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; }; then
13586 ac_cv_type_uint64_t=yes
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13591 ac_cv_type_uint64_t=no
13594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13596 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13597 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13598 if test $ac_cv_type_uint64_t = yes; then
13600 cat >>confdefs.h <<_ACEOF
13601 #define HAVE_UINT64_T 1
13606 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13607 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13608 if test "${ac_cv_type_u_int64_t+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 cat >conftest.$ac_ext <<_ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h. */
13617 $ac_includes_default
13618 typedef u_int64_t ac__type_new_;
13622 if ((ac__type_new_ *) 0)
13624 if (sizeof (ac__type_new_))
13630 rm -f conftest.$ac_objext
13631 if { (ac_try="$ac_compile"
13632 case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_compile") 2>conftest.er1
13639 grep -v '^ *+' conftest.er1 >conftest.err
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13645 { (case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_try") 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest.$ac_objext'
13655 { (case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660 (eval "$ac_try") 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_cv_type_u_int64_t=yes
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13669 ac_cv_type_u_int64_t=no
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13674 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13675 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13676 if test $ac_cv_type_u_int64_t = yes; then
13678 cat >>confdefs.h <<_ACEOF
13679 #define HAVE_U_INT64_T 1
13684 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13685 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13686 { (exit 1); exit 1; }; }
13700 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 cat >conftest.$ac_ext <<_ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13716 #define $ac_func innocuous_$ac_func
13718 /* System header to define __stub macros and hopefully few prototypes,
13719 which can conflict with char $ac_func (); below.
13720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13721 <limits.h> exists even on freestanding compilers. */
13724 # include <limits.h>
13726 # include <assert.h>
13731 /* Override any GCC internal prototype to avoid an error.
13732 Use char because int might match the return type of a GCC
13733 builtin and then its argument prototype would still apply. */
13738 /* The GNU C library defines this for functions which it implements
13739 to always fail with ENOSYS. Some functions are actually named
13740 something starting with __ and the normal name is an alias. */
13741 #if defined __stub_$ac_func || defined __stub___$ac_func
13748 return $ac_func ();
13753 rm -f conftest.$ac_objext conftest$ac_exeext
13754 if { (ac_try="$ac_link"
13755 case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_link") 2>conftest.er1
13762 grep -v '^ *+' conftest.er1 >conftest.err
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13768 { (case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_try") 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest$ac_exeext'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 eval "$as_ac_var=yes"
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13792 eval "$as_ac_var=no"
13795 rm -f core conftest.err conftest.$ac_objext \
13796 conftest$ac_exeext conftest.$ac_ext
13798 ac_res=`eval echo '${'$as_ac_var'}'`
13799 { echo "$as_me:$LINENO: result: $ac_res" >&5
13800 echo "${ECHO_T}$ac_res" >&6; }
13801 if test `eval echo '${'$as_ac_var'}'` = yes; then
13802 cat >>confdefs.h <<_ACEOF
13803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13813 for ac_func in powf fmodf strtof round
13815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 cat >conftest.$ac_ext <<_ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13829 #define $ac_func innocuous_$ac_func
13831 /* System header to define __stub macros and hopefully few prototypes,
13832 which can conflict with char $ac_func (); below.
13833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13834 <limits.h> exists even on freestanding compilers. */
13837 # include <limits.h>
13839 # include <assert.h>
13844 /* Override any GCC internal prototype to avoid an error.
13845 Use char because int might match the return type of a GCC
13846 builtin and then its argument prototype would still apply. */
13851 /* The GNU C library defines this for functions which it implements
13852 to always fail with ENOSYS. Some functions are actually named
13853 something starting with __ and the normal name is an alias. */
13854 #if defined __stub_$ac_func || defined __stub___$ac_func
13861 return $ac_func ();
13866 rm -f conftest.$ac_objext conftest$ac_exeext
13867 if { (ac_try="$ac_link"
13868 case "(($ac_try" in
13869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870 *) ac_try_echo=$ac_try;;
13872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873 (eval "$ac_link") 2>conftest.er1
13875 grep -v '^ *+' conftest.er1 >conftest.err
13877 cat conftest.err >&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } &&
13880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13881 { (case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_try") 2>&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; } &&
13890 { ac_try='test -s conftest$ac_exeext'
13891 { (case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_try") 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 eval "$as_ac_var=yes"
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13905 eval "$as_ac_var=no"
13908 rm -f core conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13911 ac_res=`eval echo '${'$as_ac_var'}'`
13912 { echo "$as_me:$LINENO: result: $ac_res" >&5
13913 echo "${ECHO_T}$ac_res" >&6; }
13914 if test `eval echo '${'$as_ac_var'}'` = yes; then
13915 cat >>confdefs.h <<_ACEOF
13916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13927 for ac_func in log log2 log10 exp exp2
13929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 cat >conftest.$ac_ext <<_ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13943 #define $ac_func innocuous_$ac_func
13945 /* System header to define __stub macros and hopefully few prototypes,
13946 which can conflict with char $ac_func (); below.
13947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13948 <limits.h> exists even on freestanding compilers. */
13951 # include <limits.h>
13953 # include <assert.h>
13958 /* Override any GCC internal prototype to avoid an error.
13959 Use char because int might match the return type of a GCC
13960 builtin and then its argument prototype would still apply. */
13965 /* The GNU C library defines this for functions which it implements
13966 to always fail with ENOSYS. Some functions are actually named
13967 something starting with __ and the normal name is an alias. */
13968 #if defined __stub_$ac_func || defined __stub___$ac_func
13975 return $ac_func ();
13980 rm -f conftest.$ac_objext conftest$ac_exeext
13981 if { (ac_try="$ac_link"
13982 case "(($ac_try" in
13983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13984 *) ac_try_echo=$ac_try;;
13986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987 (eval "$ac_link") 2>conftest.er1
13989 grep -v '^ *+' conftest.er1 >conftest.err
13991 cat conftest.err >&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } &&
13994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13995 { (case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_try") 2>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; } &&
14004 { ac_try='test -s conftest$ac_exeext'
14005 { (case "(($ac_try" in
14006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007 *) ac_try_echo=$ac_try;;
14009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010 (eval "$ac_try") 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
14014 eval "$as_ac_var=yes"
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14019 eval "$as_ac_var=no"
14022 rm -f core conftest.err conftest.$ac_objext \
14023 conftest$ac_exeext conftest.$ac_ext
14025 ac_res=`eval echo '${'$as_ac_var'}'`
14026 { echo "$as_me:$LINENO: result: $ac_res" >&5
14027 echo "${ECHO_T}$ac_res" >&6; }
14028 if test `eval echo '${'$as_ac_var'}'` = yes; then
14029 cat >>confdefs.h <<_ACEOF
14030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14041 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 cat >conftest.$ac_ext <<_ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h. */
14055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14057 #define $ac_func innocuous_$ac_func
14059 /* System header to define __stub macros and hopefully few prototypes,
14060 which can conflict with char $ac_func (); below.
14061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14062 <limits.h> exists even on freestanding compilers. */
14065 # include <limits.h>
14067 # include <assert.h>
14072 /* Override any GCC internal prototype to avoid an error.
14073 Use char because int might match the return type of a GCC
14074 builtin and then its argument prototype would still apply. */
14079 /* The GNU C library defines this for functions which it implements
14080 to always fail with ENOSYS. Some functions are actually named
14081 something starting with __ and the normal name is an alias. */
14082 #if defined __stub_$ac_func || defined __stub___$ac_func
14089 return $ac_func ();
14094 rm -f conftest.$ac_objext conftest$ac_exeext
14095 if { (ac_try="$ac_link"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_link") 2>conftest.er1
14103 grep -v '^ *+' conftest.er1 >conftest.err
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14109 { (case "(($ac_try" in
14110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111 *) ac_try_echo=$ac_try;;
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114 (eval "$ac_try") 2>&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; } &&
14118 { ac_try='test -s conftest$ac_exeext'
14119 { (case "(($ac_try" in
14120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121 *) ac_try_echo=$ac_try;;
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124 (eval "$ac_try") 2>&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; }; then
14128 eval "$as_ac_var=yes"
14130 echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14133 eval "$as_ac_var=no"
14136 rm -f core conftest.err conftest.$ac_objext \
14137 conftest$ac_exeext conftest.$ac_ext
14139 ac_res=`eval echo '${'$as_ac_var'}'`
14140 { echo "$as_me:$LINENO: result: $ac_res" >&5
14141 echo "${ECHO_T}$ac_res" >&6; }
14142 if test `eval echo '${'$as_ac_var'}'` = yes; then
14143 cat >>confdefs.h <<_ACEOF
14144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14153 for ac_func in isatty mkdtemp mkstemp
14155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 cat >conftest.$ac_ext <<_ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14169 #define $ac_func innocuous_$ac_func
14171 /* System header to define __stub macros and hopefully few prototypes,
14172 which can conflict with char $ac_func (); below.
14173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14174 <limits.h> exists even on freestanding compilers. */
14177 # include <limits.h>
14179 # include <assert.h>
14184 /* Override any GCC internal prototype to avoid an error.
14185 Use char because int might match the return type of a GCC
14186 builtin and then its argument prototype would still apply. */
14191 /* The GNU C library defines this for functions which it implements
14192 to always fail with ENOSYS. Some functions are actually named
14193 something starting with __ and the normal name is an alias. */
14194 #if defined __stub_$ac_func || defined __stub___$ac_func
14201 return $ac_func ();
14206 rm -f conftest.$ac_objext conftest$ac_exeext
14207 if { (ac_try="$ac_link"
14208 case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_link") 2>conftest.er1
14215 grep -v '^ *+' conftest.er1 >conftest.err
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221 { (case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_try") 2>&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest$ac_exeext'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 eval "$as_ac_var=yes"
14242 echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14245 eval "$as_ac_var=no"
14248 rm -f core conftest.err conftest.$ac_objext \
14249 conftest$ac_exeext conftest.$ac_ext
14251 ac_res=`eval echo '${'$as_ac_var'}'`
14252 { echo "$as_me:$LINENO: result: $ac_res" >&5
14253 echo "${ECHO_T}$ac_res" >&6; }
14254 if test `eval echo '${'$as_ac_var'}'` = yes; then
14255 cat >>confdefs.h <<_ACEOF
14256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14268 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 cat >conftest.$ac_ext <<_ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h. */
14282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14284 #define $ac_func innocuous_$ac_func
14286 /* System header to define __stub macros and hopefully few prototypes,
14287 which can conflict with char $ac_func (); below.
14288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14289 <limits.h> exists even on freestanding compilers. */
14292 # include <limits.h>
14294 # include <assert.h>
14299 /* Override any GCC internal prototype to avoid an error.
14300 Use char because int might match the return type of a GCC
14301 builtin and then its argument prototype would still apply. */
14306 /* The GNU C library defines this for functions which it implements
14307 to always fail with ENOSYS. Some functions are actually named
14308 something starting with __ and the normal name is an alias. */
14309 #if defined __stub_$ac_func || defined __stub___$ac_func
14316 return $ac_func ();
14321 rm -f conftest.$ac_objext conftest$ac_exeext
14322 if { (ac_try="$ac_link"
14323 case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_link") 2>conftest.er1
14330 grep -v '^ *+' conftest.er1 >conftest.err
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } &&
14335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14336 { (case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_try") 2>&5
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; } &&
14345 { ac_try='test -s conftest$ac_exeext'
14346 { (case "(($ac_try" in
14347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348 *) ac_try_echo=$ac_try;;
14350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14351 (eval "$ac_try") 2>&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; }; then
14355 eval "$as_ac_var=yes"
14357 echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14360 eval "$as_ac_var=no"
14363 rm -f core conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
14366 ac_res=`eval echo '${'$as_ac_var'}'`
14367 { echo "$as_me:$LINENO: result: $ac_res" >&5
14368 echo "${ECHO_T}$ac_res" >&6; }
14369 if test `eval echo '${'$as_ac_var'}'` = yes; then
14370 cat >>confdefs.h <<_ACEOF
14371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14380 for ac_func in strerror strerror_r setenv
14382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 cat >conftest.$ac_ext <<_ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h. */
14394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14396 #define $ac_func innocuous_$ac_func
14398 /* System header to define __stub macros and hopefully few prototypes,
14399 which can conflict with char $ac_func (); below.
14400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14401 <limits.h> exists even on freestanding compilers. */
14404 # include <limits.h>
14406 # include <assert.h>
14411 /* Override any GCC internal prototype to avoid an error.
14412 Use char because int might match the return type of a GCC
14413 builtin and then its argument prototype would still apply. */
14418 /* The GNU C library defines this for functions which it implements
14419 to always fail with ENOSYS. Some functions are actually named
14420 something starting with __ and the normal name is an alias. */
14421 #if defined __stub_$ac_func || defined __stub___$ac_func
14428 return $ac_func ();
14433 rm -f conftest.$ac_objext conftest$ac_exeext
14434 if { (ac_try="$ac_link"
14435 case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_link") 2>conftest.er1
14442 grep -v '^ *+' conftest.er1 >conftest.err
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14448 { (case "(($ac_try" in
14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450 *) ac_try_echo=$ac_try;;
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453 (eval "$ac_try") 2>&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; } &&
14457 { ac_try='test -s conftest$ac_exeext'
14458 { (case "(($ac_try" in
14459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460 *) ac_try_echo=$ac_try;;
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463 (eval "$ac_try") 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }; then
14467 eval "$as_ac_var=yes"
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14472 eval "$as_ac_var=no"
14475 rm -f core conftest.err conftest.$ac_objext \
14476 conftest$ac_exeext conftest.$ac_ext
14478 ac_res=`eval echo '${'$as_ac_var'}'`
14479 { echo "$as_me:$LINENO: result: $ac_res" >&5
14480 echo "${ECHO_T}$ac_res" >&6; }
14481 if test `eval echo '${'$as_ac_var'}'` = yes; then
14482 cat >>confdefs.h <<_ACEOF
14483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14493 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 cat >conftest.$ac_ext <<_ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14509 #define $ac_func innocuous_$ac_func
14511 /* System header to define __stub macros and hopefully few prototypes,
14512 which can conflict with char $ac_func (); below.
14513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14514 <limits.h> exists even on freestanding compilers. */
14517 # include <limits.h>
14519 # include <assert.h>
14524 /* Override any GCC internal prototype to avoid an error.
14525 Use char because int might match the return type of a GCC
14526 builtin and then its argument prototype would still apply. */
14531 /* The GNU C library defines this for functions which it implements
14532 to always fail with ENOSYS. Some functions are actually named
14533 something starting with __ and the normal name is an alias. */
14534 #if defined __stub_$ac_func || defined __stub___$ac_func
14541 return $ac_func ();
14546 rm -f conftest.$ac_objext conftest$ac_exeext
14547 if { (ac_try="$ac_link"
14548 case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_link") 2>conftest.er1
14555 grep -v '^ *+' conftest.er1 >conftest.err
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14561 { (case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_try") 2>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; } &&
14570 { ac_try='test -s conftest$ac_exeext'
14571 { (case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_try") 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 eval "$as_ac_var=yes"
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14585 eval "$as_ac_var=no"
14588 rm -f core conftest.err conftest.$ac_objext \
14589 conftest$ac_exeext conftest.$ac_ext
14591 ac_res=`eval echo '${'$as_ac_var'}'`
14592 { echo "$as_me:$LINENO: result: $ac_res" >&5
14593 echo "${ECHO_T}$ac_res" >&6; }
14594 if test `eval echo '${'$as_ac_var'}'` = yes; then
14595 cat >>confdefs.h <<_ACEOF
14596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14607 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 cat >conftest.$ac_ext <<_ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14623 #define $ac_func innocuous_$ac_func
14625 /* System header to define __stub macros and hopefully few prototypes,
14626 which can conflict with char $ac_func (); below.
14627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14628 <limits.h> exists even on freestanding compilers. */
14631 # include <limits.h>
14633 # include <assert.h>
14638 /* Override any GCC internal prototype to avoid an error.
14639 Use char because int might match the return type of a GCC
14640 builtin and then its argument prototype would still apply. */
14645 /* The GNU C library defines this for functions which it implements
14646 to always fail with ENOSYS. Some functions are actually named
14647 something starting with __ and the normal name is an alias. */
14648 #if defined __stub_$ac_func || defined __stub___$ac_func
14655 return $ac_func ();
14660 rm -f conftest.$ac_objext conftest$ac_exeext
14661 if { (ac_try="$ac_link"
14662 case "(($ac_try" in
14663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664 *) ac_try_echo=$ac_try;;
14666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14667 (eval "$ac_link") 2>conftest.er1
14669 grep -v '^ *+' conftest.er1 >conftest.err
14671 cat conftest.err >&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
14674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14675 { (case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680 (eval "$ac_try") 2>&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; } &&
14684 { ac_try='test -s conftest$ac_exeext'
14685 { (case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_try") 2>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }; then
14694 eval "$as_ac_var=yes"
14696 echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14699 eval "$as_ac_var=no"
14702 rm -f core conftest.err conftest.$ac_objext \
14703 conftest$ac_exeext conftest.$ac_ext
14705 ac_res=`eval echo '${'$as_ac_var'}'`
14706 { echo "$as_me:$LINENO: result: $ac_res" >&5
14707 echo "${ECHO_T}$ac_res" >&6; }
14708 if test `eval echo '${'$as_ac_var'}'` = yes; then
14709 cat >>confdefs.h <<_ACEOF
14710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14718 for ac_func in futimes futimens
14720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 cat >conftest.$ac_ext <<_ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14734 #define $ac_func innocuous_$ac_func
14736 /* System header to define __stub macros and hopefully few prototypes,
14737 which can conflict with char $ac_func (); below.
14738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14739 <limits.h> exists even on freestanding compilers. */
14742 # include <limits.h>
14744 # include <assert.h>
14749 /* Override any GCC internal prototype to avoid an error.
14750 Use char because int might match the return type of a GCC
14751 builtin and then its argument prototype would still apply. */
14756 /* The GNU C library defines this for functions which it implements
14757 to always fail with ENOSYS. Some functions are actually named
14758 something starting with __ and the normal name is an alias. */
14759 #if defined __stub_$ac_func || defined __stub___$ac_func
14766 return $ac_func ();
14771 rm -f conftest.$ac_objext conftest$ac_exeext
14772 if { (ac_try="$ac_link"
14773 case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_link") 2>conftest.er1
14780 grep -v '^ *+' conftest.er1 >conftest.err
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
14785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14786 { (case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791 (eval "$ac_try") 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; } &&
14795 { ac_try='test -s conftest$ac_exeext'
14796 { (case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_try") 2>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 eval "$as_ac_var=yes"
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14810 eval "$as_ac_var=no"
14813 rm -f core conftest.err conftest.$ac_objext \
14814 conftest$ac_exeext conftest.$ac_ext
14816 ac_res=`eval echo '${'$as_ac_var'}'`
14817 { echo "$as_me:$LINENO: result: $ac_res" >&5
14818 echo "${ECHO_T}$ac_res" >&6; }
14819 if test `eval echo '${'$as_ac_var'}'` = yes; then
14820 cat >>confdefs.h <<_ACEOF
14821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14827 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14828 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14829 if test "${llvm_cv_c_printf_a+set}" = set; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 ac_cpp='$CPP $CPPFLAGS'
14834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14838 if test "$cross_compiling" = yes; then
14839 llvmac_cv_c_printf_a=no
14841 cat >conftest.$ac_ext <<_ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14850 #include <stdlib.h>
14856 volatile double A, B;
14860 sprintf(Buffer, "%a", A);
14864 if (A != 0x1.999999999999ap-4)
14871 rm -f conftest$ac_exeext
14872 if { (ac_try="$ac_link"
14873 case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_link") 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14882 { (case "(($ac_try" in
14883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14884 *) ac_try_echo=$ac_try;;
14886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14887 (eval "$ac_try") 2>&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
14891 llvm_cv_c_printf_a=yes
14893 echo "$as_me: program exited with status $ac_status" >&5
14894 echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14897 ( exit $ac_status )
14898 llvmac_cv_c_printf_a=no
14900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14905 ac_cpp='$CPP $CPPFLAGS'
14906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14911 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14912 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14913 if test "$llvm_cv_c_printf_a" = "yes"; then
14915 cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_PRINTF_A 1
14923 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14924 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14925 if test "${ac_cv_func_rand48+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 ac_cpp='$CXXCPP $CPPFLAGS'
14931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14935 cat >conftest.$ac_ext <<_ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14941 #include <stdlib.h>
14945 srand48(0);lrand48();drand48();
14950 rm -f conftest.$ac_objext
14951 if { (ac_try="$ac_compile"
14952 case "(($ac_try" in
14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957 (eval "$ac_compile") 2>conftest.er1
14959 grep -v '^ *+' conftest.er1 >conftest.err
14961 cat conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } &&
14964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14965 { (case "(($ac_try" in
14966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967 *) ac_try_echo=$ac_try;;
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970 (eval "$ac_try") 2>&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; } &&
14974 { ac_try='test -s conftest.$ac_objext'
14975 { (case "(($ac_try" in
14976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_try") 2>&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14984 ac_cv_func_rand48=yes
14986 echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14989 ac_cv_func_rand48=no
14992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994 ac_cpp='$CPP $CPPFLAGS'
14995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15001 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15002 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15004 if test "$ac_cv_func_rand48" = "yes" ; then
15006 cat >>confdefs.h <<\_ACEOF
15007 #define HAVE_RAND48 1
15013 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15014 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15015 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15018 cat >conftest.$ac_ext <<_ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15024 $ac_includes_default
15029 char *p = (char *) arc4random;
15037 rm -f conftest.$ac_objext
15038 if { (ac_try="$ac_compile"
15039 case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044 (eval "$ac_compile") 2>conftest.er1
15046 grep -v '^ *+' conftest.er1 >conftest.err
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15052 { (case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_try") 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; } &&
15061 { ac_try='test -s conftest.$ac_objext'
15062 { (case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_try") 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
15071 ac_cv_have_decl_arc4random=yes
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15076 ac_cv_have_decl_arc4random=no
15079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15081 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15082 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15083 if test $ac_cv_have_decl_arc4random = yes; then
15085 cat >>confdefs.h <<_ACEOF
15086 #define HAVE_DECL_ARC4RANDOM 1
15091 cat >>confdefs.h <<_ACEOF
15092 #define HAVE_DECL_ARC4RANDOM 0
15100 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15101 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15102 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15105 cat >conftest.$ac_ext <<_ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15111 $ac_includes_default
15116 char *p = (char *) strerror_s;
15124 rm -f conftest.$ac_objext
15125 if { (ac_try="$ac_compile"
15126 case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_compile") 2>conftest.er1
15133 grep -v '^ *+' conftest.er1 >conftest.err
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } &&
15138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15139 { (case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_try") 2>&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; } &&
15148 { ac_try='test -s conftest.$ac_objext'
15149 { (case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_try") 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 ac_cv_have_decl_strerror_s=yes
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 ac_cv_have_decl_strerror_s=no
15166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15168 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15169 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15170 if test $ac_cv_have_decl_strerror_s = yes; then
15172 cat >>confdefs.h <<_ACEOF
15173 #define HAVE_DECL_STRERROR_S 1
15178 cat >>confdefs.h <<_ACEOF
15179 #define HAVE_DECL_STRERROR_S 0
15187 if test "$llvm_cv_os_type" = "MingW" ; then
15188 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15189 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15190 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 ac_check_lib_save_LIBS=$LIBS
15195 cat >conftest.$ac_ext <<_ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15202 /* Override any GCC internal prototype to avoid an error.
15203 Use char because int might match the return type of a GCC
15204 builtin and then its argument prototype would still apply. */
15217 rm -f conftest.$ac_objext conftest$ac_exeext
15218 if { (ac_try="$ac_link"
15219 case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_link") 2>conftest.er1
15226 grep -v '^ *+' conftest.er1 >conftest.err
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15232 { (case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_try") 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; } &&
15241 { ac_try='test -s conftest$ac_exeext'
15242 { (case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_try") 2>&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; }; then
15251 ac_cv_lib_gcc__alloca=yes
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15256 ac_cv_lib_gcc__alloca=no
15259 rm -f core conftest.err conftest.$ac_objext \
15260 conftest$ac_exeext conftest.$ac_ext
15261 LIBS=$ac_check_lib_save_LIBS
15263 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15264 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15265 if test $ac_cv_lib_gcc__alloca = yes; then
15267 cat >>confdefs.h <<\_ACEOF
15268 #define HAVE__ALLOCA 1
15273 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15274 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15275 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 ac_check_lib_save_LIBS=$LIBS
15280 cat >conftest.$ac_ext <<_ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15287 /* Override any GCC internal prototype to avoid an error.
15288 Use char because int might match the return type of a GCC
15289 builtin and then its argument prototype would still apply. */
15297 return __alloca ();
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15311 grep -v '^ *+' conftest.er1 >conftest.err
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } &&
15316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15317 { (case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322 (eval "$ac_try") 2>&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; } &&
15326 { ac_try='test -s conftest$ac_exeext'
15327 { (case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_try") 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_cv_lib_gcc___alloca=yes
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15341 ac_cv_lib_gcc___alloca=no
15344 rm -f core conftest.err conftest.$ac_objext \
15345 conftest$ac_exeext conftest.$ac_ext
15346 LIBS=$ac_check_lib_save_LIBS
15348 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15349 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15350 if test $ac_cv_lib_gcc___alloca = yes; then
15352 cat >>confdefs.h <<\_ACEOF
15353 #define HAVE___ALLOCA 1
15358 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15359 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15360 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 ac_check_lib_save_LIBS=$LIBS
15365 cat >conftest.$ac_ext <<_ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h. */
15372 /* Override any GCC internal prototype to avoid an error.
15373 Use char because int might match the return type of a GCC
15374 builtin and then its argument prototype would still apply. */
15382 return __chkstk ();
15387 rm -f conftest.$ac_objext conftest$ac_exeext
15388 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15396 grep -v '^ *+' conftest.er1 >conftest.err
15398 cat conftest.err >&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } &&
15401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15402 { (case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407 (eval "$ac_try") 2>&5
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); }; } &&
15411 { ac_try='test -s conftest$ac_exeext'
15412 { (case "(($ac_try" in
15413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414 *) ac_try_echo=$ac_try;;
15416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15417 (eval "$ac_try") 2>&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; }; then
15421 ac_cv_lib_gcc___chkstk=yes
15423 echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15426 ac_cv_lib_gcc___chkstk=no
15429 rm -f core conftest.err conftest.$ac_objext \
15430 conftest$ac_exeext conftest.$ac_ext
15431 LIBS=$ac_check_lib_save_LIBS
15433 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15434 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15435 if test $ac_cv_lib_gcc___chkstk = yes; then
15437 cat >>confdefs.h <<\_ACEOF
15438 #define HAVE___CHKSTK 1
15443 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15444 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15445 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15448 ac_check_lib_save_LIBS=$LIBS
15450 cat >conftest.$ac_ext <<_ACEOF
15453 cat confdefs.h >>conftest.$ac_ext
15454 cat >>conftest.$ac_ext <<_ACEOF
15455 /* end confdefs.h. */
15457 /* Override any GCC internal prototype to avoid an error.
15458 Use char because int might match the return type of a GCC
15459 builtin and then its argument prototype would still apply. */
15463 char __chkstk_ms ();
15467 return __chkstk_ms ();
15472 rm -f conftest.$ac_objext conftest$ac_exeext
15473 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15481 grep -v '^ *+' conftest.er1 >conftest.err
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } &&
15486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15487 { (case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_try") 2>&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; } &&
15496 { ac_try='test -s conftest$ac_exeext'
15497 { (case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502 (eval "$ac_try") 2>&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 ac_cv_lib_gcc___chkstk_ms=yes
15508 echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 ac_cv_lib_gcc___chkstk_ms=no
15514 rm -f core conftest.err conftest.$ac_objext \
15515 conftest$ac_exeext conftest.$ac_ext
15516 LIBS=$ac_check_lib_save_LIBS
15518 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15519 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15520 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15522 cat >>confdefs.h <<\_ACEOF
15523 #define HAVE___CHKSTK_MS 1
15528 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15529 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15530 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15533 ac_check_lib_save_LIBS=$LIBS
15535 cat >conftest.$ac_ext <<_ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15542 /* Override any GCC internal prototype to avoid an error.
15543 Use char because int might match the return type of a GCC
15544 builtin and then its argument prototype would still apply. */
15552 return ___chkstk ();
15557 rm -f conftest.$ac_objext conftest$ac_exeext
15558 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15566 grep -v '^ *+' conftest.er1 >conftest.err
15568 cat conftest.err >&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } &&
15571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15572 { (case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_try") 2>&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; } &&
15581 { ac_try='test -s conftest$ac_exeext'
15582 { (case "(($ac_try" in
15583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587 (eval "$ac_try") 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15591 ac_cv_lib_gcc____chkstk=yes
15593 echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15596 ac_cv_lib_gcc____chkstk=no
15599 rm -f core conftest.err conftest.$ac_objext \
15600 conftest$ac_exeext conftest.$ac_ext
15601 LIBS=$ac_check_lib_save_LIBS
15603 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15604 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15605 if test $ac_cv_lib_gcc____chkstk = yes; then
15607 cat >>confdefs.h <<\_ACEOF
15608 #define HAVE____CHKSTK 1
15613 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15614 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15615 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15616 echo $ECHO_N "(cached) $ECHO_C" >&6
15618 ac_check_lib_save_LIBS=$LIBS
15620 cat >conftest.$ac_ext <<_ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15627 /* Override any GCC internal prototype to avoid an error.
15628 Use char because int might match the return type of a GCC
15629 builtin and then its argument prototype would still apply. */
15633 char ___chkstk_ms ();
15637 return ___chkstk_ms ();
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (ac_try="$ac_link"
15644 case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649 (eval "$ac_link") 2>conftest.er1
15651 grep -v '^ *+' conftest.er1 >conftest.err
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } &&
15656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15657 { (case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662 (eval "$ac_try") 2>&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; } &&
15666 { ac_try='test -s conftest$ac_exeext'
15667 { (case "(($ac_try" in
15668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15669 *) ac_try_echo=$ac_try;;
15671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15672 (eval "$ac_try") 2>&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; }; then
15676 ac_cv_lib_gcc____chkstk_ms=yes
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 ac_cv_lib_gcc____chkstk_ms=no
15684 rm -f core conftest.err conftest.$ac_objext \
15685 conftest$ac_exeext conftest.$ac_ext
15686 LIBS=$ac_check_lib_save_LIBS
15688 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15689 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15690 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15692 cat >>confdefs.h <<\_ACEOF
15693 #define HAVE____CHKSTK_MS 1
15699 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15700 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15701 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 ac_check_lib_save_LIBS=$LIBS
15706 cat >conftest.$ac_ext <<_ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15713 /* Override any GCC internal prototype to avoid an error.
15714 Use char because int might match the return type of a GCC
15715 builtin and then its argument prototype would still apply. */
15723 return __ashldi3 ();
15728 rm -f conftest.$ac_objext conftest$ac_exeext
15729 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15737 grep -v '^ *+' conftest.er1 >conftest.err
15739 cat conftest.err >&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } &&
15742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15743 { (case "(($ac_try" in
15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745 *) ac_try_echo=$ac_try;;
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748 (eval "$ac_try") 2>&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; } &&
15752 { ac_try='test -s conftest$ac_exeext'
15753 { (case "(($ac_try" in
15754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755 *) ac_try_echo=$ac_try;;
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758 (eval "$ac_try") 2>&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15762 ac_cv_lib_gcc___ashldi3=yes
15764 echo "$as_me: failed program was:" >&5
15765 sed 's/^/| /' conftest.$ac_ext >&5
15767 ac_cv_lib_gcc___ashldi3=no
15770 rm -f core conftest.err conftest.$ac_objext \
15771 conftest$ac_exeext conftest.$ac_ext
15772 LIBS=$ac_check_lib_save_LIBS
15774 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15775 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15776 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15778 cat >>confdefs.h <<\_ACEOF
15779 #define HAVE___ASHLDI3 1
15784 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15785 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15786 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 ac_check_lib_save_LIBS=$LIBS
15791 cat >conftest.$ac_ext <<_ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15798 /* Override any GCC internal prototype to avoid an error.
15799 Use char because int might match the return type of a GCC
15800 builtin and then its argument prototype would still apply. */
15808 return __ashrdi3 ();
15813 rm -f conftest.$ac_objext conftest$ac_exeext
15814 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15822 grep -v '^ *+' conftest.er1 >conftest.err
15824 cat conftest.err >&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
15827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15828 { (case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_try") 2>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest$ac_exeext'
15838 { (case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843 (eval "$ac_try") 2>&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 ac_cv_lib_gcc___ashrdi3=yes
15849 echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 ac_cv_lib_gcc___ashrdi3=no
15855 rm -f core conftest.err conftest.$ac_objext \
15856 conftest$ac_exeext conftest.$ac_ext
15857 LIBS=$ac_check_lib_save_LIBS
15859 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15860 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15861 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15863 cat >>confdefs.h <<\_ACEOF
15864 #define HAVE___ASHRDI3 1
15869 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15870 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15871 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15874 ac_check_lib_save_LIBS=$LIBS
15876 cat >conftest.$ac_ext <<_ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15883 /* Override any GCC internal prototype to avoid an error.
15884 Use char because int might match the return type of a GCC
15885 builtin and then its argument prototype would still apply. */
15893 return __divdi3 ();
15898 rm -f conftest.$ac_objext conftest$ac_exeext
15899 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15907 grep -v '^ *+' conftest.er1 >conftest.err
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } &&
15912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15913 { (case "(($ac_try" in
15914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915 *) ac_try_echo=$ac_try;;
15917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918 (eval "$ac_try") 2>&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; } &&
15922 { ac_try='test -s conftest$ac_exeext'
15923 { (case "(($ac_try" in
15924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15925 *) ac_try_echo=$ac_try;;
15927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15928 (eval "$ac_try") 2>&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; }; then
15932 ac_cv_lib_gcc___divdi3=yes
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15937 ac_cv_lib_gcc___divdi3=no
15940 rm -f core conftest.err conftest.$ac_objext \
15941 conftest$ac_exeext conftest.$ac_ext
15942 LIBS=$ac_check_lib_save_LIBS
15944 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15945 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15946 if test $ac_cv_lib_gcc___divdi3 = yes; then
15948 cat >>confdefs.h <<\_ACEOF
15949 #define HAVE___DIVDI3 1
15954 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15955 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15956 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 ac_check_lib_save_LIBS=$LIBS
15961 cat >conftest.$ac_ext <<_ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h. */
15968 /* Override any GCC internal prototype to avoid an error.
15969 Use char because int might match the return type of a GCC
15970 builtin and then its argument prototype would still apply. */
15978 return __fixdfdi ();
15983 rm -f conftest.$ac_objext conftest$ac_exeext
15984 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15992 grep -v '^ *+' conftest.er1 >conftest.err
15994 cat conftest.err >&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } &&
15997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15998 { (case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_try") 2>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; } &&
16007 { ac_try='test -s conftest$ac_exeext'
16008 { (case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_try") 2>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; }; then
16017 ac_cv_lib_gcc___fixdfdi=yes
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16022 ac_cv_lib_gcc___fixdfdi=no
16025 rm -f core conftest.err conftest.$ac_objext \
16026 conftest$ac_exeext conftest.$ac_ext
16027 LIBS=$ac_check_lib_save_LIBS
16029 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16030 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16031 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16033 cat >>confdefs.h <<\_ACEOF
16034 #define HAVE___FIXDFDI 1
16039 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16040 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16041 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16044 ac_check_lib_save_LIBS=$LIBS
16046 cat >conftest.$ac_ext <<_ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16053 /* Override any GCC internal prototype to avoid an error.
16054 Use char because int might match the return type of a GCC
16055 builtin and then its argument prototype would still apply. */
16063 return __fixsfdi ();
16068 rm -f conftest.$ac_objext conftest$ac_exeext
16069 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16077 grep -v '^ *+' conftest.er1 >conftest.err
16079 cat conftest.err >&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); } &&
16082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16083 { (case "(($ac_try" in
16084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085 *) ac_try_echo=$ac_try;;
16087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088 (eval "$ac_try") 2>&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; } &&
16092 { ac_try='test -s conftest$ac_exeext'
16093 { (case "(($ac_try" in
16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095 *) ac_try_echo=$ac_try;;
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098 (eval "$ac_try") 2>&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); }; }; then
16102 ac_cv_lib_gcc___fixsfdi=yes
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16107 ac_cv_lib_gcc___fixsfdi=no
16110 rm -f core conftest.err conftest.$ac_objext \
16111 conftest$ac_exeext conftest.$ac_ext
16112 LIBS=$ac_check_lib_save_LIBS
16114 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16115 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16116 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16118 cat >>confdefs.h <<\_ACEOF
16119 #define HAVE___FIXSFDI 1
16124 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16125 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16126 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 ac_check_lib_save_LIBS=$LIBS
16131 cat >conftest.$ac_ext <<_ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16138 /* Override any GCC internal prototype to avoid an error.
16139 Use char because int might match the return type of a GCC
16140 builtin and then its argument prototype would still apply. */
16144 char __floatdidf ();
16148 return __floatdidf ();
16153 rm -f conftest.$ac_objext conftest$ac_exeext
16154 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16162 grep -v '^ *+' conftest.er1 >conftest.err
16164 cat conftest.err >&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } &&
16167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16168 { (case "(($ac_try" in
16169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170 *) ac_try_echo=$ac_try;;
16172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173 (eval "$ac_try") 2>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } &&
16177 { ac_try='test -s conftest$ac_exeext'
16178 { (case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_try") 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 ac_cv_lib_gcc___floatdidf=yes
16189 echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16192 ac_cv_lib_gcc___floatdidf=no
16195 rm -f core conftest.err conftest.$ac_objext \
16196 conftest$ac_exeext conftest.$ac_ext
16197 LIBS=$ac_check_lib_save_LIBS
16199 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16200 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16201 if test $ac_cv_lib_gcc___floatdidf = yes; then
16203 cat >>confdefs.h <<\_ACEOF
16204 #define HAVE___FLOATDIDF 1
16209 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16210 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16211 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16212 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 ac_check_lib_save_LIBS=$LIBS
16216 cat >conftest.$ac_ext <<_ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h. */
16223 /* Override any GCC internal prototype to avoid an error.
16224 Use char because int might match the return type of a GCC
16225 builtin and then its argument prototype would still apply. */
16233 return __lshrdi3 ();
16238 rm -f conftest.$ac_objext conftest$ac_exeext
16239 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16247 grep -v '^ *+' conftest.er1 >conftest.err
16249 cat conftest.err >&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } &&
16252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16253 { (case "(($ac_try" in
16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255 *) ac_try_echo=$ac_try;;
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258 (eval "$ac_try") 2>&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; } &&
16262 { ac_try='test -s conftest$ac_exeext'
16263 { (case "(($ac_try" in
16264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16265 *) ac_try_echo=$ac_try;;
16267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16268 (eval "$ac_try") 2>&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 ac_cv_lib_gcc___lshrdi3=yes
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 ac_cv_lib_gcc___lshrdi3=no
16280 rm -f core conftest.err conftest.$ac_objext \
16281 conftest$ac_exeext conftest.$ac_ext
16282 LIBS=$ac_check_lib_save_LIBS
16284 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16285 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16286 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16288 cat >>confdefs.h <<\_ACEOF
16289 #define HAVE___LSHRDI3 1
16294 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16295 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16296 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16297 echo $ECHO_N "(cached) $ECHO_C" >&6
16299 ac_check_lib_save_LIBS=$LIBS
16301 cat >conftest.$ac_ext <<_ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h. */
16308 /* Override any GCC internal prototype to avoid an error.
16309 Use char because int might match the return type of a GCC
16310 builtin and then its argument prototype would still apply. */
16318 return __moddi3 ();
16323 rm -f conftest.$ac_objext conftest$ac_exeext
16324 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16332 grep -v '^ *+' conftest.er1 >conftest.err
16334 cat conftest.err >&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } &&
16337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16338 { (case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_try") 2>&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; } &&
16347 { ac_try='test -s conftest$ac_exeext'
16348 { (case "(($ac_try" in
16349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350 *) ac_try_echo=$ac_try;;
16352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353 (eval "$ac_try") 2>&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 ac_cv_lib_gcc___moddi3=yes
16359 echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16362 ac_cv_lib_gcc___moddi3=no
16365 rm -f core conftest.err conftest.$ac_objext \
16366 conftest$ac_exeext conftest.$ac_ext
16367 LIBS=$ac_check_lib_save_LIBS
16369 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16370 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16371 if test $ac_cv_lib_gcc___moddi3 = yes; then
16373 cat >>confdefs.h <<\_ACEOF
16374 #define HAVE___MODDI3 1
16379 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16380 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16381 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16382 echo $ECHO_N "(cached) $ECHO_C" >&6
16384 ac_check_lib_save_LIBS=$LIBS
16386 cat >conftest.$ac_ext <<_ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h. */
16393 /* Override any GCC internal prototype to avoid an error.
16394 Use char because int might match the return type of a GCC
16395 builtin and then its argument prototype would still apply. */
16403 return __udivdi3 ();
16408 rm -f conftest.$ac_objext conftest$ac_exeext
16409 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16417 grep -v '^ *+' conftest.er1 >conftest.err
16419 cat conftest.err >&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } &&
16422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16423 { (case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_try") 2>&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; } &&
16432 { ac_try='test -s conftest$ac_exeext'
16433 { (case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438 (eval "$ac_try") 2>&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; }; then
16442 ac_cv_lib_gcc___udivdi3=yes
16444 echo "$as_me: failed program was:" >&5
16445 sed 's/^/| /' conftest.$ac_ext >&5
16447 ac_cv_lib_gcc___udivdi3=no
16450 rm -f core conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
16452 LIBS=$ac_check_lib_save_LIBS
16454 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16455 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16456 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16458 cat >>confdefs.h <<\_ACEOF
16459 #define HAVE___UDIVDI3 1
16464 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16465 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16466 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16469 ac_check_lib_save_LIBS=$LIBS
16471 cat >conftest.$ac_ext <<_ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h. */
16478 /* Override any GCC internal prototype to avoid an error.
16479 Use char because int might match the return type of a GCC
16480 builtin and then its argument prototype would still apply. */
16488 return __umoddi3 ();
16493 rm -f conftest.$ac_objext conftest$ac_exeext
16494 if { (ac_try="$ac_link"
16495 case "(($ac_try" in
16496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497 *) ac_try_echo=$ac_try;;
16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500 (eval "$ac_link") 2>conftest.er1
16502 grep -v '^ *+' conftest.er1 >conftest.err
16504 cat conftest.err >&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } &&
16507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16508 { (case "(($ac_try" in
16509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510 *) ac_try_echo=$ac_try;;
16512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513 (eval "$ac_try") 2>&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; } &&
16517 { ac_try='test -s conftest$ac_exeext'
16518 { (case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_try") 2>&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; }; then
16527 ac_cv_lib_gcc___umoddi3=yes
16529 echo "$as_me: failed program was:" >&5
16530 sed 's/^/| /' conftest.$ac_ext >&5
16532 ac_cv_lib_gcc___umoddi3=no
16535 rm -f core conftest.err conftest.$ac_objext \
16536 conftest$ac_exeext conftest.$ac_ext
16537 LIBS=$ac_check_lib_save_LIBS
16539 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16540 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16541 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16543 cat >>confdefs.h <<\_ACEOF
16544 #define HAVE___UMODDI3 1
16550 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16551 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16552 if test "${ac_cv_lib_gcc___main+set}" = set; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 ac_check_lib_save_LIBS=$LIBS
16557 cat >conftest.$ac_ext <<_ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16564 /* Override any GCC internal prototype to avoid an error.
16565 Use char because int might match the return type of a GCC
16566 builtin and then its argument prototype would still apply. */
16579 rm -f conftest.$ac_objext conftest$ac_exeext
16580 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16588 grep -v '^ *+' conftest.er1 >conftest.err
16590 cat conftest.err >&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); } &&
16593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16594 { (case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_try") 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; } &&
16603 { ac_try='test -s conftest$ac_exeext'
16604 { (case "(($ac_try" in
16605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606 *) ac_try_echo=$ac_try;;
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609 (eval "$ac_try") 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 ac_cv_lib_gcc___main=yes
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 ac_cv_lib_gcc___main=no
16621 rm -f core conftest.err conftest.$ac_objext \
16622 conftest$ac_exeext conftest.$ac_ext
16623 LIBS=$ac_check_lib_save_LIBS
16625 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16626 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16627 if test $ac_cv_lib_gcc___main = yes; then
16629 cat >>confdefs.h <<\_ACEOF
16630 #define HAVE___MAIN 1
16635 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16636 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16637 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 ac_check_lib_save_LIBS=$LIBS
16642 cat >conftest.$ac_ext <<_ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h. */
16649 /* Override any GCC internal prototype to avoid an error.
16650 Use char because int might match the return type of a GCC
16651 builtin and then its argument prototype would still apply. */
16659 return __cmpdi2 ();
16664 rm -f conftest.$ac_objext conftest$ac_exeext
16665 if { (ac_try="$ac_link"
16666 case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_link") 2>conftest.er1
16673 grep -v '^ *+' conftest.er1 >conftest.err
16675 cat conftest.err >&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16679 { (case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684 (eval "$ac_try") 2>&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; } &&
16688 { ac_try='test -s conftest$ac_exeext'
16689 { (case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_try") 2>&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; }; then
16698 ac_cv_lib_gcc___cmpdi2=yes
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16703 ac_cv_lib_gcc___cmpdi2=no
16706 rm -f core conftest.err conftest.$ac_objext \
16707 conftest$ac_exeext conftest.$ac_ext
16708 LIBS=$ac_check_lib_save_LIBS
16710 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16711 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16712 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16714 cat >>confdefs.h <<\_ACEOF
16715 #define HAVE___CMPDI2 1
16722 if test "$llvm_cv_os_type" = "MingW" ; then
16723 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16724 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16725 cat >conftest.$ac_ext <<_ACEOF
16729 cat confdefs.h >>conftest.$ac_ext
16730 cat >>conftest.$ac_ext <<_ACEOF
16731 /* end confdefs.h. */
16733 #include <windows.h>
16734 #include <imagehlp.h>
16735 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16736 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16740 rm -f conftest.$ac_objext
16741 if { (ac_try="$ac_compile"
16742 case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747 (eval "$ac_compile") 2>conftest.er1
16749 grep -v '^ *+' conftest.er1 >conftest.err
16751 cat conftest.err >&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16755 { (case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_try") 2>&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; } &&
16764 { ac_try='test -s conftest.$ac_objext'
16765 { (case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_try") 2>&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16775 { echo "$as_me:$LINENO: result: yes" >&5
16776 echo "${ECHO_T}yes" >&6; }
16777 llvm_cv_win32_elmcb_pcstr="PCSTR"
16780 echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16784 { echo "$as_me:$LINENO: result: no" >&5
16785 echo "${ECHO_T}no" >&6; }
16786 llvm_cv_win32_elmcb_pcstr="PSTR"
16790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16792 cat >>confdefs.h <<_ACEOF
16793 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16800 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
16801 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
16802 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16807 ac_cpp='$CXXCPP $CPPFLAGS'
16808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16812 cat >conftest.$ac_ext <<_ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h. */
16827 rm -f conftest.$ac_objext
16828 if { (ac_try="$ac_compile"
16829 case "(($ac_try" in
16830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831 *) ac_try_echo=$ac_try;;
16833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16834 (eval "$ac_compile") 2>conftest.er1
16836 grep -v '^ *+' conftest.er1 >conftest.err
16838 cat conftest.err >&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
16841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16842 { (case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847 (eval "$ac_try") 2>&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try='test -s conftest.$ac_objext'
16852 { (case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_try") 2>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_cv_func_isnan_in_math_h=yes
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 ac_cv_func_isnan_in_math_h=no
16869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871 ac_cpp='$CPP $CPPFLAGS'
16872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16878 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
16879 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
16882 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
16884 cat >>confdefs.h <<\_ACEOF
16885 #define HAVE_ISNAN_IN_MATH_H 1
16891 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
16892 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
16893 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16898 ac_cpp='$CXXCPP $CPPFLAGS'
16899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16903 cat >conftest.$ac_ext <<_ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16918 rm -f conftest.$ac_objext
16919 if { (ac_try="$ac_compile"
16920 case "(($ac_try" in
16921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922 *) ac_try_echo=$ac_try;;
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925 (eval "$ac_compile") 2>conftest.er1
16927 grep -v '^ *+' conftest.er1 >conftest.err
16929 cat conftest.err >&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); } &&
16932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16933 { (case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_try") 2>&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; } &&
16942 { ac_try='test -s conftest.$ac_objext'
16943 { (case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_try") 2>&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; }; then
16952 ac_cv_func_isnan_in_cmath=yes
16954 echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16957 ac_cv_func_isnan_in_cmath=no
16960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16962 ac_cpp='$CPP $CPPFLAGS'
16963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16969 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
16970 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
16972 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
16974 cat >>confdefs.h <<\_ACEOF
16975 #define HAVE_ISNAN_IN_CMATH 1
16981 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
16982 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
16983 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 ac_cpp='$CXXCPP $CPPFLAGS'
16989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16993 cat >conftest.$ac_ext <<_ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
17003 float f; std::isnan(f);
17008 rm -f conftest.$ac_objext
17009 if { (ac_try="$ac_compile"
17010 case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_compile") 2>conftest.er1
17017 grep -v '^ *+' conftest.er1 >conftest.err
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_try") 2>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; } &&
17032 { ac_try='test -s conftest.$ac_objext'
17033 { (case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_try") 2>&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 ac_cv_func_std_isnan_in_cmath=yes
17044 echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17047 ac_cv_func_std_isnan_in_cmath=no
17050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17052 ac_cpp='$CPP $CPPFLAGS'
17053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17059 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17060 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17062 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17064 cat >>confdefs.h <<\_ACEOF
17065 #define HAVE_STD_ISNAN_IN_CMATH 1
17073 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17074 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17075 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17076 echo $ECHO_N "(cached) $ECHO_C" >&6
17080 ac_cpp='$CXXCPP $CPPFLAGS'
17081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17085 cat >conftest.$ac_ext <<_ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17100 rm -f conftest.$ac_objext
17101 if { (ac_try="$ac_compile"
17102 case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107 (eval "$ac_compile") 2>conftest.er1
17109 grep -v '^ *+' conftest.er1 >conftest.err
17111 cat conftest.err >&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17115 { (case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_try") 2>&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; } &&
17124 { ac_try='test -s conftest.$ac_objext'
17125 { (case "(($ac_try" in
17126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130 (eval "$ac_try") 2>&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17134 ac_cv_func_isinf_in_math_h=yes
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17139 ac_cv_func_isinf_in_math_h=no
17142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17144 ac_cpp='$CPP $CPPFLAGS'
17145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17151 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17152 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17154 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17156 cat >>confdefs.h <<\_ACEOF
17157 #define HAVE_ISINF_IN_MATH_H 1
17163 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17164 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17165 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 ac_cpp='$CXXCPP $CPPFLAGS'
17171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17175 cat >conftest.$ac_ext <<_ACEOF
17178 cat confdefs.h >>conftest.$ac_ext
17179 cat >>conftest.$ac_ext <<_ACEOF
17180 /* end confdefs.h. */
17190 rm -f conftest.$ac_objext
17191 if { (ac_try="$ac_compile"
17192 case "(($ac_try" in
17193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17194 *) ac_try_echo=$ac_try;;
17196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17197 (eval "$ac_compile") 2>conftest.er1
17199 grep -v '^ *+' conftest.er1 >conftest.err
17201 cat conftest.err >&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); } &&
17204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17205 { (case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_try") 2>&5
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); }; } &&
17214 { ac_try='test -s conftest.$ac_objext'
17215 { (case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220 (eval "$ac_try") 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 ac_cv_func_isinf_in_cmath=yes
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17229 ac_cv_func_isinf_in_cmath=no
17232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17234 ac_cpp='$CPP $CPPFLAGS'
17235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17241 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17242 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17244 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17246 cat >>confdefs.h <<\_ACEOF
17247 #define HAVE_ISINF_IN_CMATH 1
17253 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17254 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17255 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17256 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 ac_cpp='$CXXCPP $CPPFLAGS'
17261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17265 cat >conftest.$ac_ext <<_ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h. */
17275 float f; std::isinf(f);
17280 rm -f conftest.$ac_objext
17281 if { (ac_try="$ac_compile"
17282 case "(($ac_try" in
17283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284 *) ac_try_echo=$ac_try;;
17286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287 (eval "$ac_compile") 2>conftest.er1
17289 grep -v '^ *+' conftest.er1 >conftest.err
17291 cat conftest.err >&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } &&
17294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17295 { (case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_try") 2>&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; } &&
17304 { ac_try='test -s conftest.$ac_objext'
17305 { (case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_try") 2>&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 ac_cv_func_std_isinf_in_cmath=yes
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17319 ac_cv_func_std_isinf_in_cmath=no
17322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17324 ac_cpp='$CPP $CPPFLAGS'
17325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17331 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17332 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17334 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17336 cat >>confdefs.h <<\_ACEOF
17337 #define HAVE_STD_ISINF_IN_CMATH 1
17343 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17344 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17345 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17350 ac_cpp='$CXXCPP $CPPFLAGS'
17351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17355 cat >conftest.$ac_ext <<_ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h. */
17361 #include <ieeefp.h>
17365 float f; finite(f);
17370 rm -f conftest.$ac_objext
17371 if { (ac_try="$ac_compile"
17372 case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_compile") 2>conftest.er1
17379 grep -v '^ *+' conftest.er1 >conftest.err
17381 cat conftest.err >&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); } &&
17384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17385 { (case "(($ac_try" in
17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390 (eval "$ac_try") 2>&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; } &&
17394 { ac_try='test -s conftest.$ac_objext'
17395 { (case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_try") 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404 ac_cv_func_finite_in_ieeefp_h=yes
17406 echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17409 ac_cv_func_finite_in_ieeefp_h=no
17412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17414 ac_cpp='$CPP $CPPFLAGS'
17415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17421 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17422 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17424 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17426 cat >>confdefs.h <<\_ACEOF
17427 #define HAVE_FINITE_IN_IEEEFP_H 1
17434 if test "$llvm_cv_platform_type" = "Unix" ; then
17437 for ac_header in stdlib.h unistd.h
17439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 ac_res=`eval echo '${'$as_ac_Header'}'`
17447 { echo "$as_me:$LINENO: result: $ac_res" >&5
17448 echo "${ECHO_T}$ac_res" >&6; }
17450 # Is the header compilable?
17451 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17453 cat >conftest.$ac_ext <<_ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17459 $ac_includes_default
17460 #include <$ac_header>
17462 rm -f conftest.$ac_objext
17463 if { (ac_try="$ac_compile"
17464 case "(($ac_try" in
17465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469 (eval "$ac_compile") 2>conftest.er1
17471 grep -v '^ *+' conftest.er1 >conftest.err
17473 cat conftest.err >&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } &&
17476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17477 { (case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_try") 2>&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; } &&
17486 { ac_try='test -s conftest.$ac_objext'
17487 { (case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_try") 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; }; then
17496 ac_header_compiler=yes
17498 echo "$as_me: failed program was:" >&5
17499 sed 's/^/| /' conftest.$ac_ext >&5
17501 ac_header_compiler=no
17504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17506 echo "${ECHO_T}$ac_header_compiler" >&6; }
17508 # Is the header present?
17509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17511 cat >conftest.$ac_ext <<_ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h. */
17517 #include <$ac_header>
17519 if { (ac_try="$ac_cpp conftest.$ac_ext"
17520 case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17527 grep -v '^ *+' conftest.er1 >conftest.err
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } >/dev/null; then
17532 if test -s conftest.err; then
17533 ac_cpp_err=$ac_c_preproc_warn_flag
17534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17541 if test -z "$ac_cpp_err"; then
17542 ac_header_preproc=yes
17544 echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17547 ac_header_preproc=no
17550 rm -f conftest.err conftest.$ac_ext
17551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17552 echo "${ECHO_T}$ac_header_preproc" >&6; }
17554 # So? What about this header?
17555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17561 ac_header_preproc=yes
17564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17577 ## ------------------------------------ ##
17578 ## Report this to http://llvm.org/bugs/ ##
17579 ## ------------------------------------ ##
17581 ) | sed "s/^/$as_me: WARNING: /" >&2
17584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 eval "$as_ac_Header=\$ac_header_preproc"
17591 ac_res=`eval echo '${'$as_ac_Header'}'`
17592 { echo "$as_me:$LINENO: result: $ac_res" >&5
17593 echo "${ECHO_T}$ac_res" >&6; }
17596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17597 cat >>confdefs.h <<_ACEOF
17598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17606 for ac_func in getpagesize
17608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17612 echo $ECHO_N "(cached) $ECHO_C" >&6
17614 cat >conftest.$ac_ext <<_ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h. */
17620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17622 #define $ac_func innocuous_$ac_func
17624 /* System header to define __stub macros and hopefully few prototypes,
17625 which can conflict with char $ac_func (); below.
17626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17627 <limits.h> exists even on freestanding compilers. */
17630 # include <limits.h>
17632 # include <assert.h>
17637 /* Override any GCC internal prototype to avoid an error.
17638 Use char because int might match the return type of a GCC
17639 builtin and then its argument prototype would still apply. */
17644 /* The GNU C library defines this for functions which it implements
17645 to always fail with ENOSYS. Some functions are actually named
17646 something starting with __ and the normal name is an alias. */
17647 #if defined __stub_$ac_func || defined __stub___$ac_func
17654 return $ac_func ();
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (ac_try="$ac_link"
17661 case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_link") 2>conftest.er1
17668 grep -v '^ *+' conftest.er1 >conftest.err
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } &&
17673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17674 { (case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_try") 2>&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; } &&
17683 { ac_try='test -s conftest$ac_exeext'
17684 { (case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_try") 2>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 eval "$as_ac_var=yes"
17695 echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17698 eval "$as_ac_var=no"
17701 rm -f core conftest.err conftest.$ac_objext \
17702 conftest$ac_exeext conftest.$ac_ext
17704 ac_res=`eval echo '${'$as_ac_var'}'`
17705 { echo "$as_me:$LINENO: result: $ac_res" >&5
17706 echo "${ECHO_T}$ac_res" >&6; }
17707 if test `eval echo '${'$as_ac_var'}'` = yes; then
17708 cat >>confdefs.h <<_ACEOF
17709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17715 { echo "$as_me:$LINENO: checking for working mmap" >&5
17716 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17717 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17718 echo $ECHO_N "(cached) $ECHO_C" >&6
17720 if test "$cross_compiling" = yes; then
17721 ac_cv_func_mmap_fixed_mapped=no
17723 cat >conftest.$ac_ext <<_ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 $ac_includes_default
17730 /* malloc might have been renamed as rpl_malloc. */
17733 /* Thanks to Mike Haertel and Jim Avera for this test.
17734 Here is a matrix of mmap possibilities:
17735 mmap private not fixed
17736 mmap private fixed at somewhere currently unmapped
17737 mmap private fixed at somewhere already mapped
17738 mmap shared not fixed
17739 mmap shared fixed at somewhere currently unmapped
17740 mmap shared fixed at somewhere already mapped
17741 For private mappings, we should verify that changes cannot be read()
17742 back from the file, nor mmap's back from the file at a different
17743 address. (There have been systems where private was not correctly
17744 implemented like the infamous i386 svr4.0, and systems where the
17745 VM page cache was not coherent with the file system buffer cache
17746 like early versions of FreeBSD and possibly contemporary NetBSD.)
17747 For shared mappings, we should conversely verify that changes get
17748 propagated back to all the places they're supposed to be.
17750 Grep wants private fixed already mapped.
17751 The main things grep needs to know about mmap are:
17752 * does it exist and is it safe to write into the mmap'd area
17753 * how to use it (BSD variants) */
17756 #include <sys/mman.h>
17758 #if !STDC_HEADERS && !HAVE_STDLIB_H
17762 /* This mess was copied from the GNU getpagesize.h. */
17763 #if !HAVE_GETPAGESIZE
17764 /* Assume that all systems that can run configure have sys/param.h. */
17765 # if !HAVE_SYS_PARAM_H
17766 # define HAVE_SYS_PARAM_H 1
17769 # ifdef _SC_PAGESIZE
17770 # define getpagesize() sysconf(_SC_PAGESIZE)
17771 # else /* no _SC_PAGESIZE */
17772 # if HAVE_SYS_PARAM_H
17773 # include <sys/param.h>
17774 # ifdef EXEC_PAGESIZE
17775 # define getpagesize() EXEC_PAGESIZE
17776 # else /* no EXEC_PAGESIZE */
17778 # define getpagesize() NBPG * CLSIZE
17781 # endif /* no CLSIZE */
17782 # else /* no NBPG */
17784 # define getpagesize() NBPC
17785 # else /* no NBPC */
17787 # define getpagesize() PAGESIZE
17788 # endif /* PAGESIZE */
17789 # endif /* no NBPC */
17790 # endif /* no NBPG */
17791 # endif /* no EXEC_PAGESIZE */
17792 # else /* no HAVE_SYS_PARAM_H */
17793 # define getpagesize() 8192 /* punt totally */
17794 # endif /* no HAVE_SYS_PARAM_H */
17795 # endif /* no _SC_PAGESIZE */
17797 #endif /* no HAVE_GETPAGESIZE */
17802 char *data, *data2, *data3;
17806 pagesize = getpagesize ();
17808 /* First, make a file with some known garbage in it. */
17809 data = (char *) malloc (pagesize);
17812 for (i = 0; i < pagesize; ++i)
17813 *(data + i) = rand ();
17815 fd = creat ("conftest.mmap", 0600);
17818 if (write (fd, data, pagesize) != pagesize)
17822 /* Next, try to mmap the file at a fixed address which already has
17823 something else allocated at it. If we can, also make sure that
17824 we see the same garbage. */
17825 fd = open ("conftest.mmap", O_RDWR);
17828 data2 = (char *) malloc (2 * pagesize);
17831 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17832 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17833 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17835 for (i = 0; i < pagesize; ++i)
17836 if (*(data + i) != *(data2 + i))
17839 /* Finally, make sure that changes to the mapped area do not
17840 percolate back to the file as seen by read(). (This is a bug on
17841 some variants of i386 svr4.0.) */
17842 for (i = 0; i < pagesize; ++i)
17843 *(data2 + i) = *(data2 + i) + 1;
17844 data3 = (char *) malloc (pagesize);
17847 if (read (fd, data3, pagesize) != pagesize)
17849 for (i = 0; i < pagesize; ++i)
17850 if (*(data + i) != *(data3 + i))
17856 rm -f conftest$ac_exeext
17857 if { (ac_try="$ac_link"
17858 case "(($ac_try" in
17859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860 *) ac_try_echo=$ac_try;;
17862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863 (eval "$ac_link") 2>&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17867 { (case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872 (eval "$ac_try") 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_cv_func_mmap_fixed_mapped=yes
17878 echo "$as_me: program exited with status $ac_status" >&5
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17882 ( exit $ac_status )
17883 ac_cv_func_mmap_fixed_mapped=no
17885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17890 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17891 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17892 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17894 cat >>confdefs.h <<\_ACEOF
17895 #define HAVE_MMAP 1
17899 rm -f conftest.mmap
17901 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17902 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17903 if test "${ac_cv_func_mmap_file+set}" = set; then
17904 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 ac_cpp='$CPP $CPPFLAGS'
17908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17912 if test "$cross_compiling" = yes; then
17913 ac_cv_func_mmap_file=no
17915 cat >conftest.$ac_ext <<_ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h. */
17923 #include <sys/types.h>
17924 #include <sys/mman.h>
17932 fd = creat ("foo",0777);
17933 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17935 return (fd != (int) MAP_FAILED);
17940 rm -f conftest$ac_exeext
17941 if { (ac_try="$ac_link"
17942 case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_link") 2>&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17951 { (case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_try") 2>&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_cv_func_mmap_file=yes
17962 echo "$as_me: program exited with status $ac_status" >&5
17963 echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17966 ( exit $ac_status )
17967 ac_cv_func_mmap_file=no
17969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17974 ac_cpp='$CPP $CPPFLAGS'
17975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17981 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17982 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17983 if test "$ac_cv_func_mmap_file" = yes; then
17985 cat >>confdefs.h <<\_ACEOF
17986 #define HAVE_MMAP_FILE
17993 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17994 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17995 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17996 echo $ECHO_N "(cached) $ECHO_C" >&6
17998 if test "$llvm_cv_os_type" = "Interix" ; then
17999 ac_cv_need_dev_zero_for_mmap=yes
18001 ac_cv_need_dev_zero_for_mmap=no
18005 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18006 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18007 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18009 cat >>confdefs.h <<\_ACEOF
18010 #define NEED_DEV_ZERO_FOR_MMAP 1
18015 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18017 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18018 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18020 if test "$ac_cv_func_mmap_file" = "no"
18022 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18023 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18027 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18028 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18030 ac_cpp='$CXXCPP $CPPFLAGS'
18031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18035 cat >conftest.$ac_ext <<_ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18044 volatile unsigned long val = 1;
18045 __sync_synchronize();
18046 __sync_val_compare_and_swap(&val, 1, 0);
18047 __sync_add_and_fetch(&val, 1);
18048 __sync_sub_and_fetch(&val, 1);
18054 rm -f conftest.$ac_objext conftest$ac_exeext
18055 if { (ac_try="$ac_link"
18056 case "(($ac_try" in
18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 *) ac_try_echo=$ac_try;;
18060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18061 (eval "$ac_link") 2>conftest.er1
18063 grep -v '^ *+' conftest.er1 >conftest.err
18065 cat conftest.err >&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); } &&
18068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18069 { (case "(($ac_try" in
18070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071 *) ac_try_echo=$ac_try;;
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074 (eval "$ac_try") 2>&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; } &&
18078 { ac_try='test -s conftest$ac_exeext'
18079 { (case "(($ac_try" in
18080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18081 *) ac_try_echo=$ac_try;;
18083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18084 (eval "$ac_try") 2>&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; }; then
18089 { echo "$as_me:$LINENO: result: yes" >&5
18090 echo "${ECHO_T}yes" >&6; }
18092 cat >>confdefs.h <<\_ACEOF
18093 #define LLVM_HAS_ATOMICS 1
18098 echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18102 { echo "$as_me:$LINENO: result: no" >&5
18103 echo "${ECHO_T}no" >&6; }
18105 cat >>confdefs.h <<\_ACEOF
18106 #define LLVM_HAS_ATOMICS 0
18109 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18110 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18114 rm -f core conftest.err conftest.$ac_objext \
18115 conftest$ac_exeext conftest.$ac_ext
18117 ac_cpp='$CPP $CPPFLAGS'
18118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18124 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18125 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18126 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18127 if test "${llvm_cv_linux_mixed+set}" = set; then
18128 echo $ECHO_N "(cached) $ECHO_C" >&6
18131 ac_cpp='$CPP $CPPFLAGS'
18132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18136 cat >conftest.$ac_ext <<_ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18143 error: Not x86-64 even if uname says so!
18154 rm -f conftest.$ac_objext
18155 if { (ac_try="$ac_compile"
18156 case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_compile") 2>conftest.er1
18163 grep -v '^ *+' conftest.er1 >conftest.err
18165 cat conftest.err >&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } &&
18168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18169 { (case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_try") 2>&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; } &&
18178 { ac_try='test -s conftest.$ac_objext'
18179 { (case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_try") 2>&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; }; then
18188 llvm_cv_linux_mixed=no
18190 echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.$ac_ext >&5
18193 llvm_cv_linux_mixed=yes
18196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18198 ac_cpp='$CPP $CPPFLAGS'
18199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18205 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18206 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18208 if test "$llvm_cv_linux_mixed" = "yes"; then
18209 llvm_cv_target_arch="x86"
18215 for ac_func in __dso_handle
18217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18221 echo $ECHO_N "(cached) $ECHO_C" >&6
18223 cat >conftest.$ac_ext <<_ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18231 #define $ac_func innocuous_$ac_func
18233 /* System header to define __stub macros and hopefully few prototypes,
18234 which can conflict with char $ac_func (); below.
18235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18236 <limits.h> exists even on freestanding compilers. */
18239 # include <limits.h>
18241 # include <assert.h>
18246 /* Override any GCC internal prototype to avoid an error.
18247 Use char because int might match the return type of a GCC
18248 builtin and then its argument prototype would still apply. */
18253 /* The GNU C library defines this for functions which it implements
18254 to always fail with ENOSYS. Some functions are actually named
18255 something starting with __ and the normal name is an alias. */
18256 #if defined __stub_$ac_func || defined __stub___$ac_func
18263 return $ac_func ();
18268 rm -f conftest.$ac_objext conftest$ac_exeext
18269 if { (ac_try="$ac_link"
18270 case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_link") 2>conftest.er1
18277 grep -v '^ *+' conftest.er1 >conftest.err
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
18282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18283 { (case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_try") 2>&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; } &&
18292 { ac_try='test -s conftest$ac_exeext'
18293 { (case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298 (eval "$ac_try") 2>&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; }; then
18302 eval "$as_ac_var=yes"
18304 echo "$as_me: failed program was:" >&5
18305 sed 's/^/| /' conftest.$ac_ext >&5
18307 eval "$as_ac_var=no"
18310 rm -f core conftest.err conftest.$ac_objext \
18311 conftest$ac_exeext conftest.$ac_ext
18313 ac_res=`eval echo '${'$as_ac_var'}'`
18314 { echo "$as_me:$LINENO: result: $ac_res" >&5
18315 echo "${ECHO_T}$ac_res" >&6; }
18316 if test `eval echo '${'$as_ac_var'}'` = yes; then
18317 cat >>confdefs.h <<_ACEOF
18318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18325 SHLIBEXT=$llvm_shlib_ext
18328 if test "${prefix}" = "NONE" ; then
18329 prefix="/usr/local"
18331 eval LLVM_PREFIX="${prefix}";
18332 eval LLVM_BINDIR="${prefix}/bin";
18333 eval LLVM_DATADIR="${prefix}/share/llvm";
18334 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18335 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18336 eval LLVM_INCLUDEDIR="${prefix}/include";
18337 eval LLVM_INFODIR="${prefix}/info";
18338 eval LLVM_MANDIR="${prefix}/man";
18339 LLVM_CONFIGTIME=`date`
18350 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18351 LLVM_CONFIGTIME="(timestamp not enabled)"
18355 cat >>confdefs.h <<_ACEOF
18356 #define LLVM_PREFIX "$LLVM_PREFIX"
18360 cat >>confdefs.h <<_ACEOF
18361 #define LLVM_BINDIR "$LLVM_BINDIR"
18365 cat >>confdefs.h <<_ACEOF
18366 #define LLVM_DATADIR "$LLVM_DATADIR"
18370 cat >>confdefs.h <<_ACEOF
18371 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18375 cat >>confdefs.h <<_ACEOF
18376 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18380 cat >>confdefs.h <<_ACEOF
18381 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18385 cat >>confdefs.h <<_ACEOF
18386 #define LLVM_INFODIR "$LLVM_INFODIR"
18390 cat >>confdefs.h <<_ACEOF
18391 #define LLVM_MANDIR "$LLVM_MANDIR"
18395 cat >>confdefs.h <<_ACEOF
18396 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18400 cat >>confdefs.h <<_ACEOF
18401 #define LLVM_HOST_TRIPLE "$host"
18405 cat >>confdefs.h <<_ACEOF
18406 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18410 if test "$BINDINGS_TO_BUILD" = auto ; then
18411 BINDINGS_TO_BUILD=""
18412 if test "x$OCAMLFIND" != x ; then
18413 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18415 if test "x$GO" != x ; then
18416 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18417 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18421 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18424 binding_prereqs_failed=0
18425 for a_binding in $BINDINGS_TO_BUILD ; do
18426 case "$a_binding" in
18428 if test "x$OCAMLFIND" = x ; then
18429 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
18430 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
18431 binding_prereqs_failed=1
18434 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
18441 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
18442 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
18443 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
18444 binding_prereqs_failed=1
18447 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
18451 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
18452 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18456 if test "x$with_ocaml_libdir" != xauto ; then
18457 OCAML_LIBDIR=$with_ocaml_libdir
18460 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18461 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18463 # ocaml stdlib is beneath our prefix; use stdlib
18464 OCAML_LIBDIR=$ocaml_stdlib
18467 # ocaml stdlib is outside our prefix; use libdir/ocaml
18468 OCAML_LIBDIR=${prefix}/lib/ocaml
18474 if test "x$GO" = x ; then
18475 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18476 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18477 binding_prereqs_failed=1
18479 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18482 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18483 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18484 binding_prereqs_failed=1
18490 if test "$binding_prereqs_failed" = 1 ; then
18491 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18492 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18493 { (exit 1); exit 1; }; }
18496 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18497 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18498 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 ac_cpp='$CXXCPP $CPPFLAGS'
18503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18507 oldcxxflags="$CXXFLAGS"
18508 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18509 cat >conftest.$ac_ext <<_ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18524 rm -f conftest.$ac_objext
18525 if { (ac_try="$ac_compile"
18526 case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_compile") 2>conftest.er1
18533 grep -v '^ *+' conftest.er1 >conftest.err
18535 cat conftest.err >&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } &&
18538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18539 { (case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_try") 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; } &&
18548 { ac_try='test -s conftest.$ac_objext'
18549 { (case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_try") 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; }; then
18558 llvm_cv_cxx_visibility_inlines_hidden=yes
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 llvm_cv_cxx_visibility_inlines_hidden=no
18566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18567 CXXFLAGS="$oldcxxflags"
18569 ac_cpp='$CPP $CPPFLAGS'
18570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18576 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18577 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18578 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18579 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18582 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18587 if test "$llvm_cv_link_use_r" = "yes" ; then
18594 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18595 RDYNAMIC="-rdynamic"
18602 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18609 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18611 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18613 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18615 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18617 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18620 ac_config_files="$ac_config_files Makefile.config"
18623 ac_config_files="$ac_config_files llvm.spec"
18626 ac_config_files="$ac_config_files docs/doxygen.cfg"
18629 if test "${clang_src_root}" = ""; then
18630 clang_src_root="$srcdir/tools/clang"
18632 if test -f ${clang_src_root}/README.txt; then
18634 cat >>confdefs.h <<_ACEOF
18635 #define CLANG_LIBDIR_SUFFIX ""
18639 configh="include/clang/Config/config.h"
18640 doxy="docs/doxygen.cfg"
18641 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18643 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18647 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18650 test "x$program_prefix" = "xNONE" && program_prefix=""
18654 ac_config_commands="$ac_config_commands setup"
18656 ac_config_commands="$ac_config_commands Makefile"
18659 ac_config_commands="$ac_config_commands Makefile.common"
18662 ac_config_commands="$ac_config_commands examples/Makefile"
18665 ac_config_commands="$ac_config_commands lib/Makefile"
18668 ac_config_commands="$ac_config_commands test/Makefile"
18671 ac_config_commands="$ac_config_commands test/Makefile.tests"
18674 ac_config_commands="$ac_config_commands unittests/Makefile"
18677 ac_config_commands="$ac_config_commands tools/Makefile"
18680 ac_config_commands="$ac_config_commands utils/Makefile"
18683 ac_config_commands="$ac_config_commands projects/Makefile"
18686 ac_config_commands="$ac_config_commands bindings/Makefile"
18689 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18693 cat >confcache <<\_ACEOF
18694 # This file is a shell script that caches the results of configure
18695 # tests run on this system so they can be shared between configure
18696 # scripts and configure runs, see configure's option --config-cache.
18697 # It is not useful on other systems. If it contains results you don't
18698 # want to keep, you may remove or edit it.
18700 # config.status only pays attention to the cache file if you give it
18701 # the --recheck option to rerun configure.
18703 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18704 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18705 # following values.
18709 # The following way of writing the cache mishandles newlines in values,
18710 # but we know of no workaround that is simple, portable, and efficient.
18711 # So, we kill variables containing newlines.
18712 # Ultrix sh set writes to stderr and can't be redirected directly,
18713 # and sets the high bit in the cache file unless we assign to the vars.
18715 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18716 eval ac_val=\$$ac_var
18720 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18721 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18724 _ | IFS | as_nl) ;; #(
18725 *) $as_unset $ac_var ;;
18731 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18732 *${as_nl}ac_space=\ *)
18733 # `set' does not quote correctly, so add quotes (double-quote
18734 # substitution turns \\\\ into \\, and sed turns \\ into \).
18737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18740 # `set' quotes correctly as required by POSIX, so do not add quotes.
18741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18750 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18752 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18754 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18755 if test -w "$cache_file"; then
18756 test "x$cache_file" != "x/dev/null" &&
18757 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18758 echo "$as_me: updating cache $cache_file" >&6;}
18759 cat confcache >$cache_file
18761 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18762 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18767 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18768 # Let make expand exec_prefix.
18769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18771 DEFS=-DHAVE_CONFIG_H
18775 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18776 # 1. Remove the extension, and $U if already installed.
18777 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18778 ac_i=`echo "$ac_i" | sed "$ac_script"`
18779 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18780 # will be set to the directory where LIBOBJS objects are built.
18781 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18782 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18784 LIBOBJS=$ac_libobjs
18786 LTLIBOBJS=$ac_ltlibobjs
18790 : ${CONFIG_STATUS=./config.status}
18791 ac_clean_files_save=$ac_clean_files
18792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18793 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18794 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18795 cat >$CONFIG_STATUS <<_ACEOF
18797 # Generated by $as_me.
18798 # Run this file to recreate the current configuration.
18799 # Compiler output produced by configure, useful for debugging
18800 # configure, is in config.log if it exists.
18803 ac_cs_recheck=false
18805 SHELL=\${CONFIG_SHELL-$SHELL}
18808 cat >>$CONFIG_STATUS <<\_ACEOF
18809 ## --------------------- ##
18810 ## M4sh Initialization. ##
18811 ## --------------------- ##
18813 # Be Bourne compatible
18814 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18817 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18818 # is contrary to our usage. Disable this feature.
18819 alias -g '${1+"$@"}'='"$@"'
18820 setopt NO_GLOB_SUBST
18822 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18824 BIN_SH=xpg4; export BIN_SH # for Tru64
18825 DUALCASE=1; export DUALCASE # for MKS sh
18829 # Avoid depending upon Character Ranges.
18830 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18831 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18832 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18833 as_cr_digits='0123456789'
18834 as_cr_alnum=$as_cr_Letters$as_cr_digits
18836 # The user is always right.
18837 if test "${PATH_SEPARATOR+set}" != set; then
18838 echo "#! /bin/sh" >conf$$.sh
18839 echo "exit 0" >>conf$$.sh
18841 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18849 # Support unset when possible.
18850 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18858 # We need space, tab and new line, in precisely that order. Quoting is
18859 # there to prevent editors from complaining about space-tab.
18860 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18861 # splitting by setting IFS to empty value.)
18866 # Find who we are. Look in the path if we contain no directory separator.
18868 *[\\/]* ) as_myself=$0 ;;
18869 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18870 for as_dir in $PATH
18873 test -z "$as_dir" && as_dir=.
18874 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18880 # We did not find ourselves, most probably we were run as `sh COMMAND'
18881 # in which case we are not to be found in the path.
18882 if test "x$as_myself" = x; then
18885 if test ! -f "$as_myself"; then
18886 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18887 { (exit 1); exit 1; }
18890 # Work around bugs in pre-3.0 UWIN ksh.
18891 for as_var in ENV MAIL MAILPATH
18892 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18900 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18901 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18902 LC_TELEPHONE LC_TIME
18904 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18905 eval $as_var=C; export $as_var
18907 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18911 # Required to use basename.
18912 if expr a : '\(a\)' >/dev/null 2>&1 &&
18913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18919 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18920 as_basename=basename
18926 # Name of the executable.
18927 as_me=`$as_basename -- "$0" ||
18928 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18929 X"$0" : 'X\(//\)$' \| \
18930 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18932 sed '/^.*\/\([^/][^/]*\)\/*$/{
18951 as_lineno_1=$LINENO
18952 as_lineno_2=$LINENO
18953 test "x$as_lineno_1" != "x$as_lineno_2" &&
18954 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18956 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18957 # uniformly replaced by the line number. The first 'sed' inserts a
18958 # line-number line after each line using $LINENO; the second 'sed'
18959 # does the real work. The second script uses 'N' to pair each
18960 # line-number line with the line containing $LINENO, and appends
18961 # trailing '-' during substitution so that $LINENO is not a special
18962 # case at line end.
18963 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18964 # scripts with optimization help from Paolo Bonzini. Blame Lee
18965 # E. McMahon (1931-1989) for sed's syntax. :-)
18977 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18980 ' >$as_me.lineno &&
18981 chmod +x "$as_me.lineno" ||
18982 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18983 { (exit 1); exit 1; }; }
18985 # Don't try to exec as it changes $[0], causing all sort of problems
18986 # (the dirname of $[0] is not the place where we might find the
18987 # original and so on. Autoconf is especially sensitive to this).
18988 . "./$as_me.lineno"
18989 # Exit status is that of the last command.
18994 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19000 ECHO_C= ECHO_N= ECHO_T=
19001 case `echo -n x` in
19003 case `echo 'x\c'` in
19004 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19011 if expr a : '\(a\)' >/dev/null 2>&1 &&
19012 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19018 rm -f conf$$ conf$$.exe conf$$.file
19019 if test -d conf$$.dir; then
19020 rm -f conf$$.dir/conf$$.file
19026 if ln -s conf$$.file conf$$ 2>/dev/null; then
19028 # ... but there are two gotchas:
19029 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19030 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19031 # In both cases, we have to default to `cp -p'.
19032 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19034 elif ln conf$$.file conf$$ 2>/dev/null; then
19039 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19040 rmdir conf$$.dir 2>/dev/null
19042 if mkdir -p . 2>/dev/null; then
19045 test -d ./-p && rmdir ./-p
19049 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
19050 # systems may use methods other than mode bits to determine executability.
19051 cat >conf$$.file <<_ASEOF
19055 chmod +x conf$$.file
19056 if test -x conf$$.file >/dev/null 2>&1; then
19057 as_executable_p="test -x"
19063 # Sed expression to map a string onto a valid CPP name.
19064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19066 # Sed expression to map a string onto a valid variable name.
19067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19072 # Save the log message, to keep $[0] and so on meaningful, and to
19073 # report actual input values of CONFIG_FILES etc. instead of their
19074 # values after options handling.
19076 This file was extended by LLVM $as_me 3.7.0svn, which was
19077 generated by GNU Autoconf 2.60. Invocation command line was
19079 CONFIG_FILES = $CONFIG_FILES
19080 CONFIG_HEADERS = $CONFIG_HEADERS
19081 CONFIG_LINKS = $CONFIG_LINKS
19082 CONFIG_COMMANDS = $CONFIG_COMMANDS
19085 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19090 cat >>$CONFIG_STATUS <<_ACEOF
19091 # Files that config.status was made for.
19092 config_files="$ac_config_files"
19093 config_headers="$ac_config_headers"
19094 config_commands="$ac_config_commands"
19098 cat >>$CONFIG_STATUS <<\_ACEOF
19100 \`$as_me' instantiates files from templates according to the
19101 current configuration.
19103 Usage: $0 [OPTIONS] [FILE]...
19105 -h, --help print this help, then exit
19106 -V, --version print version number, then exit
19107 -q, --quiet do not print progress messages
19108 -d, --debug don't remove temporary files
19109 --recheck update $as_me by reconfiguring in the same conditions
19110 --file=FILE[:TEMPLATE]
19111 instantiate the configuration file FILE
19112 --header=FILE[:TEMPLATE]
19113 instantiate the configuration header FILE
19115 Configuration files:
19118 Configuration headers:
19121 Configuration commands:
19124 Report bugs to <bug-autoconf@gnu.org>."
19127 cat >>$CONFIG_STATUS <<_ACEOF
19129 LLVM config.status 3.7.0svn
19130 configured by $0, generated by GNU Autoconf 2.60,
19131 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19133 Copyright (C) 2006 Free Software Foundation, Inc.
19134 This config.status script is free software; the Free Software Foundation
19135 gives unlimited permission to copy, distribute and modify it."
19142 cat >>$CONFIG_STATUS <<\_ACEOF
19143 # If no file are specified by the user, then we need to provide default
19144 # value. By we need to know if files were specified by the user.
19150 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19151 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19162 # Handling of the options.
19163 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19165 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19166 echo "$ac_cs_version"; exit ;;
19167 --debug | --debu | --deb | --de | --d | -d )
19169 --file | --fil | --fi | --f )
19171 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19172 ac_need_defaults=false;;
19173 --header | --heade | --head | --hea )
19175 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19176 ac_need_defaults=false;;
19178 # Conflict between --help and --header
19179 { echo "$as_me: error: ambiguous option: $1
19180 Try \`$0 --help' for more information." >&2
19181 { (exit 1); exit 1; }; };;
19182 --help | --hel | -h )
19183 echo "$ac_cs_usage"; exit ;;
19184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19188 # This is an error.
19189 -*) { echo "$as_me: error: unrecognized option: $1
19190 Try \`$0 --help' for more information." >&2
19191 { (exit 1); exit 1; }; } ;;
19193 *) ac_config_targets="$ac_config_targets $1"
19194 ac_need_defaults=false ;;
19200 ac_configure_extra_args=
19202 if $ac_cs_silent; then
19204 ac_configure_extra_args="$ac_configure_extra_args --silent"
19208 cat >>$CONFIG_STATUS <<_ACEOF
19209 if \$ac_cs_recheck; then
19210 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19211 CONFIG_SHELL=$SHELL
19212 export CONFIG_SHELL
19213 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19217 cat >>$CONFIG_STATUS <<\_ACEOF
19221 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19222 ## Running $as_me. ##
19228 cat >>$CONFIG_STATUS <<_ACEOF
19232 llvm_src="${srcdir}"
19236 cat >>$CONFIG_STATUS <<\_ACEOF
19238 # Handling of arguments.
19239 for ac_config_target in $ac_config_targets
19241 case $ac_config_target in
19242 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19243 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19244 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19245 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19246 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19247 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19248 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19249 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19250 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19251 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19252 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19253 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19254 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19255 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19256 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19257 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19258 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19259 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19260 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19261 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19262 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19263 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19264 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19265 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19266 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19267 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19269 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19270 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19271 { (exit 1); exit 1; }; };;
19276 # If the user did not use the arguments to specify the items to instantiate,
19277 # then the envvar interface is used. Set only those that are not.
19278 # We use the long form for the default assignment because of an extremely
19279 # bizarre bug on SunOS 4.1.3.
19280 if $ac_need_defaults; then
19281 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19282 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19283 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19286 # Have a temporary directory for convenience. Make it in the build tree
19287 # simply because there is no reason against having it here, and in addition,
19288 # creating and moving files from /tmp can sometimes cause problems.
19289 # Hook for its removal unless debugging.
19290 # Note that there is a small window in which the directory will not be cleaned:
19291 # after its creation but before its name has been assigned to `$tmp'.
19295 trap 'exit_status=$?
19296 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19298 trap '{ (exit 1); exit 1; }' 1 2 13 15
19300 # Create a (secure) tmp directory for tmp files.
19303 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19304 test -n "$tmp" && test -d "$tmp"
19307 tmp=./conf$$-$RANDOM
19308 (umask 077 && mkdir "$tmp")
19311 echo "$me: cannot create a temporary directory in ." >&2
19312 { (exit 1); exit 1; }
19316 # Set up the sed scripts for CONFIG_FILES section.
19319 # No need to generate the scripts if there are no CONFIG_FILES.
19320 # This happens for instance when ./config.status config.h
19321 if test -n "$CONFIG_FILES"; then
19328 for ac_last_try in false false false false false :; do
19329 cat >conf$$subs.sed <<_ACEOF
19330 SHELL!$SHELL$ac_delim
19331 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19332 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19333 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19334 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19335 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19336 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19337 exec_prefix!$exec_prefix$ac_delim
19338 prefix!$prefix$ac_delim
19339 program_transform_name!$program_transform_name$ac_delim
19340 bindir!$bindir$ac_delim
19341 sbindir!$sbindir$ac_delim
19342 libexecdir!$libexecdir$ac_delim
19343 datarootdir!$datarootdir$ac_delim
19344 datadir!$datadir$ac_delim
19345 sysconfdir!$sysconfdir$ac_delim
19346 sharedstatedir!$sharedstatedir$ac_delim
19347 localstatedir!$localstatedir$ac_delim
19348 includedir!$includedir$ac_delim
19349 oldincludedir!$oldincludedir$ac_delim
19350 docdir!$docdir$ac_delim
19351 infodir!$infodir$ac_delim
19352 htmldir!$htmldir$ac_delim
19353 dvidir!$dvidir$ac_delim
19354 pdfdir!$pdfdir$ac_delim
19355 psdir!$psdir$ac_delim
19356 libdir!$libdir$ac_delim
19357 localedir!$localedir$ac_delim
19358 mandir!$mandir$ac_delim
19359 DEFS!$DEFS$ac_delim
19360 ECHO_C!$ECHO_C$ac_delim
19361 ECHO_N!$ECHO_N$ac_delim
19362 ECHO_T!$ECHO_T$ac_delim
19363 LIBS!$LIBS$ac_delim
19364 build_alias!$build_alias$ac_delim
19365 host_alias!$host_alias$ac_delim
19366 target_alias!$target_alias$ac_delim
19367 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19368 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19369 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19370 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19371 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19373 CFLAGS!$CFLAGS$ac_delim
19374 LDFLAGS!$LDFLAGS$ac_delim
19375 CPPFLAGS!$CPPFLAGS$ac_delim
19376 ac_ct_CC!$ac_ct_CC$ac_delim
19377 EXEEXT!$EXEEXT$ac_delim
19378 OBJEXT!$OBJEXT$ac_delim
19380 CXXFLAGS!$CXXFLAGS$ac_delim
19381 ac_ct_CXX!$ac_ct_CXX$ac_delim
19383 subdirs!$subdirs$ac_delim
19384 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19385 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19386 build!$build$ac_delim
19387 build_cpu!$build_cpu$ac_delim
19388 build_vendor!$build_vendor$ac_delim
19389 build_os!$build_os$ac_delim
19390 host!$host$ac_delim
19391 host_cpu!$host_cpu$ac_delim
19392 host_vendor!$host_vendor$ac_delim
19393 host_os!$host_os$ac_delim
19394 target!$target$ac_delim
19395 target_cpu!$target_cpu$ac_delim
19396 target_vendor!$target_vendor$ac_delim
19397 target_os!$target_os$ac_delim
19399 HOST_OS!$HOST_OS$ac_delim
19400 TARGET_OS!$TARGET_OS$ac_delim
19401 LINKALL!$LINKALL$ac_delim
19402 NOLINKALL!$NOLINKALL$ac_delim
19403 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19404 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19405 ARCH!$ARCH$ac_delim
19406 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19407 HOST_ARCH!$HOST_ARCH$ac_delim
19408 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19409 BUILD_CC!$BUILD_CC$ac_delim
19410 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19411 BUILD_CXX!$BUILD_CXX$ac_delim
19412 CVSBUILD!$CVSBUILD$ac_delim
19413 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19414 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19415 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19416 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19417 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19418 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19419 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19420 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19421 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19422 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19423 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19424 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19425 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19426 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19429 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19431 elif $ac_last_try; then
19432 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19433 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19434 { (exit 1); exit 1; }; }
19436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19440 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19441 if test -n "$ac_eof"; then
19442 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19443 ac_eof=`expr $ac_eof + 1`
19446 cat >>$CONFIG_STATUS <<_ACEOF
19447 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19451 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19452 s/^/s,@/; s/!/@,|#_!!_#|/
19455 s/'"$ac_delim"'$/,g/; t
19457 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19458 ' >>$CONFIG_STATUS <conf$$subs.sed
19459 rm -f conf$$subs.sed
19460 cat >>$CONFIG_STATUS <<_ACEOF
19466 for ac_last_try in false false false false false :; do
19467 cat >conf$$subs.sed <<_ACEOF
19468 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19470 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19471 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19472 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19473 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19474 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19475 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19476 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19477 ENABLE_PIC!$ENABLE_PIC$ac_delim
19478 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19479 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19480 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19481 ALL_TARGETS!$ALL_TARGETS$ac_delim
19482 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19483 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19484 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19485 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19486 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19487 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19488 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19489 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19490 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19491 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19492 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19493 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19494 ifGNUmake!$ifGNUmake$ac_delim
19495 LN_S!$LN_S$ac_delim
19499 DATE!$DATE$ac_delim
19500 FIND!$FIND$ac_delim
19501 GREP!$GREP$ac_delim
19502 MKDIR!$MKDIR$ac_delim
19504 RANLIB!$RANLIB$ac_delim
19509 BINPWD!$BINPWD$ac_delim
19511 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19512 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19513 INSTALL_DATA!$INSTALL_DATA$ac_delim
19514 BZIP2!$BZIP2$ac_delim
19516 DOXYGEN!$DOXYGEN$ac_delim
19517 GROFF!$GROFF$ac_delim
19518 GZIPBIN!$GZIPBIN$ac_delim
19519 PDFROFF!$PDFROFF$ac_delim
19522 OCAMLFIND!$OCAMLFIND$ac_delim
19524 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19525 EGREP!$EGREP$ac_delim
19526 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19527 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19528 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19529 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19530 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19531 NO_COMMENT!$NO_COMMENT$ac_delim
19532 PYTHON!$PYTHON$ac_delim
19533 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19534 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19535 USE_OPROFILE!$USE_OPROFILE$ac_delim
19536 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19537 XML2CONFIG!$XML2CONFIG$ac_delim
19538 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19539 LIBXML2_INC!$LIBXML2_INC$ac_delim
19540 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19541 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19542 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19543 MMAP_FILE!$MMAP_FILE$ac_delim
19544 SHLIBEXT!$SHLIBEXT$ac_delim
19545 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19546 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19547 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19548 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19549 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19550 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19551 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19552 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19553 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19554 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19555 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19556 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19557 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19558 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19559 RPATH!$RPATH$ac_delim
19560 RDYNAMIC!$RDYNAMIC$ac_delim
19561 program_prefix!$program_prefix$ac_delim
19562 LIBOBJS!$LIBOBJS$ac_delim
19563 LTLIBOBJS!$LTLIBOBJS$ac_delim
19566 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
19568 elif $ac_last_try; then
19569 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19570 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19571 { (exit 1); exit 1; }; }
19573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19577 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19578 if test -n "$ac_eof"; then
19579 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19580 ac_eof=`expr $ac_eof + 1`
19583 cat >>$CONFIG_STATUS <<_ACEOF
19584 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19585 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19588 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19589 s/^/s,@/; s/!/@,|#_!!_#|/
19592 s/'"$ac_delim"'$/,g/; t
19594 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19595 ' >>$CONFIG_STATUS <conf$$subs.sed
19596 rm -f conf$$subs.sed
19597 cat >>$CONFIG_STATUS <<_ACEOF
19602 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19603 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19604 # trailing colons and then remove the whole line if VPATH becomes empty
19605 # (actually we leave an empty line to preserve line numbers).
19606 if test "x$srcdir" = x.; then
19607 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19608 s/:*\$(srcdir):*/:/
19609 s/:*\${srcdir}:*/:/
19611 s/^\([^=]*=[ ]*\):*/\1/
19617 cat >>$CONFIG_STATUS <<\_ACEOF
19618 fi # test -n "$CONFIG_FILES"
19621 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19624 :[FHLC]) ac_mode=$ac_tag; continue;;
19626 case $ac_mode$ac_tag in
19628 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19629 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19630 { (exit 1); exit 1; }; };;
19631 :[FH]-) ac_tag=-:-;;
19632 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19649 -) ac_f="$tmp/stdin";;
19650 *) # Look for the file first in the build tree, then in the source tree
19651 # (if the path is not absolute). The absolute path cannot be DOS-style,
19652 # because $ac_f cannot contain `:'.
19656 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19658 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19659 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19660 { (exit 1); exit 1; }; };;
19662 ac_file_inputs="$ac_file_inputs $ac_f"
19665 # Let's still pretend it is `configure' which instantiates (i.e., don't
19666 # use $as_me), people would be surprised to read:
19667 # /* config.h. Generated by config.status. */
19668 configure_input="Generated from "`IFS=:
19669 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19670 if test x"$ac_file" != x-; then
19671 configure_input="$ac_file. $configure_input"
19672 { echo "$as_me:$LINENO: creating $ac_file" >&5
19673 echo "$as_me: creating $ac_file" >&6;}
19677 *:-:* | *:-) cat >"$tmp/stdin";;
19682 ac_dir=`$as_dirname -- "$ac_file" ||
19683 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19684 X"$ac_file" : 'X\(//\)[^/]' \| \
19685 X"$ac_file" : 'X\(//\)$' \| \
19686 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19692 /^X\(\/\/\)[^/].*/{
19707 -*) as_dir=./$as_dir;;
19709 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19713 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19714 *) as_qdir=$as_dir;;
19716 as_dirs="'$as_qdir' $as_dirs"
19717 as_dir=`$as_dirname -- "$as_dir" ||
19718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19719 X"$as_dir" : 'X\(//\)[^/]' \| \
19720 X"$as_dir" : 'X\(//\)$' \| \
19721 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19727 /^X\(\/\/\)[^/].*/{
19740 test -d "$as_dir" && break
19742 test -z "$as_dirs" || eval "mkdir $as_dirs"
19743 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19744 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19745 { (exit 1); exit 1; }; }; }
19749 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19751 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19752 # A ".." for each directory in $ac_dir_suffix.
19753 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19754 case $ac_top_builddir_sub in
19755 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19756 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19759 ac_abs_top_builddir=$ac_pwd
19760 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19761 # for backward compatibility:
19762 ac_top_builddir=$ac_top_build_prefix
19765 .) # We are building in place.
19767 ac_top_srcdir=$ac_top_builddir_sub
19768 ac_abs_top_srcdir=$ac_pwd ;;
19769 [\\/]* | ?:[\\/]* ) # Absolute name.
19770 ac_srcdir=$srcdir$ac_dir_suffix;
19771 ac_top_srcdir=$srcdir
19772 ac_abs_top_srcdir=$srcdir ;;
19773 *) # Relative name.
19774 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19775 ac_top_srcdir=$ac_top_build_prefix$srcdir
19776 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19778 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19788 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19789 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19793 cat >>$CONFIG_STATUS <<\_ACEOF
19794 # If the template does not know about datarootdir, expand it.
19795 # FIXME: This hack should be removed a few years after 2.60.
19796 ac_datarootdir_hack=; ac_datarootdir_seen=
19798 case `sed -n '/datarootdir/ {
19807 ' $ac_file_inputs` in
19808 *datarootdir*) ac_datarootdir_seen=yes;;
19809 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19810 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19811 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19813 cat >>$CONFIG_STATUS <<_ACEOF
19814 ac_datarootdir_hack='
19815 s&@datadir@&$datadir&g
19816 s&@docdir@&$docdir&g
19817 s&@infodir@&$infodir&g
19818 s&@localedir@&$localedir&g
19819 s&@mandir@&$mandir&g
19820 s&\\\${datarootdir}&$datarootdir&g' ;;
19824 # Neutralize VPATH when `$srcdir' = `.'.
19825 # Shell code in configure.ac might set extrasub.
19826 # FIXME: do we really want to maintain this feature?
19827 cat >>$CONFIG_STATUS <<_ACEOF
19831 cat >>$CONFIG_STATUS <<\_ACEOF
19833 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19834 s&@configure_input@&$configure_input&;t t
19835 s&@top_builddir@&$ac_top_builddir_sub&;t t
19836 s&@srcdir@&$ac_srcdir&;t t
19837 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19838 s&@top_srcdir@&$ac_top_srcdir&;t t
19839 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19840 s&@builddir@&$ac_builddir&;t t
19841 s&@abs_builddir@&$ac_abs_builddir&;t t
19842 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19843 s&@INSTALL@&$ac_INSTALL&;t t
19844 $ac_datarootdir_hack
19845 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
19847 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19848 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19849 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19850 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19851 which seems to be undefined. Please make sure it is defined." >&5
19852 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19853 which seems to be undefined. Please make sure it is defined." >&2;}
19857 -) cat "$tmp/out"; rm -f "$tmp/out";;
19858 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19867 # Transform confdefs.h into a sed script `conftest.defines', that
19868 # substitutes the proper values into config.h.in to produce config.h.
19869 rm -f conftest.defines conftest.tail
19870 # First, append a space to every undef/define line, to ease matching.
19871 echo 's/$/ /' >conftest.defines
19872 # Then, protect against being on the right side of a sed subst, or in
19873 # an unquoted here document, in config.status. If some macros were
19874 # called several times there might be several #defines for the same
19875 # symbol, which is useless. But do not sort them, since the last
19876 # AC_DEFINE must be honored.
19877 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19878 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19879 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19880 # PARAMS is the parameter list in the macro definition--in most cases, it's
19881 # just an empty string.
19882 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19883 ac_dB='\\)[ (].*,\\1define\\2'
19891 s/^[ ]*#[ ]*define[ ][ ]*//
19896 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19897 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19898 ' >>conftest.defines
19900 # Remove the space that was appended to ease matching.
19901 # Then replace #undef with comments. This is necessary, for
19902 # example, in the case of _POSIX_SOURCE, which is predefined and required
19903 # on some systems where configure will not decide to define it.
19904 # (The regexp can be short, since the line contains either #define or #undef.)
19906 s,^[ #]*u.*,/* & */,' >>conftest.defines
19908 # Break up conftest.defines:
19909 ac_max_sed_lines=50
19911 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19912 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19913 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19915 ac_in='$ac_file_inputs'
19916 ac_out='"$tmp/out1"'
19917 ac_nxt='"$tmp/out2"'
19921 # Write a here document:
19922 cat >>$CONFIG_STATUS <<_ACEOF
19923 # First, check the format of the line:
19924 cat >"\$tmp/defines.sed" <<\\CEOF
19925 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19926 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19930 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19932 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19933 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19934 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19935 grep . conftest.tail >/dev/null || break
19936 rm -f conftest.defines
19937 mv conftest.tail conftest.defines
19939 rm -f conftest.defines conftest.tail
19941 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19942 cat >>$CONFIG_STATUS <<\_ACEOF
19943 if test x"$ac_file" != x-; then
19944 echo "/* $configure_input */" >"$tmp/config.h"
19945 cat "$ac_result" >>"$tmp/config.h"
19946 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19947 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19948 echo "$as_me: $ac_file is unchanged" >&6;}
19951 mv "$tmp/config.h" $ac_file
19954 echo "/* $configure_input */"
19960 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19961 echo "$as_me: executing $ac_file commands" >&6;}
19966 case $ac_file$ac_mode in
19967 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19968 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19969 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19970 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19971 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19972 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19973 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19974 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19975 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19976 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19977 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19978 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19979 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19980 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19981 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19982 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19983 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19984 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19985 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19986 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19987 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19988 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19989 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19990 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19996 { (exit 0); exit 0; }
19998 chmod +x $CONFIG_STATUS
19999 ac_clean_files=$ac_clean_files_save
20002 # configure is writing to config.log, and then calls config.status.
20003 # config.status does its own redirection, appending to config.log.
20004 # Unfortunately, on DOS this fails, as config.log is still kept open
20005 # by configure, so config.status won't be able to write to it; its
20006 # output is simply discarded. So we exec the FD to /dev/null,
20007 # effectively closing config.log, so it can be properly (re)opened and
20008 # appended to by config.status. When coming back to configure, we
20009 # need to make the FD available again.
20010 if test "$no_create" != yes; then
20012 ac_config_status_args=
20013 test "$silent" = yes &&
20014 ac_config_status_args="$ac_config_status_args --quiet"
20016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20019 # would make configure fail if this is the last instruction.
20020 $ac_cs_success || { (exit 1); exit 1; }
20024 # CONFIG_SUBDIRS section.
20026 if test "$no_recursion" != yes; then
20028 # Remove --cache-file and --srcdir arguments so they do not pile up.
20029 ac_sub_configure_args=
20031 eval "set x $ac_configure_args"
20035 if test -n "$ac_prev"; then
20040 -cache-file | --cache-file | --cache-fil | --cache-fi \
20041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20042 ac_prev=cache_file ;;
20043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20047 --config-cache | -C)
20049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20059 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20061 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20065 # Always prepend --prefix to ensure using the same prefix
20066 # in subdir configurations.
20067 ac_arg="--prefix=$prefix"
20069 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20071 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20074 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20076 # Do not complain, so a configure script can configure whichever
20077 # parts of a large source tree are present.
20078 test -d "$srcdir/$ac_dir" || continue
20080 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20081 echo "$as_me:$LINENO: $ac_msg" >&5
20085 -*) as_dir=./$as_dir;;
20087 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20091 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20092 *) as_qdir=$as_dir;;
20094 as_dirs="'$as_qdir' $as_dirs"
20095 as_dir=`$as_dirname -- "$as_dir" ||
20096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20097 X"$as_dir" : 'X\(//\)[^/]' \| \
20098 X"$as_dir" : 'X\(//\)$' \| \
20099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20105 /^X\(\/\/\)[^/].*/{
20118 test -d "$as_dir" && break
20120 test -z "$as_dirs" || eval "mkdir $as_dirs"
20121 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20122 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20123 { (exit 1); exit 1; }; }; }
20127 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20129 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20130 # A ".." for each directory in $ac_dir_suffix.
20131 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20132 case $ac_top_builddir_sub in
20133 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20134 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20137 ac_abs_top_builddir=$ac_pwd
20138 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20139 # for backward compatibility:
20140 ac_top_builddir=$ac_top_build_prefix
20143 .) # We are building in place.
20145 ac_top_srcdir=$ac_top_builddir_sub
20146 ac_abs_top_srcdir=$ac_pwd ;;
20147 [\\/]* | ?:[\\/]* ) # Absolute name.
20148 ac_srcdir=$srcdir$ac_dir_suffix;
20149 ac_top_srcdir=$srcdir
20150 ac_abs_top_srcdir=$srcdir ;;
20151 *) # Relative name.
20152 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20153 ac_top_srcdir=$ac_top_build_prefix$srcdir
20154 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20156 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20161 # Check for guested configure; otherwise get Cygnus style configure.
20162 if test -f "$ac_srcdir/configure.gnu"; then
20163 ac_sub_configure=$ac_srcdir/configure.gnu
20164 elif test -f "$ac_srcdir/configure"; then
20165 ac_sub_configure=$ac_srcdir/configure
20166 elif test -f "$ac_srcdir/configure.in"; then
20167 # This should be Cygnus configure.
20168 ac_sub_configure=$ac_aux_dir/configure
20170 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20171 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20175 # The recursion is here.
20176 if test -n "$ac_sub_configure"; then
20177 # Make the cache file name correct relative to the subdirectory.
20178 case $cache_file in
20179 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20180 *) # Relative name.
20181 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20184 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20185 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20186 # The eval makes quoting arguments work.
20187 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20188 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20189 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20190 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20191 { (exit 1); exit 1; }; }