2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.8.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2015 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.8.0svn'
565 PACKAGE_STRING='LLVM 3.8.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_CLANG_STATIC_ANALYZER
698 ENABLE_EXPENSIVE_CHECKS
700 ENABLE_ABI_BREAKING_CHECKS
710 enable_external_search
711 enable_server_based_search
713 extra_search_mappings
715 llvm_doxygen_generate_qhp
716 llvm_doxygen_qch_filename
717 llvm_doxygen_qhp_namespace
718 llvm_doxygen_qhelpgenerator_path
719 llvm_doxygen_qhp_cust_filter_name
720 llvm_doxygen_qhp_cust_filter_attrs
721 clang_doxygen_generate_qhp
722 clang_doxygen_qch_filename
723 clang_doxygen_qhp_namespace
724 clang_doxygen_qhelpgenerator_path
725 clang_doxygen_qhp_cust_filter_name
726 clang_doxygen_qhp_cust_filter_attrs
737 LLVM_ENUM_ASM_PRINTERS
738 LLVM_ENUM_ASM_PARSERS
739 LLVM_ENUM_DISASSEMBLERS
777 HAVE_LINK_VERSION_SCRIPT
780 MISSING_FIELD_INITIALIZERS
781 COVERED_SWITCH_DEFAULT
782 NO_MAYBE_UNINITIALIZED
811 ENABLE_VISIBILITY_INLINES_HIDDEN
818 ac_precious_vars='build_alias
829 ac_subdirs_all='projects/test-suite
832 projects/llvm-poolalloc
836 # Initialize some variables set by options.
838 ac_init_version=false
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
848 program_transform_name=s,x,x,
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
894 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 # Accept the important Cygnus configure options, so we can diagnose typos.
900 case $ac_dashdash$ac_option in
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
922 cache_file=config.cache ;;
924 -datadir | --datadir | --datadi | --datad)
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
936 -disable-* | --disable-*)
937 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=no ;;
945 -docdir | --docdir | --docdi | --doc | --do)
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 -enable-* | --enable-*)
956 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960 { (exit 1); exit 1; }; }
961 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962 eval enable_$ac_feature=\$ac_optarg ;;
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
977 -help | --help | --hel | --he | -h)
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 htmldir=$ac_optarg ;;
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1007 -libdir | --libdir | --libdi | --libd)
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1098 -psdir | --psdir | --psdi | --psd | --ps)
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 sbindir=$ac_optarg ;;
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 sharedstatedir=$ac_optarg ;;
1124 -site | --site | --sit)
1126 -site=* | --site=* | --sit=*)
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1153 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid package name: $ac_package" >&2
1166 { (exit 1); exit 1; }; }
1167 ac_package=`echo $ac_package | sed 's/-/_/g'`
1168 eval with_$ac_package=no ;;
1171 # Obsolete; use --with-x.
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1188 -*) { echo "$as_me: error: unrecognized option: $ac_option
1189 Try \`$0 --help' for more information." >&2
1190 { (exit 1); exit 1; }; }
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1197 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1198 { (exit 1); exit 1; }; }
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1203 # FIXME: should be removed in autoconf 3.0.
1204 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 { echo "$as_me: error: missing argument to $ac_option" >&2
1216 { (exit 1); exit 1; }; }
1219 # Be sure to have absolute directory names.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1225 eval ac_val=\$$ac_var
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1231 { (exit 1); exit 1; }; }
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 { echo "$as_me: error: Working directory cannot be determined" >&2
1262 { (exit 1); exit 1; }; }
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 { echo "$as_me: error: pwd does not report name of working directory" >&2
1265 { (exit 1); exit 1; }; }
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$0" ||
1273 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$0" : 'X\(//\)[^/]' \| \
1275 X"$0" : 'X\(//\)$' \| \
1276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1300 ac_srcdir_defaulted=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1305 { (exit 1); exit 1; }; }
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1310 { (exit 1); exit 1; }; }
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 # Report the --help message.
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1336 \`configure' configures LLVM 3.8.0svn to adapt to many kinds of systems.
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1343 Defaults for the options are specified in brackets.
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1367 For better control, use the options below.
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 --target=TARGET configure for building compilers for TARGET [HOST]
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of LLVM 3.8.0svn:";;
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-polly Use polly if available (default is YES)
1410 --enable-libcpp Use libc++ if available (default is NO)
1411 --enable-compiler-version-checks
1412 Check the version of the host compiler (default is
1414 --enable-cxx1y Use c++1y if available (default is NO)
1415 --enable-split-dwarf Use split-dwarf if available (default is NO)
1416 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1417 --enable-clang-plugin-support
1418 Enable plugin support in clang (default is YES)
1419 --enable-clang-static-analyzer
1420 Enable building of clang Static Analyzer (default is
1422 --enable-optimized Compile with optimizations enabled (default is NO)
1423 --enable-profiling Compile with profiling enabled (default is NO)
1424 --enable-assertions Compile with assertion checks enabled (default is
1426 --enable-werror Compile with -Werror enabled (default is NO)
1427 --enable-expensive-checks
1428 Compile with expensive debug checks enabled (default
1430 --enable-abi-breaking-checks
1431 Compile with abi-breaking asserts support (default
1433 --enable-debug-runtime Build runtime libs with debug symbols (default is
1435 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1436 optimization is on and YES if it's off)
1437 --enable-keep-symbols Do not strip installed executables)
1438 --enable-jit Enable Just In Time Compiling (default is YES)
1439 --enable-docs Build documents (default is YES)
1440 --enable-doxygen Build doxygen documentation (default is NO)
1441 --enable-doxygen-search Enable doxygen search support (default is NO)
1442 --enable-doxygen-external-search
1443 Enable doxygen exteranl search (default is NO)
1444 --enable-doxygen-qt-help
1445 Build Qt help files (default is NO)
1446 --enable-threads Use threads if available (default is YES)
1447 --enable-pthreads Use pthreads if available (default is YES)
1448 --enable-zlib Use zlib for compression/decompression if available
1450 --enable-pic Build LLVM with Position Independent Code (default
1452 --enable-shared Build a shared library and link tools against it
1454 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1455 Win32 DLL (default is NO)
1456 --enable-timestamps Enable embedding timestamp information in build
1458 --enable-backtraces Enable embedding backtraces on crash (default is
1460 --enable-crash-overrides
1461 Enable crash handling overrides (default is YES)
1462 --enable-targets Build specific host targets: all or
1463 target1,target2,... Valid targets are: host, x86,
1464 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1465 hexagon, xcore, msp430, nvptx, systemz, r600, bpf,
1466 wasm, and cpp (default=all)
1467 --enable-experimental-targets
1468 Build experimental host targets: disable or
1469 target1,target2,... (default=disable)
1470 --enable-bindings Build specific language bindings:
1471 all,auto,none,{binding-name} (default=auto)
1472 --enable-terminfo Query the terminfo database if available (default is
1474 --enable-libedit Use libedit if available (default is YES)
1475 --enable-libffi Check for the presence of libffi (default is NO)
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-doxygen-search-engine-url
1481 Specify the external search engine for doxygen
1482 --with-doxygen-search-mappings
1483 Specify the extra search mapping for doxygen
1484 --with-optimize-option Select the compiler options to use for optimized
1486 --with-extra-options Specify additional options to compile LLVM with
1487 --with-extra-ld-options Specify additional options to link LLVM with
1488 --with-ocaml-libdir Specify install location for ocaml bindings (default
1490 --with-clang-srcdir Directory to the out-of-tree Clang source
1491 --with-clang-resource-dir
1492 Relative directory from the Clang binary for
1494 --with-c-include-dirs Colon separated list of directories clang will
1496 --with-gcc-toolchain Directory where gcc is installed.
1497 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1498 --with-clang-default-openmp-runtime
1499 The default OpenMP runtime for Clang.
1500 --with-binutils-include Specify path to binutils/include/ containing
1501 plugin-api.h file for gold plugin.
1502 --with-bug-report-url Specify the URL where bug reports should be
1503 submitted (default=http://llvm.org/bugs/)
1504 --with-internal-prefix Installation directory for internal files
1505 --with-python path to python
1506 --with-oprofile=<prefix>
1507 Tell OProfile >= 0.9.4 how to symbolize JIT output
1508 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1511 Some influential environment variables:
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
1516 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 CXX C++ compiler command
1519 CXXFLAGS C++ compiler flags
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1525 Report bugs to <http://llvm.org/bugs/>.
1530 if test "$ac_init_help" = "recursive"; then
1531 # If there are subdirs, report their specific --help.
1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533 test -d "$ac_dir" || continue
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540 # A ".." for each directory in $ac_dir_suffix.
1541 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542 case $ac_top_builddir_sub in
1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1553 .) # We are building in place.
1555 ac_top_srcdir=$ac_top_builddir_sub
1556 ac_abs_top_srcdir=$ac_pwd ;;
1557 [\\/]* | ?:[\\/]* ) # Absolute name.
1558 ac_srcdir=$srcdir$ac_dir_suffix;
1559 ac_top_srcdir=$srcdir
1560 ac_abs_top_srcdir=$srcdir ;;
1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568 cd "$ac_dir" || { ac_status=$?; continue; }
1569 # Check for guested configure.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1586 LLVM configure 3.8.0svn
1587 generated by GNU Autoconf 2.60
1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1594 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1598 cat >config.log <<_ACEOF
1599 This file contains any messages produced by compilers while
1600 running configure, to aid debugging if configure makes a mistake.
1602 It was created by LLVM $as_me 3.8.0svn, which was
1603 generated by GNU Autoconf 2.60. Invocation command line was
1615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1622 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1624 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1625 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1627 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1628 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1629 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1630 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 test -z "$as_dir" && as_dir=.
1639 echo "PATH: $as_dir"
1655 # Keep a trace of the command line.
1656 # Strip out --no-create and --no-recursion so they do not pile up.
1657 # Strip out --silent because we don't want to record it for future runs.
1658 # Also quote any args containing shell meta-characters.
1659 # Make two passes to allow for proper duplicate-argument suppression.
1663 ac_must_keep_next=false
1669 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1671 | -silent | --silent | --silen | --sile | --sil)
1674 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1677 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1679 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1680 if test $ac_must_keep_next = true; then
1681 ac_must_keep_next=false # Got value, back to normal.
1684 *=* | --config-cache | -C | -disable-* | --disable-* \
1685 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1686 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1687 | -with-* | --with-* | -without-* | --without-* | --x)
1688 case "$ac_configure_args0 " in
1689 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1692 -* ) ac_must_keep_next=true ;;
1695 ac_configure_args="$ac_configure_args '$ac_arg'"
1700 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1701 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1703 # When interrupted or exit'd, cleanup temporary files, and complete
1704 # config.log. We remove comments because anyway the quotes in there
1705 # would cause problems or look ugly.
1706 # WARNING: Use '\'' to represent an apostrophe within the trap.
1707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1708 trap 'exit_status=$?
1709 # Save into config.log some information that might help in debugging.
1714 ## ---------------- ##
1715 ## Cache variables. ##
1716 ## ---------------- ##
1719 # The following way of writing the cache mishandles newlines in values,
1721 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1722 eval ac_val=\$$ac_var
1726 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1730 _ | IFS | as_nl) ;; #(
1731 *) $as_unset $ac_var ;;
1736 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737 *${as_nl}ac_space=\ *)
1739 "s/'\''/'\''\\\\'\'''\''/g;
1740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751 ## ----------------- ##
1752 ## Output variables. ##
1753 ## ----------------- ##
1756 for ac_var in $ac_subst_vars
1758 eval ac_val=\$$ac_var
1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 echo "$ac_var='\''$ac_val'\''"
1766 if test -n "$ac_subst_files"; then
1768 ## ------------------- ##
1769 ## File substitutions. ##
1770 ## ------------------- ##
1773 for ac_var in $ac_subst_files
1775 eval ac_val=\$$ac_var
1777 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779 echo "$ac_var='\''$ac_val'\''"
1784 if test -s confdefs.h; then
1794 test "$ac_signal" != 0 &&
1795 echo "$as_me: caught signal $ac_signal"
1796 echo "$as_me: exit $exit_status"
1798 rm -f core *.core core.conftest.* &&
1799 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802 for ac_signal in 1 2 13 15; do
1803 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1808 rm -f -r conftest* confdefs.h
1810 # Predefined preprocessor variables.
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_NAME "$PACKAGE_NAME"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_STRING "$PACKAGE_STRING"
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837 # Let the site file select an alternate cache file if it wants to.
1838 # Prefer explicitly selected file to automatically selected ones.
1839 if test -n "$CONFIG_SITE"; then
1840 set x "$CONFIG_SITE"
1841 elif test "x$prefix" != xNONE; then
1842 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1844 set x "$ac_default_prefix/share/config.site" \
1845 "$ac_default_prefix/etc/config.site"
1850 if test -r "$ac_site_file"; then
1851 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852 echo "$as_me: loading site script $ac_site_file" >&6;}
1853 sed 's/^/| /' "$ac_site_file" >&5
1858 if test -r "$cache_file"; then
1859 # Some versions of bash will fail to source /dev/null (special
1860 # files actually), so we avoid doing that.
1861 if test -f "$cache_file"; then
1862 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863 echo "$as_me: loading cache $cache_file" >&6;}
1865 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1866 *) . "./$cache_file";;
1870 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871 echo "$as_me: creating cache $cache_file" >&6;}
1875 # Check that the precious variables saved in the cache have kept the same
1877 ac_cache_corrupted=false
1878 for ac_var in $ac_precious_vars; do
1879 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880 eval ac_new_set=\$ac_env_${ac_var}_set
1881 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882 eval ac_new_val=\$ac_env_${ac_var}_value
1883 case $ac_old_set,$ac_new_set in
1885 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887 ac_cache_corrupted=: ;;
1889 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891 ac_cache_corrupted=: ;;
1894 if test "x$ac_old_val" != "x$ac_new_val"; then
1895 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1896 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1897 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1898 echo "$as_me: former value: $ac_old_val" >&2;}
1899 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1900 echo "$as_me: current value: $ac_new_val" >&2;}
1901 ac_cache_corrupted=:
1904 # Pass precious variables to config.status.
1905 if test "$ac_new_set" = set; then
1907 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908 *) ac_arg=$ac_var=$ac_new_val ;;
1910 case " $ac_configure_args " in
1911 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1912 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916 if $ac_cache_corrupted; then
1917 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921 { (exit 1); exit 1; }; }
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 LLVM_VERSION_MAJOR=3
1957 LLVM_VERSION_MINOR=8
1958 LLVM_VERSION_PATCH=0
1959 LLVM_VERSION_SUFFIX=svn
1962 cat >>confdefs.h <<_ACEOF
1963 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1967 cat >>confdefs.h <<_ACEOF
1968 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1972 cat >>confdefs.h <<_ACEOF
1973 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1977 cat >>confdefs.h <<_ACEOF
1978 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1987 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1996 for ac_dir in autoconf "$srcdir"/autoconf; do
1997 if test -f "$ac_dir/install-sh"; then
1999 ac_install_sh="$ac_aux_dir/install-sh -c"
2001 elif test -f "$ac_dir/install.sh"; then
2003 ac_install_sh="$ac_aux_dir/install.sh -c"
2005 elif test -f "$ac_dir/shtool"; then
2007 ac_install_sh="$ac_aux_dir/shtool install -c"
2011 if test -z "$ac_aux_dir"; then
2012 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2013 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2014 { (exit 1); exit 1; }; }
2017 # These three variables are undocumented and unsupported,
2018 # and are intended to be withdrawn in a future Autoconf release.
2019 # They can cause serious problems if a builder's source tree is in a directory
2020 # whose full name contains unusual characters.
2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2023 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2027 if test ${srcdir} != "." ; then
2028 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2029 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2030 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2031 { (exit 1); exit 1; }; }
2035 if test ${srcdir} == "." ; then
2036 { { echo "$as_me:$LINENO: error: In-source builds are not allowed. Please configure from a separate build directory!" >&5
2037 echo "$as_me: error: In-source builds are not allowed. Please configure from a separate build directory!" >&2;}
2038 { (exit 1); exit 1; }; }
2045 ac_cpp='$CPP $CPPFLAGS'
2046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049 if test -n "$ac_tool_prefix"; then
2050 for ac_prog in clang gcc
2052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test -n "$CC"; then
2060 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 if test -n "$CC"; then
2081 { echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6; }
2084 { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2089 test -n "$CC" && break
2092 if test -z "$CC"; then
2094 for ac_prog in clang gcc
2096 # Extract the first word of "$ac_prog", so it can be a program name with args.
2097 set dummy $ac_prog; ac_word=$2
2098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test -n "$ac_ct_CC"; then
2104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2113 ac_cv_prog_ac_ct_CC="$ac_prog"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2124 if test -n "$ac_ct_CC"; then
2125 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2126 echo "${ECHO_T}$ac_ct_CC" >&6; }
2128 { echo "$as_me:$LINENO: result: no" >&5
2129 echo "${ECHO_T}no" >&6; }
2133 test -n "$ac_ct_CC" && break
2136 if test "x$ac_ct_CC" = x; then
2139 case $cross_compiling:$ac_tool_warned in
2141 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2142 whose name does not start with the host triplet. If you think this
2143 configuration is useful to you, please write to autoconf@gnu.org." >&5
2144 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2145 whose name does not start with the host triplet. If you think this
2146 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2147 ac_tool_warned=yes ;;
2154 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2155 See \`config.log' for more details." >&5
2156 echo "$as_me: error: no acceptable C compiler found in \$PATH
2157 See \`config.log' for more details." >&2;}
2158 { (exit 1); exit 1; }; }
2160 # Provide some information about the compiler.
2161 echo "$as_me:$LINENO: checking for C compiler version" >&5
2162 ac_compiler=`set X $ac_compile; echo $2`
2163 { (ac_try="$ac_compiler --version >&5"
2165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166 *) ac_try_echo=$ac_try;;
2168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2169 (eval "$ac_compiler --version >&5") 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }
2173 { (ac_try="$ac_compiler -v >&5"
2175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176 *) ac_try_echo=$ac_try;;
2178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2179 (eval "$ac_compiler -v >&5") 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }
2183 { (ac_try="$ac_compiler -V >&5"
2185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186 *) ac_try_echo=$ac_try;;
2188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2189 (eval "$ac_compiler -V >&5") 2>&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }
2194 cat >conftest.$ac_ext <<_ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h. */
2209 ac_clean_files_save=$ac_clean_files
2210 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2211 # Try to create an executable without -o first, disregard a.out.
2212 # It will help us diagnose broken compilers, and finding out an intuition
2214 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2215 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2216 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2218 # List of possible output files, starting from the most likely.
2219 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2220 # only as a last resort. b.out is created by i960 compilers.
2221 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2223 # The IRIX 6 linker writes into existing files which may not be
2224 # executable, retaining their permissions. Remove them first so a
2225 # subsequent execution test works.
2227 for ac_file in $ac_files
2230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2231 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2236 if { (ac_try="$ac_link_default"
2238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2239 *) ac_try_echo=$ac_try;;
2241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2242 (eval "$ac_link_default") 2>&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; then
2246 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2247 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2248 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2249 # so that the user can short-circuit this test for compilers unknown to
2251 for ac_file in $ac_files
2253 test -f "$ac_file" || continue
2255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2258 # We found the default executable, but exeext='' is most
2262 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2264 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2266 # We set ac_cv_exeext here because the later test for it is not
2267 # safe: cross compilers may not add the suffix if given an `-o'
2268 # argument, so we may need to know it at that point already.
2269 # Even if this section looks crufty: it has the advantage of
2276 test "$ac_cv_exeext" = no && ac_cv_exeext=
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2282 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: C compiler cannot create executables
2285 See \`config.log' for more details." >&2;}
2286 { (exit 77); exit 77; }; }
2289 ac_exeext=$ac_cv_exeext
2290 { echo "$as_me:$LINENO: result: $ac_file" >&5
2291 echo "${ECHO_T}$ac_file" >&6; }
2293 # Check that the compiler produces executables we can run. If not, either
2294 # the compiler is broken, or we cross compile.
2295 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2296 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2297 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2298 # If not cross compiling, check that we can run a simple program.
2299 if test "$cross_compiling" != yes; then
2300 if { ac_try='./$ac_file'
2301 { (case "(($ac_try" in
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306 (eval "$ac_try") 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2312 if test "$cross_compiling" = maybe; then
2315 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2316 If you meant to cross compile, use \`--host'.
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot run C compiled programs.
2319 If you meant to cross compile, use \`--host'.
2320 See \`config.log' for more details." >&2;}
2321 { (exit 1); exit 1; }; }
2325 { echo "$as_me:$LINENO: result: yes" >&5
2326 echo "${ECHO_T}yes" >&6; }
2328 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2329 ac_clean_files=$ac_clean_files_save
2330 # Check that the compiler produces executables we can run. If not, either
2331 # the compiler is broken, or we cross compile.
2332 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2333 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2334 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2335 echo "${ECHO_T}$cross_compiling" >&6; }
2337 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2338 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2339 if { (ac_try="$ac_link"
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342 *) ac_try_echo=$ac_try;;
2344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2345 (eval "$ac_link") 2>&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; then
2349 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2350 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2351 # work properly (i.e., refer to `conftest.exe'), while it won't with
2353 for ac_file in conftest.exe conftest conftest.*; do
2354 test -f "$ac_file" || continue
2356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2357 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2363 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2364 See \`config.log' for more details." >&5
2365 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2366 See \`config.log' for more details." >&2;}
2367 { (exit 1); exit 1; }; }
2370 rm -f conftest$ac_cv_exeext
2371 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2372 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2374 rm -f conftest.$ac_ext
2375 EXEEXT=$ac_cv_exeext
2377 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2378 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2379 if test "${ac_cv_objext+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 cat >conftest.$ac_ext <<_ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2397 rm -f conftest.o conftest.obj
2398 if { (ac_try="$ac_compile"
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404 (eval "$ac_compile") 2>&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; then
2408 for ac_file in conftest.o conftest.obj conftest.*; do
2409 test -f "$ac_file" || continue;
2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2412 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2420 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2421 See \`config.log' for more details." >&5
2422 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2423 See \`config.log' for more details." >&2;}
2424 { (exit 1); exit 1; }; }
2427 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2429 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2430 echo "${ECHO_T}$ac_cv_objext" >&6; }
2431 OBJEXT=$ac_cv_objext
2433 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2434 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2435 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 cat >conftest.$ac_ext <<_ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2456 rm -f conftest.$ac_objext
2457 if { (ac_try="$ac_compile"
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463 (eval "$ac_compile") 2>conftest.er1
2465 grep -v '^ *+' conftest.er1 >conftest.err
2467 cat conftest.err >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2471 { (case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_try") 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2502 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2503 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2504 GCC=`test $ac_compiler_gnu = yes && echo yes`
2505 ac_test_CFLAGS=${CFLAGS+set}
2506 ac_save_CFLAGS=$CFLAGS
2507 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2508 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2509 if test "${ac_cv_prog_cc_g+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 ac_save_c_werror_flag=$ac_c_werror_flag
2513 ac_c_werror_flag=yes
2516 cat >conftest.$ac_ext <<_ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2531 rm -f conftest.$ac_objext
2532 if { (ac_try="$ac_compile"
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_compile") 2>conftest.er1
2540 grep -v '^ *+' conftest.er1 >conftest.err
2542 cat conftest.err >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2546 { (case "(($ac_try" in
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_try") 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; } &&
2555 { ac_try='test -s conftest.$ac_objext'
2556 { (case "(($ac_try" in
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2561 (eval "$ac_try") 2>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; }; then
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2571 cat >conftest.$ac_ext <<_ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2586 rm -f conftest.$ac_objext
2587 if { (ac_try="$ac_compile"
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_compile") 2>conftest.er1
2595 grep -v '^ *+' conftest.er1 >conftest.err
2597 cat conftest.err >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2601 { (case "(($ac_try" in
2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603 *) ac_try_echo=$ac_try;;
2605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606 (eval "$ac_try") 2>&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (case "(($ac_try" in
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616 (eval "$ac_try") 2>&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2625 ac_c_werror_flag=$ac_save_c_werror_flag
2627 cat >conftest.$ac_ext <<_ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2642 rm -f conftest.$ac_objext
2643 if { (ac_try="$ac_compile"
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649 (eval "$ac_compile") 2>conftest.er1
2651 grep -v '^ *+' conftest.er1 >conftest.err
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2657 { (case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_try") 2>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_try") 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691 ac_c_werror_flag=$ac_save_c_werror_flag
2693 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2694 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2695 if test "$ac_test_CFLAGS" = set; then
2696 CFLAGS=$ac_save_CFLAGS
2697 elif test $ac_cv_prog_cc_g = yes; then
2698 if test "$GCC" = yes; then
2704 if test "$GCC" = yes; then
2710 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2711 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2712 if test "${ac_cv_prog_cc_c89+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 ac_cv_prog_cc_c89=no
2717 cat >conftest.$ac_ext <<_ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h. */
2725 #include <sys/types.h>
2726 #include <sys/stat.h>
2727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2728 struct buf { int x; };
2729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2730 static char *e (p, i)
2736 static char *f (char * (*g) (char **, int), char **p, ...)
2741 s = g (p, va_arg (v,int));
2746 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2747 function prototypes and stuff, but not '\xHH' hex character constants.
2748 These don't provoke an error unfortunately, instead are silently treated
2749 as 'x'. The following induces an error, until -std is added to get
2750 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2751 array size at least. It's necessary to write '\x00'==0 to get something
2752 that's true only with -std. */
2753 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2755 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2756 inside strings and character constants. */
2758 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2760 int test (int i, double x);
2761 struct s1 {int (*f) (int a);};
2762 struct s2 {int (*f) (double a);};
2763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2769 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2774 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2775 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2777 CC="$ac_save_CC $ac_arg"
2778 rm -f conftest.$ac_objext
2779 if { (ac_try="$ac_compile"
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_compile") 2>conftest.er1
2787 grep -v '^ *+' conftest.er1 >conftest.err
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2793 { (case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_try") 2>&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_try") 2>&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2812 ac_cv_prog_cc_c89=$ac_arg
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2820 rm -f core conftest.err conftest.$ac_objext
2821 test "x$ac_cv_prog_cc_c89" != "xno" && break
2823 rm -f conftest.$ac_ext
2828 case "x$ac_cv_prog_cc_c89" in
2830 { echo "$as_me:$LINENO: result: none needed" >&5
2831 echo "${ECHO_T}none needed" >&6; } ;;
2833 { echo "$as_me:$LINENO: result: unsupported" >&5
2834 echo "${ECHO_T}unsupported" >&6; } ;;
2836 CC="$CC $ac_cv_prog_cc_c89"
2837 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2838 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849 ac_cpp='$CXXCPP $CPPFLAGS'
2850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2853 if test -z "$CXX"; then
2854 if test -n "$CCC"; then
2857 if test -n "$ac_tool_prefix"; then
2858 for ac_prog in clang++ g++
2860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_CXX+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 if test -n "$CXX"; then
2868 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 if test -n "$CXX"; then
2889 { echo "$as_me:$LINENO: result: $CXX" >&5
2890 echo "${ECHO_T}$CXX" >&6; }
2892 { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2897 test -n "$CXX" && break
2900 if test -z "$CXX"; then
2902 for ac_prog in clang++ g++
2904 # Extract the first word of "$ac_prog", so it can be a program name with args.
2905 set dummy $ac_prog; ac_word=$2
2906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2908 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 if test -n "$ac_ct_CXX"; then
2912 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2921 ac_cv_prog_ac_ct_CXX="$ac_prog"
2922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2932 if test -n "$ac_ct_CXX"; then
2933 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2934 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2936 { echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6; }
2941 test -n "$ac_ct_CXX" && break
2944 if test "x$ac_ct_CXX" = x; then
2947 case $cross_compiling:$ac_tool_warned in
2949 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2950 whose name does not start with the host triplet. If you think this
2951 configuration is useful to you, please write to autoconf@gnu.org." >&5
2952 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2953 whose name does not start with the host triplet. If you think this
2954 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2955 ac_tool_warned=yes ;;
2963 # Provide some information about the compiler.
2964 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2965 ac_compiler=`set X $ac_compile; echo $2`
2966 { (ac_try="$ac_compiler --version >&5"
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_compiler --version >&5") 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }
2976 { (ac_try="$ac_compiler -v >&5"
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compiler -v >&5") 2>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }
2986 { (ac_try="$ac_compiler -V >&5"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compiler -V >&5") 2>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }
2997 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2998 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2999 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3035 { (case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_try") 2>&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3066 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3067 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3068 GXX=`test $ac_compiler_gnu = yes && echo yes`
3069 ac_test_CXXFLAGS=${CXXFLAGS+set}
3070 ac_save_CXXFLAGS=$CXXFLAGS
3071 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3072 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3073 if test "${ac_cv_prog_cxx_g+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3077 ac_cxx_werror_flag=yes
3080 cat >conftest.$ac_ext <<_ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } &&
3109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3110 { (case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_try") 2>&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; } &&
3119 { ac_try='test -s conftest.$ac_objext'
3120 { (case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_try") 2>&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3129 ac_cv_prog_cxx_g=yes
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3135 cat >conftest.$ac_ext <<_ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3150 rm -f conftest.$ac_objext
3151 if { (ac_try="$ac_compile"
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_compile") 2>conftest.er1
3159 grep -v '^ *+' conftest.er1 >conftest.err
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3165 { (case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_try") 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; } &&
3174 { ac_try='test -s conftest.$ac_objext'
3175 { (case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_try") 2>&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3191 cat >conftest.$ac_ext <<_ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3206 rm -f conftest.$ac_objext
3207 if { (ac_try="$ac_compile"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_compile") 2>conftest.er1
3215 grep -v '^ *+' conftest.er1 >conftest.err
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } &&
3220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3221 { (case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_try") 2>&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; } &&
3230 { ac_try='test -s conftest.$ac_objext'
3231 { (case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_try") 2>&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
3240 ac_cv_prog_cxx_g=yes
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3257 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3258 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3259 if test "$ac_test_CXXFLAGS" = set; then
3260 CXXFLAGS=$ac_save_CXXFLAGS
3261 elif test $ac_cv_prog_cxx_g = yes; then
3262 if test "$GXX" = yes; then
3268 if test "$GXX" = yes; then
3275 ac_cpp='$CPP $CPPFLAGS'
3276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3287 # On Suns, sometimes $CPP names a directory.
3288 if test -n "$CPP" && test -d "$CPP"; then
3291 if test -z "$CPP"; then
3292 if test "${ac_cv_prog_CPP+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 # Double quotes because CPP needs to be expanded
3296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3299 for ac_c_preproc_warn_flag in '' yes
3301 # Use a header file that comes with gcc, so configuring glibc
3302 # with a fresh cross-compiler works.
3303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3304 # <limits.h> exists even on freestanding compilers.
3305 # On the NeXT, cc -E runs the code through the compiler's parser,
3306 # not just through cpp. "Syntax error" is here to catch this case.
3307 cat >conftest.$ac_ext <<_ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3314 # include <limits.h>
3316 # include <assert.h>
3320 if { (ac_try="$ac_cpp conftest.$ac_ext"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3328 grep -v '^ *+' conftest.er1 >conftest.err
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } >/dev/null; then
3333 if test -s conftest.err; then
3334 ac_cpp_err=$ac_c_preproc_warn_flag
3335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3342 if test -z "$ac_cpp_err"; then
3345 echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3348 # Broken: fails on valid input.
3352 rm -f conftest.err conftest.$ac_ext
3354 # OK, works on sane cases. Now check whether nonexistent headers
3355 # can be detected and how.
3356 cat >conftest.$ac_ext <<_ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3362 #include <ac_nonexistent.h>
3364 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 grep -v '^ *+' conftest.er1 >conftest.err
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev/null; then
3377 if test -s conftest.err; then
3378 ac_cpp_err=$ac_c_preproc_warn_flag
3379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3386 if test -z "$ac_cpp_err"; then
3387 # Broken: success on invalid input.
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 # Passes both tests.
3398 rm -f conftest.err conftest.$ac_ext
3401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3402 rm -f conftest.err conftest.$ac_ext
3403 if $ac_preproc_ok; then
3415 { echo "$as_me:$LINENO: result: $CPP" >&5
3416 echo "${ECHO_T}$CPP" >&6; }
3418 for ac_c_preproc_warn_flag in '' yes
3420 # Use a header file that comes with gcc, so configuring glibc
3421 # with a fresh cross-compiler works.
3422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423 # <limits.h> exists even on freestanding compilers.
3424 # On the NeXT, cc -E runs the code through the compiler's parser,
3425 # not just through cpp. "Syntax error" is here to catch this case.
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3433 # include <limits.h>
3435 # include <assert.h>
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461 if test -z "$ac_cpp_err"; then
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 # Broken: fails on valid input.
3471 rm -f conftest.err conftest.$ac_ext
3473 # OK, works on sane cases. Now check whether nonexistent headers
3474 # can be detected and how.
3475 cat >conftest.$ac_ext <<_ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 #include <ac_nonexistent.h>
3483 if { (ac_try="$ac_cpp conftest.$ac_ext"
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491 grep -v '^ *+' conftest.er1 >conftest.err
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } >/dev/null; then
3496 if test -s conftest.err; then
3497 ac_cpp_err=$ac_c_preproc_warn_flag
3498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3505 if test -z "$ac_cpp_err"; then
3506 # Broken: success on invalid input.
3509 echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 # Passes both tests.
3517 rm -f conftest.err conftest.$ac_ext
3520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521 rm -f conftest.err conftest.$ac_ext
3522 if $ac_preproc_ok; then
3525 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3526 See \`config.log' for more details." >&5
3527 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3528 See \`config.log' for more details." >&2;}
3529 { (exit 1); exit 1; }; }
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 if test "$CXX" = "clang++" ; then
3540 { echo "$as_me:$LINENO: checking whether clang works" >&5
3541 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3543 ac_cpp='$CXXCPP $CPPFLAGS'
3544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3556 #if __has_include (<cxxabi.h>)
3559 #if __has_include (<unwind.h>)
3571 rm -f conftest.$ac_objext
3572 if { (ac_try="$ac_compile"
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_compile") 2>conftest.er1
3580 grep -v '^ *+' conftest.er1 >conftest.err
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3586 { (case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_try") 2>&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; } &&
3595 { ac_try='test -s conftest.$ac_objext'
3596 { (case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_try") 2>&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3606 { echo "$as_me:$LINENO: result: yes" >&5
3607 echo "${ECHO_T}yes" >&6; }
3610 echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3614 { echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6; }
3616 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&5
3617 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&2;}
3618 { (exit 1); exit 1; }; }
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3632 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3634 ac_cpp='$CXXCPP $CPPFLAGS'
3635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3639 llvm_cv_cxx_compiler=unknown
3640 cat >conftest.$ac_ext <<_ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3651 rm -f conftest.$ac_objext
3652 if { (ac_try="$ac_compile"
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658 (eval "$ac_compile") 2>conftest.er1
3660 grep -v '^ *+' conftest.er1 >conftest.err
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3666 { (case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_try") 2>&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest.$ac_objext'
3676 { (case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_try") 2>&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 llvm_cv_cxx_compiler=clang
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 cat >conftest.$ac_ext <<_ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3701 rm -f conftest.$ac_objext
3702 if { (ac_try="$ac_compile"
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_compile") 2>conftest.er1
3710 grep -v '^ *+' conftest.er1 >conftest.err
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } &&
3715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3716 { (case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721 (eval "$ac_try") 2>&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; } &&
3725 { ac_try='test -s conftest.$ac_objext'
3726 { (case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_try") 2>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 llvm_cv_cxx_compiler=gcc
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3754 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3758 if test -d ${srcdir}/projects/test-suite ; then
3759 subdirs="$subdirs projects/test-suite"
3763 if test -d ${srcdir}/projects/llvm-test ; then
3764 subdirs="$subdirs projects/llvm-test"
3768 if test -d ${srcdir}/projects/poolalloc ; then
3769 subdirs="$subdirs projects/poolalloc"
3773 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3774 subdirs="$subdirs projects/llvm-poolalloc"
3778 for i in `ls ${srcdir}/projects`
3780 if test -d ${srcdir}/projects/${i} ; then
3782 safecode) subdirs="$subdirs projects/safecode"
3790 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3791 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3797 # Check whether --enable-polly was given.
3798 if test "${enable_polly+set}" = set; then
3799 enableval=$enable_polly;
3804 case "$enableval" in
3809 default) ENABLE_POLLY=1
3811 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3812 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3813 { (exit 1); exit 1; }; } ;;
3817 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3820 subdirs="$subdirs tools/polly"
3825 # Make sure we can run config.sub.
3826 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3827 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3828 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3829 { (exit 1); exit 1; }; }
3831 { echo "$as_me:$LINENO: checking build system type" >&5
3832 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3833 if test "${ac_cv_build+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 ac_build_alias=$build_alias
3837 test "x$ac_build_alias" = x &&
3838 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3839 test "x$ac_build_alias" = x &&
3840 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3841 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3842 { (exit 1); exit 1; }; }
3843 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3844 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3845 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3846 { (exit 1); exit 1; }; }
3849 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3850 echo "${ECHO_T}$ac_cv_build" >&6; }
3851 case $ac_cv_build in
3853 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3854 echo "$as_me: error: invalid value of canonical build" >&2;}
3855 { (exit 1); exit 1; }; };;
3858 ac_save_IFS=$IFS; IFS='-'
3864 # Remember, the first character of IFS is used to create $*,
3865 # except with old shells:
3868 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3871 { echo "$as_me:$LINENO: checking host system type" >&5
3872 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3873 if test "${ac_cv_host+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 if test "x$host_alias" = x; then
3877 ac_cv_host=$ac_cv_build
3879 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3880 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3881 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3882 { (exit 1); exit 1; }; }
3886 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3887 echo "${ECHO_T}$ac_cv_host" >&6; }
3890 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3891 echo "$as_me: error: invalid value of canonical host" >&2;}
3892 { (exit 1); exit 1; }; };;
3895 ac_save_IFS=$IFS; IFS='-'
3901 # Remember, the first character of IFS is used to create $*,
3902 # except with old shells:
3905 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3908 { echo "$as_me:$LINENO: checking target system type" >&5
3909 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3910 if test "${ac_cv_target+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 if test "x$target_alias" = x; then
3914 ac_cv_target=$ac_cv_host
3916 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3917 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3918 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3919 { (exit 1); exit 1; }; }
3923 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3924 echo "${ECHO_T}$ac_cv_target" >&6; }
3925 case $ac_cv_target in
3927 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3928 echo "$as_me: error: invalid value of canonical target" >&2;}
3929 { (exit 1); exit 1; }; };;
3931 target=$ac_cv_target
3932 ac_save_IFS=$IFS; IFS='-'
3938 # Remember, the first character of IFS is used to create $*,
3939 # except with old shells:
3942 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3945 # The aliases save the names the user supplied, while $host etc.
3946 # will get canonicalized.
3947 test -n "$target_alias" &&
3948 test "$program_prefix$program_suffix$program_transform_name" = \
3950 program_prefix=${target_alias}-
3952 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3953 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3954 if test "${llvm_cv_os_type+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 llvm_cv_link_all_option="-Wl,--whole-archive"
3960 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3961 llvm_cv_os_type="AIX"
3962 llvm_cv_platform_type="Unix" ;;
3964 llvm_cv_link_all_option="-Wl,--whole-archive"
3965 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3966 llvm_cv_os_type="IRIX"
3967 llvm_cv_platform_type="Unix" ;;
3969 llvm_cv_link_all_option="-Wl,--whole-archive"
3970 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3971 llvm_cv_os_type="Cygwin"
3972 llvm_cv_platform_type="Unix" ;;
3974 llvm_cv_link_all_option="-Wl,-all_load"
3975 llvm_cv_no_link_all_option="-Wl,-noall_load"
3976 llvm_cv_os_type="Darwin"
3977 llvm_cv_platform_type="Unix" ;;
3979 llvm_cv_link_all_option="-Wl,-all_load"
3980 llvm_cv_no_link_all_option="-Wl,-noall_load"
3981 llvm_cv_os_type="Minix"
3982 llvm_cv_platform_type="Unix" ;;
3984 llvm_cv_link_all_option="-Wl,--whole-archive"
3985 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3986 llvm_cv_os_type="FreeBSD"
3987 llvm_cv_platform_type="Unix" ;;
3989 llvm_cv_link_all_option="-Wl,--whole-archive"
3990 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3991 llvm_cv_os_type="GNU/kFreeBSD"
3992 llvm_cv_platform_type="Unix" ;;
3994 llvm_cv_link_all_option="-Wl,--whole-archive"
3995 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3996 llvm_cv_os_type="OpenBSD"
3997 llvm_cv_platform_type="Unix" ;;
3999 llvm_cv_link_all_option="-Wl,--whole-archive"
4000 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4001 llvm_cv_os_type="NetBSD"
4002 llvm_cv_platform_type="Unix" ;;
4004 llvm_cv_link_all_option="-Wl,--whole-archive"
4005 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4006 llvm_cv_os_type="DragonFly"
4007 llvm_cv_platform_type="Unix" ;;
4009 llvm_cv_link_all_option="-Wl,--whole-archive"
4010 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4011 llvm_cv_os_type="Bitrig"
4012 llvm_cv_platform_type="Unix" ;;
4014 llvm_cv_link_all_option="-Wl,--whole-archive"
4015 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4016 llvm_cv_os_type="HP-UX"
4017 llvm_cv_platform_type="Unix" ;;
4019 llvm_cv_link_all_option="-Wl,--whole-archive"
4020 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4021 llvm_cv_os_type="Interix"
4022 llvm_cv_platform_type="Unix" ;;
4024 llvm_cv_link_all_option="-Wl,--whole-archive"
4025 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4026 llvm_cv_os_type="Linux"
4027 llvm_cv_platform_type="Unix" ;;
4029 llvm_cv_link_all_option="-Wl,--whole-archive"
4030 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4031 llvm_cv_os_type="GNU"
4032 llvm_cv_platform_type="Unix" ;;
4034 llvm_cv_link_all_option="-Wl,-z,allextract"
4035 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4036 llvm_cv_os_type="SunOS"
4037 llvm_cv_platform_type="Unix" ;;
4039 llvm_cv_link_all_option="-Wl,--whole-archive"
4040 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4041 llvm_cv_os_type="Win32"
4042 llvm_cv_platform_type="Win32" ;;
4044 llvm_cv_link_all_option="-Wl,--whole-archive"
4045 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4046 llvm_cv_os_type="MingW"
4047 llvm_cv_platform_type="Win32" ;;
4049 llvm_cv_link_all_option="-Wl,--whole-archive"
4050 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4051 llvm_cv_os_type="Haiku"
4052 llvm_cv_platform_type="Unix" ;;
4054 llvm_cv_link_all_option="-Wl,--whole-archive"
4055 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4056 llvm_cv_os_type="Freestanding"
4057 llvm_cv_platform_type="Unix" ;;
4059 llvm_cv_link_all_option="-Wl,--whole-archive"
4060 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4061 llvm_cv_os_type="Freestanding"
4062 llvm_cv_platform_type="Unix" ;;
4064 llvm_cv_link_all_option=""
4065 llvm_cv_no_link_all_option=""
4066 llvm_cv_os_type="Unknown"
4067 llvm_cv_platform_type="Unknown" ;;
4070 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4071 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4073 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4074 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4075 if test "${llvm_cv_target_os_type+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 llvm_cv_target_os_type="AIX" ;;
4082 llvm_cv_target_os_type="IRIX" ;;
4084 llvm_cv_target_os_type="Cygwin" ;;
4086 llvm_cv_target_os_type="Darwin" ;;
4088 llvm_cv_target_os_type="Minix" ;;
4090 llvm_cv_target_os_type="FreeBSD" ;;
4092 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4094 llvm_cv_target_os_type="OpenBSD" ;;
4096 llvm_cv_target_os_type="NetBSD" ;;
4098 llvm_cv_target_os_type="DragonFly" ;;
4100 llvm_cv_target_os_type="Bitrig" ;;
4102 llvm_cv_target_os_type="HP-UX" ;;
4104 llvm_cv_target_os_type="Interix" ;;
4106 llvm_cv_target_os_type="Linux" ;;
4108 llvm_cv_target_os_type="GNU" ;;
4110 llvm_cv_target_os_type="SunOS" ;;
4112 llvm_cv_target_os_type="Win32" ;;
4114 llvm_cv_target_os_type="MingW" ;;
4116 llvm_cv_target_os_type="Haiku" ;;
4118 llvm_cv_target_os_type="RTEMS" ;;
4120 llvm_cv_target_os_type="NativeClient" ;;
4122 llvm_cv_target_os_type="Freestanding" ;;
4124 llvm_cv_target_os_type="PS4" ;;
4126 llvm_cv_target_os_type="Unknown" ;;
4129 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4130 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4132 if test "$llvm_cv_os_type" = "Unknown" ; then
4133 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4134 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4135 { (exit 1); exit 1; }; }
4140 HOST_OS=$llvm_cv_os_type
4142 TARGET_OS=$llvm_cv_target_os_type
4145 LINKALL=$llvm_cv_link_all_option
4147 NOLINKALL=$llvm_cv_no_link_all_option
4150 case $llvm_cv_platform_type in
4153 cat >>confdefs.h <<\_ACEOF
4154 #define LLVM_ON_UNIX 1
4164 cat >>confdefs.h <<\_ACEOF
4165 #define LLVM_ON_WIN32 1
4175 { echo "$as_me:$LINENO: checking target architecture" >&5
4176 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4177 if test "${llvm_cv_target_arch+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 i?86-*) llvm_cv_target_arch="x86" ;;
4182 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4183 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4184 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4185 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4186 arm*-*) llvm_cv_target_arch="ARM" ;;
4187 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4188 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4189 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4190 xcore-*) llvm_cv_target_arch="XCore" ;;
4191 msp430-*) llvm_cv_target_arch="MSP430" ;;
4192 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4193 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4194 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4195 wasm*-*) llvm_cv_target_arch="WebAssembly" ;;
4196 *) llvm_cv_target_arch="Unknown" ;;
4199 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4200 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4202 if test "$llvm_cv_target_arch" = "Unknown" ; then
4203 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4204 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4207 case "$llvm_cv_target_arch" in
4208 x86) LLVM_NATIVE_ARCH="X86" ;;
4209 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4210 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4213 ARCH=$llvm_cv_target_arch
4215 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4219 i?86-*) host_arch="x86" ;;
4220 amd64-* | x86_64-*) host_arch="x86_64" ;;
4221 sparc*-*) host_arch="Sparc" ;;
4222 powerpc*-*) host_arch="PowerPC" ;;
4223 arm64*-*) host_arch="AArch64" ;;
4224 arm*-*) host_arch="ARM" ;;
4225 aarch64*-*) host_arch="AArch64" ;;
4226 mips-* | mips64-*) host_arch="Mips" ;;
4227 mipsel-* | mips64el-*) host_arch="Mips" ;;
4228 xcore-*) host_arch="XCore" ;;
4229 msp430-*) host_arch="MSP430" ;;
4230 hexagon-*) host_arch="Hexagon" ;;
4231 s390x-*) host_arch="SystemZ" ;;
4232 wasm*-*) host_arch="WebAssembly" ;;
4233 *) host_arch="Unknown" ;;
4236 if test "$host_arch" = "Unknown" ; then
4237 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4238 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4241 HOST_ARCH=$host_arch
4244 if test "$cross_compiling" = yes; then
4245 LLVM_CROSS_COMPILING=1
4248 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4249 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4250 if test "${ac_cv_build_exeext+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4254 ac_cv_build_exeext=.exe
4256 ac_build_prefix=${build_alias}-
4258 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4259 set dummy ${ac_build_prefix}gcc; ac_word=$2
4260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4262 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test -n "$BUILD_CC"; then
4266 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4275 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 BUILD_CC=$ac_cv_prog_BUILD_CC
4286 if test -n "$BUILD_CC"; then
4287 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4288 echo "${ECHO_T}$BUILD_CC" >&6; }
4290 { echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6; }
4295 if test -z "$BUILD_CC"; then
4296 # Extract the first word of "gcc", so it can be a program name with args.
4297 set dummy gcc; ac_word=$2
4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4300 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 if test -n "$BUILD_CC"; then
4304 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 ac_cv_prog_BUILD_CC="gcc"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 BUILD_CC=$ac_cv_prog_BUILD_CC
4324 if test -n "$BUILD_CC"; then
4325 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4326 echo "${ECHO_T}$BUILD_CC" >&6; }
4328 { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4333 if test -z "$BUILD_CC"; then
4334 # Extract the first word of "cc", so it can be a program name with args.
4335 set dummy cc; ac_word=$2
4336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4338 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 if test -n "$BUILD_CC"; then
4342 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4353 ac_prog_rejected=yes
4356 ac_cv_prog_BUILD_CC="cc"
4357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 if test $ac_prog_rejected = yes; then
4365 # We found a bogon in the path, so make sure we never use it.
4366 set dummy $ac_cv_prog_BUILD_CC
4368 if test $# != 0; then
4369 # We chose a different compiler from the bogus one.
4370 # However, it has the same basename, so the bogon will be chosen
4371 # first if we set BUILD_CC to just the basename; use the full file name.
4373 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4378 BUILD_CC=$ac_cv_prog_BUILD_CC
4379 if test -n "$BUILD_CC"; then
4380 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4381 echo "${ECHO_T}$BUILD_CC" >&6; }
4383 { echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6; }
4390 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4391 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4392 { (exit 1); exit 1; }; }
4393 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4395 echo 'int main () { return 0; }' > conftest.$ac_ext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4398 (eval $ac_build_link) 2>&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; then
4402 for file in conftest.*; do
4404 *.c | *.o | *.obj | *.dSYM) ;;
4405 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4409 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4410 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4411 { (exit 1); exit 1; }; }
4414 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4419 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4420 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4421 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4422 ac_build_exeext=$BUILD_EXEEXT
4424 ac_build_prefix=${build_alias}-
4425 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4426 set dummy ${ac_build_prefix}g++; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 if test -n "$BUILD_CXX"; then
4433 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4453 if test -n "$BUILD_CXX"; then
4454 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4455 echo "${ECHO_T}$BUILD_CXX" >&6; }
4457 { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4462 if test -z "$BUILD_CXX"; then
4463 # Extract the first word of "g++", so it can be a program name with args.
4464 set dummy g++; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 if test -n "$BUILD_CXX"; then
4471 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4480 ac_cv_prog_BUILD_CXX="g++"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4491 if test -n "$BUILD_CXX"; then
4492 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4493 echo "${ECHO_T}$BUILD_CXX" >&6; }
4495 { echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6; }
4500 if test -z "$BUILD_CXX"; then
4501 # Extract the first word of "c++", so it can be a program name with args.
4502 set dummy c++; ac_word=$2
4503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 if test -n "$BUILD_CXX"; then
4509 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4520 ac_prog_rejected=yes
4523 ac_cv_prog_BUILD_CXX="c++"
4524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 if test $ac_prog_rejected = yes; then
4532 # We found a bogon in the path, so make sure we never use it.
4533 set dummy $ac_cv_prog_BUILD_CXX
4535 if test $# != 0; then
4536 # We chose a different compiler from the bogus one.
4537 # However, it has the same basename, so the bogon will be chosen
4538 # first if we set BUILD_CXX to just the basename; use the full file name.
4540 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4545 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4546 if test -n "$BUILD_CXX"; then
4547 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4548 echo "${ECHO_T}$BUILD_CXX" >&6; }
4550 { echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6; }
4558 LLVM_CROSS_COMPILING=0
4562 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4573 # Check whether --enable-libcpp was given.
4574 if test "${enable_libcpp+set}" = set; then
4575 enableval=$enable_libcpp;
4580 case "$enableval" in
4581 yes) ENABLE_LIBCPP=1
4585 default) ENABLE_LIBCPP=0
4587 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4588 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4589 { (exit 1); exit 1; }; } ;;
4592 # Check whether --enable-compiler-version-checks was given.
4593 if test "${enable_compiler_version_checks+set}" = set; then
4594 enableval=$enable_compiler_version_checks;
4599 case "$enableval" in
4604 ac_cpp='$CXXCPP $CPPFLAGS'
4605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4609 case "$llvm_cv_cxx_compiler" in
4611 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4612 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4613 cat >conftest.$ac_ext <<_ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4620 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4621 #error This version of Clang is too old to build LLVM
4625 rm -f conftest.$ac_objext
4626 if { (ac_try="$ac_compile"
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632 (eval "$ac_compile") 2>conftest.er1
4634 grep -v '^ *+' conftest.er1 >conftest.err
4636 cat conftest.err >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } &&
4639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4640 { (case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_try") 2>&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; } &&
4649 { ac_try='test -s conftest.$ac_objext'
4650 { (case "(($ac_try" in
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655 (eval "$ac_try") 2>&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 { echo "$as_me:$LINENO: result: yes" >&5
4660 echo "${ECHO_T}yes" >&6; }
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4665 { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4667 { { echo "$as_me:$LINENO: error:
4668 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4669 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4670 bypass these sanity checks." >&5
4671 echo "$as_me: error:
4672 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4673 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4674 bypass these sanity checks." >&2;}
4675 { (exit 1); exit 1; }; }
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 if test "$ENABLE_LIBCPP" -eq 0 ; then
4681 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4682 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4683 llvm_cv_old_cxxflags="$CXXFLAGS"
4684 CXXFLAGS="$CXXFLAGS -std=c++0x"
4685 cat >conftest.$ac_ext <<_ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4693 std::atomic<float> x(0.0f);
4694 int main() { return (float)x; }
4697 rm -f conftest.$ac_objext conftest$ac_exeext
4698 if { (ac_try="$ac_link"
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4704 (eval "$ac_link") 2>conftest.er1
4706 grep -v '^ *+' conftest.er1 >conftest.err
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } &&
4711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4712 { (case "(($ac_try" in
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_try") 2>&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try='test -s conftest$ac_exeext'
4722 { (case "(($ac_try" in
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727 (eval "$ac_try") 2>&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4731 { echo "$as_me:$LINENO: result: yes" >&5
4732 echo "${ECHO_T}yes" >&6; }
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4737 { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4739 { { echo "$as_me:$LINENO: error:
4740 We detected a missing feature in the standard C++ library that was known to be
4741 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4742 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4743 than 4.7. You will need to update your system and ensure Clang uses the newer
4746 If this error is incorrect or you need to force things to work, you may pass
4747 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4748 echo "$as_me: error:
4749 We detected a missing feature in the standard C++ library that was known to be
4750 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4751 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4752 than 4.7. You will need to update your system and ensure Clang uses the newer
4755 If this error is incorrect or you need to force things to work, you may pass
4756 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4757 { (exit 1); exit 1; }; }
4760 rm -f core conftest.err conftest.$ac_objext \
4761 conftest$ac_exeext conftest.$ac_ext
4762 CXXFLAGS="$llvm_cv_old_cxxflags"
4766 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4767 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4768 cat >conftest.$ac_ext <<_ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4775 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4776 #error This version of GCC is too old to build LLVM
4780 rm -f conftest.$ac_objext
4781 if { (ac_try="$ac_compile"
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787 (eval "$ac_compile") 2>conftest.er1
4789 grep -v '^ *+' conftest.er1 >conftest.err
4791 cat conftest.err >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } &&
4794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4795 { (case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_try") 2>&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest.$ac_objext'
4805 { (case "(($ac_try" in
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810 (eval "$ac_try") 2>&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 { echo "$as_me:$LINENO: result: yes" >&5
4815 echo "${ECHO_T}yes" >&6; }
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4820 { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4822 { { echo "$as_me:$LINENO: error:
4823 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4824 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4825 bypass these sanity checks." >&5
4826 echo "$as_me: error:
4827 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4828 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4829 bypass these sanity checks." >&2;}
4830 { (exit 1); exit 1; }; }
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 ac_cpp='$CPP $CPPFLAGS'
4840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4847 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4848 { (exit 1); exit 1; }; }
4852 # Check whether --enable-cxx1y was given.
4853 if test "${enable_cxx1y+set}" = set; then
4854 enableval=$enable_cxx1y;
4859 case "$enableval" in
4864 default) ENABLE_CXX1Y=0
4866 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4867 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4868 { (exit 1); exit 1; }; } ;;
4871 # Check whether --enable-split-dwarf was given.
4872 if test "${enable_split_dwarf+set}" = set; then
4873 enableval=$enable_split_dwarf;
4878 case "$enableval" in
4879 yes) ENABLE_SPLIT_DWARF=1
4881 no) ENABLE_SPLIT_DWARF=0
4883 default) ENABLE_SPLIT_DWARF=0
4885 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4886 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4887 { (exit 1); exit 1; }; } ;;
4891 # Check whether --enable-clang-arcmt was given.
4892 if test "${enable_clang_arcmt+set}" = set; then
4893 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4898 case "$enableval" in
4899 yes) ENABLE_CLANG_ARCMT=1
4901 no) ENABLE_CLANG_ARCMT=0
4903 default) ENABLE_CLANG_ARCMT=1
4905 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4906 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4907 { (exit 1); exit 1; }; } ;;
4910 clang_plugin_support="yes"
4911 # Check whether --enable-clang-plugin-support was given.
4912 if test "${enable_clang_plugin_support+set}" = set; then
4913 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4918 case "$enableval" in
4919 yes) CLANG_PLUGIN_SUPPORT=1
4921 no) CLANG_PLUGIN_SUPPORT=0
4923 default) CLANG_PLUGIN_SUPPORT=1
4925 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4926 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4927 { (exit 1); exit 1; }; } ;;
4930 clang_static_analyzer="yes"
4931 # Check whether --enable-clang-static-analyzer was given.
4932 if test "${enable_clang_static_analyzer+set}" = set; then
4933 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4938 case "$enableval" in
4939 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4942 if test ${clang_arcmt} != "no" ; then
4943 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4944 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4945 { (exit 1); exit 1; }; }
4947 ENABLE_CLANG_STATIC_ANALYZER=0
4950 default) ENABLE_CLANG_STATIC_ANALYZER=1
4952 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4953 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4954 { (exit 1); exit 1; }; } ;;
4957 # Check whether --enable-optimized was given.
4958 if test "${enable_optimized+set}" = set; then
4959 enableval=$enable_optimized;
4964 if test ${enableval} = "no" ; then
4968 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4972 # Check whether --enable-profiling was given.
4973 if test "${enable_profiling+set}" = set; then
4974 enableval=$enable_profiling;
4979 if test ${enableval} = "no" ; then
4983 ENABLE_PROFILING=ENABLE_PROFILING=1
4987 # Check whether --enable-assertions was given.
4988 if test "${enable_assertions+set}" = set; then
4989 enableval=$enable_assertions;
4994 if test ${enableval} = "yes" ; then
4997 assertions_enabled="yes"
4999 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5001 assertions_enabled="no"
5004 # Check whether --enable-werror was given.
5005 if test "${enable_werror+set}" = set; then
5006 enableval=$enable_werror;
5011 case "$enableval" in
5012 yes) ENABLE_WERROR=1
5016 default) ENABLE_WERROR=0
5018 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5019 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5020 { (exit 1); exit 1; }; } ;;
5023 # Check whether --enable-expensive-checks was given.
5024 if test "${enable_expensive_checks+set}" = set; then
5025 enableval=$enable_expensive_checks;
5030 if test ${enableval} = "yes" ; then
5031 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5033 EXPENSIVE_CHECKS=yes
5036 ENABLE_EXPENSIVE_CHECKS=
5042 # Check whether --enable-abi-breaking-checks was given.
5043 if test "${enable_abi_breaking_checks+set}" = set; then
5044 enableval=$enable_abi_breaking_checks;
5046 enableval="with-asserts"
5049 case "$enableval" in
5050 with-asserts) if test ${assertions_enabled} = "yes" ; then
5052 cat >>confdefs.h <<\_ACEOF
5053 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5056 ENABLE_ABI_BREAKING_CHECKS=1
5059 ENABLE_ABI_BREAKING_CHECKS=0
5064 cat >>confdefs.h <<\_ACEOF
5065 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5068 ENABLE_ABI_BREAKING_CHECKS=1
5072 ENABLE_ABI_BREAKING_CHECKS=0
5075 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5
5076 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5077 { (exit 1); exit 1; }; }
5080 # Check whether --enable-debug-runtime was given.
5081 if test "${enable_debug_runtime+set}" = set; then
5082 enableval=$enable_debug_runtime;
5087 if test ${enableval} = "no" ; then
5091 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5095 # Check whether --enable-debug-symbols was given.
5096 if test "${enable_debug_symbols+set}" = set; then
5097 enableval=$enable_debug_symbols;
5102 if test ${enableval} = "no" ; then
5106 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5110 # Check whether --enable-keep-symbols was given.
5111 if test "${enable_keep_symbols+set}" = set; then
5112 enableval=$enable_keep_symbols;
5117 if test ${enableval} = "no" ; then
5121 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5125 # Check whether --enable-jit was given.
5126 if test "${enable_jit+set}" = set; then
5127 enableval=$enable_jit;
5132 if test ${enableval} = "no"
5137 case "$llvm_cv_target_arch" in
5138 x86) TARGET_HAS_JIT=1
5140 Sparc) TARGET_HAS_JIT=0
5142 PowerPC) TARGET_HAS_JIT=1
5144 x86_64) TARGET_HAS_JIT=1
5146 ARM) TARGET_HAS_JIT=1
5148 Mips) TARGET_HAS_JIT=1
5150 XCore) TARGET_HAS_JIT=0
5152 MSP430) TARGET_HAS_JIT=0
5154 Hexagon) TARGET_HAS_JIT=0
5156 NVPTX) TARGET_HAS_JIT=0
5158 SystemZ) TARGET_HAS_JIT=1
5160 WebAssembly) TARGET_HAS_JIT=0
5167 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5168 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5171 # Check whether --enable-docs was given.
5172 if test "${enable_docs+set}" = set; then
5173 enableval=$enable_docs;
5178 case "$enableval" in
5183 default) ENABLE_DOCS=1
5185 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5186 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5187 { (exit 1); exit 1; }; } ;;
5190 # Check whether --enable-doxygen was given.
5191 if test "${enable_doxygen+set}" = set; then
5192 enableval=$enable_doxygen;
5197 case "$enableval" in
5198 yes) ENABLE_DOXYGEN=1
5200 no|default) ENABLE_DOXYGEN=0
5202 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5203 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5204 { (exit 1); exit 1; }; } ;;
5207 # Check whether --enable-doxygen-search was given.
5208 if test "${enable_doxygen_search+set}" = set; then
5209 enableval=$enable_doxygen_search;
5214 ENABLE_DOXYGEN_SEARCH="$enableval"
5216 case "$enableval" in
5218 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5219 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5220 { (exit 1); exit 1; }; } ;;
5223 # Check whether --enable-doxygen-external-search was given.
5224 if test "${enable_doxygen_external_search+set}" = set; then
5225 enableval=$enable_doxygen_external_search;
5230 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5232 case "$enableval" in
5234 case "$ENABLE_DOXYGEN_SEARCH" in
5235 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5236 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5237 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5238 { (exit 1); exit 1; }; } ;;
5242 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5243 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5244 { (exit 1); exit 1; }; } ;;
5248 # Check whether --with-doxygen-search-engine-url was given.
5249 if test "${with_doxygen_search_engine_url+set}" = set; then
5250 withval=$with_doxygen_search_engine_url;
5253 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5256 # Check whether --with-doxygen-search-mappings was given.
5257 if test "${with_doxygen_search_mappings+set}" = set; then
5258 withval=$with_doxygen_search_mappings;
5261 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5263 case "$ENABLE_DOXYGEN_SEARCH" in
5265 if test "$ENABLE_DOXYGEN" = "0" ; then
5266 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5267 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5268 { (exit 1); exit 1; }; }
5271 enable_searchengine=YES
5274 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5276 enable_external_search=YES
5278 enable_server_based_search=YES
5280 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5282 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5287 enable_external_search=NO
5289 enable_server_based_search=NO
5298 enable_searchengine=NO
5301 enable_server_based_search=NO
5303 enable_external_search=NO
5309 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5310 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5311 { (exit 1); exit 1; }; }
5315 # Check whether --enable-doxygen-qt-help was given.
5316 if test "${enable_doxygen_qt_help+set}" = set; then
5317 enableval=$enable_doxygen_qt_help;
5322 case "$enableval" in
5324 if test "$ENABLE_DOXYGEN" = "0" ; then
5325 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5326 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5327 { (exit 1); exit 1; }; }
5330 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5331 set dummy qhelpgenerator; ac_word=$2
5332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5334 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 case $QHELPGENERATOR in
5339 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5361 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5362 if test -n "$QHELPGENERATOR"; then
5363 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5364 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5366 { echo "$as_me:$LINENO: result: no" >&5
5367 echo "${ECHO_T}no" >&6; }
5372 llvm_doxygen_generate_qhp=YES
5374 llvm_doxygen_qch_filename=org.llvm.qch
5376 llvm_doxygen_qhp_namespace=org.llvm
5378 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5380 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5382 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5385 clang_doxygen_generate_qhp=YES
5387 clang_doxygen_qch_filename=org.llvm.clang.qch
5389 clang_doxygen_qhp_namespace=org.llvm.clang
5391 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5393 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5395 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5400 llvm_doxygen_generate_qhp=NO
5408 clang_doxygen_generate_qhp=NO
5413 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5415 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5420 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5421 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5422 { (exit 1); exit 1; }; } ;;
5425 # Check whether --enable-threads was given.
5426 if test "${enable_threads+set}" = set; then
5427 enableval=$enable_threads;
5432 case "$enableval" in
5433 yes) LLVM_ENABLE_THREADS=1
5435 no) LLVM_ENABLE_THREADS=0
5437 default) LLVM_ENABLE_THREADS=1
5439 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5440 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5441 { (exit 1); exit 1; }; } ;;
5444 cat >>confdefs.h <<_ACEOF
5445 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5449 # Check whether --enable-pthreads was given.
5450 if test "${enable_pthreads+set}" = set; then
5451 enableval=$enable_pthreads;
5456 case "$enableval" in
5457 yes) ENABLE_PTHREADS=1
5459 no) ENABLE_PTHREADS=0
5461 default) ENABLE_PTHREADS=1
5463 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5464 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5465 { (exit 1); exit 1; }; } ;;
5468 # Check whether --enable-zlib was given.
5469 if test "${enable_zlib+set}" = set; then
5470 enableval=$enable_zlib;
5475 case "$enableval" in
5476 yes) LLVM_ENABLE_ZLIB=1
5478 no) LLVM_ENABLE_ZLIB=0
5480 default) LLVM_ENABLE_ZLIB=1
5482 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5483 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5484 { (exit 1); exit 1; }; } ;;
5487 cat >>confdefs.h <<_ACEOF
5488 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5492 # Check whether --enable-pic was given.
5493 if test "${enable_pic+set}" = set; then
5494 enableval=$enable_pic;
5499 case "$enableval" in
5504 default) ENABLE_PIC=1
5506 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5507 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5508 { (exit 1); exit 1; }; } ;;
5511 cat >>confdefs.h <<_ACEOF
5512 #define ENABLE_PIC $ENABLE_PIC
5516 # Check whether --enable-shared was given.
5517 if test "${enable_shared+set}" = set; then
5518 enableval=$enable_shared;
5523 case "$enableval" in
5524 yes) ENABLE_SHARED=1
5528 default) ENABLE_SHARED=0
5530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5531 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5532 { (exit 1); exit 1; }; } ;;
5535 # Check whether --enable-embed-stdcxx was given.
5536 if test "${enable_embed_stdcxx+set}" = set; then
5537 enableval=$enable_embed_stdcxx;
5542 case "$enableval" in
5543 yes) ENABLE_EMBED_STDCXX=1
5545 no) ENABLE_EMBED_STDCXX=0
5547 default) ENABLE_EMBED_STDCXX=0
5549 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5550 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5551 { (exit 1); exit 1; }; } ;;
5554 # Check whether --enable-timestamps was given.
5555 if test "${enable_timestamps+set}" = set; then
5556 enableval=$enable_timestamps;
5561 case "$enableval" in
5562 yes) ENABLE_TIMESTAMPS=1
5564 no) ENABLE_TIMESTAMPS=0
5566 default) ENABLE_TIMESTAMPS=1
5568 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5569 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5570 { (exit 1); exit 1; }; } ;;
5573 cat >>confdefs.h <<_ACEOF
5574 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5578 # Check whether --enable-backtraces was given.
5579 if test "${enable_backtraces+set}" = set; then
5580 enableval=$enable_backtraces; case "$enableval" in
5581 yes) llvm_cv_enable_backtraces="yes" ;;
5582 no) llvm_cv_enable_backtraces="no" ;;
5583 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5584 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5585 { (exit 1); exit 1; }; } ;;
5588 llvm_cv_enable_backtraces="yes"
5591 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5593 cat >>confdefs.h <<\_ACEOF
5594 #define ENABLE_BACKTRACES 1
5599 # Check whether --enable-crash-overrides was given.
5600 if test "${enable_crash_overrides+set}" = set; then
5601 enableval=$enable_crash_overrides; case "$enableval" in
5602 yes) llvm_cv_enable_crash_overrides="yes" ;;
5603 no) llvm_cv_enable_crash_overrides="no" ;;
5604 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5605 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5606 { (exit 1); exit 1; }; } ;;
5609 llvm_cv_enable_crash_overrides="yes"
5612 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5614 cat >>confdefs.h <<\_ACEOF
5615 #define ENABLE_CRASH_OVERRIDES 1
5620 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ AMDGPU BPF"
5621 ALL_TARGETS=$ALL_TARGETS
5625 # Check whether --enable-targets was given.
5626 if test "${enable_targets+set}" = set; then
5627 enableval=$enable_targets;
5632 if test "$enableval" = host-only ; then
5635 case "$enableval" in
5636 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5637 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5639 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5640 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5641 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5642 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5643 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5644 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5645 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5646 bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
5647 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5648 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5649 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5650 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5651 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5652 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5653 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5654 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5655 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5656 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5657 amdgpu) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5658 r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5659 wasm) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5660 host) case "$llvm_cv_target_arch" in
5661 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5662 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5663 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5664 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5665 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5666 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5667 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5668 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5669 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5670 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5671 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5672 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5673 WebAssembly) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5674 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5675 echo "$as_me: error: Can not set target to build" >&2;}
5676 { (exit 1); exit 1; }; } ;;
5678 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5679 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5680 { (exit 1); exit 1; }; } ;;
5686 # Check whether --enable-experimental-targets was given.
5687 if test "${enable_experimental_targets+set}" = set; then
5688 enableval=$enable_experimental_targets;
5694 if test ${enableval} != "disable"
5696 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5699 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5702 for a_target in $TARGETS_TO_BUILD; do
5703 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5705 cat >>confdefs.h <<_ACEOF
5706 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5709 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5710 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5711 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5712 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5713 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5714 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5716 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5717 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5720 cat >>confdefs.h <<_ACEOF
5721 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5725 cat >>confdefs.h <<_ACEOF
5726 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5730 cat >>confdefs.h <<_ACEOF
5731 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5735 cat >>confdefs.h <<_ACEOF
5736 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5739 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5741 cat >>confdefs.h <<_ACEOF
5742 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5746 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5748 cat >>confdefs.h <<_ACEOF
5749 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5756 LLVM_ENUM_TARGETS=""
5757 LLVM_ENUM_ASM_PRINTERS=""
5758 LLVM_ENUM_ASM_PARSERS=""
5759 LLVM_ENUM_DISASSEMBLERS=""
5760 for target_to_build in $TARGETS_TO_BUILD; do
5761 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5762 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5763 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5765 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5766 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5768 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5769 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5778 # Check whether --with-optimize-option was given.
5779 if test "${with_optimize_option+set}" = set; then
5780 withval=$with_optimize_option;
5785 { echo "$as_me:$LINENO: checking optimization flags" >&5
5786 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5789 case "$llvm_cv_os_type" in
5790 FreeBSD) optimize_option=-O2 ;;
5791 MingW) optimize_option=-O2 ;;
5792 *) optimize_option=-O3 ;;
5794 *) optimize_option="$withval" ;;
5796 OPTIMIZE_OPTION=$optimize_option
5798 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5799 echo "${ECHO_T}$optimize_option" >&6; }
5802 # Check whether --with-extra-options was given.
5803 if test "${with_extra_options+set}" = set; then
5804 withval=$with_extra_options;
5810 default) EXTRA_OPTIONS= ;;
5811 *) EXTRA_OPTIONS=$withval ;;
5813 EXTRA_OPTIONS=$EXTRA_OPTIONS
5817 # Check whether --with-extra-ld-options was given.
5818 if test "${with_extra_ld_options+set}" = set; then
5819 withval=$with_extra_ld_options;
5825 default) EXTRA_LD_OPTIONS= ;;
5826 *) EXTRA_LD_OPTIONS=$withval ;;
5828 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5831 # Check whether --enable-bindings was given.
5832 if test "${enable_bindings+set}" = set; then
5833 enableval=$enable_bindings;
5838 BINDINGS_TO_BUILD=""
5839 case "$enableval" in
5840 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5841 all ) BINDINGS_TO_BUILD="ocaml" ;;
5842 none | no) BINDINGS_TO_BUILD="" ;;
5843 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5844 case "$a_binding" in
5845 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5846 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5847 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5848 { (exit 1); exit 1; }; } ;;
5855 # Check whether --with-ocaml-libdir was given.
5856 if test "${with_ocaml_libdir+set}" = set; then
5857 withval=$with_ocaml_libdir;
5863 auto) with_ocaml_libdir="$withval" ;;
5864 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5865 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5866 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5867 { (exit 1); exit 1; }; } ;;
5871 # Check whether --with-clang-srcdir was given.
5872 if test "${with_clang_srcdir+set}" = set; then
5873 withval=$with_clang_srcdir;
5879 -) clang_src_root="" ;;
5880 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5881 *) clang_src_root="$ac_pwd/$withval" ;;
5883 CLANG_SRC_ROOT=$clang_src_root
5887 # Check whether --with-clang-resource-dir was given.
5888 if test "${with_clang_resource_dir+set}" = set; then
5889 withval=$with_clang_resource_dir;
5895 cat >>confdefs.h <<_ACEOF
5896 #define CLANG_RESOURCE_DIR "$withval"
5901 # Check whether --with-c-include-dirs was given.
5902 if test "${with_c_include_dirs+set}" = set; then
5903 withval=$with_c_include_dirs;
5909 cat >>confdefs.h <<_ACEOF
5910 #define C_INCLUDE_DIRS "$withval"
5914 # Clang normally uses the system c++ headers and libraries. With this option,
5915 # clang will use the ones provided by a gcc installation instead. This option should
5916 # be passed the same value that was used with --prefix when configuring gcc.
5918 # Check whether --with-gcc-toolchain was given.
5919 if test "${with_gcc_toolchain+set}" = set; then
5920 withval=$with_gcc_toolchain;
5926 cat >>confdefs.h <<_ACEOF
5927 #define GCC_INSTALL_PREFIX "$withval"
5932 # Check whether --with-default-sysroot was given.
5933 if test "${with_default_sysroot+set}" = set; then
5934 withval=$with_default_sysroot;
5940 cat >>confdefs.h <<_ACEOF
5941 #define DEFAULT_SYSROOT "$withval"
5946 # Check whether --with-clang-default-openmp-runtime was given.
5947 if test "${with_clang_default_openmp_runtime+set}" = set; then
5948 withval=$with_clang_default_openmp_runtime;
5954 cat >>confdefs.h <<_ACEOF
5955 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5960 # Check whether --with-binutils-include was given.
5961 if test "${with_binutils_include+set}" = set; then
5962 withval=$with_binutils_include;
5968 default) WITH_BINUTILS_INCDIR=default ;;
5969 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5970 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5971 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5972 { (exit 1); exit 1; }; } ;;
5974 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5975 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5977 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5978 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5979 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5980 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5981 { (exit 1); exit 1; }; };
5986 # Check whether --with-bug-report-url was given.
5987 if test "${with_bug_report_url+set}" = set; then
5988 withval=$with_bug_report_url;
5990 withval="http://llvm.org/bugs/"
5994 cat >>confdefs.h <<_ACEOF
5995 #define BUG_REPORT_URL "$withval"
5999 # Check whether --enable-terminfo was given.
6000 if test "${enable_terminfo+set}" = set; then
6001 enableval=$enable_terminfo; case "$enableval" in
6002 yes) llvm_cv_enable_terminfo="yes" ;;
6003 no) llvm_cv_enable_terminfo="no" ;;
6004 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6005 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6006 { (exit 1); exit 1; }; } ;;
6009 llvm_cv_enable_terminfo="yes"
6012 case "$llvm_cv_enable_terminfo" in
6013 yes) ENABLE_TERMINFO=1
6015 no) ENABLE_TERMINFO=0
6019 # Check whether --enable-libedit was given.
6020 if test "${enable_libedit+set}" = set; then
6021 enableval=$enable_libedit; case "$enableval" in
6022 yes) llvm_cv_enable_libedit="yes" ;;
6023 no) llvm_cv_enable_libedit="no" ;;
6024 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6025 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6026 { (exit 1); exit 1; }; } ;;
6029 llvm_cv_enable_libedit="yes"
6033 # Check whether --enable-libffi was given.
6034 if test "${enable_libffi+set}" = set; then
6035 enableval=$enable_libffi; case "$enableval" in
6036 yes) llvm_cv_enable_libffi="yes" ;;
6037 no) llvm_cv_enable_libffi="no" ;;
6038 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6039 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6040 { (exit 1); exit 1; }; } ;;
6043 llvm_cv_enable_libffi=no
6048 # Check whether --with-internal-prefix was given.
6049 if test "${with_internal_prefix+set}" = set; then
6050 withval=$with_internal_prefix;
6055 INTERNAL_PREFIX=$withval
6059 { echo "$as_me:$LINENO: checking for GNU make" >&5
6060 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6061 if test "${llvm_cv_gnu_make_command+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 llvm_cv_gnu_make_command=''
6065 for a in "$MAKE" make gmake gnumake ; do
6066 if test -z "$a" ; then continue ; fi ;
6067 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6069 llvm_cv_gnu_make_command=$a ;
6074 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6075 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6076 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6080 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6081 echo "${ECHO_T}\"Not found\"" >&6; };
6085 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6086 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6088 if test "$LN_S" = "ln -s"; then
6089 { echo "$as_me:$LINENO: result: yes" >&5
6090 echo "${ECHO_T}yes" >&6; }
6092 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6093 echo "${ECHO_T}no, using $LN_S" >&6; }
6096 # Extract the first word of "nm", so it can be a program name with args.
6097 set dummy nm; ac_word=$2
6098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6100 if test "${ac_cv_path_NM+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 ac_cv_path_NM="$NM" # Let the user override the test with a path.
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6128 if test -n "$NM"; then
6129 { echo "$as_me:$LINENO: result: $NM" >&5
6130 echo "${ECHO_T}$NM" >&6; }
6132 { echo "$as_me:$LINENO: result: no" >&5
6133 echo "${ECHO_T}no" >&6; }
6137 # Extract the first word of "cmp", so it can be a program name with args.
6138 set dummy cmp; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_path_CMP+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6169 if test -n "$CMP"; then
6170 { echo "$as_me:$LINENO: result: $CMP" >&5
6171 echo "${ECHO_T}$CMP" >&6; }
6173 { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6178 # Extract the first word of "cp", so it can be a program name with args.
6179 set dummy cp; ac_word=$2
6180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182 if test "${ac_cv_path_CP+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6210 if test -n "$CP"; then
6211 { echo "$as_me:$LINENO: result: $CP" >&5
6212 echo "${ECHO_T}$CP" >&6; }
6214 { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6219 # Extract the first word of "date", so it can be a program name with args.
6220 set dummy date; ac_word=$2
6221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223 if test "${ac_cv_path_DATE+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6250 DATE=$ac_cv_path_DATE
6251 if test -n "$DATE"; then
6252 { echo "$as_me:$LINENO: result: $DATE" >&5
6253 echo "${ECHO_T}$DATE" >&6; }
6255 { echo "$as_me:$LINENO: result: no" >&5
6256 echo "${ECHO_T}no" >&6; }
6260 # Extract the first word of "find", so it can be a program name with args.
6261 set dummy find; ac_word=$2
6262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6264 if test "${ac_cv_path_FIND+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6291 FIND=$ac_cv_path_FIND
6292 if test -n "$FIND"; then
6293 { echo "$as_me:$LINENO: result: $FIND" >&5
6294 echo "${ECHO_T}$FIND" >&6; }
6296 { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6301 # Extract the first word of "grep", so it can be a program name with args.
6302 set dummy grep; ac_word=$2
6303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6305 if test "${ac_cv_path_GREP+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6332 GREP=$ac_cv_path_GREP
6333 if test -n "$GREP"; then
6334 { echo "$as_me:$LINENO: result: $GREP" >&5
6335 echo "${ECHO_T}$GREP" >&6; }
6337 { echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6; }
6342 # Extract the first word of "mkdir", so it can be a program name with args.
6343 set dummy mkdir; ac_word=$2
6344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346 if test "${ac_cv_path_MKDIR+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6373 MKDIR=$ac_cv_path_MKDIR
6374 if test -n "$MKDIR"; then
6375 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6376 echo "${ECHO_T}$MKDIR" >&6; }
6378 { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6383 # Extract the first word of "mv", so it can be a program name with args.
6384 set dummy mv; ac_word=$2
6385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6387 if test "${ac_cv_path_MV+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6402 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6415 if test -n "$MV"; then
6416 { echo "$as_me:$LINENO: result: $MV" >&5
6417 echo "${ECHO_T}$MV" >&6; }
6419 { echo "$as_me:$LINENO: result: no" >&5
6420 echo "${ECHO_T}no" >&6; }
6424 if test -n "$ac_tool_prefix"; then
6425 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6426 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6429 if test "${ac_cv_prog_RANLIB+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 if test -n "$RANLIB"; then
6433 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6442 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 RANLIB=$ac_cv_prog_RANLIB
6453 if test -n "$RANLIB"; then
6454 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6455 echo "${ECHO_T}$RANLIB" >&6; }
6457 { echo "$as_me:$LINENO: result: no" >&5
6458 echo "${ECHO_T}no" >&6; }
6463 if test -z "$ac_cv_prog_RANLIB"; then
6464 ac_ct_RANLIB=$RANLIB
6465 # Extract the first word of "ranlib", so it can be a program name with args.
6466 set dummy ranlib; ac_word=$2
6467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6469 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 if test -n "$ac_ct_RANLIB"; then
6473 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6482 ac_cv_prog_ac_ct_RANLIB="ranlib"
6483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6493 if test -n "$ac_ct_RANLIB"; then
6494 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6495 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6497 { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6501 if test "x$ac_ct_RANLIB" = x; then
6504 case $cross_compiling:$ac_tool_warned in
6506 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6507 whose name does not start with the host triplet. If you think this
6508 configuration is useful to you, please write to autoconf@gnu.org." >&5
6509 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6510 whose name does not start with the host triplet. If you think this
6511 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6512 ac_tool_warned=yes ;;
6514 RANLIB=$ac_ct_RANLIB
6517 RANLIB="$ac_cv_prog_RANLIB"
6520 if test -n "$ac_tool_prefix"; then
6521 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6522 set dummy ${ac_tool_prefix}ar; ac_word=$2
6523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6525 if test "${ac_cv_prog_AR+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 if test -n "$AR"; then
6529 ac_cv_prog_AR="$AR" # Let the user override the test.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_AR="${ac_tool_prefix}ar"
6539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 if test -n "$AR"; then
6550 { echo "$as_me:$LINENO: result: $AR" >&5
6551 echo "${ECHO_T}$AR" >&6; }
6553 { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6559 if test -z "$ac_cv_prog_AR"; then
6561 # Extract the first word of "ar", so it can be a program name with args.
6562 set dummy ar; ac_word=$2
6563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6565 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 if test -n "$ac_ct_AR"; then
6569 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_ac_ct_AR="ar"
6579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6589 if test -n "$ac_ct_AR"; then
6590 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6591 echo "${ECHO_T}$ac_ct_AR" >&6; }
6593 { echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6; }
6597 if test "x$ac_ct_AR" = x; then
6600 case $cross_compiling:$ac_tool_warned in
6602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6603 whose name does not start with the host triplet. If you think this
6604 configuration is useful to you, please write to autoconf@gnu.org." >&5
6605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6606 whose name does not start with the host triplet. If you think this
6607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6608 ac_tool_warned=yes ;;
6616 # Extract the first word of "rm", so it can be a program name with args.
6617 set dummy rm; ac_word=$2
6618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620 if test "${ac_cv_path_RM+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6635 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6648 if test -n "$RM"; then
6649 { echo "$as_me:$LINENO: result: $RM" >&5
6650 echo "${ECHO_T}$RM" >&6; }
6652 { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6657 # Extract the first word of "sed", so it can be a program name with args.
6658 set dummy sed; ac_word=$2
6659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6661 if test "${ac_cv_path_SED+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6676 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6689 if test -n "$SED"; then
6690 { echo "$as_me:$LINENO: result: $SED" >&5
6691 echo "${ECHO_T}$SED" >&6; }
6693 { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6698 # Extract the first word of "tar", so it can be a program name with args.
6699 set dummy tar; ac_word=$2
6700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702 if test "${ac_cv_path_TAR+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6730 if test -n "$TAR"; then
6731 { echo "$as_me:$LINENO: result: $TAR" >&5
6732 echo "${ECHO_T}$TAR" >&6; }
6734 { echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6; }
6739 # Extract the first word of "pwd", so it can be a program name with args.
6740 set dummy pwd; ac_word=$2
6741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6743 if test "${ac_cv_path_BINPWD+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6770 BINPWD=$ac_cv_path_BINPWD
6771 if test -n "$BINPWD"; then
6772 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6773 echo "${ECHO_T}$BINPWD" >&6; }
6775 { echo "$as_me:$LINENO: result: no" >&5
6776 echo "${ECHO_T}no" >&6; }
6781 # Extract the first word of "dot", so it can be a program name with args.
6782 set dummy dot; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_DOT+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6813 if test -n "$DOT"; then
6814 { echo "$as_me:$LINENO: result: $DOT" >&5
6815 echo "${ECHO_T}$DOT" >&6; }
6817 { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6822 if test "$DOT" != "echo dot" ; then
6824 cat >>confdefs.h <<\_ACEOF
6828 if test "$llvm_cv_os_type" = "MingW" ; then
6829 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6832 cat >>confdefs.h <<_ACEOF
6833 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6838 # Find a good install program. We prefer a C program (faster),
6839 # so one script is as good as another. But avoid the broken or
6840 # incompatible versions:
6841 # SysV /etc/install, /usr/sbin/install
6842 # SunOS /usr/etc/install
6843 # IRIX /sbin/install
6845 # AmigaOS /C/install, which installs bootblocks on floppy discs
6846 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6847 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6848 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6849 # OS/2's system install, which has a completely different semantic
6850 # ./install, which can be erroneously created by make from ./install.sh.
6851 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6852 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6853 if test -z "$INSTALL"; then
6854 if test "${ac_cv_path_install+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 test -z "$as_dir" && as_dir=.
6862 # Account for people who put trailing slashes in PATH elements.
6864 ./ | .// | /cC/* | \
6865 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6866 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6869 # OSF1 and SCO ODT 3.0 have their own names for install.
6870 # Don't use installbsd from OSF since it installs stuff as root
6872 for ac_prog in ginstall scoinst install; do
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6875 if test $ac_prog = install &&
6876 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6877 # AIX install. It has an incompatible calling convention.
6879 elif test $ac_prog = install &&
6880 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6881 # program-specific install script used by HP pwplus--don't use.
6884 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6897 if test "${ac_cv_path_install+set}" = set; then
6898 INSTALL=$ac_cv_path_install
6900 # As a last resort, use the slow shell script. Don't cache a
6901 # value for INSTALL within a source directory, because that will
6902 # break other packages using the cache if that directory is
6903 # removed, or if the value is a relative name.
6904 INSTALL=$ac_install_sh
6907 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6908 echo "${ECHO_T}$INSTALL" >&6; }
6910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6911 # It thinks the first close brace ends the variable substitution.
6912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6916 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6919 [\\/$]* | ?:[\\/]* ) ;;
6920 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6923 # Extract the first word of "bzip2", so it can be a program name with args.
6924 set dummy bzip2; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_BZIP2+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 BZIP2=$ac_cv_path_BZIP2
6954 if test -n "$BZIP2"; then
6955 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6956 echo "${ECHO_T}$BZIP2" >&6; }
6958 { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6963 # Extract the first word of "cat", so it can be a program name with args.
6964 set dummy cat; ac_word=$2
6965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6967 if test "${ac_cv_path_CAT+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 if test -n "$CAT"; then
6995 { echo "$as_me:$LINENO: result: $CAT" >&5
6996 echo "${ECHO_T}$CAT" >&6; }
6998 { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7003 # Extract the first word of "doxygen", so it can be a program name with args.
7004 set dummy doxygen; ac_word=$2
7005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7007 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7022 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 DOXYGEN=$ac_cv_path_DOXYGEN
7034 if test -n "$DOXYGEN"; then
7035 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7036 echo "${ECHO_T}$DOXYGEN" >&6; }
7038 { echo "$as_me:$LINENO: result: no" >&5
7039 echo "${ECHO_T}no" >&6; }
7043 # Extract the first word of "groff", so it can be a program name with args.
7044 set dummy groff; ac_word=$2
7045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7047 if test "${ac_cv_path_GROFF+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 GROFF=$ac_cv_path_GROFF
7074 if test -n "$GROFF"; then
7075 { echo "$as_me:$LINENO: result: $GROFF" >&5
7076 echo "${ECHO_T}$GROFF" >&6; }
7078 { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7083 # Extract the first word of "gzip", so it can be a program name with args.
7084 set dummy gzip; ac_word=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 GZIPBIN=$ac_cv_path_GZIPBIN
7114 if test -n "$GZIPBIN"; then
7115 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7116 echo "${ECHO_T}$GZIPBIN" >&6; }
7118 { echo "$as_me:$LINENO: result: no" >&5
7119 echo "${ECHO_T}no" >&6; }
7123 # Extract the first word of "pdfroff", so it can be a program name with args.
7124 set dummy pdfroff; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_path_PDFROFF+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 PDFROFF=$ac_cv_path_PDFROFF
7154 if test -n "$PDFROFF"; then
7155 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7156 echo "${ECHO_T}$PDFROFF" >&6; }
7158 { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7163 # Extract the first word of "zip", so it can be a program name with args.
7164 set dummy zip; ac_word=$2
7165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167 if test "${ac_cv_path_ZIP+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 if test -n "$ZIP"; then
7195 { echo "$as_me:$LINENO: result: $ZIP" >&5
7196 echo "${ECHO_T}$ZIP" >&6; }
7198 { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7203 # Extract the first word of "go", so it can be a program name with args.
7204 set dummy go; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_GO+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 ac_cv_path_GO="$GO" # Let the user override the test with a path.
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 if test -n "$GO"; then
7235 { echo "$as_me:$LINENO: result: $GO" >&5
7236 echo "${ECHO_T}$GO" >&6; }
7238 { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7243 for ac_prog in ocamlfind
7245 # Extract the first word of "$ac_prog", so it can be a program name with args.
7246 set dummy $ac_prog; ac_word=$2
7247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 OCAMLFIND=$ac_cv_path_OCAMLFIND
7276 if test -n "$OCAMLFIND"; then
7277 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7278 echo "${ECHO_T}$OCAMLFIND" >&6; }
7280 { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7285 test -n "$OCAMLFIND" && break
7288 for ac_prog in gas as
7290 # Extract the first word of "$ac_prog", so it can be a program name with args.
7291 set dummy $ac_prog; ac_word=$2
7292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7294 if test "${ac_cv_path_GAS+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7309 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 if test -n "$GAS"; then
7322 { echo "$as_me:$LINENO: result: $GAS" >&5
7323 echo "${ECHO_T}$GAS" >&6; }
7325 { echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6; }
7330 test -n "$GAS" && break
7334 { echo "$as_me:$LINENO: checking for linker version" >&5
7335 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7336 if test "${llvm_cv_link_version+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7343 if (echo "$version_string" | grep -q "ld64"); then
7344 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7346 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7350 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7351 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7353 cat >>confdefs.h <<_ACEOF
7354 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7360 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7361 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7362 if test "${llvm_cv_link_use_r+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 ac_cpp='$CPP $CPPFLAGS'
7367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372 CFLAGS="$CFLAGS -Wl,-R."
7373 cat >conftest.$ac_ext <<_ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7388 rm -f conftest.$ac_objext conftest$ac_exeext
7389 if { (ac_try="$ac_link"
7391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392 *) ac_try_echo=$ac_try;;
7394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7395 (eval "$ac_link") 2>conftest.er1
7397 grep -v '^ *+' conftest.er1 >conftest.err
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7403 { (case "(($ac_try" in
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_try") 2>&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; } &&
7412 { ac_try='test -s conftest$ac_exeext'
7413 { (case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_try") 2>&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7422 llvm_cv_link_use_r=yes
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 llvm_cv_link_use_r=no
7430 rm -f core conftest.err conftest.$ac_objext \
7431 conftest$ac_exeext conftest.$ac_ext
7434 ac_cpp='$CPP $CPPFLAGS'
7435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7441 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7442 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7443 if test "$llvm_cv_link_use_r" = yes ; then
7445 cat >>confdefs.h <<\_ACEOF
7446 #define HAVE_LINK_R 1
7452 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7453 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7454 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 ac_cpp='$CPP $CPPFLAGS'
7459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7464 CFLAGS="$CFLAGS -rdynamic"
7465 cat >conftest.$ac_ext <<_ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7480 rm -f conftest.$ac_objext conftest$ac_exeext
7481 if { (ac_try="$ac_link"
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487 (eval "$ac_link") 2>conftest.er1
7489 grep -v '^ *+' conftest.er1 >conftest.err
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } &&
7494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7495 { (case "(($ac_try" in
7496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497 *) ac_try_echo=$ac_try;;
7499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7500 (eval "$ac_try") 2>&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; } &&
7504 { ac_try='test -s conftest$ac_exeext'
7505 { (case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510 (eval "$ac_try") 2>&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514 llvm_cv_link_use_export_dynamic=yes
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7519 llvm_cv_link_use_export_dynamic=no
7522 rm -f core conftest.err conftest.$ac_objext \
7523 conftest$ac_exeext conftest.$ac_ext
7526 ac_cpp='$CPP $CPPFLAGS'
7527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7534 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7535 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7537 cat >>confdefs.h <<\_ACEOF
7538 #define HAVE_LINK_EXPORT_DYNAMIC 1
7544 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7545 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7546 if test "${llvm_cv_link_use_version_script+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 ac_cpp='$CPP $CPPFLAGS'
7551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7557 # The following code is from the autoconf manual,
7558 # "11.13: Limitations of Usual Tools".
7559 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7560 # Use mktemp if possible; otherwise fall back on mkdir,
7561 # with $RANDOM to make collisions less likely.
7565 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7567 test -n "$tmp" && test -d "$tmp"
7569 tmp=$TMPDIR/foo$$-$RANDOM
7570 (umask 077 && mkdir "$tmp")
7573 echo "{" > "$tmp/export.map"
7574 echo " global: main;" >> "$tmp/export.map"
7575 echo " local: *;" >> "$tmp/export.map"
7576 echo "};" >> "$tmp/export.map"
7578 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7579 cat >conftest.$ac_ext <<_ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (ac_try="$ac_link"
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_link") 2>conftest.er1
7603 grep -v '^ *+' conftest.er1 >conftest.err
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } &&
7608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7609 { (case "(($ac_try" in
7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614 (eval "$ac_try") 2>&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; } &&
7618 { ac_try='test -s conftest$ac_exeext'
7619 { (case "(($ac_try" in
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_try") 2>&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 llvm_cv_link_use_version_script=yes
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7633 llvm_cv_link_use_version_script=no
7636 rm -f core conftest.err conftest.$ac_objext \
7637 conftest$ac_exeext conftest.$ac_ext
7638 rm "$tmp/export.map"
7642 ac_cpp='$CPP $CPPFLAGS'
7643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7650 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7651 if test "$llvm_cv_link_use_version_script" = yes ; then
7652 HAVE_LINK_VERSION_SCRIPT=1
7658 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7659 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7660 if test "${ac_cv_path_GREP+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 # Extract the first word of "grep ggrep" to use in msg output
7664 if test -z "$GREP"; then
7665 set dummy grep ggrep; ac_prog_name=$2
7666 if test "${ac_cv_path_GREP+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 ac_path_GREP_found=false
7670 # Loop through the user's path and test for each of PROGNAME-LIST
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7675 test -z "$as_dir" && as_dir=.
7676 for ac_prog in grep ggrep; do
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7679 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7680 # Check for GNU ac_path_GREP and select it if it is found.
7681 # Check for GNU $ac_path_GREP
7682 case `"$ac_path_GREP" --version 2>&1` in
7684 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7687 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7690 cat "conftest.in" "conftest.in" >"conftest.tmp"
7691 mv "conftest.tmp" "conftest.in"
7692 cp "conftest.in" "conftest.nl"
7693 echo 'GREP' >> "conftest.nl"
7694 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7696 ac_count=`expr $ac_count + 1`
7697 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7698 # Best one so far, save it but keep looking for a better one
7699 ac_cv_path_GREP="$ac_path_GREP"
7700 ac_path_GREP_max=$ac_count
7702 # 10*(2^10) chars as input seems more than enough
7703 test $ac_count -gt 10 && break
7705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7709 $ac_path_GREP_found && break 3
7719 GREP="$ac_cv_path_GREP"
7720 if test -z "$GREP"; then
7721 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7722 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7723 { (exit 1); exit 1; }; }
7727 ac_cv_path_GREP=$GREP
7732 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7733 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7734 GREP="$ac_cv_path_GREP"
7737 { echo "$as_me:$LINENO: checking for egrep" >&5
7738 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7739 if test "${ac_cv_path_EGREP+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7743 then ac_cv_path_EGREP="$GREP -E"
7745 # Extract the first word of "egrep" to use in msg output
7746 if test -z "$EGREP"; then
7747 set dummy egrep; ac_prog_name=$2
7748 if test "${ac_cv_path_EGREP+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 ac_path_EGREP_found=false
7752 # Loop through the user's path and test for each of PROGNAME-LIST
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7757 test -z "$as_dir" && as_dir=.
7758 for ac_prog in egrep; do
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7761 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7762 # Check for GNU ac_path_EGREP and select it if it is found.
7763 # Check for GNU $ac_path_EGREP
7764 case `"$ac_path_EGREP" --version 2>&1` in
7766 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7769 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7772 cat "conftest.in" "conftest.in" >"conftest.tmp"
7773 mv "conftest.tmp" "conftest.in"
7774 cp "conftest.in" "conftest.nl"
7775 echo 'EGREP' >> "conftest.nl"
7776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7778 ac_count=`expr $ac_count + 1`
7779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7780 # Best one so far, save it but keep looking for a better one
7781 ac_cv_path_EGREP="$ac_path_EGREP"
7782 ac_path_EGREP_max=$ac_count
7784 # 10*(2^10) chars as input seems more than enough
7785 test $ac_count -gt 10 && break
7787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7791 $ac_path_EGREP_found && break 3
7801 EGREP="$ac_cv_path_EGREP"
7802 if test -z "$EGREP"; then
7803 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7804 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7805 { (exit 1); exit 1; }; }
7809 ac_cv_path_EGREP=$EGREP
7815 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7816 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7817 EGREP="$ac_cv_path_EGREP"
7820 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7821 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7822 if test "${ac_cv_header_stdc+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 cat >conftest.$ac_ext <<_ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7844 rm -f conftest.$ac_objext
7845 if { (ac_try="$ac_compile"
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_compile") 2>conftest.er1
7853 grep -v '^ *+' conftest.er1 >conftest.err
7855 cat conftest.err >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } &&
7858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7859 { (case "(($ac_try" in
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_try") 2>&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; } &&
7868 { ac_try='test -s conftest.$ac_objext'
7869 { (case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_try") 2>&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; }; then
7878 ac_cv_header_stdc=yes
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 ac_cv_header_stdc=no
7886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 if test $ac_cv_header_stdc = yes; then
7889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7890 cat >conftest.$ac_ext <<_ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7900 $EGREP "memchr" >/dev/null 2>&1; then
7903 ac_cv_header_stdc=no
7909 if test $ac_cv_header_stdc = yes; then
7910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7921 $EGREP "free" >/dev/null 2>&1; then
7924 ac_cv_header_stdc=no
7930 if test $ac_cv_header_stdc = yes; then
7931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7932 if test "$cross_compiling" = yes; then
7935 cat >conftest.$ac_ext <<_ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h. */
7943 #if ((' ' & 0x0FF) == 0x020)
7944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7947 # define ISLOWER(c) \
7948 (('a' <= (c) && (c) <= 'i') \
7949 || ('j' <= (c) && (c) <= 'r') \
7950 || ('s' <= (c) && (c) <= 'z'))
7951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7959 for (i = 0; i < 256; i++)
7960 if (XOR (islower (i), ISLOWER (i))
7961 || toupper (i) != TOUPPER (i))
7966 rm -f conftest$ac_exeext
7967 if { (ac_try="$ac_link"
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_link") 2>&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7977 { (case "(($ac_try" in
7978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979 *) ac_try_echo=$ac_try;;
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_try") 2>&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; }; then
7988 echo "$as_me: program exited with status $ac_status" >&5
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7993 ac_cv_header_stdc=no
7995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8001 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8002 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8003 if test $ac_cv_header_stdc = yes; then
8005 cat >>confdefs.h <<\_ACEOF
8006 #define STDC_HEADERS 1
8011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8021 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8022 inttypes.h stdint.h unistd.h
8024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8030 cat >conftest.$ac_ext <<_ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8036 $ac_includes_default
8038 #include <$ac_header>
8040 rm -f conftest.$ac_objext
8041 if { (ac_try="$ac_compile"
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_compile") 2>conftest.er1
8049 grep -v '^ *+' conftest.er1 >conftest.err
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8055 { (case "(($ac_try" in
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_try") 2>&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest.$ac_objext'
8065 { (case "(($ac_try" in
8066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070 (eval "$ac_try") 2>&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8074 eval "$as_ac_Header=yes"
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8079 eval "$as_ac_Header=no"
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 ac_res=`eval echo '${'$as_ac_Header'}'`
8085 { echo "$as_me:$LINENO: result: $ac_res" >&5
8086 echo "${ECHO_T}$ac_res" >&6; }
8087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8088 cat >>confdefs.h <<_ACEOF
8089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8098 for ac_header in errno.h
8100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 ac_res=`eval echo '${'$as_ac_Header'}'`
8108 { echo "$as_me:$LINENO: result: $ac_res" >&5
8109 echo "${ECHO_T}$ac_res" >&6; }
8111 # Is the header compilable?
8112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8114 cat >conftest.$ac_ext <<_ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8120 $ac_includes_default
8121 #include <$ac_header>
8123 rm -f conftest.$ac_objext
8124 if { (ac_try="$ac_compile"
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130 (eval "$ac_compile") 2>conftest.er1
8132 grep -v '^ *+' conftest.er1 >conftest.err
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
8137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8138 { (case "(($ac_try" in
8139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140 *) ac_try_echo=$ac_try;;
8142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8143 (eval "$ac_try") 2>&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try='test -s conftest.$ac_objext'
8148 { (case "(($ac_try" in
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 (eval "$ac_try") 2>&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; }; then
8157 ac_header_compiler=yes
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8162 ac_header_compiler=no
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8167 echo "${ECHO_T}$ac_header_compiler" >&6; }
8169 # Is the header present?
8170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8172 cat >conftest.$ac_ext <<_ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8178 #include <$ac_header>
8180 if { (ac_try="$ac_cpp conftest.$ac_ext"
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8188 grep -v '^ *+' conftest.er1 >conftest.err
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } >/dev/null; then
8193 if test -s conftest.err; then
8194 ac_cpp_err=$ac_c_preproc_warn_flag
8195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8202 if test -z "$ac_cpp_err"; then
8203 ac_header_preproc=yes
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8208 ac_header_preproc=no
8211 rm -f conftest.err conftest.$ac_ext
8212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8213 echo "${ECHO_T}$ac_header_preproc" >&6; }
8215 # So? What about this header?
8216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8222 ac_header_preproc=yes
8225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8238 ## ------------------------------------ ##
8239 ## Report this to http://llvm.org/bugs/ ##
8240 ## ------------------------------------ ##
8242 ) | sed "s/^/$as_me: WARNING: /" >&2
8245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 eval "$as_ac_Header=\$ac_header_preproc"
8252 ac_res=`eval echo '${'$as_ac_Header'}'`
8253 { echo "$as_me:$LINENO: result: $ac_res" >&5
8254 echo "${ECHO_T}$ac_res" >&6; }
8257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8258 cat >>confdefs.h <<_ACEOF
8259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8267 case "$llvm_cv_os_type" in
8268 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8269 Darwin) llvm_shlib_ext=.dylib ;;
8270 *) llvm_shlib_ext=.so ;;
8274 cat >>confdefs.h <<_ACEOF
8275 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8279 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8280 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8293 if test "$GCC" != "yes" && test "$ICC" != "yes"
8295 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8296 echo "$as_me: error: gcc|icc required but not found" >&2;}
8297 { (exit 1); exit 1; }; }
8300 if test "$GXX" != "yes" && test "$IXX" != "yes"
8302 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8303 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8304 { (exit 1); exit 1; }; }
8307 if test "$GCC" = "yes"
8309 cat >conftest.$ac_ext <<_ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8317 #if !defined(__GNUC__) || __GNUC__ < 3
8318 #error Unsupported GCC version
8323 rm -f conftest.$ac_objext
8324 if { (ac_try="$ac_compile"
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_compile") 2>conftest.er1
8332 grep -v '^ *+' conftest.er1 >conftest.err
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8338 { (case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343 (eval "$ac_try") 2>&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest.$ac_objext'
8348 { (case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_try") 2>&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; }; then
8359 echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8362 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8363 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8364 { (exit 1); exit 1; }; }
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370 if test -z "$llvm_cv_gnu_make_command"
8372 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8373 echo "$as_me: error: GNU Make required but not found" >&2;}
8374 { (exit 1); exit 1; }; }
8377 { echo "$as_me:$LINENO: result: ok" >&5
8378 echo "${ECHO_T}ok" >&6; }
8380 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8381 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8382 case "$llvm_cv_cxx_compiler" in
8384 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8386 MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wmissing-field-initializers`
8388 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8392 MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8394 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8396 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8398 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8400 if test -z "$NO_MAYBE_UNINITIALIZED"
8402 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8411 llvm_cv_old_cxxflags="$CXXFLAGS"
8412 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8413 cat >conftest.$ac_ext <<_ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8422 int main() { return 0; }
8426 rm -f conftest.$ac_objext
8427 if { (ac_try="$ac_compile"
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433 (eval "$ac_compile") 2>conftest.er1
8435 grep -v '^ *+' conftest.er1 >conftest.err
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8441 { (case "(($ac_try" in
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_try") 2>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; } &&
8450 { ac_try='test -s conftest.$ac_objext'
8451 { (case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_try") 2>&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8461 no_comment=-Wno-comment
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8471 NO_COMMENT=$no_comment
8473 CXXFLAGS="$llvm_cv_old_cxxflags"
8475 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8476 echo "${ECHO_T}$NO_VARIADIC_MACROS $MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8479 # Check whether --with-python was given.
8480 if test "${with_python+set}" = set; then
8481 withval=$with_python; PYTHON="$withval"
8485 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8486 { echo "$as_me:$LINENO: checking for python" >&5
8487 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8488 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8489 echo "${ECHO_T}user defined: $with_python" >&6; }
8491 if test -n "$PYTHON" ; then
8492 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8493 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8496 # Extract the first word of "python python2 python27", so it can be a program name with args.
8497 set dummy python python2 python27; ac_word=$2
8498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8500 if test "${ac_cv_path_PYTHON+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8524 echo "${ECHO_T}not found" >&6; }
8525 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8526 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8527 { (exit 1); exit 1; }; }"
8531 PYTHON=$ac_cv_path_PYTHON
8532 if test -n "$PYTHON"; then
8533 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8534 echo "${ECHO_T}$PYTHON" >&6; }
8536 { echo "$as_me:$LINENO: result: no" >&5
8537 echo "${ECHO_T}no" >&6; }
8543 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8544 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8545 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8546 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8547 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8548 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8549 if test "$ac_python_version_major" -gt "2" || \
8550 (test "$ac_python_version_major" -eq "2" && \
8551 test "$ac_python_version_minor" -ge "7") ; then
8552 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8553 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8555 { echo "$as_me:$LINENO: result: not found" >&5
8556 echo "${ECHO_T}not found" >&6; }
8557 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8558 See \`config.log' for more details." >&5
8559 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8560 See \`config.log' for more details." >&2;}
8561 { (exit 1); exit 1; }; }
8566 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8567 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8568 if test "${ac_cv_lib_m_sin+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 ac_check_lib_save_LIBS=$LIBS
8573 cat >conftest.$ac_ext <<_ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8580 /* Override any GCC internal prototype to avoid an error.
8581 Use char because int might match the return type of a GCC
8582 builtin and then its argument prototype would still apply. */
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (ac_try="$ac_link"
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_link") 2>conftest.er1
8604 grep -v '^ *+' conftest.er1 >conftest.err
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8610 { (case "(($ac_try" in
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615 (eval "$ac_try") 2>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest$ac_exeext'
8620 { (case "(($ac_try" in
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_try") 2>&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8637 rm -f core conftest.err conftest.$ac_objext \
8638 conftest$ac_exeext conftest.$ac_ext
8639 LIBS=$ac_check_lib_save_LIBS
8641 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8642 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8643 if test $ac_cv_lib_m_sin = yes; then
8644 cat >>confdefs.h <<_ACEOF
8652 if test "$llvm_cv_os_type" = "MingW" ; then
8654 { echo "$as_me:$LINENO: checking for main in -lole32" >&5
8655 echo $ECHO_N "checking for main in -lole32... $ECHO_C" >&6; }
8656 if test "${ac_cv_lib_ole32_main+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 ac_check_lib_save_LIBS=$LIBS
8660 LIBS="-lole32 $LIBS"
8661 cat >conftest.$ac_ext <<_ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8677 rm -f conftest.$ac_objext conftest$ac_exeext
8678 if { (ac_try="$ac_link"
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_link") 2>conftest.er1
8686 grep -v '^ *+' conftest.er1 >conftest.err
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } &&
8691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8692 { (case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_try") 2>&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; } &&
8701 { ac_try='test -s conftest$ac_exeext'
8702 { (case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_try") 2>&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_lib_ole32_main=yes
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 ac_cv_lib_ole32_main=no
8719 rm -f core conftest.err conftest.$ac_objext \
8720 conftest$ac_exeext conftest.$ac_ext
8721 LIBS=$ac_check_lib_save_LIBS
8723 { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_main" >&5
8724 echo "${ECHO_T}$ac_cv_lib_ole32_main" >&6; }
8725 if test $ac_cv_lib_ole32_main = yes; then
8726 cat >>confdefs.h <<_ACEOF
8727 #define HAVE_LIBOLE32 1
8730 LIBS="-lole32 $LIBS"
8735 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8736 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8737 if test "${ac_cv_lib_psapi_main+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 ac_check_lib_save_LIBS=$LIBS
8741 LIBS="-lpsapi $LIBS"
8742 cat >conftest.$ac_ext <<_ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (ac_try="$ac_link"
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_link") 2>conftest.er1
8767 grep -v '^ *+' conftest.er1 >conftest.err
8769 cat conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } &&
8772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8773 { (case "(($ac_try" in
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778 (eval "$ac_try") 2>&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; } &&
8782 { ac_try='test -s conftest$ac_exeext'
8783 { (case "(($ac_try" in
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_try") 2>&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; }; then
8792 ac_cv_lib_psapi_main=yes
8794 echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 ac_cv_lib_psapi_main=no
8800 rm -f core conftest.err conftest.$ac_objext \
8801 conftest$ac_exeext conftest.$ac_ext
8802 LIBS=$ac_check_lib_save_LIBS
8804 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8805 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8806 if test $ac_cv_lib_psapi_main = yes; then
8807 cat >>confdefs.h <<_ACEOF
8808 #define HAVE_LIBPSAPI 1
8811 LIBS="-lpsapi $LIBS"
8816 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8817 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8818 if test "${ac_cv_lib_shell32_main+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 ac_check_lib_save_LIBS=$LIBS
8822 LIBS="-lshell32 $LIBS"
8823 cat >conftest.$ac_ext <<_ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8839 rm -f conftest.$ac_objext conftest$ac_exeext
8840 if { (ac_try="$ac_link"
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846 (eval "$ac_link") 2>conftest.er1
8848 grep -v '^ *+' conftest.er1 >conftest.err
8850 cat conftest.err >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } &&
8853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8854 { (case "(($ac_try" in
8855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856 *) ac_try_echo=$ac_try;;
8858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859 (eval "$ac_try") 2>&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; } &&
8863 { ac_try='test -s conftest$ac_exeext'
8864 { (case "(($ac_try" in
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_try") 2>&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 ac_cv_lib_shell32_main=yes
8875 echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8878 ac_cv_lib_shell32_main=no
8881 rm -f core conftest.err conftest.$ac_objext \
8882 conftest$ac_exeext conftest.$ac_ext
8883 LIBS=$ac_check_lib_save_LIBS
8885 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8886 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8887 if test $ac_cv_lib_shell32_main = yes; then
8888 cat >>confdefs.h <<_ACEOF
8889 #define HAVE_LIBSHELL32 1
8892 LIBS="-lshell32 $LIBS"
8898 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8899 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8900 if test "${ac_cv_search_dlopen+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 ac_func_search_save_LIBS=$LIBS
8904 cat >conftest.$ac_ext <<_ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8911 /* Override any GCC internal prototype to avoid an error.
8912 Use char because int might match the return type of a GCC
8913 builtin and then its argument prototype would still apply. */
8926 for ac_lib in '' dl; do
8927 if test -z "$ac_lib"; then
8928 ac_res="none required"
8931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (ac_try="$ac_link"
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940 (eval "$ac_link") 2>conftest.er1
8942 grep -v '^ *+' conftest.er1 >conftest.err
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8948 { (case "(($ac_try" in
8949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953 (eval "$ac_try") 2>&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; } &&
8957 { ac_try='test -s conftest$ac_exeext'
8958 { (case "(($ac_try" in
8959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8960 *) ac_try_echo=$ac_try;;
8962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8963 (eval "$ac_try") 2>&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_cv_search_dlopen=$ac_res
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8975 rm -f core conftest.err conftest.$ac_objext \
8977 if test "${ac_cv_search_dlopen+set}" = set; then
8981 if test "${ac_cv_search_dlopen+set}" = set; then
8984 ac_cv_search_dlopen=no
8987 LIBS=$ac_func_search_save_LIBS
8989 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8990 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8991 ac_res=$ac_cv_search_dlopen
8992 if test "$ac_res" != no; then
8993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8996 cat >>confdefs.h <<\_ACEOF
8997 #define HAVE_DLOPEN 1
9004 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9005 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9009 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9010 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9011 if test "${ac_cv_search_clock_gettime+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 ac_func_search_save_LIBS=$LIBS
9015 cat >conftest.$ac_ext <<_ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9022 /* Override any GCC internal prototype to avoid an error.
9023 Use char because int might match the return type of a GCC
9024 builtin and then its argument prototype would still apply. */
9028 char clock_gettime ();
9032 return clock_gettime ();
9037 for ac_lib in '' rt; do
9038 if test -z "$ac_lib"; then
9039 ac_res="none required"
9042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9044 rm -f conftest.$ac_objext conftest$ac_exeext
9045 if { (ac_try="$ac_link"
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_link") 2>conftest.er1
9053 grep -v '^ *+' conftest.er1 >conftest.err
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
9058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9059 { (case "(($ac_try" in
9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064 (eval "$ac_try") 2>&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; } &&
9068 { ac_try='test -s conftest$ac_exeext'
9069 { (case "(($ac_try" in
9070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071 *) ac_try_echo=$ac_try;;
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074 (eval "$ac_try") 2>&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 ac_cv_search_clock_gettime=$ac_res
9080 echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9086 rm -f core conftest.err conftest.$ac_objext \
9088 if test "${ac_cv_search_clock_gettime+set}" = set; then
9092 if test "${ac_cv_search_clock_gettime+set}" = set; then
9095 ac_cv_search_clock_gettime=no
9098 LIBS=$ac_func_search_save_LIBS
9100 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9101 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9102 ac_res=$ac_cv_search_clock_gettime
9103 if test "$ac_res" != no; then
9104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9109 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9110 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9111 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9112 if test "${ac_cv_search_setupterm+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 ac_func_search_save_LIBS=$LIBS
9116 cat >conftest.$ac_ext <<_ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9123 /* Override any GCC internal prototype to avoid an error.
9124 Use char because int might match the return type of a GCC
9125 builtin and then its argument prototype would still apply. */
9133 return setupterm ();
9138 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9139 if test -z "$ac_lib"; then
9140 ac_res="none required"
9143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9145 rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_link") 2>conftest.er1
9154 grep -v '^ *+' conftest.er1 >conftest.err
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9160 { (case "(($ac_try" in
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165 (eval "$ac_try") 2>&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; } &&
9169 { ac_try='test -s conftest$ac_exeext'
9170 { (case "(($ac_try" in
9171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172 *) ac_try_echo=$ac_try;;
9174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175 (eval "$ac_try") 2>&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179 ac_cv_search_setupterm=$ac_res
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9187 rm -f core conftest.err conftest.$ac_objext \
9189 if test "${ac_cv_search_setupterm+set}" = set; then
9193 if test "${ac_cv_search_setupterm+set}" = set; then
9196 ac_cv_search_setupterm=no
9199 LIBS=$ac_func_search_save_LIBS
9201 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9202 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9203 ac_res=$ac_cv_search_setupterm
9204 if test "$ac_res" != no; then
9205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9208 cat >>confdefs.h <<\_ACEOF
9209 #define HAVE_TERMINFO 1
9219 if test "$llvm_cv_enable_libedit" = "yes" ; then
9220 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9221 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9222 if test "${ac_cv_search_el_init+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 ac_func_search_save_LIBS=$LIBS
9226 cat >conftest.$ac_ext <<_ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9233 /* Override any GCC internal prototype to avoid an error.
9234 Use char because int might match the return type of a GCC
9235 builtin and then its argument prototype would still apply. */
9248 for ac_lib in '' edit; do
9249 if test -z "$ac_lib"; then
9250 ac_res="none required"
9253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9255 rm -f conftest.$ac_objext conftest$ac_exeext
9256 if { (ac_try="$ac_link"
9258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9259 *) ac_try_echo=$ac_try;;
9261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9262 (eval "$ac_link") 2>conftest.er1
9264 grep -v '^ *+' conftest.er1 >conftest.err
9266 cat conftest.err >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } &&
9269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9270 { (case "(($ac_try" in
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_try") 2>&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; } &&
9279 { ac_try='test -s conftest$ac_exeext'
9280 { (case "(($ac_try" in
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_try") 2>&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 ac_cv_search_el_init=$ac_res
9291 echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9297 rm -f core conftest.err conftest.$ac_objext \
9299 if test "${ac_cv_search_el_init+set}" = set; then
9303 if test "${ac_cv_search_el_init+set}" = set; then
9306 ac_cv_search_el_init=no
9309 LIBS=$ac_func_search_save_LIBS
9311 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9312 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9313 ac_res=$ac_cv_search_el_init
9314 if test "$ac_res" != no; then
9315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9317 cat >>confdefs.h <<\_ACEOF
9318 #define HAVE_LIBEDIT 1
9325 if test "$llvm_cv_enable_libffi" = "yes" ; then
9326 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9327 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9328 if test "${ac_cv_search_ffi_call+set}" = set; then
9329 echo $ECHO_N "(cached) $ECHO_C" >&6
9331 ac_func_search_save_LIBS=$LIBS
9332 cat >conftest.$ac_ext <<_ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9339 /* Override any GCC internal prototype to avoid an error.
9340 Use char because int might match the return type of a GCC
9341 builtin and then its argument prototype would still apply. */
9354 for ac_lib in '' ffi; do
9355 if test -z "$ac_lib"; then
9356 ac_res="none required"
9359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9361 rm -f conftest.$ac_objext conftest$ac_exeext
9362 if { (ac_try="$ac_link"
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368 (eval "$ac_link") 2>conftest.er1
9370 grep -v '^ *+' conftest.er1 >conftest.err
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9376 { (case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_try") 2>&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; } &&
9385 { ac_try='test -s conftest$ac_exeext'
9386 { (case "(($ac_try" in
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_try") 2>&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
9395 ac_cv_search_ffi_call=$ac_res
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9403 rm -f core conftest.err conftest.$ac_objext \
9405 if test "${ac_cv_search_ffi_call+set}" = set; then
9409 if test "${ac_cv_search_ffi_call+set}" = set; then
9412 ac_cv_search_ffi_call=no
9415 LIBS=$ac_func_search_save_LIBS
9417 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9418 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9419 ac_res=$ac_cv_search_ffi_call
9420 if test "$ac_res" != no; then
9421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9423 cat >>confdefs.h <<\_ACEOF
9424 #define HAVE_FFI_CALL 1
9428 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9429 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9430 { (exit 1); exit 1; }; }
9435 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9436 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9437 if test "${ac_cv_search_mallinfo+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 ac_func_search_save_LIBS=$LIBS
9441 cat >conftest.$ac_ext <<_ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9448 /* Override any GCC internal prototype to avoid an error.
9449 Use char because int might match the return type of a GCC
9450 builtin and then its argument prototype would still apply. */
9463 for ac_lib in '' malloc; do
9464 if test -z "$ac_lib"; then
9465 ac_res="none required"
9468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (ac_try="$ac_link"
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_link") 2>conftest.er1
9479 grep -v '^ *+' conftest.er1 >conftest.err
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } &&
9484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9485 { (case "(($ac_try" in
9486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9487 *) ac_try_echo=$ac_try;;
9489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9490 (eval "$ac_try") 2>&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try='test -s conftest$ac_exeext'
9495 { (case "(($ac_try" in
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_try") 2>&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; }; then
9504 ac_cv_search_mallinfo=$ac_res
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9512 rm -f core conftest.err conftest.$ac_objext \
9514 if test "${ac_cv_search_mallinfo+set}" = set; then
9518 if test "${ac_cv_search_mallinfo+set}" = set; then
9521 ac_cv_search_mallinfo=no
9524 LIBS=$ac_func_search_save_LIBS
9526 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9527 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9528 ac_res=$ac_cv_search_mallinfo
9529 if test "$ac_res" != no; then
9530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9532 cat >>confdefs.h <<\_ACEOF
9533 #define HAVE_MALLINFO 1
9539 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9541 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9542 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9543 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 ac_check_lib_save_LIBS=$LIBS
9547 LIBS="-lpthread $LIBS"
9548 cat >conftest.$ac_ext <<_ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9555 /* Override any GCC internal prototype to avoid an error.
9556 Use char because int might match the return type of a GCC
9557 builtin and then its argument prototype would still apply. */
9561 char pthread_mutex_init ();
9565 return pthread_mutex_init ();
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (ac_try="$ac_link"
9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574 *) ac_try_echo=$ac_try;;
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577 (eval "$ac_link") 2>conftest.er1
9579 grep -v '^ *+' conftest.er1 >conftest.err
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } &&
9584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9585 { (case "(($ac_try" in
9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590 (eval "$ac_try") 2>&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; } &&
9594 { ac_try='test -s conftest$ac_exeext'
9595 { (case "(($ac_try" in
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600 (eval "$ac_try") 2>&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 ac_cv_lib_pthread_pthread_mutex_init=yes
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9609 ac_cv_lib_pthread_pthread_mutex_init=no
9612 rm -f core conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9614 LIBS=$ac_check_lib_save_LIBS
9616 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9617 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9618 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9619 cat >>confdefs.h <<_ACEOF
9620 #define HAVE_LIBPTHREAD 1
9623 LIBS="-lpthread $LIBS"
9627 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9628 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9629 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9632 ac_func_search_save_LIBS=$LIBS
9633 cat >conftest.$ac_ext <<_ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9640 /* Override any GCC internal prototype to avoid an error.
9641 Use char because int might match the return type of a GCC
9642 builtin and then its argument prototype would still apply. */
9646 char pthread_mutex_lock ();
9650 return pthread_mutex_lock ();
9655 for ac_lib in '' pthread; do
9656 if test -z "$ac_lib"; then
9657 ac_res="none required"
9660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669 (eval "$ac_link") 2>conftest.er1
9671 grep -v '^ *+' conftest.er1 >conftest.err
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } &&
9676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9677 { (case "(($ac_try" in
9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679 *) ac_try_echo=$ac_try;;
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682 (eval "$ac_try") 2>&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try='test -s conftest$ac_exeext'
9687 { (case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_try") 2>&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_cv_search_pthread_mutex_lock=$ac_res
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9704 rm -f core conftest.err conftest.$ac_objext \
9706 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9710 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9713 ac_cv_search_pthread_mutex_lock=no
9716 LIBS=$ac_func_search_save_LIBS
9718 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9719 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9720 ac_res=$ac_cv_search_pthread_mutex_lock
9721 if test "$ac_res" != no; then
9722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9724 cat >>confdefs.h <<\_ACEOF
9725 #define HAVE_PTHREAD_MUTEX_LOCK 1
9730 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9731 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9732 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 ac_func_search_save_LIBS=$LIBS
9736 cat >conftest.$ac_ext <<_ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9743 /* Override any GCC internal prototype to avoid an error.
9744 Use char because int might match the return type of a GCC
9745 builtin and then its argument prototype would still apply. */
9749 char pthread_rwlock_init ();
9753 return pthread_rwlock_init ();
9758 for ac_lib in '' pthread; do
9759 if test -z "$ac_lib"; then
9760 ac_res="none required"
9763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (ac_try="$ac_link"
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_link") 2>conftest.er1
9774 grep -v '^ *+' conftest.er1 >conftest.err
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9780 { (case "(($ac_try" in
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_try") 2>&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; } &&
9789 { ac_try='test -s conftest$ac_exeext'
9790 { (case "(($ac_try" in
9791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792 *) ac_try_echo=$ac_try;;
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795 (eval "$ac_try") 2>&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 ac_cv_search_pthread_rwlock_init=$ac_res
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9807 rm -f core conftest.err conftest.$ac_objext \
9809 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9813 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9816 ac_cv_search_pthread_rwlock_init=no
9819 LIBS=$ac_func_search_save_LIBS
9821 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9822 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9823 ac_res=$ac_cv_search_pthread_rwlock_init
9824 if test "$ac_res" != no; then
9825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9827 cat >>confdefs.h <<\_ACEOF
9828 #define HAVE_PTHREAD_RWLOCK_INIT 1
9833 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9834 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9835 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 ac_func_search_save_LIBS=$LIBS
9839 cat >conftest.$ac_ext <<_ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9846 /* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
9852 char pthread_getspecific ();
9856 return pthread_getspecific ();
9861 for ac_lib in '' pthread; do
9862 if test -z "$ac_lib"; then
9863 ac_res="none required"
9866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9868 rm -f conftest.$ac_objext conftest$ac_exeext
9869 if { (ac_try="$ac_link"
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_link") 2>conftest.er1
9877 grep -v '^ *+' conftest.er1 >conftest.err
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9883 { (case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888 (eval "$ac_try") 2>&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_search_pthread_getspecific=$ac_res
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9910 rm -f core conftest.err conftest.$ac_objext \
9912 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9916 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9919 ac_cv_search_pthread_getspecific=no
9922 LIBS=$ac_func_search_save_LIBS
9924 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9925 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9926 ac_res=$ac_cv_search_pthread_getspecific
9927 if test "$ac_res" != no; then
9928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9930 cat >>confdefs.h <<\_ACEOF
9931 #define HAVE_PTHREAD_GETSPECIFIC 1
9938 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9940 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9941 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9942 if test "${ac_cv_lib_z_compress2+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 ac_check_lib_save_LIBS=$LIBS
9947 cat >conftest.$ac_ext <<_ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h. */
9954 /* Override any GCC internal prototype to avoid an error.
9955 Use char because int might match the return type of a GCC
9956 builtin and then its argument prototype would still apply. */
9964 return compress2 ();
9969 rm -f conftest.$ac_objext conftest$ac_exeext
9970 if { (ac_try="$ac_link"
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_link") 2>conftest.er1
9978 grep -v '^ *+' conftest.er1 >conftest.err
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9984 { (case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_try") 2>&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; } &&
9993 { ac_try='test -s conftest$ac_exeext'
9994 { (case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_try") 2>&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 ac_cv_lib_z_compress2=yes
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10008 ac_cv_lib_z_compress2=no
10011 rm -f core conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext conftest.$ac_ext
10013 LIBS=$ac_check_lib_save_LIBS
10015 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10016 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10017 if test $ac_cv_lib_z_compress2 = yes; then
10018 cat >>confdefs.h <<_ACEOF
10019 #define HAVE_LIBZ 1
10029 # Check whether --with-oprofile was given.
10030 if test "${with_oprofile+set}" = set; then
10031 withval=$with_oprofile;
10035 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10036 no) llvm_cv_oppath=
10039 *) llvm_cv_oppath="${withval}/lib/oprofile"
10040 CPPFLAGS="-I${withval}/include";;
10042 case $llvm_cv_os_type in
10044 if test -n "$llvm_cv_oppath" ; then
10045 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10046 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10047 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10048 if test "${ac_cv_search_bfd_init+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 ac_func_search_save_LIBS=$LIBS
10052 cat >conftest.$ac_ext <<_ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10059 /* Override any GCC internal prototype to avoid an error.
10060 Use char because int might match the return type of a GCC
10061 builtin and then its argument prototype would still apply. */
10069 return bfd_init ();
10074 for ac_lib in '' bfd; do
10075 if test -z "$ac_lib"; then
10076 ac_res="none required"
10079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10081 rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (ac_try="$ac_link"
10083 case "(($ac_try" in
10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085 *) ac_try_echo=$ac_try;;
10087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10088 (eval "$ac_link") 2>conftest.er1
10090 grep -v '^ *+' conftest.er1 >conftest.err
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10096 { (case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_try") 2>&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; } &&
10105 { ac_try='test -s conftest$ac_exeext'
10106 { (case "(($ac_try" in
10107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10108 *) ac_try_echo=$ac_try;;
10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10111 (eval "$ac_try") 2>&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; }; then
10115 ac_cv_search_bfd_init=$ac_res
10117 echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10123 rm -f core conftest.err conftest.$ac_objext \
10125 if test "${ac_cv_search_bfd_init+set}" = set; then
10129 if test "${ac_cv_search_bfd_init+set}" = set; then
10132 ac_cv_search_bfd_init=no
10134 rm conftest.$ac_ext
10135 LIBS=$ac_func_search_save_LIBS
10137 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10138 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10139 ac_res=$ac_cv_search_bfd_init
10140 if test "$ac_res" != no; then
10141 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10145 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10146 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10147 if test "${ac_cv_search_op_open_agent+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 ac_func_search_save_LIBS=$LIBS
10151 cat >conftest.$ac_ext <<_ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10158 /* Override any GCC internal prototype to avoid an error.
10159 Use char because int might match the return type of a GCC
10160 builtin and then its argument prototype would still apply. */
10164 char op_open_agent ();
10168 return op_open_agent ();
10173 for ac_lib in '' opagent; do
10174 if test -z "$ac_lib"; then
10175 ac_res="none required"
10178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_link") 2>conftest.er1
10189 grep -v '^ *+' conftest.er1 >conftest.err
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10195 { (case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_try") 2>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; } &&
10204 { ac_try='test -s conftest$ac_exeext'
10205 { (case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_try") 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 ac_cv_search_op_open_agent=$ac_res
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10222 rm -f core conftest.err conftest.$ac_objext \
10224 if test "${ac_cv_search_op_open_agent+set}" = set; then
10228 if test "${ac_cv_search_op_open_agent+set}" = set; then
10231 ac_cv_search_op_open_agent=no
10233 rm conftest.$ac_ext
10234 LIBS=$ac_func_search_save_LIBS
10236 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10237 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10238 ac_res=$ac_cv_search_op_open_agent
10239 if test "$ac_res" != no; then
10240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10244 echo "Error! You need to have libopagent around."
10249 if test "${ac_cv_header_opagent_h+set}" = set; then
10250 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10251 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10252 if test "${ac_cv_header_opagent_h+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10256 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10258 # Is the header compilable?
10259 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10260 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10261 cat >conftest.$ac_ext <<_ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267 $ac_includes_default
10268 #include <opagent.h>
10270 rm -f conftest.$ac_objext
10271 if { (ac_try="$ac_compile"
10272 case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_compile") 2>conftest.er1
10279 grep -v '^ *+' conftest.er1 >conftest.err
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } &&
10284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10285 { (case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_try") 2>&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; } &&
10294 { ac_try='test -s conftest.$ac_objext'
10295 { (case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300 (eval "$ac_try") 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; }; then
10304 ac_header_compiler=yes
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 ac_header_compiler=no
10312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10314 echo "${ECHO_T}$ac_header_compiler" >&6; }
10316 # Is the header present?
10317 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10318 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10319 cat >conftest.$ac_ext <<_ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10325 #include <opagent.h>
10327 if { (ac_try="$ac_cpp conftest.$ac_ext"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10335 grep -v '^ *+' conftest.er1 >conftest.err
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } >/dev/null; then
10340 if test -s conftest.err; then
10341 ac_cpp_err=$ac_c_preproc_warn_flag
10342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10349 if test -z "$ac_cpp_err"; then
10350 ac_header_preproc=yes
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10355 ac_header_preproc=no
10358 rm -f conftest.err conftest.$ac_ext
10359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10360 echo "${ECHO_T}$ac_header_preproc" >&6; }
10362 # So? What about this header?
10363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10365 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10366 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10367 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10368 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10369 ac_header_preproc=yes
10372 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10373 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10374 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10375 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10376 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10377 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10378 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10379 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10381 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10383 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10385 ## ------------------------------------ ##
10386 ## Report this to http://llvm.org/bugs/ ##
10387 ## ------------------------------------ ##
10389 ) | sed "s/^/$as_me: WARNING: /" >&2
10392 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10393 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10394 if test "${ac_cv_header_opagent_h+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 ac_cv_header_opagent_h=$ac_header_preproc
10399 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10400 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10403 if test $ac_cv_header_opagent_h = yes; then
10407 echo "Error! You need to have opagent.h around."
10415 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10416 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10417 { (exit 1); exit 1; }; } ;;
10428 cat >>confdefs.h <<_ACEOF
10429 #define LLVM_USE_OPROFILE $USE_OPROFILE
10434 # Check whether --with-intel-jitevents was given.
10435 if test "${with_intel_jitevents+set}" = set; then
10436 withval=$with_intel_jitevents;
10438 yes) USE_INTEL_JITEVENTS=1
10440 no) USE_INTEL_JITEVENTS=0
10442 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10443 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10444 { (exit 1); exit 1; }; };;
10447 case $llvm_cv_os_type in
10448 Linux|Win32|Cygwin|MingW) ;;
10449 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10450 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10451 { (exit 1); exit 1; }; };;
10454 case "$llvm_cv_target_arch" in
10456 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10457 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10458 { (exit 1); exit 1; }; };;
10463 USE_INTEL_JITEVENTS=0
10469 cat >>confdefs.h <<_ACEOF
10470 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10474 for ac_prog in xml2-config
10476 # Extract the first word of "$ac_prog", so it can be a program name with args.
10477 set dummy $ac_prog; ac_word=$2
10478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10480 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 if test -n "$XML2CONFIG"; then
10484 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487 for as_dir in $PATH
10490 test -z "$as_dir" && as_dir=.
10491 for ac_exec_ext in '' $ac_executable_extensions; do
10492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10493 ac_cv_prog_XML2CONFIG="$ac_prog"
10494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10503 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10504 if test -n "$XML2CONFIG"; then
10505 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10506 echo "${ECHO_T}$XML2CONFIG" >&6; }
10508 { echo "$as_me:$LINENO: result: no" >&5
10509 echo "${ECHO_T}no" >&6; }
10513 test -n "$XML2CONFIG" && break
10517 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10518 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10519 if test "x$XML2CONFIG" = "x"; then
10520 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10521 echo "${ECHO_T}xml2-config not found" >&6; }
10523 LIBXML2_INC=`$XML2CONFIG --cflags`
10524 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10525 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10526 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10527 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10528 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 ac_check_lib_save_LIBS=$LIBS
10532 LIBS="-lxml2 $LIBS"
10533 cat >conftest.$ac_ext <<_ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10540 /* Override any GCC internal prototype to avoid an error.
10541 Use char because int might match the return type of a GCC
10542 builtin and then its argument prototype would still apply. */
10546 char xmlReadFile ();
10550 return xmlReadFile ();
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (ac_try="$ac_link"
10557 case "(($ac_try" in
10558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562 (eval "$ac_link") 2>conftest.er1
10564 grep -v '^ *+' conftest.er1 >conftest.err
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10570 { (case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_try") 2>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; } &&
10579 { ac_try='test -s conftest$ac_exeext'
10580 { (case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_try") 2>&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10589 ac_cv_lib_xml2_xmlReadFile=yes
10591 echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10594 ac_cv_lib_xml2_xmlReadFile=no
10597 rm -f core conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_lib_save_LIBS
10601 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10602 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10603 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10605 cat >>confdefs.h <<\_ACEOF
10606 #define CLANG_HAVE_LIBXML 1
10609 LIBXML2_LIBS="-lxml2"
10622 ac_header_dirent=no
10623 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10624 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10625 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10626 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 cat >conftest.$ac_ext <<_ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 #include <sys/types.h>
10648 rm -f conftest.$ac_objext
10649 if { (ac_try="$ac_compile"
10650 case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_compile") 2>conftest.er1
10657 grep -v '^ *+' conftest.er1 >conftest.err
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10663 { (case "(($ac_try" in
10664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668 (eval "$ac_try") 2>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; } &&
10672 { ac_try='test -s conftest.$ac_objext'
10673 { (case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_try") 2>&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
10682 eval "$as_ac_Header=yes"
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10687 eval "$as_ac_Header=no"
10690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692 ac_res=`eval echo '${'$as_ac_Header'}'`
10693 { echo "$as_me:$LINENO: result: $ac_res" >&5
10694 echo "${ECHO_T}$ac_res" >&6; }
10695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10696 cat >>confdefs.h <<_ACEOF
10697 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10700 ac_header_dirent=$ac_hdr; break
10704 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10705 if test $ac_header_dirent = dirent.h; then
10706 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10707 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10708 if test "${ac_cv_search_opendir+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 ac_func_search_save_LIBS=$LIBS
10712 cat >conftest.$ac_ext <<_ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10719 /* Override any GCC internal prototype to avoid an error.
10720 Use char because int might match the return type of a GCC
10721 builtin and then its argument prototype would still apply. */
10734 for ac_lib in '' dir; do
10735 if test -z "$ac_lib"; then
10736 ac_res="none required"
10739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (ac_try="$ac_link"
10743 case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_link") 2>conftest.er1
10750 grep -v '^ *+' conftest.er1 >conftest.err
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10756 { (case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 (eval "$ac_try") 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; } &&
10765 { ac_try='test -s conftest$ac_exeext'
10766 { (case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_try") 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 ac_cv_search_opendir=$ac_res
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10783 rm -f core conftest.err conftest.$ac_objext \
10785 if test "${ac_cv_search_opendir+set}" = set; then
10789 if test "${ac_cv_search_opendir+set}" = set; then
10792 ac_cv_search_opendir=no
10794 rm conftest.$ac_ext
10795 LIBS=$ac_func_search_save_LIBS
10797 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10798 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10799 ac_res=$ac_cv_search_opendir
10800 if test "$ac_res" != no; then
10801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10806 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10807 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10808 if test "${ac_cv_search_opendir+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 ac_func_search_save_LIBS=$LIBS
10812 cat >conftest.$ac_ext <<_ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10819 /* Override any GCC internal prototype to avoid an error.
10820 Use char because int might match the return type of a GCC
10821 builtin and then its argument prototype would still apply. */
10834 for ac_lib in '' x; do
10835 if test -z "$ac_lib"; then
10836 ac_res="none required"
10839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10841 rm -f conftest.$ac_objext conftest$ac_exeext
10842 if { (ac_try="$ac_link"
10843 case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 (eval "$ac_link") 2>conftest.er1
10850 grep -v '^ *+' conftest.er1 >conftest.err
10852 cat conftest.err >&5
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } &&
10855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10856 { (case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_try") 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest$ac_exeext'
10866 { (case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_try") 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10875 ac_cv_search_opendir=$ac_res
10877 echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10883 rm -f core conftest.err conftest.$ac_objext \
10885 if test "${ac_cv_search_opendir+set}" = set; then
10889 if test "${ac_cv_search_opendir+set}" = set; then
10892 ac_cv_search_opendir=no
10894 rm conftest.$ac_ext
10895 LIBS=$ac_func_search_save_LIBS
10897 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10898 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10899 ac_res=$ac_cv_search_opendir
10900 if test "$ac_res" != no; then
10901 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10907 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10908 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10909 if test "${ac_cv_header_mmap_anon+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 ac_cpp='$CPP $CPPFLAGS'
10914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10918 cat >conftest.$ac_ext <<_ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 #include <sys/mman.h>
10925 #include <unistd.h>
10930 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10935 rm -f conftest.$ac_objext
10936 if { (ac_try="$ac_compile"
10937 case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942 (eval "$ac_compile") 2>conftest.er1
10944 grep -v '^ *+' conftest.er1 >conftest.err
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950 { (case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_try") 2>&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; } &&
10959 { ac_try='test -s conftest.$ac_objext'
10960 { (case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_try") 2>&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 ac_cv_header_mmap_anon=yes
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 ac_cv_header_mmap_anon=no
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979 ac_cpp='$CPP $CPPFLAGS'
10980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10986 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10987 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10988 if test "$ac_cv_header_mmap_anon" = yes; then
10990 cat >>confdefs.h <<\_ACEOF
10991 #define HAVE_MMAP_ANONYMOUS 1
10996 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10997 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10998 if test "${ac_cv_header_stat_broken+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 cat >conftest.$ac_ext <<_ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11007 #include <sys/types.h>
11008 #include <sys/stat.h>
11010 #if defined S_ISBLK && defined S_IFDIR
11011 # if S_ISBLK (S_IFDIR)
11016 #if defined S_ISBLK && defined S_IFCHR
11017 # if S_ISBLK (S_IFCHR)
11022 #if defined S_ISLNK && defined S_IFREG
11023 # if S_ISLNK (S_IFREG)
11028 #if defined S_ISSOCK && defined S_IFREG
11029 # if S_ISSOCK (S_IFREG)
11035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11036 $EGREP "You lose" >/dev/null 2>&1; then
11037 ac_cv_header_stat_broken=yes
11039 ac_cv_header_stat_broken=no
11044 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11045 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11046 if test $ac_cv_header_stat_broken = yes; then
11048 cat >>confdefs.h <<\_ACEOF
11049 #define STAT_MACROS_BROKEN 1
11054 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11055 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11056 if test "${ac_cv_header_time+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11059 cat >conftest.$ac_ext <<_ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h. */
11065 #include <sys/types.h>
11066 #include <sys/time.h>
11072 if ((struct tm *) 0)
11078 rm -f conftest.$ac_objext
11079 if { (ac_try="$ac_compile"
11080 case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_compile") 2>conftest.er1
11087 grep -v '^ *+' conftest.er1 >conftest.err
11089 cat conftest.err >&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } &&
11092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11093 { (case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_try") 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; } &&
11102 { ac_try='test -s conftest.$ac_objext'
11103 { (case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_try") 2>&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; }; then
11112 ac_cv_header_time=yes
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11117 ac_cv_header_time=no
11120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11123 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11124 if test $ac_cv_header_time = yes; then
11126 cat >>confdefs.h <<\_ACEOF
11127 #define TIME_WITH_SYS_TIME 1
11134 ac_cpp='$CXXCPP $CPPFLAGS'
11135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11140 for ac_header in cxxabi.h
11142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 cat >conftest.$ac_ext <<_ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 #include <stddef.h>
11157 #include <$ac_header>
11159 rm -f conftest.$ac_objext
11160 if { (ac_try="$ac_compile"
11161 case "(($ac_try" in
11162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163 *) ac_try_echo=$ac_try;;
11165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166 (eval "$ac_compile") 2>conftest.er1
11168 grep -v '^ *+' conftest.er1 >conftest.err
11170 cat conftest.err >&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } &&
11173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11174 { (case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_try") 2>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; } &&
11183 { ac_try='test -s conftest.$ac_objext'
11184 { (case "(($ac_try" in
11185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11186 *) ac_try_echo=$ac_try;;
11188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11189 (eval "$ac_try") 2>&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; }; then
11193 eval "$as_ac_Header=yes"
11195 echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11198 eval "$as_ac_Header=no"
11201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11203 ac_res=`eval echo '${'$as_ac_Header'}'`
11204 { echo "$as_me:$LINENO: result: $ac_res" >&5
11205 echo "${ECHO_T}$ac_res" >&6; }
11206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11207 cat >>confdefs.h <<_ACEOF
11208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11216 ac_cpp='$CPP $CPPFLAGS'
11217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11227 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 ac_res=`eval echo '${'$as_ac_Header'}'`
11237 { echo "$as_me:$LINENO: result: $ac_res" >&5
11238 echo "${ECHO_T}$ac_res" >&6; }
11240 # Is the header compilable?
11241 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 $ac_includes_default
11250 #include <$ac_header>
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_header_compiler=yes
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 ac_header_compiler=no
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11296 echo "${ECHO_T}$ac_header_compiler" >&6; }
11298 # Is the header present?
11299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11301 cat >conftest.$ac_ext <<_ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 #include <$ac_header>
11309 if { (ac_try="$ac_cpp conftest.$ac_ext"
11310 case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11317 grep -v '^ *+' conftest.er1 >conftest.err
11319 cat conftest.err >&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } >/dev/null; then
11322 if test -s conftest.err; then
11323 ac_cpp_err=$ac_c_preproc_warn_flag
11324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11331 if test -z "$ac_cpp_err"; then
11332 ac_header_preproc=yes
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ac_header_preproc=no
11340 rm -f conftest.err conftest.$ac_ext
11341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11342 echo "${ECHO_T}$ac_header_preproc" >&6; }
11344 # So? What about this header?
11345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11351 ac_header_preproc=yes
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11367 ## ------------------------------------ ##
11368 ## Report this to http://llvm.org/bugs/ ##
11369 ## ------------------------------------ ##
11371 ) | sed "s/^/$as_me: WARNING: /" >&2
11374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 eval "$as_ac_Header=\$ac_header_preproc"
11381 ac_res=`eval echo '${'$as_ac_Header'}'`
11382 { echo "$as_me:$LINENO: result: $ac_res" >&5
11383 echo "${ECHO_T}$ac_res" >&6; }
11386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11387 cat >>confdefs.h <<_ACEOF
11388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11401 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 ac_res=`eval echo '${'$as_ac_Header'}'`
11411 { echo "$as_me:$LINENO: result: $ac_res" >&5
11412 echo "${ECHO_T}$ac_res" >&6; }
11414 # Is the header compilable?
11415 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11417 cat >conftest.$ac_ext <<_ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 $ac_includes_default
11424 #include <$ac_header>
11426 rm -f conftest.$ac_objext
11427 if { (ac_try="$ac_compile"
11428 case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_compile") 2>conftest.er1
11435 grep -v '^ *+' conftest.er1 >conftest.err
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } &&
11440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11441 { (case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_try") 2>&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; } &&
11450 { ac_try='test -s conftest.$ac_objext'
11451 { (case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_try") 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 ac_header_compiler=yes
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11465 ac_header_compiler=no
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11470 echo "${ECHO_T}$ac_header_compiler" >&6; }
11472 # Is the header present?
11473 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11475 cat >conftest.$ac_ext <<_ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h. */
11481 #include <$ac_header>
11483 if { (ac_try="$ac_cpp conftest.$ac_ext"
11484 case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11491 grep -v '^ *+' conftest.er1 >conftest.err
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } >/dev/null; then
11496 if test -s conftest.err; then
11497 ac_cpp_err=$ac_c_preproc_warn_flag
11498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11505 if test -z "$ac_cpp_err"; then
11506 ac_header_preproc=yes
11508 echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11511 ac_header_preproc=no
11514 rm -f conftest.err conftest.$ac_ext
11515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11516 echo "${ECHO_T}$ac_header_preproc" >&6; }
11518 # So? What about this header?
11519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11525 ac_header_preproc=yes
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11541 ## ------------------------------------ ##
11542 ## Report this to http://llvm.org/bugs/ ##
11543 ## ------------------------------------ ##
11545 ) | sed "s/^/$as_me: WARNING: /" >&2
11548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 eval "$as_ac_Header=\$ac_header_preproc"
11555 ac_res=`eval echo '${'$as_ac_Header'}'`
11556 { echo "$as_me:$LINENO: result: $ac_res" >&5
11557 echo "${ECHO_T}$ac_res" >&6; }
11560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11561 cat >>confdefs.h <<_ACEOF
11562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11574 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 ac_res=`eval echo '${'$as_ac_Header'}'`
11584 { echo "$as_me:$LINENO: result: $ac_res" >&5
11585 echo "${ECHO_T}$ac_res" >&6; }
11587 # Is the header compilable?
11588 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11590 cat >conftest.$ac_ext <<_ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h. */
11596 $ac_includes_default
11597 #include <$ac_header>
11599 rm -f conftest.$ac_objext
11600 if { (ac_try="$ac_compile"
11601 case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606 (eval "$ac_compile") 2>conftest.er1
11608 grep -v '^ *+' conftest.er1 >conftest.err
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } &&
11613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11614 { (case "(($ac_try" in
11615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616 *) ac_try_echo=$ac_try;;
11618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619 (eval "$ac_try") 2>&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; } &&
11623 { ac_try='test -s conftest.$ac_objext'
11624 { (case "(($ac_try" in
11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626 *) ac_try_echo=$ac_try;;
11628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11629 (eval "$ac_try") 2>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 ac_header_compiler=yes
11635 echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11638 ac_header_compiler=no
11641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11643 echo "${ECHO_T}$ac_header_compiler" >&6; }
11645 # Is the header present?
11646 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11648 cat >conftest.$ac_ext <<_ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654 #include <$ac_header>
11656 if { (ac_try="$ac_cpp conftest.$ac_ext"
11657 case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11664 grep -v '^ *+' conftest.er1 >conftest.err
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } >/dev/null; then
11669 if test -s conftest.err; then
11670 ac_cpp_err=$ac_c_preproc_warn_flag
11671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11678 if test -z "$ac_cpp_err"; then
11679 ac_header_preproc=yes
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 ac_header_preproc=no
11687 rm -f conftest.err conftest.$ac_ext
11688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11689 echo "${ECHO_T}$ac_header_preproc" >&6; }
11691 # So? What about this header?
11692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11698 ac_header_preproc=yes
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11714 ## ------------------------------------ ##
11715 ## Report this to http://llvm.org/bugs/ ##
11716 ## ------------------------------------ ##
11718 ) | sed "s/^/$as_me: WARNING: /" >&2
11721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11726 eval "$as_ac_Header=\$ac_header_preproc"
11728 ac_res=`eval echo '${'$as_ac_Header'}'`
11729 { echo "$as_me:$LINENO: result: $ac_res" >&5
11730 echo "${ECHO_T}$ac_res" >&6; }
11733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11734 cat >>confdefs.h <<_ACEOF
11735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11745 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 ac_res=`eval echo '${'$as_ac_Header'}'`
11755 { echo "$as_me:$LINENO: result: $ac_res" >&5
11756 echo "${ECHO_T}$ac_res" >&6; }
11758 # Is the header compilable?
11759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11761 cat >conftest.$ac_ext <<_ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 $ac_includes_default
11768 #include <$ac_header>
11770 rm -f conftest.$ac_objext
11771 if { (ac_try="$ac_compile"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11785 { (case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_try") 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest.$ac_objext'
11795 { (case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_try") 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_header_compiler=yes
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11809 ac_header_compiler=no
11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11814 echo "${ECHO_T}$ac_header_compiler" >&6; }
11816 # Is the header present?
11817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11819 cat >conftest.$ac_ext <<_ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11825 #include <$ac_header>
11827 if { (ac_try="$ac_cpp conftest.$ac_ext"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11835 grep -v '^ *+' conftest.er1 >conftest.err
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } >/dev/null; then
11840 if test -s conftest.err; then
11841 ac_cpp_err=$ac_c_preproc_warn_flag
11842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11849 if test -z "$ac_cpp_err"; then
11850 ac_header_preproc=yes
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11855 ac_header_preproc=no
11858 rm -f conftest.err conftest.$ac_ext
11859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11860 echo "${ECHO_T}$ac_header_preproc" >&6; }
11862 # So? What about this header?
11863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11869 ac_header_preproc=yes
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11885 ## ------------------------------------ ##
11886 ## Report this to http://llvm.org/bugs/ ##
11887 ## ------------------------------------ ##
11889 ) | sed "s/^/$as_me: WARNING: /" >&2
11892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 eval "$as_ac_Header=\$ac_header_preproc"
11899 ac_res=`eval echo '${'$as_ac_Header'}'`
11900 { echo "$as_me:$LINENO: result: $ac_res" >&5
11901 echo "${ECHO_T}$ac_res" >&6; }
11904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11905 cat >>confdefs.h <<_ACEOF
11906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11914 for ac_header in valgrind/valgrind.h
11916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 ac_res=`eval echo '${'$as_ac_Header'}'`
11924 { echo "$as_me:$LINENO: result: $ac_res" >&5
11925 echo "${ECHO_T}$ac_res" >&6; }
11927 # Is the header compilable?
11928 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11930 cat >conftest.$ac_ext <<_ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11936 $ac_includes_default
11937 #include <$ac_header>
11939 rm -f conftest.$ac_objext
11940 if { (ac_try="$ac_compile"
11941 case "(($ac_try" in
11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943 *) ac_try_echo=$ac_try;;
11945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11946 (eval "$ac_compile") 2>conftest.er1
11948 grep -v '^ *+' conftest.er1 >conftest.err
11950 cat conftest.err >&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11954 { (case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_try") 2>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; } &&
11963 { ac_try='test -s conftest.$ac_objext'
11964 { (case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_try") 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 ac_header_compiler=yes
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 ac_header_compiler=no
11981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11983 echo "${ECHO_T}$ac_header_compiler" >&6; }
11985 # Is the header present?
11986 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11988 cat >conftest.$ac_ext <<_ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 #include <$ac_header>
11996 if { (ac_try="$ac_cpp conftest.$ac_ext"
11997 case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12004 grep -v '^ *+' conftest.er1 >conftest.err
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } >/dev/null; then
12009 if test -s conftest.err; then
12010 ac_cpp_err=$ac_c_preproc_warn_flag
12011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12018 if test -z "$ac_cpp_err"; then
12019 ac_header_preproc=yes
12021 echo "$as_me: failed program was:" >&5
12022 sed 's/^/| /' conftest.$ac_ext >&5
12024 ac_header_preproc=no
12027 rm -f conftest.err conftest.$ac_ext
12028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12029 echo "${ECHO_T}$ac_header_preproc" >&6; }
12031 # So? What about this header?
12032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12038 ac_header_preproc=yes
12041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12054 ## ------------------------------------ ##
12055 ## Report this to http://llvm.org/bugs/ ##
12056 ## ------------------------------------ ##
12058 ) | sed "s/^/$as_me: WARNING: /" >&2
12061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 eval "$as_ac_Header=\$ac_header_preproc"
12068 ac_res=`eval echo '${'$as_ac_Header'}'`
12069 { echo "$as_me:$LINENO: result: $ac_res" >&5
12070 echo "${ECHO_T}$ac_res" >&6; }
12073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12074 cat >>confdefs.h <<_ACEOF
12075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12083 for ac_header in fenv.h
12085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 ac_res=`eval echo '${'$as_ac_Header'}'`
12093 { echo "$as_me:$LINENO: result: $ac_res" >&5
12094 echo "${ECHO_T}$ac_res" >&6; }
12096 # Is the header compilable?
12097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12099 cat >conftest.$ac_ext <<_ACEOF
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h. */
12105 $ac_includes_default
12106 #include <$ac_header>
12108 rm -f conftest.$ac_objext
12109 if { (ac_try="$ac_compile"
12110 case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_compile") 2>conftest.er1
12117 grep -v '^ *+' conftest.er1 >conftest.err
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12123 { (case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_try") 2>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; } &&
12132 { ac_try='test -s conftest.$ac_objext'
12133 { (case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_try") 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; }; then
12142 ac_header_compiler=yes
12144 echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12147 ac_header_compiler=no
12150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12152 echo "${ECHO_T}$ac_header_compiler" >&6; }
12154 # Is the header present?
12155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12157 cat >conftest.$ac_ext <<_ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h. */
12163 #include <$ac_header>
12165 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
12173 grep -v '^ *+' conftest.er1 >conftest.err
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } >/dev/null; then
12178 if test -s conftest.err; then
12179 ac_cpp_err=$ac_c_preproc_warn_flag
12180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12187 if test -z "$ac_cpp_err"; then
12188 ac_header_preproc=yes
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 ac_header_preproc=no
12196 rm -f conftest.err conftest.$ac_ext
12197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12198 echo "${ECHO_T}$ac_header_preproc" >&6; }
12200 # So? What about this header?
12201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12207 ac_header_preproc=yes
12210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12223 ## ------------------------------------ ##
12224 ## Report this to http://llvm.org/bugs/ ##
12225 ## ------------------------------------ ##
12227 ) | sed "s/^/$as_me: WARNING: /" >&2
12230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 eval "$as_ac_Header=\$ac_header_preproc"
12237 ac_res=`eval echo '${'$as_ac_Header'}'`
12238 { echo "$as_me:$LINENO: result: $ac_res" >&5
12239 echo "${ECHO_T}$ac_res" >&6; }
12242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12243 cat >>confdefs.h <<_ACEOF
12244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12251 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12252 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12253 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 cat >conftest.$ac_ext <<_ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12267 #ifndef FE_ALL_EXCEPT
12268 char *p = (char *) FE_ALL_EXCEPT;
12276 rm -f conftest.$ac_objext
12277 if { (ac_try="$ac_compile"
12278 case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_compile") 2>conftest.er1
12285 grep -v '^ *+' conftest.er1 >conftest.err
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12291 { (case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_try") 2>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; } &&
12300 { ac_try='test -s conftest.$ac_objext'
12301 { (case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_try") 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
12310 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12315 ac_cv_have_decl_FE_ALL_EXCEPT=no
12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12321 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12322 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12324 cat >>confdefs.h <<_ACEOF
12325 #define HAVE_DECL_FE_ALL_EXCEPT 1
12330 cat >>confdefs.h <<_ACEOF
12331 #define HAVE_DECL_FE_ALL_EXCEPT 0
12336 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12337 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12338 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 cat >conftest.$ac_ext <<_ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12353 char *p = (char *) FE_INEXACT;
12361 rm -f conftest.$ac_objext
12362 if { (ac_try="$ac_compile"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_compile") 2>conftest.er1
12370 grep -v '^ *+' conftest.er1 >conftest.err
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12376 { (case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_try") 2>&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; } &&
12385 { ac_try='test -s conftest.$ac_objext'
12386 { (case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_try") 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; }; then
12395 ac_cv_have_decl_FE_INEXACT=yes
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12400 ac_cv_have_decl_FE_INEXACT=no
12403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12406 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12407 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12409 cat >>confdefs.h <<_ACEOF
12410 #define HAVE_DECL_FE_INEXACT 1
12415 cat >>confdefs.h <<_ACEOF
12416 #define HAVE_DECL_FE_INEXACT 0
12423 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12425 for ac_header in pthread.h
12427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 ac_res=`eval echo '${'$as_ac_Header'}'`
12435 { echo "$as_me:$LINENO: result: $ac_res" >&5
12436 echo "${ECHO_T}$ac_res" >&6; }
12438 # Is the header compilable?
12439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12441 cat >conftest.$ac_ext <<_ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12447 $ac_includes_default
12448 #include <$ac_header>
12450 rm -f conftest.$ac_objext
12451 if { (ac_try="$ac_compile"
12452 case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_compile") 2>conftest.er1
12459 grep -v '^ *+' conftest.er1 >conftest.err
12461 cat conftest.err >&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } &&
12464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12465 { (case "(($ac_try" in
12466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470 (eval "$ac_try") 2>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } &&
12474 { ac_try='test -s conftest.$ac_objext'
12475 { (case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_try") 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 ac_header_compiler=yes
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12489 ac_header_compiler=no
12492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12494 echo "${ECHO_T}$ac_header_compiler" >&6; }
12496 # Is the header present?
12497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12499 cat >conftest.$ac_ext <<_ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 #include <$ac_header>
12507 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
12515 grep -v '^ *+' conftest.er1 >conftest.err
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } >/dev/null; then
12520 if test -s conftest.err; then
12521 ac_cpp_err=$ac_c_preproc_warn_flag
12522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12529 if test -z "$ac_cpp_err"; then
12530 ac_header_preproc=yes
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12535 ac_header_preproc=no
12538 rm -f conftest.err conftest.$ac_ext
12539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12540 echo "${ECHO_T}$ac_header_preproc" >&6; }
12542 # So? What about this header?
12543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12549 ac_header_preproc=yes
12552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12565 ## ------------------------------------ ##
12566 ## Report this to http://llvm.org/bugs/ ##
12567 ## ------------------------------------ ##
12569 ) | sed "s/^/$as_me: WARNING: /" >&2
12572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 eval "$as_ac_Header=\$ac_header_preproc"
12579 ac_res=`eval echo '${'$as_ac_Header'}'`
12580 { echo "$as_me:$LINENO: result: $ac_res" >&5
12581 echo "${ECHO_T}$ac_res" >&6; }
12584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12585 cat >>confdefs.h <<_ACEOF
12586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12601 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12603 for ac_header in zlib.h
12605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
12612 ac_res=`eval echo '${'$as_ac_Header'}'`
12613 { echo "$as_me:$LINENO: result: $ac_res" >&5
12614 echo "${ECHO_T}$ac_res" >&6; }
12616 # Is the header compilable?
12617 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12619 cat >conftest.$ac_ext <<_ACEOF
12622 cat confdefs.h >>conftest.$ac_ext
12623 cat >>conftest.$ac_ext <<_ACEOF
12624 /* end confdefs.h. */
12625 $ac_includes_default
12626 #include <$ac_header>
12628 rm -f conftest.$ac_objext
12629 if { (ac_try="$ac_compile"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_compile") 2>conftest.er1
12637 grep -v '^ *+' conftest.er1 >conftest.err
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12643 { (case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_try") 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest.$ac_objext'
12653 { (case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_try") 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_header_compiler=yes
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12667 ac_header_compiler=no
12670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12672 echo "${ECHO_T}$ac_header_compiler" >&6; }
12674 # Is the header present?
12675 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12677 cat >conftest.$ac_ext <<_ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 #include <$ac_header>
12685 if { (ac_try="$ac_cpp conftest.$ac_ext"
12686 case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12693 grep -v '^ *+' conftest.er1 >conftest.err
12695 cat conftest.err >&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } >/dev/null; then
12698 if test -s conftest.err; then
12699 ac_cpp_err=$ac_c_preproc_warn_flag
12700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12707 if test -z "$ac_cpp_err"; then
12708 ac_header_preproc=yes
12710 echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12713 ac_header_preproc=no
12716 rm -f conftest.err conftest.$ac_ext
12717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12718 echo "${ECHO_T}$ac_header_preproc" >&6; }
12720 # So? What about this header?
12721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12727 ac_header_preproc=yes
12730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12743 ## ------------------------------------ ##
12744 ## Report this to http://llvm.org/bugs/ ##
12745 ## ------------------------------------ ##
12747 ) | sed "s/^/$as_me: WARNING: /" >&2
12750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 eval "$as_ac_Header=\$ac_header_preproc"
12757 ac_res=`eval echo '${'$as_ac_Header'}'`
12758 { echo "$as_me:$LINENO: result: $ac_res" >&5
12759 echo "${ECHO_T}$ac_res" >&6; }
12762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12763 cat >>confdefs.h <<_ACEOF
12764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12780 if test "$llvm_cv_enable_libffi" = "yes" ; then
12783 for ac_header in ffi.h ffi/ffi.h
12785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 ac_res=`eval echo '${'$as_ac_Header'}'`
12793 { echo "$as_me:$LINENO: result: $ac_res" >&5
12794 echo "${ECHO_T}$ac_res" >&6; }
12796 # Is the header compilable?
12797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12799 cat >conftest.$ac_ext <<_ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12805 $ac_includes_default
12806 #include <$ac_header>
12808 rm -f conftest.$ac_objext
12809 if { (ac_try="$ac_compile"
12810 case "(($ac_try" in
12811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812 *) ac_try_echo=$ac_try;;
12814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12815 (eval "$ac_compile") 2>conftest.er1
12817 grep -v '^ *+' conftest.er1 >conftest.err
12819 cat conftest.err >&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } &&
12822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12823 { (case "(($ac_try" in
12824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12825 *) ac_try_echo=$ac_try;;
12827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12828 (eval "$ac_try") 2>&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; } &&
12832 { ac_try='test -s conftest.$ac_objext'
12833 { (case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_try") 2>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12842 ac_header_compiler=yes
12844 echo "$as_me: failed program was:" >&5
12845 sed 's/^/| /' conftest.$ac_ext >&5
12847 ac_header_compiler=no
12850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12852 echo "${ECHO_T}$ac_header_compiler" >&6; }
12854 # Is the header present?
12855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12857 cat >conftest.$ac_ext <<_ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h. */
12863 #include <$ac_header>
12865 if { (ac_try="$ac_cpp conftest.$ac_ext"
12866 case "(($ac_try" in
12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12873 grep -v '^ *+' conftest.er1 >conftest.err
12875 cat conftest.err >&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } >/dev/null; then
12878 if test -s conftest.err; then
12879 ac_cpp_err=$ac_c_preproc_warn_flag
12880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12887 if test -z "$ac_cpp_err"; then
12888 ac_header_preproc=yes
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12893 ac_header_preproc=no
12896 rm -f conftest.err conftest.$ac_ext
12897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12898 echo "${ECHO_T}$ac_header_preproc" >&6; }
12900 # So? What about this header?
12901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12907 ac_header_preproc=yes
12910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12923 ## ------------------------------------ ##
12924 ## Report this to http://llvm.org/bugs/ ##
12925 ## ------------------------------------ ##
12927 ) | sed "s/^/$as_me: WARNING: /" >&2
12930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 eval "$as_ac_Header=\$ac_header_preproc"
12937 ac_res=`eval echo '${'$as_ac_Header'}'`
12938 { echo "$as_me:$LINENO: result: $ac_res" >&5
12939 echo "${ECHO_T}$ac_res" >&6; }
12942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12943 cat >>confdefs.h <<_ACEOF
12944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12954 for ac_header in CrashReporterClient.h
12956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 ac_res=`eval echo '${'$as_ac_Header'}'`
12964 { echo "$as_me:$LINENO: result: $ac_res" >&5
12965 echo "${ECHO_T}$ac_res" >&6; }
12967 # Is the header compilable?
12968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12970 cat >conftest.$ac_ext <<_ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12976 $ac_includes_default
12977 #include <$ac_header>
12979 rm -f conftest.$ac_objext
12980 if { (ac_try="$ac_compile"
12981 case "(($ac_try" in
12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986 (eval "$ac_compile") 2>conftest.er1
12988 grep -v '^ *+' conftest.er1 >conftest.err
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; } &&
13003 { ac_try='test -s conftest.$ac_objext'
13004 { (case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13009 (eval "$ac_try") 2>&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_header_compiler=yes
13015 echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.$ac_ext >&5
13018 ac_header_compiler=no
13021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13023 echo "${ECHO_T}$ac_header_compiler" >&6; }
13025 # Is the header present?
13026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13028 cat >conftest.$ac_ext <<_ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13034 #include <$ac_header>
13036 if { (ac_try="$ac_cpp conftest.$ac_ext"
13037 case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13044 grep -v '^ *+' conftest.er1 >conftest.err
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } >/dev/null; then
13049 if test -s conftest.err; then
13050 ac_cpp_err=$ac_c_preproc_warn_flag
13051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13058 if test -z "$ac_cpp_err"; then
13059 ac_header_preproc=yes
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13064 ac_header_preproc=no
13067 rm -f conftest.err conftest.$ac_ext
13068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13069 echo "${ECHO_T}$ac_header_preproc" >&6; }
13071 # So? What about this header?
13072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13078 ac_header_preproc=yes
13081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13094 ## ------------------------------------ ##
13095 ## Report this to http://llvm.org/bugs/ ##
13096 ## ------------------------------------ ##
13098 ) | sed "s/^/$as_me: WARNING: /" >&2
13101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13106 eval "$as_ac_Header=\$ac_header_preproc"
13108 ac_res=`eval echo '${'$as_ac_Header'}'`
13109 { echo "$as_me:$LINENO: result: $ac_res" >&5
13110 echo "${ECHO_T}$ac_res" >&6; }
13113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13114 cat >>confdefs.h <<_ACEOF
13115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13123 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13124 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13125 cat >conftest.$ac_ext <<_ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h. */
13133 extern const char *__crashreporter_info__;
13135 __crashreporter_info__ = "test";
13141 rm -f conftest.$ac_objext conftest$ac_exeext
13142 if { (ac_try="$ac_link"
13143 case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_link") 2>conftest.er1
13150 grep -v '^ *+' conftest.er1 >conftest.err
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
13155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13156 { (case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_try") 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; } &&
13165 { ac_try='test -s conftest$ac_exeext'
13166 { (case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_try") 2>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13176 { echo "$as_me:$LINENO: result: yes" >&5
13177 echo "${ECHO_T}yes" >&6; }
13179 cat >>confdefs.h <<\_ACEOF
13180 #define HAVE_CRASHREPORTER_INFO 1
13185 echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13189 { echo "$as_me:$LINENO: result: no" >&5
13190 echo "${ECHO_T}no" >&6; }
13192 cat >>confdefs.h <<\_ACEOF
13193 #define HAVE_CRASHREPORTER_INFO 0
13199 rm -f core conftest.err conftest.$ac_objext \
13200 conftest$ac_exeext conftest.$ac_ext
13204 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13205 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13206 if test "${ac_cv_huge_val_sanity+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 ac_cpp='$CXXCPP $CPPFLAGS'
13212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13216 ac_save_CXXFLAGS=$CXXFLAGS
13217 CXXFLAGS="$CXXFLAGS -pedantic"
13218 if test "$cross_compiling" = yes; then
13219 ac_cv_huge_val_sanity=yes
13221 cat >conftest.$ac_ext <<_ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13231 double x = HUGE_VAL; return x != x;
13236 rm -f conftest$ac_exeext
13237 if { (ac_try="$ac_link"
13238 case "(($ac_try" in
13239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240 *) ac_try_echo=$ac_try;;
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243 (eval "$ac_link") 2>&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
13256 ac_cv_huge_val_sanity=yes
13258 echo "$as_me: program exited with status $ac_status" >&5
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13262 ( exit $ac_status )
13263 ac_cv_huge_val_sanity=no
13265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13269 CXXFLAGS=$ac_save_CXXFLAGS
13271 ac_cpp='$CPP $CPPFLAGS'
13272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13278 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13279 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13280 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13283 { echo "$as_me:$LINENO: checking for pid_t" >&5
13284 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13285 if test "${ac_cv_type_pid_t+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 cat >conftest.$ac_ext <<_ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13294 $ac_includes_default
13295 typedef pid_t ac__type_new_;
13299 if ((ac__type_new_ *) 0)
13301 if (sizeof (ac__type_new_))
13307 rm -f conftest.$ac_objext
13308 if { (ac_try="$ac_compile"
13309 case "(($ac_try" in
13310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311 *) ac_try_echo=$ac_try;;
13313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314 (eval "$ac_compile") 2>conftest.er1
13316 grep -v '^ *+' conftest.er1 >conftest.err
13318 cat conftest.err >&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } &&
13321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13322 { (case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_try") 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; } &&
13331 { ac_try='test -s conftest.$ac_objext'
13332 { (case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_try") 2>&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; }; then
13341 ac_cv_type_pid_t=yes
13343 echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13346 ac_cv_type_pid_t=no
13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13352 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13353 if test $ac_cv_type_pid_t = yes; then
13357 cat >>confdefs.h <<_ACEOF
13363 { echo "$as_me:$LINENO: checking for size_t" >&5
13364 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13365 if test "${ac_cv_type_size_t+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 cat >conftest.$ac_ext <<_ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13375 typedef size_t ac__type_new_;
13379 if ((ac__type_new_ *) 0)
13381 if (sizeof (ac__type_new_))
13387 rm -f conftest.$ac_objext
13388 if { (ac_try="$ac_compile"
13389 case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_compile") 2>conftest.er1
13396 grep -v '^ *+' conftest.er1 >conftest.err
13398 cat conftest.err >&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } &&
13401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13402 { (case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_try") 2>&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; } &&
13411 { ac_try='test -s conftest.$ac_objext'
13412 { (case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_try") 2>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 ac_cv_type_size_t=yes
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13426 ac_cv_type_size_t=no
13429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13432 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13433 if test $ac_cv_type_size_t = yes; then
13437 cat >>confdefs.h <<_ACEOF
13438 #define size_t unsigned int
13444 cat >>confdefs.h <<_ACEOF
13445 #define RETSIGTYPE void
13448 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13449 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13450 if test "${ac_cv_struct_tm+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 cat >conftest.$ac_ext <<_ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13459 #include <sys/types.h>
13465 struct tm *tp; tp->tm_sec;
13470 rm -f conftest.$ac_objext
13471 if { (ac_try="$ac_compile"
13472 case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_compile") 2>conftest.er1
13479 grep -v '^ *+' conftest.er1 >conftest.err
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13485 { (case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_try") 2>&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; } &&
13494 { ac_try='test -s conftest.$ac_objext'
13495 { (case "(($ac_try" in
13496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497 *) ac_try_echo=$ac_try;;
13499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500 (eval "$ac_try") 2>&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; }; then
13504 ac_cv_struct_tm=time.h
13506 echo "$as_me: failed program was:" >&5
13507 sed 's/^/| /' conftest.$ac_ext >&5
13509 ac_cv_struct_tm=sys/time.h
13512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13514 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13515 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13516 if test $ac_cv_struct_tm = sys/time.h; then
13518 cat >>confdefs.h <<\_ACEOF
13519 #define TM_IN_SYS_TIME 1
13524 { echo "$as_me:$LINENO: checking for int64_t" >&5
13525 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13526 if test "${ac_cv_type_int64_t+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 cat >conftest.$ac_ext <<_ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13535 $ac_includes_default
13536 typedef int64_t ac__type_new_;
13540 if ((ac__type_new_ *) 0)
13542 if (sizeof (ac__type_new_))
13548 rm -f conftest.$ac_objext
13549 if { (ac_try="$ac_compile"
13550 case "(($ac_try" in
13551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13552 *) ac_try_echo=$ac_try;;
13554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13555 (eval "$ac_compile") 2>conftest.er1
13557 grep -v '^ *+' conftest.er1 >conftest.err
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } &&
13562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13563 { (case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_try") 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } &&
13572 { ac_try='test -s conftest.$ac_objext'
13573 { (case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_try") 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 ac_cv_type_int64_t=yes
13584 echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13587 ac_cv_type_int64_t=no
13590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13592 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13593 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13594 if test $ac_cv_type_int64_t = yes; then
13596 cat >>confdefs.h <<_ACEOF
13597 #define HAVE_INT64_T 1
13602 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13603 echo "$as_me: error: Type int64_t required but not found" >&2;}
13604 { (exit 1); exit 1; }; }
13607 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13608 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13609 if test "${ac_cv_type_uint64_t+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13612 cat >conftest.$ac_ext <<_ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13618 $ac_includes_default
13619 typedef uint64_t ac__type_new_;
13623 if ((ac__type_new_ *) 0)
13625 if (sizeof (ac__type_new_))
13631 rm -f conftest.$ac_objext
13632 if { (ac_try="$ac_compile"
13633 case "(($ac_try" in
13634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635 *) ac_try_echo=$ac_try;;
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638 (eval "$ac_compile") 2>conftest.er1
13640 grep -v '^ *+' conftest.er1 >conftest.err
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } &&
13645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13646 { (case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_try") 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; } &&
13655 { ac_try='test -s conftest.$ac_objext'
13656 { (case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_try") 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 ac_cv_type_uint64_t=yes
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 ac_cv_type_uint64_t=no
13673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13675 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13676 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13677 if test $ac_cv_type_uint64_t = yes; then
13679 cat >>confdefs.h <<_ACEOF
13680 #define HAVE_UINT64_T 1
13685 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13686 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13687 if test "${ac_cv_type_u_int64_t+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 cat >conftest.$ac_ext <<_ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13696 $ac_includes_default
13697 typedef u_int64_t ac__type_new_;
13701 if ((ac__type_new_ *) 0)
13703 if (sizeof (ac__type_new_))
13709 rm -f conftest.$ac_objext
13710 if { (ac_try="$ac_compile"
13711 case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_compile") 2>conftest.er1
13718 grep -v '^ *+' conftest.er1 >conftest.err
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13724 { (case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_try") 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; } &&
13733 { ac_try='test -s conftest.$ac_objext'
13734 { (case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_try") 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 ac_cv_type_u_int64_t=yes
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13748 ac_cv_type_u_int64_t=no
13751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13754 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13755 if test $ac_cv_type_u_int64_t = yes; then
13757 cat >>confdefs.h <<_ACEOF
13758 #define HAVE_U_INT64_T 1
13763 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13764 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13765 { (exit 1); exit 1; }; }
13774 for ac_func in backtrace getcwd
13776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13777 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 cat >conftest.$ac_ext <<_ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13790 #define $ac_func innocuous_$ac_func
13792 /* System header to define __stub macros and hopefully few prototypes,
13793 which can conflict with char $ac_func (); below.
13794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13795 <limits.h> exists even on freestanding compilers. */
13798 # include <limits.h>
13800 # include <assert.h>
13805 /* Override any GCC internal prototype to avoid an error.
13806 Use char because int might match the return type of a GCC
13807 builtin and then its argument prototype would still apply. */
13812 /* The GNU C library defines this for functions which it implements
13813 to always fail with ENOSYS. Some functions are actually named
13814 something starting with __ and the normal name is an alias. */
13815 #if defined __stub_$ac_func || defined __stub___$ac_func
13822 return $ac_func ();
13827 rm -f conftest.$ac_objext conftest$ac_exeext
13828 if { (ac_try="$ac_link"
13829 case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_link") 2>conftest.er1
13836 grep -v '^ *+' conftest.er1 >conftest.err
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
13841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13842 { (case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_try") 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; } &&
13851 { ac_try='test -s conftest$ac_exeext'
13852 { (case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_try") 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 eval "$as_ac_var=yes"
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13866 eval "$as_ac_var=no"
13869 rm -f core conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13872 ac_res=`eval echo '${'$as_ac_var'}'`
13873 { echo "$as_me:$LINENO: result: $ac_res" >&5
13874 echo "${ECHO_T}$ac_res" >&6; }
13875 if test `eval echo '${'$as_ac_var'}'` = yes; then
13876 cat >>confdefs.h <<_ACEOF
13877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13888 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
13890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13896 cat >conftest.$ac_ext <<_ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13904 #define $ac_func innocuous_$ac_func
13906 /* System header to define __stub macros and hopefully few prototypes,
13907 which can conflict with char $ac_func (); below.
13908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13909 <limits.h> exists even on freestanding compilers. */
13912 # include <limits.h>
13914 # include <assert.h>
13919 /* Override any GCC internal prototype to avoid an error.
13920 Use char because int might match the return type of a GCC
13921 builtin and then its argument prototype would still apply. */
13926 /* The GNU C library defines this for functions which it implements
13927 to always fail with ENOSYS. Some functions are actually named
13928 something starting with __ and the normal name is an alias. */
13929 #if defined __stub_$ac_func || defined __stub___$ac_func
13936 return $ac_func ();
13941 rm -f conftest.$ac_objext conftest$ac_exeext
13942 if { (ac_try="$ac_link"
13943 case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_link") 2>conftest.er1
13950 grep -v '^ *+' conftest.er1 >conftest.err
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13956 { (case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_try") 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; } &&
13965 { ac_try='test -s conftest$ac_exeext'
13966 { (case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_try") 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 eval "$as_ac_var=yes"
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13980 eval "$as_ac_var=no"
13983 rm -f core conftest.err conftest.$ac_objext \
13984 conftest$ac_exeext conftest.$ac_ext
13986 ac_res=`eval echo '${'$as_ac_var'}'`
13987 { echo "$as_me:$LINENO: result: $ac_res" >&5
13988 echo "${ECHO_T}$ac_res" >&6; }
13989 if test `eval echo '${'$as_ac_var'}'` = yes; then
13990 cat >>confdefs.h <<_ACEOF
13991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14000 for ac_func in isatty mkdtemp mkstemp
14002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 cat >conftest.$ac_ext <<_ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14016 #define $ac_func innocuous_$ac_func
14018 /* System header to define __stub macros and hopefully few prototypes,
14019 which can conflict with char $ac_func (); below.
14020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14021 <limits.h> exists even on freestanding compilers. */
14024 # include <limits.h>
14026 # include <assert.h>
14031 /* Override any GCC internal prototype to avoid an error.
14032 Use char because int might match the return type of a GCC
14033 builtin and then its argument prototype would still apply. */
14038 /* The GNU C library defines this for functions which it implements
14039 to always fail with ENOSYS. Some functions are actually named
14040 something starting with __ and the normal name is an alias. */
14041 #if defined __stub_$ac_func || defined __stub___$ac_func
14048 return $ac_func ();
14053 rm -f conftest.$ac_objext conftest$ac_exeext
14054 if { (ac_try="$ac_link"
14055 case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_link") 2>conftest.er1
14062 grep -v '^ *+' conftest.er1 >conftest.err
14064 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
14067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14068 { (case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_try") 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; } &&
14077 { ac_try='test -s conftest$ac_exeext'
14078 { (case "(($ac_try" in
14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_try") 2>&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14087 eval "$as_ac_var=yes"
14089 echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14092 eval "$as_ac_var=no"
14095 rm -f core conftest.err conftest.$ac_objext \
14096 conftest$ac_exeext conftest.$ac_ext
14098 ac_res=`eval echo '${'$as_ac_var'}'`
14099 { echo "$as_me:$LINENO: result: $ac_res" >&5
14100 echo "${ECHO_T}$ac_res" >&6; }
14101 if test `eval echo '${'$as_ac_var'}'` = yes; then
14102 cat >>confdefs.h <<_ACEOF
14103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14115 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
14123 cat >conftest.$ac_ext <<_ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14131 #define $ac_func innocuous_$ac_func
14133 /* System header to define __stub macros and hopefully few prototypes,
14134 which can conflict with char $ac_func (); below.
14135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14136 <limits.h> exists even on freestanding compilers. */
14139 # include <limits.h>
14141 # include <assert.h>
14146 /* Override any GCC internal prototype to avoid an error.
14147 Use char because int might match the return type of a GCC
14148 builtin and then its argument prototype would still apply. */
14153 /* The GNU C library defines this for functions which it implements
14154 to always fail with ENOSYS. Some functions are actually named
14155 something starting with __ and the normal name is an alias. */
14156 #if defined __stub_$ac_func || defined __stub___$ac_func
14163 return $ac_func ();
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (ac_try="$ac_link"
14170 case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_link") 2>conftest.er1
14177 grep -v '^ *+' conftest.er1 >conftest.err
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } &&
14182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14183 { (case "(($ac_try" in
14184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185 *) ac_try_echo=$ac_try;;
14187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188 (eval "$ac_try") 2>&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; } &&
14192 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; }; then
14202 eval "$as_ac_var=yes"
14204 echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14207 eval "$as_ac_var=no"
14210 rm -f core conftest.err conftest.$ac_objext \
14211 conftest$ac_exeext conftest.$ac_ext
14213 ac_res=`eval echo '${'$as_ac_var'}'`
14214 { echo "$as_me:$LINENO: result: $ac_res" >&5
14215 echo "${ECHO_T}$ac_res" >&6; }
14216 if test `eval echo '${'$as_ac_var'}'` = yes; then
14217 cat >>confdefs.h <<_ACEOF
14218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14227 for ac_func in strerror strerror_r setenv
14229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14235 cat >conftest.$ac_ext <<_ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14243 #define $ac_func innocuous_$ac_func
14245 /* System header to define __stub macros and hopefully few prototypes,
14246 which can conflict with char $ac_func (); below.
14247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14248 <limits.h> exists even on freestanding compilers. */
14251 # include <limits.h>
14253 # include <assert.h>
14258 /* Override any GCC internal prototype to avoid an error.
14259 Use char because int might match the return type of a GCC
14260 builtin and then its argument prototype would still apply. */
14265 /* The GNU C library defines this for functions which it implements
14266 to always fail with ENOSYS. Some functions are actually named
14267 something starting with __ and the normal name is an alias. */
14268 #if defined __stub_$ac_func || defined __stub___$ac_func
14275 return $ac_func ();
14280 rm -f conftest.$ac_objext conftest$ac_exeext
14281 if { (ac_try="$ac_link"
14282 case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_link") 2>conftest.er1
14289 grep -v '^ *+' conftest.er1 >conftest.err
14291 cat conftest.err >&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } &&
14294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14295 { (case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_try") 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; } &&
14304 { ac_try='test -s conftest$ac_exeext'
14305 { (case "(($ac_try" in
14306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307 *) ac_try_echo=$ac_try;;
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310 (eval "$ac_try") 2>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14314 eval "$as_ac_var=yes"
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14319 eval "$as_ac_var=no"
14322 rm -f core conftest.err conftest.$ac_objext \
14323 conftest$ac_exeext conftest.$ac_ext
14325 ac_res=`eval echo '${'$as_ac_var'}'`
14326 { echo "$as_me:$LINENO: result: $ac_res" >&5
14327 echo "${ECHO_T}$ac_res" >&6; }
14328 if test `eval echo '${'$as_ac_var'}'` = yes; then
14329 cat >>confdefs.h <<_ACEOF
14330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14340 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 cat >conftest.$ac_ext <<_ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14356 #define $ac_func innocuous_$ac_func
14358 /* System header to define __stub macros and hopefully few prototypes,
14359 which can conflict with char $ac_func (); below.
14360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14361 <limits.h> exists even on freestanding compilers. */
14364 # include <limits.h>
14366 # include <assert.h>
14371 /* Override any GCC internal prototype to avoid an error.
14372 Use char because int might match the return type of a GCC
14373 builtin and then its argument prototype would still apply. */
14378 /* The GNU C library defines this for functions which it implements
14379 to always fail with ENOSYS. Some functions are actually named
14380 something starting with __ and the normal name is an alias. */
14381 #if defined __stub_$ac_func || defined __stub___$ac_func
14388 return $ac_func ();
14393 rm -f conftest.$ac_objext conftest$ac_exeext
14394 if { (ac_try="$ac_link"
14395 case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_link") 2>conftest.er1
14402 grep -v '^ *+' conftest.er1 >conftest.err
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } &&
14407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14408 { (case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_try") 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; } &&
14417 { ac_try='test -s conftest$ac_exeext'
14418 { (case "(($ac_try" in
14419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420 *) ac_try_echo=$ac_try;;
14422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423 (eval "$ac_try") 2>&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; }; then
14427 eval "$as_ac_var=yes"
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14432 eval "$as_ac_var=no"
14435 rm -f core conftest.err conftest.$ac_objext \
14436 conftest$ac_exeext conftest.$ac_ext
14438 ac_res=`eval echo '${'$as_ac_var'}'`
14439 { echo "$as_me:$LINENO: result: $ac_res" >&5
14440 echo "${ECHO_T}$ac_res" >&6; }
14441 if test `eval echo '${'$as_ac_var'}'` = yes; then
14442 cat >>confdefs.h <<_ACEOF
14443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14452 for ac_func in setjmp longjmp writev
14454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 cat >conftest.$ac_ext <<_ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14468 #define $ac_func innocuous_$ac_func
14470 /* System header to define __stub macros and hopefully few prototypes,
14471 which can conflict with char $ac_func (); below.
14472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14473 <limits.h> exists even on freestanding compilers. */
14476 # include <limits.h>
14478 # include <assert.h>
14483 /* Override any GCC internal prototype to avoid an error.
14484 Use char because int might match the return type of a GCC
14485 builtin and then its argument prototype would still apply. */
14490 /* The GNU C library defines this for functions which it implements
14491 to always fail with ENOSYS. Some functions are actually named
14492 something starting with __ and the normal name is an alias. */
14493 #if defined __stub_$ac_func || defined __stub___$ac_func
14500 return $ac_func ();
14505 rm -f conftest.$ac_objext conftest$ac_exeext
14506 if { (ac_try="$ac_link"
14507 case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512 (eval "$ac_link") 2>conftest.er1
14514 grep -v '^ *+' conftest.er1 >conftest.err
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14520 { (case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_try") 2>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; } &&
14529 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14539 eval "$as_ac_var=yes"
14541 echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14544 eval "$as_ac_var=no"
14547 rm -f core conftest.err conftest.$ac_objext \
14548 conftest$ac_exeext conftest.$ac_ext
14550 ac_res=`eval echo '${'$as_ac_var'}'`
14551 { echo "$as_me:$LINENO: result: $ac_res" >&5
14552 echo "${ECHO_T}$ac_res" >&6; }
14553 if test `eval echo '${'$as_ac_var'}'` = yes; then
14554 cat >>confdefs.h <<_ACEOF
14555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14563 for ac_func in futimes futimens
14565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 cat >conftest.$ac_ext <<_ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14579 #define $ac_func innocuous_$ac_func
14581 /* System header to define __stub macros and hopefully few prototypes,
14582 which can conflict with char $ac_func (); below.
14583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14584 <limits.h> exists even on freestanding compilers. */
14587 # include <limits.h>
14589 # include <assert.h>
14594 /* Override any GCC internal prototype to avoid an error.
14595 Use char because int might match the return type of a GCC
14596 builtin and then its argument prototype would still apply. */
14601 /* The GNU C library defines this for functions which it implements
14602 to always fail with ENOSYS. Some functions are actually named
14603 something starting with __ and the normal name is an alias. */
14604 #if defined __stub_$ac_func || defined __stub___$ac_func
14611 return $ac_func ();
14616 rm -f conftest.$ac_objext conftest$ac_exeext
14617 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
14625 grep -v '^ *+' conftest.er1 >conftest.err
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14631 { (case "(($ac_try" in
14632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633 *) ac_try_echo=$ac_try;;
14635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636 (eval "$ac_try") 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; } &&
14640 { ac_try='test -s conftest$ac_exeext'
14641 { (case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_try") 2>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
14650 eval "$as_ac_var=yes"
14652 echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14655 eval "$as_ac_var=no"
14658 rm -f core conftest.err conftest.$ac_objext \
14659 conftest$ac_exeext conftest.$ac_ext
14661 ac_res=`eval echo '${'$as_ac_var'}'`
14662 { echo "$as_me:$LINENO: result: $ac_res" >&5
14663 echo "${ECHO_T}$ac_res" >&6; }
14664 if test `eval echo '${'$as_ac_var'}'` = yes; then
14665 cat >>confdefs.h <<_ACEOF
14666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14672 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14673 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14674 if test "${llvm_cv_c_printf_a+set}" = set; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 ac_cpp='$CPP $CPPFLAGS'
14679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14683 if test "$cross_compiling" = yes; then
14684 llvmac_cv_c_printf_a=no
14686 cat >conftest.$ac_ext <<_ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14695 #include <stdlib.h>
14701 volatile double A, B;
14705 sprintf(Buffer, "%a", A);
14709 if (A != 0x1.999999999999ap-4)
14716 rm -f 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>&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14727 { (case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_try") 2>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14736 llvm_cv_c_printf_a=yes
14738 echo "$as_me: program exited with status $ac_status" >&5
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14742 ( exit $ac_status )
14743 llvmac_cv_c_printf_a=no
14745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14750 ac_cpp='$CPP $CPPFLAGS'
14751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14756 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14757 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14758 if test "$llvm_cv_c_printf_a" = "yes"; then
14760 cat >>confdefs.h <<\_ACEOF
14761 #define HAVE_PRINTF_A 1
14767 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
14768 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
14769 if test "${ac_cv_have_decl_arc4random+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 cat >conftest.$ac_ext <<_ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778 $ac_includes_default
14783 char *p = (char *) arc4random;
14791 rm -f conftest.$ac_objext
14792 if { (ac_try="$ac_compile"
14793 case "(($ac_try" in
14794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14795 *) ac_try_echo=$ac_try;;
14797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14798 (eval "$ac_compile") 2>conftest.er1
14800 grep -v '^ *+' conftest.er1 >conftest.err
14802 cat conftest.err >&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } &&
14805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14806 { (case "(($ac_try" in
14807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808 *) ac_try_echo=$ac_try;;
14810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811 (eval "$ac_try") 2>&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; } &&
14815 { ac_try='test -s conftest.$ac_objext'
14816 { (case "(($ac_try" in
14817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14818 *) ac_try_echo=$ac_try;;
14820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14821 (eval "$ac_try") 2>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }; then
14825 ac_cv_have_decl_arc4random=yes
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14830 ac_cv_have_decl_arc4random=no
14833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14835 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
14836 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
14837 if test $ac_cv_have_decl_arc4random = yes; then
14839 cat >>confdefs.h <<_ACEOF
14840 #define HAVE_DECL_ARC4RANDOM 1
14845 cat >>confdefs.h <<_ACEOF
14846 #define HAVE_DECL_ARC4RANDOM 0
14854 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
14855 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
14856 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14859 cat >conftest.$ac_ext <<_ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14865 $ac_includes_default
14870 char *p = (char *) strerror_s;
14878 rm -f conftest.$ac_objext
14879 if { (ac_try="$ac_compile"
14880 case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_compile") 2>conftest.er1
14887 grep -v '^ *+' conftest.er1 >conftest.err
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
14892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14893 { (case "(($ac_try" in
14894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895 *) ac_try_echo=$ac_try;;
14897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14898 (eval "$ac_try") 2>&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try='test -s conftest.$ac_objext'
14903 { (case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_try") 2>&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; }; then
14912 ac_cv_have_decl_strerror_s=yes
14914 echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14917 ac_cv_have_decl_strerror_s=no
14920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14922 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
14923 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
14924 if test $ac_cv_have_decl_strerror_s = yes; then
14926 cat >>confdefs.h <<_ACEOF
14927 #define HAVE_DECL_STRERROR_S 1
14932 cat >>confdefs.h <<_ACEOF
14933 #define HAVE_DECL_STRERROR_S 0
14941 if test "$llvm_cv_os_type" = "MingW" ; then
14942 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
14943 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
14944 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 ac_check_lib_save_LIBS=$LIBS
14949 cat >conftest.$ac_ext <<_ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14956 /* Override any GCC internal prototype to avoid an error.
14957 Use char because int might match the return type of a GCC
14958 builtin and then its argument prototype would still apply. */
14971 rm -f conftest.$ac_objext conftest$ac_exeext
14972 if { (ac_try="$ac_link"
14973 case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_link") 2>conftest.er1
14980 grep -v '^ *+' conftest.er1 >conftest.err
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } &&
14985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14986 { (case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_try") 2>&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; } &&
14995 { ac_try='test -s conftest$ac_exeext'
14996 { (case "(($ac_try" in
14997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998 *) ac_try_echo=$ac_try;;
15000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001 (eval "$ac_try") 2>&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
15005 ac_cv_lib_gcc__alloca=yes
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15010 ac_cv_lib_gcc__alloca=no
15013 rm -f core conftest.err conftest.$ac_objext \
15014 conftest$ac_exeext conftest.$ac_ext
15015 LIBS=$ac_check_lib_save_LIBS
15017 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15018 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15019 if test $ac_cv_lib_gcc__alloca = yes; then
15021 cat >>confdefs.h <<\_ACEOF
15022 #define HAVE__ALLOCA 1
15027 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15028 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15029 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15030 echo $ECHO_N "(cached) $ECHO_C" >&6
15032 ac_check_lib_save_LIBS=$LIBS
15034 cat >conftest.$ac_ext <<_ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15041 /* Override any GCC internal prototype to avoid an error.
15042 Use char because int might match the return type of a GCC
15043 builtin and then its argument prototype would still apply. */
15051 return __alloca ();
15056 rm -f conftest.$ac_objext conftest$ac_exeext
15057 if { (ac_try="$ac_link"
15058 case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063 (eval "$ac_link") 2>conftest.er1
15065 grep -v '^ *+' conftest.er1 >conftest.err
15067 cat conftest.err >&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } &&
15070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15071 { (case "(($ac_try" in
15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_try") 2>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; } &&
15080 { ac_try='test -s conftest$ac_exeext'
15081 { (case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_try") 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; }; then
15090 ac_cv_lib_gcc___alloca=yes
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15095 ac_cv_lib_gcc___alloca=no
15098 rm -f core conftest.err conftest.$ac_objext \
15099 conftest$ac_exeext conftest.$ac_ext
15100 LIBS=$ac_check_lib_save_LIBS
15102 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15103 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15104 if test $ac_cv_lib_gcc___alloca = yes; then
15106 cat >>confdefs.h <<\_ACEOF
15107 #define HAVE___ALLOCA 1
15112 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15113 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15114 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 ac_check_lib_save_LIBS=$LIBS
15119 cat >conftest.$ac_ext <<_ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15126 /* Override any GCC internal prototype to avoid an error.
15127 Use char because int might match the return type of a GCC
15128 builtin and then its argument prototype would still apply. */
15136 return __chkstk ();
15141 rm -f conftest.$ac_objext conftest$ac_exeext
15142 if { (ac_try="$ac_link"
15143 case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_link") 2>conftest.er1
15150 grep -v '^ *+' conftest.er1 >conftest.err
15152 cat conftest.err >&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } &&
15155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15156 { (case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_try") 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; } &&
15165 { ac_try='test -s conftest$ac_exeext'
15166 { (case "(($ac_try" in
15167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168 *) ac_try_echo=$ac_try;;
15170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171 (eval "$ac_try") 2>&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; }; then
15175 ac_cv_lib_gcc___chkstk=yes
15177 echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15180 ac_cv_lib_gcc___chkstk=no
15183 rm -f core conftest.err conftest.$ac_objext \
15184 conftest$ac_exeext conftest.$ac_ext
15185 LIBS=$ac_check_lib_save_LIBS
15187 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15188 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15189 if test $ac_cv_lib_gcc___chkstk = yes; then
15191 cat >>confdefs.h <<\_ACEOF
15192 #define HAVE___CHKSTK 1
15197 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15198 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15199 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 ac_check_lib_save_LIBS=$LIBS
15204 cat >conftest.$ac_ext <<_ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15211 /* Override any GCC internal prototype to avoid an error.
15212 Use char because int might match the return type of a GCC
15213 builtin and then its argument prototype would still apply. */
15217 char __chkstk_ms ();
15221 return __chkstk_ms ();
15226 rm -f conftest.$ac_objext conftest$ac_exeext
15227 if { (ac_try="$ac_link"
15228 case "(($ac_try" in
15229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230 *) ac_try_echo=$ac_try;;
15232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233 (eval "$ac_link") 2>conftest.er1
15235 grep -v '^ *+' conftest.er1 >conftest.err
15237 cat conftest.err >&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); } &&
15240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15241 { (case "(($ac_try" in
15242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15243 *) ac_try_echo=$ac_try;;
15245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15246 (eval "$ac_try") 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } &&
15250 { ac_try='test -s conftest$ac_exeext'
15251 { (case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_try") 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; }; then
15260 ac_cv_lib_gcc___chkstk_ms=yes
15262 echo "$as_me: failed program was:" >&5
15263 sed 's/^/| /' conftest.$ac_ext >&5
15265 ac_cv_lib_gcc___chkstk_ms=no
15268 rm -f core conftest.err conftest.$ac_objext \
15269 conftest$ac_exeext conftest.$ac_ext
15270 LIBS=$ac_check_lib_save_LIBS
15272 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15273 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15274 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15276 cat >>confdefs.h <<\_ACEOF
15277 #define HAVE___CHKSTK_MS 1
15282 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15283 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15284 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 ac_check_lib_save_LIBS=$LIBS
15289 cat >conftest.$ac_ext <<_ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15296 /* Override any GCC internal prototype to avoid an error.
15297 Use char because int might match the return type of a GCC
15298 builtin and then its argument prototype would still apply. */
15306 return ___chkstk ();
15311 rm -f conftest.$ac_objext conftest$ac_exeext
15312 if { (ac_try="$ac_link"
15313 case "(($ac_try" in
15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318 (eval "$ac_link") 2>conftest.er1
15320 grep -v '^ *+' conftest.er1 >conftest.err
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } &&
15325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15326 { (case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_try") 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; } &&
15335 { ac_try='test -s conftest$ac_exeext'
15336 { (case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_try") 2>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 ac_cv_lib_gcc____chkstk=yes
15347 echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15350 ac_cv_lib_gcc____chkstk=no
15353 rm -f core conftest.err conftest.$ac_objext \
15354 conftest$ac_exeext conftest.$ac_ext
15355 LIBS=$ac_check_lib_save_LIBS
15357 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15358 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15359 if test $ac_cv_lib_gcc____chkstk = yes; then
15361 cat >>confdefs.h <<\_ACEOF
15362 #define HAVE____CHKSTK 1
15367 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15368 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15369 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 ac_check_lib_save_LIBS=$LIBS
15374 cat >conftest.$ac_ext <<_ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15381 /* Override any GCC internal prototype to avoid an error.
15382 Use char because int might match the return type of a GCC
15383 builtin and then its argument prototype would still apply. */
15387 char ___chkstk_ms ();
15391 return ___chkstk_ms ();
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 ac_cv_lib_gcc____chkstk_ms=yes
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 ac_cv_lib_gcc____chkstk_ms=no
15438 rm -f core conftest.err conftest.$ac_objext \
15439 conftest$ac_exeext conftest.$ac_ext
15440 LIBS=$ac_check_lib_save_LIBS
15442 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15443 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15444 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15446 cat >>confdefs.h <<\_ACEOF
15447 #define HAVE____CHKSTK_MS 1
15453 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15454 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15455 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15458 ac_check_lib_save_LIBS=$LIBS
15460 cat >conftest.$ac_ext <<_ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15467 /* Override any GCC internal prototype to avoid an error.
15468 Use char because int might match the return type of a GCC
15469 builtin and then its argument prototype would still apply. */
15477 return __ashldi3 ();
15482 rm -f conftest.$ac_objext conftest$ac_exeext
15483 if { (ac_try="$ac_link"
15484 case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15489 (eval "$ac_link") 2>conftest.er1
15491 grep -v '^ *+' conftest.er1 >conftest.err
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
15496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15497 { (case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502 (eval "$ac_try") 2>&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; } &&
15506 { ac_try='test -s conftest$ac_exeext'
15507 { (case "(($ac_try" in
15508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509 *) ac_try_echo=$ac_try;;
15511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512 (eval "$ac_try") 2>&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 ac_cv_lib_gcc___ashldi3=yes
15518 echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15521 ac_cv_lib_gcc___ashldi3=no
15524 rm -f core conftest.err conftest.$ac_objext \
15525 conftest$ac_exeext conftest.$ac_ext
15526 LIBS=$ac_check_lib_save_LIBS
15528 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15529 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15530 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15532 cat >>confdefs.h <<\_ACEOF
15533 #define HAVE___ASHLDI3 1
15538 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15539 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15540 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15541 echo $ECHO_N "(cached) $ECHO_C" >&6
15543 ac_check_lib_save_LIBS=$LIBS
15545 cat >conftest.$ac_ext <<_ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15552 /* Override any GCC internal prototype to avoid an error.
15553 Use char because int might match the return type of a GCC
15554 builtin and then its argument prototype would still apply. */
15562 return __ashrdi3 ();
15567 rm -f conftest.$ac_objext conftest$ac_exeext
15568 if { (ac_try="$ac_link"
15569 case "(($ac_try" in
15570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571 *) ac_try_echo=$ac_try;;
15573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15574 (eval "$ac_link") 2>conftest.er1
15576 grep -v '^ *+' conftest.er1 >conftest.err
15578 cat conftest.err >&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); } &&
15581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15582 { (case "(($ac_try" in
15583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587 (eval "$ac_try") 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try='test -s conftest$ac_exeext'
15592 { (case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597 (eval "$ac_try") 2>&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; }; then
15601 ac_cv_lib_gcc___ashrdi3=yes
15603 echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.$ac_ext >&5
15606 ac_cv_lib_gcc___ashrdi3=no
15609 rm -f core conftest.err conftest.$ac_objext \
15610 conftest$ac_exeext conftest.$ac_ext
15611 LIBS=$ac_check_lib_save_LIBS
15613 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15614 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15615 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15617 cat >>confdefs.h <<\_ACEOF
15618 #define HAVE___ASHRDI3 1
15623 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15624 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15625 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15628 ac_check_lib_save_LIBS=$LIBS
15630 cat >conftest.$ac_ext <<_ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15637 /* Override any GCC internal prototype to avoid an error.
15638 Use char because int might match the return type of a GCC
15639 builtin and then its argument prototype would still apply. */
15647 return __divdi3 ();
15652 rm -f conftest.$ac_objext conftest$ac_exeext
15653 if { (ac_try="$ac_link"
15654 case "(($ac_try" in
15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656 *) ac_try_echo=$ac_try;;
15658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15659 (eval "$ac_link") 2>conftest.er1
15661 grep -v '^ *+' conftest.er1 >conftest.err
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } &&
15666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15667 { (case "(($ac_try" in
15668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15669 *) ac_try_echo=$ac_try;;
15671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15672 (eval "$ac_try") 2>&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; } &&
15676 { ac_try='test -s conftest$ac_exeext'
15677 { (case "(($ac_try" in
15678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15679 *) ac_try_echo=$ac_try;;
15681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15682 (eval "$ac_try") 2>&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; }; then
15686 ac_cv_lib_gcc___divdi3=yes
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15691 ac_cv_lib_gcc___divdi3=no
15694 rm -f core conftest.err conftest.$ac_objext \
15695 conftest$ac_exeext conftest.$ac_ext
15696 LIBS=$ac_check_lib_save_LIBS
15698 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15699 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15700 if test $ac_cv_lib_gcc___divdi3 = yes; then
15702 cat >>confdefs.h <<\_ACEOF
15703 #define HAVE___DIVDI3 1
15708 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15709 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15710 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15711 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 ac_check_lib_save_LIBS=$LIBS
15715 cat >conftest.$ac_ext <<_ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15722 /* Override any GCC internal prototype to avoid an error.
15723 Use char because int might match the return type of a GCC
15724 builtin and then its argument prototype would still apply. */
15732 return __fixdfdi ();
15737 rm -f conftest.$ac_objext conftest$ac_exeext
15738 if { (ac_try="$ac_link"
15739 case "(($ac_try" in
15740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15741 *) ac_try_echo=$ac_try;;
15743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15744 (eval "$ac_link") 2>conftest.er1
15746 grep -v '^ *+' conftest.er1 >conftest.err
15748 cat conftest.err >&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15752 { (case "(($ac_try" in
15753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754 *) ac_try_echo=$ac_try;;
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757 (eval "$ac_try") 2>&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); }; } &&
15761 { ac_try='test -s conftest$ac_exeext'
15762 { (case "(($ac_try" in
15763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15767 (eval "$ac_try") 2>&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15771 ac_cv_lib_gcc___fixdfdi=yes
15773 echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15776 ac_cv_lib_gcc___fixdfdi=no
15779 rm -f core conftest.err conftest.$ac_objext \
15780 conftest$ac_exeext conftest.$ac_ext
15781 LIBS=$ac_check_lib_save_LIBS
15783 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
15784 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
15785 if test $ac_cv_lib_gcc___fixdfdi = yes; then
15787 cat >>confdefs.h <<\_ACEOF
15788 #define HAVE___FIXDFDI 1
15793 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15794 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15795 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15798 ac_check_lib_save_LIBS=$LIBS
15800 cat >conftest.$ac_ext <<_ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15807 /* Override any GCC internal prototype to avoid an error.
15808 Use char because int might match the return type of a GCC
15809 builtin and then its argument prototype would still apply. */
15817 return __fixsfdi ();
15822 rm -f conftest.$ac_objext conftest$ac_exeext
15823 if { (ac_try="$ac_link"
15824 case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_link") 2>conftest.er1
15831 grep -v '^ *+' conftest.er1 >conftest.err
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15837 { (case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_try") 2>&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try='test -s conftest$ac_exeext'
15847 { (case "(($ac_try" in
15848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_try") 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15856 ac_cv_lib_gcc___fixsfdi=yes
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15861 ac_cv_lib_gcc___fixsfdi=no
15864 rm -f core conftest.err conftest.$ac_objext \
15865 conftest$ac_exeext conftest.$ac_ext
15866 LIBS=$ac_check_lib_save_LIBS
15868 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
15869 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
15870 if test $ac_cv_lib_gcc___fixsfdi = yes; then
15872 cat >>confdefs.h <<\_ACEOF
15873 #define HAVE___FIXSFDI 1
15878 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
15879 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
15880 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 ac_check_lib_save_LIBS=$LIBS
15885 cat >conftest.$ac_ext <<_ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h. */
15892 /* Override any GCC internal prototype to avoid an error.
15893 Use char because int might match the return type of a GCC
15894 builtin and then its argument prototype would still apply. */
15898 char __floatdidf ();
15902 return __floatdidf ();
15907 rm -f conftest.$ac_objext conftest$ac_exeext
15908 if { (ac_try="$ac_link"
15909 case "(($ac_try" in
15910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15911 *) ac_try_echo=$ac_try;;
15913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15914 (eval "$ac_link") 2>conftest.er1
15916 grep -v '^ *+' conftest.er1 >conftest.err
15918 cat conftest.err >&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
15921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15922 { (case "(($ac_try" in
15923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15924 *) ac_try_echo=$ac_try;;
15926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15927 (eval "$ac_try") 2>&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; } &&
15931 { ac_try='test -s conftest$ac_exeext'
15932 { (case "(($ac_try" in
15933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15934 *) ac_try_echo=$ac_try;;
15936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15937 (eval "$ac_try") 2>&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); }; }; then
15941 ac_cv_lib_gcc___floatdidf=yes
15943 echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15946 ac_cv_lib_gcc___floatdidf=no
15949 rm -f core conftest.err conftest.$ac_objext \
15950 conftest$ac_exeext conftest.$ac_ext
15951 LIBS=$ac_check_lib_save_LIBS
15953 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
15954 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
15955 if test $ac_cv_lib_gcc___floatdidf = yes; then
15957 cat >>confdefs.h <<\_ACEOF
15958 #define HAVE___FLOATDIDF 1
15963 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
15964 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
15965 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15968 ac_check_lib_save_LIBS=$LIBS
15970 cat >conftest.$ac_ext <<_ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15977 /* Override any GCC internal prototype to avoid an error.
15978 Use char because int might match the return type of a GCC
15979 builtin and then its argument prototype would still apply. */
15987 return __lshrdi3 ();
15992 rm -f conftest.$ac_objext conftest$ac_exeext
15993 if { (ac_try="$ac_link"
15994 case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999 (eval "$ac_link") 2>conftest.er1
16001 grep -v '^ *+' conftest.er1 >conftest.err
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } &&
16006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16007 { (case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012 (eval "$ac_try") 2>&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; } &&
16016 { ac_try='test -s conftest$ac_exeext'
16017 { (case "(($ac_try" in
16018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019 *) ac_try_echo=$ac_try;;
16021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16022 (eval "$ac_try") 2>&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16026 ac_cv_lib_gcc___lshrdi3=yes
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16031 ac_cv_lib_gcc___lshrdi3=no
16034 rm -f core conftest.err conftest.$ac_objext \
16035 conftest$ac_exeext conftest.$ac_ext
16036 LIBS=$ac_check_lib_save_LIBS
16038 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16039 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16040 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16042 cat >>confdefs.h <<\_ACEOF
16043 #define HAVE___LSHRDI3 1
16048 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16049 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16050 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 ac_check_lib_save_LIBS=$LIBS
16055 cat >conftest.$ac_ext <<_ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16062 /* Override any GCC internal prototype to avoid an error.
16063 Use char because int might match the return type of a GCC
16064 builtin and then its argument prototype would still apply. */
16072 return __moddi3 ();
16077 rm -f conftest.$ac_objext conftest$ac_exeext
16078 if { (ac_try="$ac_link"
16079 case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_link") 2>conftest.er1
16086 grep -v '^ *+' conftest.er1 >conftest.err
16088 cat conftest.err >&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } &&
16091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16092 { (case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097 (eval "$ac_try") 2>&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; } &&
16101 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16111 ac_cv_lib_gcc___moddi3=yes
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 ac_cv_lib_gcc___moddi3=no
16119 rm -f core conftest.err conftest.$ac_objext \
16120 conftest$ac_exeext conftest.$ac_ext
16121 LIBS=$ac_check_lib_save_LIBS
16123 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16124 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16125 if test $ac_cv_lib_gcc___moddi3 = yes; then
16127 cat >>confdefs.h <<\_ACEOF
16128 #define HAVE___MODDI3 1
16133 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16134 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16135 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16138 ac_check_lib_save_LIBS=$LIBS
16140 cat >conftest.$ac_ext <<_ACEOF
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h. */
16147 /* Override any GCC internal prototype to avoid an error.
16148 Use char because int might match the return type of a GCC
16149 builtin and then its argument prototype would still apply. */
16157 return __udivdi3 ();
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (ac_try="$ac_link"
16164 case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_link") 2>conftest.er1
16171 grep -v '^ *+' conftest.er1 >conftest.err
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } &&
16176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16177 { (case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_try") 2>&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; } &&
16186 { ac_try='test -s conftest$ac_exeext'
16187 { (case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_try") 2>&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
16196 ac_cv_lib_gcc___udivdi3=yes
16198 echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.$ac_ext >&5
16201 ac_cv_lib_gcc___udivdi3=no
16204 rm -f core conftest.err conftest.$ac_objext \
16205 conftest$ac_exeext conftest.$ac_ext
16206 LIBS=$ac_check_lib_save_LIBS
16208 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16209 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16210 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16212 cat >>confdefs.h <<\_ACEOF
16213 #define HAVE___UDIVDI3 1
16218 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16219 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16220 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 ac_check_lib_save_LIBS=$LIBS
16225 cat >conftest.$ac_ext <<_ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16232 /* Override any GCC internal prototype to avoid an error.
16233 Use char because int might match the return type of a GCC
16234 builtin and then its argument prototype would still apply. */
16242 return __umoddi3 ();
16247 rm -f conftest.$ac_objext conftest$ac_exeext
16248 if { (ac_try="$ac_link"
16249 case "(($ac_try" in
16250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251 *) ac_try_echo=$ac_try;;
16253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254 (eval "$ac_link") 2>conftest.er1
16256 grep -v '^ *+' conftest.er1 >conftest.err
16258 cat conftest.err >&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } &&
16261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16262 { (case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_try") 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try='test -s conftest$ac_exeext'
16272 { (case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_try") 2>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 ac_cv_lib_gcc___umoddi3=yes
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 ac_cv_lib_gcc___umoddi3=no
16289 rm -f core conftest.err conftest.$ac_objext \
16290 conftest$ac_exeext conftest.$ac_ext
16291 LIBS=$ac_check_lib_save_LIBS
16293 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16294 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16295 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16297 cat >>confdefs.h <<\_ACEOF
16298 #define HAVE___UMODDI3 1
16304 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16305 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16306 if test "${ac_cv_lib_gcc___main+set}" = set; then
16307 echo $ECHO_N "(cached) $ECHO_C" >&6
16309 ac_check_lib_save_LIBS=$LIBS
16311 cat >conftest.$ac_ext <<_ACEOF
16314 cat confdefs.h >>conftest.$ac_ext
16315 cat >>conftest.$ac_ext <<_ACEOF
16316 /* end confdefs.h. */
16318 /* Override any GCC internal prototype to avoid an error.
16319 Use char because int might match the return type of a GCC
16320 builtin and then its argument prototype would still apply. */
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (ac_try="$ac_link"
16335 case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_link") 2>conftest.er1
16342 grep -v '^ *+' conftest.er1 >conftest.err
16344 cat conftest.err >&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } &&
16347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16348 { (case "(($ac_try" in
16349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350 *) ac_try_echo=$ac_try;;
16352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353 (eval "$ac_try") 2>&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; } &&
16357 { ac_try='test -s conftest$ac_exeext'
16358 { (case "(($ac_try" in
16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363 (eval "$ac_try") 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16367 ac_cv_lib_gcc___main=yes
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16372 ac_cv_lib_gcc___main=no
16375 rm -f core conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext conftest.$ac_ext
16377 LIBS=$ac_check_lib_save_LIBS
16379 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16380 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16381 if test $ac_cv_lib_gcc___main = yes; then
16383 cat >>confdefs.h <<\_ACEOF
16384 #define HAVE___MAIN 1
16389 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16390 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16391 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16392 echo $ECHO_N "(cached) $ECHO_C" >&6
16394 ac_check_lib_save_LIBS=$LIBS
16396 cat >conftest.$ac_ext <<_ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h. */
16403 /* Override any GCC internal prototype to avoid an error.
16404 Use char because int might match the return type of a GCC
16405 builtin and then its argument prototype would still apply. */
16413 return __cmpdi2 ();
16418 rm -f conftest.$ac_objext conftest$ac_exeext
16419 if { (ac_try="$ac_link"
16420 case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_link") 2>conftest.er1
16427 grep -v '^ *+' conftest.er1 >conftest.err
16429 cat conftest.err >&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } &&
16432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16433 { (case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438 (eval "$ac_try") 2>&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; } &&
16442 { ac_try='test -s conftest$ac_exeext'
16443 { (case "(($ac_try" in
16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445 *) ac_try_echo=$ac_try;;
16447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_try") 2>&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; }; then
16452 ac_cv_lib_gcc___cmpdi2=yes
16454 echo "$as_me: failed program was:" >&5
16455 sed 's/^/| /' conftest.$ac_ext >&5
16457 ac_cv_lib_gcc___cmpdi2=no
16460 rm -f core conftest.err conftest.$ac_objext \
16461 conftest$ac_exeext conftest.$ac_ext
16462 LIBS=$ac_check_lib_save_LIBS
16464 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16465 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16466 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16468 cat >>confdefs.h <<\_ACEOF
16469 #define HAVE___CMPDI2 1
16476 if test "$llvm_cv_os_type" = "MingW" ; then
16477 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16478 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16479 cat >conftest.$ac_ext <<_ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h. */
16487 #include <windows.h>
16488 #include <imagehlp.h>
16489 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16490 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16494 rm -f conftest.$ac_objext
16495 if { (ac_try="$ac_compile"
16496 case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501 (eval "$ac_compile") 2>conftest.er1
16503 grep -v '^ *+' conftest.er1 >conftest.err
16505 cat conftest.err >&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
16508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16509 { (case "(($ac_try" in
16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511 *) ac_try_echo=$ac_try;;
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514 (eval "$ac_try") 2>&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; } &&
16518 { ac_try='test -s conftest.$ac_objext'
16519 { (case "(($ac_try" in
16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521 *) ac_try_echo=$ac_try;;
16523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524 (eval "$ac_try") 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16529 { echo "$as_me:$LINENO: result: yes" >&5
16530 echo "${ECHO_T}yes" >&6; }
16531 llvm_cv_win32_elmcb_pcstr="PCSTR"
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16538 { echo "$as_me:$LINENO: result: no" >&5
16539 echo "${ECHO_T}no" >&6; }
16540 llvm_cv_win32_elmcb_pcstr="PSTR"
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546 cat >>confdefs.h <<_ACEOF
16547 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16552 if test "$llvm_cv_platform_type" = "Unix" ; then
16555 for ac_header in stdlib.h unistd.h
16557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16564 ac_res=`eval echo '${'$as_ac_Header'}'`
16565 { echo "$as_me:$LINENO: result: $ac_res" >&5
16566 echo "${ECHO_T}$ac_res" >&6; }
16568 # Is the header compilable?
16569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16571 cat >conftest.$ac_ext <<_ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16577 $ac_includes_default
16578 #include <$ac_header>
16580 rm -f conftest.$ac_objext
16581 if { (ac_try="$ac_compile"
16582 case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_compile") 2>conftest.er1
16589 grep -v '^ *+' conftest.er1 >conftest.err
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
16594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16595 { (case "(($ac_try" in
16596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_try") 2>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } &&
16604 { ac_try='test -s conftest.$ac_objext'
16605 { (case "(($ac_try" in
16606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607 *) ac_try_echo=$ac_try;;
16609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610 (eval "$ac_try") 2>&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 ac_header_compiler=yes
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16619 ac_header_compiler=no
16622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16624 echo "${ECHO_T}$ac_header_compiler" >&6; }
16626 # Is the header present?
16627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16629 cat >conftest.$ac_ext <<_ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 #include <$ac_header>
16637 if { (ac_try="$ac_cpp conftest.$ac_ext"
16638 case "(($ac_try" in
16639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640 *) ac_try_echo=$ac_try;;
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16645 grep -v '^ *+' conftest.er1 >conftest.err
16647 cat conftest.err >&5
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } >/dev/null; then
16650 if test -s conftest.err; then
16651 ac_cpp_err=$ac_c_preproc_warn_flag
16652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16659 if test -z "$ac_cpp_err"; then
16660 ac_header_preproc=yes
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16665 ac_header_preproc=no
16668 rm -f conftest.err conftest.$ac_ext
16669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16670 echo "${ECHO_T}$ac_header_preproc" >&6; }
16672 # So? What about this header?
16673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16679 ac_header_preproc=yes
16682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16689 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16695 ## ------------------------------------ ##
16696 ## Report this to http://llvm.org/bugs/ ##
16697 ## ------------------------------------ ##
16699 ) | sed "s/^/$as_me: WARNING: /" >&2
16702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16705 echo $ECHO_N "(cached) $ECHO_C" >&6
16707 eval "$as_ac_Header=\$ac_header_preproc"
16709 ac_res=`eval echo '${'$as_ac_Header'}'`
16710 { echo "$as_me:$LINENO: result: $ac_res" >&5
16711 echo "${ECHO_T}$ac_res" >&6; }
16714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16715 cat >>confdefs.h <<_ACEOF
16716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16724 for ac_func in getpagesize
16726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16730 echo $ECHO_N "(cached) $ECHO_C" >&6
16732 cat >conftest.$ac_ext <<_ACEOF
16735 cat confdefs.h >>conftest.$ac_ext
16736 cat >>conftest.$ac_ext <<_ACEOF
16737 /* end confdefs.h. */
16738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16740 #define $ac_func innocuous_$ac_func
16742 /* System header to define __stub macros and hopefully few prototypes,
16743 which can conflict with char $ac_func (); below.
16744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16745 <limits.h> exists even on freestanding compilers. */
16748 # include <limits.h>
16750 # include <assert.h>
16755 /* Override any GCC internal prototype to avoid an error.
16756 Use char because int might match the return type of a GCC
16757 builtin and then its argument prototype would still apply. */
16762 /* The GNU C library defines this for functions which it implements
16763 to always fail with ENOSYS. Some functions are actually named
16764 something starting with __ and the normal name is an alias. */
16765 #if defined __stub_$ac_func || defined __stub___$ac_func
16772 return $ac_func ();
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (ac_try="$ac_link"
16779 case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_link") 2>conftest.er1
16786 grep -v '^ *+' conftest.er1 >conftest.err
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
16791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16792 { (case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_try") 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest$ac_exeext'
16802 { (case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_try") 2>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 eval "$as_ac_var=yes"
16813 echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16816 eval "$as_ac_var=no"
16819 rm -f core conftest.err conftest.$ac_objext \
16820 conftest$ac_exeext conftest.$ac_ext
16822 ac_res=`eval echo '${'$as_ac_var'}'`
16823 { echo "$as_me:$LINENO: result: $ac_res" >&5
16824 echo "${ECHO_T}$ac_res" >&6; }
16825 if test `eval echo '${'$as_ac_var'}'` = yes; then
16826 cat >>confdefs.h <<_ACEOF
16827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16833 { echo "$as_me:$LINENO: checking for working mmap" >&5
16834 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
16835 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16836 echo $ECHO_N "(cached) $ECHO_C" >&6
16838 if test "$cross_compiling" = yes; then
16839 ac_cv_func_mmap_fixed_mapped=no
16841 cat >conftest.$ac_ext <<_ACEOF
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h. */
16847 $ac_includes_default
16848 /* malloc might have been renamed as rpl_malloc. */
16851 /* Thanks to Mike Haertel and Jim Avera for this test.
16852 Here is a matrix of mmap possibilities:
16853 mmap private not fixed
16854 mmap private fixed at somewhere currently unmapped
16855 mmap private fixed at somewhere already mapped
16856 mmap shared not fixed
16857 mmap shared fixed at somewhere currently unmapped
16858 mmap shared fixed at somewhere already mapped
16859 For private mappings, we should verify that changes cannot be read()
16860 back from the file, nor mmap's back from the file at a different
16861 address. (There have been systems where private was not correctly
16862 implemented like the infamous i386 svr4.0, and systems where the
16863 VM page cache was not coherent with the file system buffer cache
16864 like early versions of FreeBSD and possibly contemporary NetBSD.)
16865 For shared mappings, we should conversely verify that changes get
16866 propagated back to all the places they're supposed to be.
16868 Grep wants private fixed already mapped.
16869 The main things grep needs to know about mmap are:
16870 * does it exist and is it safe to write into the mmap'd area
16871 * how to use it (BSD variants) */
16874 #include <sys/mman.h>
16876 #if !STDC_HEADERS && !HAVE_STDLIB_H
16880 /* This mess was copied from the GNU getpagesize.h. */
16881 #if !HAVE_GETPAGESIZE
16882 /* Assume that all systems that can run configure have sys/param.h. */
16883 # if !HAVE_SYS_PARAM_H
16884 # define HAVE_SYS_PARAM_H 1
16887 # ifdef _SC_PAGESIZE
16888 # define getpagesize() sysconf(_SC_PAGESIZE)
16889 # else /* no _SC_PAGESIZE */
16890 # if HAVE_SYS_PARAM_H
16891 # include <sys/param.h>
16892 # ifdef EXEC_PAGESIZE
16893 # define getpagesize() EXEC_PAGESIZE
16894 # else /* no EXEC_PAGESIZE */
16896 # define getpagesize() NBPG * CLSIZE
16899 # endif /* no CLSIZE */
16900 # else /* no NBPG */
16902 # define getpagesize() NBPC
16903 # else /* no NBPC */
16905 # define getpagesize() PAGESIZE
16906 # endif /* PAGESIZE */
16907 # endif /* no NBPC */
16908 # endif /* no NBPG */
16909 # endif /* no EXEC_PAGESIZE */
16910 # else /* no HAVE_SYS_PARAM_H */
16911 # define getpagesize() 8192 /* punt totally */
16912 # endif /* no HAVE_SYS_PARAM_H */
16913 # endif /* no _SC_PAGESIZE */
16915 #endif /* no HAVE_GETPAGESIZE */
16920 char *data, *data2, *data3;
16924 pagesize = getpagesize ();
16926 /* First, make a file with some known garbage in it. */
16927 data = (char *) malloc (pagesize);
16930 for (i = 0; i < pagesize; ++i)
16931 *(data + i) = rand ();
16933 fd = creat ("conftest.mmap", 0600);
16936 if (write (fd, data, pagesize) != pagesize)
16940 /* Next, try to mmap the file at a fixed address which already has
16941 something else allocated at it. If we can, also make sure that
16942 we see the same garbage. */
16943 fd = open ("conftest.mmap", O_RDWR);
16946 data2 = (char *) malloc (2 * pagesize);
16949 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16950 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16951 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16953 for (i = 0; i < pagesize; ++i)
16954 if (*(data + i) != *(data2 + i))
16957 /* Finally, make sure that changes to the mapped area do not
16958 percolate back to the file as seen by read(). (This is a bug on
16959 some variants of i386 svr4.0.) */
16960 for (i = 0; i < pagesize; ++i)
16961 *(data2 + i) = *(data2 + i) + 1;
16962 data3 = (char *) malloc (pagesize);
16965 if (read (fd, data3, pagesize) != pagesize)
16967 for (i = 0; i < pagesize; ++i)
16968 if (*(data + i) != *(data3 + i))
16974 rm -f conftest$ac_exeext
16975 if { (ac_try="$ac_link"
16976 case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_link") 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16985 { (case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_try") 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_cv_func_mmap_fixed_mapped=yes
16996 echo "$as_me: program exited with status $ac_status" >&5
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 ( exit $ac_status )
17001 ac_cv_func_mmap_fixed_mapped=no
17003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17008 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17009 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17010 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17012 cat >>confdefs.h <<\_ACEOF
17013 #define HAVE_MMAP 1
17017 rm -f conftest.mmap
17019 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17020 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17021 if test "${ac_cv_func_mmap_file+set}" = set; then
17022 echo $ECHO_N "(cached) $ECHO_C" >&6
17025 ac_cpp='$CPP $CPPFLAGS'
17026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17030 if test "$cross_compiling" = yes; then
17031 ac_cv_func_mmap_file=no
17033 cat >conftest.$ac_ext <<_ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17041 #include <sys/types.h>
17042 #include <sys/mman.h>
17050 fd = creat ("foo",0777);
17051 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17053 return (fd != (int) MAP_FAILED);
17058 rm -f conftest$ac_exeext
17059 if { (ac_try="$ac_link"
17060 case "(($ac_try" in
17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062 *) ac_try_echo=$ac_try;;
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_link") 2>&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17069 { (case "(($ac_try" in
17070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071 *) ac_try_echo=$ac_try;;
17073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074 (eval "$ac_try") 2>&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; }; then
17078 ac_cv_func_mmap_file=yes
17080 echo "$as_me: program exited with status $ac_status" >&5
17081 echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17084 ( exit $ac_status )
17085 ac_cv_func_mmap_file=no
17087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17092 ac_cpp='$CPP $CPPFLAGS'
17093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17099 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17100 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17101 if test "$ac_cv_func_mmap_file" = yes; then
17103 cat >>confdefs.h <<\_ACEOF
17104 #define HAVE_MMAP_FILE
17111 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17112 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17113 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 if test "$llvm_cv_os_type" = "Interix" ; then
17117 ac_cv_need_dev_zero_for_mmap=yes
17119 ac_cv_need_dev_zero_for_mmap=no
17123 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17124 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17125 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17127 cat >>confdefs.h <<\_ACEOF
17128 #define NEED_DEV_ZERO_FOR_MMAP 1
17133 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17135 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17136 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17138 if test "$ac_cv_func_mmap_file" = "no"
17140 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17141 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17145 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17146 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17148 ac_cpp='$CXXCPP $CPPFLAGS'
17149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17153 cat >conftest.$ac_ext <<_ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17162 volatile unsigned long val = 1;
17163 __sync_synchronize();
17164 __sync_val_compare_and_swap(&val, 1, 0);
17165 __sync_add_and_fetch(&val, 1);
17166 __sync_sub_and_fetch(&val, 1);
17172 rm -f conftest.$ac_objext conftest$ac_exeext
17173 if { (ac_try="$ac_link"
17174 case "(($ac_try" in
17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176 *) ac_try_echo=$ac_try;;
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_link") 2>conftest.er1
17181 grep -v '^ *+' conftest.er1 >conftest.err
17183 cat conftest.err >&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } &&
17186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17187 { (case "(($ac_try" in
17188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17189 *) ac_try_echo=$ac_try;;
17191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17192 (eval "$ac_try") 2>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; } &&
17196 { ac_try='test -s conftest$ac_exeext'
17197 { (case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_try") 2>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; }; then
17207 { echo "$as_me:$LINENO: result: yes" >&5
17208 echo "${ECHO_T}yes" >&6; }
17210 cat >>confdefs.h <<\_ACEOF
17211 #define LLVM_HAS_ATOMICS 1
17216 echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17220 { echo "$as_me:$LINENO: result: no" >&5
17221 echo "${ECHO_T}no" >&6; }
17223 cat >>confdefs.h <<\_ACEOF
17224 #define LLVM_HAS_ATOMICS 0
17227 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17228 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17232 rm -f core conftest.err conftest.$ac_objext \
17233 conftest$ac_exeext conftest.$ac_ext
17235 ac_cpp='$CPP $CPPFLAGS'
17236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17242 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17243 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17244 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17245 if test "${llvm_cv_linux_mixed+set}" = set; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17249 ac_cpp='$CPP $CPPFLAGS'
17250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17254 cat >conftest.$ac_ext <<_ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h. */
17261 error: Not x86-64 even if uname says so!
17272 rm -f conftest.$ac_objext
17273 if { (ac_try="$ac_compile"
17274 case "(($ac_try" in
17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279 (eval "$ac_compile") 2>conftest.er1
17281 grep -v '^ *+' conftest.er1 >conftest.err
17283 cat conftest.err >&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } &&
17286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17287 { (case "(($ac_try" in
17288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289 *) ac_try_echo=$ac_try;;
17291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17292 (eval "$ac_try") 2>&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; } &&
17296 { ac_try='test -s conftest.$ac_objext'
17297 { (case "(($ac_try" in
17298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299 *) ac_try_echo=$ac_try;;
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302 (eval "$ac_try") 2>&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; }; then
17306 llvm_cv_linux_mixed=no
17308 echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17311 llvm_cv_linux_mixed=yes
17314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17316 ac_cpp='$CPP $CPPFLAGS'
17317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17323 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17324 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17326 if test "$llvm_cv_linux_mixed" = "yes"; then
17327 llvm_cv_target_arch="x86"
17333 for ac_func in __dso_handle
17335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17341 cat >conftest.$ac_ext <<_ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17349 #define $ac_func innocuous_$ac_func
17351 /* System header to define __stub macros and hopefully few prototypes,
17352 which can conflict with char $ac_func (); below.
17353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17354 <limits.h> exists even on freestanding compilers. */
17357 # include <limits.h>
17359 # include <assert.h>
17364 /* Override any GCC internal prototype to avoid an error.
17365 Use char because int might match the return type of a GCC
17366 builtin and then its argument prototype would still apply. */
17371 /* The GNU C library defines this for functions which it implements
17372 to always fail with ENOSYS. Some functions are actually named
17373 something starting with __ and the normal name is an alias. */
17374 #if defined __stub_$ac_func || defined __stub___$ac_func
17381 return $ac_func ();
17386 rm -f conftest.$ac_objext conftest$ac_exeext
17387 if { (ac_try="$ac_link"
17388 case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_link") 2>conftest.er1
17395 grep -v '^ *+' conftest.er1 >conftest.err
17397 cat conftest.err >&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } &&
17400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17401 { (case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406 (eval "$ac_try") 2>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; } &&
17410 { ac_try='test -s conftest$ac_exeext'
17411 { (case "(($ac_try" in
17412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416 (eval "$ac_try") 2>&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
17420 eval "$as_ac_var=yes"
17422 echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17425 eval "$as_ac_var=no"
17428 rm -f core conftest.err conftest.$ac_objext \
17429 conftest$ac_exeext conftest.$ac_ext
17431 ac_res=`eval echo '${'$as_ac_var'}'`
17432 { echo "$as_me:$LINENO: result: $ac_res" >&5
17433 echo "${ECHO_T}$ac_res" >&6; }
17434 if test `eval echo '${'$as_ac_var'}'` = yes; then
17435 cat >>confdefs.h <<_ACEOF
17436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17443 SHLIBEXT=$llvm_shlib_ext
17446 if test "${prefix}" = "NONE" ; then
17447 prefix="/usr/local"
17449 eval LLVM_PREFIX="${prefix}";
17450 eval LLVM_BINDIR="${prefix}/bin";
17451 eval LLVM_DATADIR="${prefix}/share/llvm";
17452 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17453 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17454 eval LLVM_INCLUDEDIR="${prefix}/include";
17455 eval LLVM_INFODIR="${prefix}/info";
17456 eval LLVM_MANDIR="${prefix}/man";
17457 LLVM_CONFIGTIME=`date`
17468 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17469 LLVM_CONFIGTIME="(timestamp not enabled)"
17473 cat >>confdefs.h <<_ACEOF
17474 #define LLVM_PREFIX "$LLVM_PREFIX"
17478 cat >>confdefs.h <<_ACEOF
17479 #define LLVM_BINDIR "$LLVM_BINDIR"
17483 cat >>confdefs.h <<_ACEOF
17484 #define LLVM_DATADIR "$LLVM_DATADIR"
17488 cat >>confdefs.h <<_ACEOF
17489 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17493 cat >>confdefs.h <<_ACEOF
17494 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17498 cat >>confdefs.h <<_ACEOF
17499 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17503 cat >>confdefs.h <<_ACEOF
17504 #define LLVM_INFODIR "$LLVM_INFODIR"
17508 cat >>confdefs.h <<_ACEOF
17509 #define LLVM_MANDIR "$LLVM_MANDIR"
17513 cat >>confdefs.h <<_ACEOF
17514 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17518 cat >>confdefs.h <<_ACEOF
17519 #define LLVM_HOST_TRIPLE "$host"
17523 cat >>confdefs.h <<_ACEOF
17524 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17528 if test "$BINDINGS_TO_BUILD" = auto ; then
17529 BINDINGS_TO_BUILD=""
17530 if test "x$OCAMLFIND" != x ; then
17531 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17533 if test "x$GO" != x ; then
17534 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17535 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17539 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17542 binding_prereqs_failed=0
17543 for a_binding in $BINDINGS_TO_BUILD ; do
17544 case "$a_binding" in
17546 if test "x$OCAMLFIND" = x ; then
17547 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17548 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17549 binding_prereqs_failed=1
17552 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17559 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17560 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17561 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17562 binding_prereqs_failed=1
17565 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17569 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17570 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17574 if test "x$with_ocaml_libdir" != xauto ; then
17575 OCAML_LIBDIR=$with_ocaml_libdir
17578 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17579 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17581 # ocaml stdlib is beneath our prefix; use stdlib
17582 OCAML_LIBDIR=$ocaml_stdlib
17585 # ocaml stdlib is outside our prefix; use libdir/ocaml
17586 OCAML_LIBDIR=${prefix}/lib/ocaml
17592 if test "x$GO" = x ; then
17593 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17594 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17595 binding_prereqs_failed=1
17597 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17600 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17601 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17602 binding_prereqs_failed=1
17608 if test "$binding_prereqs_failed" = 1 ; then
17609 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17610 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17611 { (exit 1); exit 1; }; }
17614 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17615 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17616 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17620 ac_cpp='$CXXCPP $CPPFLAGS'
17621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17625 oldcxxflags="$CXXFLAGS"
17626 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17627 cat >conftest.$ac_ext <<_ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17633 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17642 rm -f conftest.$ac_objext
17643 if { (ac_try="$ac_compile"
17644 case "(($ac_try" in
17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_compile") 2>conftest.er1
17651 grep -v '^ *+' conftest.er1 >conftest.err
17653 cat conftest.err >&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
17656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17657 { (case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_try") 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } &&
17666 { ac_try='test -s conftest.$ac_objext'
17667 { (case "(($ac_try" in
17668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669 *) ac_try_echo=$ac_try;;
17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672 (eval "$ac_try") 2>&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; }; then
17676 llvm_cv_cxx_visibility_inlines_hidden=yes
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17681 llvm_cv_cxx_visibility_inlines_hidden=no
17684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17685 CXXFLAGS="$oldcxxflags"
17687 ac_cpp='$CPP $CPPFLAGS'
17688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17694 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
17695 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
17696 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
17697 ENABLE_VISIBILITY_INLINES_HIDDEN=1
17700 ENABLE_VISIBILITY_INLINES_HIDDEN=0
17705 if test "$llvm_cv_link_use_r" = "yes" ; then
17712 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
17713 RDYNAMIC="-rdynamic"
17720 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
17727 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
17729 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
17731 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
17733 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
17735 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
17738 ac_config_files="$ac_config_files Makefile.config"
17741 ac_config_files="$ac_config_files llvm.spec"
17744 ac_config_files="$ac_config_files docs/doxygen.cfg"
17747 if test "${clang_src_root}" = ""; then
17748 clang_src_root="$srcdir/tools/clang"
17750 if test -f ${clang_src_root}/README.txt; then
17752 cat >>confdefs.h <<_ACEOF
17753 #define CLANG_LIBDIR_SUFFIX ""
17757 configh="include/clang/Config/config.h"
17758 doxy="docs/doxygen.cfg"
17759 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
17761 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
17765 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
17768 test "x$program_prefix" = "xNONE" && program_prefix=""
17772 ac_config_commands="$ac_config_commands setup"
17774 ac_config_commands="$ac_config_commands Makefile"
17777 ac_config_commands="$ac_config_commands Makefile.common"
17780 ac_config_commands="$ac_config_commands examples/Makefile"
17783 ac_config_commands="$ac_config_commands lib/Makefile"
17786 ac_config_commands="$ac_config_commands test/Makefile"
17789 ac_config_commands="$ac_config_commands test/Makefile.tests"
17792 ac_config_commands="$ac_config_commands unittests/Makefile"
17795 ac_config_commands="$ac_config_commands tools/Makefile"
17798 ac_config_commands="$ac_config_commands utils/Makefile"
17801 ac_config_commands="$ac_config_commands projects/Makefile"
17804 ac_config_commands="$ac_config_commands bindings/Makefile"
17807 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
17811 cat >confcache <<\_ACEOF
17812 # This file is a shell script that caches the results of configure
17813 # tests run on this system so they can be shared between configure
17814 # scripts and configure runs, see configure's option --config-cache.
17815 # It is not useful on other systems. If it contains results you don't
17816 # want to keep, you may remove or edit it.
17818 # config.status only pays attention to the cache file if you give it
17819 # the --recheck option to rerun configure.
17821 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17822 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17823 # following values.
17827 # The following way of writing the cache mishandles newlines in values,
17828 # but we know of no workaround that is simple, portable, and efficient.
17829 # So, we kill variables containing newlines.
17830 # Ultrix sh set writes to stderr and can't be redirected directly,
17831 # and sets the high bit in the cache file unless we assign to the vars.
17833 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17834 eval ac_val=\$$ac_var
17838 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17839 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17842 _ | IFS | as_nl) ;; #(
17843 *) $as_unset $ac_var ;;
17849 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17850 *${as_nl}ac_space=\ *)
17851 # `set' does not quote correctly, so add quotes (double-quote
17852 # substitution turns \\\\ into \\, and sed turns \\ into \).
17855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17858 # `set' quotes correctly as required by POSIX, so do not add quotes.
17859 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17870 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17872 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17873 if test -w "$cache_file"; then
17874 test "x$cache_file" != "x/dev/null" &&
17875 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17876 echo "$as_me: updating cache $cache_file" >&6;}
17877 cat confcache >$cache_file
17879 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17880 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17885 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17886 # Let make expand exec_prefix.
17887 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17889 DEFS=-DHAVE_CONFIG_H
17893 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17894 # 1. Remove the extension, and $U if already installed.
17895 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17896 ac_i=`echo "$ac_i" | sed "$ac_script"`
17897 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17898 # will be set to the directory where LIBOBJS objects are built.
17899 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17900 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17902 LIBOBJS=$ac_libobjs
17904 LTLIBOBJS=$ac_ltlibobjs
17908 : ${CONFIG_STATUS=./config.status}
17909 ac_clean_files_save=$ac_clean_files
17910 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17911 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17912 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17913 cat >$CONFIG_STATUS <<_ACEOF
17915 # Generated by $as_me.
17916 # Run this file to recreate the current configuration.
17917 # Compiler output produced by configure, useful for debugging
17918 # configure, is in config.log if it exists.
17921 ac_cs_recheck=false
17923 SHELL=\${CONFIG_SHELL-$SHELL}
17926 cat >>$CONFIG_STATUS <<\_ACEOF
17927 ## --------------------- ##
17928 ## M4sh Initialization. ##
17929 ## --------------------- ##
17931 # Be Bourne compatible
17932 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17935 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17936 # is contrary to our usage. Disable this feature.
17937 alias -g '${1+"$@"}'='"$@"'
17938 setopt NO_GLOB_SUBST
17940 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
17942 BIN_SH=xpg4; export BIN_SH # for Tru64
17943 DUALCASE=1; export DUALCASE # for MKS sh
17947 # Avoid depending upon Character Ranges.
17948 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17949 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17950 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17951 as_cr_digits='0123456789'
17952 as_cr_alnum=$as_cr_Letters$as_cr_digits
17954 # The user is always right.
17955 if test "${PATH_SEPARATOR+set}" != set; then
17956 echo "#! /bin/sh" >conf$$.sh
17957 echo "exit 0" >>conf$$.sh
17959 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17967 # Support unset when possible.
17968 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17976 # We need space, tab and new line, in precisely that order. Quoting is
17977 # there to prevent editors from complaining about space-tab.
17978 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17979 # splitting by setting IFS to empty value.)
17984 # Find who we are. Look in the path if we contain no directory separator.
17986 *[\\/]* ) as_myself=$0 ;;
17987 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17988 for as_dir in $PATH
17991 test -z "$as_dir" && as_dir=.
17992 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17998 # We did not find ourselves, most probably we were run as `sh COMMAND'
17999 # in which case we are not to be found in the path.
18000 if test "x$as_myself" = x; then
18003 if test ! -f "$as_myself"; then
18004 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18005 { (exit 1); exit 1; }
18008 # Work around bugs in pre-3.0 UWIN ksh.
18009 for as_var in ENV MAIL MAILPATH
18010 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18018 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18019 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18020 LC_TELEPHONE LC_TIME
18022 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18023 eval $as_var=C; export $as_var
18025 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18029 # Required to use basename.
18030 if expr a : '\(a\)' >/dev/null 2>&1 &&
18031 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18037 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18038 as_basename=basename
18044 # Name of the executable.
18045 as_me=`$as_basename -- "$0" ||
18046 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18047 X"$0" : 'X\(//\)$' \| \
18048 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18050 sed '/^.*\/\([^/][^/]*\)\/*$/{
18069 as_lineno_1=$LINENO
18070 as_lineno_2=$LINENO
18071 test "x$as_lineno_1" != "x$as_lineno_2" &&
18072 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18074 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18075 # uniformly replaced by the line number. The first 'sed' inserts a
18076 # line-number line after each line using $LINENO; the second 'sed'
18077 # does the real work. The second script uses 'N' to pair each
18078 # line-number line with the line containing $LINENO, and appends
18079 # trailing '-' during substitution so that $LINENO is not a special
18080 # case at line end.
18081 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18082 # scripts with optimization help from Paolo Bonzini. Blame Lee
18083 # E. McMahon (1931-1989) for sed's syntax. :-)
18095 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18098 ' >$as_me.lineno &&
18099 chmod +x "$as_me.lineno" ||
18100 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18101 { (exit 1); exit 1; }; }
18103 # Don't try to exec as it changes $[0], causing all sort of problems
18104 # (the dirname of $[0] is not the place where we might find the
18105 # original and so on. Autoconf is especially sensitive to this).
18106 . "./$as_me.lineno"
18107 # Exit status is that of the last command.
18112 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18118 ECHO_C= ECHO_N= ECHO_T=
18119 case `echo -n x` in
18121 case `echo 'x\c'` in
18122 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18129 if expr a : '\(a\)' >/dev/null 2>&1 &&
18130 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18136 rm -f conf$$ conf$$.exe conf$$.file
18137 if test -d conf$$.dir; then
18138 rm -f conf$$.dir/conf$$.file
18144 if ln -s conf$$.file conf$$ 2>/dev/null; then
18146 # ... but there are two gotchas:
18147 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18148 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18149 # In both cases, we have to default to `cp -p'.
18150 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18152 elif ln conf$$.file conf$$ 2>/dev/null; then
18157 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18158 rmdir conf$$.dir 2>/dev/null
18160 if mkdir -p . 2>/dev/null; then
18163 test -d ./-p && rmdir ./-p
18167 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18168 # systems may use methods other than mode bits to determine executability.
18169 cat >conf$$.file <<_ASEOF
18173 chmod +x conf$$.file
18174 if test -x conf$$.file >/dev/null 2>&1; then
18175 as_executable_p="test -x"
18181 # Sed expression to map a string onto a valid CPP name.
18182 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18184 # Sed expression to map a string onto a valid variable name.
18185 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18190 # Save the log message, to keep $[0] and so on meaningful, and to
18191 # report actual input values of CONFIG_FILES etc. instead of their
18192 # values after options handling.
18194 This file was extended by LLVM $as_me 3.8.0svn, which was
18195 generated by GNU Autoconf 2.60. Invocation command line was
18197 CONFIG_FILES = $CONFIG_FILES
18198 CONFIG_HEADERS = $CONFIG_HEADERS
18199 CONFIG_LINKS = $CONFIG_LINKS
18200 CONFIG_COMMANDS = $CONFIG_COMMANDS
18203 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18208 cat >>$CONFIG_STATUS <<_ACEOF
18209 # Files that config.status was made for.
18210 config_files="$ac_config_files"
18211 config_headers="$ac_config_headers"
18212 config_commands="$ac_config_commands"
18216 cat >>$CONFIG_STATUS <<\_ACEOF
18218 \`$as_me' instantiates files from templates according to the
18219 current configuration.
18221 Usage: $0 [OPTIONS] [FILE]...
18223 -h, --help print this help, then exit
18224 -V, --version print version number, then exit
18225 -q, --quiet do not print progress messages
18226 -d, --debug don't remove temporary files
18227 --recheck update $as_me by reconfiguring in the same conditions
18228 --file=FILE[:TEMPLATE]
18229 instantiate the configuration file FILE
18230 --header=FILE[:TEMPLATE]
18231 instantiate the configuration header FILE
18233 Configuration files:
18236 Configuration headers:
18239 Configuration commands:
18242 Report bugs to <bug-autoconf@gnu.org>."
18245 cat >>$CONFIG_STATUS <<_ACEOF
18247 LLVM config.status 3.8.0svn
18248 configured by $0, generated by GNU Autoconf 2.60,
18249 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18251 Copyright (C) 2006 Free Software Foundation, Inc.
18252 This config.status script is free software; the Free Software Foundation
18253 gives unlimited permission to copy, distribute and modify it."
18260 cat >>$CONFIG_STATUS <<\_ACEOF
18261 # If no file are specified by the user, then we need to provide default
18262 # value. By we need to know if files were specified by the user.
18268 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18269 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18280 # Handling of the options.
18281 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18283 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18284 echo "$ac_cs_version"; exit ;;
18285 --debug | --debu | --deb | --de | --d | -d )
18287 --file | --fil | --fi | --f )
18289 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18290 ac_need_defaults=false;;
18291 --header | --heade | --head | --hea )
18293 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18294 ac_need_defaults=false;;
18296 # Conflict between --help and --header
18297 { echo "$as_me: error: ambiguous option: $1
18298 Try \`$0 --help' for more information." >&2
18299 { (exit 1); exit 1; }; };;
18300 --help | --hel | -h )
18301 echo "$ac_cs_usage"; exit ;;
18302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18303 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18306 # This is an error.
18307 -*) { echo "$as_me: error: unrecognized option: $1
18308 Try \`$0 --help' for more information." >&2
18309 { (exit 1); exit 1; }; } ;;
18311 *) ac_config_targets="$ac_config_targets $1"
18312 ac_need_defaults=false ;;
18318 ac_configure_extra_args=
18320 if $ac_cs_silent; then
18322 ac_configure_extra_args="$ac_configure_extra_args --silent"
18326 cat >>$CONFIG_STATUS <<_ACEOF
18327 if \$ac_cs_recheck; then
18328 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18329 CONFIG_SHELL=$SHELL
18330 export CONFIG_SHELL
18331 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18335 cat >>$CONFIG_STATUS <<\_ACEOF
18339 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18340 ## Running $as_me. ##
18346 cat >>$CONFIG_STATUS <<_ACEOF
18350 llvm_src="${srcdir}"
18354 cat >>$CONFIG_STATUS <<\_ACEOF
18356 # Handling of arguments.
18357 for ac_config_target in $ac_config_targets
18359 case $ac_config_target in
18360 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18361 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18362 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18363 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18364 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18365 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18366 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18367 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18368 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18369 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18370 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18371 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18372 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18373 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18374 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18375 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18376 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18377 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18378 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18379 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18380 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18381 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18382 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18383 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18384 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18385 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18387 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18388 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18389 { (exit 1); exit 1; }; };;
18394 # If the user did not use the arguments to specify the items to instantiate,
18395 # then the envvar interface is used. Set only those that are not.
18396 # We use the long form for the default assignment because of an extremely
18397 # bizarre bug on SunOS 4.1.3.
18398 if $ac_need_defaults; then
18399 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18400 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18401 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18404 # Have a temporary directory for convenience. Make it in the build tree
18405 # simply because there is no reason against having it here, and in addition,
18406 # creating and moving files from /tmp can sometimes cause problems.
18407 # Hook for its removal unless debugging.
18408 # Note that there is a small window in which the directory will not be cleaned:
18409 # after its creation but before its name has been assigned to `$tmp'.
18413 trap 'exit_status=$?
18414 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18416 trap '{ (exit 1); exit 1; }' 1 2 13 15
18418 # Create a (secure) tmp directory for tmp files.
18421 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18422 test -n "$tmp" && test -d "$tmp"
18425 tmp=./conf$$-$RANDOM
18426 (umask 077 && mkdir "$tmp")
18429 echo "$me: cannot create a temporary directory in ." >&2
18430 { (exit 1); exit 1; }
18434 # Set up the sed scripts for CONFIG_FILES section.
18437 # No need to generate the scripts if there are no CONFIG_FILES.
18438 # This happens for instance when ./config.status config.h
18439 if test -n "$CONFIG_FILES"; then
18446 for ac_last_try in false false false false false :; do
18447 cat >conf$$subs.sed <<_ACEOF
18448 SHELL!$SHELL$ac_delim
18449 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18450 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18451 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18452 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18453 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18454 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18455 exec_prefix!$exec_prefix$ac_delim
18456 prefix!$prefix$ac_delim
18457 program_transform_name!$program_transform_name$ac_delim
18458 bindir!$bindir$ac_delim
18459 sbindir!$sbindir$ac_delim
18460 libexecdir!$libexecdir$ac_delim
18461 datarootdir!$datarootdir$ac_delim
18462 datadir!$datadir$ac_delim
18463 sysconfdir!$sysconfdir$ac_delim
18464 sharedstatedir!$sharedstatedir$ac_delim
18465 localstatedir!$localstatedir$ac_delim
18466 includedir!$includedir$ac_delim
18467 oldincludedir!$oldincludedir$ac_delim
18468 docdir!$docdir$ac_delim
18469 infodir!$infodir$ac_delim
18470 htmldir!$htmldir$ac_delim
18471 dvidir!$dvidir$ac_delim
18472 pdfdir!$pdfdir$ac_delim
18473 psdir!$psdir$ac_delim
18474 libdir!$libdir$ac_delim
18475 localedir!$localedir$ac_delim
18476 mandir!$mandir$ac_delim
18477 DEFS!$DEFS$ac_delim
18478 ECHO_C!$ECHO_C$ac_delim
18479 ECHO_N!$ECHO_N$ac_delim
18480 ECHO_T!$ECHO_T$ac_delim
18481 LIBS!$LIBS$ac_delim
18482 build_alias!$build_alias$ac_delim
18483 host_alias!$host_alias$ac_delim
18484 target_alias!$target_alias$ac_delim
18485 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18486 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18487 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18488 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18489 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18491 CFLAGS!$CFLAGS$ac_delim
18492 LDFLAGS!$LDFLAGS$ac_delim
18493 CPPFLAGS!$CPPFLAGS$ac_delim
18494 ac_ct_CC!$ac_ct_CC$ac_delim
18495 EXEEXT!$EXEEXT$ac_delim
18496 OBJEXT!$OBJEXT$ac_delim
18498 CXXFLAGS!$CXXFLAGS$ac_delim
18499 ac_ct_CXX!$ac_ct_CXX$ac_delim
18501 subdirs!$subdirs$ac_delim
18502 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18503 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18504 build!$build$ac_delim
18505 build_cpu!$build_cpu$ac_delim
18506 build_vendor!$build_vendor$ac_delim
18507 build_os!$build_os$ac_delim
18508 host!$host$ac_delim
18509 host_cpu!$host_cpu$ac_delim
18510 host_vendor!$host_vendor$ac_delim
18511 host_os!$host_os$ac_delim
18512 target!$target$ac_delim
18513 target_cpu!$target_cpu$ac_delim
18514 target_vendor!$target_vendor$ac_delim
18515 target_os!$target_os$ac_delim
18517 HOST_OS!$HOST_OS$ac_delim
18518 TARGET_OS!$TARGET_OS$ac_delim
18519 LINKALL!$LINKALL$ac_delim
18520 NOLINKALL!$NOLINKALL$ac_delim
18521 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18522 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18523 ARCH!$ARCH$ac_delim
18524 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18525 HOST_ARCH!$HOST_ARCH$ac_delim
18526 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18527 BUILD_CC!$BUILD_CC$ac_delim
18528 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18529 BUILD_CXX!$BUILD_CXX$ac_delim
18530 CVSBUILD!$CVSBUILD$ac_delim
18531 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18532 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18533 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18534 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18535 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18536 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18537 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18538 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18539 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18540 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18541 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18542 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18543 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18544 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18547 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18549 elif $ac_last_try; then
18550 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18551 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18552 { (exit 1); exit 1; }; }
18554 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18558 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18559 if test -n "$ac_eof"; then
18560 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18561 ac_eof=`expr $ac_eof + 1`
18564 cat >>$CONFIG_STATUS <<_ACEOF
18565 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18569 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18570 s/^/s,@/; s/!/@,|#_!!_#|/
18573 s/'"$ac_delim"'$/,g/; t
18575 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18576 ' >>$CONFIG_STATUS <conf$$subs.sed
18577 rm -f conf$$subs.sed
18578 cat >>$CONFIG_STATUS <<_ACEOF
18584 for ac_last_try in false false false false false :; do
18585 cat >conf$$subs.sed <<_ACEOF
18586 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18587 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18589 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18590 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18591 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18592 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18593 enable_searchengine!$enable_searchengine$ac_delim
18594 enable_external_search!$enable_external_search$ac_delim
18595 enable_server_based_search!$enable_server_based_search$ac_delim
18596 searchengine_url!$searchengine_url$ac_delim
18597 extra_search_mappings!$extra_search_mappings$ac_delim
18598 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18599 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18600 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18601 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18602 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18603 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18604 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18605 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18606 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18607 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18608 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18609 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18610 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18611 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18612 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18613 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18614 ENABLE_PIC!$ENABLE_PIC$ac_delim
18615 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18616 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18617 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18618 ALL_TARGETS!$ALL_TARGETS$ac_delim
18619 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18620 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18621 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18622 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18623 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18624 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18625 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18626 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18627 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18628 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18629 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18630 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18631 ifGNUmake!$ifGNUmake$ac_delim
18632 LN_S!$LN_S$ac_delim
18636 DATE!$DATE$ac_delim
18637 FIND!$FIND$ac_delim
18638 GREP!$GREP$ac_delim
18639 MKDIR!$MKDIR$ac_delim
18641 RANLIB!$RANLIB$ac_delim
18646 BINPWD!$BINPWD$ac_delim
18648 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18649 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18650 INSTALL_DATA!$INSTALL_DATA$ac_delim
18651 BZIP2!$BZIP2$ac_delim
18653 DOXYGEN!$DOXYGEN$ac_delim
18654 GROFF!$GROFF$ac_delim
18655 GZIPBIN!$GZIPBIN$ac_delim
18656 PDFROFF!$PDFROFF$ac_delim
18659 OCAMLFIND!$OCAMLFIND$ac_delim
18661 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18662 EGREP!$EGREP$ac_delim
18663 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18664 MISSING_FIELD_INITIALIZERS!$MISSING_FIELD_INITIALIZERS$ac_delim
18665 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
18666 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18667 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
18668 NO_COMMENT!$NO_COMMENT$ac_delim
18669 PYTHON!$PYTHON$ac_delim
18670 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
18671 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
18672 USE_OPROFILE!$USE_OPROFILE$ac_delim
18673 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
18674 XML2CONFIG!$XML2CONFIG$ac_delim
18675 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
18676 LIBXML2_INC!$LIBXML2_INC$ac_delim
18677 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
18678 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
18679 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18680 MMAP_FILE!$MMAP_FILE$ac_delim
18681 SHLIBEXT!$SHLIBEXT$ac_delim
18682 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
18685 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18687 elif $ac_last_try; then
18688 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18689 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18690 { (exit 1); exit 1; }; }
18692 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18696 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18697 if test -n "$ac_eof"; then
18698 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18699 ac_eof=`expr $ac_eof + 1`
18702 cat >>$CONFIG_STATUS <<_ACEOF
18703 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18704 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18707 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18708 s/^/s,@/; s/!/@,|#_!!_#|/
18711 s/'"$ac_delim"'$/,g/; t
18713 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18714 ' >>$CONFIG_STATUS <conf$$subs.sed
18715 rm -f conf$$subs.sed
18716 cat >>$CONFIG_STATUS <<_ACEOF
18722 for ac_last_try in false false false false false :; do
18723 cat >conf$$subs.sed <<_ACEOF
18724 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
18725 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
18726 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
18727 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
18728 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
18729 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
18730 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
18731 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
18732 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
18733 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
18734 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
18735 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
18736 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
18737 RPATH!$RPATH$ac_delim
18738 RDYNAMIC!$RDYNAMIC$ac_delim
18739 program_prefix!$program_prefix$ac_delim
18740 LIBOBJS!$LIBOBJS$ac_delim
18741 LTLIBOBJS!$LTLIBOBJS$ac_delim
18744 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
18746 elif $ac_last_try; then
18747 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18748 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18749 { (exit 1); exit 1; }; }
18751 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18755 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18756 if test -n "$ac_eof"; then
18757 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18758 ac_eof=`expr $ac_eof + 1`
18761 cat >>$CONFIG_STATUS <<_ACEOF
18762 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
18763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18766 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18767 s/^/s,@/; s/!/@,|#_!!_#|/
18770 s/'"$ac_delim"'$/,g/; t
18772 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18773 ' >>$CONFIG_STATUS <conf$$subs.sed
18774 rm -f conf$$subs.sed
18775 cat >>$CONFIG_STATUS <<_ACEOF
18782 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18783 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18784 # trailing colons and then remove the whole line if VPATH becomes empty
18785 # (actually we leave an empty line to preserve line numbers).
18786 if test "x$srcdir" = x.; then
18787 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18788 s/:*\$(srcdir):*/:/
18789 s/:*\${srcdir}:*/:/
18791 s/^\([^=]*=[ ]*\):*/\1/
18797 cat >>$CONFIG_STATUS <<\_ACEOF
18798 fi # test -n "$CONFIG_FILES"
18801 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
18804 :[FHLC]) ac_mode=$ac_tag; continue;;
18806 case $ac_mode$ac_tag in
18808 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18809 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18810 { (exit 1); exit 1; }; };;
18811 :[FH]-) ac_tag=-:-;;
18812 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18829 -) ac_f="$tmp/stdin";;
18830 *) # Look for the file first in the build tree, then in the source tree
18831 # (if the path is not absolute). The absolute path cannot be DOS-style,
18832 # because $ac_f cannot contain `:'.
18836 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18838 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18839 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18840 { (exit 1); exit 1; }; };;
18842 ac_file_inputs="$ac_file_inputs $ac_f"
18845 # Let's still pretend it is `configure' which instantiates (i.e., don't
18846 # use $as_me), people would be surprised to read:
18847 # /* config.h. Generated by config.status. */
18848 configure_input="Generated from "`IFS=:
18849 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18850 if test x"$ac_file" != x-; then
18851 configure_input="$ac_file. $configure_input"
18852 { echo "$as_me:$LINENO: creating $ac_file" >&5
18853 echo "$as_me: creating $ac_file" >&6;}
18857 *:-:* | *:-) cat >"$tmp/stdin";;
18862 ac_dir=`$as_dirname -- "$ac_file" ||
18863 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18864 X"$ac_file" : 'X\(//\)[^/]' \| \
18865 X"$ac_file" : 'X\(//\)$' \| \
18866 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18872 /^X\(\/\/\)[^/].*/{
18887 -*) as_dir=./$as_dir;;
18889 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18893 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18894 *) as_qdir=$as_dir;;
18896 as_dirs="'$as_qdir' $as_dirs"
18897 as_dir=`$as_dirname -- "$as_dir" ||
18898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18899 X"$as_dir" : 'X\(//\)[^/]' \| \
18900 X"$as_dir" : 'X\(//\)$' \| \
18901 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18907 /^X\(\/\/\)[^/].*/{
18920 test -d "$as_dir" && break
18922 test -z "$as_dirs" || eval "mkdir $as_dirs"
18923 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18924 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18925 { (exit 1); exit 1; }; }; }
18929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18932 # A ".." for each directory in $ac_dir_suffix.
18933 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18934 case $ac_top_builddir_sub in
18935 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18936 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18939 ac_abs_top_builddir=$ac_pwd
18940 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18941 # for backward compatibility:
18942 ac_top_builddir=$ac_top_build_prefix
18945 .) # We are building in place.
18947 ac_top_srcdir=$ac_top_builddir_sub
18948 ac_abs_top_srcdir=$ac_pwd ;;
18949 [\\/]* | ?:[\\/]* ) # Absolute name.
18950 ac_srcdir=$srcdir$ac_dir_suffix;
18951 ac_top_srcdir=$srcdir
18952 ac_abs_top_srcdir=$srcdir ;;
18953 *) # Relative name.
18954 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18955 ac_top_srcdir=$ac_top_build_prefix$srcdir
18956 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18968 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18969 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18973 cat >>$CONFIG_STATUS <<\_ACEOF
18974 # If the template does not know about datarootdir, expand it.
18975 # FIXME: This hack should be removed a few years after 2.60.
18976 ac_datarootdir_hack=; ac_datarootdir_seen=
18978 case `sed -n '/datarootdir/ {
18987 ' $ac_file_inputs` in
18988 *datarootdir*) ac_datarootdir_seen=yes;;
18989 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18990 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18991 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18993 cat >>$CONFIG_STATUS <<_ACEOF
18994 ac_datarootdir_hack='
18995 s&@datadir@&$datadir&g
18996 s&@docdir@&$docdir&g
18997 s&@infodir@&$infodir&g
18998 s&@localedir@&$localedir&g
18999 s&@mandir@&$mandir&g
19000 s&\\\${datarootdir}&$datarootdir&g' ;;
19004 # Neutralize VPATH when `$srcdir' = `.'.
19005 # Shell code in configure.ac might set extrasub.
19006 # FIXME: do we really want to maintain this feature?
19007 cat >>$CONFIG_STATUS <<_ACEOF
19011 cat >>$CONFIG_STATUS <<\_ACEOF
19013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19014 s&@configure_input@&$configure_input&;t t
19015 s&@top_builddir@&$ac_top_builddir_sub&;t t
19016 s&@srcdir@&$ac_srcdir&;t t
19017 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19018 s&@top_srcdir@&$ac_top_srcdir&;t t
19019 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19020 s&@builddir@&$ac_builddir&;t t
19021 s&@abs_builddir@&$ac_abs_builddir&;t t
19022 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19023 s&@INSTALL@&$ac_INSTALL&;t t
19024 $ac_datarootdir_hack
19025 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19027 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19028 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19029 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19030 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19031 which seems to be undefined. Please make sure it is defined." >&5
19032 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19033 which seems to be undefined. Please make sure it is defined." >&2;}
19037 -) cat "$tmp/out"; rm -f "$tmp/out";;
19038 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19047 # Transform confdefs.h into a sed script `conftest.defines', that
19048 # substitutes the proper values into config.h.in to produce config.h.
19049 rm -f conftest.defines conftest.tail
19050 # First, append a space to every undef/define line, to ease matching.
19051 echo 's/$/ /' >conftest.defines
19052 # Then, protect against being on the right side of a sed subst, or in
19053 # an unquoted here document, in config.status. If some macros were
19054 # called several times there might be several #defines for the same
19055 # symbol, which is useless. But do not sort them, since the last
19056 # AC_DEFINE must be honored.
19057 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19058 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19059 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19060 # PARAMS is the parameter list in the macro definition--in most cases, it's
19061 # just an empty string.
19062 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19063 ac_dB='\\)[ (].*,\\1define\\2'
19071 s/^[ ]*#[ ]*define[ ][ ]*//
19076 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19077 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19078 ' >>conftest.defines
19080 # Remove the space that was appended to ease matching.
19081 # Then replace #undef with comments. This is necessary, for
19082 # example, in the case of _POSIX_SOURCE, which is predefined and required
19083 # on some systems where configure will not decide to define it.
19084 # (The regexp can be short, since the line contains either #define or #undef.)
19086 s,^[ #]*u.*,/* & */,' >>conftest.defines
19088 # Break up conftest.defines:
19089 ac_max_sed_lines=50
19091 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19092 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19093 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19095 ac_in='$ac_file_inputs'
19096 ac_out='"$tmp/out1"'
19097 ac_nxt='"$tmp/out2"'
19101 # Write a here document:
19102 cat >>$CONFIG_STATUS <<_ACEOF
19103 # First, check the format of the line:
19104 cat >"\$tmp/defines.sed" <<\\CEOF
19105 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19106 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19110 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19112 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19113 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19114 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19115 grep . conftest.tail >/dev/null || break
19116 rm -f conftest.defines
19117 mv conftest.tail conftest.defines
19119 rm -f conftest.defines conftest.tail
19121 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19122 cat >>$CONFIG_STATUS <<\_ACEOF
19123 if test x"$ac_file" != x-; then
19124 echo "/* $configure_input */" >"$tmp/config.h"
19125 cat "$ac_result" >>"$tmp/config.h"
19126 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19127 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19128 echo "$as_me: $ac_file is unchanged" >&6;}
19131 mv "$tmp/config.h" $ac_file
19134 echo "/* $configure_input */"
19140 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19141 echo "$as_me: executing $ac_file commands" >&6;}
19146 case $ac_file$ac_mode in
19147 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19148 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19149 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19150 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19151 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19152 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19153 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19154 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19155 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19156 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19157 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19158 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19159 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19160 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19161 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19162 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19163 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19164 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19165 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19166 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19167 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19168 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19169 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19170 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19176 { (exit 0); exit 0; }
19178 chmod +x $CONFIG_STATUS
19179 ac_clean_files=$ac_clean_files_save
19182 # configure is writing to config.log, and then calls config.status.
19183 # config.status does its own redirection, appending to config.log.
19184 # Unfortunately, on DOS this fails, as config.log is still kept open
19185 # by configure, so config.status won't be able to write to it; its
19186 # output is simply discarded. So we exec the FD to /dev/null,
19187 # effectively closing config.log, so it can be properly (re)opened and
19188 # appended to by config.status. When coming back to configure, we
19189 # need to make the FD available again.
19190 if test "$no_create" != yes; then
19192 ac_config_status_args=
19193 test "$silent" = yes &&
19194 ac_config_status_args="$ac_config_status_args --quiet"
19196 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19198 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19199 # would make configure fail if this is the last instruction.
19200 $ac_cs_success || { (exit 1); exit 1; }
19204 # CONFIG_SUBDIRS section.
19206 if test "$no_recursion" != yes; then
19208 # Remove --cache-file and --srcdir arguments so they do not pile up.
19209 ac_sub_configure_args=
19211 eval "set x $ac_configure_args"
19215 if test -n "$ac_prev"; then
19220 -cache-file | --cache-file | --cache-fil | --cache-fi \
19221 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19222 ac_prev=cache_file ;;
19223 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19224 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19227 --config-cache | -C)
19229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19233 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19235 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19239 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19241 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19245 # Always prepend --prefix to ensure using the same prefix
19246 # in subdir configurations.
19247 ac_arg="--prefix=$prefix"
19249 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19251 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19254 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19256 # Do not complain, so a configure script can configure whichever
19257 # parts of a large source tree are present.
19258 test -d "$srcdir/$ac_dir" || continue
19260 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19261 echo "$as_me:$LINENO: $ac_msg" >&5
19265 -*) as_dir=./$as_dir;;
19267 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19271 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19272 *) as_qdir=$as_dir;;
19274 as_dirs="'$as_qdir' $as_dirs"
19275 as_dir=`$as_dirname -- "$as_dir" ||
19276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19277 X"$as_dir" : 'X\(//\)[^/]' \| \
19278 X"$as_dir" : 'X\(//\)$' \| \
19279 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19285 /^X\(\/\/\)[^/].*/{
19298 test -d "$as_dir" && break
19300 test -z "$as_dirs" || eval "mkdir $as_dirs"
19301 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19302 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19303 { (exit 1); exit 1; }; }; }
19307 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19309 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19310 # A ".." for each directory in $ac_dir_suffix.
19311 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19312 case $ac_top_builddir_sub in
19313 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19314 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19317 ac_abs_top_builddir=$ac_pwd
19318 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19319 # for backward compatibility:
19320 ac_top_builddir=$ac_top_build_prefix
19323 .) # We are building in place.
19325 ac_top_srcdir=$ac_top_builddir_sub
19326 ac_abs_top_srcdir=$ac_pwd ;;
19327 [\\/]* | ?:[\\/]* ) # Absolute name.
19328 ac_srcdir=$srcdir$ac_dir_suffix;
19329 ac_top_srcdir=$srcdir
19330 ac_abs_top_srcdir=$srcdir ;;
19331 *) # Relative name.
19332 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19333 ac_top_srcdir=$ac_top_build_prefix$srcdir
19334 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19336 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19341 # Check for guested configure; otherwise get Cygnus style configure.
19342 if test -f "$ac_srcdir/configure.gnu"; then
19343 ac_sub_configure=$ac_srcdir/configure.gnu
19344 elif test -f "$ac_srcdir/configure"; then
19345 ac_sub_configure=$ac_srcdir/configure
19346 elif test -f "$ac_srcdir/configure.in"; then
19347 # This should be Cygnus configure.
19348 ac_sub_configure=$ac_aux_dir/configure
19350 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19351 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19355 # The recursion is here.
19356 if test -n "$ac_sub_configure"; then
19357 # Make the cache file name correct relative to the subdirectory.
19358 case $cache_file in
19359 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19360 *) # Relative name.
19361 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19364 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19365 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19366 # The eval makes quoting arguments work.
19367 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19368 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19369 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19370 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19371 { (exit 1); exit 1; }; }