2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5svn.
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.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
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
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
696 ENABLE_EXPENSIVE_CHECKS
716 LLVM_ENUM_ASM_PRINTERS
717 LLVM_ENUM_ASM_PARSERS
718 LLVM_ENUM_DISASSEMBLERS
766 HAVE_LINK_VERSION_SCRIPT
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
800 ENABLE_VISIBILITY_INLINES_HIDDEN
807 ac_precious_vars='build_alias
819 ac_subdirs_all='projects/test-suite
822 projects/llvm-poolalloc
827 # Initialize some variables set by options.
829 ac_init_version=false
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
839 program_transform_name=s,x,x,
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
885 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 # Accept the important Cygnus configure options, so we can diagnose typos.
891 case $ac_dashdash$ac_option in
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
913 cache_file=config.cache ;;
915 -datadir | --datadir | --datadi | --datad)
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
927 -disable-* | --disable-*)
928 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
931 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
932 { (exit 1); exit 1; }; }
933 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
934 eval enable_$ac_feature=no ;;
936 -docdir | --docdir | --docdi | --doc | --do)
938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 -enable-* | --enable-*)
947 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
950 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
951 { (exit 1); exit 1; }; }
952 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
953 eval enable_$ac_feature=\$ac_optarg ;;
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
968 -help | --help | --hel | --he | -h)
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 htmldir=$ac_optarg ;;
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
998 -libdir | --libdir | --libdi | --libd)
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1089 -psdir | --psdir | --psdi | --psd | --ps)
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 sbindir=$ac_optarg ;;
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 sharedstatedir=$ac_optarg ;;
1115 -site | --site | --sit)
1117 -site=* | --site=* | --sit=*)
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1144 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package| sed 's/-/_/g'`
1150 eval with_$ac_package=\$ac_optarg ;;
1152 -without-* | --without-*)
1153 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid package name: $ac_package" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_package=`echo $ac_package | sed 's/-/_/g'`
1159 eval with_$ac_package=no ;;
1162 # Obsolete; use --with-x.
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1179 -*) { echo "$as_me: error: unrecognized option: $ac_option
1180 Try \`$0 --help' for more information." >&2
1181 { (exit 1); exit 1; }; }
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1188 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1189 { (exit 1); exit 1; }; }
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1194 # FIXME: should be removed in autoconf 3.0.
1195 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 { echo "$as_me: error: missing argument to $ac_option" >&2
1207 { (exit 1); exit 1; }; }
1210 # Be sure to have absolute directory names.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1216 eval ac_val=\$$ac_var
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1222 { (exit 1); exit 1; }; }
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1230 target=$target_alias
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1237 If a cross compiler is detected then cross compile mode will be used." >&2
1238 elif test "x$build_alias" != "x$host_alias"; then
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246 test "$silent" = yes && exec 6>/dev/null
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 { echo "$as_me: error: Working directory cannot be determined" >&2
1253 { (exit 1); exit 1; }; }
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 { echo "$as_me: error: pwd does not report name of working directory" >&2
1256 { (exit 1); exit 1; }; }
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$0" ||
1264 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$0" : 'X\(//\)[^/]' \| \
1266 X"$0" : 'X\(//\)$' \| \
1267 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1291 ac_srcdir_defaulted=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1296 { (exit 1); exit 1; }; }
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1301 { (exit 1); exit 1; }; }
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 # Report the --help message.
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1327 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1334 Defaults for the options are specified in brackets.
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1358 For better control, use the options below.
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 --target=TARGET configure for building compilers for TARGET [HOST]
1391 if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1400 --enable-polly Use polly if available (default is YES)
1401 --enable-libcpp Use libc++ if available (default is NO)
1402 --enable-compiler-version-checks
1403 Check the version of the host compiler (default is
1405 --enable-cxx11 Use c++11 if available (default is NO)
1406 --enable-split-dwarf Use split-dwarf if available (default is NO)
1407 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1408 --enable-clang-static-analyzer
1409 Enable building of clang Static Analyzer (default is
1411 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1412 --enable-optimized Compile with optimizations enabled (default is NO)
1413 --enable-profiling Compile with profiling enabled (default is NO)
1414 --enable-assertions Compile with assertion checks enabled (default is
1416 --enable-werror Compile with -Werror enabled (default is NO)
1417 --enable-expensive-checks
1418 Compile with expensive debug checks enabled (default
1420 --enable-debug-runtime Build runtime libs with debug symbols (default is
1422 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1423 optimization is on and YES if it's off)
1424 --enable-keep-symbols Do not strip installed executables)
1425 --enable-jit Enable Just In Time Compiling (default is YES)
1426 --enable-docs Build documents (default is YES)
1427 --enable-doxygen Build doxygen documentation (default is NO)
1428 --enable-threads Use threads if available (default is YES)
1429 --enable-pthreads Use pthreads if available (default is YES)
1430 --enable-zlib Use zlib for compression/decompression if available
1432 --enable-pic Build LLVM with Position Independent Code (default
1434 --enable-shared Build a shared library and link tools against it
1436 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1437 Win32 DLL (default is NO)
1438 --enable-timestamps Enable embedding timestamp information in build
1440 --enable-backtraces Enable embedding backtraces on crash (default is
1442 --enable-crash-overrides
1443 Enable crash handling overrides (default is YES)
1444 --enable-targets Build specific host targets: all or
1445 target1,target2,... Valid targets are: host, x86,
1446 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1447 xcore, msp430, nvptx, systemz, r600, and cpp
1449 --enable-experimental-targets
1450 Build experimental host targets: disable or
1451 target1,target2,... (default=disable)
1452 --enable-bindings Build specific language bindings:
1453 all,auto,none,{binding-name} (default=auto)
1454 --enable-terminfo Query the terminfo database if available (default is
1456 --enable-libedit Use libedit if available (default is YES)
1457 --enable-libffi Check for the presence of libffi (default is NO)
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-optimize-option Select the compiler options to use for optimized
1464 --with-extra-options Specify additional options to compile LLVM with
1465 --with-extra-ld-options Specify additional options to link LLVM with
1466 --with-ocaml-libdir Specify install location for ocaml bindings (default
1468 --with-clang-srcdir Directory to the out-of-tree Clang source
1469 --with-clang-resource-dir
1470 Relative directory from the Clang binary for
1472 --with-c-include-dirs Colon separated list of directories clang will
1474 --with-gcc-toolchain Directory where gcc is installed.
1475 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1476 --with-binutils-include Specify path to binutils/include/ containing
1477 plugin-api.h file for gold plugin.
1478 --with-bug-report-url Specify the URL where bug reports should be
1479 submitted (default=http://llvm.org/bugs/)
1480 --with-internal-prefix Installation directory for internal files
1481 --with-python path to python
1482 --with-udis86=<path> Use udis86 external x86 disassembler library
1483 --with-oprofile=<prefix>
1484 Tell OProfile >= 0.9.4 how to symbolize JIT output
1485 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CXX C++ compiler command
1496 CXXFLAGS C++ compiler flags
1498 CXXCPP C++ preprocessor
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1503 Report bugs to <http://llvm.org/bugs/>.
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" || continue
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1531 .) # We are building in place.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1564 LLVM configure 3.5svn
1565 generated by GNU Autoconf 2.60
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1572 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1580 It was created by LLVM $as_me 3.5svn, which was
1581 generated by GNU Autoconf 2.60. Invocation command line was
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1602 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1603 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1606 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1607 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1608 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 test -z "$as_dir" && as_dir=.
1617 echo "PATH: $as_dir"
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_must_keep_next=false
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1652 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 -* ) ac_must_keep_next=true ;;
1673 ac_configure_args="$ac_configure_args '$ac_arg'"
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log. We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1697 # The following way of writing the cache mishandles newlines in values,
1699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700 eval ac_val=\$$ac_var
1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708 _ | IFS | as_nl) ;; #(
1709 *) $as_unset $ac_var ;;
1714 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715 *${as_nl}ac_space=\ *)
1717 "s/'\''/'\''\\\\'\'''\''/g;
1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1734 for ac_var in $ac_subst_vars
1736 eval ac_val=\$$ac_var
1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 echo "$ac_var='\''$ac_val'\''"
1744 if test -n "$ac_subst_files"; then
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1751 for ac_var in $ac_subst_files
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1762 if test -s confdefs.h; then
1772 test "$ac_signal" != 0 &&
1773 echo "$as_me: caught signal $ac_signal"
1774 echo "$as_me: exit $exit_status"
1776 rm -f core *.core core.conftest.* &&
1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780 for ac_signal in 1 2 13 15; do
1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1788 # Predefined preprocessor variables.
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818 set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1822 set x "$ac_default_prefix/share/config.site" \
1823 "$ac_default_prefix/etc/config.site"
1828 if test -r "$ac_site_file"; then
1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831 sed 's/^/| /' "$ac_site_file" >&5
1836 if test -r "$cache_file"; then
1837 # Some versions of bash will fail to source /dev/null (special
1838 # files actually), so we avoid doing that.
1839 if test -f "$cache_file"; then
1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1843 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844 *) . "./$cache_file";;
1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1853 # Check that the precious variables saved in the cache have kept the same
1855 ac_cache_corrupted=false
1856 for ac_var in $ac_precious_vars; do
1857 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858 eval ac_new_set=\$ac_env_${ac_var}_set
1859 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860 eval ac_new_val=\$ac_env_${ac_var}_value
1861 case $ac_old_set,$ac_new_set in
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1872 if test "x$ac_old_val" != "x$ac_new_val"; then
1873 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1874 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1876 echo "$as_me: former value: $ac_old_val" >&2;}
1877 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1878 echo "$as_me: current value: $ac_new_val" >&2;}
1879 ac_cache_corrupted=:
1882 # Pass precious variables to config.status.
1883 if test "$ac_new_set" = set; then
1885 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 *) ac_arg=$ac_var=$ac_new_val ;;
1888 case " $ac_configure_args " in
1889 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1890 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1894 if $ac_cache_corrupted; then
1895 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899 { (exit 1); exit 1; }; }
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935 cat >>confdefs.h <<\_ACEOF
1936 #define LLVM_VERSION_MAJOR 3
1939 LLVM_VERSION_MAJOR='3'
1944 cat >>confdefs.h <<\_ACEOF
1945 #define LLVM_VERSION_MINOR 5
1948 LLVM_VERSION_MINOR='5'
1952 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1961 for ac_dir in autoconf "$srcdir"/autoconf; do
1962 if test -f "$ac_dir/install-sh"; then
1964 ac_install_sh="$ac_aux_dir/install-sh -c"
1966 elif test -f "$ac_dir/install.sh"; then
1968 ac_install_sh="$ac_aux_dir/install.sh -c"
1970 elif test -f "$ac_dir/shtool"; then
1972 ac_install_sh="$ac_aux_dir/shtool install -c"
1976 if test -z "$ac_aux_dir"; then
1977 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1978 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1979 { (exit 1); exit 1; }; }
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1992 if test ${srcdir} != "." ; then
1993 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1994 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1995 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1996 { (exit 1); exit 1; }; }
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009 for ac_prog in clang gcc
2011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC="$CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 if test -n "$CC"; then
2040 { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2048 test -n "$CC" && break
2051 if test -z "$CC"; then
2053 for ac_prog in clang gcc
2055 # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy $ac_prog; ac_word=$2
2057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 if test -n "$ac_ct_CC"; then
2063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2072 ac_cv_prog_ac_ct_CC="$ac_prog"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083 if test -n "$ac_ct_CC"; then
2084 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085 echo "${ECHO_T}$ac_ct_CC" >&6; }
2087 { echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6; }
2092 test -n "$ac_ct_CC" && break
2095 if test "x$ac_ct_CC" = x; then
2098 case $cross_compiling:$ac_tool_warned in
2100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2101 whose name does not start with the host triplet. If you think this
2102 configuration is useful to you, please write to autoconf@gnu.org." >&5
2103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2104 whose name does not start with the host triplet. If you think this
2105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2106 ac_tool_warned=yes ;;
2113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2114 See \`config.log' for more details." >&5
2115 echo "$as_me: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&2;}
2117 { (exit 1); exit 1; }; }
2119 # Provide some information about the compiler.
2120 echo "$as_me:$LINENO: checking for C compiler version" >&5
2121 ac_compiler=`set X $ac_compile; echo $2`
2122 { (ac_try="$ac_compiler --version >&5"
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128 (eval "$ac_compiler --version >&5") 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132 { (ac_try="$ac_compiler -v >&5"
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138 (eval "$ac_compiler -v >&5") 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
2142 { (ac_try="$ac_compiler -V >&5"
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2148 (eval "$ac_compiler -V >&5") 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }
2153 cat >conftest.$ac_ext <<_ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2168 ac_clean_files_save=$ac_clean_files
2169 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2170 # Try to create an executable without -o first, disregard a.out.
2171 # It will help us diagnose broken compilers, and finding out an intuition
2173 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2174 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2175 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2177 # List of possible output files, starting from the most likely.
2178 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2179 # only as a last resort. b.out is created by i960 compilers.
2180 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2182 # The IRIX 6 linker writes into existing files which may not be
2183 # executable, retaining their permissions. Remove them first so a
2184 # subsequent execution test works.
2186 for ac_file in $ac_files
2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2190 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2195 if { (ac_try="$ac_link_default"
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2201 (eval "$ac_link_default") 2>&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; then
2205 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2207 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2208 # so that the user can short-circuit this test for compilers unknown to
2210 for ac_file in $ac_files
2212 test -f "$ac_file" || continue
2214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2217 # We found the default executable, but exeext='' is most
2221 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2225 # We set ac_cv_exeext here because the later test for it is not
2226 # safe: cross compilers may not add the suffix if given an `-o'
2227 # argument, so we may need to know it at that point already.
2228 # Even if this section looks crufty: it has the advantage of
2235 test "$ac_cv_exeext" = no && ac_cv_exeext=
2238 echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2241 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&2;}
2245 { (exit 77); exit 77; }; }
2248 ac_exeext=$ac_cv_exeext
2249 { echo "$as_me:$LINENO: result: $ac_file" >&5
2250 echo "${ECHO_T}$ac_file" >&6; }
2252 # Check that the compiler produces executables we can run. If not, either
2253 # the compiler is broken, or we cross compile.
2254 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2255 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2256 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2257 # If not cross compiling, check that we can run a simple program.
2258 if test "$cross_compiling" != yes; then
2259 if { ac_try='./$ac_file'
2260 { (case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2265 (eval "$ac_try") 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2271 if test "$cross_compiling" = maybe; then
2274 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2275 If you meant to cross compile, use \`--host'.
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot run C compiled programs.
2278 If you meant to cross compile, use \`--host'.
2279 See \`config.log' for more details." >&2;}
2280 { (exit 1); exit 1; }; }
2284 { echo "$as_me:$LINENO: result: yes" >&5
2285 echo "${ECHO_T}yes" >&6; }
2287 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2288 ac_clean_files=$ac_clean_files_save
2289 # Check that the compiler produces executables we can run. If not, either
2290 # the compiler is broken, or we cross compile.
2291 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2292 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2293 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2294 echo "${ECHO_T}$cross_compiling" >&6; }
2296 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2297 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2298 if { (ac_try="$ac_link"
2300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301 *) ac_try_echo=$ac_try;;
2303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2304 (eval "$ac_link") 2>&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; then
2308 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2309 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2310 # work properly (i.e., refer to `conftest.exe'), while it won't with
2312 for ac_file in conftest.exe conftest conftest.*; do
2313 test -f "$ac_file" || continue
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&2;}
2326 { (exit 1); exit 1; }; }
2329 rm -f conftest$ac_cv_exeext
2330 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2331 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2333 rm -f conftest.$ac_ext
2334 EXEEXT=$ac_cv_exeext
2336 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2337 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2338 if test "${ac_cv_objext+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 cat >conftest.$ac_ext <<_ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2356 rm -f conftest.o conftest.obj
2357 if { (ac_try="$ac_compile"
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363 (eval "$ac_compile") 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; then
2367 for ac_file in conftest.o conftest.obj conftest.*; do
2368 test -f "$ac_file" || continue;
2370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2371 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&2;}
2383 { (exit 1); exit 1; }; }
2386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2388 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2389 echo "${ECHO_T}$ac_cv_objext" >&6; }
2390 OBJEXT=$ac_cv_objext
2392 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 cat >conftest.$ac_ext <<_ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2415 rm -f conftest.$ac_objext
2416 if { (ac_try="$ac_compile"
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_compile") 2>conftest.er1
2424 grep -v '^ *+' conftest.er1 >conftest.err
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2430 { (case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_try") 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_try") 2>&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2461 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2462 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2463 GCC=`test $ac_compiler_gnu = yes && echo yes`
2464 ac_test_CFLAGS=${CFLAGS+set}
2465 ac_save_CFLAGS=$CFLAGS
2466 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2467 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_cc_g+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 ac_save_c_werror_flag=$ac_c_werror_flag
2472 ac_c_werror_flag=yes
2475 cat >conftest.$ac_ext <<_ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2490 rm -f conftest.$ac_objext
2491 if { (ac_try="$ac_compile"
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497 (eval "$ac_compile") 2>conftest.er1
2499 grep -v '^ *+' conftest.er1 >conftest.err
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2505 { (case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_try") 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_try") 2>&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; }; then
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2530 cat >conftest.$ac_ext <<_ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2545 rm -f conftest.$ac_objext
2546 if { (ac_try="$ac_compile"
2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552 (eval "$ac_compile") 2>conftest.er1
2554 grep -v '^ *+' conftest.er1 >conftest.err
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2560 { (case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_try") 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_try") 2>&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2584 ac_c_werror_flag=$ac_save_c_werror_flag
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_compile") 2>conftest.er1
2610 grep -v '^ *+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_try") 2>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 ac_c_werror_flag=$ac_save_c_werror_flag
2652 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2654 if test "$ac_test_CFLAGS" = set; then
2655 CFLAGS=$ac_save_CFLAGS
2656 elif test $ac_cv_prog_cc_g = yes; then
2657 if test "$GCC" = yes; then
2663 if test "$GCC" = yes; then
2669 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2670 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_cc_c89+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 ac_cv_prog_cc_c89=no
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2684 #include <sys/types.h>
2685 #include <sys/stat.h>
2686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2687 struct buf { int x; };
2688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2689 static char *e (p, i)
2695 static char *f (char * (*g) (char **, int), char **p, ...)
2700 s = g (p, va_arg (v,int));
2705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2706 function prototypes and stuff, but not '\xHH' hex character constants.
2707 These don't provoke an error unfortunately, instead are silently treated
2708 as 'x'. The following induces an error, until -std is added to get
2709 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2710 array size at least. It's necessary to write '\x00'==0 to get something
2711 that's true only with -std. */
2712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2714 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2715 inside strings and character constants. */
2717 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2719 int test (int i, double x);
2720 struct s1 {int (*f) (int a);};
2721 struct s2 {int (*f) (double a);};
2722 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2728 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2733 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2734 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2736 CC="$ac_save_CC $ac_arg"
2737 rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2746 grep -v '^ *+' conftest.er1 >conftest.err
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2752 { (case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_try") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; } &&
2761 { ac_try='test -s conftest.$ac_objext'
2762 { (case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_try") 2>&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2771 ac_cv_prog_cc_c89=$ac_arg
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2779 rm -f core conftest.err conftest.$ac_objext
2780 test "x$ac_cv_prog_cc_c89" != "xno" && break
2782 rm -f conftest.$ac_ext
2787 case "x$ac_cv_prog_cc_c89" in
2789 { echo "$as_me:$LINENO: result: none needed" >&5
2790 echo "${ECHO_T}none needed" >&6; } ;;
2792 { echo "$as_me:$LINENO: result: unsupported" >&5
2793 echo "${ECHO_T}unsupported" >&6; } ;;
2795 CC="$CC $ac_cv_prog_cc_c89"
2796 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2797 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 ac_cpp='$CXXCPP $CPPFLAGS'
2809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2812 if test -z "$CXX"; then
2813 if test -n "$CCC"; then
2816 if test -n "$ac_tool_prefix"; then
2817 for ac_prog in clang++ g++
2819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_CXX+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 if test -n "$CXX"; then
2827 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 if test -n "$CXX"; then
2848 { echo "$as_me:$LINENO: result: $CXX" >&5
2849 echo "${ECHO_T}$CXX" >&6; }
2851 { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2856 test -n "$CXX" && break
2859 if test -z "$CXX"; then
2861 for ac_prog in clang++ g++
2863 # Extract the first word of "$ac_prog", so it can be a program name with args.
2864 set dummy $ac_prog; ac_word=$2
2865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 if test -n "$ac_ct_CXX"; then
2871 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_ac_ct_CXX="$ac_prog"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2891 if test -n "$ac_ct_CXX"; then
2892 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2893 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2895 { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2900 test -n "$ac_ct_CXX" && break
2903 if test "x$ac_ct_CXX" = x; then
2906 case $cross_compiling:$ac_tool_warned in
2908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2909 whose name does not start with the host triplet. If you think this
2910 configuration is useful to you, please write to autoconf@gnu.org." >&5
2911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2912 whose name does not start with the host triplet. If you think this
2913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2914 ac_tool_warned=yes ;;
2922 # Provide some information about the compiler.
2923 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2924 ac_compiler=`set X $ac_compile; echo $2`
2925 { (ac_try="$ac_compiler --version >&5"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compiler --version >&5") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2935 { (ac_try="$ac_compiler -v >&5"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compiler -v >&5") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }
2945 { (ac_try="$ac_compiler -V >&5"
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_compiler -V >&5") 2>&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }
2956 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2957 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2958 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 cat >conftest.$ac_ext <<_ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_try") 2>&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_try") 2>&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; }; then
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3025 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3026 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3027 GXX=`test $ac_compiler_gnu = yes && echo yes`
3028 ac_test_CXXFLAGS=${CXXFLAGS+set}
3029 ac_save_CXXFLAGS=$CXXFLAGS
3030 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3031 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3032 if test "${ac_cv_prog_cxx_g+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3036 ac_cxx_werror_flag=yes
3039 cat >conftest.$ac_ext <<_ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3054 rm -f conftest.$ac_objext
3055 if { (ac_try="$ac_compile"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compile") 2>conftest.er1
3063 grep -v '^ *+' conftest.er1 >conftest.err
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } &&
3068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_try") 2>&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_prog_cxx_g=yes
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3094 cat >conftest.$ac_ext <<_ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
3118 grep -v '^ *+' conftest.er1 >conftest.err
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } &&
3123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; } &&
3133 { ac_try='test -s conftest.$ac_objext'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 ac_cv_prog_cxx_g=yes
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3216 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3217 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3218 if test "$ac_test_CXXFLAGS" = set; then
3219 CXXFLAGS=$ac_save_CXXFLAGS
3220 elif test $ac_cv_prog_cxx_g = yes; then
3221 if test "$GXX" = yes; then
3227 if test "$GXX" = yes; then
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3245 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3246 # On Suns, sometimes $CPP names a directory.
3247 if test -n "$CPP" && test -d "$CPP"; then
3250 if test -z "$CPP"; then
3251 if test "${ac_cv_prog_CPP+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 # Double quotes because CPP needs to be expanded
3255 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3258 for ac_c_preproc_warn_flag in '' yes
3260 # Use a header file that comes with gcc, so configuring glibc
3261 # with a fresh cross-compiler works.
3262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3263 # <limits.h> exists even on freestanding compilers.
3264 # On the NeXT, cc -E runs the code through the compiler's parser,
3265 # not just through cpp. "Syntax error" is here to catch this case.
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3273 # include <limits.h>
3275 # include <assert.h>
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3301 if test -z "$ac_cpp_err"; then
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 # Broken: fails on valid input.
3311 rm -f conftest.err conftest.$ac_ext
3313 # OK, works on sane cases. Now check whether nonexistent headers
3314 # can be detected and how.
3315 cat >conftest.$ac_ext <<_ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321 #include <ac_nonexistent.h>
3323 if { (ac_try="$ac_cpp conftest.$ac_ext"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3331 grep -v '^ *+' conftest.er1 >conftest.err
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } >/dev/null; then
3336 if test -s conftest.err; then
3337 ac_cpp_err=$ac_c_preproc_warn_flag
3338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3345 if test -z "$ac_cpp_err"; then
3346 # Broken: success on invalid input.
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 # Passes both tests.
3357 rm -f conftest.err conftest.$ac_ext
3360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3361 rm -f conftest.err conftest.$ac_ext
3362 if $ac_preproc_ok; then
3374 { echo "$as_me:$LINENO: result: $CPP" >&5
3375 echo "${ECHO_T}$CPP" >&6; }
3377 for ac_c_preproc_warn_flag in '' yes
3379 # Use a header file that comes with gcc, so configuring glibc
3380 # with a fresh cross-compiler works.
3381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3382 # <limits.h> exists even on freestanding compilers.
3383 # On the NeXT, cc -E runs the code through the compiler's parser,
3384 # not just through cpp. "Syntax error" is here to catch this case.
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3392 # include <limits.h>
3394 # include <assert.h>
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 grep -v '^ *+' conftest.er1 >conftest.err
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev/null; then
3411 if test -s conftest.err; then
3412 ac_cpp_err=$ac_c_preproc_warn_flag
3413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3420 if test -z "$ac_cpp_err"; then
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 # Broken: fails on valid input.
3430 rm -f conftest.err conftest.$ac_ext
3432 # OK, works on sane cases. Now check whether nonexistent headers
3433 # can be detected and how.
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 #include <ac_nonexistent.h>
3442 if { (ac_try="$ac_cpp conftest.$ac_ext"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } >/dev/null; then
3455 if test -s conftest.err; then
3456 ac_cpp_err=$ac_c_preproc_warn_flag
3457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3464 if test -z "$ac_cpp_err"; then
3465 # Broken: success on invalid input.
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 # Passes both tests.
3476 rm -f conftest.err conftest.$ac_ext
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3484 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3485 See \`config.log' for more details." >&5
3486 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&2;}
3488 { (exit 1); exit 1; }; }
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 if test "$CXX" = "clang++" ; then
3499 { echo "$as_me:$LINENO: checking whether clang works" >&5
3500 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3502 ac_cpp='$CXXCPP $CPPFLAGS'
3503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3515 #if __has_include (<cxxabi.h>)
3518 #if __has_include (<unwind.h>)
3530 rm -f conftest.$ac_objext
3531 if { (ac_try="$ac_compile"
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_compile") 2>conftest.er1
3539 grep -v '^ *+' conftest.er1 >conftest.err
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3545 { (case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_try") 2>&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; } &&
3554 { ac_try='test -s conftest.$ac_objext'
3555 { (case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_try") 2>&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3565 { echo "$as_me:$LINENO: result: yes" >&5
3566 echo "${ECHO_T}yes" >&6; }
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3573 { echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6; }
3575 { { 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
3576 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;}
3577 { (exit 1); exit 1; }; }
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3591 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3593 ac_cpp='$CXXCPP $CPPFLAGS'
3594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3598 llvm_cv_cxx_compiler=unknown
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_compile") 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3625 { (case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_try") 2>&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; } &&
3634 { ac_try='test -s conftest.$ac_objext'
3635 { (case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_try") 2>&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 llvm_cv_cxx_compiler=clang
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 cat >conftest.$ac_ext <<_ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_compile") 2>conftest.er1
3669 grep -v '^ *+' conftest.er1 >conftest.err
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } &&
3674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3675 { (case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_try") 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; } &&
3684 { ac_try='test -s conftest.$ac_objext'
3685 { (case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_try") 2>&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 llvm_cv_cxx_compiler=gcc
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3713 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3717 if test -d ${srcdir}/projects/test-suite ; then
3718 subdirs="$subdirs projects/test-suite"
3722 if test -d ${srcdir}/projects/llvm-test ; then
3723 subdirs="$subdirs projects/llvm-test"
3727 if test -d ${srcdir}/projects/poolalloc ; then
3728 subdirs="$subdirs projects/poolalloc"
3732 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3733 subdirs="$subdirs projects/llvm-poolalloc"
3737 for i in `ls ${srcdir}/projects`
3739 if test -d ${srcdir}/projects/${i} ; then
3741 sample) subdirs="$subdirs projects/sample"
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,-z,allextract"
3996 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3997 llvm_cv_os_type="AuroraUX"
3998 llvm_cv_platform_type="Unix" ;;
4000 llvm_cv_link_all_option="-Wl,--whole-archive"
4001 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002 llvm_cv_os_type="Win32"
4003 llvm_cv_platform_type="Win32" ;;
4005 llvm_cv_link_all_option="-Wl,--whole-archive"
4006 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007 llvm_cv_os_type="MingW"
4008 llvm_cv_platform_type="Win32" ;;
4010 llvm_cv_link_all_option="-Wl,--whole-archive"
4011 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012 llvm_cv_os_type="Haiku"
4013 llvm_cv_platform_type="Unix" ;;
4015 llvm_cv_link_all_option="-Wl,--whole-archive"
4016 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017 llvm_cv_os_type="Freestanding"
4018 llvm_cv_platform_type="Unix" ;;
4020 llvm_cv_link_all_option="-Wl,--whole-archive"
4021 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4022 llvm_cv_os_type="Freestanding"
4023 llvm_cv_platform_type="Unix" ;;
4025 llvm_cv_link_all_option=""
4026 llvm_cv_no_link_all_option=""
4027 llvm_cv_os_type="Unknown"
4028 llvm_cv_platform_type="Unknown" ;;
4031 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4032 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4034 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4035 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4036 if test "${llvm_cv_target_os_type+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 llvm_cv_target_os_type="AIX" ;;
4043 llvm_cv_target_os_type="IRIX" ;;
4045 llvm_cv_target_os_type="Cygwin" ;;
4047 llvm_cv_target_os_type="Darwin" ;;
4049 llvm_cv_target_os_type="Minix" ;;
4051 llvm_cv_target_os_type="FreeBSD" ;;
4053 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4055 llvm_cv_target_os_type="OpenBSD" ;;
4057 llvm_cv_target_os_type="NetBSD" ;;
4059 llvm_cv_target_os_type="DragonFly" ;;
4061 llvm_cv_target_os_type="HP-UX" ;;
4063 llvm_cv_target_os_type="Interix" ;;
4065 llvm_cv_target_os_type="Linux" ;;
4067 llvm_cv_target_os_type="GNU" ;;
4069 llvm_cv_target_os_type="SunOS" ;;
4071 llvm_cv_target_os_type="AuroraUX" ;;
4073 llvm_cv_target_os_type="Win32" ;;
4075 llvm_cv_target_os_type="MingW" ;;
4077 llvm_cv_target_os_type="Haiku" ;;
4079 llvm_cv_target_os_type="RTEMS" ;;
4081 llvm_cv_target_os_type="NativeClient" ;;
4083 llvm_cv_target_os_type="Freestanding" ;;
4085 llvm_cv_target_os_type="Unknown" ;;
4088 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4089 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4091 if test "$llvm_cv_os_type" = "Unknown" ; then
4092 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4093 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4094 { (exit 1); exit 1; }; }
4099 HOST_OS=$llvm_cv_os_type
4101 TARGET_OS=$llvm_cv_target_os_type
4104 LINKALL=$llvm_cv_link_all_option
4106 NOLINKALL=$llvm_cv_no_link_all_option
4109 case $llvm_cv_platform_type in
4112 cat >>confdefs.h <<\_ACEOF
4113 #define LLVM_ON_UNIX 1
4123 cat >>confdefs.h <<\_ACEOF
4124 #define LLVM_ON_WIN32 1
4134 { echo "$as_me:$LINENO: checking target architecture" >&5
4135 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4136 if test "${llvm_cv_target_arch+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 i?86-*) llvm_cv_target_arch="x86" ;;
4141 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4142 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4143 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4144 arm*-*) llvm_cv_target_arch="ARM" ;;
4145 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4146 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4147 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4148 xcore-*) llvm_cv_target_arch="XCore" ;;
4149 msp430-*) llvm_cv_target_arch="MSP430" ;;
4150 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4151 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4152 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4153 *) llvm_cv_target_arch="Unknown" ;;
4156 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4157 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4159 if test "$llvm_cv_target_arch" = "Unknown" ; then
4160 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4161 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4164 case "$llvm_cv_target_arch" in
4165 x86) LLVM_NATIVE_ARCH="X86" ;;
4166 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4167 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4170 ARCH=$llvm_cv_target_arch
4172 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4176 i?86-*) host_arch="x86" ;;
4177 amd64-* | x86_64-*) host_arch="x86_64" ;;
4178 sparc*-*) host_arch="Sparc" ;;
4179 powerpc*-*) host_arch="PowerPC" ;;
4180 arm*-*) host_arch="ARM" ;;
4181 aarch64*-*) host_arch="AArch64" ;;
4182 mips-* | mips64-*) host_arch="Mips" ;;
4183 mipsel-* | mips64el-*) host_arch="Mips" ;;
4184 xcore-*) host_arch="XCore" ;;
4185 msp430-*) host_arch="MSP430" ;;
4186 hexagon-*) host_arch="Hexagon" ;;
4187 s390x-*) host_arch="SystemZ" ;;
4188 *) host_arch="Unknown" ;;
4191 if test "$host_arch" = "Unknown" ; then
4192 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4193 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4196 HOST_ARCH=$host_arch
4199 if test "$cross_compiling" = yes; then
4200 LLVM_CROSS_COMPILING=1
4203 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4204 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4205 if test "${ac_cv_build_exeext+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4209 ac_cv_build_exeext=.exe
4211 ac_build_prefix=${build_alias}-
4213 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4214 set dummy ${ac_build_prefix}gcc; ac_word=$2
4215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4217 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 if test -n "$BUILD_CC"; then
4221 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4230 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 BUILD_CC=$ac_cv_prog_BUILD_CC
4241 if test -n "$BUILD_CC"; then
4242 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4243 echo "${ECHO_T}$BUILD_CC" >&6; }
4245 { echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6; }
4250 if test -z "$BUILD_CC"; then
4251 # Extract the first word of "gcc", so it can be a program name with args.
4252 set dummy gcc; ac_word=$2
4253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 if test -n "$BUILD_CC"; then
4259 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 ac_cv_prog_BUILD_CC="gcc"
4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 BUILD_CC=$ac_cv_prog_BUILD_CC
4279 if test -n "$BUILD_CC"; then
4280 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4281 echo "${ECHO_T}$BUILD_CC" >&6; }
4283 { echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6; }
4288 if test -z "$BUILD_CC"; then
4289 # Extract the first word of "cc", so it can be a program name with args.
4290 set dummy cc; ac_word=$2
4291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4293 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 if test -n "$BUILD_CC"; then
4297 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4308 ac_prog_rejected=yes
4311 ac_cv_prog_BUILD_CC="cc"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 if test $ac_prog_rejected = yes; then
4320 # We found a bogon in the path, so make sure we never use it.
4321 set dummy $ac_cv_prog_BUILD_CC
4323 if test $# != 0; then
4324 # We chose a different compiler from the bogus one.
4325 # However, it has the same basename, so the bogon will be chosen
4326 # first if we set BUILD_CC to just the basename; use the full file name.
4328 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4333 BUILD_CC=$ac_cv_prog_BUILD_CC
4334 if test -n "$BUILD_CC"; then
4335 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4336 echo "${ECHO_T}$BUILD_CC" >&6; }
4338 { echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6; }
4345 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4346 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4347 { (exit 1); exit 1; }; }
4348 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4350 echo 'int main () { return 0; }' > conftest.$ac_ext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4353 (eval $ac_build_link) 2>&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; then
4357 for file in conftest.*; do
4359 *.c | *.o | *.obj | *.dSYM) ;;
4360 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4364 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4365 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4366 { (exit 1); exit 1; }; }
4369 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4374 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4375 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4376 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4377 ac_build_exeext=$BUILD_EXEEXT
4379 ac_build_prefix=${build_alias}-
4380 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4381 set dummy ${ac_build_prefix}g++; ac_word=$2
4382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4384 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 if test -n "$BUILD_CXX"; then
4388 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4408 if test -n "$BUILD_CXX"; then
4409 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4410 echo "${ECHO_T}$BUILD_CXX" >&6; }
4412 { echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6; }
4417 if test -z "$BUILD_CXX"; then
4418 # Extract the first word of "g++", so it can be a program name with args.
4419 set dummy g++; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 if test -n "$BUILD_CXX"; then
4426 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_BUILD_CXX="g++"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4446 if test -n "$BUILD_CXX"; then
4447 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4448 echo "${ECHO_T}$BUILD_CXX" >&6; }
4450 { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4455 if test -z "$BUILD_CXX"; then
4456 # Extract the first word of "c++", so it can be a program name with args.
4457 set dummy c++; ac_word=$2
4458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4460 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 if test -n "$BUILD_CXX"; then
4464 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4475 ac_prog_rejected=yes
4478 ac_cv_prog_BUILD_CXX="c++"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 if test $ac_prog_rejected = yes; then
4487 # We found a bogon in the path, so make sure we never use it.
4488 set dummy $ac_cv_prog_BUILD_CXX
4490 if test $# != 0; then
4491 # We chose a different compiler from the bogus one.
4492 # However, it has the same basename, so the bogon will be chosen
4493 # first if we set BUILD_CXX to just the basename; use the full file name.
4495 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4500 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4501 if test -n "$BUILD_CXX"; then
4502 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4503 echo "${ECHO_T}$BUILD_CXX" >&6; }
4505 { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4513 LLVM_CROSS_COMPILING=0
4517 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4528 # Check whether --enable-libcpp was given.
4529 if test "${enable_libcpp+set}" = set; then
4530 enableval=$enable_libcpp;
4535 case "$enableval" in
4536 yes) ENABLE_LIBCPP=1
4540 default) ENABLE_LIBCPP=0
4542 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4543 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4544 { (exit 1); exit 1; }; } ;;
4547 # Check whether --enable-compiler-version-checks was given.
4548 if test "${enable_compiler_version_checks+set}" = set; then
4549 enableval=$enable_compiler_version_checks;
4554 case "$enableval" in
4559 ac_cpp='$CXXCPP $CPPFLAGS'
4560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4564 case "$llvm_cv_cxx_compiler" in
4566 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4567 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4568 cat >conftest.$ac_ext <<_ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4575 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4576 #error This version of Clang is too old to build LLVM
4580 rm -f conftest.$ac_objext
4581 if { (ac_try="$ac_compile"
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4587 (eval "$ac_compile") 2>conftest.er1
4589 grep -v '^ *+' conftest.er1 >conftest.err
4591 cat conftest.err >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } &&
4594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4595 { (case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_try") 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; } &&
4604 { ac_try='test -s conftest.$ac_objext'
4605 { (case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_try") 2>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 { echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6; }
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4622 { { echo "$as_me:$LINENO: error:
4623 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4624 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4625 bypass these sanity checks." >&5
4626 echo "$as_me: error:
4627 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4628 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4629 bypass these sanity checks." >&2;}
4630 { (exit 1); exit 1; }; }
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 if test "$ENABLE_LIBCPP" -eq 0 ; then
4636 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4637 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4638 llvm_cv_old_cxxflags="$CXXFLAGS"
4639 CXXFLAGS="$CXXFLAGS -std=c++0x"
4640 cat >conftest.$ac_ext <<_ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4648 std::atomic<float> x(0.0f);
4649 int main() { return (float)x; }
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (ac_try="$ac_link"
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_link") 2>conftest.er1
4661 grep -v '^ *+' conftest.er1 >conftest.err
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4667 { (case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672 (eval "$ac_try") 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; } &&
4676 { ac_try='test -s conftest$ac_exeext'
4677 { (case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_try") 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 { echo "$as_me:$LINENO: result: yes" >&5
4687 echo "${ECHO_T}yes" >&6; }
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4694 { { echo "$as_me:$LINENO: error:
4695 We detected a missing feature in the standard C++ library that was known to be
4696 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4697 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4698 than 4.7. You will need to update your system and ensure Clang uses the newer
4701 If this error is incorrect or you need to force things to work, you may pass
4702 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4703 echo "$as_me: error:
4704 We detected a missing feature in the standard C++ library that was known to be
4705 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4706 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4707 than 4.7. You will need to update your system and ensure Clang uses the newer
4710 If this error is incorrect or you need to force things to work, you may pass
4711 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4712 { (exit 1); exit 1; }; }
4715 rm -f core conftest.err conftest.$ac_objext \
4716 conftest$ac_exeext conftest.$ac_ext
4717 CXXFLAGS="$llvm_cv_old_cxxflags"
4721 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4722 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4723 cat >conftest.$ac_ext <<_ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4730 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4731 #error This version of GCC is too old to build LLVM
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742 (eval "$ac_compile") 2>conftest.er1
4744 grep -v '^ *+' conftest.er1 >conftest.err
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4750 { (case "(($ac_try" in
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755 (eval "$ac_try") 2>&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; } &&
4759 { ac_try='test -s conftest.$ac_objext'
4760 { (case "(($ac_try" in
4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762 *) ac_try_echo=$ac_try;;
4764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765 (eval "$ac_try") 2>&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 { echo "$as_me:$LINENO: result: yes" >&5
4770 echo "${ECHO_T}yes" >&6; }
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4775 { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4777 { { echo "$as_me:$LINENO: error:
4778 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4779 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4780 bypass these sanity checks." >&5
4781 echo "$as_me: error:
4782 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4783 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4784 bypass these sanity checks." >&2;}
4785 { (exit 1); exit 1; }; }
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 ac_cpp='$CPP $CPPFLAGS'
4795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4801 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4802 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4803 { (exit 1); exit 1; }; }
4807 # Check whether --enable-cxx11 was given.
4808 if test "${enable_cxx11+set}" = set; then
4809 enableval=$enable_cxx11;
4814 case "$enableval" in
4819 default) ENABLE_CXX11=0
4821 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4822 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4823 { (exit 1); exit 1; }; } ;;
4826 # Check whether --enable-split-dwarf was given.
4827 if test "${enable_split_dwarf+set}" = set; then
4828 enableval=$enable_split_dwarf;
4833 case "$enableval" in
4834 yes) ENABLE_SPLIT_DWARF=1
4836 no) ENABLE_SPLIT_DWARF=0
4838 default) ENABLE_SPLIT_DWARF=0
4840 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4841 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4842 { (exit 1); exit 1; }; } ;;
4846 # Check whether --enable-clang-arcmt was given.
4847 if test "${enable_clang_arcmt+set}" = set; then
4848 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4853 case "$enableval" in
4854 yes) ENABLE_CLANG_ARCMT=1
4856 no) ENABLE_CLANG_ARCMT=0
4858 default) ENABLE_CLANG_ARCMT=1
4860 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4861 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4862 { (exit 1); exit 1; }; } ;;
4865 clang_static_analyzer="yes"
4866 # Check whether --enable-clang-static-analyzer was given.
4867 if test "${enable_clang_static_analyzer+set}" = set; then
4868 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4873 case "$enableval" in
4874 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4877 if test ${clang_arcmt} != "no" ; then
4878 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4879 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4880 { (exit 1); exit 1; }; }
4882 ENABLE_CLANG_STATIC_ANALYZER=0
4885 default) ENABLE_CLANG_STATIC_ANALYZER=1
4887 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4888 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4889 { (exit 1); exit 1; }; } ;;
4892 # Check whether --enable-clang-rewriter was given.
4893 if test "${enable_clang_rewriter+set}" = set; then
4894 enableval=$enable_clang_rewriter;
4899 case "$enableval" in
4900 yes) ENABLE_CLANG_REWRITER=1
4903 if test ${clang_arcmt} != "no" ; then
4904 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4905 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4906 { (exit 1); exit 1; }; }
4908 if test ${clang_static_analyzer} != "no" ; then
4909 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4910 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4911 { (exit 1); exit 1; }; }
4913 ENABLE_CLANG_REWRITER=0
4916 default) ENABLE_CLANG_REWRITER=1
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4923 # Check whether --enable-optimized was given.
4924 if test "${enable_optimized+set}" = set; then
4925 enableval=$enable_optimized;
4930 if test ${enableval} = "no" ; then
4934 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4938 # Check whether --enable-profiling was given.
4939 if test "${enable_profiling+set}" = set; then
4940 enableval=$enable_profiling;
4945 if test ${enableval} = "no" ; then
4949 ENABLE_PROFILING=ENABLE_PROFILING=1
4953 # Check whether --enable-assertions was given.
4954 if test "${enable_assertions+set}" = set; then
4955 enableval=$enable_assertions;
4960 if test ${enableval} = "yes" ; then
4964 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4968 # Check whether --enable-werror was given.
4969 if test "${enable_werror+set}" = set; then
4970 enableval=$enable_werror;
4975 case "$enableval" in
4976 yes) ENABLE_WERROR=1
4980 default) ENABLE_WERROR=0
4982 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4983 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4984 { (exit 1); exit 1; }; } ;;
4987 # Check whether --enable-expensive-checks was given.
4988 if test "${enable_expensive_checks+set}" = set; then
4989 enableval=$enable_expensive_checks;
4994 if test ${enableval} = "yes" ; then
4995 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4997 EXPENSIVE_CHECKS=yes
5000 ENABLE_EXPENSIVE_CHECKS=
5006 # Check whether --enable-debug-runtime was given.
5007 if test "${enable_debug_runtime+set}" = set; then
5008 enableval=$enable_debug_runtime;
5013 if test ${enableval} = "no" ; then
5017 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5021 # Check whether --enable-debug-symbols was given.
5022 if test "${enable_debug_symbols+set}" = set; then
5023 enableval=$enable_debug_symbols;
5028 if test ${enableval} = "no" ; then
5032 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5036 # Check whether --enable-keep-symbols was given.
5037 if test "${enable_keep_symbols+set}" = set; then
5038 enableval=$enable_keep_symbols;
5043 if test ${enableval} = "no" ; then
5047 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5051 # Check whether --enable-jit was given.
5052 if test "${enable_jit+set}" = set; then
5053 enableval=$enable_jit;
5058 if test ${enableval} = "no"
5063 case "$llvm_cv_target_arch" in
5064 x86) TARGET_HAS_JIT=1
5066 Sparc) TARGET_HAS_JIT=0
5068 PowerPC) TARGET_HAS_JIT=1
5070 x86_64) TARGET_HAS_JIT=1
5072 ARM) TARGET_HAS_JIT=1
5074 AArch64) TARGET_HAS_JIT=0
5076 Mips) TARGET_HAS_JIT=1
5078 XCore) TARGET_HAS_JIT=0
5080 MSP430) TARGET_HAS_JIT=0
5082 Hexagon) TARGET_HAS_JIT=0
5084 NVPTX) TARGET_HAS_JIT=0
5086 SystemZ) TARGET_HAS_JIT=1
5093 TARGETS_WITH_JIT="AArch64 ARM Mips PowerPC SystemZ X86"
5094 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5097 # Check whether --enable-docs was given.
5098 if test "${enable_docs+set}" = set; then
5099 enableval=$enable_docs;
5104 case "$enableval" in
5109 default) ENABLE_DOCS=1
5111 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5112 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5113 { (exit 1); exit 1; }; } ;;
5116 # Check whether --enable-doxygen was given.
5117 if test "${enable_doxygen+set}" = set; then
5118 enableval=$enable_doxygen;
5123 case "$enableval" in
5124 yes) ENABLE_DOXYGEN=1
5126 no) ENABLE_DOXYGEN=0
5128 default) ENABLE_DOXYGEN=0
5130 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5131 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5132 { (exit 1); exit 1; }; } ;;
5135 # Check whether --enable-threads was given.
5136 if test "${enable_threads+set}" = set; then
5137 enableval=$enable_threads;
5142 case "$enableval" in
5143 yes) LLVM_ENABLE_THREADS=1
5145 no) LLVM_ENABLE_THREADS=0
5147 default) LLVM_ENABLE_THREADS=1
5149 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5150 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5151 { (exit 1); exit 1; }; } ;;
5154 cat >>confdefs.h <<_ACEOF
5155 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5159 # Check whether --enable-pthreads was given.
5160 if test "${enable_pthreads+set}" = set; then
5161 enableval=$enable_pthreads;
5166 case "$enableval" in
5167 yes) ENABLE_PTHREADS=1
5169 no) ENABLE_PTHREADS=0
5171 default) ENABLE_PTHREADS=1
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5174 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5178 # Check whether --enable-zlib was given.
5179 if test "${enable_zlib+set}" = set; then
5180 enableval=$enable_zlib;
5185 case "$enableval" in
5186 yes) LLVM_ENABLE_ZLIB=1
5188 no) LLVM_ENABLE_ZLIB=0
5190 default) LLVM_ENABLE_ZLIB=1
5192 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5193 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5194 { (exit 1); exit 1; }; } ;;
5197 cat >>confdefs.h <<_ACEOF
5198 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5202 # Check whether --enable-pic was given.
5203 if test "${enable_pic+set}" = set; then
5204 enableval=$enable_pic;
5209 case "$enableval" in
5214 default) ENABLE_PIC=1
5216 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5217 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5218 { (exit 1); exit 1; }; } ;;
5221 cat >>confdefs.h <<_ACEOF
5222 #define ENABLE_PIC $ENABLE_PIC
5226 # Check whether --enable-shared was given.
5227 if test "${enable_shared+set}" = set; then
5228 enableval=$enable_shared;
5233 case "$enableval" in
5234 yes) ENABLE_SHARED=1
5238 default) ENABLE_SHARED=0
5240 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5241 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5242 { (exit 1); exit 1; }; } ;;
5245 # Check whether --enable-embed-stdcxx was given.
5246 if test "${enable_embed_stdcxx+set}" = set; then
5247 enableval=$enable_embed_stdcxx;
5252 case "$enableval" in
5253 yes) ENABLE_EMBED_STDCXX=1
5255 no) ENABLE_EMBED_STDCXX=0
5257 default) ENABLE_EMBED_STDCXX=0
5259 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5260 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5261 { (exit 1); exit 1; }; } ;;
5264 # Check whether --enable-timestamps was given.
5265 if test "${enable_timestamps+set}" = set; then
5266 enableval=$enable_timestamps;
5271 case "$enableval" in
5272 yes) ENABLE_TIMESTAMPS=1
5274 no) ENABLE_TIMESTAMPS=0
5276 default) ENABLE_TIMESTAMPS=1
5278 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5279 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5280 { (exit 1); exit 1; }; } ;;
5283 cat >>confdefs.h <<_ACEOF
5284 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5288 # Check whether --enable-backtraces was given.
5289 if test "${enable_backtraces+set}" = set; then
5290 enableval=$enable_backtraces; case "$enableval" in
5291 yes) llvm_cv_enable_backtraces="yes" ;;
5292 no) llvm_cv_enable_backtraces="no" ;;
5293 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5294 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5295 { (exit 1); exit 1; }; } ;;
5298 llvm_cv_enable_backtraces="yes"
5301 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5303 cat >>confdefs.h <<\_ACEOF
5304 #define ENABLE_BACKTRACES 1
5309 # Check whether --enable-crash-overrides was given.
5310 if test "${enable_crash_overrides+set}" = set; then
5311 enableval=$enable_crash_overrides; case "$enableval" in
5312 yes) llvm_cv_enable_crash_overrides="yes" ;;
5313 no) llvm_cv_enable_crash_overrides="no" ;;
5314 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5315 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5316 { (exit 1); exit 1; }; } ;;
5319 llvm_cv_enable_crash_overrides="yes"
5322 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5324 cat >>confdefs.h <<\_ACEOF
5325 #define ENABLE_CRASH_OVERRIDES 1
5330 ALL_TARGETS="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5331 ALL_TARGETS=$ALL_TARGETS
5335 # Check whether --enable-targets was given.
5336 if test "${enable_targets+set}" = set; then
5337 enableval=$enable_targets;
5342 if test "$enableval" = host-only ; then
5345 case "$enableval" in
5346 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5347 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5349 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5350 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5351 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5352 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5353 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5354 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5355 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5356 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5357 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5358 mips64el) 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 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5362 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5363 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5364 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5365 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5366 host) case "$llvm_cv_target_arch" in
5367 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5368 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5369 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5370 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5371 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5372 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5373 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5374 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5375 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5376 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5377 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5378 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5379 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5380 echo "$as_me: error: Can not set target to build" >&2;}
5381 { (exit 1); exit 1; }; } ;;
5383 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5384 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5385 { (exit 1); exit 1; }; } ;;
5391 # Check whether --enable-experimental-targets was given.
5392 if test "${enable_experimental_targets+set}" = set; then
5393 enableval=$enable_experimental_targets;
5399 if test ${enableval} != "disable"
5401 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5404 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5407 for a_target in $TARGETS_TO_BUILD; do
5408 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5410 cat >>confdefs.h <<_ACEOF
5411 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5414 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5415 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5416 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5417 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5418 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5419 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5421 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5422 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5425 cat >>confdefs.h <<_ACEOF
5426 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5430 cat >>confdefs.h <<_ACEOF
5431 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5435 cat >>confdefs.h <<_ACEOF
5436 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5440 cat >>confdefs.h <<_ACEOF
5441 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5444 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5446 cat >>confdefs.h <<_ACEOF
5447 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5451 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5453 cat >>confdefs.h <<_ACEOF
5454 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5461 LLVM_ENUM_TARGETS=""
5462 LLVM_ENUM_ASM_PRINTERS=""
5463 LLVM_ENUM_ASM_PARSERS=""
5464 LLVM_ENUM_DISASSEMBLERS=""
5465 for target_to_build in $TARGETS_TO_BUILD; do
5466 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5467 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5468 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5470 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5471 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5473 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5474 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5483 # Check whether --with-optimize-option was given.
5484 if test "${with_optimize_option+set}" = set; then
5485 withval=$with_optimize_option;
5490 { echo "$as_me:$LINENO: checking optimization flags" >&5
5491 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5494 case "$llvm_cv_os_type" in
5495 FreeBSD) optimize_option=-O2 ;;
5496 MingW) optimize_option=-O2 ;;
5497 *) optimize_option=-O3 ;;
5499 *) optimize_option="$withval" ;;
5501 OPTIMIZE_OPTION=$optimize_option
5503 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5504 echo "${ECHO_T}$optimize_option" >&6; }
5507 # Check whether --with-extra-options was given.
5508 if test "${with_extra_options+set}" = set; then
5509 withval=$with_extra_options;
5515 default) EXTRA_OPTIONS= ;;
5516 *) EXTRA_OPTIONS=$withval ;;
5518 EXTRA_OPTIONS=$EXTRA_OPTIONS
5522 # Check whether --with-extra-ld-options was given.
5523 if test "${with_extra_ld_options+set}" = set; then
5524 withval=$with_extra_ld_options;
5530 default) EXTRA_LD_OPTIONS= ;;
5531 *) EXTRA_LD_OPTIONS=$withval ;;
5533 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5536 # Check whether --enable-bindings was given.
5537 if test "${enable_bindings+set}" = set; then
5538 enableval=$enable_bindings;
5543 BINDINGS_TO_BUILD=""
5544 case "$enableval" in
5545 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5546 all ) BINDINGS_TO_BUILD="ocaml" ;;
5547 none | no) BINDINGS_TO_BUILD="" ;;
5548 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5549 case "$a_binding" in
5550 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5551 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5552 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5553 { (exit 1); exit 1; }; } ;;
5560 # Check whether --with-ocaml-libdir was given.
5561 if test "${with_ocaml_libdir+set}" = set; then
5562 withval=$with_ocaml_libdir;
5568 auto) with_ocaml_libdir="$withval" ;;
5569 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5570 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5571 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5572 { (exit 1); exit 1; }; } ;;
5576 # Check whether --with-clang-srcdir was given.
5577 if test "${with_clang_srcdir+set}" = set; then
5578 withval=$with_clang_srcdir;
5584 -) clang_src_root="" ;;
5585 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5586 *) clang_src_root="$ac_pwd/$withval" ;;
5588 CLANG_SRC_ROOT=$clang_src_root
5592 # Check whether --with-clang-resource-dir was given.
5593 if test "${with_clang_resource_dir+set}" = set; then
5594 withval=$with_clang_resource_dir;
5600 cat >>confdefs.h <<_ACEOF
5601 #define CLANG_RESOURCE_DIR "$withval"
5606 # Check whether --with-c-include-dirs was given.
5607 if test "${with_c_include_dirs+set}" = set; then
5608 withval=$with_c_include_dirs;
5614 cat >>confdefs.h <<_ACEOF
5615 #define C_INCLUDE_DIRS "$withval"
5619 # Clang normally uses the system c++ headers and libraries. With this option,
5620 # clang will use the ones provided by a gcc installation instead. This option should
5621 # be passed the same value that was used with --prefix when configuring gcc.
5623 # Check whether --with-gcc-toolchain was given.
5624 if test "${with_gcc_toolchain+set}" = set; then
5625 withval=$with_gcc_toolchain;
5631 cat >>confdefs.h <<_ACEOF
5632 #define GCC_INSTALL_PREFIX "$withval"
5637 # Check whether --with-default-sysroot was given.
5638 if test "${with_default_sysroot+set}" = set; then
5639 withval=$with_default_sysroot;
5645 cat >>confdefs.h <<_ACEOF
5646 #define DEFAULT_SYSROOT "$withval"
5651 # Check whether --with-binutils-include was given.
5652 if test "${with_binutils_include+set}" = set; then
5653 withval=$with_binutils_include;
5659 default) WITH_BINUTILS_INCDIR=default ;;
5660 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5661 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5662 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5663 { (exit 1); exit 1; }; } ;;
5665 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5666 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5668 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5669 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5670 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5671 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5672 { (exit 1); exit 1; }; };
5677 # Check whether --with-bug-report-url was given.
5678 if test "${with_bug_report_url+set}" = set; then
5679 withval=$with_bug_report_url;
5681 withval="http://llvm.org/bugs/"
5685 cat >>confdefs.h <<_ACEOF
5686 #define BUG_REPORT_URL "$withval"
5690 # Check whether --enable-terminfo was given.
5691 if test "${enable_terminfo+set}" = set; then
5692 enableval=$enable_terminfo; case "$enableval" in
5693 yes) llvm_cv_enable_terminfo="yes" ;;
5694 no) llvm_cv_enable_terminfo="no" ;;
5695 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5696 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5697 { (exit 1); exit 1; }; } ;;
5700 llvm_cv_enable_terminfo="yes"
5703 case "$llvm_cv_enable_terminfo" in
5704 yes) ENABLE_TERMINFO=1
5706 no) ENABLE_TERMINFO=0
5710 # Check whether --enable-libedit was given.
5711 if test "${enable_libedit+set}" = set; then
5712 enableval=$enable_libedit; case "$enableval" in
5713 yes) llvm_cv_enable_libedit="yes" ;;
5714 no) llvm_cv_enable_libedit="no" ;;
5715 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5716 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5717 { (exit 1); exit 1; }; } ;;
5720 llvm_cv_enable_libedit="yes"
5724 # Check whether --enable-libffi was given.
5725 if test "${enable_libffi+set}" = set; then
5726 enableval=$enable_libffi; case "$enableval" in
5727 yes) llvm_cv_enable_libffi="yes" ;;
5728 no) llvm_cv_enable_libffi="no" ;;
5729 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5730 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5731 { (exit 1); exit 1; }; } ;;
5734 llvm_cv_enable_libffi=no
5739 # Check whether --with-internal-prefix was given.
5740 if test "${with_internal_prefix+set}" = set; then
5741 withval=$with_internal_prefix;
5746 INTERNAL_PREFIX=$withval
5750 { echo "$as_me:$LINENO: checking for GNU make" >&5
5751 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5752 if test "${llvm_cv_gnu_make_command+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 llvm_cv_gnu_make_command=''
5756 for a in "$MAKE" make gmake gnumake ; do
5757 if test -z "$a" ; then continue ; fi ;
5758 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5760 llvm_cv_gnu_make_command=$a ;
5765 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5766 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5767 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5771 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5772 echo "${ECHO_T}\"Not found\"" >&6; };
5776 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5777 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5779 if test "$LN_S" = "ln -s"; then
5780 { echo "$as_me:$LINENO: result: yes" >&5
5781 echo "${ECHO_T}yes" >&6; }
5783 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5784 echo "${ECHO_T}no, using $LN_S" >&6; }
5787 # Extract the first word of "nm", so it can be a program name with args.
5788 set dummy nm; ac_word=$2
5789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791 if test "${ac_cv_path_NM+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5819 if test -n "$NM"; then
5820 { echo "$as_me:$LINENO: result: $NM" >&5
5821 echo "${ECHO_T}$NM" >&6; }
5823 { echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6; }
5828 # Extract the first word of "cmp", so it can be a program name with args.
5829 set dummy cmp; ac_word=$2
5830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5832 if test "${ac_cv_path_CMP+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5860 if test -n "$CMP"; then
5861 { echo "$as_me:$LINENO: result: $CMP" >&5
5862 echo "${ECHO_T}$CMP" >&6; }
5864 { echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6; }
5869 # Extract the first word of "cp", so it can be a program name with args.
5870 set dummy cp; ac_word=$2
5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873 if test "${ac_cv_path_CP+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5901 if test -n "$CP"; then
5902 { echo "$as_me:$LINENO: result: $CP" >&5
5903 echo "${ECHO_T}$CP" >&6; }
5905 { echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6; }
5910 # Extract the first word of "date", so it can be a program name with args.
5911 set dummy date; ac_word=$2
5912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914 if test "${ac_cv_path_DATE+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5929 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5941 DATE=$ac_cv_path_DATE
5942 if test -n "$DATE"; then
5943 { echo "$as_me:$LINENO: result: $DATE" >&5
5944 echo "${ECHO_T}$DATE" >&6; }
5946 { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5951 # Extract the first word of "find", so it can be a program name with args.
5952 set dummy find; ac_word=$2
5953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5955 if test "${ac_cv_path_FIND+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5970 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5982 FIND=$ac_cv_path_FIND
5983 if test -n "$FIND"; then
5984 { echo "$as_me:$LINENO: result: $FIND" >&5
5985 echo "${ECHO_T}$FIND" >&6; }
5987 { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5992 # Extract the first word of "grep", so it can be a program name with args.
5993 set dummy grep; ac_word=$2
5994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5996 if test "${ac_cv_path_GREP+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6023 GREP=$ac_cv_path_GREP
6024 if test -n "$GREP"; then
6025 { echo "$as_me:$LINENO: result: $GREP" >&5
6026 echo "${ECHO_T}$GREP" >&6; }
6028 { echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6; }
6033 # Extract the first word of "mkdir", so it can be a program name with args.
6034 set dummy mkdir; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_path_MKDIR+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6064 MKDIR=$ac_cv_path_MKDIR
6065 if test -n "$MKDIR"; then
6066 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6067 echo "${ECHO_T}$MKDIR" >&6; }
6069 { echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6; }
6074 # Extract the first word of "mv", so it can be a program name with args.
6075 set dummy mv; ac_word=$2
6076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6078 if test "${ac_cv_path_MV+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6093 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6106 if test -n "$MV"; then
6107 { echo "$as_me:$LINENO: result: $MV" >&5
6108 echo "${ECHO_T}$MV" >&6; }
6110 { echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6; }
6115 if test -n "$ac_tool_prefix"; then
6116 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6117 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6120 if test "${ac_cv_prog_RANLIB+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 if test -n "$RANLIB"; then
6124 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6133 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 RANLIB=$ac_cv_prog_RANLIB
6144 if test -n "$RANLIB"; then
6145 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6146 echo "${ECHO_T}$RANLIB" >&6; }
6148 { echo "$as_me:$LINENO: result: no" >&5
6149 echo "${ECHO_T}no" >&6; }
6154 if test -z "$ac_cv_prog_RANLIB"; then
6155 ac_ct_RANLIB=$RANLIB
6156 # Extract the first word of "ranlib", so it can be a program name with args.
6157 set dummy ranlib; ac_word=$2
6158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6160 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 if test -n "$ac_ct_RANLIB"; then
6164 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6173 ac_cv_prog_ac_ct_RANLIB="ranlib"
6174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6184 if test -n "$ac_ct_RANLIB"; then
6185 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6186 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6188 { echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6; }
6192 if test "x$ac_ct_RANLIB" = x; then
6195 case $cross_compiling:$ac_tool_warned in
6197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6198 whose name does not start with the host triplet. If you think this
6199 configuration is useful to you, please write to autoconf@gnu.org." >&5
6200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6201 whose name does not start with the host triplet. If you think this
6202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6203 ac_tool_warned=yes ;;
6205 RANLIB=$ac_ct_RANLIB
6208 RANLIB="$ac_cv_prog_RANLIB"
6211 if test -n "$ac_tool_prefix"; then
6212 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6213 set dummy ${ac_tool_prefix}ar; ac_word=$2
6214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6216 if test "${ac_cv_prog_AR+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 if test -n "$AR"; then
6220 ac_cv_prog_AR="$AR" # Let the user override the test.
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6229 ac_cv_prog_AR="${ac_tool_prefix}ar"
6230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 if test -n "$AR"; then
6241 { echo "$as_me:$LINENO: result: $AR" >&5
6242 echo "${ECHO_T}$AR" >&6; }
6244 { echo "$as_me:$LINENO: result: no" >&5
6245 echo "${ECHO_T}no" >&6; }
6250 if test -z "$ac_cv_prog_AR"; then
6252 # Extract the first word of "ar", so it can be a program name with args.
6253 set dummy ar; ac_word=$2
6254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6256 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 if test -n "$ac_ct_AR"; then
6260 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6269 ac_cv_prog_ac_ct_AR="ar"
6270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6280 if test -n "$ac_ct_AR"; then
6281 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6282 echo "${ECHO_T}$ac_ct_AR" >&6; }
6284 { echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6; }
6288 if test "x$ac_ct_AR" = x; then
6291 case $cross_compiling:$ac_tool_warned in
6293 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6294 whose name does not start with the host triplet. If you think this
6295 configuration is useful to you, please write to autoconf@gnu.org." >&5
6296 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6297 whose name does not start with the host triplet. If you think this
6298 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6299 ac_tool_warned=yes ;;
6307 # Extract the first word of "rm", so it can be a program name with args.
6308 set dummy rm; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_path_RM+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6339 if test -n "$RM"; then
6340 { echo "$as_me:$LINENO: result: $RM" >&5
6341 echo "${ECHO_T}$RM" >&6; }
6343 { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6348 # Extract the first word of "sed", so it can be a program name with args.
6349 set dummy sed; ac_word=$2
6350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6352 if test "${ac_cv_path_SED+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6367 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6380 if test -n "$SED"; then
6381 { echo "$as_me:$LINENO: result: $SED" >&5
6382 echo "${ECHO_T}$SED" >&6; }
6384 { echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6; }
6389 # Extract the first word of "tar", so it can be a program name with args.
6390 set dummy tar; ac_word=$2
6391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393 if test "${ac_cv_path_TAR+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6421 if test -n "$TAR"; then
6422 { echo "$as_me:$LINENO: result: $TAR" >&5
6423 echo "${ECHO_T}$TAR" >&6; }
6425 { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6430 # Extract the first word of "pwd", so it can be a program name with args.
6431 set dummy pwd; ac_word=$2
6432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6434 if test "${ac_cv_path_BINPWD+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6461 BINPWD=$ac_cv_path_BINPWD
6462 if test -n "$BINPWD"; then
6463 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6464 echo "${ECHO_T}$BINPWD" >&6; }
6466 { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6472 # Extract the first word of "Graphviz", so it can be a program name with args.
6473 set dummy Graphviz; ac_word=$2
6474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6476 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6503 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6504 if test -n "$GRAPHVIZ"; then
6505 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6506 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6508 { echo "$as_me:$LINENO: result: no" >&5
6509 echo "${ECHO_T}no" >&6; }
6513 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6515 cat >>confdefs.h <<\_ACEOF
6516 #define HAVE_GRAPHVIZ 1
6519 if test "$llvm_cv_os_type" = "MingW" ; then
6520 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6523 cat >>confdefs.h <<_ACEOF
6524 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6528 # Extract the first word of "dot", so it can be a program name with args.
6529 set dummy dot; ac_word=$2
6530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6532 if test "${ac_cv_path_DOT+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6560 if test -n "$DOT"; then
6561 { echo "$as_me:$LINENO: result: $DOT" >&5
6562 echo "${ECHO_T}$DOT" >&6; }
6564 { echo "$as_me:$LINENO: result: no" >&5
6565 echo "${ECHO_T}no" >&6; }
6569 if test "$DOT" != "echo dot" ; then
6571 cat >>confdefs.h <<\_ACEOF
6575 if test "$llvm_cv_os_type" = "MingW" ; then
6576 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6579 cat >>confdefs.h <<_ACEOF
6580 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6584 # Extract the first word of "fdp", so it can be a program name with args.
6585 set dummy fdp; ac_word=$2
6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588 if test "${ac_cv_path_FDP+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6616 if test -n "$FDP"; then
6617 { echo "$as_me:$LINENO: result: $FDP" >&5
6618 echo "${ECHO_T}$FDP" >&6; }
6620 { echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6; }
6625 if test "$FDP" != "echo fdp" ; then
6627 cat >>confdefs.h <<\_ACEOF
6631 if test "$llvm_cv_os_type" = "MingW" ; then
6632 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6635 cat >>confdefs.h <<_ACEOF
6636 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6640 # Extract the first word of "neato", so it can be a program name with args.
6641 set dummy neato; ac_word=$2
6642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6644 if test "${ac_cv_path_NEATO+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6671 NEATO=$ac_cv_path_NEATO
6672 if test -n "$NEATO"; then
6673 { echo "$as_me:$LINENO: result: $NEATO" >&5
6674 echo "${ECHO_T}$NEATO" >&6; }
6676 { echo "$as_me:$LINENO: result: no" >&5
6677 echo "${ECHO_T}no" >&6; }
6681 if test "$NEATO" != "echo neato" ; then
6683 cat >>confdefs.h <<\_ACEOF
6684 #define HAVE_NEATO 1
6687 if test "$llvm_cv_os_type" = "MingW" ; then
6688 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6691 cat >>confdefs.h <<_ACEOF
6692 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6696 # Extract the first word of "twopi", so it can be a program name with args.
6697 set dummy twopi; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_TWOPI+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6727 TWOPI=$ac_cv_path_TWOPI
6728 if test -n "$TWOPI"; then
6729 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6730 echo "${ECHO_T}$TWOPI" >&6; }
6732 { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6737 if test "$TWOPI" != "echo twopi" ; then
6739 cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_TWOPI 1
6743 if test "$llvm_cv_os_type" = "MingW" ; then
6744 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6747 cat >>confdefs.h <<_ACEOF
6748 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6752 # Extract the first word of "circo", so it can be a program name with args.
6753 set dummy circo; ac_word=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_path_CIRCO+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6783 CIRCO=$ac_cv_path_CIRCO
6784 if test -n "$CIRCO"; then
6785 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6786 echo "${ECHO_T}$CIRCO" >&6; }
6788 { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6793 if test "$CIRCO" != "echo circo" ; then
6795 cat >>confdefs.h <<\_ACEOF
6796 #define HAVE_CIRCO 1
6799 if test "$llvm_cv_os_type" = "MingW" ; then
6800 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6803 cat >>confdefs.h <<_ACEOF
6804 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6808 for ac_prog in gv gsview32
6810 # Extract the first word of "$ac_prog", so it can be a program name with args.
6811 set dummy $ac_prog; ac_word=$2
6812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814 if test "${ac_cv_path_GV+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 if test -n "$GV"; then
6842 { echo "$as_me:$LINENO: result: $GV" >&5
6843 echo "${ECHO_T}$GV" >&6; }
6845 { echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6; }
6850 test -n "$GV" && break
6852 test -n "$GV" || GV="echo gv"
6854 if test "$GV" != "echo gv" ; then
6856 cat >>confdefs.h <<\_ACEOF
6860 if test "$llvm_cv_os_type" = "MingW" ; then
6861 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6864 cat >>confdefs.h <<_ACEOF
6865 #define LLVM_PATH_GV "$GV${EXEEXT}"
6869 # Extract the first word of "dotty", so it can be a program name with args.
6870 set dummy dotty; ac_word=$2
6871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873 if test "${ac_cv_path_DOTTY+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6900 DOTTY=$ac_cv_path_DOTTY
6901 if test -n "$DOTTY"; then
6902 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6903 echo "${ECHO_T}$DOTTY" >&6; }
6905 { echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6; }
6910 if test "$DOTTY" != "echo dotty" ; then
6912 cat >>confdefs.h <<\_ACEOF
6913 #define HAVE_DOTTY 1
6916 if test "$llvm_cv_os_type" = "MingW" ; then
6917 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6920 cat >>confdefs.h <<_ACEOF
6921 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6925 for ac_prog in xdot xdot.py
6927 # Extract the first word of "$ac_prog", so it can be a program name with args.
6928 set dummy $ac_prog; ac_word=$2
6929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6931 if test "${ac_cv_path_XDOT+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 XDOT=$ac_cv_path_XDOT
6958 if test -n "$XDOT"; then
6959 { echo "$as_me:$LINENO: result: $XDOT" >&5
6960 echo "${ECHO_T}$XDOT" >&6; }
6962 { echo "$as_me:$LINENO: result: no" >&5
6963 echo "${ECHO_T}no" >&6; }
6967 test -n "$XDOT" && break
6969 test -n "$XDOT" || XDOT="echo xdot"
6971 if test "$XDOT" != "echo xdot" ; then
6973 cat >>confdefs.h <<\_ACEOF
6977 if test "$llvm_cv_os_type" = "MingW" ; then
6978 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6981 cat >>confdefs.h <<_ACEOF
6982 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6987 # Find a good install program. We prefer a C program (faster),
6988 # so one script is as good as another. But avoid the broken or
6989 # incompatible versions:
6990 # SysV /etc/install, /usr/sbin/install
6991 # SunOS /usr/etc/install
6992 # IRIX /sbin/install
6994 # AmigaOS /C/install, which installs bootblocks on floppy discs
6995 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6996 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6997 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6998 # OS/2's system install, which has a completely different semantic
6999 # ./install, which can be erroneously created by make from ./install.sh.
7000 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7001 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7002 if test -z "$INSTALL"; then
7003 if test "${ac_cv_path_install+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 test -z "$as_dir" && as_dir=.
7011 # Account for people who put trailing slashes in PATH elements.
7013 ./ | .// | /cC/* | \
7014 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7015 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7018 # OSF1 and SCO ODT 3.0 have their own names for install.
7019 # Don't use installbsd from OSF since it installs stuff as root
7021 for ac_prog in ginstall scoinst install; do
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7024 if test $ac_prog = install &&
7025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7026 # AIX install. It has an incompatible calling convention.
7028 elif test $ac_prog = install &&
7029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7030 # program-specific install script used by HP pwplus--don't use.
7033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7046 if test "${ac_cv_path_install+set}" = set; then
7047 INSTALL=$ac_cv_path_install
7049 # As a last resort, use the slow shell script. Don't cache a
7050 # value for INSTALL within a source directory, because that will
7051 # break other packages using the cache if that directory is
7052 # removed, or if the value is a relative name.
7053 INSTALL=$ac_install_sh
7056 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7057 echo "${ECHO_T}$INSTALL" >&6; }
7059 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7060 # It thinks the first close brace ends the variable substitution.
7061 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7063 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7065 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7068 [\\/$]* | ?:[\\/]* ) ;;
7069 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7072 # Extract the first word of "bzip2", so it can be a program name with args.
7073 set dummy bzip2; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_BZIP2+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 BZIP2=$ac_cv_path_BZIP2
7103 if test -n "$BZIP2"; then
7104 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7105 echo "${ECHO_T}$BZIP2" >&6; }
7107 { echo "$as_me:$LINENO: result: no" >&5
7108 echo "${ECHO_T}no" >&6; }
7112 # Extract the first word of "cat", so it can be a program name with args.
7113 set dummy cat; ac_word=$2
7114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116 if test "${ac_cv_path_CAT+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7131 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 if test -n "$CAT"; then
7144 { echo "$as_me:$LINENO: result: $CAT" >&5
7145 echo "${ECHO_T}$CAT" >&6; }
7147 { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7152 # Extract the first word of "doxygen", so it can be a program name with args.
7153 set dummy doxygen; ac_word=$2
7154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7171 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 DOXYGEN=$ac_cv_path_DOXYGEN
7183 if test -n "$DOXYGEN"; then
7184 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7185 echo "${ECHO_T}$DOXYGEN" >&6; }
7187 { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7192 # Extract the first word of "groff", so it can be a program name with args.
7193 set dummy groff; ac_word=$2
7194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196 if test "${ac_cv_path_GROFF+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 GROFF=$ac_cv_path_GROFF
7223 if test -n "$GROFF"; then
7224 { echo "$as_me:$LINENO: result: $GROFF" >&5
7225 echo "${ECHO_T}$GROFF" >&6; }
7227 { echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6; }
7232 # Extract the first word of "gzip", so it can be a program name with args.
7233 set dummy gzip; ac_word=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 GZIPBIN=$ac_cv_path_GZIPBIN
7263 if test -n "$GZIPBIN"; then
7264 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7265 echo "${ECHO_T}$GZIPBIN" >&6; }
7267 { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7272 # Extract the first word of "pdfroff", so it can be a program name with args.
7273 set dummy pdfroff; ac_word=$2
7274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7276 if test "${ac_cv_path_PDFROFF+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 test -z "$as_dir" && as_dir=.
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7291 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 PDFROFF=$ac_cv_path_PDFROFF
7303 if test -n "$PDFROFF"; then
7304 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7305 echo "${ECHO_T}$PDFROFF" >&6; }
7307 { echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6; }
7312 # Extract the first word of "zip", so it can be a program name with args.
7313 set dummy zip; ac_word=$2
7314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316 if test "${ac_cv_path_ZIP+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7331 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 if test -n "$ZIP"; then
7344 { echo "$as_me:$LINENO: result: $ZIP" >&5
7345 echo "${ECHO_T}$ZIP" >&6; }
7347 { echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6; }
7352 for ac_prog in ocamlc
7354 # Extract the first word of "$ac_prog", so it can be a program name with args.
7355 set dummy $ac_prog; ac_word=$2
7356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7358 if test "${ac_cv_path_OCAMLC+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7373 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 OCAMLC=$ac_cv_path_OCAMLC
7385 if test -n "$OCAMLC"; then
7386 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7387 echo "${ECHO_T}$OCAMLC" >&6; }
7389 { echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6; }
7394 test -n "$OCAMLC" && break
7397 for ac_prog in ocamlopt
7399 # Extract the first word of "$ac_prog", so it can be a program name with args.
7400 set dummy $ac_prog; ac_word=$2
7401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7403 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 OCAMLOPT=$ac_cv_path_OCAMLOPT
7430 if test -n "$OCAMLOPT"; then
7431 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7432 echo "${ECHO_T}$OCAMLOPT" >&6; }
7434 { echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6; }
7439 test -n "$OCAMLOPT" && break
7442 for ac_prog in ocamldep
7444 # Extract the first word of "$ac_prog", so it can be a program name with args.
7445 set dummy $ac_prog; ac_word=$2
7446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7448 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 OCAMLDEP=$ac_cv_path_OCAMLDEP
7475 if test -n "$OCAMLDEP"; then
7476 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7477 echo "${ECHO_T}$OCAMLDEP" >&6; }
7479 { echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6; }
7484 test -n "$OCAMLDEP" && break
7487 for ac_prog in ocamldoc
7489 # Extract the first word of "$ac_prog", so it can be a program name with args.
7490 set dummy $ac_prog; ac_word=$2
7491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 OCAMLDOC=$ac_cv_path_OCAMLDOC
7520 if test -n "$OCAMLDOC"; then
7521 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7522 echo "${ECHO_T}$OCAMLDOC" >&6; }
7524 { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7529 test -n "$OCAMLDOC" && break
7532 for ac_prog in gas as
7534 # Extract the first word of "$ac_prog", so it can be a program name with args.
7535 set dummy $ac_prog; ac_word=$2
7536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7538 if test "${ac_cv_path_GAS+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 if test -n "$GAS"; then
7566 { echo "$as_me:$LINENO: result: $GAS" >&5
7567 echo "${ECHO_T}$GAS" >&6; }
7569 { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7574 test -n "$GAS" && break
7578 { echo "$as_me:$LINENO: checking for linker version" >&5
7579 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7580 if test "${llvm_cv_link_version+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 version_string="$(ld -v 2>&1 | head -1)"
7587 if (echo "$version_string" | grep -q "ld64"); then
7588 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7590 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7594 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7595 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7597 cat >>confdefs.h <<_ACEOF
7598 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7604 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7605 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7606 if test "${llvm_cv_link_use_r+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 ac_cpp='$CPP $CPPFLAGS'
7611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7616 CFLAGS="$CFLAGS -Wl,-R."
7617 cat >conftest.$ac_ext <<_ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7632 rm -f conftest.$ac_objext conftest$ac_exeext
7633 if { (ac_try="$ac_link"
7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639 (eval "$ac_link") 2>conftest.er1
7641 grep -v '^ *+' conftest.er1 >conftest.err
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7647 { (case "(($ac_try" in
7648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7649 *) ac_try_echo=$ac_try;;
7651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7652 (eval "$ac_try") 2>&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; } &&
7656 { ac_try='test -s conftest$ac_exeext'
7657 { (case "(($ac_try" in
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662 (eval "$ac_try") 2>&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; }; then
7666 llvm_cv_link_use_r=yes
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7671 llvm_cv_link_use_r=no
7674 rm -f core conftest.err conftest.$ac_objext \
7675 conftest$ac_exeext conftest.$ac_ext
7678 ac_cpp='$CPP $CPPFLAGS'
7679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7685 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7686 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7687 if test "$llvm_cv_link_use_r" = yes ; then
7689 cat >>confdefs.h <<\_ACEOF
7690 #define HAVE_LINK_R 1
7696 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7697 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7698 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 ac_cpp='$CPP $CPPFLAGS'
7703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7708 CFLAGS="$CFLAGS -rdynamic"
7709 cat >conftest.$ac_ext <<_ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7724 rm -f conftest.$ac_objext conftest$ac_exeext
7725 if { (ac_try="$ac_link"
7727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728 *) ac_try_echo=$ac_try;;
7730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7731 (eval "$ac_link") 2>conftest.er1
7733 grep -v '^ *+' conftest.er1 >conftest.err
7735 cat conftest.err >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7739 { (case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_try") 2>&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); }; } &&
7748 { ac_try='test -s conftest$ac_exeext'
7749 { (case "(($ac_try" in
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754 (eval "$ac_try") 2>&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7758 llvm_cv_link_use_export_dynamic=yes
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7763 llvm_cv_link_use_export_dynamic=no
7766 rm -f core conftest.err conftest.$ac_objext \
7767 conftest$ac_exeext conftest.$ac_ext
7770 ac_cpp='$CPP $CPPFLAGS'
7771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7778 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7779 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7781 cat >>confdefs.h <<\_ACEOF
7782 #define HAVE_LINK_EXPORT_DYNAMIC 1
7788 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7789 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7790 if test "${llvm_cv_link_use_version_script+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 ac_cpp='$CPP $CPPFLAGS'
7795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7801 # The following code is from the autoconf manual,
7802 # "11.13: Limitations of Usual Tools".
7803 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7804 # Use mktemp if possible; otherwise fall back on mkdir,
7805 # with $RANDOM to make collisions less likely.
7809 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7811 test -n "$tmp" && test -d "$tmp"
7813 tmp=$TMPDIR/foo$$-$RANDOM
7814 (umask 077 && mkdir "$tmp")
7817 echo "{" > "$tmp/export.map"
7818 echo " global: main;" >> "$tmp/export.map"
7819 echo " local: *;" >> "$tmp/export.map"
7820 echo "};" >> "$tmp/export.map"
7822 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7823 cat >conftest.$ac_ext <<_ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h. */
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (ac_try="$ac_link"
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_link") 2>conftest.er1
7847 grep -v '^ *+' conftest.er1 >conftest.err
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } &&
7852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7853 { (case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_try") 2>&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; } &&
7862 { ac_try='test -s conftest$ac_exeext'
7863 { (case "(($ac_try" in
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868 (eval "$ac_try") 2>&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
7872 llvm_cv_link_use_version_script=yes
7874 echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7877 llvm_cv_link_use_version_script=no
7880 rm -f core conftest.err conftest.$ac_objext \
7881 conftest$ac_exeext conftest.$ac_ext
7882 rm "$tmp/export.map"
7886 ac_cpp='$CPP $CPPFLAGS'
7887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7894 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7895 if test "$llvm_cv_link_use_version_script" = yes ; then
7896 HAVE_LINK_VERSION_SCRIPT=1
7902 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7903 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7904 if test "${ac_cv_path_GREP+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 # Extract the first word of "grep ggrep" to use in msg output
7908 if test -z "$GREP"; then
7909 set dummy grep ggrep; ac_prog_name=$2
7910 if test "${ac_cv_path_GREP+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 ac_path_GREP_found=false
7914 # Loop through the user's path and test for each of PROGNAME-LIST
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7919 test -z "$as_dir" && as_dir=.
7920 for ac_prog in grep ggrep; do
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7923 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7924 # Check for GNU ac_path_GREP and select it if it is found.
7925 # Check for GNU $ac_path_GREP
7926 case `"$ac_path_GREP" --version 2>&1` in
7928 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7931 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7934 cat "conftest.in" "conftest.in" >"conftest.tmp"
7935 mv "conftest.tmp" "conftest.in"
7936 cp "conftest.in" "conftest.nl"
7937 echo 'GREP' >> "conftest.nl"
7938 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7940 ac_count=`expr $ac_count + 1`
7941 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7942 # Best one so far, save it but keep looking for a better one
7943 ac_cv_path_GREP="$ac_path_GREP"
7944 ac_path_GREP_max=$ac_count
7946 # 10*(2^10) chars as input seems more than enough
7947 test $ac_count -gt 10 && break
7949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7953 $ac_path_GREP_found && break 3
7963 GREP="$ac_cv_path_GREP"
7964 if test -z "$GREP"; then
7965 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7966 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7967 { (exit 1); exit 1; }; }
7971 ac_cv_path_GREP=$GREP
7976 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7977 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7978 GREP="$ac_cv_path_GREP"
7981 { echo "$as_me:$LINENO: checking for egrep" >&5
7982 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7983 if test "${ac_cv_path_EGREP+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7987 then ac_cv_path_EGREP="$GREP -E"
7989 # Extract the first word of "egrep" to use in msg output
7990 if test -z "$EGREP"; then
7991 set dummy egrep; ac_prog_name=$2
7992 if test "${ac_cv_path_EGREP+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 ac_path_EGREP_found=false
7996 # Loop through the user's path and test for each of PROGNAME-LIST
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8001 test -z "$as_dir" && as_dir=.
8002 for ac_prog in egrep; do
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8005 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8006 # Check for GNU ac_path_EGREP and select it if it is found.
8007 # Check for GNU $ac_path_EGREP
8008 case `"$ac_path_EGREP" --version 2>&1` in
8010 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8013 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8016 cat "conftest.in" "conftest.in" >"conftest.tmp"
8017 mv "conftest.tmp" "conftest.in"
8018 cp "conftest.in" "conftest.nl"
8019 echo 'EGREP' >> "conftest.nl"
8020 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8022 ac_count=`expr $ac_count + 1`
8023 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8024 # Best one so far, save it but keep looking for a better one
8025 ac_cv_path_EGREP="$ac_path_EGREP"
8026 ac_path_EGREP_max=$ac_count
8028 # 10*(2^10) chars as input seems more than enough
8029 test $ac_count -gt 10 && break
8031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8035 $ac_path_EGREP_found && break 3
8045 EGREP="$ac_cv_path_EGREP"
8046 if test -z "$EGREP"; then
8047 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8048 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8049 { (exit 1); exit 1; }; }
8053 ac_cv_path_EGREP=$EGREP
8059 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8060 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8061 EGREP="$ac_cv_path_EGREP"
8064 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8065 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8066 if test "${ac_cv_header_stdc+set}" = set; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8069 cat >conftest.$ac_ext <<_ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8088 rm -f conftest.$ac_objext
8089 if { (ac_try="$ac_compile"
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095 (eval "$ac_compile") 2>conftest.er1
8097 grep -v '^ *+' conftest.er1 >conftest.err
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } &&
8102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8103 { (case "(($ac_try" in
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_try") 2>&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; } &&
8112 { ac_try='test -s conftest.$ac_objext'
8113 { (case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_try") 2>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 ac_cv_header_stdc=yes
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8127 ac_cv_header_stdc=no
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 if test $ac_cv_header_stdc = yes; then
8133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8144 $EGREP "memchr" >/dev/null 2>&1; then
8147 ac_cv_header_stdc=no
8153 if test $ac_cv_header_stdc = yes; then
8154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8155 cat >conftest.$ac_ext <<_ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8165 $EGREP "free" >/dev/null 2>&1; then
8168 ac_cv_header_stdc=no
8174 if test $ac_cv_header_stdc = yes; then
8175 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8176 if test "$cross_compiling" = yes; then
8179 cat >conftest.$ac_ext <<_ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8187 #if ((' ' & 0x0FF) == 0x020)
8188 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8189 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8191 # define ISLOWER(c) \
8192 (('a' <= (c) && (c) <= 'i') \
8193 || ('j' <= (c) && (c) <= 'r') \
8194 || ('s' <= (c) && (c) <= 'z'))
8195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8203 for (i = 0; i < 256; i++)
8204 if (XOR (islower (i), ISLOWER (i))
8205 || toupper (i) != TOUPPER (i))
8210 rm -f conftest$ac_exeext
8211 if { (ac_try="$ac_link"
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217 (eval "$ac_link") 2>&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8221 { (case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_try") 2>&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8232 echo "$as_me: program exited with status $ac_status" >&5
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8237 ac_cv_header_stdc=no
8239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8245 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8246 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8247 if test $ac_cv_header_stdc = yes; then
8249 cat >>confdefs.h <<\_ACEOF
8250 #define STDC_HEADERS 1
8255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8265 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8266 inttypes.h stdint.h unistd.h
8268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 cat >conftest.$ac_ext <<_ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8280 $ac_includes_default
8282 #include <$ac_header>
8284 rm -f conftest.$ac_objext
8285 if { (ac_try="$ac_compile"
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_compile") 2>conftest.er1
8293 grep -v '^ *+' conftest.er1 >conftest.err
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8299 { (case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_try") 2>&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; } &&
8308 { ac_try='test -s conftest.$ac_objext'
8309 { (case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_try") 2>&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 eval "$as_ac_Header=yes"
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 eval "$as_ac_Header=no"
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 ac_res=`eval echo '${'$as_ac_Header'}'`
8329 { echo "$as_me:$LINENO: result: $ac_res" >&5
8330 echo "${ECHO_T}$ac_res" >&6; }
8331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8332 cat >>confdefs.h <<_ACEOF
8333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8342 for ac_header in errno.h
8344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 ac_res=`eval echo '${'$as_ac_Header'}'`
8352 { echo "$as_me:$LINENO: result: $ac_res" >&5
8353 echo "${ECHO_T}$ac_res" >&6; }
8355 # Is the header compilable?
8356 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8358 cat >conftest.$ac_ext <<_ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 $ac_includes_default
8365 #include <$ac_header>
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_compile") 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8382 { (case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_try") 2>&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest.$ac_objext'
8392 { (case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_try") 2>&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 ac_header_compiler=yes
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8406 ac_header_compiler=no
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8411 echo "${ECHO_T}$ac_header_compiler" >&6; }
8413 # Is the header present?
8414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8416 cat >conftest.$ac_ext <<_ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8422 #include <$ac_header>
8424 if { (ac_try="$ac_cpp conftest.$ac_ext"
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8432 grep -v '^ *+' conftest.er1 >conftest.err
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } >/dev/null; then
8437 if test -s conftest.err; then
8438 ac_cpp_err=$ac_c_preproc_warn_flag
8439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8446 if test -z "$ac_cpp_err"; then
8447 ac_header_preproc=yes
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 ac_header_preproc=no
8455 rm -f conftest.err conftest.$ac_ext
8456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8457 echo "${ECHO_T}$ac_header_preproc" >&6; }
8459 # So? What about this header?
8460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8466 ac_header_preproc=yes
8469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8482 ## ------------------------------------ ##
8483 ## Report this to http://llvm.org/bugs/ ##
8484 ## ------------------------------------ ##
8486 ) | sed "s/^/$as_me: WARNING: /" >&2
8489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 eval "$as_ac_Header=\$ac_header_preproc"
8496 ac_res=`eval echo '${'$as_ac_Header'}'`
8497 { echo "$as_me:$LINENO: result: $ac_res" >&5
8498 echo "${ECHO_T}$ac_res" >&6; }
8501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8502 cat >>confdefs.h <<_ACEOF
8503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8511 case "$llvm_cv_os_type" in
8512 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8513 Darwin) llvm_shlib_ext=.dylib ;;
8514 *) llvm_shlib_ext=.so ;;
8518 cat >>confdefs.h <<_ACEOF
8519 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8523 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8524 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8537 if test "$GCC" != "yes" && test "$ICC" != "yes"
8539 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8540 echo "$as_me: error: gcc|icc required but not found" >&2;}
8541 { (exit 1); exit 1; }; }
8544 if test "$GXX" != "yes" && test "$IXX" != "yes"
8546 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8547 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8548 { (exit 1); exit 1; }; }
8551 if test "$GCC" = "yes"
8553 cat >conftest.$ac_ext <<_ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8561 #if !defined(__GNUC__) || __GNUC__ < 3
8562 #error Unsupported GCC version
8567 rm -f conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_compile") 2>conftest.er1
8576 grep -v '^ *+' conftest.er1 >conftest.err
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582 { (case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_try") 2>&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest.$ac_objext'
8592 { (case "(($ac_try" in
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_try") 2>&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8607 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8608 { (exit 1); exit 1; }; }
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 if test -z "$llvm_cv_gnu_make_command"
8616 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8617 echo "$as_me: error: GNU Make required but not found" >&2;}
8618 { (exit 1); exit 1; }; }
8621 { echo "$as_me:$LINENO: result: ok" >&5
8622 echo "${ECHO_T}ok" >&6; }
8624 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8625 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8626 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8628 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8630 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8634 NO_MAYBE_UNINITIALIZED=
8635 if test "$GXX" = "yes"
8637 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8639 if test -z "$NO_MAYBE_UNINITIALIZED"
8641 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8645 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8646 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8649 # Check whether --with-python was given.
8650 if test "${with_python+set}" = set; then
8651 withval=$with_python; PYTHON="$withval"
8655 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8656 { echo "$as_me:$LINENO: checking for python" >&5
8657 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8658 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8659 echo "${ECHO_T}user defined: $with_python" >&6; }
8661 if test -n "$PYTHON" ; then
8662 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8663 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8666 # Extract the first word of "python python2 python26", so it can be a program name with args.
8667 set dummy python python2 python26; ac_word=$2
8668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8670 if test "${ac_cv_path_PYTHON+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682 test -z "$as_dir" && as_dir=.
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8685 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8693 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8694 echo "${ECHO_T}not found" >&6; }
8695 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8696 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8697 { (exit 1); exit 1; }; }"
8701 PYTHON=$ac_cv_path_PYTHON
8702 if test -n "$PYTHON"; then
8703 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8704 echo "${ECHO_T}$PYTHON" >&6; }
8706 { echo "$as_me:$LINENO: result: no" >&5
8707 echo "${ECHO_T}no" >&6; }
8713 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8714 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8715 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8716 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8717 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8718 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8719 if test "$ac_python_version_major" -gt "2" || \
8720 (test "$ac_python_version_major" -eq "2" && \
8721 test "$ac_python_version_minor" -ge "5") ; then
8722 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8723 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8725 { echo "$as_me:$LINENO: result: not found" >&5
8726 echo "${ECHO_T}not found" >&6; }
8727 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8728 See \`config.log' for more details." >&5
8729 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8730 See \`config.log' for more details." >&2;}
8731 { (exit 1); exit 1; }; }
8736 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8737 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8738 if test "${ac_cv_lib_m_sin+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 ac_check_lib_save_LIBS=$LIBS
8743 cat >conftest.$ac_ext <<_ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8750 /* Override any GCC internal prototype to avoid an error.
8751 Use char because int might match the return type of a GCC
8752 builtin and then its argument prototype would still apply. */
8765 rm -f conftest.$ac_objext conftest$ac_exeext
8766 if { (ac_try="$ac_link"
8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772 (eval "$ac_link") 2>conftest.er1
8774 grep -v '^ *+' conftest.er1 >conftest.err
8776 cat conftest.err >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } &&
8779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8780 { (case "(($ac_try" in
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_try") 2>&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; } &&
8789 { ac_try='test -s conftest$ac_exeext'
8790 { (case "(($ac_try" in
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_try") 2>&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8807 rm -f core conftest.err conftest.$ac_objext \
8808 conftest$ac_exeext conftest.$ac_ext
8809 LIBS=$ac_check_lib_save_LIBS
8811 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8812 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8813 if test $ac_cv_lib_m_sin = yes; then
8814 cat >>confdefs.h <<_ACEOF
8822 if test "$llvm_cv_os_type" = "MingW" ; then
8824 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8825 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8826 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 ac_check_lib_save_LIBS=$LIBS
8830 LIBS="-limagehlp $LIBS"
8831 cat >conftest.$ac_ext <<_ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8847 rm -f conftest.$ac_objext conftest$ac_exeext
8848 if { (ac_try="$ac_link"
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_link") 2>conftest.er1
8856 grep -v '^ *+' conftest.er1 >conftest.err
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8862 { (case "(($ac_try" in
8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867 (eval "$ac_try") 2>&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; } &&
8871 { ac_try='test -s conftest$ac_exeext'
8872 { (case "(($ac_try" in
8873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874 *) ac_try_echo=$ac_try;;
8876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877 (eval "$ac_try") 2>&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_cv_lib_imagehlp_main=yes
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8886 ac_cv_lib_imagehlp_main=no
8889 rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8891 LIBS=$ac_check_lib_save_LIBS
8893 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8894 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8895 if test $ac_cv_lib_imagehlp_main = yes; then
8896 cat >>confdefs.h <<_ACEOF
8897 #define HAVE_LIBIMAGEHLP 1
8900 LIBS="-limagehlp $LIBS"
8905 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8906 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8907 if test "${ac_cv_lib_psapi_main+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 ac_check_lib_save_LIBS=$LIBS
8911 LIBS="-lpsapi $LIBS"
8912 cat >conftest.$ac_ext <<_ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935 (eval "$ac_link") 2>conftest.er1
8937 grep -v '^ *+' conftest.er1 >conftest.err
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8943 { (case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_try") 2>&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try='test -s conftest$ac_exeext'
8953 { (case "(($ac_try" in
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958 (eval "$ac_try") 2>&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 ac_cv_lib_psapi_main=yes
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 ac_cv_lib_psapi_main=no
8970 rm -f core conftest.err conftest.$ac_objext \
8971 conftest$ac_exeext conftest.$ac_ext
8972 LIBS=$ac_check_lib_save_LIBS
8974 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8975 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8976 if test $ac_cv_lib_psapi_main = yes; then
8977 cat >>confdefs.h <<_ACEOF
8978 #define HAVE_LIBPSAPI 1
8981 LIBS="-lpsapi $LIBS"
8986 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8987 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8988 if test "${ac_cv_lib_shell32_main+set}" = set; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8991 ac_check_lib_save_LIBS=$LIBS
8992 LIBS="-lshell32 $LIBS"
8993 cat >conftest.$ac_ext <<_ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
9009 rm -f conftest.$ac_objext conftest$ac_exeext
9010 if { (ac_try="$ac_link"
9012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013 *) ac_try_echo=$ac_try;;
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016 (eval "$ac_link") 2>conftest.er1
9018 grep -v '^ *+' conftest.er1 >conftest.err
9020 cat conftest.err >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } &&
9023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9024 { (case "(($ac_try" in
9025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026 *) ac_try_echo=$ac_try;;
9028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9029 (eval "$ac_try") 2>&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; } &&
9033 { ac_try='test -s conftest$ac_exeext'
9034 { (case "(($ac_try" in
9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039 (eval "$ac_try") 2>&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; }; then
9043 ac_cv_lib_shell32_main=yes
9045 echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9048 ac_cv_lib_shell32_main=no
9051 rm -f core conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
9053 LIBS=$ac_check_lib_save_LIBS
9055 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
9056 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
9057 if test $ac_cv_lib_shell32_main = yes; then
9058 cat >>confdefs.h <<_ACEOF
9059 #define HAVE_LIBSHELL32 1
9062 LIBS="-lshell32 $LIBS"
9068 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9069 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9070 if test "${ac_cv_search_dlopen+set}" = set; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 ac_func_search_save_LIBS=$LIBS
9074 cat >conftest.$ac_ext <<_ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9081 /* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
9096 for ac_lib in '' dl; do
9097 if test -z "$ac_lib"; then
9098 ac_res="none required"
9101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9103 rm -f conftest.$ac_objext conftest$ac_exeext
9104 if { (ac_try="$ac_link"
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110 (eval "$ac_link") 2>conftest.er1
9112 grep -v '^ *+' conftest.er1 >conftest.err
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9118 { (case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_try") 2>&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (case "(($ac_try" in
9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133 (eval "$ac_try") 2>&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_search_dlopen=$ac_res
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9145 rm -f core conftest.err conftest.$ac_objext \
9147 if test "${ac_cv_search_dlopen+set}" = set; then
9151 if test "${ac_cv_search_dlopen+set}" = set; then
9154 ac_cv_search_dlopen=no
9157 LIBS=$ac_func_search_save_LIBS
9159 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9160 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9161 ac_res=$ac_cv_search_dlopen
9162 if test "$ac_res" != no; then
9163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9166 cat >>confdefs.h <<\_ACEOF
9167 #define HAVE_DLOPEN 1
9174 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9175 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9179 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9180 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9181 if test "${ac_cv_search_clock_gettime+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 ac_func_search_save_LIBS=$LIBS
9185 cat >conftest.$ac_ext <<_ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9192 /* Override any GCC internal prototype to avoid an error.
9193 Use char because int might match the return type of a GCC
9194 builtin and then its argument prototype would still apply. */
9198 char clock_gettime ();
9202 return clock_gettime ();
9207 for ac_lib in '' rt; do
9208 if test -z "$ac_lib"; then
9209 ac_res="none required"
9212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9214 rm -f conftest.$ac_objext conftest$ac_exeext
9215 if { (ac_try="$ac_link"
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_link") 2>conftest.er1
9223 grep -v '^ *+' conftest.er1 >conftest.err
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } &&
9228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9229 { (case "(($ac_try" in
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_try") 2>&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; } &&
9238 { ac_try='test -s conftest$ac_exeext'
9239 { (case "(($ac_try" in
9240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241 *) ac_try_echo=$ac_try;;
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244 (eval "$ac_try") 2>&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 ac_cv_search_clock_gettime=$ac_res
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9256 rm -f core conftest.err conftest.$ac_objext \
9258 if test "${ac_cv_search_clock_gettime+set}" = set; then
9262 if test "${ac_cv_search_clock_gettime+set}" = set; then
9265 ac_cv_search_clock_gettime=no
9268 LIBS=$ac_func_search_save_LIBS
9270 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9271 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9272 ac_res=$ac_cv_search_clock_gettime
9273 if test "$ac_res" != no; then
9274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9279 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9280 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9281 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9282 if test "${ac_cv_search_setupterm+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 ac_func_search_save_LIBS=$LIBS
9286 cat >conftest.$ac_ext <<_ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9293 /* Override any GCC internal prototype to avoid an error.
9294 Use char because int might match the return type of a GCC
9295 builtin and then its argument prototype would still apply. */
9303 return setupterm ();
9308 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9309 if test -z "$ac_lib"; then
9310 ac_res="none required"
9313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9315 rm -f conftest.$ac_objext conftest$ac_exeext
9316 if { (ac_try="$ac_link"
9318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319 *) ac_try_echo=$ac_try;;
9321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9322 (eval "$ac_link") 2>conftest.er1
9324 grep -v '^ *+' conftest.er1 >conftest.err
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } &&
9329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9330 { (case "(($ac_try" in
9331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332 *) ac_try_echo=$ac_try;;
9334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9335 (eval "$ac_try") 2>&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; } &&
9339 { ac_try='test -s conftest$ac_exeext'
9340 { (case "(($ac_try" in
9341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342 *) ac_try_echo=$ac_try;;
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345 (eval "$ac_try") 2>&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; }; then
9349 ac_cv_search_setupterm=$ac_res
9351 echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9357 rm -f core conftest.err conftest.$ac_objext \
9359 if test "${ac_cv_search_setupterm+set}" = set; then
9363 if test "${ac_cv_search_setupterm+set}" = set; then
9366 ac_cv_search_setupterm=no
9369 LIBS=$ac_func_search_save_LIBS
9371 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9372 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9373 ac_res=$ac_cv_search_setupterm
9374 if test "$ac_res" != no; then
9375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_TERMINFO 1
9389 if test "$llvm_cv_enable_libedit" = "yes" ; then
9390 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9391 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9392 if test "${ac_cv_search_el_init+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 ac_func_search_save_LIBS=$LIBS
9396 cat >conftest.$ac_ext <<_ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9403 /* Override any GCC internal prototype to avoid an error.
9404 Use char because int might match the return type of a GCC
9405 builtin and then its argument prototype would still apply. */
9418 for ac_lib in '' edit; do
9419 if test -z "$ac_lib"; then
9420 ac_res="none required"
9423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9425 rm -f conftest.$ac_objext conftest$ac_exeext
9426 if { (ac_try="$ac_link"
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9432 (eval "$ac_link") 2>conftest.er1
9434 grep -v '^ *+' conftest.er1 >conftest.err
9436 cat conftest.err >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } &&
9439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9440 { (case "(($ac_try" in
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_try") 2>&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; } &&
9449 { ac_try='test -s conftest$ac_exeext'
9450 { (case "(($ac_try" in
9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452 *) ac_try_echo=$ac_try;;
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455 (eval "$ac_try") 2>&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; }; then
9459 ac_cv_search_el_init=$ac_res
9461 echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9467 rm -f core conftest.err conftest.$ac_objext \
9469 if test "${ac_cv_search_el_init+set}" = set; then
9473 if test "${ac_cv_search_el_init+set}" = set; then
9476 ac_cv_search_el_init=no
9479 LIBS=$ac_func_search_save_LIBS
9481 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9482 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9483 ac_res=$ac_cv_search_el_init
9484 if test "$ac_res" != no; then
9485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9487 cat >>confdefs.h <<\_ACEOF
9488 #define HAVE_LIBEDIT 1
9495 if test "$llvm_cv_enable_libffi" = "yes" ; then
9496 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9497 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9498 if test "${ac_cv_search_ffi_call+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 ac_func_search_save_LIBS=$LIBS
9502 cat >conftest.$ac_ext <<_ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h. */
9509 /* Override any GCC internal prototype to avoid an error.
9510 Use char because int might match the return type of a GCC
9511 builtin and then its argument prototype would still apply. */
9524 for ac_lib in '' ffi; do
9525 if test -z "$ac_lib"; then
9526 ac_res="none required"
9529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9531 rm -f conftest.$ac_objext conftest$ac_exeext
9532 if { (ac_try="$ac_link"
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_link") 2>conftest.er1
9540 grep -v '^ *+' conftest.er1 >conftest.err
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9546 { (case "(($ac_try" in
9547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_try") 2>&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; } &&
9555 { ac_try='test -s conftest$ac_exeext'
9556 { (case "(($ac_try" in
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_try") 2>&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }; then
9565 ac_cv_search_ffi_call=$ac_res
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9573 rm -f core conftest.err conftest.$ac_objext \
9575 if test "${ac_cv_search_ffi_call+set}" = set; then
9579 if test "${ac_cv_search_ffi_call+set}" = set; then
9582 ac_cv_search_ffi_call=no
9585 LIBS=$ac_func_search_save_LIBS
9587 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9588 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9589 ac_res=$ac_cv_search_ffi_call
9590 if test "$ac_res" != no; then
9591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9593 cat >>confdefs.h <<\_ACEOF
9594 #define HAVE_FFI_CALL 1
9598 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9599 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9600 { (exit 1); exit 1; }; }
9605 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9606 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9607 if test "${ac_cv_search_mallinfo+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 ac_func_search_save_LIBS=$LIBS
9611 cat >conftest.$ac_ext <<_ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9618 /* Override any GCC internal prototype to avoid an error.
9619 Use char because int might match the return type of a GCC
9620 builtin and then its argument prototype would still apply. */
9633 for ac_lib in '' malloc; do
9634 if test -z "$ac_lib"; then
9635 ac_res="none required"
9638 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9640 rm -f conftest.$ac_objext conftest$ac_exeext
9641 if { (ac_try="$ac_link"
9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644 *) ac_try_echo=$ac_try;;
9646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9647 (eval "$ac_link") 2>conftest.er1
9649 grep -v '^ *+' conftest.er1 >conftest.err
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9655 { (case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_try") 2>&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; } &&
9664 { ac_try='test -s conftest$ac_exeext'
9665 { (case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_try") 2>&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 ac_cv_search_mallinfo=$ac_res
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9682 rm -f core conftest.err conftest.$ac_objext \
9684 if test "${ac_cv_search_mallinfo+set}" = set; then
9688 if test "${ac_cv_search_mallinfo+set}" = set; then
9691 ac_cv_search_mallinfo=no
9694 LIBS=$ac_func_search_save_LIBS
9696 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9697 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9698 ac_res=$ac_cv_search_mallinfo
9699 if test "$ac_res" != no; then
9700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9702 cat >>confdefs.h <<\_ACEOF
9703 #define HAVE_MALLINFO 1
9709 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9711 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9712 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9713 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 ac_check_lib_save_LIBS=$LIBS
9717 LIBS="-lpthread $LIBS"
9718 cat >conftest.$ac_ext <<_ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9725 /* Override any GCC internal prototype to avoid an error.
9726 Use char because int might match the return type of a GCC
9727 builtin and then its argument prototype would still apply. */
9731 char pthread_mutex_init ();
9735 return pthread_mutex_init ();
9740 rm -f conftest.$ac_objext conftest$ac_exeext
9741 if { (ac_try="$ac_link"
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747 (eval "$ac_link") 2>conftest.er1
9749 grep -v '^ *+' conftest.er1 >conftest.err
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755 { (case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_try") 2>&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; } &&
9764 { ac_try='test -s conftest$ac_exeext'
9765 { (case "(($ac_try" in
9766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767 *) ac_try_echo=$ac_try;;
9769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770 (eval "$ac_try") 2>&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; }; then
9774 ac_cv_lib_pthread_pthread_mutex_init=yes
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9779 ac_cv_lib_pthread_pthread_mutex_init=no
9782 rm -f core conftest.err conftest.$ac_objext \
9783 conftest$ac_exeext conftest.$ac_ext
9784 LIBS=$ac_check_lib_save_LIBS
9786 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9787 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9788 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9789 cat >>confdefs.h <<_ACEOF
9790 #define HAVE_LIBPTHREAD 1
9793 LIBS="-lpthread $LIBS"
9797 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9798 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9799 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 ac_func_search_save_LIBS=$LIBS
9803 cat >conftest.$ac_ext <<_ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9810 /* Override any GCC internal prototype to avoid an error.
9811 Use char because int might match the return type of a GCC
9812 builtin and then its argument prototype would still apply. */
9816 char pthread_mutex_lock ();
9820 return pthread_mutex_lock ();
9825 for ac_lib in '' pthread; do
9826 if test -z "$ac_lib"; then
9827 ac_res="none required"
9830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (ac_try="$ac_link"
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_link") 2>conftest.er1
9841 grep -v '^ *+' conftest.er1 >conftest.err
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9847 { (case "(($ac_try" in
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_try") 2>&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; } &&
9856 { ac_try='test -s conftest$ac_exeext'
9857 { (case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_try") 2>&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 ac_cv_search_pthread_mutex_lock=$ac_res
9868 echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9874 rm -f core conftest.err conftest.$ac_objext \
9876 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9880 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9883 ac_cv_search_pthread_mutex_lock=no
9886 LIBS=$ac_func_search_save_LIBS
9888 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9889 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9890 ac_res=$ac_cv_search_pthread_mutex_lock
9891 if test "$ac_res" != no; then
9892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_PTHREAD_MUTEX_LOCK 1
9900 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9901 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9902 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 ac_func_search_save_LIBS=$LIBS
9906 cat >conftest.$ac_ext <<_ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9913 /* Override any GCC internal prototype to avoid an error.
9914 Use char because int might match the return type of a GCC
9915 builtin and then its argument prototype would still apply. */
9919 char pthread_rwlock_init ();
9923 return pthread_rwlock_init ();
9928 for ac_lib in '' pthread; do
9929 if test -z "$ac_lib"; then
9930 ac_res="none required"
9933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (ac_try="$ac_link"
9938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939 *) ac_try_echo=$ac_try;;
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942 (eval "$ac_link") 2>conftest.er1
9944 grep -v '^ *+' conftest.er1 >conftest.err
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9950 { (case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_try") 2>&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; } &&
9959 { ac_try='test -s conftest$ac_exeext'
9960 { (case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_try") 2>&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
9969 ac_cv_search_pthread_rwlock_init=$ac_res
9971 echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9977 rm -f core conftest.err conftest.$ac_objext \
9979 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9983 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9986 ac_cv_search_pthread_rwlock_init=no
9989 LIBS=$ac_func_search_save_LIBS
9991 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9992 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9993 ac_res=$ac_cv_search_pthread_rwlock_init
9994 if test "$ac_res" != no; then
9995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9997 cat >>confdefs.h <<\_ACEOF
9998 #define HAVE_PTHREAD_RWLOCK_INIT 1
10003 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
10004 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
10005 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 ac_func_search_save_LIBS=$LIBS
10009 cat >conftest.$ac_ext <<_ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10016 /* Override any GCC internal prototype to avoid an error.
10017 Use char because int might match the return type of a GCC
10018 builtin and then its argument prototype would still apply. */
10022 char pthread_getspecific ();
10026 return pthread_getspecific ();
10031 for ac_lib in '' pthread; do
10032 if test -z "$ac_lib"; then
10033 ac_res="none required"
10036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (ac_try="$ac_link"
10040 case "(($ac_try" in
10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_link") 2>conftest.er1
10047 grep -v '^ *+' conftest.er1 >conftest.err
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053 { (case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_try") 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest$ac_exeext'
10063 { (case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_try") 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_cv_search_pthread_getspecific=$ac_res
10074 echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10080 rm -f core conftest.err conftest.$ac_objext \
10082 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10086 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10089 ac_cv_search_pthread_getspecific=no
10091 rm conftest.$ac_ext
10092 LIBS=$ac_func_search_save_LIBS
10094 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10095 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
10096 ac_res=$ac_cv_search_pthread_getspecific
10097 if test "$ac_res" != no; then
10098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10100 cat >>confdefs.h <<\_ACEOF
10101 #define HAVE_PTHREAD_GETSPECIFIC 1
10108 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10110 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10111 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10112 if test "${ac_cv_lib_z_compress2+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 ac_check_lib_save_LIBS=$LIBS
10117 cat >conftest.$ac_ext <<_ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10124 /* Override any GCC internal prototype to avoid an error.
10125 Use char because int might match the return type of a GCC
10126 builtin and then its argument prototype would still apply. */
10134 return compress2 ();
10139 rm -f conftest.$ac_objext conftest$ac_exeext
10140 if { (ac_try="$ac_link"
10141 case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_link") 2>conftest.er1
10148 grep -v '^ *+' conftest.er1 >conftest.err
10150 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } &&
10153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10154 { (case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_try") 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; } &&
10163 { ac_try='test -s conftest$ac_exeext'
10164 { (case "(($ac_try" in
10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169 (eval "$ac_try") 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; }; then
10173 ac_cv_lib_z_compress2=yes
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178 ac_cv_lib_z_compress2=no
10181 rm -f core conftest.err conftest.$ac_objext \
10182 conftest$ac_exeext conftest.$ac_ext
10183 LIBS=$ac_check_lib_save_LIBS
10185 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10186 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10187 if test $ac_cv_lib_z_compress2 = yes; then
10188 cat >>confdefs.h <<_ACEOF
10189 #define HAVE_LIBZ 1
10199 # Check whether --with-udis86 was given.
10200 if test "${with_udis86+set}" = set; then
10201 withval=$with_udis86;
10206 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10209 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
10210 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
10211 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 ac_check_lib_save_LIBS=$LIBS
10215 LIBS="-ludis86 $LIBS"
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10223 /* Override any GCC internal prototype to avoid an error.
10224 Use char because int might match the return type of a GCC
10225 builtin and then its argument prototype would still apply. */
10238 rm -f conftest.$ac_objext conftest$ac_exeext
10239 if { (ac_try="$ac_link"
10240 case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_link") 2>conftest.er1
10247 grep -v '^ *+' conftest.er1 >conftest.err
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } &&
10252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10253 { (case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_try") 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; } &&
10262 { ac_try='test -s conftest$ac_exeext'
10263 { (case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_try") 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; }; then
10272 ac_cv_lib_udis86_ud_init=yes
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ac_cv_lib_udis86_ud_init=no
10280 rm -f core conftest.err conftest.$ac_objext \
10281 conftest$ac_exeext conftest.$ac_ext
10282 LIBS=$ac_check_lib_save_LIBS
10284 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
10285 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
10286 if test $ac_cv_lib_udis86_ud_init = yes; then
10287 cat >>confdefs.h <<_ACEOF
10288 #define HAVE_LIBUDIS86 1
10291 LIBS="-ludis86 $LIBS"
10295 echo "Error! You need to have libudis86 around."
10307 cat >>confdefs.h <<_ACEOF
10308 #define USE_UDIS86 $USE_UDIS86
10313 # Check whether --with-oprofile was given.
10314 if test "${with_oprofile+set}" = set; then
10315 withval=$with_oprofile;
10319 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10320 no) llvm_cv_oppath=
10323 *) llvm_cv_oppath="${withval}/lib/oprofile"
10324 CPPFLAGS="-I${withval}/include";;
10326 case $llvm_cv_os_type in
10328 if test -n "$llvm_cv_oppath" ; then
10329 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10330 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10331 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10332 if test "${ac_cv_search_bfd_init+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 ac_func_search_save_LIBS=$LIBS
10336 cat >conftest.$ac_ext <<_ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10343 /* Override any GCC internal prototype to avoid an error.
10344 Use char because int might match the return type of a GCC
10345 builtin and then its argument prototype would still apply. */
10353 return bfd_init ();
10358 for ac_lib in '' bfd; do
10359 if test -z "$ac_lib"; then
10360 ac_res="none required"
10363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10365 rm -f conftest.$ac_objext conftest$ac_exeext
10366 if { (ac_try="$ac_link"
10367 case "(($ac_try" in
10368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369 *) ac_try_echo=$ac_try;;
10371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10372 (eval "$ac_link") 2>conftest.er1
10374 grep -v '^ *+' conftest.er1 >conftest.err
10376 cat conftest.err >&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } &&
10379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10380 { (case "(($ac_try" in
10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382 *) ac_try_echo=$ac_try;;
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_try") 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; } &&
10389 { ac_try='test -s conftest$ac_exeext'
10390 { (case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_try") 2>&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10399 ac_cv_search_bfd_init=$ac_res
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10407 rm -f core conftest.err conftest.$ac_objext \
10409 if test "${ac_cv_search_bfd_init+set}" = set; then
10413 if test "${ac_cv_search_bfd_init+set}" = set; then
10416 ac_cv_search_bfd_init=no
10418 rm conftest.$ac_ext
10419 LIBS=$ac_func_search_save_LIBS
10421 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10422 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10423 ac_res=$ac_cv_search_bfd_init
10424 if test "$ac_res" != no; then
10425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10429 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10430 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10431 if test "${ac_cv_search_op_open_agent+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 ac_func_search_save_LIBS=$LIBS
10435 cat >conftest.$ac_ext <<_ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10442 /* Override any GCC internal prototype to avoid an error.
10443 Use char because int might match the return type of a GCC
10444 builtin and then its argument prototype would still apply. */
10448 char op_open_agent ();
10452 return op_open_agent ();
10457 for ac_lib in '' opagent; do
10458 if test -z "$ac_lib"; then
10459 ac_res="none required"
10462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (ac_try="$ac_link"
10466 case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_link") 2>conftest.er1
10473 grep -v '^ *+' conftest.er1 >conftest.err
10475 cat conftest.err >&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } &&
10478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10479 { (case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_try") 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; } &&
10488 { ac_try='test -s conftest$ac_exeext'
10489 { (case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_try") 2>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; }; then
10498 ac_cv_search_op_open_agent=$ac_res
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10506 rm -f core conftest.err conftest.$ac_objext \
10508 if test "${ac_cv_search_op_open_agent+set}" = set; then
10512 if test "${ac_cv_search_op_open_agent+set}" = set; then
10515 ac_cv_search_op_open_agent=no
10517 rm conftest.$ac_ext
10518 LIBS=$ac_func_search_save_LIBS
10520 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10521 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10522 ac_res=$ac_cv_search_op_open_agent
10523 if test "$ac_res" != no; then
10524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10528 echo "Error! You need to have libopagent around."
10533 if test "${ac_cv_header_opagent_h+set}" = set; then
10534 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10535 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10536 if test "${ac_cv_header_opagent_h+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10540 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10542 # Is the header compilable?
10543 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10544 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10545 cat >conftest.$ac_ext <<_ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10551 $ac_includes_default
10552 #include <opagent.h>
10554 rm -f conftest.$ac_objext
10555 if { (ac_try="$ac_compile"
10556 case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_compile") 2>conftest.er1
10563 grep -v '^ *+' conftest.er1 >conftest.err
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10569 { (case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_try") 2>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; } &&
10578 { ac_try='test -s conftest.$ac_objext'
10579 { (case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_try") 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_header_compiler=yes
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 ac_header_compiler=no
10596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10598 echo "${ECHO_T}$ac_header_compiler" >&6; }
10600 # Is the header present?
10601 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10602 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10603 cat >conftest.$ac_ext <<_ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 #include <opagent.h>
10611 if { (ac_try="$ac_cpp conftest.$ac_ext"
10612 case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10619 grep -v '^ *+' conftest.er1 >conftest.err
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } >/dev/null; then
10624 if test -s conftest.err; then
10625 ac_cpp_err=$ac_c_preproc_warn_flag
10626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10633 if test -z "$ac_cpp_err"; then
10634 ac_header_preproc=yes
10636 echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10639 ac_header_preproc=no
10642 rm -f conftest.err conftest.$ac_ext
10643 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10644 echo "${ECHO_T}$ac_header_preproc" >&6; }
10646 # So? What about this header?
10647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10649 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10650 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10651 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10652 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10653 ac_header_preproc=yes
10656 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10657 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10659 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10661 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10663 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10665 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10667 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10669 ## ------------------------------------ ##
10670 ## Report this to http://llvm.org/bugs/ ##
10671 ## ------------------------------------ ##
10673 ) | sed "s/^/$as_me: WARNING: /" >&2
10676 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10677 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10678 if test "${ac_cv_header_opagent_h+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 ac_cv_header_opagent_h=$ac_header_preproc
10683 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10684 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10687 if test $ac_cv_header_opagent_h = yes; then
10691 echo "Error! You need to have opagent.h around."
10699 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10700 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10701 { (exit 1); exit 1; }; } ;;
10712 cat >>confdefs.h <<_ACEOF
10713 #define LLVM_USE_OPROFILE $USE_OPROFILE
10718 # Check whether --with-intel-jitevents was given.
10719 if test "${with_intel_jitevents+set}" = set; then
10720 withval=$with_intel_jitevents;
10722 yes) USE_INTEL_JITEVENTS=1
10724 no) USE_INTEL_JITEVENTS=0
10726 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10727 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10728 { (exit 1); exit 1; }; };;
10731 case $llvm_cv_os_type in
10732 Linux|Win32|Cygwin|MingW) ;;
10733 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10734 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10735 { (exit 1); exit 1; }; };;
10738 case "$llvm_cv_target_arch" in
10740 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10741 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10742 { (exit 1); exit 1; }; };;
10747 USE_INTEL_JITEVENTS=0
10753 cat >>confdefs.h <<_ACEOF
10754 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10758 for ac_prog in xml2-config
10760 # Extract the first word of "$ac_prog", so it can be a program name with args.
10761 set dummy $ac_prog; ac_word=$2
10762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10764 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 if test -n "$XML2CONFIG"; then
10768 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771 for as_dir in $PATH
10774 test -z "$as_dir" && as_dir=.
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10777 ac_cv_prog_XML2CONFIG="$ac_prog"
10778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10787 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10788 if test -n "$XML2CONFIG"; then
10789 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10790 echo "${ECHO_T}$XML2CONFIG" >&6; }
10792 { echo "$as_me:$LINENO: result: no" >&5
10793 echo "${ECHO_T}no" >&6; }
10797 test -n "$XML2CONFIG" && break
10801 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10802 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10803 if test "x$XML2CONFIG" = "x"; then
10804 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10805 echo "${ECHO_T}xml2-config not found" >&6; }
10807 LIBXML2_INC=`$XML2CONFIG --cflags`
10808 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10809 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10810 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10811 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10812 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 ac_check_lib_save_LIBS=$LIBS
10816 LIBS="-lxml2 $LIBS"
10817 cat >conftest.$ac_ext <<_ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10824 /* Override any GCC internal prototype to avoid an error.
10825 Use char because int might match the return type of a GCC
10826 builtin and then its argument prototype would still apply. */
10830 char xmlReadFile ();
10834 return xmlReadFile ();
10839 rm -f conftest.$ac_objext conftest$ac_exeext
10840 if { (ac_try="$ac_link"
10841 case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_link") 2>conftest.er1
10848 grep -v '^ *+' conftest.er1 >conftest.err
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } &&
10853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10854 { (case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_try") 2>&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; } &&
10863 { ac_try='test -s conftest$ac_exeext'
10864 { (case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_try") 2>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; }; then
10873 ac_cv_lib_xml2_xmlReadFile=yes
10875 echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10878 ac_cv_lib_xml2_xmlReadFile=no
10881 rm -f core conftest.err conftest.$ac_objext \
10882 conftest$ac_exeext conftest.$ac_ext
10883 LIBS=$ac_check_lib_save_LIBS
10885 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10886 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10887 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10889 cat >>confdefs.h <<\_ACEOF
10890 #define CLANG_HAVE_LIBXML 1
10893 LIBXML2_LIBS="-lxml2"
10906 ac_header_dirent=no
10907 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10908 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10909 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10910 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 cat >conftest.$ac_ext <<_ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h. */
10920 #include <sys/types.h>
10932 rm -f conftest.$ac_objext
10933 if { (ac_try="$ac_compile"
10934 case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_compile") 2>conftest.er1
10941 grep -v '^ *+' conftest.er1 >conftest.err
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10947 { (case "(($ac_try" in
10948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949 *) ac_try_echo=$ac_try;;
10951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952 (eval "$ac_try") 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try='test -s conftest.$ac_objext'
10957 { (case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_try") 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 eval "$as_ac_Header=yes"
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 eval "$as_ac_Header=no"
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976 ac_res=`eval echo '${'$as_ac_Header'}'`
10977 { echo "$as_me:$LINENO: result: $ac_res" >&5
10978 echo "${ECHO_T}$ac_res" >&6; }
10979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10980 cat >>confdefs.h <<_ACEOF
10981 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10984 ac_header_dirent=$ac_hdr; break
10988 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10989 if test $ac_header_dirent = dirent.h; then
10990 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10991 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10992 if test "${ac_cv_search_opendir+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10995 ac_func_search_save_LIBS=$LIBS
10996 cat >conftest.$ac_ext <<_ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11003 /* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11018 for ac_lib in '' dir; do
11019 if test -z "$ac_lib"; then
11020 ac_res="none required"
11023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11025 rm -f conftest.$ac_objext conftest$ac_exeext
11026 if { (ac_try="$ac_link"
11027 case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_link") 2>conftest.er1
11034 grep -v '^ *+' conftest.er1 >conftest.err
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11040 { (case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_try") 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try='test -s conftest$ac_exeext'
11050 { (case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_try") 2>&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 ac_cv_search_opendir=$ac_res
11061 echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11067 rm -f core conftest.err conftest.$ac_objext \
11069 if test "${ac_cv_search_opendir+set}" = set; then
11073 if test "${ac_cv_search_opendir+set}" = set; then
11076 ac_cv_search_opendir=no
11078 rm conftest.$ac_ext
11079 LIBS=$ac_func_search_save_LIBS
11081 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11082 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11083 ac_res=$ac_cv_search_opendir
11084 if test "$ac_res" != no; then
11085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11090 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11091 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11092 if test "${ac_cv_search_opendir+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 ac_func_search_save_LIBS=$LIBS
11096 cat >conftest.$ac_ext <<_ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11103 /* Override any GCC internal prototype to avoid an error.
11104 Use char because int might match the return type of a GCC
11105 builtin and then its argument prototype would still apply. */
11118 for ac_lib in '' x; do
11119 if test -z "$ac_lib"; then
11120 ac_res="none required"
11123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11125 rm -f conftest.$ac_objext conftest$ac_exeext
11126 if { (ac_try="$ac_link"
11127 case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_link") 2>conftest.er1
11134 grep -v '^ *+' conftest.er1 >conftest.err
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
11139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11140 { (case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_try") 2>&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest$ac_exeext'
11150 { (case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_try") 2>&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 ac_cv_search_opendir=$ac_res
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11167 rm -f core conftest.err conftest.$ac_objext \
11169 if test "${ac_cv_search_opendir+set}" = set; then
11173 if test "${ac_cv_search_opendir+set}" = set; then
11176 ac_cv_search_opendir=no
11178 rm conftest.$ac_ext
11179 LIBS=$ac_func_search_save_LIBS
11181 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11182 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11183 ac_res=$ac_cv_search_opendir
11184 if test "$ac_res" != no; then
11185 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11191 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11192 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
11193 if test "${ac_cv_header_mmap_anon+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 ac_cpp='$CPP $CPPFLAGS'
11198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11202 cat >conftest.$ac_ext <<_ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208 #include <sys/mman.h>
11209 #include <unistd.h>
11214 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11219 rm -f conftest.$ac_objext
11220 if { (ac_try="$ac_compile"
11221 case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_compile") 2>conftest.er1
11228 grep -v '^ *+' conftest.er1 >conftest.err
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
11233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11234 { (case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_try") 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; } &&
11243 { ac_try='test -s conftest.$ac_objext'
11244 { (case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_try") 2>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_cv_header_mmap_anon=yes
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 ac_cv_header_mmap_anon=no
11261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263 ac_cpp='$CPP $CPPFLAGS'
11264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11270 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11271 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11272 if test "$ac_cv_header_mmap_anon" = yes; then
11274 cat >>confdefs.h <<\_ACEOF
11275 #define HAVE_MMAP_ANONYMOUS 1
11280 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11281 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11282 if test "${ac_cv_header_stat_broken+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 cat >conftest.$ac_ext <<_ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 #include <sys/types.h>
11292 #include <sys/stat.h>
11294 #if defined S_ISBLK && defined S_IFDIR
11295 # if S_ISBLK (S_IFDIR)
11300 #if defined S_ISBLK && defined S_IFCHR
11301 # if S_ISBLK (S_IFCHR)
11306 #if defined S_ISLNK && defined S_IFREG
11307 # if S_ISLNK (S_IFREG)
11312 #if defined S_ISSOCK && defined S_IFREG
11313 # if S_ISSOCK (S_IFREG)
11319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11320 $EGREP "You lose" >/dev/null 2>&1; then
11321 ac_cv_header_stat_broken=yes
11323 ac_cv_header_stat_broken=no
11328 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11329 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11330 if test $ac_cv_header_stat_broken = yes; then
11332 cat >>confdefs.h <<\_ACEOF
11333 #define STAT_MACROS_BROKEN 1
11338 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11339 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11340 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 cat >conftest.$ac_ext <<_ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 #include <sys/types.h>
11350 #include <sys/wait.h>
11351 #ifndef WEXITSTATUS
11352 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11355 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11363 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11368 rm -f conftest.$ac_objext
11369 if { (ac_try="$ac_compile"
11370 case "(($ac_try" in
11371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372 *) ac_try_echo=$ac_try;;
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375 (eval "$ac_compile") 2>conftest.er1
11377 grep -v '^ *+' conftest.er1 >conftest.err
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11383 { (case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388 (eval "$ac_try") 2>&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; } &&
11392 { ac_try='test -s conftest.$ac_objext'
11393 { (case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_try") 2>&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; }; then
11402 ac_cv_header_sys_wait_h=yes
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11407 ac_cv_header_sys_wait_h=no
11410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11412 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11413 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11414 if test $ac_cv_header_sys_wait_h = yes; then
11416 cat >>confdefs.h <<\_ACEOF
11417 #define HAVE_SYS_WAIT_H 1
11422 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11423 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11424 if test "${ac_cv_header_time+set}" = set; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11427 cat >conftest.$ac_ext <<_ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433 #include <sys/types.h>
11434 #include <sys/time.h>
11440 if ((struct tm *) 0)
11446 rm -f conftest.$ac_objext
11447 if { (ac_try="$ac_compile"
11448 case "(($ac_try" in
11449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450 *) ac_try_echo=$ac_try;;
11452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453 (eval "$ac_compile") 2>conftest.er1
11455 grep -v '^ *+' conftest.er1 >conftest.err
11457 cat conftest.err >&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11461 { (case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_try") 2>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; } &&
11470 { ac_try='test -s conftest.$ac_objext'
11471 { (case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476 (eval "$ac_try") 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_cv_header_time=yes
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11485 ac_cv_header_time=no
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11490 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11491 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11492 if test $ac_cv_header_time = yes; then
11494 cat >>confdefs.h <<\_ACEOF
11495 #define TIME_WITH_SYS_TIME 1
11502 ac_cpp='$CXXCPP $CPPFLAGS'
11503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11508 ac_cpp='$CXXCPP $CPPFLAGS'
11509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11512 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11513 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11514 if test -z "$CXXCPP"; then
11515 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 # Double quotes because CXXCPP needs to be expanded
11519 for CXXCPP in "$CXX -E" "/lib/cpp"
11521 ac_preproc_ok=false
11522 for ac_cxx_preproc_warn_flag in '' yes
11524 # Use a header file that comes with gcc, so configuring glibc
11525 # with a fresh cross-compiler works.
11526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11527 # <limits.h> exists even on freestanding compilers.
11528 # On the NeXT, cc -E runs the code through the compiler's parser,
11529 # not just through cpp. "Syntax error" is here to catch this case.
11530 cat >conftest.$ac_ext <<_ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11537 # include <limits.h>
11539 # include <assert.h>
11543 if { (ac_try="$ac_cpp conftest.$ac_ext"
11544 case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11551 grep -v '^ *+' conftest.er1 >conftest.err
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } >/dev/null; then
11556 if test -s conftest.err; then
11557 ac_cpp_err=$ac_cxx_preproc_warn_flag
11558 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11565 if test -z "$ac_cpp_err"; then
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11571 # Broken: fails on valid input.
11575 rm -f conftest.err conftest.$ac_ext
11577 # OK, works on sane cases. Now check whether nonexistent headers
11578 # can be detected and how.
11579 cat >conftest.$ac_ext <<_ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11585 #include <ac_nonexistent.h>
11587 if { (ac_try="$ac_cpp conftest.$ac_ext"
11588 case "(($ac_try" in
11589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590 *) ac_try_echo=$ac_try;;
11592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11595 grep -v '^ *+' conftest.er1 >conftest.err
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } >/dev/null; then
11600 if test -s conftest.err; then
11601 ac_cpp_err=$ac_cxx_preproc_warn_flag
11602 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11609 if test -z "$ac_cpp_err"; then
11610 # Broken: success on invalid input.
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 # Passes both tests.
11621 rm -f conftest.err conftest.$ac_ext
11624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11625 rm -f conftest.err conftest.$ac_ext
11626 if $ac_preproc_ok; then
11631 ac_cv_prog_CXXCPP=$CXXCPP
11634 CXXCPP=$ac_cv_prog_CXXCPP
11636 ac_cv_prog_CXXCPP=$CXXCPP
11638 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11639 echo "${ECHO_T}$CXXCPP" >&6; }
11640 ac_preproc_ok=false
11641 for ac_cxx_preproc_warn_flag in '' yes
11643 # Use a header file that comes with gcc, so configuring glibc
11644 # with a fresh cross-compiler works.
11645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11646 # <limits.h> exists even on freestanding compilers.
11647 # On the NeXT, cc -E runs the code through the compiler's parser,
11648 # not just through cpp. "Syntax error" is here to catch this case.
11649 cat >conftest.$ac_ext <<_ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11656 # include <limits.h>
11658 # include <assert.h>
11662 if { (ac_try="$ac_cpp conftest.$ac_ext"
11663 case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11670 grep -v '^ *+' conftest.er1 >conftest.err
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } >/dev/null; then
11675 if test -s conftest.err; then
11676 ac_cpp_err=$ac_cxx_preproc_warn_flag
11677 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11684 if test -z "$ac_cpp_err"; then
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11690 # Broken: fails on valid input.
11694 rm -f conftest.err conftest.$ac_ext
11696 # OK, works on sane cases. Now check whether nonexistent headers
11697 # can be detected and how.
11698 cat >conftest.$ac_ext <<_ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704 #include <ac_nonexistent.h>
11706 if { (ac_try="$ac_cpp conftest.$ac_ext"
11707 case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11714 grep -v '^ *+' conftest.er1 >conftest.err
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } >/dev/null; then
11719 if test -s conftest.err; then
11720 ac_cpp_err=$ac_cxx_preproc_warn_flag
11721 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11728 if test -z "$ac_cpp_err"; then
11729 # Broken: success on invalid input.
11732 echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11735 # Passes both tests.
11740 rm -f conftest.err conftest.$ac_ext
11743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11744 rm -f conftest.err conftest.$ac_ext
11745 if $ac_preproc_ok; then
11748 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11749 See \`config.log' for more details." >&5
11750 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11751 See \`config.log' for more details." >&2;}
11752 { (exit 1); exit 1; }; }
11756 ac_cpp='$CXXCPP $CPPFLAGS'
11757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11763 for ac_header in cxxabi.h
11765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 ac_res=`eval echo '${'$as_ac_Header'}'`
11773 { echo "$as_me:$LINENO: result: $ac_res" >&5
11774 echo "${ECHO_T}$ac_res" >&6; }
11776 # Is the header compilable?
11777 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11779 cat >conftest.$ac_ext <<_ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11785 $ac_includes_default
11786 #include <$ac_header>
11788 rm -f conftest.$ac_objext
11789 if { (ac_try="$ac_compile"
11790 case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_compile") 2>conftest.er1
11797 grep -v '^ *+' conftest.er1 >conftest.err
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } &&
11802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11803 { (case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_try") 2>&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest.$ac_objext'
11813 { (case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_try") 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; }; then
11822 ac_header_compiler=yes
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11827 ac_header_compiler=no
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11832 echo "${ECHO_T}$ac_header_compiler" >&6; }
11834 # Is the header present?
11835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11837 cat >conftest.$ac_ext <<_ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11843 #include <$ac_header>
11845 if { (ac_try="$ac_cpp conftest.$ac_ext"
11846 case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11853 grep -v '^ *+' conftest.er1 >conftest.err
11855 cat conftest.err >&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } >/dev/null; then
11858 if test -s conftest.err; then
11859 ac_cpp_err=$ac_cxx_preproc_warn_flag
11860 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11867 if test -z "$ac_cpp_err"; then
11868 ac_header_preproc=yes
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11873 ac_header_preproc=no
11876 rm -f conftest.err conftest.$ac_ext
11877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11878 echo "${ECHO_T}$ac_header_preproc" >&6; }
11880 # So? What about this header?
11881 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11887 ac_header_preproc=yes
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11903 ## ------------------------------------ ##
11904 ## Report this to http://llvm.org/bugs/ ##
11905 ## ------------------------------------ ##
11907 ) | sed "s/^/$as_me: WARNING: /" >&2
11910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 eval "$as_ac_Header=\$ac_header_preproc"
11917 ac_res=`eval echo '${'$as_ac_Header'}'`
11918 { echo "$as_me:$LINENO: result: $ac_res" >&5
11919 echo "${ECHO_T}$ac_res" >&6; }
11922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11923 cat >>confdefs.h <<_ACEOF
11924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11932 ac_cpp='$CPP $CPPFLAGS'
11933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11942 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 ac_res=`eval echo '${'$as_ac_Header'}'`
11952 { echo "$as_me:$LINENO: result: $ac_res" >&5
11953 echo "${ECHO_T}$ac_res" >&6; }
11955 # Is the header compilable?
11956 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11958 cat >conftest.$ac_ext <<_ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11964 $ac_includes_default
11965 #include <$ac_header>
11967 rm -f conftest.$ac_objext
11968 if { (ac_try="$ac_compile"
11969 case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_compile") 2>conftest.er1
11976 grep -v '^ *+' conftest.er1 >conftest.err
11978 cat conftest.err >&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
11981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11982 { (case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_try") 2>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; } &&
11991 { ac_try='test -s conftest.$ac_objext'
11992 { (case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_try") 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 ac_header_compiler=yes
12003 echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12006 ac_header_compiler=no
12009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12011 echo "${ECHO_T}$ac_header_compiler" >&6; }
12013 # Is the header present?
12014 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12016 cat >conftest.$ac_ext <<_ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12022 #include <$ac_header>
12024 if { (ac_try="$ac_cpp conftest.$ac_ext"
12025 case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12032 grep -v '^ *+' conftest.er1 >conftest.err
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } >/dev/null; then
12037 if test -s conftest.err; then
12038 ac_cpp_err=$ac_c_preproc_warn_flag
12039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12046 if test -z "$ac_cpp_err"; then
12047 ac_header_preproc=yes
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 ac_header_preproc=no
12055 rm -f conftest.err conftest.$ac_ext
12056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12057 echo "${ECHO_T}$ac_header_preproc" >&6; }
12059 # So? What about this header?
12060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12066 ac_header_preproc=yes
12069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12076 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12082 ## ------------------------------------ ##
12083 ## Report this to http://llvm.org/bugs/ ##
12084 ## ------------------------------------ ##
12086 ) | sed "s/^/$as_me: WARNING: /" >&2
12089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 eval "$as_ac_Header=\$ac_header_preproc"
12096 ac_res=`eval echo '${'$as_ac_Header'}'`
12097 { echo "$as_me:$LINENO: result: $ac_res" >&5
12098 echo "${ECHO_T}$ac_res" >&6; }
12101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12102 cat >>confdefs.h <<_ACEOF
12103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12116 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
12118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 ac_res=`eval echo '${'$as_ac_Header'}'`
12126 { echo "$as_me:$LINENO: result: $ac_res" >&5
12127 echo "${ECHO_T}$ac_res" >&6; }
12129 # Is the header compilable?
12130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12132 cat >conftest.$ac_ext <<_ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 $ac_includes_default
12139 #include <$ac_header>
12141 rm -f conftest.$ac_objext
12142 if { (ac_try="$ac_compile"
12143 case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_compile") 2>conftest.er1
12150 grep -v '^ *+' conftest.er1 >conftest.err
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
12155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156 { (case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_try") 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try='test -s conftest.$ac_objext'
12166 { (case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_try") 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 ac_header_compiler=yes
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12180 ac_header_compiler=no
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12185 echo "${ECHO_T}$ac_header_compiler" >&6; }
12187 # Is the header present?
12188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <$ac_header>
12198 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
12211 if test -s conftest.err; then
12212 ac_cpp_err=$ac_c_preproc_warn_flag
12213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12220 if test -z "$ac_cpp_err"; then
12221 ac_header_preproc=yes
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_header_preproc=no
12229 rm -f conftest.err conftest.$ac_ext
12230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231 echo "${ECHO_T}$ac_header_preproc" >&6; }
12233 # So? What about this header?
12234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12240 ac_header_preproc=yes
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12256 ## ------------------------------------ ##
12257 ## Report this to http://llvm.org/bugs/ ##
12258 ## ------------------------------------ ##
12260 ) | sed "s/^/$as_me: WARNING: /" >&2
12263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 eval "$as_ac_Header=\$ac_header_preproc"
12270 ac_res=`eval echo '${'$as_ac_Header'}'`
12271 { echo "$as_me:$LINENO: result: $ac_res" >&5
12272 echo "${ECHO_T}$ac_res" >&6; }
12275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12276 cat >>confdefs.h <<_ACEOF
12277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12285 for ac_header in utime.h
12287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12294 ac_res=`eval echo '${'$as_ac_Header'}'`
12295 { echo "$as_me:$LINENO: result: $ac_res" >&5
12296 echo "${ECHO_T}$ac_res" >&6; }
12298 # Is the header compilable?
12299 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12301 cat >conftest.$ac_ext <<_ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12307 $ac_includes_default
12308 #include <$ac_header>
12310 rm -f conftest.$ac_objext
12311 if { (ac_try="$ac_compile"
12312 case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_compile") 2>conftest.er1
12319 grep -v '^ *+' conftest.er1 >conftest.err
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325 { (case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_try") 2>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
12334 { ac_try='test -s conftest.$ac_objext'
12335 { (case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_try") 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 ac_header_compiler=yes
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12349 ac_header_compiler=no
12352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12354 echo "${ECHO_T}$ac_header_compiler" >&6; }
12356 # Is the header present?
12357 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12359 cat >conftest.$ac_ext <<_ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12365 #include <$ac_header>
12367 if { (ac_try="$ac_cpp conftest.$ac_ext"
12368 case "(($ac_try" in
12369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370 *) ac_try_echo=$ac_try;;
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12375 grep -v '^ *+' conftest.er1 >conftest.err
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } >/dev/null; then
12380 if test -s conftest.err; then
12381 ac_cpp_err=$ac_c_preproc_warn_flag
12382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12389 if test -z "$ac_cpp_err"; then
12390 ac_header_preproc=yes
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12395 ac_header_preproc=no
12398 rm -f conftest.err conftest.$ac_ext
12399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12400 echo "${ECHO_T}$ac_header_preproc" >&6; }
12402 # So? What about this header?
12403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12409 ac_header_preproc=yes
12412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12425 ## ------------------------------------ ##
12426 ## Report this to http://llvm.org/bugs/ ##
12427 ## ------------------------------------ ##
12429 ) | sed "s/^/$as_me: WARNING: /" >&2
12432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
12437 eval "$as_ac_Header=\$ac_header_preproc"
12439 ac_res=`eval echo '${'$as_ac_Header'}'`
12440 { echo "$as_me:$LINENO: result: $ac_res" >&5
12441 echo "${ECHO_T}$ac_res" >&6; }
12444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12445 cat >>confdefs.h <<_ACEOF
12446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12458 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
12460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 ac_res=`eval echo '${'$as_ac_Header'}'`
12468 { echo "$as_me:$LINENO: result: $ac_res" >&5
12469 echo "${ECHO_T}$ac_res" >&6; }
12471 # Is the header compilable?
12472 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12474 cat >conftest.$ac_ext <<_ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 $ac_includes_default
12481 #include <$ac_header>
12483 rm -f conftest.$ac_objext
12484 if { (ac_try="$ac_compile"
12485 case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_compile") 2>conftest.er1
12492 grep -v '^ *+' conftest.er1 >conftest.err
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498 { (case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_try") 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; } &&
12507 { ac_try='test -s conftest.$ac_objext'
12508 { (case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_try") 2>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; }; then
12517 ac_header_compiler=yes
12519 echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12522 ac_header_compiler=no
12525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12527 echo "${ECHO_T}$ac_header_compiler" >&6; }
12529 # Is the header present?
12530 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12532 cat >conftest.$ac_ext <<_ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 #include <$ac_header>
12540 if { (ac_try="$ac_cpp conftest.$ac_ext"
12541 case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12548 grep -v '^ *+' conftest.er1 >conftest.err
12550 cat conftest.err >&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } >/dev/null; then
12553 if test -s conftest.err; then
12554 ac_cpp_err=$ac_c_preproc_warn_flag
12555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12562 if test -z "$ac_cpp_err"; then
12563 ac_header_preproc=yes
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 ac_header_preproc=no
12571 rm -f conftest.err conftest.$ac_ext
12572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12573 echo "${ECHO_T}$ac_header_preproc" >&6; }
12575 # So? What about this header?
12576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12582 ac_header_preproc=yes
12585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12592 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12598 ## ------------------------------------ ##
12599 ## Report this to http://llvm.org/bugs/ ##
12600 ## ------------------------------------ ##
12602 ) | sed "s/^/$as_me: WARNING: /" >&2
12605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 eval "$as_ac_Header=\$ac_header_preproc"
12612 ac_res=`eval echo '${'$as_ac_Header'}'`
12613 { echo "$as_me:$LINENO: result: $ac_res" >&5
12614 echo "${ECHO_T}$ac_res" >&6; }
12617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12618 cat >>confdefs.h <<_ACEOF
12619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12629 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12638 ac_res=`eval echo '${'$as_ac_Header'}'`
12639 { echo "$as_me:$LINENO: result: $ac_res" >&5
12640 echo "${ECHO_T}$ac_res" >&6; }
12642 # Is the header compilable?
12643 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12645 cat >conftest.$ac_ext <<_ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12651 $ac_includes_default
12652 #include <$ac_header>
12654 rm -f conftest.$ac_objext
12655 if { (ac_try="$ac_compile"
12656 case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661 (eval "$ac_compile") 2>conftest.er1
12663 grep -v '^ *+' conftest.er1 >conftest.err
12665 cat conftest.err >&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } &&
12668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12669 { (case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_try") 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; } &&
12678 { ac_try='test -s conftest.$ac_objext'
12679 { (case "(($ac_try" in
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684 (eval "$ac_try") 2>&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 ac_header_compiler=yes
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 ac_header_compiler=no
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12698 echo "${ECHO_T}$ac_header_compiler" >&6; }
12700 # Is the header present?
12701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12703 cat >conftest.$ac_ext <<_ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 #include <$ac_header>
12711 if { (ac_try="$ac_cpp conftest.$ac_ext"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12719 grep -v '^ *+' conftest.er1 >conftest.err
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } >/dev/null; then
12724 if test -s conftest.err; then
12725 ac_cpp_err=$ac_c_preproc_warn_flag
12726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12733 if test -z "$ac_cpp_err"; then
12734 ac_header_preproc=yes
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12739 ac_header_preproc=no
12742 rm -f conftest.err conftest.$ac_ext
12743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12744 echo "${ECHO_T}$ac_header_preproc" >&6; }
12746 # So? What about this header?
12747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12753 ac_header_preproc=yes
12756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12769 ## ------------------------------------ ##
12770 ## Report this to http://llvm.org/bugs/ ##
12771 ## ------------------------------------ ##
12773 ) | sed "s/^/$as_me: WARNING: /" >&2
12776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 eval "$as_ac_Header=\$ac_header_preproc"
12783 ac_res=`eval echo '${'$as_ac_Header'}'`
12784 { echo "$as_me:$LINENO: result: $ac_res" >&5
12785 echo "${ECHO_T}$ac_res" >&6; }
12788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12789 cat >>confdefs.h <<_ACEOF
12790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12798 for ac_header in valgrind/valgrind.h
12800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12807 ac_res=`eval echo '${'$as_ac_Header'}'`
12808 { echo "$as_me:$LINENO: result: $ac_res" >&5
12809 echo "${ECHO_T}$ac_res" >&6; }
12811 # Is the header compilable?
12812 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12814 cat >conftest.$ac_ext <<_ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12820 $ac_includes_default
12821 #include <$ac_header>
12823 rm -f conftest.$ac_objext
12824 if { (ac_try="$ac_compile"
12825 case "(($ac_try" in
12826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12827 *) ac_try_echo=$ac_try;;
12829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12830 (eval "$ac_compile") 2>conftest.er1
12832 grep -v '^ *+' conftest.er1 >conftest.err
12834 cat conftest.err >&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12838 { (case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_try") 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest.$ac_objext'
12848 { (case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_try") 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_header_compiler=yes
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ac_header_compiler=no
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12867 echo "${ECHO_T}$ac_header_compiler" >&6; }
12869 # Is the header present?
12870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12872 cat >conftest.$ac_ext <<_ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878 #include <$ac_header>
12880 if { (ac_try="$ac_cpp conftest.$ac_ext"
12881 case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12888 grep -v '^ *+' conftest.er1 >conftest.err
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } >/dev/null; then
12893 if test -s conftest.err; then
12894 ac_cpp_err=$ac_c_preproc_warn_flag
12895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12902 if test -z "$ac_cpp_err"; then
12903 ac_header_preproc=yes
12905 echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12908 ac_header_preproc=no
12911 rm -f conftest.err conftest.$ac_ext
12912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12913 echo "${ECHO_T}$ac_header_preproc" >&6; }
12915 # So? What about this header?
12916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12922 ac_header_preproc=yes
12925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12938 ## ------------------------------------ ##
12939 ## Report this to http://llvm.org/bugs/ ##
12940 ## ------------------------------------ ##
12942 ) | sed "s/^/$as_me: WARNING: /" >&2
12945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 eval "$as_ac_Header=\$ac_header_preproc"
12952 ac_res=`eval echo '${'$as_ac_Header'}'`
12953 { echo "$as_me:$LINENO: result: $ac_res" >&5
12954 echo "${ECHO_T}$ac_res" >&6; }
12957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12958 cat >>confdefs.h <<_ACEOF
12959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12967 for ac_header in fenv.h
12969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 ac_res=`eval echo '${'$as_ac_Header'}'`
12977 { echo "$as_me:$LINENO: result: $ac_res" >&5
12978 echo "${ECHO_T}$ac_res" >&6; }
12980 # Is the header compilable?
12981 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12983 cat >conftest.$ac_ext <<_ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12989 $ac_includes_default
12990 #include <$ac_header>
12992 rm -f conftest.$ac_objext
12993 if { (ac_try="$ac_compile"
12994 case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_compile") 2>conftest.er1
13001 grep -v '^ *+' conftest.er1 >conftest.err
13003 cat conftest.err >&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } &&
13006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13007 { (case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_try") 2>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; } &&
13016 { ac_try='test -s conftest.$ac_objext'
13017 { (case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_try") 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 ac_header_compiler=yes
13028 echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13031 ac_header_compiler=no
13034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13035 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13036 echo "${ECHO_T}$ac_header_compiler" >&6; }
13038 # Is the header present?
13039 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13041 cat >conftest.$ac_ext <<_ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h. */
13047 #include <$ac_header>
13049 if { (ac_try="$ac_cpp conftest.$ac_ext"
13050 case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13057 grep -v '^ *+' conftest.er1 >conftest.err
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } >/dev/null; then
13062 if test -s conftest.err; then
13063 ac_cpp_err=$ac_c_preproc_warn_flag
13064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13071 if test -z "$ac_cpp_err"; then
13072 ac_header_preproc=yes
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13077 ac_header_preproc=no
13080 rm -f conftest.err conftest.$ac_ext
13081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13082 echo "${ECHO_T}$ac_header_preproc" >&6; }
13084 # So? What about this header?
13085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13091 ac_header_preproc=yes
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13107 ## ------------------------------------ ##
13108 ## Report this to http://llvm.org/bugs/ ##
13109 ## ------------------------------------ ##
13111 ) | sed "s/^/$as_me: WARNING: /" >&2
13114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 eval "$as_ac_Header=\$ac_header_preproc"
13121 ac_res=`eval echo '${'$as_ac_Header'}'`
13122 { echo "$as_me:$LINENO: result: $ac_res" >&5
13123 echo "${ECHO_T}$ac_res" >&6; }
13126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13127 cat >>confdefs.h <<_ACEOF
13128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13135 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
13136 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
13137 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 cat >conftest.$ac_ext <<_ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13151 #ifndef FE_ALL_EXCEPT
13152 char *p = (char *) FE_ALL_EXCEPT;
13160 rm -f conftest.$ac_objext
13161 if { (ac_try="$ac_compile"
13162 case "(($ac_try" in
13163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164 *) ac_try_echo=$ac_try;;
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_compile") 2>conftest.er1
13169 grep -v '^ *+' conftest.er1 >conftest.err
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } &&
13174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13175 { (case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_try") 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try='test -s conftest.$ac_objext'
13185 { (case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_try") 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 ac_cv_have_decl_FE_ALL_EXCEPT=yes
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 ac_cv_have_decl_FE_ALL_EXCEPT=no
13202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13204 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
13205 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
13206 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
13208 cat >>confdefs.h <<_ACEOF
13209 #define HAVE_DECL_FE_ALL_EXCEPT 1
13214 cat >>confdefs.h <<_ACEOF
13215 #define HAVE_DECL_FE_ALL_EXCEPT 0
13220 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
13221 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
13222 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
13223 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 cat >conftest.$ac_ext <<_ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13237 char *p = (char *) FE_INEXACT;
13245 rm -f conftest.$ac_objext
13246 if { (ac_try="$ac_compile"
13247 case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252 (eval "$ac_compile") 2>conftest.er1
13254 grep -v '^ *+' conftest.er1 >conftest.err
13256 cat conftest.err >&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } &&
13259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13260 { (case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_try") 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; } &&
13269 { ac_try='test -s conftest.$ac_objext'
13270 { (case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_try") 2>&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 ac_cv_have_decl_FE_INEXACT=yes
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13284 ac_cv_have_decl_FE_INEXACT=no
13287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13289 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
13290 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
13291 if test $ac_cv_have_decl_FE_INEXACT = yes; then
13293 cat >>confdefs.h <<_ACEOF
13294 #define HAVE_DECL_FE_INEXACT 1
13299 cat >>confdefs.h <<_ACEOF
13300 #define HAVE_DECL_FE_INEXACT 0
13307 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13309 for ac_header in pthread.h
13311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 ac_res=`eval echo '${'$as_ac_Header'}'`
13319 { echo "$as_me:$LINENO: result: $ac_res" >&5
13320 echo "${ECHO_T}$ac_res" >&6; }
13322 # Is the header compilable?
13323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13325 cat >conftest.$ac_ext <<_ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h. */
13331 $ac_includes_default
13332 #include <$ac_header>
13334 rm -f conftest.$ac_objext
13335 if { (ac_try="$ac_compile"
13336 case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341 (eval "$ac_compile") 2>conftest.er1
13343 grep -v '^ *+' conftest.er1 >conftest.err
13345 cat conftest.err >&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
13348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13349 { (case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_try") 2>&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; } &&
13358 { ac_try='test -s conftest.$ac_objext'
13359 { (case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_try") 2>&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; }; then
13368 ac_header_compiler=yes
13370 echo "$as_me: failed program was:" >&5
13371 sed 's/^/| /' conftest.$ac_ext >&5
13373 ac_header_compiler=no
13376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13378 echo "${ECHO_T}$ac_header_compiler" >&6; }
13380 # Is the header present?
13381 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13383 cat >conftest.$ac_ext <<_ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13389 #include <$ac_header>
13391 if { (ac_try="$ac_cpp conftest.$ac_ext"
13392 case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13399 grep -v '^ *+' conftest.er1 >conftest.err
13401 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } >/dev/null; then
13404 if test -s conftest.err; then
13405 ac_cpp_err=$ac_c_preproc_warn_flag
13406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13413 if test -z "$ac_cpp_err"; then
13414 ac_header_preproc=yes
13416 echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13419 ac_header_preproc=no
13422 rm -f conftest.err conftest.$ac_ext
13423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13424 echo "${ECHO_T}$ac_header_preproc" >&6; }
13426 # So? What about this header?
13427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13433 ac_header_preproc=yes
13436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13449 ## ------------------------------------ ##
13450 ## Report this to http://llvm.org/bugs/ ##
13451 ## ------------------------------------ ##
13453 ) | sed "s/^/$as_me: WARNING: /" >&2
13456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 eval "$as_ac_Header=\$ac_header_preproc"
13463 ac_res=`eval echo '${'$as_ac_Header'}'`
13464 { echo "$as_me:$LINENO: result: $ac_res" >&5
13465 echo "${ECHO_T}$ac_res" >&6; }
13468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13469 cat >>confdefs.h <<_ACEOF
13470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13485 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13487 for ac_header in zlib.h
13489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13496 ac_res=`eval echo '${'$as_ac_Header'}'`
13497 { echo "$as_me:$LINENO: result: $ac_res" >&5
13498 echo "${ECHO_T}$ac_res" >&6; }
13500 # Is the header compilable?
13501 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13503 cat >conftest.$ac_ext <<_ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13509 $ac_includes_default
13510 #include <$ac_header>
13512 rm -f conftest.$ac_objext
13513 if { (ac_try="$ac_compile"
13514 case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_compile") 2>conftest.er1
13521 grep -v '^ *+' conftest.er1 >conftest.err
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } &&
13526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13527 { (case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_try") 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; } &&
13536 { ac_try='test -s conftest.$ac_objext'
13537 { (case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_try") 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_header_compiler=yes
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13551 ac_header_compiler=no
13554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13556 echo "${ECHO_T}$ac_header_compiler" >&6; }
13558 # Is the header present?
13559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13561 cat >conftest.$ac_ext <<_ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h. */
13567 #include <$ac_header>
13569 if { (ac_try="$ac_cpp conftest.$ac_ext"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13577 grep -v '^ *+' conftest.er1 >conftest.err
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } >/dev/null; then
13582 if test -s conftest.err; then
13583 ac_cpp_err=$ac_c_preproc_warn_flag
13584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13591 if test -z "$ac_cpp_err"; then
13592 ac_header_preproc=yes
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_header_preproc=no
13600 rm -f conftest.err conftest.$ac_ext
13601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13602 echo "${ECHO_T}$ac_header_preproc" >&6; }
13604 # So? What about this header?
13605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13611 ac_header_preproc=yes
13614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13627 ## ------------------------------------ ##
13628 ## Report this to http://llvm.org/bugs/ ##
13629 ## ------------------------------------ ##
13631 ) | sed "s/^/$as_me: WARNING: /" >&2
13634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 eval "$as_ac_Header=\$ac_header_preproc"
13641 ac_res=`eval echo '${'$as_ac_Header'}'`
13642 { echo "$as_me:$LINENO: result: $ac_res" >&5
13643 echo "${ECHO_T}$ac_res" >&6; }
13646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13647 cat >>confdefs.h <<_ACEOF
13648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13664 if test "$llvm_cv_enable_libffi" = "yes" ; then
13667 for ac_header in ffi.h ffi/ffi.h
13669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13676 ac_res=`eval echo '${'$as_ac_Header'}'`
13677 { echo "$as_me:$LINENO: result: $ac_res" >&5
13678 echo "${ECHO_T}$ac_res" >&6; }
13680 # Is the header compilable?
13681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13683 cat >conftest.$ac_ext <<_ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13689 $ac_includes_default
13690 #include <$ac_header>
13692 rm -f conftest.$ac_objext
13693 if { (ac_try="$ac_compile"
13694 case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_compile") 2>conftest.er1
13701 grep -v '^ *+' conftest.er1 >conftest.err
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707 { (case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712 (eval "$ac_try") 2>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest.$ac_objext'
13717 { (case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 ac_header_compiler=yes
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13731 ac_header_compiler=no
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13736 echo "${ECHO_T}$ac_header_compiler" >&6; }
13738 # Is the header present?
13739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13741 cat >conftest.$ac_ext <<_ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h. */
13747 #include <$ac_header>
13749 if { (ac_try="$ac_cpp conftest.$ac_ext"
13750 case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13757 grep -v '^ *+' conftest.er1 >conftest.err
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } >/dev/null; then
13762 if test -s conftest.err; then
13763 ac_cpp_err=$ac_c_preproc_warn_flag
13764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13771 if test -z "$ac_cpp_err"; then
13772 ac_header_preproc=yes
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13777 ac_header_preproc=no
13780 rm -f conftest.err conftest.$ac_ext
13781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13782 echo "${ECHO_T}$ac_header_preproc" >&6; }
13784 # So? What about this header?
13785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13791 ac_header_preproc=yes
13794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13807 ## ------------------------------------ ##
13808 ## Report this to http://llvm.org/bugs/ ##
13809 ## ------------------------------------ ##
13811 ) | sed "s/^/$as_me: WARNING: /" >&2
13814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 eval "$as_ac_Header=\$ac_header_preproc"
13821 ac_res=`eval echo '${'$as_ac_Header'}'`
13822 { echo "$as_me:$LINENO: result: $ac_res" >&5
13823 echo "${ECHO_T}$ac_res" >&6; }
13826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13827 cat >>confdefs.h <<_ACEOF
13828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13838 for ac_header in CrashReporterClient.h
13840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 ac_res=`eval echo '${'$as_ac_Header'}'`
13848 { echo "$as_me:$LINENO: result: $ac_res" >&5
13849 echo "${ECHO_T}$ac_res" >&6; }
13851 # Is the header compilable?
13852 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13854 cat >conftest.$ac_ext <<_ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13860 $ac_includes_default
13861 #include <$ac_header>
13863 rm -f conftest.$ac_objext
13864 if { (ac_try="$ac_compile"
13865 case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_compile") 2>conftest.er1
13872 grep -v '^ *+' conftest.er1 >conftest.err
13874 cat conftest.err >&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); } &&
13877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13878 { (case "(($ac_try" in
13879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13880 *) ac_try_echo=$ac_try;;
13882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13883 (eval "$ac_try") 2>&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; } &&
13887 { ac_try='test -s conftest.$ac_objext'
13888 { (case "(($ac_try" in
13889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890 *) ac_try_echo=$ac_try;;
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893 (eval "$ac_try") 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13897 ac_header_compiler=yes
13899 echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13902 ac_header_compiler=no
13905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13907 echo "${ECHO_T}$ac_header_compiler" >&6; }
13909 # Is the header present?
13910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13912 cat >conftest.$ac_ext <<_ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13918 #include <$ac_header>
13920 if { (ac_try="$ac_cpp conftest.$ac_ext"
13921 case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13928 grep -v '^ *+' conftest.er1 >conftest.err
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } >/dev/null; then
13933 if test -s conftest.err; then
13934 ac_cpp_err=$ac_c_preproc_warn_flag
13935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13942 if test -z "$ac_cpp_err"; then
13943 ac_header_preproc=yes
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13948 ac_header_preproc=no
13951 rm -f conftest.err conftest.$ac_ext
13952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13953 echo "${ECHO_T}$ac_header_preproc" >&6; }
13955 # So? What about this header?
13956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13962 ac_header_preproc=yes
13965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13978 ## ------------------------------------ ##
13979 ## Report this to http://llvm.org/bugs/ ##
13980 ## ------------------------------------ ##
13982 ) | sed "s/^/$as_me: WARNING: /" >&2
13985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 eval "$as_ac_Header=\$ac_header_preproc"
13992 ac_res=`eval echo '${'$as_ac_Header'}'`
13993 { echo "$as_me:$LINENO: result: $ac_res" >&5
13994 echo "${ECHO_T}$ac_res" >&6; }
13997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13998 cat >>confdefs.h <<_ACEOF
13999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14007 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
14008 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
14009 cat >conftest.$ac_ext <<_ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14017 extern const char *__crashreporter_info__;
14019 __crashreporter_info__ = "test";
14025 rm -f conftest.$ac_objext conftest$ac_exeext
14026 if { (ac_try="$ac_link"
14027 case "(($ac_try" in
14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032 (eval "$ac_link") 2>conftest.er1
14034 grep -v '^ *+' conftest.er1 >conftest.err
14036 cat conftest.err >&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } &&
14039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14040 { (case "(($ac_try" in
14041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14042 *) ac_try_echo=$ac_try;;
14044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14045 (eval "$ac_try") 2>&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; } &&
14049 { ac_try='test -s conftest$ac_exeext'
14050 { (case "(($ac_try" in
14051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052 *) ac_try_echo=$ac_try;;
14054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055 (eval "$ac_try") 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14060 { echo "$as_me:$LINENO: result: yes" >&5
14061 echo "${ECHO_T}yes" >&6; }
14063 cat >>confdefs.h <<\_ACEOF
14064 #define HAVE_CRASHREPORTER_INFO 1
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14073 { echo "$as_me:$LINENO: result: no" >&5
14074 echo "${ECHO_T}no" >&6; }
14076 cat >>confdefs.h <<\_ACEOF
14077 #define HAVE_CRASHREPORTER_INFO 0
14083 rm -f core conftest.err conftest.$ac_objext \
14084 conftest$ac_exeext conftest.$ac_ext
14088 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
14089 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
14090 if test "${ac_cv_huge_val_sanity+set}" = set; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 ac_cpp='$CXXCPP $CPPFLAGS'
14096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14100 ac_save_CXXFLAGS=$CXXFLAGS
14101 CXXFLAGS="$CXXFLAGS -pedantic"
14102 if test "$cross_compiling" = yes; then
14103 ac_cv_huge_val_sanity=yes
14105 cat >conftest.$ac_ext <<_ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h. */
14115 double x = HUGE_VAL; return x != x;
14120 rm -f conftest$ac_exeext
14121 if { (ac_try="$ac_link"
14122 case "(($ac_try" in
14123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124 *) ac_try_echo=$ac_try;;
14126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127 (eval "$ac_link") 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14131 { (case "(($ac_try" in
14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133 *) ac_try_echo=$ac_try;;
14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136 (eval "$ac_try") 2>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14140 ac_cv_huge_val_sanity=yes
14142 echo "$as_me: program exited with status $ac_status" >&5
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14146 ( exit $ac_status )
14147 ac_cv_huge_val_sanity=no
14149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14153 CXXFLAGS=$ac_save_CXXFLAGS
14155 ac_cpp='$CPP $CPPFLAGS'
14156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14162 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
14163 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
14164 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
14167 { echo "$as_me:$LINENO: checking for pid_t" >&5
14168 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14169 if test "${ac_cv_type_pid_t+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 cat >conftest.$ac_ext <<_ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14178 $ac_includes_default
14179 typedef pid_t ac__type_new_;
14183 if ((ac__type_new_ *) 0)
14185 if (sizeof (ac__type_new_))
14191 rm -f conftest.$ac_objext
14192 if { (ac_try="$ac_compile"
14193 case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198 (eval "$ac_compile") 2>conftest.er1
14200 grep -v '^ *+' conftest.er1 >conftest.err
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14206 { (case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_try") 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; } &&
14215 { ac_try='test -s conftest.$ac_objext'
14216 { (case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_try") 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }; then
14225 ac_cv_type_pid_t=yes
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14230 ac_cv_type_pid_t=no
14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14235 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14236 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14237 if test $ac_cv_type_pid_t = yes; then
14241 cat >>confdefs.h <<_ACEOF
14247 { echo "$as_me:$LINENO: checking for size_t" >&5
14248 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14249 if test "${ac_cv_type_size_t+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14252 cat >conftest.$ac_ext <<_ACEOF
14255 cat confdefs.h >>conftest.$ac_ext
14256 cat >>conftest.$ac_ext <<_ACEOF
14257 /* end confdefs.h. */
14258 $ac_includes_default
14259 typedef size_t ac__type_new_;
14263 if ((ac__type_new_ *) 0)
14265 if (sizeof (ac__type_new_))
14271 rm -f conftest.$ac_objext
14272 if { (ac_try="$ac_compile"
14273 case "(($ac_try" in
14274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14275 *) ac_try_echo=$ac_try;;
14277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14278 (eval "$ac_compile") 2>conftest.er1
14280 grep -v '^ *+' conftest.er1 >conftest.err
14282 cat conftest.err >&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); } &&
14285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14286 { (case "(($ac_try" in
14287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288 *) ac_try_echo=$ac_try;;
14290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291 (eval "$ac_try") 2>&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; } &&
14295 { ac_try='test -s conftest.$ac_objext'
14296 { (case "(($ac_try" in
14297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298 *) ac_try_echo=$ac_try;;
14300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301 (eval "$ac_try") 2>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }; then
14305 ac_cv_type_size_t=yes
14307 echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14310 ac_cv_type_size_t=no
14313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14316 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14317 if test $ac_cv_type_size_t = yes; then
14321 cat >>confdefs.h <<_ACEOF
14322 #define size_t unsigned int
14328 cat >>confdefs.h <<_ACEOF
14329 #define RETSIGTYPE void
14332 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14333 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14334 if test "${ac_cv_struct_tm+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 cat >conftest.$ac_ext <<_ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 #include <sys/types.h>
14349 struct tm *tp; tp->tm_sec;
14354 rm -f conftest.$ac_objext
14355 if { (ac_try="$ac_compile"
14356 case "(($ac_try" in
14357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358 *) ac_try_echo=$ac_try;;
14360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361 (eval "$ac_compile") 2>conftest.er1
14363 grep -v '^ *+' conftest.er1 >conftest.err
14365 cat conftest.err >&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } &&
14368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14369 { (case "(($ac_try" in
14370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14371 *) ac_try_echo=$ac_try;;
14373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14374 (eval "$ac_try") 2>&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; } &&
14378 { ac_try='test -s conftest.$ac_objext'
14379 { (case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384 (eval "$ac_try") 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; }; then
14388 ac_cv_struct_tm=time.h
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14393 ac_cv_struct_tm=sys/time.h
14396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14399 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14400 if test $ac_cv_struct_tm = sys/time.h; then
14402 cat >>confdefs.h <<\_ACEOF
14403 #define TM_IN_SYS_TIME 1
14408 { echo "$as_me:$LINENO: checking for int64_t" >&5
14409 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
14410 if test "${ac_cv_type_int64_t+set}" = set; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
14413 cat >conftest.$ac_ext <<_ACEOF
14416 cat confdefs.h >>conftest.$ac_ext
14417 cat >>conftest.$ac_ext <<_ACEOF
14418 /* end confdefs.h. */
14419 $ac_includes_default
14420 typedef int64_t ac__type_new_;
14424 if ((ac__type_new_ *) 0)
14426 if (sizeof (ac__type_new_))
14432 rm -f conftest.$ac_objext
14433 if { (ac_try="$ac_compile"
14434 case "(($ac_try" in
14435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436 *) ac_try_echo=$ac_try;;
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_compile") 2>conftest.er1
14441 grep -v '^ *+' conftest.er1 >conftest.err
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } &&
14446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14447 { (case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452 (eval "$ac_try") 2>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; } &&
14456 { ac_try='test -s conftest.$ac_objext'
14457 { (case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_try") 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 ac_cv_type_int64_t=yes
14468 echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14471 ac_cv_type_int64_t=no
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14476 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
14477 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
14478 if test $ac_cv_type_int64_t = yes; then
14480 cat >>confdefs.h <<_ACEOF
14481 #define HAVE_INT64_T 1
14486 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
14487 echo "$as_me: error: Type int64_t required but not found" >&2;}
14488 { (exit 1); exit 1; }; }
14491 { echo "$as_me:$LINENO: checking for uint64_t" >&5
14492 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
14493 if test "${ac_cv_type_uint64_t+set}" = set; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14496 cat >conftest.$ac_ext <<_ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h. */
14502 $ac_includes_default
14503 typedef uint64_t ac__type_new_;
14507 if ((ac__type_new_ *) 0)
14509 if (sizeof (ac__type_new_))
14515 rm -f conftest.$ac_objext
14516 if { (ac_try="$ac_compile"
14517 case "(($ac_try" in
14518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14519 *) ac_try_echo=$ac_try;;
14521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14522 (eval "$ac_compile") 2>conftest.er1
14524 grep -v '^ *+' conftest.er1 >conftest.err
14526 cat conftest.err >&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } &&
14529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14530 { (case "(($ac_try" in
14531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532 *) ac_try_echo=$ac_try;;
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535 (eval "$ac_try") 2>&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; } &&
14539 { ac_try='test -s conftest.$ac_objext'
14540 { (case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_try") 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; }; then
14549 ac_cv_type_uint64_t=yes
14551 echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14554 ac_cv_type_uint64_t=no
14557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14559 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14560 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14561 if test $ac_cv_type_uint64_t = yes; then
14563 cat >>confdefs.h <<_ACEOF
14564 #define HAVE_UINT64_T 1
14569 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14570 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14571 if test "${ac_cv_type_u_int64_t+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 cat >conftest.$ac_ext <<_ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h. */
14580 $ac_includes_default
14581 typedef u_int64_t ac__type_new_;
14585 if ((ac__type_new_ *) 0)
14587 if (sizeof (ac__type_new_))
14593 rm -f conftest.$ac_objext
14594 if { (ac_try="$ac_compile"
14595 case "(($ac_try" in
14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597 *) ac_try_echo=$ac_try;;
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600 (eval "$ac_compile") 2>conftest.er1
14602 grep -v '^ *+' conftest.er1 >conftest.err
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14608 { (case "(($ac_try" in
14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610 *) ac_try_echo=$ac_try;;
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613 (eval "$ac_try") 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; } &&
14617 { ac_try='test -s conftest.$ac_objext'
14618 { (case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_try") 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627 ac_cv_type_u_int64_t=yes
14629 echo "$as_me: failed program was:" >&5
14630 sed 's/^/| /' conftest.$ac_ext >&5
14632 ac_cv_type_u_int64_t=no
14635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14638 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14639 if test $ac_cv_type_u_int64_t = yes; then
14641 cat >>confdefs.h <<_ACEOF
14642 #define HAVE_U_INT64_T 1
14647 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14648 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14649 { (exit 1); exit 1; }; }
14663 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 cat >conftest.$ac_ext <<_ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h. */
14677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14679 #define $ac_func innocuous_$ac_func
14681 /* System header to define __stub macros and hopefully few prototypes,
14682 which can conflict with char $ac_func (); below.
14683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14684 <limits.h> exists even on freestanding compilers. */
14687 # include <limits.h>
14689 # include <assert.h>
14694 /* Override any GCC internal prototype to avoid an error.
14695 Use char because int might match the return type of a GCC
14696 builtin and then its argument prototype would still apply. */
14701 /* The GNU C library defines this for functions which it implements
14702 to always fail with ENOSYS. Some functions are actually named
14703 something starting with __ and the normal name is an alias. */
14704 #if defined __stub_$ac_func || defined __stub___$ac_func
14711 return $ac_func ();
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (ac_try="$ac_link"
14718 case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_link") 2>conftest.er1
14725 grep -v '^ *+' conftest.er1 >conftest.err
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
14730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14731 { (case "(($ac_try" in
14732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733 *) ac_try_echo=$ac_try;;
14735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14736 (eval "$ac_try") 2>&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); }; } &&
14740 { ac_try='test -s conftest$ac_exeext'
14741 { (case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_try") 2>&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; }; then
14750 eval "$as_ac_var=yes"
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 eval "$as_ac_var=no"
14758 rm -f core conftest.err conftest.$ac_objext \
14759 conftest$ac_exeext conftest.$ac_ext
14761 ac_res=`eval echo '${'$as_ac_var'}'`
14762 { echo "$as_me:$LINENO: result: $ac_res" >&5
14763 echo "${ECHO_T}$ac_res" >&6; }
14764 if test `eval echo '${'$as_ac_var'}'` = yes; then
14765 cat >>confdefs.h <<_ACEOF
14766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14776 for ac_func in powf fmodf strtof round
14778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14782 echo $ECHO_N "(cached) $ECHO_C" >&6
14784 cat >conftest.$ac_ext <<_ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h. */
14790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14792 #define $ac_func innocuous_$ac_func
14794 /* System header to define __stub macros and hopefully few prototypes,
14795 which can conflict with char $ac_func (); below.
14796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14797 <limits.h> exists even on freestanding compilers. */
14800 # include <limits.h>
14802 # include <assert.h>
14807 /* Override any GCC internal prototype to avoid an error.
14808 Use char because int might match the return type of a GCC
14809 builtin and then its argument prototype would still apply. */
14814 /* The GNU C library defines this for functions which it implements
14815 to always fail with ENOSYS. Some functions are actually named
14816 something starting with __ and the normal name is an alias. */
14817 #if defined __stub_$ac_func || defined __stub___$ac_func
14824 return $ac_func ();
14829 rm -f conftest.$ac_objext conftest$ac_exeext
14830 if { (ac_try="$ac_link"
14831 case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836 (eval "$ac_link") 2>conftest.er1
14838 grep -v '^ *+' conftest.er1 >conftest.err
14840 cat conftest.err >&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } &&
14843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14844 { (case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_try") 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; } &&
14853 { ac_try='test -s conftest$ac_exeext'
14854 { (case "(($ac_try" in
14855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856 *) ac_try_echo=$ac_try;;
14858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859 (eval "$ac_try") 2>&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; }; then
14863 eval "$as_ac_var=yes"
14865 echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14868 eval "$as_ac_var=no"
14871 rm -f core conftest.err conftest.$ac_objext \
14872 conftest$ac_exeext conftest.$ac_ext
14874 ac_res=`eval echo '${'$as_ac_var'}'`
14875 { echo "$as_me:$LINENO: result: $ac_res" >&5
14876 echo "${ECHO_T}$ac_res" >&6; }
14877 if test `eval echo '${'$as_ac_var'}'` = yes; then
14878 cat >>confdefs.h <<_ACEOF
14879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14890 for ac_func in log log2 log10 exp exp2
14892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14898 cat >conftest.$ac_ext <<_ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14906 #define $ac_func innocuous_$ac_func
14908 /* System header to define __stub macros and hopefully few prototypes,
14909 which can conflict with char $ac_func (); below.
14910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14911 <limits.h> exists even on freestanding compilers. */
14914 # include <limits.h>
14916 # include <assert.h>
14921 /* Override any GCC internal prototype to avoid an error.
14922 Use char because int might match the return type of a GCC
14923 builtin and then its argument prototype would still apply. */
14928 /* The GNU C library defines this for functions which it implements
14929 to always fail with ENOSYS. Some functions are actually named
14930 something starting with __ and the normal name is an alias. */
14931 #if defined __stub_$ac_func || defined __stub___$ac_func
14938 return $ac_func ();
14943 rm -f conftest.$ac_objext conftest$ac_exeext
14944 if { (ac_try="$ac_link"
14945 case "(($ac_try" in
14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950 (eval "$ac_link") 2>conftest.er1
14952 grep -v '^ *+' conftest.er1 >conftest.err
14954 cat conftest.err >&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
14957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14958 { (case "(($ac_try" in
14959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960 *) ac_try_echo=$ac_try;;
14962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14963 (eval "$ac_try") 2>&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; } &&
14967 { ac_try='test -s conftest$ac_exeext'
14968 { (case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_try") 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14977 eval "$as_ac_var=yes"
14979 echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14982 eval "$as_ac_var=no"
14985 rm -f core conftest.err conftest.$ac_objext \
14986 conftest$ac_exeext conftest.$ac_ext
14988 ac_res=`eval echo '${'$as_ac_var'}'`
14989 { echo "$as_me:$LINENO: result: $ac_res" >&5
14990 echo "${ECHO_T}$ac_res" >&6; }
14991 if test `eval echo '${'$as_ac_var'}'` = yes; then
14992 cat >>confdefs.h <<_ACEOF
14993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15004 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
15006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 cat >conftest.$ac_ext <<_ACEOF
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h. */
15018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15020 #define $ac_func innocuous_$ac_func
15022 /* System header to define __stub macros and hopefully few prototypes,
15023 which can conflict with char $ac_func (); below.
15024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15025 <limits.h> exists even on freestanding compilers. */
15028 # include <limits.h>
15030 # include <assert.h>
15035 /* Override any GCC internal prototype to avoid an error.
15036 Use char because int might match the return type of a GCC
15037 builtin and then its argument prototype would still apply. */
15042 /* The GNU C library defines this for functions which it implements
15043 to always fail with ENOSYS. Some functions are actually named
15044 something starting with __ and the normal name is an alias. */
15045 #if defined __stub_$ac_func || defined __stub___$ac_func
15052 return $ac_func ();
15057 rm -f conftest.$ac_objext conftest$ac_exeext
15058 if { (ac_try="$ac_link"
15059 case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_link") 2>conftest.er1
15066 grep -v '^ *+' conftest.er1 >conftest.err
15068 cat conftest.err >&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } &&
15071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15072 { (case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_try") 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; } &&
15081 { ac_try='test -s conftest$ac_exeext'
15082 { (case "(($ac_try" in
15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084 *) ac_try_echo=$ac_try;;
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087 (eval "$ac_try") 2>&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; }; then
15091 eval "$as_ac_var=yes"
15093 echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15096 eval "$as_ac_var=no"
15099 rm -f core conftest.err conftest.$ac_objext \
15100 conftest$ac_exeext conftest.$ac_ext
15102 ac_res=`eval echo '${'$as_ac_var'}'`
15103 { echo "$as_me:$LINENO: result: $ac_res" >&5
15104 echo "${ECHO_T}$ac_res" >&6; }
15105 if test `eval echo '${'$as_ac_var'}'` = yes; then
15106 cat >>confdefs.h <<_ACEOF
15107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15116 for ac_func in isatty mkdtemp mkstemp
15118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 cat >conftest.$ac_ext <<_ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15132 #define $ac_func innocuous_$ac_func
15134 /* System header to define __stub macros and hopefully few prototypes,
15135 which can conflict with char $ac_func (); below.
15136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15137 <limits.h> exists even on freestanding compilers. */
15140 # include <limits.h>
15142 # include <assert.h>
15147 /* Override any GCC internal prototype to avoid an error.
15148 Use char because int might match the return type of a GCC
15149 builtin and then its argument prototype would still apply. */
15154 /* The GNU C library defines this for functions which it implements
15155 to always fail with ENOSYS. Some functions are actually named
15156 something starting with __ and the normal name is an alias. */
15157 #if defined __stub_$ac_func || defined __stub___$ac_func
15164 return $ac_func ();
15169 rm -f conftest.$ac_objext conftest$ac_exeext
15170 if { (ac_try="$ac_link"
15171 case "(($ac_try" in
15172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173 *) ac_try_echo=$ac_try;;
15175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15176 (eval "$ac_link") 2>conftest.er1
15178 grep -v '^ *+' conftest.er1 >conftest.err
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } &&
15183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15184 { (case "(($ac_try" in
15185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186 *) ac_try_echo=$ac_try;;
15188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189 (eval "$ac_try") 2>&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; } &&
15193 { ac_try='test -s conftest$ac_exeext'
15194 { (case "(($ac_try" in
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199 (eval "$ac_try") 2>&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 eval "$as_ac_var=yes"
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15208 eval "$as_ac_var=no"
15211 rm -f core conftest.err conftest.$ac_objext \
15212 conftest$ac_exeext conftest.$ac_ext
15214 ac_res=`eval echo '${'$as_ac_var'}'`
15215 { echo "$as_me:$LINENO: result: $ac_res" >&5
15216 echo "${ECHO_T}$ac_res" >&6; }
15217 if test `eval echo '${'$as_ac_var'}'` = yes; then
15218 cat >>confdefs.h <<_ACEOF
15219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15231 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
15233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15237 echo $ECHO_N "(cached) $ECHO_C" >&6
15239 cat >conftest.$ac_ext <<_ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h. */
15245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15247 #define $ac_func innocuous_$ac_func
15249 /* System header to define __stub macros and hopefully few prototypes,
15250 which can conflict with char $ac_func (); below.
15251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15252 <limits.h> exists even on freestanding compilers. */
15255 # include <limits.h>
15257 # include <assert.h>
15262 /* Override any GCC internal prototype to avoid an error.
15263 Use char because int might match the return type of a GCC
15264 builtin and then its argument prototype would still apply. */
15269 /* The GNU C library defines this for functions which it implements
15270 to always fail with ENOSYS. Some functions are actually named
15271 something starting with __ and the normal name is an alias. */
15272 #if defined __stub_$ac_func || defined __stub___$ac_func
15279 return $ac_func ();
15284 rm -f conftest.$ac_objext conftest$ac_exeext
15285 if { (ac_try="$ac_link"
15286 case "(($ac_try" in
15287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15288 *) ac_try_echo=$ac_try;;
15290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15291 (eval "$ac_link") 2>conftest.er1
15293 grep -v '^ *+' conftest.er1 >conftest.err
15295 cat conftest.err >&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } &&
15298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15299 { (case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_try") 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; } &&
15308 { ac_try='test -s conftest$ac_exeext'
15309 { (case "(($ac_try" in
15310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311 *) ac_try_echo=$ac_try;;
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314 (eval "$ac_try") 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; }; then
15318 eval "$as_ac_var=yes"
15320 echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15323 eval "$as_ac_var=no"
15326 rm -f core conftest.err conftest.$ac_objext \
15327 conftest$ac_exeext conftest.$ac_ext
15329 ac_res=`eval echo '${'$as_ac_var'}'`
15330 { echo "$as_me:$LINENO: result: $ac_res" >&5
15331 echo "${ECHO_T}$ac_res" >&6; }
15332 if test `eval echo '${'$as_ac_var'}'` = yes; then
15333 cat >>confdefs.h <<_ACEOF
15334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15343 for ac_func in strerror strerror_r setenv
15345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 cat >conftest.$ac_ext <<_ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15359 #define $ac_func innocuous_$ac_func
15361 /* System header to define __stub macros and hopefully few prototypes,
15362 which can conflict with char $ac_func (); below.
15363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15364 <limits.h> exists even on freestanding compilers. */
15367 # include <limits.h>
15369 # include <assert.h>
15374 /* Override any GCC internal prototype to avoid an error.
15375 Use char because int might match the return type of a GCC
15376 builtin and then its argument prototype would still apply. */
15381 /* The GNU C library defines this for functions which it implements
15382 to always fail with ENOSYS. Some functions are actually named
15383 something starting with __ and the normal name is an alias. */
15384 #if defined __stub_$ac_func || defined __stub___$ac_func
15391 return $ac_func ();
15396 rm -f conftest.$ac_objext conftest$ac_exeext
15397 if { (ac_try="$ac_link"
15398 case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_link") 2>conftest.er1
15405 grep -v '^ *+' conftest.er1 >conftest.err
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } &&
15410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15411 { (case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_try") 2>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; } &&
15420 { ac_try='test -s conftest$ac_exeext'
15421 { (case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_try") 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 eval "$as_ac_var=yes"
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 eval "$as_ac_var=no"
15438 rm -f core conftest.err conftest.$ac_objext \
15439 conftest$ac_exeext conftest.$ac_ext
15441 ac_res=`eval echo '${'$as_ac_var'}'`
15442 { echo "$as_me:$LINENO: result: $ac_res" >&5
15443 echo "${ECHO_T}$ac_res" >&6; }
15444 if test `eval echo '${'$as_ac_var'}'` = yes; then
15445 cat >>confdefs.h <<_ACEOF
15446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15456 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
15458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 cat >conftest.$ac_ext <<_ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15472 #define $ac_func innocuous_$ac_func
15474 /* System header to define __stub macros and hopefully few prototypes,
15475 which can conflict with char $ac_func (); below.
15476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15477 <limits.h> exists even on freestanding compilers. */
15480 # include <limits.h>
15482 # include <assert.h>
15487 /* Override any GCC internal prototype to avoid an error.
15488 Use char because int might match the return type of a GCC
15489 builtin and then its argument prototype would still apply. */
15494 /* The GNU C library defines this for functions which it implements
15495 to always fail with ENOSYS. Some functions are actually named
15496 something starting with __ and the normal name is an alias. */
15497 #if defined __stub_$ac_func || defined __stub___$ac_func
15504 return $ac_func ();
15509 rm -f conftest.$ac_objext conftest$ac_exeext
15510 if { (ac_try="$ac_link"
15511 case "(($ac_try" in
15512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513 *) ac_try_echo=$ac_try;;
15515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516 (eval "$ac_link") 2>conftest.er1
15518 grep -v '^ *+' conftest.er1 >conftest.err
15520 cat conftest.err >&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } &&
15523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15524 { (case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_try") 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; } &&
15533 { ac_try='test -s conftest$ac_exeext'
15534 { (case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539 (eval "$ac_try") 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 eval "$as_ac_var=yes"
15545 echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15548 eval "$as_ac_var=no"
15551 rm -f core conftest.err conftest.$ac_objext \
15552 conftest$ac_exeext conftest.$ac_ext
15554 ac_res=`eval echo '${'$as_ac_var'}'`
15555 { echo "$as_me:$LINENO: result: $ac_res" >&5
15556 echo "${ECHO_T}$ac_res" >&6; }
15557 if test `eval echo '${'$as_ac_var'}'` = yes; then
15558 cat >>confdefs.h <<_ACEOF
15559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15570 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
15572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 cat >conftest.$ac_ext <<_ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15586 #define $ac_func innocuous_$ac_func
15588 /* System header to define __stub macros and hopefully few prototypes,
15589 which can conflict with char $ac_func (); below.
15590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15591 <limits.h> exists even on freestanding compilers. */
15594 # include <limits.h>
15596 # include <assert.h>
15601 /* Override any GCC internal prototype to avoid an error.
15602 Use char because int might match the return type of a GCC
15603 builtin and then its argument prototype would still apply. */
15608 /* The GNU C library defines this for functions which it implements
15609 to always fail with ENOSYS. Some functions are actually named
15610 something starting with __ and the normal name is an alias. */
15611 #if defined __stub_$ac_func || defined __stub___$ac_func
15618 return $ac_func ();
15623 rm -f conftest.$ac_objext conftest$ac_exeext
15624 if { (ac_try="$ac_link"
15625 case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_link") 2>conftest.er1
15632 grep -v '^ *+' conftest.er1 >conftest.err
15634 cat conftest.err >&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15638 { (case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_try") 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; } &&
15647 { ac_try='test -s conftest$ac_exeext'
15648 { (case "(($ac_try" in
15649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650 *) ac_try_echo=$ac_try;;
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653 (eval "$ac_try") 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }; then
15657 eval "$as_ac_var=yes"
15659 echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15662 eval "$as_ac_var=no"
15665 rm -f core conftest.err conftest.$ac_objext \
15666 conftest$ac_exeext conftest.$ac_ext
15668 ac_res=`eval echo '${'$as_ac_var'}'`
15669 { echo "$as_me:$LINENO: result: $ac_res" >&5
15670 echo "${ECHO_T}$ac_res" >&6; }
15671 if test `eval echo '${'$as_ac_var'}'` = yes; then
15672 cat >>confdefs.h <<_ACEOF
15673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15681 for ac_func in futimes futimens
15683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15684 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 cat >conftest.$ac_ext <<_ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h. */
15695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15697 #define $ac_func innocuous_$ac_func
15699 /* System header to define __stub macros and hopefully few prototypes,
15700 which can conflict with char $ac_func (); below.
15701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15702 <limits.h> exists even on freestanding compilers. */
15705 # include <limits.h>
15707 # include <assert.h>
15712 /* Override any GCC internal prototype to avoid an error.
15713 Use char because int might match the return type of a GCC
15714 builtin and then its argument prototype would still apply. */
15719 /* The GNU C library defines this for functions which it implements
15720 to always fail with ENOSYS. Some functions are actually named
15721 something starting with __ and the normal name is an alias. */
15722 #if defined __stub_$ac_func || defined __stub___$ac_func
15729 return $ac_func ();
15734 rm -f conftest.$ac_objext conftest$ac_exeext
15735 if { (ac_try="$ac_link"
15736 case "(($ac_try" in
15737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738 *) ac_try_echo=$ac_try;;
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741 (eval "$ac_link") 2>conftest.er1
15743 grep -v '^ *+' conftest.er1 >conftest.err
15745 cat conftest.err >&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); } &&
15748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15749 { (case "(($ac_try" in
15750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751 *) ac_try_echo=$ac_try;;
15753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15754 (eval "$ac_try") 2>&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; } &&
15758 { ac_try='test -s conftest$ac_exeext'
15759 { (case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764 (eval "$ac_try") 2>&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; }; then
15768 eval "$as_ac_var=yes"
15770 echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15773 eval "$as_ac_var=no"
15776 rm -f core conftest.err conftest.$ac_objext \
15777 conftest$ac_exeext conftest.$ac_ext
15779 ac_res=`eval echo '${'$as_ac_var'}'`
15780 { echo "$as_me:$LINENO: result: $ac_res" >&5
15781 echo "${ECHO_T}$ac_res" >&6; }
15782 if test `eval echo '${'$as_ac_var'}'` = yes; then
15783 cat >>confdefs.h <<_ACEOF
15784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15790 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15791 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15792 if test "${llvm_cv_c_printf_a+set}" = set; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 ac_cpp='$CPP $CPPFLAGS'
15797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15801 if test "$cross_compiling" = yes; then
15802 llvmac_cv_c_printf_a=no
15804 cat >conftest.$ac_ext <<_ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15813 #include <stdlib.h>
15819 volatile double A, B;
15823 sprintf(Buffer, "%a", A);
15827 if (A != 0x1.999999999999ap-4)
15834 rm -f conftest$ac_exeext
15835 if { (ac_try="$ac_link"
15836 case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841 (eval "$ac_link") 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15845 { (case "(($ac_try" in
15846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847 *) ac_try_echo=$ac_try;;
15849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850 (eval "$ac_try") 2>&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }; then
15854 llvm_cv_c_printf_a=yes
15856 echo "$as_me: program exited with status $ac_status" >&5
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 ( exit $ac_status )
15861 llvmac_cv_c_printf_a=no
15863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15868 ac_cpp='$CPP $CPPFLAGS'
15869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15874 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15875 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15876 if test "$llvm_cv_c_printf_a" = "yes"; then
15878 cat >>confdefs.h <<\_ACEOF
15879 #define HAVE_PRINTF_A 1
15886 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15887 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15888 if test "${ac_cv_func_rand48+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15893 ac_cpp='$CXXCPP $CPPFLAGS'
15894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15898 cat >conftest.$ac_ext <<_ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15904 #include <stdlib.h>
15908 srand48(0);lrand48();drand48();
15913 rm -f conftest.$ac_objext
15914 if { (ac_try="$ac_compile"
15915 case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_compile") 2>conftest.er1
15922 grep -v '^ *+' conftest.er1 >conftest.err
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } &&
15927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15928 { (case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_try") 2>&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; } &&
15937 { ac_try='test -s conftest.$ac_objext'
15938 { (case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_try") 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; }; then
15947 ac_cv_func_rand48=yes
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 ac_cv_func_rand48=no
15955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15957 ac_cpp='$CPP $CPPFLAGS'
15958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15964 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15965 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15967 if test "$ac_cv_func_rand48" = "yes" ; then
15969 cat >>confdefs.h <<\_ACEOF
15970 #define HAVE_RAND48 1
15976 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15977 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15978 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15979 echo $ECHO_N "(cached) $ECHO_C" >&6
15981 cat >conftest.$ac_ext <<_ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h. */
15987 $ac_includes_default
15992 char *p = (char *) arc4random;
16000 rm -f conftest.$ac_objext
16001 if { (ac_try="$ac_compile"
16002 case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_compile") 2>conftest.er1
16009 grep -v '^ *+' conftest.er1 >conftest.err
16011 cat conftest.err >&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); } &&
16014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16015 { (case "(($ac_try" in
16016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16017 *) ac_try_echo=$ac_try;;
16019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16020 (eval "$ac_try") 2>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; } &&
16024 { ac_try='test -s conftest.$ac_objext'
16025 { (case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_try") 2>&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; }; then
16034 ac_cv_have_decl_arc4random=yes
16036 echo "$as_me: failed program was:" >&5
16037 sed 's/^/| /' conftest.$ac_ext >&5
16039 ac_cv_have_decl_arc4random=no
16042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
16045 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
16046 if test $ac_cv_have_decl_arc4random = yes; then
16048 cat >>confdefs.h <<_ACEOF
16049 #define HAVE_DECL_ARC4RANDOM 1
16054 cat >>confdefs.h <<_ACEOF
16055 #define HAVE_DECL_ARC4RANDOM 0
16063 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
16064 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
16065 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
16066 echo $ECHO_N "(cached) $ECHO_C" >&6
16068 cat >conftest.$ac_ext <<_ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h. */
16074 $ac_includes_default
16079 char *p = (char *) strerror_s;
16087 rm -f conftest.$ac_objext
16088 if { (ac_try="$ac_compile"
16089 case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_compile") 2>conftest.er1
16096 grep -v '^ *+' conftest.er1 >conftest.err
16098 cat conftest.err >&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } &&
16101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16102 { (case "(($ac_try" in
16103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104 *) ac_try_echo=$ac_try;;
16106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16107 (eval "$ac_try") 2>&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; } &&
16111 { ac_try='test -s conftest.$ac_objext'
16112 { (case "(($ac_try" in
16113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16114 *) ac_try_echo=$ac_try;;
16116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16117 (eval "$ac_try") 2>&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; }; then
16121 ac_cv_have_decl_strerror_s=yes
16123 echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16126 ac_cv_have_decl_strerror_s=no
16129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16131 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
16132 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
16133 if test $ac_cv_have_decl_strerror_s = yes; then
16135 cat >>confdefs.h <<_ACEOF
16136 #define HAVE_DECL_STRERROR_S 1
16141 cat >>confdefs.h <<_ACEOF
16142 #define HAVE_DECL_STRERROR_S 0
16150 if test "$llvm_cv_os_type" = "MingW" ; then
16151 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
16152 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
16153 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16156 ac_check_lib_save_LIBS=$LIBS
16158 cat >conftest.$ac_ext <<_ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h. */
16165 /* Override any GCC internal prototype to avoid an error.
16166 Use char because int might match the return type of a GCC
16167 builtin and then its argument prototype would still apply. */
16180 rm -f conftest.$ac_objext conftest$ac_exeext
16181 if { (ac_try="$ac_link"
16182 case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_link") 2>conftest.er1
16189 grep -v '^ *+' conftest.er1 >conftest.err
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } &&
16194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16195 { (case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200 (eval "$ac_try") 2>&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest$ac_exeext'
16205 { (case "(($ac_try" in
16206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207 *) ac_try_echo=$ac_try;;
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210 (eval "$ac_try") 2>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 ac_cv_lib_gcc__alloca=yes
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16219 ac_cv_lib_gcc__alloca=no
16222 rm -f core conftest.err conftest.$ac_objext \
16223 conftest$ac_exeext conftest.$ac_ext
16224 LIBS=$ac_check_lib_save_LIBS
16226 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
16227 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
16228 if test $ac_cv_lib_gcc__alloca = yes; then
16230 cat >>confdefs.h <<\_ACEOF
16231 #define HAVE__ALLOCA 1
16236 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
16237 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
16238 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 ac_check_lib_save_LIBS=$LIBS
16243 cat >conftest.$ac_ext <<_ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16250 /* Override any GCC internal prototype to avoid an error.
16251 Use char because int might match the return type of a GCC
16252 builtin and then its argument prototype would still apply. */
16260 return __alloca ();
16265 rm -f conftest.$ac_objext conftest$ac_exeext
16266 if { (ac_try="$ac_link"
16267 case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_link") 2>conftest.er1
16274 grep -v '^ *+' conftest.er1 >conftest.err
16276 cat conftest.err >&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } &&
16279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16280 { (case "(($ac_try" in
16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282 *) ac_try_echo=$ac_try;;
16284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285 (eval "$ac_try") 2>&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try='test -s conftest$ac_exeext'
16290 { (case "(($ac_try" in
16291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295 (eval "$ac_try") 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }; then
16299 ac_cv_lib_gcc___alloca=yes
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16304 ac_cv_lib_gcc___alloca=no
16307 rm -f core conftest.err conftest.$ac_objext \
16308 conftest$ac_exeext conftest.$ac_ext
16309 LIBS=$ac_check_lib_save_LIBS
16311 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
16312 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
16313 if test $ac_cv_lib_gcc___alloca = yes; then
16315 cat >>confdefs.h <<\_ACEOF
16316 #define HAVE___ALLOCA 1
16321 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
16322 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
16323 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 ac_check_lib_save_LIBS=$LIBS
16328 cat >conftest.$ac_ext <<_ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16335 /* Override any GCC internal prototype to avoid an error.
16336 Use char because int might match the return type of a GCC
16337 builtin and then its argument prototype would still apply. */
16345 return __chkstk ();
16350 rm -f conftest.$ac_objext conftest$ac_exeext
16351 if { (ac_try="$ac_link"
16352 case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357 (eval "$ac_link") 2>conftest.er1
16359 grep -v '^ *+' conftest.er1 >conftest.err
16361 cat conftest.err >&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } &&
16364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16365 { (case "(($ac_try" in
16366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16367 *) ac_try_echo=$ac_try;;
16369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16370 (eval "$ac_try") 2>&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; } &&
16374 { ac_try='test -s conftest$ac_exeext'
16375 { (case "(($ac_try" in
16376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377 *) ac_try_echo=$ac_try;;
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380 (eval "$ac_try") 2>&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; }; then
16384 ac_cv_lib_gcc___chkstk=yes
16386 echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.$ac_ext >&5
16389 ac_cv_lib_gcc___chkstk=no
16392 rm -f core conftest.err conftest.$ac_objext \
16393 conftest$ac_exeext conftest.$ac_ext
16394 LIBS=$ac_check_lib_save_LIBS
16396 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
16397 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
16398 if test $ac_cv_lib_gcc___chkstk = yes; then
16400 cat >>confdefs.h <<\_ACEOF
16401 #define HAVE___CHKSTK 1
16406 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
16407 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
16408 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 ac_check_lib_save_LIBS=$LIBS
16413 cat >conftest.$ac_ext <<_ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16420 /* Override any GCC internal prototype to avoid an error.
16421 Use char because int might match the return type of a GCC
16422 builtin and then its argument prototype would still apply. */
16430 return ___chkstk ();
16435 rm -f conftest.$ac_objext conftest$ac_exeext
16436 if { (ac_try="$ac_link"
16437 case "(($ac_try" in
16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442 (eval "$ac_link") 2>conftest.er1
16444 grep -v '^ *+' conftest.er1 >conftest.err
16446 cat conftest.err >&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); } &&
16449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16450 { (case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_try") 2>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; } &&
16459 { ac_try='test -s conftest$ac_exeext'
16460 { (case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465 (eval "$ac_try") 2>&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 ac_cv_lib_gcc____chkstk=yes
16471 echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16474 ac_cv_lib_gcc____chkstk=no
16477 rm -f core conftest.err conftest.$ac_objext \
16478 conftest$ac_exeext conftest.$ac_ext
16479 LIBS=$ac_check_lib_save_LIBS
16481 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
16482 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
16483 if test $ac_cv_lib_gcc____chkstk = yes; then
16485 cat >>confdefs.h <<\_ACEOF
16486 #define HAVE____CHKSTK 1
16492 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
16493 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
16494 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
16495 echo $ECHO_N "(cached) $ECHO_C" >&6
16497 ac_check_lib_save_LIBS=$LIBS
16499 cat >conftest.$ac_ext <<_ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
16504 /* end confdefs.h. */
16506 /* Override any GCC internal prototype to avoid an error.
16507 Use char because int might match the return type of a GCC
16508 builtin and then its argument prototype would still apply. */
16516 return __ashldi3 ();
16521 rm -f conftest.$ac_objext conftest$ac_exeext
16522 if { (ac_try="$ac_link"
16523 case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_link") 2>conftest.er1
16530 grep -v '^ *+' conftest.er1 >conftest.err
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } &&
16535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest$ac_exeext'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_cv_lib_gcc___ashldi3=yes
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16560 ac_cv_lib_gcc___ashldi3=no
16563 rm -f core conftest.err conftest.$ac_objext \
16564 conftest$ac_exeext conftest.$ac_ext
16565 LIBS=$ac_check_lib_save_LIBS
16567 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16568 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16569 if test $ac_cv_lib_gcc___ashldi3 = yes; then
16571 cat >>confdefs.h <<\_ACEOF
16572 #define HAVE___ASHLDI3 1
16577 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16578 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16579 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16582 ac_check_lib_save_LIBS=$LIBS
16584 cat >conftest.$ac_ext <<_ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16591 /* Override any GCC internal prototype to avoid an error.
16592 Use char because int might match the return type of a GCC
16593 builtin and then its argument prototype would still apply. */
16601 return __ashrdi3 ();
16606 rm -f conftest.$ac_objext conftest$ac_exeext
16607 if { (ac_try="$ac_link"
16608 case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_link") 2>conftest.er1
16615 grep -v '^ *+' conftest.er1 >conftest.err
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16621 { (case "(($ac_try" in
16622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623 *) ac_try_echo=$ac_try;;
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626 (eval "$ac_try") 2>&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; } &&
16630 { ac_try='test -s conftest$ac_exeext'
16631 { (case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636 (eval "$ac_try") 2>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 ac_cv_lib_gcc___ashrdi3=yes
16642 echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16645 ac_cv_lib_gcc___ashrdi3=no
16648 rm -f core conftest.err conftest.$ac_objext \
16649 conftest$ac_exeext conftest.$ac_ext
16650 LIBS=$ac_check_lib_save_LIBS
16652 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16653 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16654 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16656 cat >>confdefs.h <<\_ACEOF
16657 #define HAVE___ASHRDI3 1
16662 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16663 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16664 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 ac_check_lib_save_LIBS=$LIBS
16669 cat >conftest.$ac_ext <<_ACEOF
16672 cat confdefs.h >>conftest.$ac_ext
16673 cat >>conftest.$ac_ext <<_ACEOF
16674 /* end confdefs.h. */
16676 /* Override any GCC internal prototype to avoid an error.
16677 Use char because int might match the return type of a GCC
16678 builtin and then its argument prototype would still apply. */
16686 return __divdi3 ();
16691 rm -f conftest.$ac_objext conftest$ac_exeext
16692 if { (ac_try="$ac_link"
16693 case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_link") 2>conftest.er1
16700 grep -v '^ *+' conftest.er1 >conftest.err
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
16705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16706 { (case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711 (eval "$ac_try") 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest$ac_exeext'
16716 { (case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_try") 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
16725 ac_cv_lib_gcc___divdi3=yes
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16730 ac_cv_lib_gcc___divdi3=no
16733 rm -f core conftest.err conftest.$ac_objext \
16734 conftest$ac_exeext conftest.$ac_ext
16735 LIBS=$ac_check_lib_save_LIBS
16737 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16738 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16739 if test $ac_cv_lib_gcc___divdi3 = yes; then
16741 cat >>confdefs.h <<\_ACEOF
16742 #define HAVE___DIVDI3 1
16747 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16748 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16749 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 ac_check_lib_save_LIBS=$LIBS
16754 cat >conftest.$ac_ext <<_ACEOF
16757 cat confdefs.h >>conftest.$ac_ext
16758 cat >>conftest.$ac_ext <<_ACEOF
16759 /* end confdefs.h. */
16761 /* Override any GCC internal prototype to avoid an error.
16762 Use char because int might match the return type of a GCC
16763 builtin and then its argument prototype would still apply. */
16771 return __fixdfdi ();
16776 rm -f conftest.$ac_objext conftest$ac_exeext
16777 if { (ac_try="$ac_link"
16778 case "(($ac_try" in
16779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780 *) ac_try_echo=$ac_try;;
16782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783 (eval "$ac_link") 2>conftest.er1
16785 grep -v '^ *+' conftest.er1 >conftest.err
16787 cat conftest.err >&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } &&
16790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16791 { (case "(($ac_try" in
16792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793 *) ac_try_echo=$ac_try;;
16795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16796 (eval "$ac_try") 2>&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; } &&
16800 { ac_try='test -s conftest$ac_exeext'
16801 { (case "(($ac_try" in
16802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803 *) ac_try_echo=$ac_try;;
16805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16806 (eval "$ac_try") 2>&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; }; then
16810 ac_cv_lib_gcc___fixdfdi=yes
16812 echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16815 ac_cv_lib_gcc___fixdfdi=no
16818 rm -f core conftest.err conftest.$ac_objext \
16819 conftest$ac_exeext conftest.$ac_ext
16820 LIBS=$ac_check_lib_save_LIBS
16822 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16823 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16824 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16826 cat >>confdefs.h <<\_ACEOF
16827 #define HAVE___FIXDFDI 1
16832 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16833 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16834 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 ac_check_lib_save_LIBS=$LIBS
16839 cat >conftest.$ac_ext <<_ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h. */
16846 /* Override any GCC internal prototype to avoid an error.
16847 Use char because int might match the return type of a GCC
16848 builtin and then its argument prototype would still apply. */
16856 return __fixsfdi ();
16861 rm -f conftest.$ac_objext conftest$ac_exeext
16862 if { (ac_try="$ac_link"
16863 case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_link") 2>conftest.er1
16870 grep -v '^ *+' conftest.er1 >conftest.err
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } &&
16875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; } &&
16885 { ac_try='test -s conftest$ac_exeext'
16886 { (case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_try") 2>&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
16895 ac_cv_lib_gcc___fixsfdi=yes
16897 echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 ac_cv_lib_gcc___fixsfdi=no
16903 rm -f core conftest.err conftest.$ac_objext \
16904 conftest$ac_exeext conftest.$ac_ext
16905 LIBS=$ac_check_lib_save_LIBS
16907 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16908 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16909 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16911 cat >>confdefs.h <<\_ACEOF
16912 #define HAVE___FIXSFDI 1
16917 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16918 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16919 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 ac_check_lib_save_LIBS=$LIBS
16924 cat >conftest.$ac_ext <<_ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16931 /* Override any GCC internal prototype to avoid an error.
16932 Use char because int might match the return type of a GCC
16933 builtin and then its argument prototype would still apply. */
16937 char __floatdidf ();
16941 return __floatdidf ();
16946 rm -f conftest.$ac_objext conftest$ac_exeext
16947 if { (ac_try="$ac_link"
16948 case "(($ac_try" in
16949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950 *) ac_try_echo=$ac_try;;
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953 (eval "$ac_link") 2>conftest.er1
16955 grep -v '^ *+' conftest.er1 >conftest.err
16957 cat conftest.err >&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } &&
16960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16961 { (case "(($ac_try" in
16962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966 (eval "$ac_try") 2>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest$ac_exeext'
16971 { (case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_try") 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; }; then
16980 ac_cv_lib_gcc___floatdidf=yes
16982 echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16985 ac_cv_lib_gcc___floatdidf=no
16988 rm -f core conftest.err conftest.$ac_objext \
16989 conftest$ac_exeext conftest.$ac_ext
16990 LIBS=$ac_check_lib_save_LIBS
16992 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16993 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16994 if test $ac_cv_lib_gcc___floatdidf = yes; then
16996 cat >>confdefs.h <<\_ACEOF
16997 #define HAVE___FLOATDIDF 1
17002 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
17003 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
17004 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 ac_check_lib_save_LIBS=$LIBS
17009 cat >conftest.$ac_ext <<_ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17016 /* Override any GCC internal prototype to avoid an error.
17017 Use char because int might match the return type of a GCC
17018 builtin and then its argument prototype would still apply. */
17026 return __lshrdi3 ();
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17040 grep -v '^ *+' conftest.er1 >conftest.err
17042 cat conftest.err >&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } &&
17045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17046 { (case "(($ac_try" in
17047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048 *) ac_try_echo=$ac_try;;
17050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17051 (eval "$ac_try") 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try='test -s conftest$ac_exeext'
17056 { (case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_try") 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; }; then
17065 ac_cv_lib_gcc___lshrdi3=yes
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17070 ac_cv_lib_gcc___lshrdi3=no
17073 rm -f core conftest.err conftest.$ac_objext \
17074 conftest$ac_exeext conftest.$ac_ext
17075 LIBS=$ac_check_lib_save_LIBS
17077 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
17078 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
17079 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
17081 cat >>confdefs.h <<\_ACEOF
17082 #define HAVE___LSHRDI3 1
17087 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
17088 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
17089 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
17090 echo $ECHO_N "(cached) $ECHO_C" >&6
17092 ac_check_lib_save_LIBS=$LIBS
17094 cat >conftest.$ac_ext <<_ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17101 /* Override any GCC internal prototype to avoid an error.
17102 Use char because int might match the return type of a GCC
17103 builtin and then its argument prototype would still apply. */
17111 return __moddi3 ();
17116 rm -f conftest.$ac_objext conftest$ac_exeext
17117 if { (ac_try="$ac_link"
17118 case "(($ac_try" in
17119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120 *) ac_try_echo=$ac_try;;
17122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17123 (eval "$ac_link") 2>conftest.er1
17125 grep -v '^ *+' conftest.er1 >conftest.err
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17131 { (case "(($ac_try" in
17132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133 *) ac_try_echo=$ac_try;;
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136 (eval "$ac_try") 2>&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; } &&
17140 { ac_try='test -s conftest$ac_exeext'
17141 { (case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146 (eval "$ac_try") 2>&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; }; then
17150 ac_cv_lib_gcc___moddi3=yes
17152 echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17155 ac_cv_lib_gcc___moddi3=no
17158 rm -f core conftest.err conftest.$ac_objext \
17159 conftest$ac_exeext conftest.$ac_ext
17160 LIBS=$ac_check_lib_save_LIBS
17162 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
17163 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
17164 if test $ac_cv_lib_gcc___moddi3 = yes; then
17166 cat >>confdefs.h <<\_ACEOF
17167 #define HAVE___MODDI3 1
17172 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
17173 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
17174 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 ac_check_lib_save_LIBS=$LIBS
17179 cat >conftest.$ac_ext <<_ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h. */
17186 /* Override any GCC internal prototype to avoid an error.
17187 Use char because int might match the return type of a GCC
17188 builtin and then its argument prototype would still apply. */
17196 return __udivdi3 ();
17201 rm -f conftest.$ac_objext conftest$ac_exeext
17202 if { (ac_try="$ac_link"
17203 case "(($ac_try" in
17204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205 *) ac_try_echo=$ac_try;;
17207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17208 (eval "$ac_link") 2>conftest.er1
17210 grep -v '^ *+' conftest.er1 >conftest.err
17212 cat conftest.err >&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } &&
17215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17216 { (case "(($ac_try" in
17217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218 *) ac_try_echo=$ac_try;;
17220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221 (eval "$ac_try") 2>&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; } &&
17225 { ac_try='test -s conftest$ac_exeext'
17226 { (case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_try") 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; }; then
17235 ac_cv_lib_gcc___udivdi3=yes
17237 echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17240 ac_cv_lib_gcc___udivdi3=no
17243 rm -f core conftest.err conftest.$ac_objext \
17244 conftest$ac_exeext conftest.$ac_ext
17245 LIBS=$ac_check_lib_save_LIBS
17247 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
17248 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
17249 if test $ac_cv_lib_gcc___udivdi3 = yes; then
17251 cat >>confdefs.h <<\_ACEOF
17252 #define HAVE___UDIVDI3 1
17257 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
17258 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
17259 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17262 ac_check_lib_save_LIBS=$LIBS
17264 cat >conftest.$ac_ext <<_ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h. */
17271 /* Override any GCC internal prototype to avoid an error.
17272 Use char because int might match the return type of a GCC
17273 builtin and then its argument prototype would still apply. */
17281 return __umoddi3 ();
17286 rm -f conftest.$ac_objext conftest$ac_exeext
17287 if { (ac_try="$ac_link"
17288 case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_link") 2>conftest.er1
17295 grep -v '^ *+' conftest.er1 >conftest.err
17297 cat conftest.err >&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } &&
17300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17301 { (case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_try") 2>&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; } &&
17310 { ac_try='test -s conftest$ac_exeext'
17311 { (case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_try") 2>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
17320 ac_cv_lib_gcc___umoddi3=yes
17322 echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17325 ac_cv_lib_gcc___umoddi3=no
17328 rm -f core conftest.err conftest.$ac_objext \
17329 conftest$ac_exeext conftest.$ac_ext
17330 LIBS=$ac_check_lib_save_LIBS
17332 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
17333 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
17334 if test $ac_cv_lib_gcc___umoddi3 = yes; then
17336 cat >>confdefs.h <<\_ACEOF
17337 #define HAVE___UMODDI3 1
17343 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
17344 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
17345 if test "${ac_cv_lib_gcc___main+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 ac_check_lib_save_LIBS=$LIBS
17350 cat >conftest.$ac_ext <<_ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h. */
17357 /* Override any GCC internal prototype to avoid an error.
17358 Use char because int might match the return type of a GCC
17359 builtin and then its argument prototype would still apply. */
17372 rm -f conftest.$ac_objext conftest$ac_exeext
17373 if { (ac_try="$ac_link"
17374 case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_link") 2>conftest.er1
17381 grep -v '^ *+' conftest.er1 >conftest.err
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
17386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17387 { (case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_try") 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest$ac_exeext'
17397 { (case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_try") 2>&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; }; then
17406 ac_cv_lib_gcc___main=yes
17408 echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17411 ac_cv_lib_gcc___main=no
17414 rm -f core conftest.err conftest.$ac_objext \
17415 conftest$ac_exeext conftest.$ac_ext
17416 LIBS=$ac_check_lib_save_LIBS
17418 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
17419 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
17420 if test $ac_cv_lib_gcc___main = yes; then
17422 cat >>confdefs.h <<\_ACEOF
17423 #define HAVE___MAIN 1
17428 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
17429 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
17430 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 ac_check_lib_save_LIBS=$LIBS
17435 cat >conftest.$ac_ext <<_ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h. */
17442 /* Override any GCC internal prototype to avoid an error.
17443 Use char because int might match the return type of a GCC
17444 builtin and then its argument prototype would still apply. */
17452 return __cmpdi2 ();
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (ac_try="$ac_link"
17459 case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_link") 2>conftest.er1
17466 grep -v '^ *+' conftest.er1 >conftest.err
17468 cat conftest.err >&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } &&
17471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17472 { (case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_try") 2>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } &&
17481 { ac_try='test -s conftest$ac_exeext'
17482 { (case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_try") 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 ac_cv_lib_gcc___cmpdi2=yes
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17496 ac_cv_lib_gcc___cmpdi2=no
17499 rm -f core conftest.err conftest.$ac_objext \
17500 conftest$ac_exeext conftest.$ac_ext
17501 LIBS=$ac_check_lib_save_LIBS
17503 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
17504 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
17505 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
17507 cat >>confdefs.h <<\_ACEOF
17508 #define HAVE___CMPDI2 1
17515 if test "$llvm_cv_os_type" = "MingW" ; then
17516 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
17517 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
17518 cat >conftest.$ac_ext <<_ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17526 #include <windows.h>
17527 #include <imagehlp.h>
17528 extern void foo(PENUMLOADED_MODULES_CALLBACK);
17529 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
17533 rm -f conftest.$ac_objext
17534 if { (ac_try="$ac_compile"
17535 case "(($ac_try" in
17536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17537 *) ac_try_echo=$ac_try;;
17539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17540 (eval "$ac_compile") 2>conftest.er1
17542 grep -v '^ *+' conftest.er1 >conftest.err
17544 cat conftest.err >&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } &&
17547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17548 { (case "(($ac_try" in
17549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550 *) ac_try_echo=$ac_try;;
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_try") 2>&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; } &&
17557 { ac_try='test -s conftest.$ac_objext'
17558 { (case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_try") 2>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17568 { echo "$as_me:$LINENO: result: yes" >&5
17569 echo "${ECHO_T}yes" >&6; }
17570 llvm_cv_win32_elmcb_pcstr="PCSTR"
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17577 { echo "$as_me:$LINENO: result: no" >&5
17578 echo "${ECHO_T}no" >&6; }
17579 llvm_cv_win32_elmcb_pcstr="PSTR"
17583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17585 cat >>confdefs.h <<_ACEOF
17586 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17593 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17594 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17595 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17600 ac_cpp='$CXXCPP $CPPFLAGS'
17601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17605 cat >conftest.$ac_ext <<_ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17620 rm -f conftest.$ac_objext
17621 if { (ac_try="$ac_compile"
17622 case "(($ac_try" in
17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624 *) ac_try_echo=$ac_try;;
17626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17627 (eval "$ac_compile") 2>conftest.er1
17629 grep -v '^ *+' conftest.er1 >conftest.err
17631 cat conftest.err >&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } &&
17634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17635 { (case "(($ac_try" in
17636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640 (eval "$ac_try") 2>&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; } &&
17644 { ac_try='test -s conftest.$ac_objext'
17645 { (case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_try") 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; }; then
17654 ac_cv_func_isnan_in_math_h=yes
17656 echo "$as_me: failed program was:" >&5
17657 sed 's/^/| /' conftest.$ac_ext >&5
17659 ac_cv_func_isnan_in_math_h=no
17662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17664 ac_cpp='$CPP $CPPFLAGS'
17665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17671 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17672 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17675 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17677 cat >>confdefs.h <<\_ACEOF
17678 #define HAVE_ISNAN_IN_MATH_H 1
17684 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17685 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17686 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17691 ac_cpp='$CXXCPP $CPPFLAGS'
17692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17696 cat >conftest.$ac_ext <<_ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_compile") 2>conftest.er1
17720 grep -v '^ *+' conftest.er1 >conftest.err
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } &&
17725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest.$ac_objext'
17736 { (case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_try") 2>&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
17745 ac_cv_func_isnan_in_cmath=yes
17747 echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17750 ac_cv_func_isnan_in_cmath=no
17753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17755 ac_cpp='$CPP $CPPFLAGS'
17756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17762 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17763 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17765 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17767 cat >>confdefs.h <<\_ACEOF
17768 #define HAVE_ISNAN_IN_CMATH 1
17774 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17775 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17776 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17777 echo $ECHO_N "(cached) $ECHO_C" >&6
17781 ac_cpp='$CXXCPP $CPPFLAGS'
17782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17786 cat >conftest.$ac_ext <<_ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h. */
17796 float f; std::isnan(f);
17801 rm -f conftest.$ac_objext
17802 if { (ac_try="$ac_compile"
17803 case "(($ac_try" in
17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808 (eval "$ac_compile") 2>conftest.er1
17810 grep -v '^ *+' conftest.er1 >conftest.err
17812 cat conftest.err >&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); } &&
17815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17816 { (case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_try") 2>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try='test -s conftest.$ac_objext'
17826 { (case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_try") 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_cv_func_std_isnan_in_cmath=yes
17837 echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17840 ac_cv_func_std_isnan_in_cmath=no
17843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17845 ac_cpp='$CPP $CPPFLAGS'
17846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17852 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17853 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17855 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17857 cat >>confdefs.h <<\_ACEOF
17858 #define HAVE_STD_ISNAN_IN_CMATH 1
17866 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17867 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17868 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17869 echo $ECHO_N "(cached) $ECHO_C" >&6
17873 ac_cpp='$CXXCPP $CPPFLAGS'
17874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17878 cat >conftest.$ac_ext <<_ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h. */
17893 rm -f conftest.$ac_objext
17894 if { (ac_try="$ac_compile"
17895 case "(($ac_try" in
17896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17897 *) ac_try_echo=$ac_try;;
17899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17900 (eval "$ac_compile") 2>conftest.er1
17902 grep -v '^ *+' conftest.er1 >conftest.err
17904 cat conftest.err >&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
17907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17908 { (case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_try") 2>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; } &&
17917 { ac_try='test -s conftest.$ac_objext'
17918 { (case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_try") 2>&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17927 ac_cv_func_isinf_in_math_h=yes
17929 echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17932 ac_cv_func_isinf_in_math_h=no
17935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17937 ac_cpp='$CPP $CPPFLAGS'
17938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17944 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17945 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17947 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17949 cat >>confdefs.h <<\_ACEOF
17950 #define HAVE_ISINF_IN_MATH_H 1
17956 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17957 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17958 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17963 ac_cpp='$CXXCPP $CPPFLAGS'
17964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17968 cat >conftest.$ac_ext <<_ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h. */
17983 rm -f conftest.$ac_objext
17984 if { (ac_try="$ac_compile"
17985 case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_compile") 2>conftest.er1
17992 grep -v '^ *+' conftest.er1 >conftest.err
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } &&
17997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17998 { (case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_try") 2>&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; } &&
18007 { ac_try='test -s conftest.$ac_objext'
18008 { (case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_try") 2>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 ac_cv_func_isinf_in_cmath=yes
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 ac_cv_func_isinf_in_cmath=no
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 ac_cpp='$CPP $CPPFLAGS'
18028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18034 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18035 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18037 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18039 cat >>confdefs.h <<\_ACEOF
18040 #define HAVE_ISINF_IN_CMATH 1
18046 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18047 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18048 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18053 ac_cpp='$CXXCPP $CPPFLAGS'
18054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18058 cat >conftest.$ac_ext <<_ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h. */
18068 float f; std::isinf(f);
18073 rm -f conftest.$ac_objext
18074 if { (ac_try="$ac_compile"
18075 case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_compile") 2>conftest.er1
18082 grep -v '^ *+' conftest.er1 >conftest.err
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
18087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18088 { (case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_try") 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; } &&
18097 { ac_try='test -s conftest.$ac_objext'
18098 { (case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_try") 2>&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; }; then
18107 ac_cv_func_std_isinf_in_cmath=yes
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 ac_cv_func_std_isinf_in_cmath=no
18115 rm -f core conftest.err conftest.$ac_objext 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 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18125 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18127 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18129 cat >>confdefs.h <<\_ACEOF
18130 #define HAVE_STD_ISINF_IN_CMATH 1
18136 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18137 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18138 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 ac_cpp='$CXXCPP $CPPFLAGS'
18144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18148 cat >conftest.$ac_ext <<_ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154 #include <ieeefp.h>
18158 float f; finite(f);
18163 rm -f conftest.$ac_objext
18164 if { (ac_try="$ac_compile"
18165 case "(($ac_try" in
18166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167 *) ac_try_echo=$ac_try;;
18169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18170 (eval "$ac_compile") 2>conftest.er1
18172 grep -v '^ *+' conftest.er1 >conftest.err
18174 cat conftest.err >&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } &&
18177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18178 { (case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_try") 2>&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); }; } &&
18187 { ac_try='test -s conftest.$ac_objext'
18188 { (case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193 (eval "$ac_try") 2>&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; }; then
18197 ac_cv_func_finite_in_ieeefp_h=yes
18199 echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18202 ac_cv_func_finite_in_ieeefp_h=no
18205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18207 ac_cpp='$CPP $CPPFLAGS'
18208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18214 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18215 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18217 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18219 cat >>confdefs.h <<\_ACEOF
18220 #define HAVE_FINITE_IN_IEEEFP_H 1
18227 if test "$llvm_cv_platform_type" = "Unix" ; then
18230 for ac_header in stdlib.h unistd.h
18232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18239 ac_res=`eval echo '${'$as_ac_Header'}'`
18240 { echo "$as_me:$LINENO: result: $ac_res" >&5
18241 echo "${ECHO_T}$ac_res" >&6; }
18243 # Is the header compilable?
18244 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18246 cat >conftest.$ac_ext <<_ACEOF
18249 cat confdefs.h >>conftest.$ac_ext
18250 cat >>conftest.$ac_ext <<_ACEOF
18251 /* end confdefs.h. */
18252 $ac_includes_default
18253 #include <$ac_header>
18255 rm -f conftest.$ac_objext
18256 if { (ac_try="$ac_compile"
18257 case "(($ac_try" in
18258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259 *) ac_try_echo=$ac_try;;
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262 (eval "$ac_compile") 2>conftest.er1
18264 grep -v '^ *+' conftest.er1 >conftest.err
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
18269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; } &&
18279 { ac_try='test -s conftest.$ac_objext'
18280 { (case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_try") 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18289 ac_header_compiler=yes
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18294 ac_header_compiler=no
18297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18299 echo "${ECHO_T}$ac_header_compiler" >&6; }
18301 # Is the header present?
18302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18304 cat >conftest.$ac_ext <<_ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18310 #include <$ac_header>
18312 if { (ac_try="$ac_cpp conftest.$ac_ext"
18313 case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18320 grep -v '^ *+' conftest.er1 >conftest.err
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } >/dev/null; then
18325 if test -s conftest.err; then
18326 ac_cpp_err=$ac_c_preproc_warn_flag
18327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18334 if test -z "$ac_cpp_err"; then
18335 ac_header_preproc=yes
18337 echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18340 ac_header_preproc=no
18343 rm -f conftest.err conftest.$ac_ext
18344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18345 echo "${ECHO_T}$ac_header_preproc" >&6; }
18347 # So? What about this header?
18348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18354 ac_header_preproc=yes
18357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18370 ## ------------------------------------ ##
18371 ## Report this to http://llvm.org/bugs/ ##
18372 ## ------------------------------------ ##
18374 ) | sed "s/^/$as_me: WARNING: /" >&2
18377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 eval "$as_ac_Header=\$ac_header_preproc"
18384 ac_res=`eval echo '${'$as_ac_Header'}'`
18385 { echo "$as_me:$LINENO: result: $ac_res" >&5
18386 echo "${ECHO_T}$ac_res" >&6; }
18389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18390 cat >>confdefs.h <<_ACEOF
18391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18399 for ac_func in getpagesize
18401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18402 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18405 echo $ECHO_N "(cached) $ECHO_C" >&6
18407 cat >conftest.$ac_ext <<_ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18415 #define $ac_func innocuous_$ac_func
18417 /* System header to define __stub macros and hopefully few prototypes,
18418 which can conflict with char $ac_func (); below.
18419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18420 <limits.h> exists even on freestanding compilers. */
18423 # include <limits.h>
18425 # include <assert.h>
18430 /* Override any GCC internal prototype to avoid an error.
18431 Use char because int might match the return type of a GCC
18432 builtin and then its argument prototype would still apply. */
18437 /* The GNU C library defines this for functions which it implements
18438 to always fail with ENOSYS. Some functions are actually named
18439 something starting with __ and the normal name is an alias. */
18440 #if defined __stub_$ac_func || defined __stub___$ac_func
18447 return $ac_func ();
18452 rm -f conftest.$ac_objext conftest$ac_exeext
18453 if { (ac_try="$ac_link"
18454 case "(($ac_try" in
18455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456 *) ac_try_echo=$ac_try;;
18458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459 (eval "$ac_link") 2>conftest.er1
18461 grep -v '^ *+' conftest.er1 >conftest.err
18463 cat conftest.err >&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); } &&
18466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18467 { (case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_try") 2>&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; } &&
18476 { ac_try='test -s conftest$ac_exeext'
18477 { (case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482 (eval "$ac_try") 2>&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; }; then
18486 eval "$as_ac_var=yes"
18488 echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18491 eval "$as_ac_var=no"
18494 rm -f core conftest.err conftest.$ac_objext \
18495 conftest$ac_exeext conftest.$ac_ext
18497 ac_res=`eval echo '${'$as_ac_var'}'`
18498 { echo "$as_me:$LINENO: result: $ac_res" >&5
18499 echo "${ECHO_T}$ac_res" >&6; }
18500 if test `eval echo '${'$as_ac_var'}'` = yes; then
18501 cat >>confdefs.h <<_ACEOF
18502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18508 { echo "$as_me:$LINENO: checking for working mmap" >&5
18509 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18510 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 if test "$cross_compiling" = yes; then
18514 ac_cv_func_mmap_fixed_mapped=no
18516 cat >conftest.$ac_ext <<_ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18522 $ac_includes_default
18523 /* malloc might have been renamed as rpl_malloc. */
18526 /* Thanks to Mike Haertel and Jim Avera for this test.
18527 Here is a matrix of mmap possibilities:
18528 mmap private not fixed
18529 mmap private fixed at somewhere currently unmapped
18530 mmap private fixed at somewhere already mapped
18531 mmap shared not fixed
18532 mmap shared fixed at somewhere currently unmapped
18533 mmap shared fixed at somewhere already mapped
18534 For private mappings, we should verify that changes cannot be read()
18535 back from the file, nor mmap's back from the file at a different
18536 address. (There have been systems where private was not correctly
18537 implemented like the infamous i386 svr4.0, and systems where the
18538 VM page cache was not coherent with the file system buffer cache
18539 like early versions of FreeBSD and possibly contemporary NetBSD.)
18540 For shared mappings, we should conversely verify that changes get
18541 propagated back to all the places they're supposed to be.
18543 Grep wants private fixed already mapped.
18544 The main things grep needs to know about mmap are:
18545 * does it exist and is it safe to write into the mmap'd area
18546 * how to use it (BSD variants) */
18549 #include <sys/mman.h>
18551 #if !STDC_HEADERS && !HAVE_STDLIB_H
18555 /* This mess was copied from the GNU getpagesize.h. */
18556 #if !HAVE_GETPAGESIZE
18557 /* Assume that all systems that can run configure have sys/param.h. */
18558 # if !HAVE_SYS_PARAM_H
18559 # define HAVE_SYS_PARAM_H 1
18562 # ifdef _SC_PAGESIZE
18563 # define getpagesize() sysconf(_SC_PAGESIZE)
18564 # else /* no _SC_PAGESIZE */
18565 # if HAVE_SYS_PARAM_H
18566 # include <sys/param.h>
18567 # ifdef EXEC_PAGESIZE
18568 # define getpagesize() EXEC_PAGESIZE
18569 # else /* no EXEC_PAGESIZE */
18571 # define getpagesize() NBPG * CLSIZE
18574 # endif /* no CLSIZE */
18575 # else /* no NBPG */
18577 # define getpagesize() NBPC
18578 # else /* no NBPC */
18580 # define getpagesize() PAGESIZE
18581 # endif /* PAGESIZE */
18582 # endif /* no NBPC */
18583 # endif /* no NBPG */
18584 # endif /* no EXEC_PAGESIZE */
18585 # else /* no HAVE_SYS_PARAM_H */
18586 # define getpagesize() 8192 /* punt totally */
18587 # endif /* no HAVE_SYS_PARAM_H */
18588 # endif /* no _SC_PAGESIZE */
18590 #endif /* no HAVE_GETPAGESIZE */
18595 char *data, *data2, *data3;
18599 pagesize = getpagesize ();
18601 /* First, make a file with some known garbage in it. */
18602 data = (char *) malloc (pagesize);
18605 for (i = 0; i < pagesize; ++i)
18606 *(data + i) = rand ();
18608 fd = creat ("conftest.mmap", 0600);
18611 if (write (fd, data, pagesize) != pagesize)
18615 /* Next, try to mmap the file at a fixed address which already has
18616 something else allocated at it. If we can, also make sure that
18617 we see the same garbage. */
18618 fd = open ("conftest.mmap", O_RDWR);
18621 data2 = (char *) malloc (2 * pagesize);
18624 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18625 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18626 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18628 for (i = 0; i < pagesize; ++i)
18629 if (*(data + i) != *(data2 + i))
18632 /* Finally, make sure that changes to the mapped area do not
18633 percolate back to the file as seen by read(). (This is a bug on
18634 some variants of i386 svr4.0.) */
18635 for (i = 0; i < pagesize; ++i)
18636 *(data2 + i) = *(data2 + i) + 1;
18637 data3 = (char *) malloc (pagesize);
18640 if (read (fd, data3, pagesize) != pagesize)
18642 for (i = 0; i < pagesize; ++i)
18643 if (*(data + i) != *(data3 + i))
18649 rm -f conftest$ac_exeext
18650 if { (ac_try="$ac_link"
18651 case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_link") 2>&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18660 { (case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_try") 2>&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; }; then
18669 ac_cv_func_mmap_fixed_mapped=yes
18671 echo "$as_me: program exited with status $ac_status" >&5
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18675 ( exit $ac_status )
18676 ac_cv_func_mmap_fixed_mapped=no
18678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18683 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18684 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18685 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18687 cat >>confdefs.h <<\_ACEOF
18688 #define HAVE_MMAP 1
18692 rm -f conftest.mmap
18694 { echo "$as_me:$LINENO: checking for mmap of files" >&5
18695 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18696 if test "${ac_cv_func_mmap_file+set}" = set; then
18697 echo $ECHO_N "(cached) $ECHO_C" >&6
18700 ac_cpp='$CPP $CPPFLAGS'
18701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18705 if test "$cross_compiling" = yes; then
18706 ac_cv_func_mmap_file=no
18708 cat >conftest.$ac_ext <<_ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18716 #include <sys/types.h>
18717 #include <sys/mman.h>
18725 fd = creat ("foo",0777);
18726 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18728 return (fd != (int) MAP_FAILED);
18733 rm -f conftest$ac_exeext
18734 if { (ac_try="$ac_link"
18735 case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740 (eval "$ac_link") 2>&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18744 { (case "(($ac_try" in
18745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18746 *) ac_try_echo=$ac_try;;
18748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18749 (eval "$ac_try") 2>&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; }; then
18753 ac_cv_func_mmap_file=yes
18755 echo "$as_me: program exited with status $ac_status" >&5
18756 echo "$as_me: failed program was:" >&5
18757 sed 's/^/| /' conftest.$ac_ext >&5
18759 ( exit $ac_status )
18760 ac_cv_func_mmap_file=no
18762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18767 ac_cpp='$CPP $CPPFLAGS'
18768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18774 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18775 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18776 if test "$ac_cv_func_mmap_file" = yes; then
18778 cat >>confdefs.h <<\_ACEOF
18779 #define HAVE_MMAP_FILE
18786 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18787 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18788 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18789 echo $ECHO_N "(cached) $ECHO_C" >&6
18791 if test "$llvm_cv_os_type" = "Interix" ; then
18792 ac_cv_need_dev_zero_for_mmap=yes
18794 ac_cv_need_dev_zero_for_mmap=no
18798 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18799 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18800 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18802 cat >>confdefs.h <<\_ACEOF
18803 #define NEED_DEV_ZERO_FOR_MMAP 1
18808 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18810 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18811 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18813 if test "$ac_cv_func_mmap_file" = "no"
18815 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18816 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18820 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18821 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18823 ac_cpp='$CXXCPP $CPPFLAGS'
18824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18828 cat >conftest.$ac_ext <<_ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18837 volatile unsigned long val = 1;
18838 __sync_synchronize();
18839 __sync_val_compare_and_swap(&val, 1, 0);
18840 __sync_add_and_fetch(&val, 1);
18841 __sync_sub_and_fetch(&val, 1);
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (ac_try="$ac_link"
18849 case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_link") 2>conftest.er1
18856 grep -v '^ *+' conftest.er1 >conftest.err
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18862 { (case "(($ac_try" in
18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_try") 2>&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try='test -s conftest$ac_exeext'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18882 { echo "$as_me:$LINENO: result: yes" >&5
18883 echo "${ECHO_T}yes" >&6; }
18885 cat >>confdefs.h <<\_ACEOF
18886 #define LLVM_HAS_ATOMICS 1
18891 echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18895 { echo "$as_me:$LINENO: result: no" >&5
18896 echo "${ECHO_T}no" >&6; }
18898 cat >>confdefs.h <<\_ACEOF
18899 #define LLVM_HAS_ATOMICS 0
18902 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18903 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18907 rm -f core conftest.err conftest.$ac_objext \
18908 conftest$ac_exeext conftest.$ac_ext
18910 ac_cpp='$CPP $CPPFLAGS'
18911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18917 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18918 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18919 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18920 if test "${llvm_cv_linux_mixed+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18924 ac_cpp='$CPP $CPPFLAGS'
18925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18929 cat >conftest.$ac_ext <<_ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18936 error: Not x86-64 even if uname says so!
18947 rm -f conftest.$ac_objext
18948 if { (ac_try="$ac_compile"
18949 case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_compile") 2>conftest.er1
18956 grep -v '^ *+' conftest.er1 >conftest.err
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } &&
18961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18962 { (case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_try") 2>&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; } &&
18971 { ac_try='test -s conftest.$ac_objext'
18972 { (case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977 (eval "$ac_try") 2>&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; }; then
18981 llvm_cv_linux_mixed=no
18983 echo "$as_me: failed program was:" >&5
18984 sed 's/^/| /' conftest.$ac_ext >&5
18986 llvm_cv_linux_mixed=yes
18989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18991 ac_cpp='$CPP $CPPFLAGS'
18992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18998 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18999 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19001 if test "$llvm_cv_linux_mixed" = "yes"; then
19002 llvm_cv_target_arch="x86"
19008 for ac_func in __dso_handle
19010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19014 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 cat >conftest.$ac_ext <<_ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19024 #define $ac_func innocuous_$ac_func
19026 /* System header to define __stub macros and hopefully few prototypes,
19027 which can conflict with char $ac_func (); below.
19028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19029 <limits.h> exists even on freestanding compilers. */
19032 # include <limits.h>
19034 # include <assert.h>
19039 /* Override any GCC internal prototype to avoid an error.
19040 Use char because int might match the return type of a GCC
19041 builtin and then its argument prototype would still apply. */
19046 /* The GNU C library defines this for functions which it implements
19047 to always fail with ENOSYS. Some functions are actually named
19048 something starting with __ and the normal name is an alias. */
19049 #if defined __stub_$ac_func || defined __stub___$ac_func
19056 return $ac_func ();
19061 rm -f conftest.$ac_objext conftest$ac_exeext
19062 if { (ac_try="$ac_link"
19063 case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_link") 2>conftest.er1
19070 grep -v '^ *+' conftest.er1 >conftest.err
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } &&
19075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19076 { (case "(($ac_try" in
19077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078 *) ac_try_echo=$ac_try;;
19080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081 (eval "$ac_try") 2>&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; } &&
19085 { ac_try='test -s conftest$ac_exeext'
19086 { (case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_try") 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 eval "$as_ac_var=yes"
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19100 eval "$as_ac_var=no"
19103 rm -f core conftest.err conftest.$ac_objext \
19104 conftest$ac_exeext conftest.$ac_ext
19106 ac_res=`eval echo '${'$as_ac_var'}'`
19107 { echo "$as_me:$LINENO: result: $ac_res" >&5
19108 echo "${ECHO_T}$ac_res" >&6; }
19109 if test `eval echo '${'$as_ac_var'}'` = yes; then
19110 cat >>confdefs.h <<_ACEOF
19111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19118 SHLIBEXT=$llvm_shlib_ext
19121 if test "${prefix}" = "NONE" ; then
19122 prefix="/usr/local"
19124 eval LLVM_PREFIX="${prefix}";
19125 eval LLVM_BINDIR="${prefix}/bin";
19126 eval LLVM_DATADIR="${prefix}/share/llvm";
19127 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19128 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19129 eval LLVM_INCLUDEDIR="${prefix}/include";
19130 eval LLVM_INFODIR="${prefix}/info";
19131 eval LLVM_MANDIR="${prefix}/man";
19132 LLVM_CONFIGTIME=`date`
19143 if test "${ENABLE_TIMESTAMPS}" = "0"; then
19144 LLVM_CONFIGTIME="(timestamp not enabled)"
19148 cat >>confdefs.h <<_ACEOF
19149 #define LLVM_PREFIX "$LLVM_PREFIX"
19153 cat >>confdefs.h <<_ACEOF
19154 #define LLVM_BINDIR "$LLVM_BINDIR"
19158 cat >>confdefs.h <<_ACEOF
19159 #define LLVM_DATADIR "$LLVM_DATADIR"
19163 cat >>confdefs.h <<_ACEOF
19164 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19168 cat >>confdefs.h <<_ACEOF
19169 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19173 cat >>confdefs.h <<_ACEOF
19174 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19178 cat >>confdefs.h <<_ACEOF
19179 #define LLVM_INFODIR "$LLVM_INFODIR"
19183 cat >>confdefs.h <<_ACEOF
19184 #define LLVM_MANDIR "$LLVM_MANDIR"
19188 cat >>confdefs.h <<_ACEOF
19189 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19193 cat >>confdefs.h <<_ACEOF
19194 #define LLVM_HOST_TRIPLE "$host"
19198 cat >>confdefs.h <<_ACEOF
19199 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
19203 if test "$BINDINGS_TO_BUILD" = auto ; then
19204 BINDINGS_TO_BUILD=""
19205 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19206 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19209 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19215 binding_prereqs_failed=0
19216 for a_binding in $BINDINGS_TO_BUILD ; do
19217 case "$a_binding" in
19219 if test "x$OCAMLC" = x ; then
19220 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19221 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19222 binding_prereqs_failed=1
19224 if test "x$OCAMLDEP" = x ; then
19225 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19226 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19227 binding_prereqs_failed=1
19229 if test "x$OCAMLOPT" = x ; then
19230 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19231 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19233 if test "x$with_ocaml_libdir" != xauto ; then
19234 OCAML_LIBDIR=$with_ocaml_libdir
19237 ocaml_stdlib="`"$OCAMLC" -where`"
19238 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19240 # ocaml stdlib is beneath our prefix; use stdlib
19241 OCAML_LIBDIR=$ocaml_stdlib
19244 # ocaml stdlib is outside our prefix; use libdir/ocaml
19245 OCAML_LIBDIR=${prefix}/lib/ocaml
19252 if test "$binding_prereqs_failed" = 1 ; then
19253 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19254 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19255 { (exit 1); exit 1; }; }
19258 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19259 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19260 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19261 echo $ECHO_N "(cached) $ECHO_C" >&6
19264 ac_cpp='$CXXCPP $CPPFLAGS'
19265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19269 oldcxxflags="$CXXFLAGS"
19270 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
19271 cat >conftest.$ac_ext <<_ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 template <typename T> struct X { void __attribute__((noinline)) f() {} };
19286 rm -f conftest.$ac_objext
19287 if { (ac_try="$ac_compile"
19288 case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_compile") 2>conftest.er1
19295 grep -v '^ *+' conftest.er1 >conftest.err
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
19300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19301 { (case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_try") 2>&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; } &&
19310 { ac_try='test -s conftest.$ac_objext'
19311 { (case "(($ac_try" in
19312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313 *) ac_try_echo=$ac_try;;
19315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316 (eval "$ac_try") 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
19320 llvm_cv_cxx_visibility_inlines_hidden=yes
19322 echo "$as_me: failed program was:" >&5
19323 sed 's/^/| /' conftest.$ac_ext >&5
19325 llvm_cv_cxx_visibility_inlines_hidden=no
19328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19329 CXXFLAGS="$oldcxxflags"
19331 ac_cpp='$CPP $CPPFLAGS'
19332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19338 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19339 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19340 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19341 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19344 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19349 if test "$llvm_cv_link_use_r" = "yes" ; then
19356 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19357 RDYNAMIC="-rdynamic"
19364 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
19371 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19373 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19375 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19377 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19379 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
19382 ac_config_files="$ac_config_files Makefile.config"
19385 ac_config_files="$ac_config_files llvm.spec"
19388 ac_config_files="$ac_config_files docs/doxygen.cfg"
19391 if test "${clang_src_root}" = ""; then
19392 clang_src_root="$srcdir/tools/clang"
19394 if test -f ${clang_src_root}/README.txt; then
19395 configh="include/clang/Config/config.h"
19396 doxy="docs/doxygen.cfg"
19397 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
19399 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
19403 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
19406 test "x$program_prefix" = "xNONE" && program_prefix=""
19410 ac_config_commands="$ac_config_commands setup"
19412 ac_config_commands="$ac_config_commands Makefile"
19415 ac_config_commands="$ac_config_commands Makefile.common"
19418 ac_config_commands="$ac_config_commands examples/Makefile"
19421 ac_config_commands="$ac_config_commands lib/Makefile"
19424 ac_config_commands="$ac_config_commands test/Makefile"
19427 ac_config_commands="$ac_config_commands test/Makefile.tests"
19430 ac_config_commands="$ac_config_commands unittests/Makefile"
19433 ac_config_commands="$ac_config_commands tools/Makefile"
19436 ac_config_commands="$ac_config_commands utils/Makefile"
19439 ac_config_commands="$ac_config_commands projects/Makefile"
19442 ac_config_commands="$ac_config_commands bindings/Makefile"
19445 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19449 cat >confcache <<\_ACEOF
19450 # This file is a shell script that caches the results of configure
19451 # tests run on this system so they can be shared between configure
19452 # scripts and configure runs, see configure's option --config-cache.
19453 # It is not useful on other systems. If it contains results you don't
19454 # want to keep, you may remove or edit it.
19456 # config.status only pays attention to the cache file if you give it
19457 # the --recheck option to rerun configure.
19459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19461 # following values.
19465 # The following way of writing the cache mishandles newlines in values,
19466 # but we know of no workaround that is simple, portable, and efficient.
19467 # So, we kill variables containing newlines.
19468 # Ultrix sh set writes to stderr and can't be redirected directly,
19469 # and sets the high bit in the cache file unless we assign to the vars.
19471 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19472 eval ac_val=\$$ac_var
19476 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19477 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19480 _ | IFS | as_nl) ;; #(
19481 *) $as_unset $ac_var ;;
19487 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19488 *${as_nl}ac_space=\ *)
19489 # `set' does not quote correctly, so add quotes (double-quote
19490 # substitution turns \\\\ into \\, and sed turns \\ into \).
19493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19496 # `set' quotes correctly as required by POSIX, so do not add quotes.
19497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19508 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19510 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19511 if test -w "$cache_file"; then
19512 test "x$cache_file" != "x/dev/null" &&
19513 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19514 echo "$as_me: updating cache $cache_file" >&6;}
19515 cat confcache >$cache_file
19517 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19518 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19523 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19524 # Let make expand exec_prefix.
19525 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19527 DEFS=-DHAVE_CONFIG_H
19531 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19532 # 1. Remove the extension, and $U if already installed.
19533 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19534 ac_i=`echo "$ac_i" | sed "$ac_script"`
19535 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19536 # will be set to the directory where LIBOBJS objects are built.
19537 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19538 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19540 LIBOBJS=$ac_libobjs
19542 LTLIBOBJS=$ac_ltlibobjs
19546 : ${CONFIG_STATUS=./config.status}
19547 ac_clean_files_save=$ac_clean_files
19548 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19549 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19550 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19551 cat >$CONFIG_STATUS <<_ACEOF
19553 # Generated by $as_me.
19554 # Run this file to recreate the current configuration.
19555 # Compiler output produced by configure, useful for debugging
19556 # configure, is in config.log if it exists.
19559 ac_cs_recheck=false
19561 SHELL=\${CONFIG_SHELL-$SHELL}
19564 cat >>$CONFIG_STATUS <<\_ACEOF
19565 ## --------------------- ##
19566 ## M4sh Initialization. ##
19567 ## --------------------- ##
19569 # Be Bourne compatible
19570 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19573 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19574 # is contrary to our usage. Disable this feature.
19575 alias -g '${1+"$@"}'='"$@"'
19576 setopt NO_GLOB_SUBST
19578 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
19580 BIN_SH=xpg4; export BIN_SH # for Tru64
19581 DUALCASE=1; export DUALCASE # for MKS sh
19585 # Avoid depending upon Character Ranges.
19586 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19587 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19588 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19589 as_cr_digits='0123456789'
19590 as_cr_alnum=$as_cr_Letters$as_cr_digits
19592 # The user is always right.
19593 if test "${PATH_SEPARATOR+set}" != set; then
19594 echo "#! /bin/sh" >conf$$.sh
19595 echo "exit 0" >>conf$$.sh
19597 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19605 # Support unset when possible.
19606 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19614 # We need space, tab and new line, in precisely that order. Quoting is
19615 # there to prevent editors from complaining about space-tab.
19616 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19617 # splitting by setting IFS to empty value.)
19622 # Find who we are. Look in the path if we contain no directory separator.
19624 *[\\/]* ) as_myself=$0 ;;
19625 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19626 for as_dir in $PATH
19629 test -z "$as_dir" && as_dir=.
19630 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19636 # We did not find ourselves, most probably we were run as `sh COMMAND'
19637 # in which case we are not to be found in the path.
19638 if test "x$as_myself" = x; then
19641 if test ! -f "$as_myself"; then
19642 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19643 { (exit 1); exit 1; }
19646 # Work around bugs in pre-3.0 UWIN ksh.
19647 for as_var in ENV MAIL MAILPATH
19648 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19656 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19657 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19658 LC_TELEPHONE LC_TIME
19660 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19661 eval $as_var=C; export $as_var
19663 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19667 # Required to use basename.
19668 if expr a : '\(a\)' >/dev/null 2>&1 &&
19669 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19675 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19676 as_basename=basename
19682 # Name of the executable.
19683 as_me=`$as_basename -- "$0" ||
19684 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19685 X"$0" : 'X\(//\)$' \| \
19686 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19688 sed '/^.*\/\([^/][^/]*\)\/*$/{
19707 as_lineno_1=$LINENO
19708 as_lineno_2=$LINENO
19709 test "x$as_lineno_1" != "x$as_lineno_2" &&
19710 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19712 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19713 # uniformly replaced by the line number. The first 'sed' inserts a
19714 # line-number line after each line using $LINENO; the second 'sed'
19715 # does the real work. The second script uses 'N' to pair each
19716 # line-number line with the line containing $LINENO, and appends
19717 # trailing '-' during substitution so that $LINENO is not a special
19718 # case at line end.
19719 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19720 # scripts with optimization help from Paolo Bonzini. Blame Lee
19721 # E. McMahon (1931-1989) for sed's syntax. :-)
19733 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19736 ' >$as_me.lineno &&
19737 chmod +x "$as_me.lineno" ||
19738 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19739 { (exit 1); exit 1; }; }
19741 # Don't try to exec as it changes $[0], causing all sort of problems
19742 # (the dirname of $[0] is not the place where we might find the
19743 # original and so on. Autoconf is especially sensitive to this).
19744 . "./$as_me.lineno"
19745 # Exit status is that of the last command.
19750 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19756 ECHO_C= ECHO_N= ECHO_T=
19757 case `echo -n x` in
19759 case `echo 'x\c'` in
19760 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19767 if expr a : '\(a\)' >/dev/null 2>&1 &&
19768 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19774 rm -f conf$$ conf$$.exe conf$$.file
19775 if test -d conf$$.dir; then
19776 rm -f conf$$.dir/conf$$.file
19782 if ln -s conf$$.file conf$$ 2>/dev/null; then
19784 # ... but there are two gotchas:
19785 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19786 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19787 # In both cases, we have to default to `cp -p'.
19788 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19790 elif ln conf$$.file conf$$ 2>/dev/null; then
19795 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19796 rmdir conf$$.dir 2>/dev/null
19798 if mkdir -p . 2>/dev/null; then
19801 test -d ./-p && rmdir ./-p
19805 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
19806 # systems may use methods other than mode bits to determine executability.
19807 cat >conf$$.file <<_ASEOF
19811 chmod +x conf$$.file
19812 if test -x conf$$.file >/dev/null 2>&1; then
19813 as_executable_p="test -x"
19819 # Sed expression to map a string onto a valid CPP name.
19820 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19822 # Sed expression to map a string onto a valid variable name.
19823 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19828 # Save the log message, to keep $[0] and so on meaningful, and to
19829 # report actual input values of CONFIG_FILES etc. instead of their
19830 # values after options handling.
19832 This file was extended by LLVM $as_me 3.5svn, which was
19833 generated by GNU Autoconf 2.60. Invocation command line was
19835 CONFIG_FILES = $CONFIG_FILES
19836 CONFIG_HEADERS = $CONFIG_HEADERS
19837 CONFIG_LINKS = $CONFIG_LINKS
19838 CONFIG_COMMANDS = $CONFIG_COMMANDS
19841 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19846 cat >>$CONFIG_STATUS <<_ACEOF
19847 # Files that config.status was made for.
19848 config_files="$ac_config_files"
19849 config_headers="$ac_config_headers"
19850 config_commands="$ac_config_commands"
19854 cat >>$CONFIG_STATUS <<\_ACEOF
19856 \`$as_me' instantiates files from templates according to the
19857 current configuration.
19859 Usage: $0 [OPTIONS] [FILE]...
19861 -h, --help print this help, then exit
19862 -V, --version print version number, then exit
19863 -q, --quiet do not print progress messages
19864 -d, --debug don't remove temporary files
19865 --recheck update $as_me by reconfiguring in the same conditions
19866 --file=FILE[:TEMPLATE]
19867 instantiate the configuration file FILE
19868 --header=FILE[:TEMPLATE]
19869 instantiate the configuration header FILE
19871 Configuration files:
19874 Configuration headers:
19877 Configuration commands:
19880 Report bugs to <bug-autoconf@gnu.org>."
19883 cat >>$CONFIG_STATUS <<_ACEOF
19885 LLVM config.status 3.5svn
19886 configured by $0, generated by GNU Autoconf 2.60,
19887 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19889 Copyright (C) 2006 Free Software Foundation, Inc.
19890 This config.status script is free software; the Free Software Foundation
19891 gives unlimited permission to copy, distribute and modify it."
19898 cat >>$CONFIG_STATUS <<\_ACEOF
19899 # If no file are specified by the user, then we need to provide default
19900 # value. By we need to know if files were specified by the user.
19906 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19907 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19918 # Handling of the options.
19919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19921 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19922 echo "$ac_cs_version"; exit ;;
19923 --debug | --debu | --deb | --de | --d | -d )
19925 --file | --fil | --fi | --f )
19927 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19928 ac_need_defaults=false;;
19929 --header | --heade | --head | --hea )
19931 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19932 ac_need_defaults=false;;
19934 # Conflict between --help and --header
19935 { echo "$as_me: error: ambiguous option: $1
19936 Try \`$0 --help' for more information." >&2
19937 { (exit 1); exit 1; }; };;
19938 --help | --hel | -h )
19939 echo "$ac_cs_usage"; exit ;;
19940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19941 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19944 # This is an error.
19945 -*) { echo "$as_me: error: unrecognized option: $1
19946 Try \`$0 --help' for more information." >&2
19947 { (exit 1); exit 1; }; } ;;
19949 *) ac_config_targets="$ac_config_targets $1"
19950 ac_need_defaults=false ;;
19956 ac_configure_extra_args=
19958 if $ac_cs_silent; then
19960 ac_configure_extra_args="$ac_configure_extra_args --silent"
19964 cat >>$CONFIG_STATUS <<_ACEOF
19965 if \$ac_cs_recheck; then
19966 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19967 CONFIG_SHELL=$SHELL
19968 export CONFIG_SHELL
19969 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19973 cat >>$CONFIG_STATUS <<\_ACEOF
19977 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19978 ## Running $as_me. ##
19984 cat >>$CONFIG_STATUS <<_ACEOF
19988 llvm_src="${srcdir}"
19992 cat >>$CONFIG_STATUS <<\_ACEOF
19994 # Handling of arguments.
19995 for ac_config_target in $ac_config_targets
19997 case $ac_config_target in
19998 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19999 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
20000 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20001 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20002 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20003 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20004 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
20005 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20006 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20007 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20008 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
20009 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
20010 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
20011 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20012 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20013 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20014 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20015 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20016 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20017 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20018 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20019 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20020 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20021 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20022 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20023 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20025 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20026 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20027 { (exit 1); exit 1; }; };;
20032 # If the user did not use the arguments to specify the items to instantiate,
20033 # then the envvar interface is used. Set only those that are not.
20034 # We use the long form for the default assignment because of an extremely
20035 # bizarre bug on SunOS 4.1.3.
20036 if $ac_need_defaults; then
20037 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20038 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20039 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20042 # Have a temporary directory for convenience. Make it in the build tree
20043 # simply because there is no reason against having it here, and in addition,
20044 # creating and moving files from /tmp can sometimes cause problems.
20045 # Hook for its removal unless debugging.
20046 # Note that there is a small window in which the directory will not be cleaned:
20047 # after its creation but before its name has been assigned to `$tmp'.
20051 trap 'exit_status=$?
20052 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20054 trap '{ (exit 1); exit 1; }' 1 2 13 15
20056 # Create a (secure) tmp directory for tmp files.
20059 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20060 test -n "$tmp" && test -d "$tmp"
20063 tmp=./conf$$-$RANDOM
20064 (umask 077 && mkdir "$tmp")
20067 echo "$me: cannot create a temporary directory in ." >&2
20068 { (exit 1); exit 1; }
20072 # Set up the sed scripts for CONFIG_FILES section.
20075 # No need to generate the scripts if there are no CONFIG_FILES.
20076 # This happens for instance when ./config.status config.h
20077 if test -n "$CONFIG_FILES"; then
20084 for ac_last_try in false false false false false :; do
20085 cat >conf$$subs.sed <<_ACEOF
20086 SHELL!$SHELL$ac_delim
20087 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20088 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20089 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20090 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20091 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20092 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20093 exec_prefix!$exec_prefix$ac_delim
20094 prefix!$prefix$ac_delim
20095 program_transform_name!$program_transform_name$ac_delim
20096 bindir!$bindir$ac_delim
20097 sbindir!$sbindir$ac_delim
20098 libexecdir!$libexecdir$ac_delim
20099 datarootdir!$datarootdir$ac_delim
20100 datadir!$datadir$ac_delim
20101 sysconfdir!$sysconfdir$ac_delim
20102 sharedstatedir!$sharedstatedir$ac_delim
20103 localstatedir!$localstatedir$ac_delim
20104 includedir!$includedir$ac_delim
20105 oldincludedir!$oldincludedir$ac_delim
20106 docdir!$docdir$ac_delim
20107 infodir!$infodir$ac_delim
20108 htmldir!$htmldir$ac_delim
20109 dvidir!$dvidir$ac_delim
20110 pdfdir!$pdfdir$ac_delim
20111 psdir!$psdir$ac_delim
20112 libdir!$libdir$ac_delim
20113 localedir!$localedir$ac_delim
20114 mandir!$mandir$ac_delim
20115 DEFS!$DEFS$ac_delim
20116 ECHO_C!$ECHO_C$ac_delim
20117 ECHO_N!$ECHO_N$ac_delim
20118 ECHO_T!$ECHO_T$ac_delim
20119 LIBS!$LIBS$ac_delim
20120 build_alias!$build_alias$ac_delim
20121 host_alias!$host_alias$ac_delim
20122 target_alias!$target_alias$ac_delim
20123 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
20124 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
20125 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20127 CFLAGS!$CFLAGS$ac_delim
20128 LDFLAGS!$LDFLAGS$ac_delim
20129 CPPFLAGS!$CPPFLAGS$ac_delim
20130 ac_ct_CC!$ac_ct_CC$ac_delim
20131 EXEEXT!$EXEEXT$ac_delim
20132 OBJEXT!$OBJEXT$ac_delim
20134 CXXFLAGS!$CXXFLAGS$ac_delim
20135 ac_ct_CXX!$ac_ct_CXX$ac_delim
20137 subdirs!$subdirs$ac_delim
20138 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
20139 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
20140 build!$build$ac_delim
20141 build_cpu!$build_cpu$ac_delim
20142 build_vendor!$build_vendor$ac_delim
20143 build_os!$build_os$ac_delim
20144 host!$host$ac_delim
20145 host_cpu!$host_cpu$ac_delim
20146 host_vendor!$host_vendor$ac_delim
20147 host_os!$host_os$ac_delim
20148 target!$target$ac_delim
20149 target_cpu!$target_cpu$ac_delim
20150 target_vendor!$target_vendor$ac_delim
20151 target_os!$target_os$ac_delim
20153 HOST_OS!$HOST_OS$ac_delim
20154 TARGET_OS!$TARGET_OS$ac_delim
20155 LINKALL!$LINKALL$ac_delim
20156 NOLINKALL!$NOLINKALL$ac_delim
20157 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20158 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20159 ARCH!$ARCH$ac_delim
20160 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
20161 HOST_ARCH!$HOST_ARCH$ac_delim
20162 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20163 BUILD_CC!$BUILD_CC$ac_delim
20164 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20165 BUILD_CXX!$BUILD_CXX$ac_delim
20166 CVSBUILD!$CVSBUILD$ac_delim
20167 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
20168 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
20169 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
20170 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
20171 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
20172 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
20173 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20174 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20175 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20176 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
20177 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20178 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20179 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20180 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20181 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
20185 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20187 elif $ac_last_try; then
20188 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20189 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20190 { (exit 1); exit 1; }; }
20192 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20196 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20197 if test -n "$ac_eof"; then
20198 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20199 ac_eof=`expr $ac_eof + 1`
20202 cat >>$CONFIG_STATUS <<_ACEOF
20203 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20207 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20208 s/^/s,@/; s/!/@,|#_!!_#|/
20211 s/'"$ac_delim"'$/,g/; t
20213 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20214 ' >>$CONFIG_STATUS <conf$$subs.sed
20215 rm -f conf$$subs.sed
20216 cat >>$CONFIG_STATUS <<_ACEOF
20222 for ac_last_try in false false false false false :; do
20223 cat >conf$$subs.sed <<_ACEOF
20224 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20225 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
20226 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
20227 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20228 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
20229 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
20230 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
20231 ENABLE_PIC!$ENABLE_PIC$ac_delim
20232 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20233 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
20234 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
20235 ALL_TARGETS!$ALL_TARGETS$ac_delim
20236 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20237 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20238 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20239 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20240 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20241 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20242 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20243 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
20244 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
20245 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20246 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
20247 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
20248 ifGNUmake!$ifGNUmake$ac_delim
20249 LN_S!$LN_S$ac_delim
20253 DATE!$DATE$ac_delim
20254 FIND!$FIND$ac_delim
20255 GREP!$GREP$ac_delim
20256 MKDIR!$MKDIR$ac_delim
20258 RANLIB!$RANLIB$ac_delim
20263 BINPWD!$BINPWD$ac_delim
20264 GRAPHVIZ!$GRAPHVIZ$ac_delim
20267 NEATO!$NEATO$ac_delim
20268 TWOPI!$TWOPI$ac_delim
20269 CIRCO!$CIRCO$ac_delim
20271 DOTTY!$DOTTY$ac_delim
20272 XDOT!$XDOT$ac_delim
20273 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20274 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20275 INSTALL_DATA!$INSTALL_DATA$ac_delim
20276 BZIP2!$BZIP2$ac_delim
20278 DOXYGEN!$DOXYGEN$ac_delim
20279 GROFF!$GROFF$ac_delim
20280 GZIPBIN!$GZIPBIN$ac_delim
20281 PDFROFF!$PDFROFF$ac_delim
20283 OCAMLC!$OCAMLC$ac_delim
20284 OCAMLOPT!$OCAMLOPT$ac_delim
20285 OCAMLDEP!$OCAMLDEP$ac_delim
20286 OCAMLDOC!$OCAMLDOC$ac_delim
20288 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
20289 EGREP!$EGREP$ac_delim
20290 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20291 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20292 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
20293 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
20294 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
20295 PYTHON!$PYTHON$ac_delim
20296 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
20297 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
20298 USE_UDIS86!$USE_UDIS86$ac_delim
20299 USE_OPROFILE!$USE_OPROFILE$ac_delim
20300 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
20301 XML2CONFIG!$XML2CONFIG$ac_delim
20302 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
20303 LIBXML2_INC!$LIBXML2_INC$ac_delim
20304 CXXCPP!$CXXCPP$ac_delim
20305 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20306 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
20307 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20308 MMAP_FILE!$MMAP_FILE$ac_delim
20309 SHLIBEXT!$SHLIBEXT$ac_delim
20310 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20311 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20312 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20313 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20314 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20315 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20316 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20317 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20318 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20319 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20320 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20323 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20325 elif $ac_last_try; then
20326 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20327 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20328 { (exit 1); exit 1; }; }
20330 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20334 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20335 if test -n "$ac_eof"; then
20336 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20337 ac_eof=`expr $ac_eof + 1`
20340 cat >>$CONFIG_STATUS <<_ACEOF
20341 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20345 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20346 s/^/s,@/; s/!/@,|#_!!_#|/
20349 s/'"$ac_delim"'$/,g/; t
20351 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20352 ' >>$CONFIG_STATUS <conf$$subs.sed
20353 rm -f conf$$subs.sed
20354 cat >>$CONFIG_STATUS <<_ACEOF
20360 for ac_last_try in false false false false false :; do
20361 cat >conf$$subs.sed <<_ACEOF
20362 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20363 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20364 RPATH!$RPATH$ac_delim
20365 RDYNAMIC!$RDYNAMIC$ac_delim
20366 program_prefix!$program_prefix$ac_delim
20367 LIBOBJS!$LIBOBJS$ac_delim
20368 LTLIBOBJS!$LTLIBOBJS$ac_delim
20371 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
20373 elif $ac_last_try; then
20374 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20375 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20376 { (exit 1); exit 1; }; }
20378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20382 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20383 if test -n "$ac_eof"; then
20384 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20385 ac_eof=`expr $ac_eof + 1`
20388 cat >>$CONFIG_STATUS <<_ACEOF
20389 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
20390 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20393 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20394 s/^/s,@/; s/!/@,|#_!!_#|/
20397 s/'"$ac_delim"'$/,g/; t
20399 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20400 ' >>$CONFIG_STATUS <conf$$subs.sed
20401 rm -f conf$$subs.sed
20402 cat >>$CONFIG_STATUS <<_ACEOF
20409 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20410 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20411 # trailing colons and then remove the whole line if VPATH becomes empty
20412 # (actually we leave an empty line to preserve line numbers).
20413 if test "x$srcdir" = x.; then
20414 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20415 s/:*\$(srcdir):*/:/
20416 s/:*\${srcdir}:*/:/
20418 s/^\([^=]*=[ ]*\):*/\1/
20424 cat >>$CONFIG_STATUS <<\_ACEOF
20425 fi # test -n "$CONFIG_FILES"
20428 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20431 :[FHLC]) ac_mode=$ac_tag; continue;;
20433 case $ac_mode$ac_tag in
20435 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20436 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20437 { (exit 1); exit 1; }; };;
20438 :[FH]-) ac_tag=-:-;;
20439 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20456 -) ac_f="$tmp/stdin";;
20457 *) # Look for the file first in the build tree, then in the source tree
20458 # (if the path is not absolute). The absolute path cannot be DOS-style,
20459 # because $ac_f cannot contain `:'.
20463 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20465 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20466 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20467 { (exit 1); exit 1; }; };;
20469 ac_file_inputs="$ac_file_inputs $ac_f"
20472 # Let's still pretend it is `configure' which instantiates (i.e., don't
20473 # use $as_me), people would be surprised to read:
20474 # /* config.h. Generated by config.status. */
20475 configure_input="Generated from "`IFS=:
20476 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20477 if test x"$ac_file" != x-; then
20478 configure_input="$ac_file. $configure_input"
20479 { echo "$as_me:$LINENO: creating $ac_file" >&5
20480 echo "$as_me: creating $ac_file" >&6;}
20484 *:-:* | *:-) cat >"$tmp/stdin";;
20489 ac_dir=`$as_dirname -- "$ac_file" ||
20490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20491 X"$ac_file" : 'X\(//\)[^/]' \| \
20492 X"$ac_file" : 'X\(//\)$' \| \
20493 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20499 /^X\(\/\/\)[^/].*/{
20514 -*) as_dir=./$as_dir;;
20516 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20520 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20521 *) as_qdir=$as_dir;;
20523 as_dirs="'$as_qdir' $as_dirs"
20524 as_dir=`$as_dirname -- "$as_dir" ||
20525 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20526 X"$as_dir" : 'X\(//\)[^/]' \| \
20527 X"$as_dir" : 'X\(//\)$' \| \
20528 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20534 /^X\(\/\/\)[^/].*/{
20547 test -d "$as_dir" && break
20549 test -z "$as_dirs" || eval "mkdir $as_dirs"
20550 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20551 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20552 { (exit 1); exit 1; }; }; }
20556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20558 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20559 # A ".." for each directory in $ac_dir_suffix.
20560 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20561 case $ac_top_builddir_sub in
20562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20566 ac_abs_top_builddir=$ac_pwd
20567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20568 # for backward compatibility:
20569 ac_top_builddir=$ac_top_build_prefix
20572 .) # We are building in place.
20574 ac_top_srcdir=$ac_top_builddir_sub
20575 ac_abs_top_srcdir=$ac_pwd ;;
20576 [\\/]* | ?:[\\/]* ) # Absolute name.
20577 ac_srcdir=$srcdir$ac_dir_suffix;
20578 ac_top_srcdir=$srcdir
20579 ac_abs_top_srcdir=$srcdir ;;
20580 *) # Relative name.
20581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20582 ac_top_srcdir=$ac_top_build_prefix$srcdir
20583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20595 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20596 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20600 cat >>$CONFIG_STATUS <<\_ACEOF
20601 # If the template does not know about datarootdir, expand it.
20602 # FIXME: This hack should be removed a few years after 2.60.
20603 ac_datarootdir_hack=; ac_datarootdir_seen=
20605 case `sed -n '/datarootdir/ {
20614 ' $ac_file_inputs` in
20615 *datarootdir*) ac_datarootdir_seen=yes;;
20616 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20617 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20618 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20620 cat >>$CONFIG_STATUS <<_ACEOF
20621 ac_datarootdir_hack='
20622 s&@datadir@&$datadir&g
20623 s&@docdir@&$docdir&g
20624 s&@infodir@&$infodir&g
20625 s&@localedir@&$localedir&g
20626 s&@mandir@&$mandir&g
20627 s&\\\${datarootdir}&$datarootdir&g' ;;
20631 # Neutralize VPATH when `$srcdir' = `.'.
20632 # Shell code in configure.ac might set extrasub.
20633 # FIXME: do we really want to maintain this feature?
20634 cat >>$CONFIG_STATUS <<_ACEOF
20638 cat >>$CONFIG_STATUS <<\_ACEOF
20640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20641 s&@configure_input@&$configure_input&;t t
20642 s&@top_builddir@&$ac_top_builddir_sub&;t t
20643 s&@srcdir@&$ac_srcdir&;t t
20644 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20645 s&@top_srcdir@&$ac_top_srcdir&;t t
20646 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20647 s&@builddir@&$ac_builddir&;t t
20648 s&@abs_builddir@&$ac_abs_builddir&;t t
20649 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20650 s&@INSTALL@&$ac_INSTALL&;t t
20651 $ac_datarootdir_hack
20652 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
20654 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20655 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20656 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20657 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20658 which seems to be undefined. Please make sure it is defined." >&5
20659 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20660 which seems to be undefined. Please make sure it is defined." >&2;}
20664 -) cat "$tmp/out"; rm -f "$tmp/out";;
20665 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20674 # Transform confdefs.h into a sed script `conftest.defines', that
20675 # substitutes the proper values into config.h.in to produce config.h.
20676 rm -f conftest.defines conftest.tail
20677 # First, append a space to every undef/define line, to ease matching.
20678 echo 's/$/ /' >conftest.defines
20679 # Then, protect against being on the right side of a sed subst, or in
20680 # an unquoted here document, in config.status. If some macros were
20681 # called several times there might be several #defines for the same
20682 # symbol, which is useless. But do not sort them, since the last
20683 # AC_DEFINE must be honored.
20684 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20685 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20686 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20687 # PARAMS is the parameter list in the macro definition--in most cases, it's
20688 # just an empty string.
20689 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20690 ac_dB='\\)[ (].*,\\1define\\2'
20698 s/^[ ]*#[ ]*define[ ][ ]*//
20703 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20704 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20705 ' >>conftest.defines
20707 # Remove the space that was appended to ease matching.
20708 # Then replace #undef with comments. This is necessary, for
20709 # example, in the case of _POSIX_SOURCE, which is predefined and required
20710 # on some systems where configure will not decide to define it.
20711 # (The regexp can be short, since the line contains either #define or #undef.)
20713 s,^[ #]*u.*,/* & */,' >>conftest.defines
20715 # Break up conftest.defines:
20716 ac_max_sed_lines=50
20718 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20719 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20720 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20722 ac_in='$ac_file_inputs'
20723 ac_out='"$tmp/out1"'
20724 ac_nxt='"$tmp/out2"'
20728 # Write a here document:
20729 cat >>$CONFIG_STATUS <<_ACEOF
20730 # First, check the format of the line:
20731 cat >"\$tmp/defines.sed" <<\\CEOF
20732 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20733 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20737 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20739 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20740 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20741 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20742 grep . conftest.tail >/dev/null || break
20743 rm -f conftest.defines
20744 mv conftest.tail conftest.defines
20746 rm -f conftest.defines conftest.tail
20748 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20749 cat >>$CONFIG_STATUS <<\_ACEOF
20750 if test x"$ac_file" != x-; then
20751 echo "/* $configure_input */" >"$tmp/config.h"
20752 cat "$ac_result" >>"$tmp/config.h"
20753 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20754 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20755 echo "$as_me: $ac_file is unchanged" >&6;}
20758 mv "$tmp/config.h" $ac_file
20761 echo "/* $configure_input */"
20767 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20768 echo "$as_me: executing $ac_file commands" >&6;}
20773 case $ac_file$ac_mode in
20774 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20775 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20776 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20777 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20778 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20779 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20780 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20781 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20782 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20783 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20784 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20785 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20786 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20787 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20788 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20789 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20790 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20791 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20792 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20793 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20794 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20795 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20796 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20797 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20803 { (exit 0); exit 0; }
20805 chmod +x $CONFIG_STATUS
20806 ac_clean_files=$ac_clean_files_save
20809 # configure is writing to config.log, and then calls config.status.
20810 # config.status does its own redirection, appending to config.log.
20811 # Unfortunately, on DOS this fails, as config.log is still kept open
20812 # by configure, so config.status won't be able to write to it; its
20813 # output is simply discarded. So we exec the FD to /dev/null,
20814 # effectively closing config.log, so it can be properly (re)opened and
20815 # appended to by config.status. When coming back to configure, we
20816 # need to make the FD available again.
20817 if test "$no_create" != yes; then
20819 ac_config_status_args=
20820 test "$silent" = yes &&
20821 ac_config_status_args="$ac_config_status_args --quiet"
20823 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20825 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20826 # would make configure fail if this is the last instruction.
20827 $ac_cs_success || { (exit 1); exit 1; }
20831 # CONFIG_SUBDIRS section.
20833 if test "$no_recursion" != yes; then
20835 # Remove --cache-file and --srcdir arguments so they do not pile up.
20836 ac_sub_configure_args=
20838 eval "set x $ac_configure_args"
20842 if test -n "$ac_prev"; then
20847 -cache-file | --cache-file | --cache-fil | --cache-fi \
20848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20849 ac_prev=cache_file ;;
20850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20854 --config-cache | -C)
20856 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20858 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20860 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20862 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20866 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20868 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20872 # Always prepend --prefix to ensure using the same prefix
20873 # in subdir configurations.
20874 ac_arg="--prefix=$prefix"
20876 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20878 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20881 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20883 # Do not complain, so a configure script can configure whichever
20884 # parts of a large source tree are present.
20885 test -d "$srcdir/$ac_dir" || continue
20887 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20888 echo "$as_me:$LINENO: $ac_msg" >&5
20892 -*) as_dir=./$as_dir;;
20894 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20898 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20899 *) as_qdir=$as_dir;;
20901 as_dirs="'$as_qdir' $as_dirs"
20902 as_dir=`$as_dirname -- "$as_dir" ||
20903 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20904 X"$as_dir" : 'X\(//\)[^/]' \| \
20905 X"$as_dir" : 'X\(//\)$' \| \
20906 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20912 /^X\(\/\/\)[^/].*/{
20925 test -d "$as_dir" && break
20927 test -z "$as_dirs" || eval "mkdir $as_dirs"
20928 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20929 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20930 { (exit 1); exit 1; }; }; }
20934 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20936 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20937 # A ".." for each directory in $ac_dir_suffix.
20938 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20939 case $ac_top_builddir_sub in
20940 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20941 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20944 ac_abs_top_builddir=$ac_pwd
20945 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20946 # for backward compatibility:
20947 ac_top_builddir=$ac_top_build_prefix
20950 .) # We are building in place.
20952 ac_top_srcdir=$ac_top_builddir_sub
20953 ac_abs_top_srcdir=$ac_pwd ;;
20954 [\\/]* | ?:[\\/]* ) # Absolute name.
20955 ac_srcdir=$srcdir$ac_dir_suffix;
20956 ac_top_srcdir=$srcdir
20957 ac_abs_top_srcdir=$srcdir ;;
20958 *) # Relative name.
20959 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20960 ac_top_srcdir=$ac_top_build_prefix$srcdir
20961 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20963 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20968 # Check for guested configure; otherwise get Cygnus style configure.
20969 if test -f "$ac_srcdir/configure.gnu"; then
20970 ac_sub_configure=$ac_srcdir/configure.gnu
20971 elif test -f "$ac_srcdir/configure"; then
20972 ac_sub_configure=$ac_srcdir/configure
20973 elif test -f "$ac_srcdir/configure.in"; then
20974 # This should be Cygnus configure.
20975 ac_sub_configure=$ac_aux_dir/configure
20977 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20982 # The recursion is here.
20983 if test -n "$ac_sub_configure"; then
20984 # Make the cache file name correct relative to the subdirectory.
20985 case $cache_file in
20986 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20987 *) # Relative name.
20988 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20991 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20992 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20993 # The eval makes quoting arguments work.
20994 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20995 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20996 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20997 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20998 { (exit 1); exit 1; }; }