2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-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.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_CLANG_STATIC_ANALYZER
698 ENABLE_EXPENSIVE_CHECKS
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 NO_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.7.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.7.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 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.7.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.7.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=7
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: WARNING: **************************************************************************************" >&5
2037 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2038 { echo "$as_me:$LINENO: WARNING: * *" >&5
2039 echo "$as_me: WARNING: * *" >&2;}
2040 { echo "$as_me:$LINENO: WARNING: * WARNING *" >&5
2041 echo "$as_me: WARNING: * WARNING *" >&2;}
2042 { echo "$as_me:$LINENO: WARNING: * *" >&5
2043 echo "$as_me: WARNING: * *" >&2;}
2044 { echo "$as_me:$LINENO: WARNING: * In-source builds are deprecated. *" >&5
2045 echo "$as_me: WARNING: * In-source builds are deprecated. *" >&2;}
2046 { echo "$as_me:$LINENO: WARNING: * *" >&5
2047 echo "$as_me: WARNING: * *" >&2;}
2048 { echo "$as_me:$LINENO: WARNING: * Please configure from a separate build directory! *" >&5
2049 echo "$as_me: WARNING: * Please configure from a separate build directory! *" >&2;}
2050 { echo "$as_me:$LINENO: WARNING: * *" >&5
2051 echo "$as_me: WARNING: * *" >&2;}
2052 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2053 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064 if test -n "$ac_tool_prefix"; then
2065 for ac_prog in clang gcc
2067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2104 test -n "$CC" && break
2107 if test -z "$CC"; then
2109 for ac_prog in clang gcc
2111 # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_ac_ct_CC="$ac_prog"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2148 test -n "$ac_ct_CC" && break
2151 if test "x$ac_ct_CC" = x; then
2154 case $cross_compiling:$ac_tool_warned in
2156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2157 whose name does not start with the host triplet. If you think this
2158 configuration is useful to you, please write to autoconf@gnu.org." >&5
2159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet. If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2162 ac_tool_warned=yes ;;
2169 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: no acceptable C compiler found in \$PATH
2172 See \`config.log' for more details." >&2;}
2173 { (exit 1); exit 1; }; }
2175 # Provide some information about the compiler.
2176 echo "$as_me:$LINENO: checking for C compiler version" >&5
2177 ac_compiler=`set X $ac_compile; echo $2`
2178 { (ac_try="$ac_compiler --version >&5"
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184 (eval "$ac_compiler --version >&5") 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }
2188 { (ac_try="$ac_compiler -v >&5"
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2194 (eval "$ac_compiler -v >&5") 2>&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }
2198 { (ac_try="$ac_compiler -V >&5"
2200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201 *) ac_try_echo=$ac_try;;
2203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204 (eval "$ac_compiler -V >&5") 2>&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }
2209 cat >conftest.$ac_ext <<_ACEOF
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h. */
2224 ac_clean_files_save=$ac_clean_files
2225 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2226 # Try to create an executable without -o first, disregard a.out.
2227 # It will help us diagnose broken compilers, and finding out an intuition
2229 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2230 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2231 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2233 # List of possible output files, starting from the most likely.
2234 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2235 # only as a last resort. b.out is created by i960 compilers.
2236 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2238 # The IRIX 6 linker writes into existing files which may not be
2239 # executable, retaining their permissions. Remove them first so a
2240 # subsequent execution test works.
2242 for ac_file in $ac_files
2245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2246 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2251 if { (ac_try="$ac_link_default"
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257 (eval "$ac_link_default") 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; then
2261 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2263 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2264 # so that the user can short-circuit this test for compilers unknown to
2266 for ac_file in $ac_files
2268 test -f "$ac_file" || continue
2270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2273 # We found the default executable, but exeext='' is most
2277 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2279 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281 # We set ac_cv_exeext here because the later test for it is not
2282 # safe: cross compilers may not add the suffix if given an `-o'
2283 # argument, so we may need to know it at that point already.
2284 # Even if this section looks crufty: it has the advantage of
2291 test "$ac_cv_exeext" = no && ac_cv_exeext=
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2297 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: C compiler cannot create executables
2300 See \`config.log' for more details." >&2;}
2301 { (exit 77); exit 77; }; }
2304 ac_exeext=$ac_cv_exeext
2305 { echo "$as_me:$LINENO: result: $ac_file" >&5
2306 echo "${ECHO_T}$ac_file" >&6; }
2308 # Check that the compiler produces executables we can run. If not, either
2309 # the compiler is broken, or we cross compile.
2310 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2311 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2312 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2313 # If not cross compiling, check that we can run a simple program.
2314 if test "$cross_compiling" != yes; then
2315 if { ac_try='./$ac_file'
2316 { (case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_try") 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 if test "$cross_compiling" = maybe; then
2330 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: cannot run C compiled programs.
2334 If you meant to cross compile, use \`--host'.
2335 See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2340 { echo "$as_me:$LINENO: result: yes" >&5
2341 echo "${ECHO_T}yes" >&6; }
2343 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2344 ac_clean_files=$ac_clean_files_save
2345 # Check that the compiler produces executables we can run. If not, either
2346 # the compiler is broken, or we cross compile.
2347 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2348 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2349 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2350 echo "${ECHO_T}$cross_compiling" >&6; }
2352 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2353 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2354 if { (ac_try="$ac_link"
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_link") 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; then
2364 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2365 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2366 # work properly (i.e., refer to `conftest.exe'), while it won't with
2368 for ac_file in conftest.exe conftest conftest.*; do
2369 test -f "$ac_file" || continue
2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2372 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }
2385 rm -f conftest$ac_cv_exeext
2386 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2392 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2394 if test "${ac_cv_objext+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 cat >conftest.$ac_ext <<_ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2412 rm -f conftest.o conftest.obj
2413 if { (ac_try="$ac_compile"
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval "$ac_compile") 2>&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; then
2423 for ac_file in conftest.o conftest.obj conftest.*; do
2424 test -f "$ac_file" || continue;
2426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2427 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2438 See \`config.log' for more details." >&2;}
2439 { (exit 1); exit 1; }; }
2442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2444 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2445 echo "${ECHO_T}$ac_cv_objext" >&6; }
2446 OBJEXT=$ac_cv_objext
2448 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 cat >conftest.$ac_ext <<_ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2471 rm -f conftest.$ac_objext
2472 if { (ac_try="$ac_compile"
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_compile") 2>conftest.er1
2480 grep -v '^ *+' conftest.er1 >conftest.err
2482 cat conftest.err >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
2485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_try") 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; }; then
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2517 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2518 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2519 GCC=`test $ac_compiler_gnu = yes && echo yes`
2520 ac_test_CFLAGS=${CFLAGS+set}
2521 ac_save_CFLAGS=$CFLAGS
2522 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2523 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_cc_g+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 ac_save_c_werror_flag=$ac_c_werror_flag
2528 ac_c_werror_flag=yes
2531 cat >conftest.$ac_ext <<_ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2546 rm -f conftest.$ac_objext
2547 if { (ac_try="$ac_compile"
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553 (eval "$ac_compile") 2>conftest.er1
2555 grep -v '^ *+' conftest.er1 >conftest.err
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2561 { (case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_try") 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_try") 2>&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_compile") 2>conftest.er1
2610 grep -v '^ *+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_try") 2>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2640 ac_c_werror_flag=$ac_save_c_werror_flag
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compile") 2>conftest.er1
2666 grep -v '^ *+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2672 { (case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_try") 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try='test -s conftest.$ac_objext'
2682 { (case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_try") 2>&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 ac_c_werror_flag=$ac_save_c_werror_flag
2708 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2709 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2710 if test "$ac_test_CFLAGS" = set; then
2711 CFLAGS=$ac_save_CFLAGS
2712 elif test $ac_cv_prog_cc_g = yes; then
2713 if test "$GCC" = yes; then
2719 if test "$GCC" = yes; then
2725 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2726 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2727 if test "${ac_cv_prog_cc_c89+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 ac_cv_prog_cc_c89=no
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2740 #include <sys/types.h>
2741 #include <sys/stat.h>
2742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2743 struct buf { int x; };
2744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745 static char *e (p, i)
2751 static char *f (char * (*g) (char **, int), char **p, ...)
2756 s = g (p, va_arg (v,int));
2761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2762 function prototypes and stuff, but not '\xHH' hex character constants.
2763 These don't provoke an error unfortunately, instead are silently treated
2764 as 'x'. The following induces an error, until -std is added to get
2765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2766 array size at least. It's necessary to write '\x00'==0 to get something
2767 that's true only with -std. */
2768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2771 inside strings and character constants. */
2773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2775 int test (int i, double x);
2776 struct s1 {int (*f) (int a);};
2777 struct s2 {int (*f) (double a);};
2778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2792 CC="$ac_save_CC $ac_arg"
2793 rm -f conftest.$ac_objext
2794 if { (ac_try="$ac_compile"
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_compile") 2>conftest.er1
2802 grep -v '^ *+' conftest.er1 >conftest.err
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
2807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2808 { (case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_try") 2>&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; } &&
2817 { ac_try='test -s conftest.$ac_objext'
2818 { (case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_try") 2>&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 ac_cv_prog_cc_c89=$ac_arg
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2835 rm -f core conftest.err conftest.$ac_objext
2836 test "x$ac_cv_prog_cc_c89" != "xno" && break
2838 rm -f conftest.$ac_ext
2843 case "x$ac_cv_prog_cc_c89" in
2845 { echo "$as_me:$LINENO: result: none needed" >&5
2846 echo "${ECHO_T}none needed" >&6; } ;;
2848 { echo "$as_me:$LINENO: result: unsupported" >&5
2849 echo "${ECHO_T}unsupported" >&6; } ;;
2851 CC="$CC $ac_cv_prog_cc_c89"
2852 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2853 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2864 ac_cpp='$CXXCPP $CPPFLAGS'
2865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2868 if test -z "$CXX"; then
2869 if test -n "$CCC"; then
2872 if test -n "$ac_tool_prefix"; then
2873 for ac_prog in clang++ g++
2875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_CXX+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 if test -n "$CXX"; then
2883 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 if test -n "$CXX"; then
2904 { echo "$as_me:$LINENO: result: $CXX" >&5
2905 echo "${ECHO_T}$CXX" >&6; }
2907 { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2912 test -n "$CXX" && break
2915 if test -z "$CXX"; then
2917 for ac_prog in clang++ g++
2919 # Extract the first word of "$ac_prog", so it can be a program name with args.
2920 set dummy $ac_prog; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 if test -n "$ac_ct_CXX"; then
2927 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_ac_ct_CXX="$ac_prog"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2947 if test -n "$ac_ct_CXX"; then
2948 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2949 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2951 { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2956 test -n "$ac_ct_CXX" && break
2959 if test "x$ac_ct_CXX" = x; then
2962 case $cross_compiling:$ac_tool_warned in
2964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet. If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&5
2967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet. If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970 ac_tool_warned=yes ;;
2978 # Provide some information about the compiler.
2979 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2980 ac_compiler=`set X $ac_compile; echo $2`
2981 { (ac_try="$ac_compiler --version >&5"
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compiler --version >&5") 2>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }
2991 { (ac_try="$ac_compiler -v >&5"
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_compiler -v >&5") 2>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }
3001 { (ac_try="$ac_compiler -V >&5"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compiler -V >&5") 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3081 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3082 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3083 GXX=`test $ac_compiler_gnu = yes && echo yes`
3084 ac_test_CXXFLAGS=${CXXFLAGS+set}
3085 ac_save_CXXFLAGS=$CXXFLAGS
3086 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3087 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3088 if test "${ac_cv_prog_cxx_g+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3092 ac_cxx_werror_flag=yes
3095 cat >conftest.$ac_ext <<_ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_compile") 2>conftest.er1
3119 grep -v '^ *+' conftest.er1 >conftest.err
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } &&
3124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3125 { (case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_try") 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; } &&
3134 { ac_try='test -s conftest.$ac_objext'
3135 { (case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_try") 2>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; }; then
3144 ac_cv_prog_cxx_g=yes
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3236 { (case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_try") 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_try") 2>&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_prog_cxx_g=yes
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3272 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3274 if test "$ac_test_CXXFLAGS" = set; then
3275 CXXFLAGS=$ac_save_CXXFLAGS
3276 elif test $ac_cv_prog_cxx_g = yes; then
3277 if test "$GXX" = yes; then
3283 if test "$GXX" = yes; then
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3301 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3302 # On Suns, sometimes $CPP names a directory.
3303 if test -n "$CPP" && test -d "$CPP"; then
3306 if test -z "$CPP"; then
3307 if test "${ac_cv_prog_CPP+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 # Double quotes because CPP needs to be expanded
3311 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3314 for ac_c_preproc_warn_flag in '' yes
3316 # Use a header file that comes with gcc, so configuring glibc
3317 # with a fresh cross-compiler works.
3318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3319 # <limits.h> exists even on freestanding compilers.
3320 # On the NeXT, cc -E runs the code through the compiler's parser,
3321 # not just through cpp. "Syntax error" is here to catch this case.
3322 cat >conftest.$ac_ext <<_ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3329 # include <limits.h>
3331 # include <assert.h>
3335 if { (ac_try="$ac_cpp conftest.$ac_ext"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } >/dev/null; then
3348 if test -s conftest.err; then
3349 ac_cpp_err=$ac_c_preproc_warn_flag
3350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357 if test -z "$ac_cpp_err"; then
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 # Broken: fails on valid input.
3367 rm -f conftest.err conftest.$ac_ext
3369 # OK, works on sane cases. Now check whether nonexistent headers
3370 # can be detected and how.
3371 cat >conftest.$ac_ext <<_ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3377 #include <ac_nonexistent.h>
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null; then
3392 if test -s conftest.err; then
3393 ac_cpp_err=$ac_c_preproc_warn_flag
3394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3401 if test -z "$ac_cpp_err"; then
3402 # Broken: success on invalid input.
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 # Passes both tests.
3413 rm -f conftest.err conftest.$ac_ext
3416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3417 rm -f conftest.err conftest.$ac_ext
3418 if $ac_preproc_ok; then
3430 { echo "$as_me:$LINENO: result: $CPP" >&5
3431 echo "${ECHO_T}$CPP" >&6; }
3433 for ac_c_preproc_warn_flag in '' yes
3435 # Use a header file that comes with gcc, so configuring glibc
3436 # with a fresh cross-compiler works.
3437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3438 # <limits.h> exists even on freestanding compilers.
3439 # On the NeXT, cc -E runs the code through the compiler's parser,
3440 # not just through cpp. "Syntax error" is here to catch this case.
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3448 # include <limits.h>
3450 # include <assert.h>
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } >/dev/null; then
3467 if test -s conftest.err; then
3468 ac_cpp_err=$ac_c_preproc_warn_flag
3469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3476 if test -z "$ac_cpp_err"; then
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 # Broken: fails on valid input.
3486 rm -f conftest.err conftest.$ac_ext
3488 # OK, works on sane cases. Now check whether nonexistent headers
3489 # can be detected and how.
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3506 grep -v '^ *+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } >/dev/null; then
3511 if test -s conftest.err; then
3512 ac_cpp_err=$ac_c_preproc_warn_flag
3513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3520 if test -z "$ac_cpp_err"; then
3521 # Broken: success on invalid input.
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 # Passes both tests.
3532 rm -f conftest.err conftest.$ac_ext
3535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536 rm -f conftest.err conftest.$ac_ext
3537 if $ac_preproc_ok; then
3540 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." >&5
3542 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3543 See \`config.log' for more details." >&2;}
3544 { (exit 1); exit 1; }; }
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554 if test "$CXX" = "clang++" ; then
3555 { echo "$as_me:$LINENO: checking whether clang works" >&5
3556 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3558 ac_cpp='$CXXCPP $CPPFLAGS'
3559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3571 #if __has_include (<cxxabi.h>)
3574 #if __has_include (<unwind.h>)
3586 rm -f conftest.$ac_objext
3587 if { (ac_try="$ac_compile"
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_compile") 2>conftest.er1
3595 grep -v '^ *+' conftest.er1 >conftest.err
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
3600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3601 { (case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_try") 2>&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_try") 2>&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3621 { echo "$as_me:$LINENO: result: yes" >&5
3622 echo "${ECHO_T}yes" >&6; }
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3629 { echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6; }
3631 { { 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
3632 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;}
3633 { (exit 1); exit 1; }; }
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3647 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3649 ac_cpp='$CXXCPP $CPPFLAGS'
3650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3654 llvm_cv_cxx_compiler=unknown
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3666 rm -f conftest.$ac_objext
3667 if { (ac_try="$ac_compile"
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_compile") 2>conftest.er1
3675 grep -v '^ *+' conftest.er1 >conftest.err
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3681 { (case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_try") 2>&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; } &&
3690 { ac_try='test -s conftest.$ac_objext'
3691 { (case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_try") 2>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 llvm_cv_cxx_compiler=clang
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_compile") 2>conftest.er1
3725 grep -v '^ *+' conftest.er1 >conftest.err
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } &&
3730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3731 { (case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_try") 2>&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; } &&
3740 { ac_try='test -s conftest.$ac_objext'
3741 { (case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746 (eval "$ac_try") 2>&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; }; then
3750 llvm_cv_cxx_compiler=gcc
3752 echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3769 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3773 if test -d ${srcdir}/projects/test-suite ; then
3774 subdirs="$subdirs projects/test-suite"
3778 if test -d ${srcdir}/projects/llvm-test ; then
3779 subdirs="$subdirs projects/llvm-test"
3783 if test -d ${srcdir}/projects/poolalloc ; then
3784 subdirs="$subdirs projects/poolalloc"
3788 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3789 subdirs="$subdirs projects/llvm-poolalloc"
3793 for i in `ls ${srcdir}/projects`
3795 if test -d ${srcdir}/projects/${i} ; then
3797 safecode) subdirs="$subdirs projects/safecode"
3805 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3806 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3812 # Check whether --enable-polly was given.
3813 if test "${enable_polly+set}" = set; then
3814 enableval=$enable_polly;
3819 case "$enableval" in
3824 default) ENABLE_POLLY=1
3826 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3827 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3828 { (exit 1); exit 1; }; } ;;
3832 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3835 subdirs="$subdirs tools/polly"
3840 # Make sure we can run config.sub.
3841 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3842 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3843 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3844 { (exit 1); exit 1; }; }
3846 { echo "$as_me:$LINENO: checking build system type" >&5
3847 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3848 if test "${ac_cv_build+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 ac_build_alias=$build_alias
3852 test "x$ac_build_alias" = x &&
3853 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3854 test "x$ac_build_alias" = x &&
3855 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3856 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3857 { (exit 1); exit 1; }; }
3858 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3859 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3860 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3861 { (exit 1); exit 1; }; }
3864 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3865 echo "${ECHO_T}$ac_cv_build" >&6; }
3866 case $ac_cv_build in
3868 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3869 echo "$as_me: error: invalid value of canonical build" >&2;}
3870 { (exit 1); exit 1; }; };;
3873 ac_save_IFS=$IFS; IFS='-'
3879 # Remember, the first character of IFS is used to create $*,
3880 # except with old shells:
3883 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3886 { echo "$as_me:$LINENO: checking host system type" >&5
3887 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3888 if test "${ac_cv_host+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 if test "x$host_alias" = x; then
3892 ac_cv_host=$ac_cv_build
3894 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3895 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3896 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3897 { (exit 1); exit 1; }; }
3901 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3902 echo "${ECHO_T}$ac_cv_host" >&6; }
3905 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3906 echo "$as_me: error: invalid value of canonical host" >&2;}
3907 { (exit 1); exit 1; }; };;
3910 ac_save_IFS=$IFS; IFS='-'
3916 # Remember, the first character of IFS is used to create $*,
3917 # except with old shells:
3920 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3923 { echo "$as_me:$LINENO: checking target system type" >&5
3924 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3925 if test "${ac_cv_target+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 if test "x$target_alias" = x; then
3929 ac_cv_target=$ac_cv_host
3931 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3932 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3933 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3934 { (exit 1); exit 1; }; }
3938 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3939 echo "${ECHO_T}$ac_cv_target" >&6; }
3940 case $ac_cv_target in
3942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3943 echo "$as_me: error: invalid value of canonical target" >&2;}
3944 { (exit 1); exit 1; }; };;
3946 target=$ac_cv_target
3947 ac_save_IFS=$IFS; IFS='-'
3953 # Remember, the first character of IFS is used to create $*,
3954 # except with old shells:
3957 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3960 # The aliases save the names the user supplied, while $host etc.
3961 # will get canonicalized.
3962 test -n "$target_alias" &&
3963 test "$program_prefix$program_suffix$program_transform_name" = \
3965 program_prefix=${target_alias}-
3967 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3968 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3969 if test "${llvm_cv_os_type+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 llvm_cv_link_all_option="-Wl,--whole-archive"
3975 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3976 llvm_cv_os_type="AIX"
3977 llvm_cv_platform_type="Unix" ;;
3979 llvm_cv_link_all_option="-Wl,--whole-archive"
3980 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3981 llvm_cv_os_type="IRIX"
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="Cygwin"
3987 llvm_cv_platform_type="Unix" ;;
3989 llvm_cv_link_all_option="-Wl,-all_load"
3990 llvm_cv_no_link_all_option="-Wl,-noall_load"
3991 llvm_cv_os_type="Darwin"
3992 llvm_cv_platform_type="Unix" ;;
3994 llvm_cv_link_all_option="-Wl,-all_load"
3995 llvm_cv_no_link_all_option="-Wl,-noall_load"
3996 llvm_cv_os_type="Minix"
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="FreeBSD"
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="GNU/kFreeBSD"
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="OpenBSD"
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="NetBSD"
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="DragonFly"
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="Bitrig"
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="HP-UX"
4032 llvm_cv_platform_type="Unix" ;;
4034 llvm_cv_link_all_option="-Wl,--whole-archive"
4035 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4036 llvm_cv_os_type="Interix"
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="Linux"
4042 llvm_cv_platform_type="Unix" ;;
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="GNU"
4047 llvm_cv_platform_type="Unix" ;;
4049 llvm_cv_link_all_option="-Wl,-z,allextract"
4050 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4051 llvm_cv_os_type="SunOS"
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="Win32"
4057 llvm_cv_platform_type="Win32" ;;
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="MingW"
4062 llvm_cv_platform_type="Win32" ;;
4064 llvm_cv_link_all_option="-Wl,--whole-archive"
4065 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4066 llvm_cv_os_type="Haiku"
4067 llvm_cv_platform_type="Unix" ;;
4069 llvm_cv_link_all_option="-Wl,--whole-archive"
4070 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4071 llvm_cv_os_type="Freestanding"
4072 llvm_cv_platform_type="Unix" ;;
4074 llvm_cv_link_all_option="-Wl,--whole-archive"
4075 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4076 llvm_cv_os_type="Freestanding"
4077 llvm_cv_platform_type="Unix" ;;
4079 llvm_cv_link_all_option=""
4080 llvm_cv_no_link_all_option=""
4081 llvm_cv_os_type="Unknown"
4082 llvm_cv_platform_type="Unknown" ;;
4085 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4086 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4088 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4089 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4090 if test "${llvm_cv_target_os_type+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 llvm_cv_target_os_type="AIX" ;;
4097 llvm_cv_target_os_type="IRIX" ;;
4099 llvm_cv_target_os_type="Cygwin" ;;
4101 llvm_cv_target_os_type="Darwin" ;;
4103 llvm_cv_target_os_type="Minix" ;;
4105 llvm_cv_target_os_type="FreeBSD" ;;
4107 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4109 llvm_cv_target_os_type="OpenBSD" ;;
4111 llvm_cv_target_os_type="NetBSD" ;;
4113 llvm_cv_target_os_type="DragonFly" ;;
4115 llvm_cv_target_os_type="Bitrig" ;;
4117 llvm_cv_target_os_type="HP-UX" ;;
4119 llvm_cv_target_os_type="Interix" ;;
4121 llvm_cv_target_os_type="Linux" ;;
4123 llvm_cv_target_os_type="GNU" ;;
4125 llvm_cv_target_os_type="SunOS" ;;
4127 llvm_cv_target_os_type="Win32" ;;
4129 llvm_cv_target_os_type="MingW" ;;
4131 llvm_cv_target_os_type="Haiku" ;;
4133 llvm_cv_target_os_type="RTEMS" ;;
4135 llvm_cv_target_os_type="NativeClient" ;;
4137 llvm_cv_target_os_type="Freestanding" ;;
4139 llvm_cv_target_os_type="PS4" ;;
4141 llvm_cv_target_os_type="Unknown" ;;
4144 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4145 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4147 if test "$llvm_cv_os_type" = "Unknown" ; then
4148 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4149 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4150 { (exit 1); exit 1; }; }
4155 HOST_OS=$llvm_cv_os_type
4157 TARGET_OS=$llvm_cv_target_os_type
4160 LINKALL=$llvm_cv_link_all_option
4162 NOLINKALL=$llvm_cv_no_link_all_option
4165 case $llvm_cv_platform_type in
4168 cat >>confdefs.h <<\_ACEOF
4169 #define LLVM_ON_UNIX 1
4179 cat >>confdefs.h <<\_ACEOF
4180 #define LLVM_ON_WIN32 1
4190 { echo "$as_me:$LINENO: checking target architecture" >&5
4191 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4192 if test "${llvm_cv_target_arch+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 i?86-*) llvm_cv_target_arch="x86" ;;
4197 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4198 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4199 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4200 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4201 arm*-*) llvm_cv_target_arch="ARM" ;;
4202 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4203 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4204 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4205 xcore-*) llvm_cv_target_arch="XCore" ;;
4206 msp430-*) llvm_cv_target_arch="MSP430" ;;
4207 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4208 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4209 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4210 *) llvm_cv_target_arch="Unknown" ;;
4213 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4214 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4216 if test "$llvm_cv_target_arch" = "Unknown" ; then
4217 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4218 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4221 case "$llvm_cv_target_arch" in
4222 x86) LLVM_NATIVE_ARCH="X86" ;;
4223 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4224 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4227 ARCH=$llvm_cv_target_arch
4229 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4233 i?86-*) host_arch="x86" ;;
4234 amd64-* | x86_64-*) host_arch="x86_64" ;;
4235 sparc*-*) host_arch="Sparc" ;;
4236 powerpc*-*) host_arch="PowerPC" ;;
4237 arm64*-*) host_arch="AArch64" ;;
4238 arm*-*) host_arch="ARM" ;;
4239 aarch64*-*) host_arch="AArch64" ;;
4240 mips-* | mips64-*) host_arch="Mips" ;;
4241 mipsel-* | mips64el-*) host_arch="Mips" ;;
4242 xcore-*) host_arch="XCore" ;;
4243 msp430-*) host_arch="MSP430" ;;
4244 hexagon-*) host_arch="Hexagon" ;;
4245 s390x-*) host_arch="SystemZ" ;;
4246 *) host_arch="Unknown" ;;
4249 if test "$host_arch" = "Unknown" ; then
4250 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4251 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4254 HOST_ARCH=$host_arch
4257 if test "$cross_compiling" = yes; then
4258 LLVM_CROSS_COMPILING=1
4261 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4262 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4263 if test "${ac_cv_build_exeext+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4267 ac_cv_build_exeext=.exe
4269 ac_build_prefix=${build_alias}-
4271 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4272 set dummy ${ac_build_prefix}gcc; ac_word=$2
4273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4275 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 if test -n "$BUILD_CC"; then
4279 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4288 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 BUILD_CC=$ac_cv_prog_BUILD_CC
4299 if test -n "$BUILD_CC"; then
4300 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4301 echo "${ECHO_T}$BUILD_CC" >&6; }
4303 { echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6; }
4308 if test -z "$BUILD_CC"; then
4309 # Extract the first word of "gcc", so it can be a program name with args.
4310 set dummy gcc; ac_word=$2
4311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4313 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 if test -n "$BUILD_CC"; then
4317 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_prog_BUILD_CC="gcc"
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 BUILD_CC=$ac_cv_prog_BUILD_CC
4337 if test -n "$BUILD_CC"; then
4338 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4339 echo "${ECHO_T}$BUILD_CC" >&6; }
4341 { echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6; }
4346 if test -z "$BUILD_CC"; then
4347 # Extract the first word of "cc", so it can be a program name with args.
4348 set dummy cc; ac_word=$2
4349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4351 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 if test -n "$BUILD_CC"; then
4355 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4366 ac_prog_rejected=yes
4369 ac_cv_prog_BUILD_CC="cc"
4370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 if test $ac_prog_rejected = yes; then
4378 # We found a bogon in the path, so make sure we never use it.
4379 set dummy $ac_cv_prog_BUILD_CC
4381 if test $# != 0; then
4382 # We chose a different compiler from the bogus one.
4383 # However, it has the same basename, so the bogon will be chosen
4384 # first if we set BUILD_CC to just the basename; use the full file name.
4386 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4391 BUILD_CC=$ac_cv_prog_BUILD_CC
4392 if test -n "$BUILD_CC"; then
4393 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4394 echo "${ECHO_T}$BUILD_CC" >&6; }
4396 { echo "$as_me:$LINENO: result: no" >&5
4397 echo "${ECHO_T}no" >&6; }
4403 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4404 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4405 { (exit 1); exit 1; }; }
4406 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4408 echo 'int main () { return 0; }' > conftest.$ac_ext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4411 (eval $ac_build_link) 2>&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; then
4415 for file in conftest.*; do
4417 *.c | *.o | *.obj | *.dSYM) ;;
4418 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4422 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4423 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4424 { (exit 1); exit 1; }; }
4427 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4432 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4433 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4434 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4435 ac_build_exeext=$BUILD_EXEEXT
4437 ac_build_prefix=${build_alias}-
4438 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4439 set dummy ${ac_build_prefix}g++; ac_word=$2
4440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4442 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 if test -n "$BUILD_CXX"; then
4446 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4466 if test -n "$BUILD_CXX"; then
4467 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4468 echo "${ECHO_T}$BUILD_CXX" >&6; }
4470 { echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6; }
4475 if test -z "$BUILD_CXX"; then
4476 # Extract the first word of "g++", so it can be a program name with args.
4477 set dummy g++; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 if test -n "$BUILD_CXX"; then
4484 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_BUILD_CXX="g++"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4504 if test -n "$BUILD_CXX"; then
4505 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4506 echo "${ECHO_T}$BUILD_CXX" >&6; }
4508 { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4513 if test -z "$BUILD_CXX"; then
4514 # Extract the first word of "c++", so it can be a program name with args.
4515 set dummy c++; ac_word=$2
4516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4518 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 if test -n "$BUILD_CXX"; then
4522 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4532 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4533 ac_prog_rejected=yes
4536 ac_cv_prog_BUILD_CXX="c++"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 if test $ac_prog_rejected = yes; then
4545 # We found a bogon in the path, so make sure we never use it.
4546 set dummy $ac_cv_prog_BUILD_CXX
4548 if test $# != 0; then
4549 # We chose a different compiler from the bogus one.
4550 # However, it has the same basename, so the bogon will be chosen
4551 # first if we set BUILD_CXX to just the basename; use the full file name.
4553 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4558 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4559 if test -n "$BUILD_CXX"; then
4560 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4561 echo "${ECHO_T}$BUILD_CXX" >&6; }
4563 { echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6; }
4571 LLVM_CROSS_COMPILING=0
4575 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4586 # Check whether --enable-libcpp was given.
4587 if test "${enable_libcpp+set}" = set; then
4588 enableval=$enable_libcpp;
4593 case "$enableval" in
4594 yes) ENABLE_LIBCPP=1
4598 default) ENABLE_LIBCPP=0
4600 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4601 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4602 { (exit 1); exit 1; }; } ;;
4605 # Check whether --enable-compiler-version-checks was given.
4606 if test "${enable_compiler_version_checks+set}" = set; then
4607 enableval=$enable_compiler_version_checks;
4612 case "$enableval" in
4617 ac_cpp='$CXXCPP $CPPFLAGS'
4618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4622 case "$llvm_cv_cxx_compiler" in
4624 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4625 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4626 cat >conftest.$ac_ext <<_ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4633 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4634 #error This version of Clang is too old to build LLVM
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4647 grep -v '^ *+' conftest.er1 >conftest.err
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } &&
4652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4653 { (case "(($ac_try" in
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658 (eval "$ac_try") 2>&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; } &&
4662 { ac_try='test -s conftest.$ac_objext'
4663 { (case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4668 (eval "$ac_try") 2>&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; }; then
4672 { echo "$as_me:$LINENO: result: yes" >&5
4673 echo "${ECHO_T}yes" >&6; }
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4680 { { echo "$as_me:$LINENO: error:
4681 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4682 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4683 bypass these sanity checks." >&5
4684 echo "$as_me: error:
4685 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4686 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4687 bypass these sanity checks." >&2;}
4688 { (exit 1); exit 1; }; }
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 if test "$ENABLE_LIBCPP" -eq 0 ; then
4694 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4695 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4696 llvm_cv_old_cxxflags="$CXXFLAGS"
4697 CXXFLAGS="$CXXFLAGS -std=c++0x"
4698 cat >conftest.$ac_ext <<_ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4706 std::atomic<float> x(0.0f);
4707 int main() { return (float)x; }
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
4719 grep -v '^ *+' conftest.er1 >conftest.err
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4725 { (case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_try") 2>&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; } &&
4734 { ac_try='test -s conftest$ac_exeext'
4735 { (case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740 (eval "$ac_try") 2>&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 { echo "$as_me:$LINENO: result: yes" >&5
4745 echo "${ECHO_T}yes" >&6; }
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4750 { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4752 { { echo "$as_me:$LINENO: error:
4753 We detected a missing feature in the standard C++ library that was known to be
4754 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4755 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4756 than 4.7. You will need to update your system and ensure Clang uses the newer
4759 If this error is incorrect or you need to force things to work, you may pass
4760 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4761 echo "$as_me: error:
4762 We detected a missing feature in the standard C++ library that was known to be
4763 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4764 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4765 than 4.7. You will need to update your system and ensure Clang uses the newer
4768 If this error is incorrect or you need to force things to work, you may pass
4769 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4770 { (exit 1); exit 1; }; }
4773 rm -f core conftest.err conftest.$ac_objext \
4774 conftest$ac_exeext conftest.$ac_ext
4775 CXXFLAGS="$llvm_cv_old_cxxflags"
4779 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4780 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4781 cat >conftest.$ac_ext <<_ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4788 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4789 #error This version of GCC is too old to build LLVM
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4802 grep -v '^ *+' conftest.er1 >conftest.err
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4808 { (case "(($ac_try" in
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813 (eval "$ac_try") 2>&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; } &&
4817 { ac_try='test -s conftest.$ac_objext'
4818 { (case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_try") 2>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 { echo "$as_me:$LINENO: result: yes" >&5
4828 echo "${ECHO_T}yes" >&6; }
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835 { { echo "$as_me:$LINENO: error:
4836 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4837 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4838 bypass these sanity checks." >&5
4839 echo "$as_me: error:
4840 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4841 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4842 bypass these sanity checks." >&2;}
4843 { (exit 1); exit 1; }; }
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4860 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4861 { (exit 1); exit 1; }; }
4865 # Check whether --enable-cxx1y was given.
4866 if test "${enable_cxx1y+set}" = set; then
4867 enableval=$enable_cxx1y;
4872 case "$enableval" in
4877 default) ENABLE_CXX1Y=0
4879 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4880 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4881 { (exit 1); exit 1; }; } ;;
4884 # Check whether --enable-split-dwarf was given.
4885 if test "${enable_split_dwarf+set}" = set; then
4886 enableval=$enable_split_dwarf;
4891 case "$enableval" in
4892 yes) ENABLE_SPLIT_DWARF=1
4894 no) ENABLE_SPLIT_DWARF=0
4896 default) ENABLE_SPLIT_DWARF=0
4898 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4899 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4900 { (exit 1); exit 1; }; } ;;
4904 # Check whether --enable-clang-arcmt was given.
4905 if test "${enable_clang_arcmt+set}" = set; then
4906 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4911 case "$enableval" in
4912 yes) ENABLE_CLANG_ARCMT=1
4914 no) ENABLE_CLANG_ARCMT=0
4916 default) ENABLE_CLANG_ARCMT=1
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4923 clang_plugin_support="yes"
4924 # Check whether --enable-clang-plugin-support was given.
4925 if test "${enable_clang_plugin_support+set}" = set; then
4926 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4931 case "$enableval" in
4932 yes) CLANG_PLUGIN_SUPPORT=1
4934 no) CLANG_PLUGIN_SUPPORT=0
4936 default) CLANG_PLUGIN_SUPPORT=1
4938 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4939 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4940 { (exit 1); exit 1; }; } ;;
4943 clang_static_analyzer="yes"
4944 # Check whether --enable-clang-static-analyzer was given.
4945 if test "${enable_clang_static_analyzer+set}" = set; then
4946 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4951 case "$enableval" in
4952 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4955 if test ${clang_arcmt} != "no" ; then
4956 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4957 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4958 { (exit 1); exit 1; }; }
4960 ENABLE_CLANG_STATIC_ANALYZER=0
4963 default) ENABLE_CLANG_STATIC_ANALYZER=1
4965 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4967 { (exit 1); exit 1; }; } ;;
4970 # Check whether --enable-optimized was given.
4971 if test "${enable_optimized+set}" = set; then
4972 enableval=$enable_optimized;
4977 if test ${enableval} = "no" ; then
4981 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4985 # Check whether --enable-profiling was given.
4986 if test "${enable_profiling+set}" = set; then
4987 enableval=$enable_profiling;
4992 if test ${enableval} = "no" ; then
4996 ENABLE_PROFILING=ENABLE_PROFILING=1
5000 # Check whether --enable-assertions was given.
5001 if test "${enable_assertions+set}" = set; then
5002 enableval=$enable_assertions;
5007 if test ${enableval} = "yes" ; then
5010 assertions_enabled="yes"
5012 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5014 assertions_enabled="no"
5017 # Check whether --enable-werror was given.
5018 if test "${enable_werror+set}" = set; then
5019 enableval=$enable_werror;
5024 case "$enableval" in
5025 yes) ENABLE_WERROR=1
5029 default) ENABLE_WERROR=0
5031 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5032 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5033 { (exit 1); exit 1; }; } ;;
5036 # Check whether --enable-expensive-checks was given.
5037 if test "${enable_expensive_checks+set}" = set; then
5038 enableval=$enable_expensive_checks;
5043 if test ${enableval} = "yes" ; then
5044 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5046 EXPENSIVE_CHECKS=yes
5049 ENABLE_EXPENSIVE_CHECKS=
5055 # Check whether --enable-abi-breaking-checks was given.
5056 if test "${enable_abi_breaking_checks+set}" = set; then
5057 enableval=$enable_abi_breaking_checks;
5059 enableval="with-asserts"
5062 case "$enableval" in
5063 with-asserts) if test ${assertions_enabled} = "yes" ; then
5065 cat >>confdefs.h <<\_ACEOF
5066 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5069 ENABLE_ABI_BREAKING_CHECKS=1
5072 ENABLE_ABI_BREAKING_CHECKS=0
5077 cat >>confdefs.h <<\_ACEOF
5078 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5081 ENABLE_ABI_BREAKING_CHECKS=1
5085 ENABLE_ABI_BREAKING_CHECKS=0
5088 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5
5089 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5090 { (exit 1); exit 1; }; }
5093 # Check whether --enable-debug-runtime was given.
5094 if test "${enable_debug_runtime+set}" = set; then
5095 enableval=$enable_debug_runtime;
5100 if test ${enableval} = "no" ; then
5104 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5108 # Check whether --enable-debug-symbols was given.
5109 if test "${enable_debug_symbols+set}" = set; then
5110 enableval=$enable_debug_symbols;
5115 if test ${enableval} = "no" ; then
5119 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5123 # Check whether --enable-keep-symbols was given.
5124 if test "${enable_keep_symbols+set}" = set; then
5125 enableval=$enable_keep_symbols;
5130 if test ${enableval} = "no" ; then
5134 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5138 # Check whether --enable-jit was given.
5139 if test "${enable_jit+set}" = set; then
5140 enableval=$enable_jit;
5145 if test ${enableval} = "no"
5150 case "$llvm_cv_target_arch" in
5151 x86) TARGET_HAS_JIT=1
5153 Sparc) TARGET_HAS_JIT=0
5155 PowerPC) TARGET_HAS_JIT=1
5157 x86_64) TARGET_HAS_JIT=1
5159 ARM) TARGET_HAS_JIT=1
5161 Mips) TARGET_HAS_JIT=1
5163 XCore) TARGET_HAS_JIT=0
5165 MSP430) TARGET_HAS_JIT=0
5167 Hexagon) TARGET_HAS_JIT=0
5169 NVPTX) TARGET_HAS_JIT=0
5171 SystemZ) TARGET_HAS_JIT=1
5178 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5179 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5182 # Check whether --enable-docs was given.
5183 if test "${enable_docs+set}" = set; then
5184 enableval=$enable_docs;
5189 case "$enableval" in
5194 default) ENABLE_DOCS=1
5196 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5197 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5198 { (exit 1); exit 1; }; } ;;
5201 # Check whether --enable-doxygen was given.
5202 if test "${enable_doxygen+set}" = set; then
5203 enableval=$enable_doxygen;
5208 case "$enableval" in
5209 yes) ENABLE_DOXYGEN=1
5211 no|default) ENABLE_DOXYGEN=0
5213 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5215 { (exit 1); exit 1; }; } ;;
5218 # Check whether --enable-doxygen-search was given.
5219 if test "${enable_doxygen_search+set}" = set; then
5220 enableval=$enable_doxygen_search;
5225 ENABLE_DOXYGEN_SEARCH="$enableval"
5227 case "$enableval" in
5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
5234 # Check whether --enable-doxygen-external-search was given.
5235 if test "${enable_doxygen_external_search+set}" = set; then
5236 enableval=$enable_doxygen_external_search;
5241 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5243 case "$enableval" in
5245 case "$ENABLE_DOXYGEN_SEARCH" in
5246 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5247 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5248 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5249 { (exit 1); exit 1; }; } ;;
5253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; } ;;
5259 # Check whether --with-doxygen-search-engine-url was given.
5260 if test "${with_doxygen_search_engine_url+set}" = set; then
5261 withval=$with_doxygen_search_engine_url;
5264 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5267 # Check whether --with-doxygen-search-mappings was given.
5268 if test "${with_doxygen_search_mappings+set}" = set; then
5269 withval=$with_doxygen_search_mappings;
5272 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5274 case "$ENABLE_DOXYGEN_SEARCH" in
5276 if test "$ENABLE_DOXYGEN" = "0" ; then
5277 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5278 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5279 { (exit 1); exit 1; }; }
5282 enable_searchengine=YES
5285 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5287 enable_external_search=YES
5289 enable_server_based_search=YES
5291 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5293 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5298 enable_external_search=NO
5300 enable_server_based_search=NO
5309 enable_searchengine=NO
5312 enable_server_based_search=NO
5314 enable_external_search=NO
5320 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5321 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5322 { (exit 1); exit 1; }; }
5326 # Check whether --enable-doxygen-qt-help was given.
5327 if test "${enable_doxygen_qt_help+set}" = set; then
5328 enableval=$enable_doxygen_qt_help;
5333 case "$enableval" in
5335 if test "$ENABLE_DOXYGEN" = "0" ; then
5336 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5337 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5338 { (exit 1); exit 1; }; }
5341 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5342 set dummy qhelpgenerator; ac_word=$2
5343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5345 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 case $QHELPGENERATOR in
5350 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5372 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5373 if test -n "$QHELPGENERATOR"; then
5374 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5375 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5377 { echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6; }
5383 llvm_doxygen_generate_qhp=YES
5385 llvm_doxygen_qch_filename=org.llvm.qch
5387 llvm_doxygen_qhp_namespace=org.llvm
5389 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5391 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5393 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5396 clang_doxygen_generate_qhp=YES
5398 clang_doxygen_qch_filename=org.llvm.clang.qch
5400 clang_doxygen_qhp_namespace=org.llvm.clang
5402 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5404 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5406 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5411 llvm_doxygen_generate_qhp=NO
5419 clang_doxygen_generate_qhp=NO
5424 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5426 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5431 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5432 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5433 { (exit 1); exit 1; }; } ;;
5436 # Check whether --enable-threads was given.
5437 if test "${enable_threads+set}" = set; then
5438 enableval=$enable_threads;
5443 case "$enableval" in
5444 yes) LLVM_ENABLE_THREADS=1
5446 no) LLVM_ENABLE_THREADS=0
5448 default) LLVM_ENABLE_THREADS=1
5450 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5451 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5452 { (exit 1); exit 1; }; } ;;
5455 cat >>confdefs.h <<_ACEOF
5456 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5460 # Check whether --enable-pthreads was given.
5461 if test "${enable_pthreads+set}" = set; then
5462 enableval=$enable_pthreads;
5467 case "$enableval" in
5468 yes) ENABLE_PTHREADS=1
5470 no) ENABLE_PTHREADS=0
5472 default) ENABLE_PTHREADS=1
5474 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5475 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5476 { (exit 1); exit 1; }; } ;;
5479 # Check whether --enable-zlib was given.
5480 if test "${enable_zlib+set}" = set; then
5481 enableval=$enable_zlib;
5486 case "$enableval" in
5487 yes) LLVM_ENABLE_ZLIB=1
5489 no) LLVM_ENABLE_ZLIB=0
5491 default) LLVM_ENABLE_ZLIB=1
5493 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5494 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5495 { (exit 1); exit 1; }; } ;;
5498 cat >>confdefs.h <<_ACEOF
5499 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5503 # Check whether --enable-pic was given.
5504 if test "${enable_pic+set}" = set; then
5505 enableval=$enable_pic;
5510 case "$enableval" in
5515 default) ENABLE_PIC=1
5517 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5518 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5519 { (exit 1); exit 1; }; } ;;
5522 cat >>confdefs.h <<_ACEOF
5523 #define ENABLE_PIC $ENABLE_PIC
5527 # Check whether --enable-shared was given.
5528 if test "${enable_shared+set}" = set; then
5529 enableval=$enable_shared;
5534 case "$enableval" in
5535 yes) ENABLE_SHARED=1
5539 default) ENABLE_SHARED=0
5541 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5542 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5543 { (exit 1); exit 1; }; } ;;
5546 # Check whether --enable-embed-stdcxx was given.
5547 if test "${enable_embed_stdcxx+set}" = set; then
5548 enableval=$enable_embed_stdcxx;
5553 case "$enableval" in
5554 yes) ENABLE_EMBED_STDCXX=1
5556 no) ENABLE_EMBED_STDCXX=0
5558 default) ENABLE_EMBED_STDCXX=0
5560 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5561 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5562 { (exit 1); exit 1; }; } ;;
5565 # Check whether --enable-timestamps was given.
5566 if test "${enable_timestamps+set}" = set; then
5567 enableval=$enable_timestamps;
5572 case "$enableval" in
5573 yes) ENABLE_TIMESTAMPS=1
5575 no) ENABLE_TIMESTAMPS=0
5577 default) ENABLE_TIMESTAMPS=1
5579 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5580 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5581 { (exit 1); exit 1; }; } ;;
5584 cat >>confdefs.h <<_ACEOF
5585 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5589 # Check whether --enable-backtraces was given.
5590 if test "${enable_backtraces+set}" = set; then
5591 enableval=$enable_backtraces; case "$enableval" in
5592 yes) llvm_cv_enable_backtraces="yes" ;;
5593 no) llvm_cv_enable_backtraces="no" ;;
5594 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5595 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5596 { (exit 1); exit 1; }; } ;;
5599 llvm_cv_enable_backtraces="yes"
5602 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5604 cat >>confdefs.h <<\_ACEOF
5605 #define ENABLE_BACKTRACES 1
5610 # Check whether --enable-crash-overrides was given.
5611 if test "${enable_crash_overrides+set}" = set; then
5612 enableval=$enable_crash_overrides; case "$enableval" in
5613 yes) llvm_cv_enable_crash_overrides="yes" ;;
5614 no) llvm_cv_enable_crash_overrides="no" ;;
5615 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5616 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5617 { (exit 1); exit 1; }; } ;;
5620 llvm_cv_enable_crash_overrides="yes"
5623 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5625 cat >>confdefs.h <<\_ACEOF
5626 #define ENABLE_CRASH_OVERRIDES 1
5631 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ AMDGPU BPF"
5632 ALL_TARGETS=$ALL_TARGETS
5636 # Check whether --enable-targets was given.
5637 if test "${enable_targets+set}" = set; then
5638 enableval=$enable_targets;
5643 if test "$enableval" = host-only ; then
5646 case "$enableval" in
5647 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5648 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5650 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5651 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5652 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5653 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5654 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5655 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5656 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5657 bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
5658 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5659 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5660 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5661 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5662 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5663 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5664 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5665 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5666 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5667 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5668 amdgpu) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5669 r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5670 host) case "$llvm_cv_target_arch" in
5671 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5672 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5673 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5674 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5675 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5676 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5677 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5678 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5679 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5680 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5681 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5682 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5683 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5684 echo "$as_me: error: Can not set target to build" >&2;}
5685 { (exit 1); exit 1; }; } ;;
5687 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5688 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5689 { (exit 1); exit 1; }; } ;;
5695 # Check whether --enable-experimental-targets was given.
5696 if test "${enable_experimental_targets+set}" = set; then
5697 enableval=$enable_experimental_targets;
5703 if test ${enableval} != "disable"
5705 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5708 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5711 for a_target in $TARGETS_TO_BUILD; do
5712 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5714 cat >>confdefs.h <<_ACEOF
5715 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5718 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5719 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5720 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5721 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5722 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5723 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5725 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5726 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5729 cat >>confdefs.h <<_ACEOF
5730 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5734 cat >>confdefs.h <<_ACEOF
5735 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5739 cat >>confdefs.h <<_ACEOF
5740 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5744 cat >>confdefs.h <<_ACEOF
5745 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5748 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5750 cat >>confdefs.h <<_ACEOF
5751 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5755 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5757 cat >>confdefs.h <<_ACEOF
5758 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5765 LLVM_ENUM_TARGETS=""
5766 LLVM_ENUM_ASM_PRINTERS=""
5767 LLVM_ENUM_ASM_PARSERS=""
5768 LLVM_ENUM_DISASSEMBLERS=""
5769 for target_to_build in $TARGETS_TO_BUILD; do
5770 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5771 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5772 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5774 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5775 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5777 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5778 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5787 # Check whether --with-optimize-option was given.
5788 if test "${with_optimize_option+set}" = set; then
5789 withval=$with_optimize_option;
5794 { echo "$as_me:$LINENO: checking optimization flags" >&5
5795 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5798 case "$llvm_cv_os_type" in
5799 FreeBSD) optimize_option=-O2 ;;
5800 MingW) optimize_option=-O2 ;;
5801 *) optimize_option=-O3 ;;
5803 *) optimize_option="$withval" ;;
5805 OPTIMIZE_OPTION=$optimize_option
5807 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5808 echo "${ECHO_T}$optimize_option" >&6; }
5811 # Check whether --with-extra-options was given.
5812 if test "${with_extra_options+set}" = set; then
5813 withval=$with_extra_options;
5819 default) EXTRA_OPTIONS= ;;
5820 *) EXTRA_OPTIONS=$withval ;;
5822 EXTRA_OPTIONS=$EXTRA_OPTIONS
5826 # Check whether --with-extra-ld-options was given.
5827 if test "${with_extra_ld_options+set}" = set; then
5828 withval=$with_extra_ld_options;
5834 default) EXTRA_LD_OPTIONS= ;;
5835 *) EXTRA_LD_OPTIONS=$withval ;;
5837 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5840 # Check whether --enable-bindings was given.
5841 if test "${enable_bindings+set}" = set; then
5842 enableval=$enable_bindings;
5847 BINDINGS_TO_BUILD=""
5848 case "$enableval" in
5849 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5850 all ) BINDINGS_TO_BUILD="ocaml" ;;
5851 none | no) BINDINGS_TO_BUILD="" ;;
5852 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5853 case "$a_binding" in
5854 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5855 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5856 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5857 { (exit 1); exit 1; }; } ;;
5864 # Check whether --with-ocaml-libdir was given.
5865 if test "${with_ocaml_libdir+set}" = set; then
5866 withval=$with_ocaml_libdir;
5872 auto) with_ocaml_libdir="$withval" ;;
5873 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5874 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5875 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5876 { (exit 1); exit 1; }; } ;;
5880 # Check whether --with-clang-srcdir was given.
5881 if test "${with_clang_srcdir+set}" = set; then
5882 withval=$with_clang_srcdir;
5888 -) clang_src_root="" ;;
5889 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5890 *) clang_src_root="$ac_pwd/$withval" ;;
5892 CLANG_SRC_ROOT=$clang_src_root
5896 # Check whether --with-clang-resource-dir was given.
5897 if test "${with_clang_resource_dir+set}" = set; then
5898 withval=$with_clang_resource_dir;
5904 cat >>confdefs.h <<_ACEOF
5905 #define CLANG_RESOURCE_DIR "$withval"
5910 # Check whether --with-c-include-dirs was given.
5911 if test "${with_c_include_dirs+set}" = set; then
5912 withval=$with_c_include_dirs;
5918 cat >>confdefs.h <<_ACEOF
5919 #define C_INCLUDE_DIRS "$withval"
5923 # Clang normally uses the system c++ headers and libraries. With this option,
5924 # clang will use the ones provided by a gcc installation instead. This option should
5925 # be passed the same value that was used with --prefix when configuring gcc.
5927 # Check whether --with-gcc-toolchain was given.
5928 if test "${with_gcc_toolchain+set}" = set; then
5929 withval=$with_gcc_toolchain;
5935 cat >>confdefs.h <<_ACEOF
5936 #define GCC_INSTALL_PREFIX "$withval"
5941 # Check whether --with-default-sysroot was given.
5942 if test "${with_default_sysroot+set}" = set; then
5943 withval=$with_default_sysroot;
5949 cat >>confdefs.h <<_ACEOF
5950 #define DEFAULT_SYSROOT "$withval"
5955 # Check whether --with-clang-default-openmp-runtime was given.
5956 if test "${with_clang_default_openmp_runtime+set}" = set; then
5957 withval=$with_clang_default_openmp_runtime;
5963 cat >>confdefs.h <<_ACEOF
5964 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5969 # Check whether --with-binutils-include was given.
5970 if test "${with_binutils_include+set}" = set; then
5971 withval=$with_binutils_include;
5977 default) WITH_BINUTILS_INCDIR=default ;;
5978 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5979 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5980 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5981 { (exit 1); exit 1; }; } ;;
5983 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5984 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5986 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5987 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5988 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5989 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5990 { (exit 1); exit 1; }; };
5995 # Check whether --with-bug-report-url was given.
5996 if test "${with_bug_report_url+set}" = set; then
5997 withval=$with_bug_report_url;
5999 withval="http://llvm.org/bugs/"
6003 cat >>confdefs.h <<_ACEOF
6004 #define BUG_REPORT_URL "$withval"
6008 # Check whether --enable-terminfo was given.
6009 if test "${enable_terminfo+set}" = set; then
6010 enableval=$enable_terminfo; case "$enableval" in
6011 yes) llvm_cv_enable_terminfo="yes" ;;
6012 no) llvm_cv_enable_terminfo="no" ;;
6013 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6014 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6015 { (exit 1); exit 1; }; } ;;
6018 llvm_cv_enable_terminfo="yes"
6021 case "$llvm_cv_enable_terminfo" in
6022 yes) ENABLE_TERMINFO=1
6024 no) ENABLE_TERMINFO=0
6028 # Check whether --enable-libedit was given.
6029 if test "${enable_libedit+set}" = set; then
6030 enableval=$enable_libedit; case "$enableval" in
6031 yes) llvm_cv_enable_libedit="yes" ;;
6032 no) llvm_cv_enable_libedit="no" ;;
6033 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6034 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6035 { (exit 1); exit 1; }; } ;;
6038 llvm_cv_enable_libedit="yes"
6042 # Check whether --enable-libffi was given.
6043 if test "${enable_libffi+set}" = set; then
6044 enableval=$enable_libffi; case "$enableval" in
6045 yes) llvm_cv_enable_libffi="yes" ;;
6046 no) llvm_cv_enable_libffi="no" ;;
6047 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6048 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6049 { (exit 1); exit 1; }; } ;;
6052 llvm_cv_enable_libffi=no
6057 # Check whether --with-internal-prefix was given.
6058 if test "${with_internal_prefix+set}" = set; then
6059 withval=$with_internal_prefix;
6064 INTERNAL_PREFIX=$withval
6068 { echo "$as_me:$LINENO: checking for GNU make" >&5
6069 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6070 if test "${llvm_cv_gnu_make_command+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 llvm_cv_gnu_make_command=''
6074 for a in "$MAKE" make gmake gnumake ; do
6075 if test -z "$a" ; then continue ; fi ;
6076 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6078 llvm_cv_gnu_make_command=$a ;
6083 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6084 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6085 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6089 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6090 echo "${ECHO_T}\"Not found\"" >&6; };
6094 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6095 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6097 if test "$LN_S" = "ln -s"; then
6098 { echo "$as_me:$LINENO: result: yes" >&5
6099 echo "${ECHO_T}yes" >&6; }
6101 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6102 echo "${ECHO_T}no, using $LN_S" >&6; }
6105 # Extract the first word of "nm", so it can be a program name with args.
6106 set dummy nm; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_NM+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 ac_cv_path_NM="$NM" # Let the user override the test with a path.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6137 if test -n "$NM"; then
6138 { echo "$as_me:$LINENO: result: $NM" >&5
6139 echo "${ECHO_T}$NM" >&6; }
6141 { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6146 # Extract the first word of "cmp", so it can be a program name with args.
6147 set dummy cmp; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_path_CMP+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6178 if test -n "$CMP"; then
6179 { echo "$as_me:$LINENO: result: $CMP" >&5
6180 echo "${ECHO_T}$CMP" >&6; }
6182 { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6187 # Extract the first word of "cp", so it can be a program name with args.
6188 set dummy cp; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_path_CP+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6219 if test -n "$CP"; then
6220 { echo "$as_me:$LINENO: result: $CP" >&5
6221 echo "${ECHO_T}$CP" >&6; }
6223 { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6228 # Extract the first word of "date", so it can be a program name with args.
6229 set dummy date; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_path_DATE+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6259 DATE=$ac_cv_path_DATE
6260 if test -n "$DATE"; then
6261 { echo "$as_me:$LINENO: result: $DATE" >&5
6262 echo "${ECHO_T}$DATE" >&6; }
6264 { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6269 # Extract the first word of "find", so it can be a program name with args.
6270 set dummy find; ac_word=$2
6271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273 if test "${ac_cv_path_FIND+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6300 FIND=$ac_cv_path_FIND
6301 if test -n "$FIND"; then
6302 { echo "$as_me:$LINENO: result: $FIND" >&5
6303 echo "${ECHO_T}$FIND" >&6; }
6305 { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6310 # Extract the first word of "grep", so it can be a program name with args.
6311 set dummy grep; ac_word=$2
6312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314 if test "${ac_cv_path_GREP+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6341 GREP=$ac_cv_path_GREP
6342 if test -n "$GREP"; then
6343 { echo "$as_me:$LINENO: result: $GREP" >&5
6344 echo "${ECHO_T}$GREP" >&6; }
6346 { echo "$as_me:$LINENO: result: no" >&5
6347 echo "${ECHO_T}no" >&6; }
6351 # Extract the first word of "mkdir", so it can be a program name with args.
6352 set dummy mkdir; ac_word=$2
6353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355 if test "${ac_cv_path_MKDIR+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6382 MKDIR=$ac_cv_path_MKDIR
6383 if test -n "$MKDIR"; then
6384 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6385 echo "${ECHO_T}$MKDIR" >&6; }
6387 { echo "$as_me:$LINENO: result: no" >&5
6388 echo "${ECHO_T}no" >&6; }
6392 # Extract the first word of "mv", so it can be a program name with args.
6393 set dummy mv; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_path_MV+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6424 if test -n "$MV"; then
6425 { echo "$as_me:$LINENO: result: $MV" >&5
6426 echo "${ECHO_T}$MV" >&6; }
6428 { echo "$as_me:$LINENO: result: no" >&5
6429 echo "${ECHO_T}no" >&6; }
6433 if test -n "$ac_tool_prefix"; then
6434 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6435 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6438 if test "${ac_cv_prog_RANLIB+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 if test -n "$RANLIB"; then
6442 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6451 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 RANLIB=$ac_cv_prog_RANLIB
6462 if test -n "$RANLIB"; then
6463 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6464 echo "${ECHO_T}$RANLIB" >&6; }
6466 { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6472 if test -z "$ac_cv_prog_RANLIB"; then
6473 ac_ct_RANLIB=$RANLIB
6474 # Extract the first word of "ranlib", so it can be a program name with args.
6475 set dummy ranlib; ac_word=$2
6476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6478 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 if test -n "$ac_ct_RANLIB"; then
6482 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_ac_ct_RANLIB="ranlib"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6502 if test -n "$ac_ct_RANLIB"; then
6503 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6504 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6506 { echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6; }
6510 if test "x$ac_ct_RANLIB" = x; then
6513 case $cross_compiling:$ac_tool_warned in
6515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6516 whose name does not start with the host triplet. If you think this
6517 configuration is useful to you, please write to autoconf@gnu.org." >&5
6518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6519 whose name does not start with the host triplet. If you think this
6520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6521 ac_tool_warned=yes ;;
6523 RANLIB=$ac_ct_RANLIB
6526 RANLIB="$ac_cv_prog_RANLIB"
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}ar; ac_word=$2
6532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534 if test "${ac_cv_prog_AR+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 if test -n "$AR"; then
6538 ac_cv_prog_AR="$AR" # Let the user override the test.
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_prog_AR="${ac_tool_prefix}ar"
6548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 if test -n "$AR"; then
6559 { echo "$as_me:$LINENO: result: $AR" >&5
6560 echo "${ECHO_T}$AR" >&6; }
6562 { echo "$as_me:$LINENO: result: no" >&5
6563 echo "${ECHO_T}no" >&6; }
6568 if test -z "$ac_cv_prog_AR"; then
6570 # Extract the first word of "ar", so it can be a program name with args.
6571 set dummy ar; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 if test -n "$ac_ct_AR"; then
6578 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_AR="ar"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6598 if test -n "$ac_ct_AR"; then
6599 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6600 echo "${ECHO_T}$ac_ct_AR" >&6; }
6602 { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6606 if test "x$ac_ct_AR" = x; then
6609 case $cross_compiling:$ac_tool_warned in
6611 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6612 whose name does not start with the host triplet. If you think this
6613 configuration is useful to you, please write to autoconf@gnu.org." >&5
6614 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6615 whose name does not start with the host triplet. If you think this
6616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6617 ac_tool_warned=yes ;;
6625 # Extract the first word of "rm", so it can be a program name with args.
6626 set dummy rm; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_RM+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6657 if test -n "$RM"; then
6658 { echo "$as_me:$LINENO: result: $RM" >&5
6659 echo "${ECHO_T}$RM" >&6; }
6661 { echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6; }
6666 # Extract the first word of "sed", so it can be a program name with args.
6667 set dummy sed; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_path_SED+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6698 if test -n "$SED"; then
6699 { echo "$as_me:$LINENO: result: $SED" >&5
6700 echo "${ECHO_T}$SED" >&6; }
6702 { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6707 # Extract the first word of "tar", so it can be a program name with args.
6708 set dummy tar; ac_word=$2
6709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711 if test "${ac_cv_path_TAR+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6739 if test -n "$TAR"; then
6740 { echo "$as_me:$LINENO: result: $TAR" >&5
6741 echo "${ECHO_T}$TAR" >&6; }
6743 { echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6; }
6748 # Extract the first word of "pwd", so it can be a program name with args.
6749 set dummy pwd; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_BINPWD+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6779 BINPWD=$ac_cv_path_BINPWD
6780 if test -n "$BINPWD"; then
6781 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6782 echo "${ECHO_T}$BINPWD" >&6; }
6784 { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6790 # Extract the first word of "dot", so it can be a program name with args.
6791 set dummy dot; ac_word=$2
6792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794 if test "${ac_cv_path_DOT+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6822 if test -n "$DOT"; then
6823 { echo "$as_me:$LINENO: result: $DOT" >&5
6824 echo "${ECHO_T}$DOT" >&6; }
6826 { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6831 if test "$DOT" != "echo dot" ; then
6833 cat >>confdefs.h <<\_ACEOF
6837 if test "$llvm_cv_os_type" = "MingW" ; then
6838 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6841 cat >>confdefs.h <<_ACEOF
6842 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6847 # Find a good install program. We prefer a C program (faster),
6848 # so one script is as good as another. But avoid the broken or
6849 # incompatible versions:
6850 # SysV /etc/install, /usr/sbin/install
6851 # SunOS /usr/etc/install
6852 # IRIX /sbin/install
6854 # AmigaOS /C/install, which installs bootblocks on floppy discs
6855 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6856 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6857 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6858 # OS/2's system install, which has a completely different semantic
6859 # ./install, which can be erroneously created by make from ./install.sh.
6860 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6861 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6862 if test -z "$INSTALL"; then
6863 if test "${ac_cv_path_install+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir=.
6871 # Account for people who put trailing slashes in PATH elements.
6873 ./ | .// | /cC/* | \
6874 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6875 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6878 # OSF1 and SCO ODT 3.0 have their own names for install.
6879 # Don't use installbsd from OSF since it installs stuff as root
6881 for ac_prog in ginstall scoinst install; do
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6884 if test $ac_prog = install &&
6885 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6886 # AIX install. It has an incompatible calling convention.
6888 elif test $ac_prog = install &&
6889 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6890 # program-specific install script used by HP pwplus--don't use.
6893 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6906 if test "${ac_cv_path_install+set}" = set; then
6907 INSTALL=$ac_cv_path_install
6909 # As a last resort, use the slow shell script. Don't cache a
6910 # value for INSTALL within a source directory, because that will
6911 # break other packages using the cache if that directory is
6912 # removed, or if the value is a relative name.
6913 INSTALL=$ac_install_sh
6916 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6917 echo "${ECHO_T}$INSTALL" >&6; }
6919 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6920 # It thinks the first close brace ends the variable substitution.
6921 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6923 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6925 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6928 [\\/$]* | ?:[\\/]* ) ;;
6929 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6932 # Extract the first word of "bzip2", so it can be a program name with args.
6933 set dummy bzip2; ac_word=$2
6934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6936 if test "${ac_cv_path_BZIP2+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6951 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 BZIP2=$ac_cv_path_BZIP2
6963 if test -n "$BZIP2"; then
6964 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6965 echo "${ECHO_T}$BZIP2" >&6; }
6967 { echo "$as_me:$LINENO: result: no" >&5
6968 echo "${ECHO_T}no" >&6; }
6972 # Extract the first word of "cat", so it can be a program name with args.
6973 set dummy cat; ac_word=$2
6974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6976 if test "${ac_cv_path_CAT+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6991 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 if test -n "$CAT"; then
7004 { echo "$as_me:$LINENO: result: $CAT" >&5
7005 echo "${ECHO_T}$CAT" >&6; }
7007 { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7012 # Extract the first word of "doxygen", so it can be a program name with args.
7013 set dummy doxygen; ac_word=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 DOXYGEN=$ac_cv_path_DOXYGEN
7043 if test -n "$DOXYGEN"; then
7044 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7045 echo "${ECHO_T}$DOXYGEN" >&6; }
7047 { echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6; }
7052 # Extract the first word of "groff", so it can be a program name with args.
7053 set dummy groff; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_path_GROFF+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 GROFF=$ac_cv_path_GROFF
7083 if test -n "$GROFF"; then
7084 { echo "$as_me:$LINENO: result: $GROFF" >&5
7085 echo "${ECHO_T}$GROFF" >&6; }
7087 { echo "$as_me:$LINENO: result: no" >&5
7088 echo "${ECHO_T}no" >&6; }
7092 # Extract the first word of "gzip", so it can be a program name with args.
7093 set dummy gzip; ac_word=$2
7094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7096 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 GZIPBIN=$ac_cv_path_GZIPBIN
7123 if test -n "$GZIPBIN"; then
7124 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7125 echo "${ECHO_T}$GZIPBIN" >&6; }
7127 { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7132 # Extract the first word of "pdfroff", so it can be a program name with args.
7133 set dummy pdfroff; ac_word=$2
7134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7136 if test "${ac_cv_path_PDFROFF+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 PDFROFF=$ac_cv_path_PDFROFF
7163 if test -n "$PDFROFF"; then
7164 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7165 echo "${ECHO_T}$PDFROFF" >&6; }
7167 { echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6; }
7172 # Extract the first word of "zip", so it can be a program name with args.
7173 set dummy zip; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_path_ZIP+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 if test -n "$ZIP"; then
7204 { echo "$as_me:$LINENO: result: $ZIP" >&5
7205 echo "${ECHO_T}$ZIP" >&6; }
7207 { echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6; }
7212 # Extract the first word of "go", so it can be a program name with args.
7213 set dummy go; ac_word=$2
7214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216 if test "${ac_cv_path_GO+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 ac_cv_path_GO="$GO" # Let the user override the test with a path.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7231 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 if test -n "$GO"; then
7244 { echo "$as_me:$LINENO: result: $GO" >&5
7245 echo "${ECHO_T}$GO" >&6; }
7247 { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7252 for ac_prog in ocamlfind
7254 # Extract the first word of "$ac_prog", so it can be a program name with args.
7255 set dummy $ac_prog; ac_word=$2
7256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7258 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 test -z "$as_dir" && as_dir=.
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7273 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 OCAMLFIND=$ac_cv_path_OCAMLFIND
7285 if test -n "$OCAMLFIND"; then
7286 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7287 echo "${ECHO_T}$OCAMLFIND" >&6; }
7289 { echo "$as_me:$LINENO: result: no" >&5
7290 echo "${ECHO_T}no" >&6; }
7294 test -n "$OCAMLFIND" && break
7297 for ac_prog in gas as
7299 # Extract the first word of "$ac_prog", so it can be a program name with args.
7300 set dummy $ac_prog; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_GAS+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 if test -n "$GAS"; then
7331 { echo "$as_me:$LINENO: result: $GAS" >&5
7332 echo "${ECHO_T}$GAS" >&6; }
7334 { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7339 test -n "$GAS" && break
7343 { echo "$as_me:$LINENO: checking for linker version" >&5
7344 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7345 if test "${llvm_cv_link_version+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7352 if (echo "$version_string" | grep -q "ld64"); then
7353 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7355 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7359 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7360 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7362 cat >>confdefs.h <<_ACEOF
7363 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7369 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7370 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7371 if test "${llvm_cv_link_use_r+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7381 CFLAGS="$CFLAGS -Wl,-R."
7382 cat >conftest.$ac_ext <<_ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7397 rm -f conftest.$ac_objext conftest$ac_exeext
7398 if { (ac_try="$ac_link"
7400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401 *) ac_try_echo=$ac_try;;
7403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7404 (eval "$ac_link") 2>conftest.er1
7406 grep -v '^ *+' conftest.er1 >conftest.err
7408 cat conftest.err >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } &&
7411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7412 { (case "(($ac_try" in
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417 (eval "$ac_try") 2>&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; } &&
7421 { ac_try='test -s conftest$ac_exeext'
7422 { (case "(($ac_try" in
7423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7424 *) ac_try_echo=$ac_try;;
7426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7427 (eval "$ac_try") 2>&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; }; then
7431 llvm_cv_link_use_r=yes
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7436 llvm_cv_link_use_r=no
7439 rm -f core conftest.err conftest.$ac_objext \
7440 conftest$ac_exeext conftest.$ac_ext
7443 ac_cpp='$CPP $CPPFLAGS'
7444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7450 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7451 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7452 if test "$llvm_cv_link_use_r" = yes ; then
7454 cat >>confdefs.h <<\_ACEOF
7455 #define HAVE_LINK_R 1
7461 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7462 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7463 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 ac_cpp='$CPP $CPPFLAGS'
7468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7473 CFLAGS="$CFLAGS -rdynamic"
7474 cat >conftest.$ac_ext <<_ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7489 rm -f conftest.$ac_objext conftest$ac_exeext
7490 if { (ac_try="$ac_link"
7492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493 *) ac_try_echo=$ac_try;;
7495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496 (eval "$ac_link") 2>conftest.er1
7498 grep -v '^ *+' conftest.er1 >conftest.err
7500 cat conftest.err >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } &&
7503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7504 { (case "(($ac_try" in
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7509 (eval "$ac_try") 2>&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; } &&
7513 { ac_try='test -s conftest$ac_exeext'
7514 { (case "(($ac_try" in
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_try") 2>&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 llvm_cv_link_use_export_dynamic=yes
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7528 llvm_cv_link_use_export_dynamic=no
7531 rm -f core conftest.err conftest.$ac_objext \
7532 conftest$ac_exeext conftest.$ac_ext
7535 ac_cpp='$CPP $CPPFLAGS'
7536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7542 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7543 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7544 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7546 cat >>confdefs.h <<\_ACEOF
7547 #define HAVE_LINK_EXPORT_DYNAMIC 1
7553 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7554 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7555 if test "${llvm_cv_link_use_version_script+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 ac_cpp='$CPP $CPPFLAGS'
7560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7566 # The following code is from the autoconf manual,
7567 # "11.13: Limitations of Usual Tools".
7568 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7569 # Use mktemp if possible; otherwise fall back on mkdir,
7570 # with $RANDOM to make collisions less likely.
7574 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7576 test -n "$tmp" && test -d "$tmp"
7578 tmp=$TMPDIR/foo$$-$RANDOM
7579 (umask 077 && mkdir "$tmp")
7582 echo "{" > "$tmp/export.map"
7583 echo " global: main;" >> "$tmp/export.map"
7584 echo " local: *;" >> "$tmp/export.map"
7585 echo "};" >> "$tmp/export.map"
7587 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7588 cat >conftest.$ac_ext <<_ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (ac_try="$ac_link"
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_link") 2>conftest.er1
7612 grep -v '^ *+' conftest.er1 >conftest.err
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } &&
7617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7618 { (case "(($ac_try" in
7619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620 *) ac_try_echo=$ac_try;;
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623 (eval "$ac_try") 2>&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; } &&
7627 { ac_try='test -s conftest$ac_exeext'
7628 { (case "(($ac_try" in
7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7633 (eval "$ac_try") 2>&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 llvm_cv_link_use_version_script=yes
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7642 llvm_cv_link_use_version_script=no
7645 rm -f core conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7647 rm "$tmp/export.map"
7651 ac_cpp='$CPP $CPPFLAGS'
7652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7659 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7660 if test "$llvm_cv_link_use_version_script" = yes ; then
7661 HAVE_LINK_VERSION_SCRIPT=1
7667 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7668 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7669 if test "${ac_cv_path_GREP+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 # Extract the first word of "grep ggrep" to use in msg output
7673 if test -z "$GREP"; then
7674 set dummy grep ggrep; ac_prog_name=$2
7675 if test "${ac_cv_path_GREP+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 ac_path_GREP_found=false
7679 # Loop through the user's path and test for each of PROGNAME-LIST
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7684 test -z "$as_dir" && as_dir=.
7685 for ac_prog in grep ggrep; do
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7688 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7689 # Check for GNU ac_path_GREP and select it if it is found.
7690 # Check for GNU $ac_path_GREP
7691 case `"$ac_path_GREP" --version 2>&1` in
7693 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7696 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7699 cat "conftest.in" "conftest.in" >"conftest.tmp"
7700 mv "conftest.tmp" "conftest.in"
7701 cp "conftest.in" "conftest.nl"
7702 echo 'GREP' >> "conftest.nl"
7703 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7705 ac_count=`expr $ac_count + 1`
7706 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7707 # Best one so far, save it but keep looking for a better one
7708 ac_cv_path_GREP="$ac_path_GREP"
7709 ac_path_GREP_max=$ac_count
7711 # 10*(2^10) chars as input seems more than enough
7712 test $ac_count -gt 10 && break
7714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7718 $ac_path_GREP_found && break 3
7728 GREP="$ac_cv_path_GREP"
7729 if test -z "$GREP"; then
7730 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7731 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7732 { (exit 1); exit 1; }; }
7736 ac_cv_path_GREP=$GREP
7741 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7742 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7743 GREP="$ac_cv_path_GREP"
7746 { echo "$as_me:$LINENO: checking for egrep" >&5
7747 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7748 if test "${ac_cv_path_EGREP+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7752 then ac_cv_path_EGREP="$GREP -E"
7754 # Extract the first word of "egrep" to use in msg output
7755 if test -z "$EGREP"; then
7756 set dummy egrep; ac_prog_name=$2
7757 if test "${ac_cv_path_EGREP+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 ac_path_EGREP_found=false
7761 # Loop through the user's path and test for each of PROGNAME-LIST
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7766 test -z "$as_dir" && as_dir=.
7767 for ac_prog in egrep; do
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7770 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7771 # Check for GNU ac_path_EGREP and select it if it is found.
7772 # Check for GNU $ac_path_EGREP
7773 case `"$ac_path_EGREP" --version 2>&1` in
7775 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7778 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7781 cat "conftest.in" "conftest.in" >"conftest.tmp"
7782 mv "conftest.tmp" "conftest.in"
7783 cp "conftest.in" "conftest.nl"
7784 echo 'EGREP' >> "conftest.nl"
7785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7787 ac_count=`expr $ac_count + 1`
7788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7789 # Best one so far, save it but keep looking for a better one
7790 ac_cv_path_EGREP="$ac_path_EGREP"
7791 ac_path_EGREP_max=$ac_count
7793 # 10*(2^10) chars as input seems more than enough
7794 test $ac_count -gt 10 && break
7796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7800 $ac_path_EGREP_found && break 3
7810 EGREP="$ac_cv_path_EGREP"
7811 if test -z "$EGREP"; then
7812 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7813 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7814 { (exit 1); exit 1; }; }
7818 ac_cv_path_EGREP=$EGREP
7824 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7825 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7826 EGREP="$ac_cv_path_EGREP"
7829 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7831 if test "${ac_cv_header_stdc+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 cat >conftest.$ac_ext <<_ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7853 rm -f conftest.$ac_objext
7854 if { (ac_try="$ac_compile"
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_compile") 2>conftest.er1
7862 grep -v '^ *+' conftest.er1 >conftest.err
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
7867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7868 { (case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_try") 2>&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; } &&
7877 { ac_try='test -s conftest.$ac_objext'
7878 { (case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_try") 2>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7887 ac_cv_header_stdc=yes
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7892 ac_cv_header_stdc=no
7895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897 if test $ac_cv_header_stdc = yes; then
7898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7899 cat >conftest.$ac_ext <<_ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7909 $EGREP "memchr" >/dev/null 2>&1; then
7912 ac_cv_header_stdc=no
7918 if test $ac_cv_header_stdc = yes; then
7919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7920 cat >conftest.$ac_ext <<_ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7930 $EGREP "free" >/dev/null 2>&1; then
7933 ac_cv_header_stdc=no
7939 if test $ac_cv_header_stdc = yes; then
7940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7941 if test "$cross_compiling" = yes; then
7944 cat >conftest.$ac_ext <<_ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7952 #if ((' ' & 0x0FF) == 0x020)
7953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7956 # define ISLOWER(c) \
7957 (('a' <= (c) && (c) <= 'i') \
7958 || ('j' <= (c) && (c) <= 'r') \
7959 || ('s' <= (c) && (c) <= 'z'))
7960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7968 for (i = 0; i < 256; i++)
7969 if (XOR (islower (i), ISLOWER (i))
7970 || toupper (i) != TOUPPER (i))
7975 rm -f conftest$ac_exeext
7976 if { (ac_try="$ac_link"
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_link") 2>&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7986 { (case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_try") 2>&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7997 echo "$as_me: program exited with status $ac_status" >&5
7998 echo "$as_me: failed program was:" >&5
7999 sed 's/^/| /' conftest.$ac_ext >&5
8002 ac_cv_header_stdc=no
8004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8010 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8011 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8012 if test $ac_cv_header_stdc = yes; then
8014 cat >>confdefs.h <<\_ACEOF
8015 #define STDC_HEADERS 1
8020 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8030 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8031 inttypes.h stdint.h unistd.h
8033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 cat >conftest.$ac_ext <<_ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 $ac_includes_default
8047 #include <$ac_header>
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_compile") 2>conftest.er1
8058 grep -v '^ *+' conftest.er1 >conftest.err
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8064 { (case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_try") 2>&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; } &&
8073 { ac_try='test -s conftest.$ac_objext'
8074 { (case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_try") 2>&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; }; then
8083 eval "$as_ac_Header=yes"
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 eval "$as_ac_Header=no"
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093 ac_res=`eval echo '${'$as_ac_Header'}'`
8094 { echo "$as_me:$LINENO: result: $ac_res" >&5
8095 echo "${ECHO_T}$ac_res" >&6; }
8096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8097 cat >>confdefs.h <<_ACEOF
8098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8107 for ac_header in errno.h
8109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 ac_res=`eval echo '${'$as_ac_Header'}'`
8117 { echo "$as_me:$LINENO: result: $ac_res" >&5
8118 echo "${ECHO_T}$ac_res" >&6; }
8120 # Is the header compilable?
8121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8123 cat >conftest.$ac_ext <<_ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8129 $ac_includes_default
8130 #include <$ac_header>
8132 rm -f conftest.$ac_objext
8133 if { (ac_try="$ac_compile"
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_compile") 2>conftest.er1
8141 grep -v '^ *+' conftest.er1 >conftest.err
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8147 { (case "(($ac_try" in
8148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149 *) ac_try_echo=$ac_try;;
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152 (eval "$ac_try") 2>&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; } &&
8156 { ac_try='test -s conftest.$ac_objext'
8157 { (case "(($ac_try" in
8158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162 (eval "$ac_try") 2>&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_header_compiler=yes
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ac_header_compiler=no
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8176 echo "${ECHO_T}$ac_header_compiler" >&6; }
8178 # Is the header present?
8179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8181 cat >conftest.$ac_ext <<_ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8187 #include <$ac_header>
8189 if { (ac_try="$ac_cpp conftest.$ac_ext"
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8197 grep -v '^ *+' conftest.er1 >conftest.err
8199 cat conftest.err >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } >/dev/null; then
8202 if test -s conftest.err; then
8203 ac_cpp_err=$ac_c_preproc_warn_flag
8204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8211 if test -z "$ac_cpp_err"; then
8212 ac_header_preproc=yes
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8217 ac_header_preproc=no
8220 rm -f conftest.err conftest.$ac_ext
8221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8222 echo "${ECHO_T}$ac_header_preproc" >&6; }
8224 # So? What about this header?
8225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8231 ac_header_preproc=yes
8234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8241 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8247 ## ------------------------------------ ##
8248 ## Report this to http://llvm.org/bugs/ ##
8249 ## ------------------------------------ ##
8251 ) | sed "s/^/$as_me: WARNING: /" >&2
8254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 eval "$as_ac_Header=\$ac_header_preproc"
8261 ac_res=`eval echo '${'$as_ac_Header'}'`
8262 { echo "$as_me:$LINENO: result: $ac_res" >&5
8263 echo "${ECHO_T}$ac_res" >&6; }
8266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8267 cat >>confdefs.h <<_ACEOF
8268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8276 case "$llvm_cv_os_type" in
8277 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8278 Darwin) llvm_shlib_ext=.dylib ;;
8279 *) llvm_shlib_ext=.so ;;
8283 cat >>confdefs.h <<_ACEOF
8284 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8288 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8289 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8302 if test "$GCC" != "yes" && test "$ICC" != "yes"
8304 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8305 echo "$as_me: error: gcc|icc required but not found" >&2;}
8306 { (exit 1); exit 1; }; }
8309 if test "$GXX" != "yes" && test "$IXX" != "yes"
8311 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8312 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8313 { (exit 1); exit 1; }; }
8316 if test "$GCC" = "yes"
8318 cat >conftest.$ac_ext <<_ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8326 #if !defined(__GNUC__) || __GNUC__ < 3
8327 #error Unsupported GCC version
8332 rm -f conftest.$ac_objext
8333 if { (ac_try="$ac_compile"
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_compile") 2>conftest.er1
8341 grep -v '^ *+' conftest.er1 >conftest.err
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8347 { (case "(($ac_try" in
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_try") 2>&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; } &&
8356 { ac_try='test -s conftest.$ac_objext'
8357 { (case "(($ac_try" in
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362 (eval "$ac_try") 2>&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; }; then
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8372 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8373 { (exit 1); exit 1; }; }
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 if test -z "$llvm_cv_gnu_make_command"
8381 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8382 echo "$as_me: error: GNU Make required but not found" >&2;}
8383 { (exit 1); exit 1; }; }
8386 { echo "$as_me:$LINENO: result: ok" >&5
8387 echo "${ECHO_T}ok" >&6; }
8389 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8390 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8391 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8393 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8395 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8399 NO_MAYBE_UNINITIALIZED=
8400 if test "$GXX" = "yes"
8402 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8404 if test -z "$NO_MAYBE_UNINITIALIZED"
8406 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8412 llvm_cv_old_cxxflags="$CXXFLAGS"
8413 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8414 cat >conftest.$ac_ext <<_ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8423 int main() { return 0; }
8427 rm -f conftest.$ac_objext
8428 if { (ac_try="$ac_compile"
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8436 grep -v '^ *+' conftest.er1 >conftest.err
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8442 { (case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_try") 2>&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; } &&
8451 { ac_try='test -s conftest.$ac_objext'
8452 { (case "(($ac_try" in
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_try") 2>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8462 no_comment=-Wno-comment
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 NO_COMMENT=$no_comment
8474 CXXFLAGS="$llvm_cv_old_cxxflags"
8476 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8477 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8480 # Check whether --with-python was given.
8481 if test "${with_python+set}" = set; then
8482 withval=$with_python; PYTHON="$withval"
8486 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8487 { echo "$as_me:$LINENO: checking for python" >&5
8488 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8489 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8490 echo "${ECHO_T}user defined: $with_python" >&6; }
8492 if test -n "$PYTHON" ; then
8493 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8494 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8497 # Extract the first word of "python python2 python27", so it can be a program name with args.
8498 set dummy python python2 python27; ac_word=$2
8499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8501 if test "${ac_cv_path_PYTHON+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8516 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8524 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8525 echo "${ECHO_T}not found" >&6; }
8526 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8527 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8528 { (exit 1); exit 1; }; }"
8532 PYTHON=$ac_cv_path_PYTHON
8533 if test -n "$PYTHON"; then
8534 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8535 echo "${ECHO_T}$PYTHON" >&6; }
8537 { echo "$as_me:$LINENO: result: no" >&5
8538 echo "${ECHO_T}no" >&6; }
8544 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8545 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8546 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8547 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8548 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8549 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8550 if test "$ac_python_version_major" -gt "2" || \
8551 (test "$ac_python_version_major" -eq "2" && \
8552 test "$ac_python_version_minor" -ge "7") ; then
8553 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8554 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8556 { echo "$as_me:$LINENO: result: not found" >&5
8557 echo "${ECHO_T}not found" >&6; }
8558 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8559 See \`config.log' for more details." >&5
8560 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8561 See \`config.log' for more details." >&2;}
8562 { (exit 1); exit 1; }; }
8567 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8568 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8569 if test "${ac_cv_lib_m_sin+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 ac_check_lib_save_LIBS=$LIBS
8574 cat >conftest.$ac_ext <<_ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8581 /* Override any GCC internal prototype to avoid an error.
8582 Use char because int might match the return type of a GCC
8583 builtin and then its argument prototype would still apply. */
8596 rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (ac_try="$ac_link"
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_link") 2>conftest.er1
8605 grep -v '^ *+' conftest.er1 >conftest.err
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } &&
8610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8611 { (case "(($ac_try" in
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_try") 2>&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; } &&
8620 { ac_try='test -s conftest$ac_exeext'
8621 { (case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_try") 2>&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8638 rm -f core conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 LIBS=$ac_check_lib_save_LIBS
8642 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8643 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8644 if test $ac_cv_lib_m_sin = yes; then
8645 cat >>confdefs.h <<_ACEOF
8653 if test "$llvm_cv_os_type" = "MingW" ; then
8655 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8656 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8657 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 ac_check_lib_save_LIBS=$LIBS
8661 LIBS="-limagehlp $LIBS"
8662 cat >conftest.$ac_ext <<_ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (ac_try="$ac_link"
8681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682 *) ac_try_echo=$ac_try;;
8684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8685 (eval "$ac_link") 2>conftest.er1
8687 grep -v '^ *+' conftest.er1 >conftest.err
8689 cat conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } &&
8692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8693 { (case "(($ac_try" in
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698 (eval "$ac_try") 2>&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; } &&
8702 { ac_try='test -s conftest$ac_exeext'
8703 { (case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_try") 2>&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_lib_imagehlp_main=yes
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_cv_lib_imagehlp_main=no
8720 rm -f core conftest.err conftest.$ac_objext \
8721 conftest$ac_exeext conftest.$ac_ext
8722 LIBS=$ac_check_lib_save_LIBS
8724 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8725 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8726 if test $ac_cv_lib_imagehlp_main = yes; then
8727 cat >>confdefs.h <<_ACEOF
8728 #define HAVE_LIBIMAGEHLP 1
8731 LIBS="-limagehlp $LIBS"
8736 { echo "$as_me:$LINENO: checking for main in -lole32" >&5
8737 echo $ECHO_N "checking for main in -lole32... $ECHO_C" >&6; }
8738 if test "${ac_cv_lib_ole32_main+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 ac_check_lib_save_LIBS=$LIBS
8742 LIBS="-lole32 $LIBS"
8743 cat >conftest.$ac_ext <<_ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (ac_try="$ac_link"
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_link") 2>conftest.er1
8768 grep -v '^ *+' conftest.er1 >conftest.err
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } &&
8773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8774 { (case "(($ac_try" in
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_try") 2>&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try='test -s conftest$ac_exeext'
8784 { (case "(($ac_try" in
8785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786 *) ac_try_echo=$ac_try;;
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789 (eval "$ac_try") 2>&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
8793 ac_cv_lib_ole32_main=yes
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8798 ac_cv_lib_ole32_main=no
8801 rm -f core conftest.err conftest.$ac_objext \
8802 conftest$ac_exeext conftest.$ac_ext
8803 LIBS=$ac_check_lib_save_LIBS
8805 { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_main" >&5
8806 echo "${ECHO_T}$ac_cv_lib_ole32_main" >&6; }
8807 if test $ac_cv_lib_ole32_main = yes; then
8808 cat >>confdefs.h <<_ACEOF
8809 #define HAVE_LIBOLE32 1
8812 LIBS="-lole32 $LIBS"
8817 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8818 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8819 if test "${ac_cv_lib_psapi_main+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 ac_check_lib_save_LIBS=$LIBS
8823 LIBS="-lpsapi $LIBS"
8824 cat >conftest.$ac_ext <<_ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (ac_try="$ac_link"
8843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847 (eval "$ac_link") 2>conftest.er1
8849 grep -v '^ *+' conftest.er1 >conftest.err
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } &&
8854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8855 { (case "(($ac_try" in
8856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857 *) ac_try_echo=$ac_try;;
8859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860 (eval "$ac_try") 2>&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; } &&
8864 { ac_try='test -s conftest$ac_exeext'
8865 { (case "(($ac_try" in
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_try") 2>&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_cv_lib_psapi_main=yes
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_cv_lib_psapi_main=no
8882 rm -f core conftest.err conftest.$ac_objext \
8883 conftest$ac_exeext conftest.$ac_ext
8884 LIBS=$ac_check_lib_save_LIBS
8886 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8887 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8888 if test $ac_cv_lib_psapi_main = yes; then
8889 cat >>confdefs.h <<_ACEOF
8890 #define HAVE_LIBPSAPI 1
8893 LIBS="-lpsapi $LIBS"
8898 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8899 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8900 if test "${ac_cv_lib_shell32_main+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 ac_check_lib_save_LIBS=$LIBS
8904 LIBS="-lshell32 $LIBS"
8905 cat >conftest.$ac_ext <<_ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8921 rm -f conftest.$ac_objext conftest$ac_exeext
8922 if { (ac_try="$ac_link"
8924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925 *) ac_try_echo=$ac_try;;
8927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928 (eval "$ac_link") 2>conftest.er1
8930 grep -v '^ *+' conftest.er1 >conftest.err
8932 cat conftest.err >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } &&
8935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8936 { (case "(($ac_try" in
8937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938 *) ac_try_echo=$ac_try;;
8940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941 (eval "$ac_try") 2>&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; } &&
8945 { ac_try='test -s conftest$ac_exeext'
8946 { (case "(($ac_try" in
8947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8948 *) ac_try_echo=$ac_try;;
8950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8951 (eval "$ac_try") 2>&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8955 ac_cv_lib_shell32_main=yes
8957 echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8960 ac_cv_lib_shell32_main=no
8963 rm -f core conftest.err conftest.$ac_objext \
8964 conftest$ac_exeext conftest.$ac_ext
8965 LIBS=$ac_check_lib_save_LIBS
8967 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8968 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8969 if test $ac_cv_lib_shell32_main = yes; then
8970 cat >>confdefs.h <<_ACEOF
8971 #define HAVE_LIBSHELL32 1
8974 LIBS="-lshell32 $LIBS"
8980 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8981 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8982 if test "${ac_cv_search_dlopen+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 ac_func_search_save_LIBS=$LIBS
8986 cat >conftest.$ac_ext <<_ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8993 /* Override any GCC internal prototype to avoid an error.
8994 Use char because int might match the return type of a GCC
8995 builtin and then its argument prototype would still apply. */
9008 for ac_lib in '' dl; do
9009 if test -z "$ac_lib"; then
9010 ac_res="none required"
9013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9015 rm -f conftest.$ac_objext conftest$ac_exeext
9016 if { (ac_try="$ac_link"
9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019 *) ac_try_echo=$ac_try;;
9021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9022 (eval "$ac_link") 2>conftest.er1
9024 grep -v '^ *+' conftest.er1 >conftest.err
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9030 { (case "(($ac_try" in
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035 (eval "$ac_try") 2>&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; } &&
9039 { ac_try='test -s conftest$ac_exeext'
9040 { (case "(($ac_try" in
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_try") 2>&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9049 ac_cv_search_dlopen=$ac_res
9051 echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9057 rm -f core conftest.err conftest.$ac_objext \
9059 if test "${ac_cv_search_dlopen+set}" = set; then
9063 if test "${ac_cv_search_dlopen+set}" = set; then
9066 ac_cv_search_dlopen=no
9069 LIBS=$ac_func_search_save_LIBS
9071 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9072 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9073 ac_res=$ac_cv_search_dlopen
9074 if test "$ac_res" != no; then
9075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9078 cat >>confdefs.h <<\_ACEOF
9079 #define HAVE_DLOPEN 1
9086 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9087 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9091 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9092 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9093 if test "${ac_cv_search_clock_gettime+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 ac_func_search_save_LIBS=$LIBS
9097 cat >conftest.$ac_ext <<_ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9104 /* Override any GCC internal prototype to avoid an error.
9105 Use char because int might match the return type of a GCC
9106 builtin and then its argument prototype would still apply. */
9110 char clock_gettime ();
9114 return clock_gettime ();
9119 for ac_lib in '' rt; do
9120 if test -z "$ac_lib"; then
9121 ac_res="none required"
9124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (ac_try="$ac_link"
9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133 (eval "$ac_link") 2>conftest.er1
9135 grep -v '^ *+' conftest.er1 >conftest.err
9137 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
9140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9141 { (case "(($ac_try" in
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146 (eval "$ac_try") 2>&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; } &&
9150 { ac_try='test -s conftest$ac_exeext'
9151 { (case "(($ac_try" in
9152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153 *) ac_try_echo=$ac_try;;
9155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156 (eval "$ac_try") 2>&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9160 ac_cv_search_clock_gettime=$ac_res
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9168 rm -f core conftest.err conftest.$ac_objext \
9170 if test "${ac_cv_search_clock_gettime+set}" = set; then
9174 if test "${ac_cv_search_clock_gettime+set}" = set; then
9177 ac_cv_search_clock_gettime=no
9180 LIBS=$ac_func_search_save_LIBS
9182 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9183 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9184 ac_res=$ac_cv_search_clock_gettime
9185 if test "$ac_res" != no; then
9186 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9191 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9192 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9193 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9194 if test "${ac_cv_search_setupterm+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 ac_func_search_save_LIBS=$LIBS
9198 cat >conftest.$ac_ext <<_ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9205 /* Override any GCC internal prototype to avoid an error.
9206 Use char because int might match the return type of a GCC
9207 builtin and then its argument prototype would still apply. */
9215 return setupterm ();
9220 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9221 if test -z "$ac_lib"; then
9222 ac_res="none required"
9225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9227 rm -f conftest.$ac_objext conftest$ac_exeext
9228 if { (ac_try="$ac_link"
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_link") 2>conftest.er1
9236 grep -v '^ *+' conftest.er1 >conftest.err
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9242 { (case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_try") 2>&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; } &&
9251 { ac_try='test -s conftest$ac_exeext'
9252 { (case "(($ac_try" in
9253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9254 *) ac_try_echo=$ac_try;;
9256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9257 (eval "$ac_try") 2>&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_search_setupterm=$ac_res
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9269 rm -f core conftest.err conftest.$ac_objext \
9271 if test "${ac_cv_search_setupterm+set}" = set; then
9275 if test "${ac_cv_search_setupterm+set}" = set; then
9278 ac_cv_search_setupterm=no
9281 LIBS=$ac_func_search_save_LIBS
9283 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9284 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9285 ac_res=$ac_cv_search_setupterm
9286 if test "$ac_res" != no; then
9287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9290 cat >>confdefs.h <<\_ACEOF
9291 #define HAVE_TERMINFO 1
9301 if test "$llvm_cv_enable_libedit" = "yes" ; then
9302 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9303 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9304 if test "${ac_cv_search_el_init+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 ac_func_search_save_LIBS=$LIBS
9308 cat >conftest.$ac_ext <<_ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h. */
9315 /* Override any GCC internal prototype to avoid an error.
9316 Use char because int might match the return type of a GCC
9317 builtin and then its argument prototype would still apply. */
9330 for ac_lib in '' edit; do
9331 if test -z "$ac_lib"; then
9332 ac_res="none required"
9335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (ac_try="$ac_link"
9340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341 *) ac_try_echo=$ac_try;;
9343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9344 (eval "$ac_link") 2>conftest.er1
9346 grep -v '^ *+' conftest.er1 >conftest.err
9348 cat conftest.err >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } &&
9351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9352 { (case "(($ac_try" in
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357 (eval "$ac_try") 2>&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; } &&
9361 { ac_try='test -s conftest$ac_exeext'
9362 { (case "(($ac_try" in
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_try") 2>&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 ac_cv_search_el_init=$ac_res
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9379 rm -f core conftest.err conftest.$ac_objext \
9381 if test "${ac_cv_search_el_init+set}" = set; then
9385 if test "${ac_cv_search_el_init+set}" = set; then
9388 ac_cv_search_el_init=no
9391 LIBS=$ac_func_search_save_LIBS
9393 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9394 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9395 ac_res=$ac_cv_search_el_init
9396 if test "$ac_res" != no; then
9397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9399 cat >>confdefs.h <<\_ACEOF
9400 #define HAVE_LIBEDIT 1
9407 if test "$llvm_cv_enable_libffi" = "yes" ; then
9408 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9409 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9410 if test "${ac_cv_search_ffi_call+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 ac_func_search_save_LIBS=$LIBS
9414 cat >conftest.$ac_ext <<_ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h. */
9421 /* Override any GCC internal prototype to avoid an error.
9422 Use char because int might match the return type of a GCC
9423 builtin and then its argument prototype would still apply. */
9436 for ac_lib in '' ffi; do
9437 if test -z "$ac_lib"; then
9438 ac_res="none required"
9441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9443 rm -f conftest.$ac_objext conftest$ac_exeext
9444 if { (ac_try="$ac_link"
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450 (eval "$ac_link") 2>conftest.er1
9452 grep -v '^ *+' conftest.er1 >conftest.err
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } &&
9457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9458 { (case "(($ac_try" in
9459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9460 *) ac_try_echo=$ac_try;;
9462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463 (eval "$ac_try") 2>&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; } &&
9467 { ac_try='test -s conftest$ac_exeext'
9468 { (case "(($ac_try" in
9469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470 *) ac_try_echo=$ac_try;;
9472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473 (eval "$ac_try") 2>&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_cv_search_ffi_call=$ac_res
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9485 rm -f core conftest.err conftest.$ac_objext \
9487 if test "${ac_cv_search_ffi_call+set}" = set; then
9491 if test "${ac_cv_search_ffi_call+set}" = set; then
9494 ac_cv_search_ffi_call=no
9497 LIBS=$ac_func_search_save_LIBS
9499 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9500 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9501 ac_res=$ac_cv_search_ffi_call
9502 if test "$ac_res" != no; then
9503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9505 cat >>confdefs.h <<\_ACEOF
9506 #define HAVE_FFI_CALL 1
9510 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9511 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9512 { (exit 1); exit 1; }; }
9517 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9518 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9519 if test "${ac_cv_search_mallinfo+set}" = set; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 ac_func_search_save_LIBS=$LIBS
9523 cat >conftest.$ac_ext <<_ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9530 /* Override any GCC internal prototype to avoid an error.
9531 Use char because int might match the return type of a GCC
9532 builtin and then its argument prototype would still apply. */
9545 for ac_lib in '' malloc; do
9546 if test -z "$ac_lib"; then
9547 ac_res="none required"
9550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9552 rm -f conftest.$ac_objext conftest$ac_exeext
9553 if { (ac_try="$ac_link"
9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559 (eval "$ac_link") 2>conftest.er1
9561 grep -v '^ *+' conftest.er1 >conftest.err
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9567 { (case "(($ac_try" in
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_try") 2>&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; } &&
9576 { ac_try='test -s conftest$ac_exeext'
9577 { (case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_try") 2>&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; }; then
9586 ac_cv_search_mallinfo=$ac_res
9588 echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9594 rm -f core conftest.err conftest.$ac_objext \
9596 if test "${ac_cv_search_mallinfo+set}" = set; then
9600 if test "${ac_cv_search_mallinfo+set}" = set; then
9603 ac_cv_search_mallinfo=no
9606 LIBS=$ac_func_search_save_LIBS
9608 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9609 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9610 ac_res=$ac_cv_search_mallinfo
9611 if test "$ac_res" != no; then
9612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9614 cat >>confdefs.h <<\_ACEOF
9615 #define HAVE_MALLINFO 1
9621 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9623 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9624 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9625 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 ac_check_lib_save_LIBS=$LIBS
9629 LIBS="-lpthread $LIBS"
9630 cat >conftest.$ac_ext <<_ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9637 /* Override any GCC internal prototype to avoid an error.
9638 Use char because int might match the return type of a GCC
9639 builtin and then its argument prototype would still apply. */
9643 char pthread_mutex_init ();
9647 return pthread_mutex_init ();
9652 rm -f conftest.$ac_objext conftest$ac_exeext
9653 if { (ac_try="$ac_link"
9655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656 *) ac_try_echo=$ac_try;;
9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659 (eval "$ac_link") 2>conftest.er1
9661 grep -v '^ *+' conftest.er1 >conftest.err
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9667 { (case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_try") 2>&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9686 ac_cv_lib_pthread_pthread_mutex_init=yes
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9691 ac_cv_lib_pthread_pthread_mutex_init=no
9694 rm -f core conftest.err conftest.$ac_objext \
9695 conftest$ac_exeext conftest.$ac_ext
9696 LIBS=$ac_check_lib_save_LIBS
9698 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9699 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9700 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9701 cat >>confdefs.h <<_ACEOF
9702 #define HAVE_LIBPTHREAD 1
9705 LIBS="-lpthread $LIBS"
9709 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9710 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9711 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 ac_func_search_save_LIBS=$LIBS
9715 cat >conftest.$ac_ext <<_ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9722 /* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9728 char pthread_mutex_lock ();
9732 return pthread_mutex_lock ();
9737 for ac_lib in '' pthread; do
9738 if test -z "$ac_lib"; then
9739 ac_res="none required"
9742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (ac_try="$ac_link"
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751 (eval "$ac_link") 2>conftest.er1
9753 grep -v '^ *+' conftest.er1 >conftest.err
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } &&
9758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9759 { (case "(($ac_try" in
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_try") 2>&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; } &&
9768 { ac_try='test -s conftest$ac_exeext'
9769 { (case "(($ac_try" in
9770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771 *) ac_try_echo=$ac_try;;
9773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9774 (eval "$ac_try") 2>&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778 ac_cv_search_pthread_mutex_lock=$ac_res
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9786 rm -f core conftest.err conftest.$ac_objext \
9788 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9792 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9795 ac_cv_search_pthread_mutex_lock=no
9798 LIBS=$ac_func_search_save_LIBS
9800 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9801 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9802 ac_res=$ac_cv_search_pthread_mutex_lock
9803 if test "$ac_res" != no; then
9804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_PTHREAD_MUTEX_LOCK 1
9812 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9813 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9814 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 ac_func_search_save_LIBS=$LIBS
9818 cat >conftest.$ac_ext <<_ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9825 /* Override any GCC internal prototype to avoid an error.
9826 Use char because int might match the return type of a GCC
9827 builtin and then its argument prototype would still apply. */
9831 char pthread_rwlock_init ();
9835 return pthread_rwlock_init ();
9840 for ac_lib in '' pthread; do
9841 if test -z "$ac_lib"; then
9842 ac_res="none required"
9845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (ac_try="$ac_link"
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9854 (eval "$ac_link") 2>conftest.er1
9856 grep -v '^ *+' conftest.er1 >conftest.err
9858 cat conftest.err >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } &&
9861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9862 { (case "(($ac_try" in
9863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864 *) ac_try_echo=$ac_try;;
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867 (eval "$ac_try") 2>&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try='test -s conftest$ac_exeext'
9872 { (case "(($ac_try" in
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_try") 2>&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_search_pthread_rwlock_init=$ac_res
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9889 rm -f core conftest.err conftest.$ac_objext \
9891 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9895 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9898 ac_cv_search_pthread_rwlock_init=no
9901 LIBS=$ac_func_search_save_LIBS
9903 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9904 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9905 ac_res=$ac_cv_search_pthread_rwlock_init
9906 if test "$ac_res" != no; then
9907 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9909 cat >>confdefs.h <<\_ACEOF
9910 #define HAVE_PTHREAD_RWLOCK_INIT 1
9915 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9916 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9917 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 ac_func_search_save_LIBS=$LIBS
9921 cat >conftest.$ac_ext <<_ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9928 /* Override any GCC internal prototype to avoid an error.
9929 Use char because int might match the return type of a GCC
9930 builtin and then its argument prototype would still apply. */
9934 char pthread_getspecific ();
9938 return pthread_getspecific ();
9943 for ac_lib in '' pthread; do
9944 if test -z "$ac_lib"; then
9945 ac_res="none required"
9948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_link") 2>conftest.er1
9959 grep -v '^ *+' conftest.er1 >conftest.err
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } &&
9964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9965 { (case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_try") 2>&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_try") 2>&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984 ac_cv_search_pthread_getspecific=$ac_res
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9992 rm -f core conftest.err conftest.$ac_objext \
9994 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9998 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10001 ac_cv_search_pthread_getspecific=no
10003 rm conftest.$ac_ext
10004 LIBS=$ac_func_search_save_LIBS
10006 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10007 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
10008 ac_res=$ac_cv_search_pthread_getspecific
10009 if test "$ac_res" != no; then
10010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10012 cat >>confdefs.h <<\_ACEOF
10013 #define HAVE_PTHREAD_GETSPECIFIC 1
10020 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10022 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10023 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10024 if test "${ac_cv_lib_z_compress2+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 ac_check_lib_save_LIBS=$LIBS
10029 cat >conftest.$ac_ext <<_ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10036 /* Override any GCC internal prototype to avoid an error.
10037 Use char because int might match the return type of a GCC
10038 builtin and then its argument prototype would still apply. */
10046 return compress2 ();
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (ac_try="$ac_link"
10053 case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_link") 2>conftest.er1
10060 grep -v '^ *+' conftest.er1 >conftest.err
10062 cat conftest.err >&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10066 { (case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_try") 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; } &&
10075 { ac_try='test -s conftest$ac_exeext'
10076 { (case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_try") 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
10085 ac_cv_lib_z_compress2=yes
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 ac_cv_lib_z_compress2=no
10093 rm -f core conftest.err conftest.$ac_objext \
10094 conftest$ac_exeext conftest.$ac_ext
10095 LIBS=$ac_check_lib_save_LIBS
10097 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10098 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10099 if test $ac_cv_lib_z_compress2 = yes; then
10100 cat >>confdefs.h <<_ACEOF
10101 #define HAVE_LIBZ 1
10111 # Check whether --with-oprofile was given.
10112 if test "${with_oprofile+set}" = set; then
10113 withval=$with_oprofile;
10117 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10118 no) llvm_cv_oppath=
10121 *) llvm_cv_oppath="${withval}/lib/oprofile"
10122 CPPFLAGS="-I${withval}/include";;
10124 case $llvm_cv_os_type in
10126 if test -n "$llvm_cv_oppath" ; then
10127 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10128 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10129 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10130 if test "${ac_cv_search_bfd_init+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 ac_func_search_save_LIBS=$LIBS
10134 cat >conftest.$ac_ext <<_ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10141 /* Override any GCC internal prototype to avoid an error.
10142 Use char because int might match the return type of a GCC
10143 builtin and then its argument prototype would still apply. */
10151 return bfd_init ();
10156 for ac_lib in '' bfd; do
10157 if test -z "$ac_lib"; then
10158 ac_res="none required"
10161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10163 rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (ac_try="$ac_link"
10165 case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_link") 2>conftest.er1
10172 grep -v '^ *+' conftest.er1 >conftest.err
10174 cat conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } &&
10177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10178 { (case "(($ac_try" in
10179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180 *) ac_try_echo=$ac_try;;
10182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183 (eval "$ac_try") 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; } &&
10187 { ac_try='test -s conftest$ac_exeext'
10188 { (case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_try") 2>&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 ac_cv_search_bfd_init=$ac_res
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10205 rm -f core conftest.err conftest.$ac_objext \
10207 if test "${ac_cv_search_bfd_init+set}" = set; then
10211 if test "${ac_cv_search_bfd_init+set}" = set; then
10214 ac_cv_search_bfd_init=no
10216 rm conftest.$ac_ext
10217 LIBS=$ac_func_search_save_LIBS
10219 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10220 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10221 ac_res=$ac_cv_search_bfd_init
10222 if test "$ac_res" != no; then
10223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10227 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10228 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10229 if test "${ac_cv_search_op_open_agent+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 ac_func_search_save_LIBS=$LIBS
10233 cat >conftest.$ac_ext <<_ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10246 char op_open_agent ();
10250 return op_open_agent ();
10255 for ac_lib in '' opagent; do
10256 if test -z "$ac_lib"; then
10257 ac_res="none required"
10260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10262 rm -f conftest.$ac_objext conftest$ac_exeext
10263 if { (ac_try="$ac_link"
10264 case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_link") 2>conftest.er1
10271 grep -v '^ *+' conftest.er1 >conftest.err
10273 cat conftest.err >&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } &&
10276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10277 { (case "(($ac_try" in
10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279 *) ac_try_echo=$ac_try;;
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282 (eval "$ac_try") 2>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; } &&
10286 { ac_try='test -s conftest$ac_exeext'
10287 { (case "(($ac_try" in
10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289 *) ac_try_echo=$ac_try;;
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292 (eval "$ac_try") 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_cv_search_op_open_agent=$ac_res
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10304 rm -f core conftest.err conftest.$ac_objext \
10306 if test "${ac_cv_search_op_open_agent+set}" = set; then
10310 if test "${ac_cv_search_op_open_agent+set}" = set; then
10313 ac_cv_search_op_open_agent=no
10315 rm conftest.$ac_ext
10316 LIBS=$ac_func_search_save_LIBS
10318 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10319 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10320 ac_res=$ac_cv_search_op_open_agent
10321 if test "$ac_res" != no; then
10322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10326 echo "Error! You need to have libopagent around."
10331 if test "${ac_cv_header_opagent_h+set}" = set; then
10332 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10333 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10334 if test "${ac_cv_header_opagent_h+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10338 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10340 # Is the header compilable?
10341 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10342 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10343 cat >conftest.$ac_ext <<_ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10349 $ac_includes_default
10350 #include <opagent.h>
10352 rm -f conftest.$ac_objext
10353 if { (ac_try="$ac_compile"
10354 case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_compile") 2>conftest.er1
10361 grep -v '^ *+' conftest.er1 >conftest.err
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } &&
10366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10367 { (case "(($ac_try" in
10368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369 *) ac_try_echo=$ac_try;;
10371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10372 (eval "$ac_try") 2>&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; } &&
10376 { ac_try='test -s conftest.$ac_objext'
10377 { (case "(($ac_try" in
10378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379 *) ac_try_echo=$ac_try;;
10381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382 (eval "$ac_try") 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10386 ac_header_compiler=yes
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10391 ac_header_compiler=no
10394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10396 echo "${ECHO_T}$ac_header_compiler" >&6; }
10398 # Is the header present?
10399 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10400 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10401 cat >conftest.$ac_ext <<_ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10407 #include <opagent.h>
10409 if { (ac_try="$ac_cpp conftest.$ac_ext"
10410 case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10417 grep -v '^ *+' conftest.er1 >conftest.err
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } >/dev/null; then
10422 if test -s conftest.err; then
10423 ac_cpp_err=$ac_c_preproc_warn_flag
10424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10431 if test -z "$ac_cpp_err"; then
10432 ac_header_preproc=yes
10434 echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10437 ac_header_preproc=no
10440 rm -f conftest.err conftest.$ac_ext
10441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10442 echo "${ECHO_T}$ac_header_preproc" >&6; }
10444 # So? What about this header?
10445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10447 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10448 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10449 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10450 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10451 ac_header_preproc=yes
10454 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10455 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10456 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10457 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10458 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10459 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10460 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10461 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10462 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10463 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10464 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10465 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10467 ## ------------------------------------ ##
10468 ## Report this to http://llvm.org/bugs/ ##
10469 ## ------------------------------------ ##
10471 ) | sed "s/^/$as_me: WARNING: /" >&2
10474 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10475 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10476 if test "${ac_cv_header_opagent_h+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 ac_cv_header_opagent_h=$ac_header_preproc
10481 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10482 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10485 if test $ac_cv_header_opagent_h = yes; then
10489 echo "Error! You need to have opagent.h around."
10497 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10498 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10499 { (exit 1); exit 1; }; } ;;
10510 cat >>confdefs.h <<_ACEOF
10511 #define LLVM_USE_OPROFILE $USE_OPROFILE
10516 # Check whether --with-intel-jitevents was given.
10517 if test "${with_intel_jitevents+set}" = set; then
10518 withval=$with_intel_jitevents;
10520 yes) USE_INTEL_JITEVENTS=1
10522 no) USE_INTEL_JITEVENTS=0
10524 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10525 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10526 { (exit 1); exit 1; }; };;
10529 case $llvm_cv_os_type in
10530 Linux|Win32|Cygwin|MingW) ;;
10531 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10532 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10533 { (exit 1); exit 1; }; };;
10536 case "$llvm_cv_target_arch" in
10538 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10539 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10540 { (exit 1); exit 1; }; };;
10545 USE_INTEL_JITEVENTS=0
10551 cat >>confdefs.h <<_ACEOF
10552 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10556 for ac_prog in xml2-config
10558 # Extract the first word of "$ac_prog", so it can be a program name with args.
10559 set dummy $ac_prog; ac_word=$2
10560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10562 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 if test -n "$XML2CONFIG"; then
10566 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569 for as_dir in $PATH
10572 test -z "$as_dir" && as_dir=.
10573 for ac_exec_ext in '' $ac_executable_extensions; do
10574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10575 ac_cv_prog_XML2CONFIG="$ac_prog"
10576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10585 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10586 if test -n "$XML2CONFIG"; then
10587 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10588 echo "${ECHO_T}$XML2CONFIG" >&6; }
10590 { echo "$as_me:$LINENO: result: no" >&5
10591 echo "${ECHO_T}no" >&6; }
10595 test -n "$XML2CONFIG" && break
10599 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10600 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10601 if test "x$XML2CONFIG" = "x"; then
10602 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10603 echo "${ECHO_T}xml2-config not found" >&6; }
10605 LIBXML2_INC=`$XML2CONFIG --cflags`
10606 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10607 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10608 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10609 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10610 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 ac_check_lib_save_LIBS=$LIBS
10614 LIBS="-lxml2 $LIBS"
10615 cat >conftest.$ac_ext <<_ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10622 /* Override any GCC internal prototype to avoid an error.
10623 Use char because int might match the return type of a GCC
10624 builtin and then its argument prototype would still apply. */
10628 char xmlReadFile ();
10632 return xmlReadFile ();
10637 rm -f conftest.$ac_objext conftest$ac_exeext
10638 if { (ac_try="$ac_link"
10639 case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_link") 2>conftest.er1
10646 grep -v '^ *+' conftest.er1 >conftest.err
10648 cat conftest.err >&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } &&
10651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10652 { (case "(($ac_try" in
10653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654 *) ac_try_echo=$ac_try;;
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657 (eval "$ac_try") 2>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; } &&
10661 { ac_try='test -s conftest$ac_exeext'
10662 { (case "(($ac_try" in
10663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10664 *) ac_try_echo=$ac_try;;
10666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10667 (eval "$ac_try") 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; }; then
10671 ac_cv_lib_xml2_xmlReadFile=yes
10673 echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10676 ac_cv_lib_xml2_xmlReadFile=no
10679 rm -f core conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
10681 LIBS=$ac_check_lib_save_LIBS
10683 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10684 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10685 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10687 cat >>confdefs.h <<\_ACEOF
10688 #define CLANG_HAVE_LIBXML 1
10691 LIBXML2_LIBS="-lxml2"
10704 ac_header_dirent=no
10705 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10706 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10707 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10708 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 cat >conftest.$ac_ext <<_ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 #include <sys/types.h>
10730 rm -f conftest.$ac_objext
10731 if { (ac_try="$ac_compile"
10732 case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_compile") 2>conftest.er1
10739 grep -v '^ *+' conftest.er1 >conftest.err
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } &&
10744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10745 { (case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_try") 2>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; } &&
10754 { ac_try='test -s conftest.$ac_objext'
10755 { (case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_try") 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
10764 eval "$as_ac_Header=yes"
10766 echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10769 eval "$as_ac_Header=no"
10772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774 ac_res=`eval echo '${'$as_ac_Header'}'`
10775 { echo "$as_me:$LINENO: result: $ac_res" >&5
10776 echo "${ECHO_T}$ac_res" >&6; }
10777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10778 cat >>confdefs.h <<_ACEOF
10779 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10782 ac_header_dirent=$ac_hdr; break
10786 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10787 if test $ac_header_dirent = dirent.h; then
10788 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10789 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10790 if test "${ac_cv_search_opendir+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10793 ac_func_search_save_LIBS=$LIBS
10794 cat >conftest.$ac_ext <<_ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10801 /* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10816 for ac_lib in '' dir; do
10817 if test -z "$ac_lib"; then
10818 ac_res="none required"
10821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10823 rm -f conftest.$ac_objext conftest$ac_exeext
10824 if { (ac_try="$ac_link"
10825 case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_link") 2>conftest.er1
10832 grep -v '^ *+' conftest.er1 >conftest.err
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_try") 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_cv_search_opendir=$ac_res
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10865 rm -f core conftest.err conftest.$ac_objext \
10867 if test "${ac_cv_search_opendir+set}" = set; then
10871 if test "${ac_cv_search_opendir+set}" = set; then
10874 ac_cv_search_opendir=no
10876 rm conftest.$ac_ext
10877 LIBS=$ac_func_search_save_LIBS
10879 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10880 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10881 ac_res=$ac_cv_search_opendir
10882 if test "$ac_res" != no; then
10883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10888 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10889 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10890 if test "${ac_cv_search_opendir+set}" = set; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 ac_func_search_save_LIBS=$LIBS
10894 cat >conftest.$ac_ext <<_ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10901 /* Override any GCC internal prototype to avoid an error.
10902 Use char because int might match the return type of a GCC
10903 builtin and then its argument prototype would still apply. */
10916 for ac_lib in '' x; do
10917 if test -z "$ac_lib"; then
10918 ac_res="none required"
10921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10923 rm -f conftest.$ac_objext conftest$ac_exeext
10924 if { (ac_try="$ac_link"
10925 case "(($ac_try" in
10926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927 *) ac_try_echo=$ac_try;;
10929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10930 (eval "$ac_link") 2>conftest.er1
10932 grep -v '^ *+' conftest.er1 >conftest.err
10934 cat conftest.err >&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } &&
10937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10938 { (case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_try") 2>&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; } &&
10947 { ac_try='test -s conftest$ac_exeext'
10948 { (case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_try") 2>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10957 ac_cv_search_opendir=$ac_res
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10965 rm -f core conftest.err conftest.$ac_objext \
10967 if test "${ac_cv_search_opendir+set}" = set; then
10971 if test "${ac_cv_search_opendir+set}" = set; then
10974 ac_cv_search_opendir=no
10976 rm conftest.$ac_ext
10977 LIBS=$ac_func_search_save_LIBS
10979 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10980 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10981 ac_res=$ac_cv_search_opendir
10982 if test "$ac_res" != no; then
10983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10989 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10990 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10991 if test "${ac_cv_header_mmap_anon+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10995 ac_cpp='$CPP $CPPFLAGS'
10996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11000 cat >conftest.$ac_ext <<_ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 #include <sys/mman.h>
11007 #include <unistd.h>
11012 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11017 rm -f conftest.$ac_objext
11018 if { (ac_try="$ac_compile"
11019 case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_compile") 2>conftest.er1
11026 grep -v '^ *+' conftest.er1 >conftest.err
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } &&
11031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11032 { (case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_try") 2>&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; } &&
11041 { ac_try='test -s conftest.$ac_objext'
11042 { (case "(($ac_try" in
11043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044 *) ac_try_echo=$ac_try;;
11046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047 (eval "$ac_try") 2>&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
11051 ac_cv_header_mmap_anon=yes
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11056 ac_cv_header_mmap_anon=no
11059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061 ac_cpp='$CPP $CPPFLAGS'
11062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11068 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11069 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11070 if test "$ac_cv_header_mmap_anon" = yes; then
11072 cat >>confdefs.h <<\_ACEOF
11073 #define HAVE_MMAP_ANONYMOUS 1
11078 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11079 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11080 if test "${ac_cv_header_stat_broken+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 cat >conftest.$ac_ext <<_ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 #include <sys/types.h>
11090 #include <sys/stat.h>
11092 #if defined S_ISBLK && defined S_IFDIR
11093 # if S_ISBLK (S_IFDIR)
11098 #if defined S_ISBLK && defined S_IFCHR
11099 # if S_ISBLK (S_IFCHR)
11104 #if defined S_ISLNK && defined S_IFREG
11105 # if S_ISLNK (S_IFREG)
11110 #if defined S_ISSOCK && defined S_IFREG
11111 # if S_ISSOCK (S_IFREG)
11117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11118 $EGREP "You lose" >/dev/null 2>&1; then
11119 ac_cv_header_stat_broken=yes
11121 ac_cv_header_stat_broken=no
11126 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11127 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11128 if test $ac_cv_header_stat_broken = yes; then
11130 cat >>confdefs.h <<\_ACEOF
11131 #define STAT_MACROS_BROKEN 1
11136 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11137 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11138 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 cat >conftest.$ac_ext <<_ACEOF
11144 cat confdefs.h >>conftest.$ac_ext
11145 cat >>conftest.$ac_ext <<_ACEOF
11146 /* end confdefs.h. */
11147 #include <sys/types.h>
11148 #include <sys/wait.h>
11149 #ifndef WEXITSTATUS
11150 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11153 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11161 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11166 rm -f conftest.$ac_objext
11167 if { (ac_try="$ac_compile"
11168 case "(($ac_try" in
11169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170 *) ac_try_echo=$ac_try;;
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173 (eval "$ac_compile") 2>conftest.er1
11175 grep -v '^ *+' conftest.er1 >conftest.err
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11181 { (case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_try") 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; } &&
11190 { ac_try='test -s conftest.$ac_objext'
11191 { (case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_try") 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; }; then
11200 ac_cv_header_sys_wait_h=yes
11202 echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11205 ac_cv_header_sys_wait_h=no
11208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11210 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11211 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11212 if test $ac_cv_header_sys_wait_h = yes; then
11214 cat >>confdefs.h <<\_ACEOF
11215 #define HAVE_SYS_WAIT_H 1
11220 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11221 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11222 if test "${ac_cv_header_time+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 cat >conftest.$ac_ext <<_ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11231 #include <sys/types.h>
11232 #include <sys/time.h>
11238 if ((struct tm *) 0)
11244 rm -f conftest.$ac_objext
11245 if { (ac_try="$ac_compile"
11246 case "(($ac_try" in
11247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248 *) ac_try_echo=$ac_try;;
11250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251 (eval "$ac_compile") 2>conftest.er1
11253 grep -v '^ *+' conftest.er1 >conftest.err
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11259 { (case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_try") 2>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; } &&
11268 { ac_try='test -s conftest.$ac_objext'
11269 { (case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_try") 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 ac_cv_header_time=yes
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11283 ac_cv_header_time=no
11286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11289 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11290 if test $ac_cv_header_time = yes; then
11292 cat >>confdefs.h <<\_ACEOF
11293 #define TIME_WITH_SYS_TIME 1
11300 ac_cpp='$CXXCPP $CPPFLAGS'
11301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11306 for ac_header in cxxabi.h
11308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 cat >conftest.$ac_ext <<_ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11320 #include <stddef.h>
11323 #include <$ac_header>
11325 rm -f conftest.$ac_objext
11326 if { (ac_try="$ac_compile"
11327 case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_compile") 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11340 { (case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_try") 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; } &&
11349 { ac_try='test -s conftest.$ac_objext'
11350 { (case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_try") 2>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; }; then
11359 eval "$as_ac_Header=yes"
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11364 eval "$as_ac_Header=no"
11367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11369 ac_res=`eval echo '${'$as_ac_Header'}'`
11370 { echo "$as_me:$LINENO: result: $ac_res" >&5
11371 echo "${ECHO_T}$ac_res" >&6; }
11372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11373 cat >>confdefs.h <<_ACEOF
11374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11382 ac_cpp='$CPP $CPPFLAGS'
11383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11393 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 ac_res=`eval echo '${'$as_ac_Header'}'`
11403 { echo "$as_me:$LINENO: result: $ac_res" >&5
11404 echo "${ECHO_T}$ac_res" >&6; }
11406 # Is the header compilable?
11407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11409 cat >conftest.$ac_ext <<_ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h. */
11415 $ac_includes_default
11416 #include <$ac_header>
11418 rm -f conftest.$ac_objext
11419 if { (ac_try="$ac_compile"
11420 case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_compile") 2>conftest.er1
11427 grep -v '^ *+' conftest.er1 >conftest.err
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11433 { (case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_try") 2>&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; } &&
11442 { ac_try='test -s conftest.$ac_objext'
11443 { (case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_try") 2>&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; }; then
11452 ac_header_compiler=yes
11454 echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11457 ac_header_compiler=no
11460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11462 echo "${ECHO_T}$ac_header_compiler" >&6; }
11464 # Is the header present?
11465 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11467 cat >conftest.$ac_ext <<_ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 #include <$ac_header>
11475 if { (ac_try="$ac_cpp conftest.$ac_ext"
11476 case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11483 grep -v '^ *+' conftest.er1 >conftest.err
11485 cat conftest.err >&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } >/dev/null; then
11488 if test -s conftest.err; then
11489 ac_cpp_err=$ac_c_preproc_warn_flag
11490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11497 if test -z "$ac_cpp_err"; then
11498 ac_header_preproc=yes
11500 echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11503 ac_header_preproc=no
11506 rm -f conftest.err conftest.$ac_ext
11507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11508 echo "${ECHO_T}$ac_header_preproc" >&6; }
11510 # So? What about this header?
11511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11517 ac_header_preproc=yes
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11523 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11527 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11533 ## ------------------------------------ ##
11534 ## Report this to http://llvm.org/bugs/ ##
11535 ## ------------------------------------ ##
11537 ) | sed "s/^/$as_me: WARNING: /" >&2
11540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11543 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 eval "$as_ac_Header=\$ac_header_preproc"
11547 ac_res=`eval echo '${'$as_ac_Header'}'`
11548 { echo "$as_me:$LINENO: result: $ac_res" >&5
11549 echo "${ECHO_T}$ac_res" >&6; }
11552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11553 cat >>confdefs.h <<_ACEOF
11554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11567 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11576 ac_res=`eval echo '${'$as_ac_Header'}'`
11577 { echo "$as_me:$LINENO: result: $ac_res" >&5
11578 echo "${ECHO_T}$ac_res" >&6; }
11580 # Is the header compilable?
11581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11583 cat >conftest.$ac_ext <<_ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11589 $ac_includes_default
11590 #include <$ac_header>
11592 rm -f conftest.$ac_objext
11593 if { (ac_try="$ac_compile"
11594 case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_compile") 2>conftest.er1
11601 grep -v '^ *+' conftest.er1 >conftest.err
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11607 { (case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612 (eval "$ac_try") 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; } &&
11616 { ac_try='test -s conftest.$ac_objext'
11617 { (case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_try") 2>&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 ac_header_compiler=yes
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11631 ac_header_compiler=no
11634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11636 echo "${ECHO_T}$ac_header_compiler" >&6; }
11638 # Is the header present?
11639 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11641 cat >conftest.$ac_ext <<_ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 #include <$ac_header>
11649 if { (ac_try="$ac_cpp conftest.$ac_ext"
11650 case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11657 grep -v '^ *+' conftest.er1 >conftest.err
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } >/dev/null; then
11662 if test -s conftest.err; then
11663 ac_cpp_err=$ac_c_preproc_warn_flag
11664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11671 if test -z "$ac_cpp_err"; then
11672 ac_header_preproc=yes
11674 echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11677 ac_header_preproc=no
11680 rm -f conftest.err conftest.$ac_ext
11681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11682 echo "${ECHO_T}$ac_header_preproc" >&6; }
11684 # So? What about this header?
11685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11691 ac_header_preproc=yes
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11707 ## ------------------------------------ ##
11708 ## Report this to http://llvm.org/bugs/ ##
11709 ## ------------------------------------ ##
11711 ) | sed "s/^/$as_me: WARNING: /" >&2
11714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 eval "$as_ac_Header=\$ac_header_preproc"
11721 ac_res=`eval echo '${'$as_ac_Header'}'`
11722 { echo "$as_me:$LINENO: result: $ac_res" >&5
11723 echo "${ECHO_T}$ac_res" >&6; }
11726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11727 cat >>confdefs.h <<_ACEOF
11728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11736 for ac_header in utime.h
11738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 ac_res=`eval echo '${'$as_ac_Header'}'`
11746 { echo "$as_me:$LINENO: result: $ac_res" >&5
11747 echo "${ECHO_T}$ac_res" >&6; }
11749 # Is the header compilable?
11750 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11752 cat >conftest.$ac_ext <<_ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 $ac_includes_default
11759 #include <$ac_header>
11761 rm -f conftest.$ac_objext
11762 if { (ac_try="$ac_compile"
11763 case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_compile") 2>conftest.er1
11770 grep -v '^ *+' conftest.er1 >conftest.err
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11776 { (case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_try") 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; } &&
11785 { ac_try='test -s conftest.$ac_objext'
11786 { (case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_try") 2>&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
11795 ac_header_compiler=yes
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 ac_header_compiler=no
11803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11805 echo "${ECHO_T}$ac_header_compiler" >&6; }
11807 # Is the header present?
11808 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11810 cat >conftest.$ac_ext <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 #include <$ac_header>
11818 if { (ac_try="$ac_cpp conftest.$ac_ext"
11819 case "(($ac_try" in
11820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821 *) ac_try_echo=$ac_try;;
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11826 grep -v '^ *+' conftest.er1 >conftest.err
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } >/dev/null; then
11831 if test -s conftest.err; then
11832 ac_cpp_err=$ac_c_preproc_warn_flag
11833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11840 if test -z "$ac_cpp_err"; then
11841 ac_header_preproc=yes
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 ac_header_preproc=no
11849 rm -f conftest.err conftest.$ac_ext
11850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11851 echo "${ECHO_T}$ac_header_preproc" >&6; }
11853 # So? What about this header?
11854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11860 ac_header_preproc=yes
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11876 ## ------------------------------------ ##
11877 ## Report this to http://llvm.org/bugs/ ##
11878 ## ------------------------------------ ##
11880 ) | sed "s/^/$as_me: WARNING: /" >&2
11883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11888 eval "$as_ac_Header=\$ac_header_preproc"
11890 ac_res=`eval echo '${'$as_ac_Header'}'`
11891 { echo "$as_me:$LINENO: result: $ac_res" >&5
11892 echo "${ECHO_T}$ac_res" >&6; }
11895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11896 cat >>confdefs.h <<_ACEOF
11897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11909 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 ac_res=`eval echo '${'$as_ac_Header'}'`
11919 { echo "$as_me:$LINENO: result: $ac_res" >&5
11920 echo "${ECHO_T}$ac_res" >&6; }
11922 # Is the header compilable?
11923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11925 cat >conftest.$ac_ext <<_ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 $ac_includes_default
11932 #include <$ac_header>
11934 rm -f conftest.$ac_objext
11935 if { (ac_try="$ac_compile"
11936 case "(($ac_try" in
11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941 (eval "$ac_compile") 2>conftest.er1
11943 grep -v '^ *+' conftest.er1 >conftest.err
11945 cat conftest.err >&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11949 { (case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_try") 2>&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; } &&
11958 { ac_try='test -s conftest.$ac_objext'
11959 { (case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_try") 2>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; }; then
11968 ac_header_compiler=yes
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 ac_header_compiler=no
11976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11978 echo "${ECHO_T}$ac_header_compiler" >&6; }
11980 # Is the header present?
11981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11983 cat >conftest.$ac_ext <<_ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 #include <$ac_header>
11991 if { (ac_try="$ac_cpp conftest.$ac_ext"
11992 case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11999 grep -v '^ *+' conftest.er1 >conftest.err
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } >/dev/null; then
12004 if test -s conftest.err; then
12005 ac_cpp_err=$ac_c_preproc_warn_flag
12006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12013 if test -z "$ac_cpp_err"; then
12014 ac_header_preproc=yes
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ac_header_preproc=no
12022 rm -f conftest.err conftest.$ac_ext
12023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12024 echo "${ECHO_T}$ac_header_preproc" >&6; }
12026 # So? What about this header?
12027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12033 ac_header_preproc=yes
12036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12049 ## ------------------------------------ ##
12050 ## Report this to http://llvm.org/bugs/ ##
12051 ## ------------------------------------ ##
12053 ) | sed "s/^/$as_me: WARNING: /" >&2
12056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12061 eval "$as_ac_Header=\$ac_header_preproc"
12063 ac_res=`eval echo '${'$as_ac_Header'}'`
12064 { echo "$as_me:$LINENO: result: $ac_res" >&5
12065 echo "${ECHO_T}$ac_res" >&6; }
12068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12069 cat >>confdefs.h <<_ACEOF
12070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12080 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12089 ac_res=`eval echo '${'$as_ac_Header'}'`
12090 { echo "$as_me:$LINENO: result: $ac_res" >&5
12091 echo "${ECHO_T}$ac_res" >&6; }
12093 # Is the header compilable?
12094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12096 cat >conftest.$ac_ext <<_ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12102 $ac_includes_default
12103 #include <$ac_header>
12105 rm -f conftest.$ac_objext
12106 if { (ac_try="$ac_compile"
12107 case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_compile") 2>conftest.er1
12114 grep -v '^ *+' conftest.er1 >conftest.err
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120 { (case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest.$ac_objext'
12130 { (case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_try") 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; }; then
12139 ac_header_compiler=yes
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12144 ac_header_compiler=no
12147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12149 echo "${ECHO_T}$ac_header_compiler" >&6; }
12151 # Is the header present?
12152 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12154 cat >conftest.$ac_ext <<_ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 #include <$ac_header>
12162 if { (ac_try="$ac_cpp conftest.$ac_ext"
12163 case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12170 grep -v '^ *+' conftest.er1 >conftest.err
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } >/dev/null; then
12175 if test -s conftest.err; then
12176 ac_cpp_err=$ac_c_preproc_warn_flag
12177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12184 if test -z "$ac_cpp_err"; then
12185 ac_header_preproc=yes
12187 echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12190 ac_header_preproc=no
12193 rm -f conftest.err conftest.$ac_ext
12194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12195 echo "${ECHO_T}$ac_header_preproc" >&6; }
12197 # So? What about this header?
12198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12204 ac_header_preproc=yes
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12220 ## ------------------------------------ ##
12221 ## Report this to http://llvm.org/bugs/ ##
12222 ## ------------------------------------ ##
12224 ) | sed "s/^/$as_me: WARNING: /" >&2
12227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 eval "$as_ac_Header=\$ac_header_preproc"
12234 ac_res=`eval echo '${'$as_ac_Header'}'`
12235 { echo "$as_me:$LINENO: result: $ac_res" >&5
12236 echo "${ECHO_T}$ac_res" >&6; }
12239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12240 cat >>confdefs.h <<_ACEOF
12241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12249 for ac_header in valgrind/valgrind.h
12251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 ac_res=`eval echo '${'$as_ac_Header'}'`
12259 { echo "$as_me:$LINENO: result: $ac_res" >&5
12260 echo "${ECHO_T}$ac_res" >&6; }
12262 # Is the header compilable?
12263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12265 cat >conftest.$ac_ext <<_ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12271 $ac_includes_default
12272 #include <$ac_header>
12274 rm -f conftest.$ac_objext
12275 if { (ac_try="$ac_compile"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_compile") 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289 { (case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_try") 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try='test -s conftest.$ac_objext'
12299 { (case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_try") 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 ac_header_compiler=yes
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ac_header_compiler=no
12316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12318 echo "${ECHO_T}$ac_header_compiler" >&6; }
12320 # Is the header present?
12321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12323 cat >conftest.$ac_ext <<_ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329 #include <$ac_header>
12331 if { (ac_try="$ac_cpp conftest.$ac_ext"
12332 case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12339 grep -v '^ *+' conftest.er1 >conftest.err
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } >/dev/null; then
12344 if test -s conftest.err; then
12345 ac_cpp_err=$ac_c_preproc_warn_flag
12346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12353 if test -z "$ac_cpp_err"; then
12354 ac_header_preproc=yes
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 ac_header_preproc=no
12362 rm -f conftest.err conftest.$ac_ext
12363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12364 echo "${ECHO_T}$ac_header_preproc" >&6; }
12366 # So? What about this header?
12367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12373 ac_header_preproc=yes
12376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12389 ## ------------------------------------ ##
12390 ## Report this to http://llvm.org/bugs/ ##
12391 ## ------------------------------------ ##
12393 ) | sed "s/^/$as_me: WARNING: /" >&2
12396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 eval "$as_ac_Header=\$ac_header_preproc"
12403 ac_res=`eval echo '${'$as_ac_Header'}'`
12404 { echo "$as_me:$LINENO: result: $ac_res" >&5
12405 echo "${ECHO_T}$ac_res" >&6; }
12408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12409 cat >>confdefs.h <<_ACEOF
12410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12418 for ac_header in fenv.h
12420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 ac_res=`eval echo '${'$as_ac_Header'}'`
12428 { echo "$as_me:$LINENO: result: $ac_res" >&5
12429 echo "${ECHO_T}$ac_res" >&6; }
12431 # Is the header compilable?
12432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12434 cat >conftest.$ac_ext <<_ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12440 $ac_includes_default
12441 #include <$ac_header>
12443 rm -f conftest.$ac_objext
12444 if { (ac_try="$ac_compile"
12445 case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_compile") 2>conftest.er1
12452 grep -v '^ *+' conftest.er1 >conftest.err
12454 cat conftest.err >&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } &&
12457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12458 { (case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_try") 2>&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; } &&
12467 { ac_try='test -s conftest.$ac_objext'
12468 { (case "(($ac_try" in
12469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470 *) ac_try_echo=$ac_try;;
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473 (eval "$ac_try") 2>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12477 ac_header_compiler=yes
12479 echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12482 ac_header_compiler=no
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12487 echo "${ECHO_T}$ac_header_compiler" >&6; }
12489 # Is the header present?
12490 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12492 cat >conftest.$ac_ext <<_ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12498 #include <$ac_header>
12500 if { (ac_try="$ac_cpp conftest.$ac_ext"
12501 case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12508 grep -v '^ *+' conftest.er1 >conftest.err
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } >/dev/null; then
12513 if test -s conftest.err; then
12514 ac_cpp_err=$ac_c_preproc_warn_flag
12515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12522 if test -z "$ac_cpp_err"; then
12523 ac_header_preproc=yes
12525 echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12528 ac_header_preproc=no
12531 rm -f conftest.err conftest.$ac_ext
12532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12533 echo "${ECHO_T}$ac_header_preproc" >&6; }
12535 # So? What about this header?
12536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12542 ac_header_preproc=yes
12545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12558 ## ------------------------------------ ##
12559 ## Report this to http://llvm.org/bugs/ ##
12560 ## ------------------------------------ ##
12562 ) | sed "s/^/$as_me: WARNING: /" >&2
12565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 eval "$as_ac_Header=\$ac_header_preproc"
12572 ac_res=`eval echo '${'$as_ac_Header'}'`
12573 { echo "$as_me:$LINENO: result: $ac_res" >&5
12574 echo "${ECHO_T}$ac_res" >&6; }
12577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12578 cat >>confdefs.h <<_ACEOF
12579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12586 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12587 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12588 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 cat >conftest.$ac_ext <<_ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12602 #ifndef FE_ALL_EXCEPT
12603 char *p = (char *) FE_ALL_EXCEPT;
12611 rm -f conftest.$ac_objext
12612 if { (ac_try="$ac_compile"
12613 case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_compile") 2>conftest.er1
12620 grep -v '^ *+' conftest.er1 >conftest.err
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12626 { (case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_try") 2>&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } &&
12635 { ac_try='test -s conftest.$ac_objext'
12636 { (case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_try") 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12650 ac_cv_have_decl_FE_ALL_EXCEPT=no
12653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12655 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12656 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12657 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12659 cat >>confdefs.h <<_ACEOF
12660 #define HAVE_DECL_FE_ALL_EXCEPT 1
12665 cat >>confdefs.h <<_ACEOF
12666 #define HAVE_DECL_FE_ALL_EXCEPT 0
12671 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12672 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12673 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 cat >conftest.$ac_ext <<_ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12688 char *p = (char *) FE_INEXACT;
12696 rm -f conftest.$ac_objext
12697 if { (ac_try="$ac_compile"
12698 case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_compile") 2>conftest.er1
12705 grep -v '^ *+' conftest.er1 >conftest.err
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12711 { (case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_try") 2>&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; } &&
12720 { ac_try='test -s conftest.$ac_objext'
12721 { (case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_try") 2>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; }; then
12730 ac_cv_have_decl_FE_INEXACT=yes
12732 echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12735 ac_cv_have_decl_FE_INEXACT=no
12738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12740 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12741 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12742 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12744 cat >>confdefs.h <<_ACEOF
12745 #define HAVE_DECL_FE_INEXACT 1
12750 cat >>confdefs.h <<_ACEOF
12751 #define HAVE_DECL_FE_INEXACT 0
12758 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12760 for ac_header in pthread.h
12762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 ac_res=`eval echo '${'$as_ac_Header'}'`
12770 { echo "$as_me:$LINENO: result: $ac_res" >&5
12771 echo "${ECHO_T}$ac_res" >&6; }
12773 # Is the header compilable?
12774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12776 cat >conftest.$ac_ext <<_ACEOF
12779 cat confdefs.h >>conftest.$ac_ext
12780 cat >>conftest.$ac_ext <<_ACEOF
12781 /* end confdefs.h. */
12782 $ac_includes_default
12783 #include <$ac_header>
12785 rm -f conftest.$ac_objext
12786 if { (ac_try="$ac_compile"
12787 case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_compile") 2>conftest.er1
12794 grep -v '^ *+' conftest.er1 >conftest.err
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } &&
12799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12800 { (case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_try") 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; }; then
12819 ac_header_compiler=yes
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12824 ac_header_compiler=no
12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12829 echo "${ECHO_T}$ac_header_compiler" >&6; }
12831 # Is the header present?
12832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12834 cat >conftest.$ac_ext <<_ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12840 #include <$ac_header>
12842 if { (ac_try="$ac_cpp conftest.$ac_ext"
12843 case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12850 grep -v '^ *+' conftest.er1 >conftest.err
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } >/dev/null; then
12855 if test -s conftest.err; then
12856 ac_cpp_err=$ac_c_preproc_warn_flag
12857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12864 if test -z "$ac_cpp_err"; then
12865 ac_header_preproc=yes
12867 echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12870 ac_header_preproc=no
12873 rm -f conftest.err conftest.$ac_ext
12874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12875 echo "${ECHO_T}$ac_header_preproc" >&6; }
12877 # So? What about this header?
12878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12884 ac_header_preproc=yes
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12900 ## ------------------------------------ ##
12901 ## Report this to http://llvm.org/bugs/ ##
12902 ## ------------------------------------ ##
12904 ) | sed "s/^/$as_me: WARNING: /" >&2
12907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12912 eval "$as_ac_Header=\$ac_header_preproc"
12914 ac_res=`eval echo '${'$as_ac_Header'}'`
12915 { echo "$as_me:$LINENO: result: $ac_res" >&5
12916 echo "${ECHO_T}$ac_res" >&6; }
12919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12920 cat >>confdefs.h <<_ACEOF
12921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12936 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12938 for ac_header in zlib.h
12940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 ac_res=`eval echo '${'$as_ac_Header'}'`
12948 { echo "$as_me:$LINENO: result: $ac_res" >&5
12949 echo "${ECHO_T}$ac_res" >&6; }
12951 # Is the header compilable?
12952 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12954 cat >conftest.$ac_ext <<_ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12960 $ac_includes_default
12961 #include <$ac_header>
12963 rm -f conftest.$ac_objext
12964 if { (ac_try="$ac_compile"
12965 case "(($ac_try" in
12966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970 (eval "$ac_compile") 2>conftest.er1
12972 grep -v '^ *+' conftest.er1 >conftest.err
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12978 { (case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_try") 2>&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; } &&
12987 { ac_try='test -s conftest.$ac_objext'
12988 { (case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_try") 2>&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12997 ac_header_compiler=yes
12999 echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13002 ac_header_compiler=no
13005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13007 echo "${ECHO_T}$ac_header_compiler" >&6; }
13009 # Is the header present?
13010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13012 cat >conftest.$ac_ext <<_ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13018 #include <$ac_header>
13020 if { (ac_try="$ac_cpp conftest.$ac_ext"
13021 case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13028 grep -v '^ *+' conftest.er1 >conftest.err
13030 cat conftest.err >&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } >/dev/null; then
13033 if test -s conftest.err; then
13034 ac_cpp_err=$ac_c_preproc_warn_flag
13035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13042 if test -z "$ac_cpp_err"; then
13043 ac_header_preproc=yes
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13048 ac_header_preproc=no
13051 rm -f conftest.err conftest.$ac_ext
13052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13053 echo "${ECHO_T}$ac_header_preproc" >&6; }
13055 # So? What about this header?
13056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13062 ac_header_preproc=yes
13065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13078 ## ------------------------------------ ##
13079 ## Report this to http://llvm.org/bugs/ ##
13080 ## ------------------------------------ ##
13082 ) | sed "s/^/$as_me: WARNING: /" >&2
13085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 eval "$as_ac_Header=\$ac_header_preproc"
13092 ac_res=`eval echo '${'$as_ac_Header'}'`
13093 { echo "$as_me:$LINENO: result: $ac_res" >&5
13094 echo "${ECHO_T}$ac_res" >&6; }
13097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13098 cat >>confdefs.h <<_ACEOF
13099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13115 if test "$llvm_cv_enable_libffi" = "yes" ; then
13118 for ac_header in ffi.h ffi/ffi.h
13120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 ac_res=`eval echo '${'$as_ac_Header'}'`
13128 { echo "$as_me:$LINENO: result: $ac_res" >&5
13129 echo "${ECHO_T}$ac_res" >&6; }
13131 # Is the header compilable?
13132 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13134 cat >conftest.$ac_ext <<_ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13140 $ac_includes_default
13141 #include <$ac_header>
13143 rm -f conftest.$ac_objext
13144 if { (ac_try="$ac_compile"
13145 case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_compile") 2>conftest.er1
13152 grep -v '^ *+' conftest.er1 >conftest.err
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } &&
13157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13158 { (case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163 (eval "$ac_try") 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; } &&
13167 { ac_try='test -s conftest.$ac_objext'
13168 { (case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_try") 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_header_compiler=yes
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 ac_header_compiler=no
13185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13187 echo "${ECHO_T}$ac_header_compiler" >&6; }
13189 # Is the header present?
13190 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13192 cat >conftest.$ac_ext <<_ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13198 #include <$ac_header>
13200 if { (ac_try="$ac_cpp conftest.$ac_ext"
13201 case "(($ac_try" in
13202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13208 grep -v '^ *+' conftest.er1 >conftest.err
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } >/dev/null; then
13213 if test -s conftest.err; then
13214 ac_cpp_err=$ac_c_preproc_warn_flag
13215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13222 if test -z "$ac_cpp_err"; then
13223 ac_header_preproc=yes
13225 echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13228 ac_header_preproc=no
13231 rm -f conftest.err conftest.$ac_ext
13232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13233 echo "${ECHO_T}$ac_header_preproc" >&6; }
13235 # So? What about this header?
13236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13242 ac_header_preproc=yes
13245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13258 ## ------------------------------------ ##
13259 ## Report this to http://llvm.org/bugs/ ##
13260 ## ------------------------------------ ##
13262 ) | sed "s/^/$as_me: WARNING: /" >&2
13265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 eval "$as_ac_Header=\$ac_header_preproc"
13272 ac_res=`eval echo '${'$as_ac_Header'}'`
13273 { echo "$as_me:$LINENO: result: $ac_res" >&5
13274 echo "${ECHO_T}$ac_res" >&6; }
13277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13278 cat >>confdefs.h <<_ACEOF
13279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13289 for ac_header in CrashReporterClient.h
13291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 ac_res=`eval echo '${'$as_ac_Header'}'`
13299 { echo "$as_me:$LINENO: result: $ac_res" >&5
13300 echo "${ECHO_T}$ac_res" >&6; }
13302 # Is the header compilable?
13303 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13305 cat >conftest.$ac_ext <<_ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 $ac_includes_default
13312 #include <$ac_header>
13314 rm -f conftest.$ac_objext
13315 if { (ac_try="$ac_compile"
13316 case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_compile") 2>conftest.er1
13323 grep -v '^ *+' conftest.er1 >conftest.err
13325 cat conftest.err >&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } &&
13328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13329 { (case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_try") 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest.$ac_objext'
13339 { (case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_try") 2>&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_header_compiler=yes
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13353 ac_header_compiler=no
13356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13358 echo "${ECHO_T}$ac_header_compiler" >&6; }
13360 # Is the header present?
13361 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13363 cat >conftest.$ac_ext <<_ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13369 #include <$ac_header>
13371 if { (ac_try="$ac_cpp conftest.$ac_ext"
13372 case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13379 grep -v '^ *+' conftest.er1 >conftest.err
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } >/dev/null; then
13384 if test -s conftest.err; then
13385 ac_cpp_err=$ac_c_preproc_warn_flag
13386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13393 if test -z "$ac_cpp_err"; then
13394 ac_header_preproc=yes
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13399 ac_header_preproc=no
13402 rm -f conftest.err conftest.$ac_ext
13403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13404 echo "${ECHO_T}$ac_header_preproc" >&6; }
13406 # So? What about this header?
13407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13413 ac_header_preproc=yes
13416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13429 ## ------------------------------------ ##
13430 ## Report this to http://llvm.org/bugs/ ##
13431 ## ------------------------------------ ##
13433 ) | sed "s/^/$as_me: WARNING: /" >&2
13436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 eval "$as_ac_Header=\$ac_header_preproc"
13443 ac_res=`eval echo '${'$as_ac_Header'}'`
13444 { echo "$as_me:$LINENO: result: $ac_res" >&5
13445 echo "${ECHO_T}$ac_res" >&6; }
13448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13449 cat >>confdefs.h <<_ACEOF
13450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13458 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13459 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13460 cat >conftest.$ac_ext <<_ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13468 extern const char *__crashreporter_info__;
13470 __crashreporter_info__ = "test";
13476 rm -f conftest.$ac_objext conftest$ac_exeext
13477 if { (ac_try="$ac_link"
13478 case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_link") 2>conftest.er1
13485 grep -v '^ *+' conftest.er1 >conftest.err
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
13490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13491 { (case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_try") 2>&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; } &&
13500 { ac_try='test -s conftest$ac_exeext'
13501 { (case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_try") 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13511 { echo "$as_me:$LINENO: result: yes" >&5
13512 echo "${ECHO_T}yes" >&6; }
13514 cat >>confdefs.h <<\_ACEOF
13515 #define HAVE_CRASHREPORTER_INFO 1
13520 echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13524 { echo "$as_me:$LINENO: result: no" >&5
13525 echo "${ECHO_T}no" >&6; }
13527 cat >>confdefs.h <<\_ACEOF
13528 #define HAVE_CRASHREPORTER_INFO 0
13534 rm -f core conftest.err conftest.$ac_objext \
13535 conftest$ac_exeext conftest.$ac_ext
13539 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13540 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13541 if test "${ac_cv_huge_val_sanity+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 ac_cpp='$CXXCPP $CPPFLAGS'
13547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13551 ac_save_CXXFLAGS=$CXXFLAGS
13552 CXXFLAGS="$CXXFLAGS -pedantic"
13553 if test "$cross_compiling" = yes; then
13554 ac_cv_huge_val_sanity=yes
13556 cat >conftest.$ac_ext <<_ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13566 double x = HUGE_VAL; return x != x;
13571 rm -f conftest$ac_exeext
13572 if { (ac_try="$ac_link"
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_link") 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13582 { (case "(($ac_try" in
13583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584 *) ac_try_echo=$ac_try;;
13586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587 (eval "$ac_try") 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
13591 ac_cv_huge_val_sanity=yes
13593 echo "$as_me: program exited with status $ac_status" >&5
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ( exit $ac_status )
13598 ac_cv_huge_val_sanity=no
13600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13604 CXXFLAGS=$ac_save_CXXFLAGS
13606 ac_cpp='$CPP $CPPFLAGS'
13607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13613 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13614 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13615 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13618 { echo "$as_me:$LINENO: checking for pid_t" >&5
13619 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13620 if test "${ac_cv_type_pid_t+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 cat >conftest.$ac_ext <<_ACEOF
13626 cat confdefs.h >>conftest.$ac_ext
13627 cat >>conftest.$ac_ext <<_ACEOF
13628 /* end confdefs.h. */
13629 $ac_includes_default
13630 typedef pid_t ac__type_new_;
13634 if ((ac__type_new_ *) 0)
13636 if (sizeof (ac__type_new_))
13642 rm -f conftest.$ac_objext
13643 if { (ac_try="$ac_compile"
13644 case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649 (eval "$ac_compile") 2>conftest.er1
13651 grep -v '^ *+' conftest.er1 >conftest.err
13653 cat conftest.err >&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } &&
13656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13657 { (case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662 (eval "$ac_try") 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; } &&
13666 { ac_try='test -s conftest.$ac_objext'
13667 { (case "(($ac_try" in
13668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_try") 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 ac_cv_type_pid_t=yes
13678 echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13681 ac_cv_type_pid_t=no
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13686 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13687 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13688 if test $ac_cv_type_pid_t = yes; then
13692 cat >>confdefs.h <<_ACEOF
13698 { echo "$as_me:$LINENO: checking for size_t" >&5
13699 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13700 if test "${ac_cv_type_size_t+set}" = set; then
13701 echo $ECHO_N "(cached) $ECHO_C" >&6
13703 cat >conftest.$ac_ext <<_ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13709 $ac_includes_default
13710 typedef size_t ac__type_new_;
13714 if ((ac__type_new_ *) 0)
13716 if (sizeof (ac__type_new_))
13722 rm -f conftest.$ac_objext
13723 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13731 grep -v '^ *+' conftest.er1 >conftest.err
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } &&
13736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13737 { (case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_try") 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest.$ac_objext'
13747 { (case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_try") 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; }; then
13756 ac_cv_type_size_t=yes
13758 echo "$as_me: failed program was:" >&5
13759 sed 's/^/| /' conftest.$ac_ext >&5
13761 ac_cv_type_size_t=no
13764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13766 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13767 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13768 if test $ac_cv_type_size_t = yes; then
13772 cat >>confdefs.h <<_ACEOF
13773 #define size_t unsigned int
13779 cat >>confdefs.h <<_ACEOF
13780 #define RETSIGTYPE void
13783 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13784 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13785 if test "${ac_cv_struct_tm+set}" = set; then
13786 echo $ECHO_N "(cached) $ECHO_C" >&6
13788 cat >conftest.$ac_ext <<_ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13794 #include <sys/types.h>
13800 struct tm *tp; tp->tm_sec;
13805 rm -f conftest.$ac_objext
13806 if { (ac_try="$ac_compile"
13807 case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_compile") 2>conftest.er1
13814 grep -v '^ *+' conftest.er1 >conftest.err
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13820 { (case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_try") 2>&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; } &&
13829 { ac_try='test -s conftest.$ac_objext'
13830 { (case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_try") 2>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; }; then
13839 ac_cv_struct_tm=time.h
13841 echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.$ac_ext >&5
13844 ac_cv_struct_tm=sys/time.h
13847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13850 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13851 if test $ac_cv_struct_tm = sys/time.h; then
13853 cat >>confdefs.h <<\_ACEOF
13854 #define TM_IN_SYS_TIME 1
13859 { echo "$as_me:$LINENO: checking for int64_t" >&5
13860 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13861 if test "${ac_cv_type_int64_t+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 cat >conftest.$ac_ext <<_ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 $ac_includes_default
13871 typedef int64_t ac__type_new_;
13875 if ((ac__type_new_ *) 0)
13877 if (sizeof (ac__type_new_))
13883 rm -f conftest.$ac_objext
13884 if { (ac_try="$ac_compile"
13885 case "(($ac_try" in
13886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890 (eval "$ac_compile") 2>conftest.er1
13892 grep -v '^ *+' conftest.er1 >conftest.err
13894 cat conftest.err >&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } &&
13897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13898 { (case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_try") 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; } &&
13907 { ac_try='test -s conftest.$ac_objext'
13908 { (case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_try") 2>&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13917 ac_cv_type_int64_t=yes
13919 echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13922 ac_cv_type_int64_t=no
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13927 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13928 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13929 if test $ac_cv_type_int64_t = yes; then
13931 cat >>confdefs.h <<_ACEOF
13932 #define HAVE_INT64_T 1
13937 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13938 echo "$as_me: error: Type int64_t required but not found" >&2;}
13939 { (exit 1); exit 1; }; }
13942 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13943 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13944 if test "${ac_cv_type_uint64_t+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 cat >conftest.$ac_ext <<_ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 $ac_includes_default
13954 typedef uint64_t ac__type_new_;
13958 if ((ac__type_new_ *) 0)
13960 if (sizeof (ac__type_new_))
13966 rm -f conftest.$ac_objext
13967 if { (ac_try="$ac_compile"
13968 case "(($ac_try" in
13969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_compile") 2>conftest.er1
13975 grep -v '^ *+' conftest.er1 >conftest.err
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13981 { (case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_try") 2>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest.$ac_objext'
13991 { (case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_try") 2>&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14000 ac_cv_type_uint64_t=yes
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_cv_type_uint64_t=no
14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14011 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14012 if test $ac_cv_type_uint64_t = yes; then
14014 cat >>confdefs.h <<_ACEOF
14015 #define HAVE_UINT64_T 1
14020 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14021 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14022 if test "${ac_cv_type_u_int64_t+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 cat >conftest.$ac_ext <<_ACEOF
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h. */
14031 $ac_includes_default
14032 typedef u_int64_t ac__type_new_;
14036 if ((ac__type_new_ *) 0)
14038 if (sizeof (ac__type_new_))
14044 rm -f conftest.$ac_objext
14045 if { (ac_try="$ac_compile"
14046 case "(($ac_try" in
14047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14048 *) ac_try_echo=$ac_try;;
14050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14051 (eval "$ac_compile") 2>conftest.er1
14053 grep -v '^ *+' conftest.er1 >conftest.err
14055 cat conftest.err >&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } &&
14058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14059 { (case "(($ac_try" in
14060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061 *) ac_try_echo=$ac_try;;
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064 (eval "$ac_try") 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; } &&
14068 { ac_try='test -s conftest.$ac_objext'
14069 { (case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_try") 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 ac_cv_type_u_int64_t=yes
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14083 ac_cv_type_u_int64_t=no
14086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14089 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14090 if test $ac_cv_type_u_int64_t = yes; then
14092 cat >>confdefs.h <<_ACEOF
14093 #define HAVE_U_INT64_T 1
14098 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14099 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14100 { (exit 1); exit 1; }; }
14109 for ac_func in backtrace getcwd
14111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 cat >conftest.$ac_ext <<_ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14125 #define $ac_func innocuous_$ac_func
14127 /* System header to define __stub macros and hopefully few prototypes,
14128 which can conflict with char $ac_func (); below.
14129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14130 <limits.h> exists even on freestanding compilers. */
14133 # include <limits.h>
14135 # include <assert.h>
14140 /* Override any GCC internal prototype to avoid an error.
14141 Use char because int might match the return type of a GCC
14142 builtin and then its argument prototype would still apply. */
14147 /* The GNU C library defines this for functions which it implements
14148 to always fail with ENOSYS. Some functions are actually named
14149 something starting with __ and the normal name is an alias. */
14150 #if defined __stub_$ac_func || defined __stub___$ac_func
14157 return $ac_func ();
14162 rm -f conftest.$ac_objext conftest$ac_exeext
14163 if { (ac_try="$ac_link"
14164 case "(($ac_try" in
14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166 *) ac_try_echo=$ac_try;;
14168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14169 (eval "$ac_link") 2>conftest.er1
14171 grep -v '^ *+' conftest.er1 >conftest.err
14173 cat conftest.err >&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14177 { (case "(($ac_try" in
14178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 *) ac_try_echo=$ac_try;;
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 (eval "$ac_try") 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; } &&
14186 { ac_try='test -s conftest$ac_exeext'
14187 { (case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_try") 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 eval "$as_ac_var=yes"
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 eval "$as_ac_var=no"
14204 rm -f core conftest.err conftest.$ac_objext \
14205 conftest$ac_exeext conftest.$ac_ext
14207 ac_res=`eval echo '${'$as_ac_var'}'`
14208 { echo "$as_me:$LINENO: result: $ac_res" >&5
14209 echo "${ECHO_T}$ac_res" >&6; }
14210 if test `eval echo '${'$as_ac_var'}'` = yes; then
14211 cat >>confdefs.h <<_ACEOF
14212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14223 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 cat >conftest.$ac_ext <<_ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14239 #define $ac_func innocuous_$ac_func
14241 /* System header to define __stub macros and hopefully few prototypes,
14242 which can conflict with char $ac_func (); below.
14243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14244 <limits.h> exists even on freestanding compilers. */
14247 # include <limits.h>
14249 # include <assert.h>
14254 /* Override any GCC internal prototype to avoid an error.
14255 Use char because int might match the return type of a GCC
14256 builtin and then its argument prototype would still apply. */
14261 /* The GNU C library defines this for functions which it implements
14262 to always fail with ENOSYS. Some functions are actually named
14263 something starting with __ and the normal name is an alias. */
14264 #if defined __stub_$ac_func || defined __stub___$ac_func
14271 return $ac_func ();
14276 rm -f conftest.$ac_objext conftest$ac_exeext
14277 if { (ac_try="$ac_link"
14278 case "(($ac_try" in
14279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280 *) ac_try_echo=$ac_try;;
14282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283 (eval "$ac_link") 2>conftest.er1
14285 grep -v '^ *+' conftest.er1 >conftest.err
14287 cat conftest.err >&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } &&
14290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14291 { (case "(($ac_try" in
14292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296 (eval "$ac_try") 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; } &&
14300 { ac_try='test -s conftest$ac_exeext'
14301 { (case "(($ac_try" in
14302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303 *) ac_try_echo=$ac_try;;
14305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14306 (eval "$ac_try") 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 eval "$as_ac_var=yes"
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14315 eval "$as_ac_var=no"
14318 rm -f core conftest.err conftest.$ac_objext \
14319 conftest$ac_exeext conftest.$ac_ext
14321 ac_res=`eval echo '${'$as_ac_var'}'`
14322 { echo "$as_me:$LINENO: result: $ac_res" >&5
14323 echo "${ECHO_T}$ac_res" >&6; }
14324 if test `eval echo '${'$as_ac_var'}'` = yes; then
14325 cat >>confdefs.h <<_ACEOF
14326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14335 for ac_func in isatty mkdtemp mkstemp
14337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14343 cat >conftest.$ac_ext <<_ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h. */
14349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14351 #define $ac_func innocuous_$ac_func
14353 /* System header to define __stub macros and hopefully few prototypes,
14354 which can conflict with char $ac_func (); below.
14355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14356 <limits.h> exists even on freestanding compilers. */
14359 # include <limits.h>
14361 # include <assert.h>
14366 /* Override any GCC internal prototype to avoid an error.
14367 Use char because int might match the return type of a GCC
14368 builtin and then its argument prototype would still apply. */
14373 /* The GNU C library defines this for functions which it implements
14374 to always fail with ENOSYS. Some functions are actually named
14375 something starting with __ and the normal name is an alias. */
14376 #if defined __stub_$ac_func || defined __stub___$ac_func
14383 return $ac_func ();
14388 rm -f conftest.$ac_objext conftest$ac_exeext
14389 if { (ac_try="$ac_link"
14390 case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_link") 2>conftest.er1
14397 grep -v '^ *+' conftest.er1 >conftest.err
14399 cat conftest.err >&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
14402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14403 { (case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_try") 2>&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest$ac_exeext'
14413 { (case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418 (eval "$ac_try") 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 eval "$as_ac_var=yes"
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14427 eval "$as_ac_var=no"
14430 rm -f core conftest.err conftest.$ac_objext \
14431 conftest$ac_exeext conftest.$ac_ext
14433 ac_res=`eval echo '${'$as_ac_var'}'`
14434 { echo "$as_me:$LINENO: result: $ac_res" >&5
14435 echo "${ECHO_T}$ac_res" >&6; }
14436 if test `eval echo '${'$as_ac_var'}'` = yes; then
14437 cat >>confdefs.h <<_ACEOF
14438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14450 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14456 echo $ECHO_N "(cached) $ECHO_C" >&6
14458 cat >conftest.$ac_ext <<_ACEOF
14461 cat confdefs.h >>conftest.$ac_ext
14462 cat >>conftest.$ac_ext <<_ACEOF
14463 /* end confdefs.h. */
14464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14466 #define $ac_func innocuous_$ac_func
14468 /* System header to define __stub macros and hopefully few prototypes,
14469 which can conflict with char $ac_func (); below.
14470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14471 <limits.h> exists even on freestanding compilers. */
14474 # include <limits.h>
14476 # include <assert.h>
14481 /* Override any GCC internal prototype to avoid an error.
14482 Use char because int might match the return type of a GCC
14483 builtin and then its argument prototype would still apply. */
14488 /* The GNU C library defines this for functions which it implements
14489 to always fail with ENOSYS. Some functions are actually named
14490 something starting with __ and the normal name is an alias. */
14491 #if defined __stub_$ac_func || defined __stub___$ac_func
14498 return $ac_func ();
14503 rm -f conftest.$ac_objext conftest$ac_exeext
14504 if { (ac_try="$ac_link"
14505 case "(($ac_try" in
14506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14507 *) ac_try_echo=$ac_try;;
14509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14510 (eval "$ac_link") 2>conftest.er1
14512 grep -v '^ *+' conftest.er1 >conftest.err
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14518 { (case "(($ac_try" in
14519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520 *) ac_try_echo=$ac_try;;
14522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14523 (eval "$ac_try") 2>&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; } &&
14527 { ac_try='test -s conftest$ac_exeext'
14528 { (case "(($ac_try" in
14529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530 *) ac_try_echo=$ac_try;;
14532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533 (eval "$ac_try") 2>&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; }; then
14537 eval "$as_ac_var=yes"
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14542 eval "$as_ac_var=no"
14545 rm -f core conftest.err conftest.$ac_objext \
14546 conftest$ac_exeext conftest.$ac_ext
14548 ac_res=`eval echo '${'$as_ac_var'}'`
14549 { echo "$as_me:$LINENO: result: $ac_res" >&5
14550 echo "${ECHO_T}$ac_res" >&6; }
14551 if test `eval echo '${'$as_ac_var'}'` = yes; then
14552 cat >>confdefs.h <<_ACEOF
14553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14562 for ac_func in strerror strerror_r setenv
14564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 cat >conftest.$ac_ext <<_ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14578 #define $ac_func innocuous_$ac_func
14580 /* System header to define __stub macros and hopefully few prototypes,
14581 which can conflict with char $ac_func (); below.
14582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14583 <limits.h> exists even on freestanding compilers. */
14586 # include <limits.h>
14588 # include <assert.h>
14593 /* Override any GCC internal prototype to avoid an error.
14594 Use char because int might match the return type of a GCC
14595 builtin and then its argument prototype would still apply. */
14600 /* The GNU C library defines this for functions which it implements
14601 to always fail with ENOSYS. Some functions are actually named
14602 something starting with __ and the normal name is an alias. */
14603 #if defined __stub_$ac_func || defined __stub___$ac_func
14610 return $ac_func ();
14615 rm -f conftest.$ac_objext conftest$ac_exeext
14616 if { (ac_try="$ac_link"
14617 case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_link") 2>conftest.er1
14624 grep -v '^ *+' conftest.er1 >conftest.err
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
14629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14630 { (case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635 (eval "$ac_try") 2>&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; } &&
14639 { ac_try='test -s conftest$ac_exeext'
14640 { (case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_try") 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 eval "$as_ac_var=yes"
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14654 eval "$as_ac_var=no"
14657 rm -f core conftest.err conftest.$ac_objext \
14658 conftest$ac_exeext conftest.$ac_ext
14660 ac_res=`eval echo '${'$as_ac_var'}'`
14661 { echo "$as_me:$LINENO: result: $ac_res" >&5
14662 echo "${ECHO_T}$ac_res" >&6; }
14663 if test `eval echo '${'$as_ac_var'}'` = yes; then
14664 cat >>confdefs.h <<_ACEOF
14665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14675 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14683 cat >conftest.$ac_ext <<_ACEOF
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h. */
14689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14691 #define $ac_func innocuous_$ac_func
14693 /* System header to define __stub macros and hopefully few prototypes,
14694 which can conflict with char $ac_func (); below.
14695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14696 <limits.h> exists even on freestanding compilers. */
14699 # include <limits.h>
14701 # include <assert.h>
14706 /* Override any GCC internal prototype to avoid an error.
14707 Use char because int might match the return type of a GCC
14708 builtin and then its argument prototype would still apply. */
14713 /* The GNU C library defines this for functions which it implements
14714 to always fail with ENOSYS. Some functions are actually named
14715 something starting with __ and the normal name is an alias. */
14716 #if defined __stub_$ac_func || defined __stub___$ac_func
14723 return $ac_func ();
14728 rm -f conftest.$ac_objext conftest$ac_exeext
14729 if { (ac_try="$ac_link"
14730 case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735 (eval "$ac_link") 2>conftest.er1
14737 grep -v '^ *+' conftest.er1 >conftest.err
14739 cat conftest.err >&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } &&
14742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14743 { (case "(($ac_try" in
14744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745 *) ac_try_echo=$ac_try;;
14747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748 (eval "$ac_try") 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; } &&
14752 { ac_try='test -s conftest$ac_exeext'
14753 { (case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_try") 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 eval "$as_ac_var=yes"
14764 echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14767 eval "$as_ac_var=no"
14770 rm -f core conftest.err conftest.$ac_objext \
14771 conftest$ac_exeext conftest.$ac_ext
14773 ac_res=`eval echo '${'$as_ac_var'}'`
14774 { echo "$as_me:$LINENO: result: $ac_res" >&5
14775 echo "${ECHO_T}$ac_res" >&6; }
14776 if test `eval echo '${'$as_ac_var'}'` = yes; then
14777 cat >>confdefs.h <<_ACEOF
14778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14789 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14792 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 cat >conftest.$ac_ext <<_ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14805 #define $ac_func innocuous_$ac_func
14807 /* System header to define __stub macros and hopefully few prototypes,
14808 which can conflict with char $ac_func (); below.
14809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14810 <limits.h> exists even on freestanding compilers. */
14813 # include <limits.h>
14815 # include <assert.h>
14820 /* Override any GCC internal prototype to avoid an error.
14821 Use char because int might match the return type of a GCC
14822 builtin and then its argument prototype would still apply. */
14827 /* The GNU C library defines this for functions which it implements
14828 to always fail with ENOSYS. Some functions are actually named
14829 something starting with __ and the normal name is an alias. */
14830 #if defined __stub_$ac_func || defined __stub___$ac_func
14837 return $ac_func ();
14842 rm -f conftest.$ac_objext conftest$ac_exeext
14843 if { (ac_try="$ac_link"
14844 case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_link") 2>conftest.er1
14851 grep -v '^ *+' conftest.er1 >conftest.err
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14857 { (case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_try") 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest$ac_exeext'
14867 { (case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_try") 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
14876 eval "$as_ac_var=yes"
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14881 eval "$as_ac_var=no"
14884 rm -f core conftest.err conftest.$ac_objext \
14885 conftest$ac_exeext conftest.$ac_ext
14887 ac_res=`eval echo '${'$as_ac_var'}'`
14888 { echo "$as_me:$LINENO: result: $ac_res" >&5
14889 echo "${ECHO_T}$ac_res" >&6; }
14890 if test `eval echo '${'$as_ac_var'}'` = yes; then
14891 cat >>confdefs.h <<_ACEOF
14892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14900 for ac_func in futimes futimens
14902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14908 cat >conftest.$ac_ext <<_ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h. */
14914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14916 #define $ac_func innocuous_$ac_func
14918 /* System header to define __stub macros and hopefully few prototypes,
14919 which can conflict with char $ac_func (); below.
14920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14921 <limits.h> exists even on freestanding compilers. */
14924 # include <limits.h>
14926 # include <assert.h>
14931 /* Override any GCC internal prototype to avoid an error.
14932 Use char because int might match the return type of a GCC
14933 builtin and then its argument prototype would still apply. */
14938 /* The GNU C library defines this for functions which it implements
14939 to always fail with ENOSYS. Some functions are actually named
14940 something starting with __ and the normal name is an alias. */
14941 #if defined __stub_$ac_func || defined __stub___$ac_func
14948 return $ac_func ();
14953 rm -f conftest.$ac_objext conftest$ac_exeext
14954 if { (ac_try="$ac_link"
14955 case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_link") 2>conftest.er1
14962 grep -v '^ *+' conftest.er1 >conftest.err
14964 cat conftest.err >&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } &&
14967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14968 { (case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_try") 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; } &&
14977 { ac_try='test -s conftest$ac_exeext'
14978 { (case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_try") 2>&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
14987 eval "$as_ac_var=yes"
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14992 eval "$as_ac_var=no"
14995 rm -f core conftest.err conftest.$ac_objext \
14996 conftest$ac_exeext conftest.$ac_ext
14998 ac_res=`eval echo '${'$as_ac_var'}'`
14999 { echo "$as_me:$LINENO: result: $ac_res" >&5
15000 echo "${ECHO_T}$ac_res" >&6; }
15001 if test `eval echo '${'$as_ac_var'}'` = yes; then
15002 cat >>confdefs.h <<_ACEOF
15003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15009 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15010 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15011 if test "${llvm_cv_c_printf_a+set}" = set; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 ac_cpp='$CPP $CPPFLAGS'
15016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15020 if test "$cross_compiling" = yes; then
15021 llvmac_cv_c_printf_a=no
15023 cat >conftest.$ac_ext <<_ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15032 #include <stdlib.h>
15038 volatile double A, B;
15042 sprintf(Buffer, "%a", A);
15046 if (A != 0x1.999999999999ap-4)
15053 rm -f conftest$ac_exeext
15054 if { (ac_try="$ac_link"
15055 case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_link") 2>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15064 { (case "(($ac_try" in
15065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066 *) ac_try_echo=$ac_try;;
15068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069 (eval "$ac_try") 2>&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }; then
15073 llvm_cv_c_printf_a=yes
15075 echo "$as_me: program exited with status $ac_status" >&5
15076 echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15079 ( exit $ac_status )
15080 llvmac_cv_c_printf_a=no
15082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15087 ac_cpp='$CPP $CPPFLAGS'
15088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15093 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15094 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15095 if test "$llvm_cv_c_printf_a" = "yes"; then
15097 cat >>confdefs.h <<\_ACEOF
15098 #define HAVE_PRINTF_A 1
15105 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15106 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15107 if test "${ac_cv_func_rand48+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 ac_cpp='$CXXCPP $CPPFLAGS'
15113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15117 cat >conftest.$ac_ext <<_ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15123 #include <stdlib.h>
15127 srand48(0);lrand48();drand48();
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_compile") 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } &&
15146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15147 { (case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_try") 2>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; } &&
15156 { ac_try='test -s conftest.$ac_objext'
15157 { (case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_try") 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15166 ac_cv_func_rand48=yes
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 ac_cv_func_rand48=no
15174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176 ac_cpp='$CPP $CPPFLAGS'
15177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15183 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15184 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15186 if test "$ac_cv_func_rand48" = "yes" ; then
15188 cat >>confdefs.h <<\_ACEOF
15189 #define HAVE_RAND48 1
15195 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15196 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15197 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 cat >conftest.$ac_ext <<_ACEOF
15203 cat confdefs.h >>conftest.$ac_ext
15204 cat >>conftest.$ac_ext <<_ACEOF
15205 /* end confdefs.h. */
15206 $ac_includes_default
15211 char *p = (char *) arc4random;
15219 rm -f conftest.$ac_objext
15220 if { (ac_try="$ac_compile"
15221 case "(($ac_try" in
15222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223 *) ac_try_echo=$ac_try;;
15225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226 (eval "$ac_compile") 2>conftest.er1
15228 grep -v '^ *+' conftest.er1 >conftest.err
15230 cat conftest.err >&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } &&
15233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15234 { (case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239 (eval "$ac_try") 2>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; } &&
15243 { ac_try='test -s conftest.$ac_objext'
15244 { (case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_try") 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; }; then
15253 ac_cv_have_decl_arc4random=yes
15255 echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15258 ac_cv_have_decl_arc4random=no
15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15263 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15264 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15265 if test $ac_cv_have_decl_arc4random = yes; then
15267 cat >>confdefs.h <<_ACEOF
15268 #define HAVE_DECL_ARC4RANDOM 1
15273 cat >>confdefs.h <<_ACEOF
15274 #define HAVE_DECL_ARC4RANDOM 0
15282 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15283 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15284 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 cat >conftest.$ac_ext <<_ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 $ac_includes_default
15298 char *p = (char *) strerror_s;
15306 rm -f conftest.$ac_objext
15307 if { (ac_try="$ac_compile"
15308 case "(($ac_try" in
15309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310 *) ac_try_echo=$ac_try;;
15312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15313 (eval "$ac_compile") 2>conftest.er1
15315 grep -v '^ *+' conftest.er1 >conftest.err
15317 cat conftest.err >&5
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } &&
15320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15321 { (case "(($ac_try" in
15322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323 *) ac_try_echo=$ac_try;;
15325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326 (eval "$ac_try") 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; } &&
15330 { ac_try='test -s conftest.$ac_objext'
15331 { (case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_try") 2>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }; then
15340 ac_cv_have_decl_strerror_s=yes
15342 echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15345 ac_cv_have_decl_strerror_s=no
15348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15350 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15351 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15352 if test $ac_cv_have_decl_strerror_s = yes; then
15354 cat >>confdefs.h <<_ACEOF
15355 #define HAVE_DECL_STRERROR_S 1
15360 cat >>confdefs.h <<_ACEOF
15361 #define HAVE_DECL_STRERROR_S 0
15369 if test "$llvm_cv_os_type" = "MingW" ; then
15370 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15371 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15372 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15375 ac_check_lib_save_LIBS=$LIBS
15377 cat >conftest.$ac_ext <<_ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15384 /* Override any GCC internal prototype to avoid an error.
15385 Use char because int might match the return type of a GCC
15386 builtin and then its argument prototype would still apply. */
15399 rm -f conftest.$ac_objext conftest$ac_exeext
15400 if { (ac_try="$ac_link"
15401 case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_link") 2>conftest.er1
15408 grep -v '^ *+' conftest.er1 >conftest.err
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
15413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15414 { (case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_try") 2>&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; } &&
15423 { ac_try='test -s conftest$ac_exeext'
15424 { (case "(($ac_try" in
15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426 *) ac_try_echo=$ac_try;;
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429 (eval "$ac_try") 2>&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15433 ac_cv_lib_gcc__alloca=yes
15435 echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15438 ac_cv_lib_gcc__alloca=no
15441 rm -f core conftest.err conftest.$ac_objext \
15442 conftest$ac_exeext conftest.$ac_ext
15443 LIBS=$ac_check_lib_save_LIBS
15445 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15446 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15447 if test $ac_cv_lib_gcc__alloca = yes; then
15449 cat >>confdefs.h <<\_ACEOF
15450 #define HAVE__ALLOCA 1
15455 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15456 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15457 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 ac_check_lib_save_LIBS=$LIBS
15462 cat >conftest.$ac_ext <<_ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15469 /* Override any GCC internal prototype to avoid an error.
15470 Use char because int might match the return type of a GCC
15471 builtin and then its argument prototype would still apply. */
15479 return __alloca ();
15484 rm -f conftest.$ac_objext conftest$ac_exeext
15485 if { (ac_try="$ac_link"
15486 case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_link") 2>conftest.er1
15493 grep -v '^ *+' conftest.er1 >conftest.err
15495 cat conftest.err >&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } &&
15498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15499 { (case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_try") 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; } &&
15508 { ac_try='test -s conftest$ac_exeext'
15509 { (case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_try") 2>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518 ac_cv_lib_gcc___alloca=yes
15520 echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15523 ac_cv_lib_gcc___alloca=no
15526 rm -f core conftest.err conftest.$ac_objext \
15527 conftest$ac_exeext conftest.$ac_ext
15528 LIBS=$ac_check_lib_save_LIBS
15530 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15531 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15532 if test $ac_cv_lib_gcc___alloca = yes; then
15534 cat >>confdefs.h <<\_ACEOF
15535 #define HAVE___ALLOCA 1
15540 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15541 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15542 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 ac_check_lib_save_LIBS=$LIBS
15547 cat >conftest.$ac_ext <<_ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h. */
15554 /* Override any GCC internal prototype to avoid an error.
15555 Use char because int might match the return type of a GCC
15556 builtin and then its argument prototype would still apply. */
15564 return __chkstk ();
15569 rm -f conftest.$ac_objext conftest$ac_exeext
15570 if { (ac_try="$ac_link"
15571 case "(($ac_try" in
15572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573 *) ac_try_echo=$ac_try;;
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576 (eval "$ac_link") 2>conftest.er1
15578 grep -v '^ *+' conftest.er1 >conftest.err
15580 cat conftest.err >&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
15583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15584 { (case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_try") 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest$ac_exeext'
15594 { (case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_try") 2>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; }; then
15603 ac_cv_lib_gcc___chkstk=yes
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ac_cv_lib_gcc___chkstk=no
15611 rm -f core conftest.err conftest.$ac_objext \
15612 conftest$ac_exeext conftest.$ac_ext
15613 LIBS=$ac_check_lib_save_LIBS
15615 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15616 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15617 if test $ac_cv_lib_gcc___chkstk = yes; then
15619 cat >>confdefs.h <<\_ACEOF
15620 #define HAVE___CHKSTK 1
15625 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15626 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15627 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15630 ac_check_lib_save_LIBS=$LIBS
15632 cat >conftest.$ac_ext <<_ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15639 /* Override any GCC internal prototype to avoid an error.
15640 Use char because int might match the return type of a GCC
15641 builtin and then its argument prototype would still apply. */
15645 char __chkstk_ms ();
15649 return __chkstk_ms ();
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_link") 2>conftest.er1
15663 grep -v '^ *+' conftest.er1 >conftest.err
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } &&
15668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15669 { (case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_try") 2>&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; } &&
15678 { ac_try='test -s conftest$ac_exeext'
15679 { (case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_try") 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }; then
15688 ac_cv_lib_gcc___chkstk_ms=yes
15690 echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15693 ac_cv_lib_gcc___chkstk_ms=no
15696 rm -f core conftest.err conftest.$ac_objext \
15697 conftest$ac_exeext conftest.$ac_ext
15698 LIBS=$ac_check_lib_save_LIBS
15700 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15701 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15702 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15704 cat >>confdefs.h <<\_ACEOF
15705 #define HAVE___CHKSTK_MS 1
15710 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15711 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15712 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 ac_check_lib_save_LIBS=$LIBS
15717 cat >conftest.$ac_ext <<_ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15724 /* Override any GCC internal prototype to avoid an error.
15725 Use char because int might match the return type of a GCC
15726 builtin and then its argument prototype would still apply. */
15734 return ___chkstk ();
15739 rm -f conftest.$ac_objext conftest$ac_exeext
15740 if { (ac_try="$ac_link"
15741 case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_link") 2>conftest.er1
15748 grep -v '^ *+' conftest.er1 >conftest.err
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } &&
15753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15754 { (case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_try") 2>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; } &&
15763 { ac_try='test -s conftest$ac_exeext'
15764 { (case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_try") 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 ac_cv_lib_gcc____chkstk=yes
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15778 ac_cv_lib_gcc____chkstk=no
15781 rm -f core conftest.err conftest.$ac_objext \
15782 conftest$ac_exeext conftest.$ac_ext
15783 LIBS=$ac_check_lib_save_LIBS
15785 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15786 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15787 if test $ac_cv_lib_gcc____chkstk = yes; then
15789 cat >>confdefs.h <<\_ACEOF
15790 #define HAVE____CHKSTK 1
15795 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15796 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15797 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15800 ac_check_lib_save_LIBS=$LIBS
15802 cat >conftest.$ac_ext <<_ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h. */
15809 /* Override any GCC internal prototype to avoid an error.
15810 Use char because int might match the return type of a GCC
15811 builtin and then its argument prototype would still apply. */
15815 char ___chkstk_ms ();
15819 return ___chkstk_ms ();
15824 rm -f conftest.$ac_objext conftest$ac_exeext
15825 if { (ac_try="$ac_link"
15826 case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_link") 2>conftest.er1
15833 grep -v '^ *+' conftest.er1 >conftest.err
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } &&
15838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15839 { (case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_try") 2>&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; } &&
15848 { ac_try='test -s conftest$ac_exeext'
15849 { (case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_try") 2>&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15858 ac_cv_lib_gcc____chkstk_ms=yes
15860 echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15863 ac_cv_lib_gcc____chkstk_ms=no
15866 rm -f core conftest.err conftest.$ac_objext \
15867 conftest$ac_exeext conftest.$ac_ext
15868 LIBS=$ac_check_lib_save_LIBS
15870 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15871 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15872 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15874 cat >>confdefs.h <<\_ACEOF
15875 #define HAVE____CHKSTK_MS 1
15881 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15882 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15883 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 ac_check_lib_save_LIBS=$LIBS
15888 cat >conftest.$ac_ext <<_ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h. */
15895 /* Override any GCC internal prototype to avoid an error.
15896 Use char because int might match the return type of a GCC
15897 builtin and then its argument prototype would still apply. */
15905 return __ashldi3 ();
15910 rm -f conftest.$ac_objext conftest$ac_exeext
15911 if { (ac_try="$ac_link"
15912 case "(($ac_try" in
15913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914 *) ac_try_echo=$ac_try;;
15916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15917 (eval "$ac_link") 2>conftest.er1
15919 grep -v '^ *+' conftest.er1 >conftest.err
15921 cat conftest.err >&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); } &&
15924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15925 { (case "(($ac_try" in
15926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927 *) ac_try_echo=$ac_try;;
15929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930 (eval "$ac_try") 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; } &&
15934 { ac_try='test -s conftest$ac_exeext'
15935 { (case "(($ac_try" in
15936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937 *) ac_try_echo=$ac_try;;
15939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15940 (eval "$ac_try") 2>&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; }; then
15944 ac_cv_lib_gcc___ashldi3=yes
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 ac_cv_lib_gcc___ashldi3=no
15952 rm -f core conftest.err conftest.$ac_objext \
15953 conftest$ac_exeext conftest.$ac_ext
15954 LIBS=$ac_check_lib_save_LIBS
15956 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15957 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15958 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15960 cat >>confdefs.h <<\_ACEOF
15961 #define HAVE___ASHLDI3 1
15966 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15967 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15968 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 ac_check_lib_save_LIBS=$LIBS
15973 cat >conftest.$ac_ext <<_ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15980 /* Override any GCC internal prototype to avoid an error.
15981 Use char because int might match the return type of a GCC
15982 builtin and then its argument prototype would still apply. */
15990 return __ashrdi3 ();
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (ac_try="$ac_link"
15997 case "(($ac_try" in
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002 (eval "$ac_link") 2>conftest.er1
16004 grep -v '^ *+' conftest.er1 >conftest.err
16006 cat conftest.err >&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } &&
16009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16010 { (case "(($ac_try" in
16011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012 *) ac_try_echo=$ac_try;;
16014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015 (eval "$ac_try") 2>&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; } &&
16019 { ac_try='test -s conftest$ac_exeext'
16020 { (case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_try") 2>&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; }; then
16029 ac_cv_lib_gcc___ashrdi3=yes
16031 echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16034 ac_cv_lib_gcc___ashrdi3=no
16037 rm -f core conftest.err conftest.$ac_objext \
16038 conftest$ac_exeext conftest.$ac_ext
16039 LIBS=$ac_check_lib_save_LIBS
16041 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16042 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16043 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16045 cat >>confdefs.h <<\_ACEOF
16046 #define HAVE___ASHRDI3 1
16051 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16052 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16053 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16054 echo $ECHO_N "(cached) $ECHO_C" >&6
16056 ac_check_lib_save_LIBS=$LIBS
16058 cat >conftest.$ac_ext <<_ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h. */
16065 /* Override any GCC internal prototype to avoid an error.
16066 Use char because int might match the return type of a GCC
16067 builtin and then its argument prototype would still apply. */
16075 return __divdi3 ();
16080 rm -f conftest.$ac_objext conftest$ac_exeext
16081 if { (ac_try="$ac_link"
16082 case "(($ac_try" in
16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_link") 2>conftest.er1
16089 grep -v '^ *+' conftest.er1 >conftest.err
16091 cat conftest.err >&5
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); } &&
16094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16095 { (case "(($ac_try" in
16096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097 *) ac_try_echo=$ac_try;;
16099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100 (eval "$ac_try") 2>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; } &&
16104 { ac_try='test -s conftest$ac_exeext'
16105 { (case "(($ac_try" in
16106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107 *) ac_try_echo=$ac_try;;
16109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16110 (eval "$ac_try") 2>&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16114 ac_cv_lib_gcc___divdi3=yes
16116 echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16119 ac_cv_lib_gcc___divdi3=no
16122 rm -f core conftest.err conftest.$ac_objext \
16123 conftest$ac_exeext conftest.$ac_ext
16124 LIBS=$ac_check_lib_save_LIBS
16126 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16127 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16128 if test $ac_cv_lib_gcc___divdi3 = yes; then
16130 cat >>confdefs.h <<\_ACEOF
16131 #define HAVE___DIVDI3 1
16136 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16137 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16138 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 ac_check_lib_save_LIBS=$LIBS
16143 cat >conftest.$ac_ext <<_ACEOF
16146 cat confdefs.h >>conftest.$ac_ext
16147 cat >>conftest.$ac_ext <<_ACEOF
16148 /* end confdefs.h. */
16150 /* Override any GCC internal prototype to avoid an error.
16151 Use char because int might match the return type of a GCC
16152 builtin and then its argument prototype would still apply. */
16160 return __fixdfdi ();
16165 rm -f conftest.$ac_objext conftest$ac_exeext
16166 if { (ac_try="$ac_link"
16167 case "(($ac_try" in
16168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169 *) ac_try_echo=$ac_try;;
16171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16172 (eval "$ac_link") 2>conftest.er1
16174 grep -v '^ *+' conftest.er1 >conftest.err
16176 cat conftest.err >&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } &&
16179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16180 { (case "(($ac_try" in
16181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16182 *) ac_try_echo=$ac_try;;
16184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16185 (eval "$ac_try") 2>&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; } &&
16189 { ac_try='test -s conftest$ac_exeext'
16190 { (case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195 (eval "$ac_try") 2>&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 ac_cv_lib_gcc___fixdfdi=yes
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16204 ac_cv_lib_gcc___fixdfdi=no
16207 rm -f core conftest.err conftest.$ac_objext \
16208 conftest$ac_exeext conftest.$ac_ext
16209 LIBS=$ac_check_lib_save_LIBS
16211 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16212 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16213 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16215 cat >>confdefs.h <<\_ACEOF
16216 #define HAVE___FIXDFDI 1
16221 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16222 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16223 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16224 echo $ECHO_N "(cached) $ECHO_C" >&6
16226 ac_check_lib_save_LIBS=$LIBS
16228 cat >conftest.$ac_ext <<_ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16235 /* Override any GCC internal prototype to avoid an error.
16236 Use char because int might match the return type of a GCC
16237 builtin and then its argument prototype would still apply. */
16245 return __fixsfdi ();
16250 rm -f conftest.$ac_objext conftest$ac_exeext
16251 if { (ac_try="$ac_link"
16252 case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257 (eval "$ac_link") 2>conftest.er1
16259 grep -v '^ *+' conftest.er1 >conftest.err
16261 cat conftest.err >&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16265 { (case "(($ac_try" in
16266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267 *) ac_try_echo=$ac_try;;
16269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270 (eval "$ac_try") 2>&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; } &&
16274 { ac_try='test -s conftest$ac_exeext'
16275 { (case "(($ac_try" in
16276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277 *) ac_try_echo=$ac_try;;
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280 (eval "$ac_try") 2>&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; }; then
16284 ac_cv_lib_gcc___fixsfdi=yes
16286 echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16289 ac_cv_lib_gcc___fixsfdi=no
16292 rm -f core conftest.err conftest.$ac_objext \
16293 conftest$ac_exeext conftest.$ac_ext
16294 LIBS=$ac_check_lib_save_LIBS
16296 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16297 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16298 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16300 cat >>confdefs.h <<\_ACEOF
16301 #define HAVE___FIXSFDI 1
16306 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16307 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16308 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16309 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 ac_check_lib_save_LIBS=$LIBS
16313 cat >conftest.$ac_ext <<_ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16320 /* Override any GCC internal prototype to avoid an error.
16321 Use char because int might match the return type of a GCC
16322 builtin and then its argument prototype would still apply. */
16326 char __floatdidf ();
16330 return __floatdidf ();
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_link") 2>conftest.er1
16344 grep -v '^ *+' conftest.er1 >conftest.err
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16350 { (case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_try") 2>&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; } &&
16359 { ac_try='test -s conftest$ac_exeext'
16360 { (case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_try") 2>&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 ac_cv_lib_gcc___floatdidf=yes
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16374 ac_cv_lib_gcc___floatdidf=no
16377 rm -f core conftest.err conftest.$ac_objext \
16378 conftest$ac_exeext conftest.$ac_ext
16379 LIBS=$ac_check_lib_save_LIBS
16381 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16382 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16383 if test $ac_cv_lib_gcc___floatdidf = yes; then
16385 cat >>confdefs.h <<\_ACEOF
16386 #define HAVE___FLOATDIDF 1
16391 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16392 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16393 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 ac_check_lib_save_LIBS=$LIBS
16398 cat >conftest.$ac_ext <<_ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h. */
16405 /* Override any GCC internal prototype to avoid an error.
16406 Use char because int might match the return type of a GCC
16407 builtin and then its argument prototype would still apply. */
16415 return __lshrdi3 ();
16420 rm -f conftest.$ac_objext conftest$ac_exeext
16421 if { (ac_try="$ac_link"
16422 case "(($ac_try" in
16423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424 *) ac_try_echo=$ac_try;;
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427 (eval "$ac_link") 2>conftest.er1
16429 grep -v '^ *+' conftest.er1 >conftest.err
16431 cat conftest.err >&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16435 { (case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_try") 2>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; } &&
16444 { ac_try='test -s conftest$ac_exeext'
16445 { (case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_try") 2>&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; }; then
16454 ac_cv_lib_gcc___lshrdi3=yes
16456 echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16459 ac_cv_lib_gcc___lshrdi3=no
16462 rm -f core conftest.err conftest.$ac_objext \
16463 conftest$ac_exeext conftest.$ac_ext
16464 LIBS=$ac_check_lib_save_LIBS
16466 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16467 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16468 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16470 cat >>confdefs.h <<\_ACEOF
16471 #define HAVE___LSHRDI3 1
16476 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16477 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16478 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 ac_check_lib_save_LIBS=$LIBS
16483 cat >conftest.$ac_ext <<_ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16490 /* Override any GCC internal prototype to avoid an error.
16491 Use char because int might match the return type of a GCC
16492 builtin and then its argument prototype would still apply. */
16500 return __moddi3 ();
16505 rm -f conftest.$ac_objext conftest$ac_exeext
16506 if { (ac_try="$ac_link"
16507 case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_link") 2>conftest.er1
16514 grep -v '^ *+' conftest.er1 >conftest.err
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16520 { (case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_try") 2>&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); }; } &&
16529 { ac_try='test -s conftest$ac_exeext'
16530 { (case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535 (eval "$ac_try") 2>&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; }; then
16539 ac_cv_lib_gcc___moddi3=yes
16541 echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16544 ac_cv_lib_gcc___moddi3=no
16547 rm -f core conftest.err conftest.$ac_objext \
16548 conftest$ac_exeext conftest.$ac_ext
16549 LIBS=$ac_check_lib_save_LIBS
16551 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16552 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16553 if test $ac_cv_lib_gcc___moddi3 = yes; then
16555 cat >>confdefs.h <<\_ACEOF
16556 #define HAVE___MODDI3 1
16561 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16562 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16563 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16566 ac_check_lib_save_LIBS=$LIBS
16568 cat >conftest.$ac_ext <<_ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16575 /* Override any GCC internal prototype to avoid an error.
16576 Use char because int might match the return type of a GCC
16577 builtin and then its argument prototype would still apply. */
16585 return __udivdi3 ();
16590 rm -f conftest.$ac_objext conftest$ac_exeext
16591 if { (ac_try="$ac_link"
16592 case "(($ac_try" in
16593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594 *) ac_try_echo=$ac_try;;
16596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597 (eval "$ac_link") 2>conftest.er1
16599 grep -v '^ *+' conftest.er1 >conftest.err
16601 cat conftest.err >&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
16604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16614 { ac_try='test -s conftest$ac_exeext'
16615 { (case "(($ac_try" in
16616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16617 *) ac_try_echo=$ac_try;;
16619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16620 (eval "$ac_try") 2>&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16624 ac_cv_lib_gcc___udivdi3=yes
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 ac_cv_lib_gcc___udivdi3=no
16632 rm -f core conftest.err conftest.$ac_objext \
16633 conftest$ac_exeext conftest.$ac_ext
16634 LIBS=$ac_check_lib_save_LIBS
16636 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16637 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16638 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16640 cat >>confdefs.h <<\_ACEOF
16641 #define HAVE___UDIVDI3 1
16646 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16647 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16648 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 ac_check_lib_save_LIBS=$LIBS
16653 cat >conftest.$ac_ext <<_ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16660 /* Override any GCC internal prototype to avoid an error.
16661 Use char because int might match the return type of a GCC
16662 builtin and then its argument prototype would still apply. */
16670 return __umoddi3 ();
16675 rm -f conftest.$ac_objext conftest$ac_exeext
16676 if { (ac_try="$ac_link"
16677 case "(($ac_try" in
16678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16679 *) ac_try_echo=$ac_try;;
16681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16682 (eval "$ac_link") 2>conftest.er1
16684 grep -v '^ *+' conftest.er1 >conftest.err
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16690 { (case "(($ac_try" in
16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692 *) ac_try_echo=$ac_try;;
16694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695 (eval "$ac_try") 2>&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; } &&
16699 { ac_try='test -s conftest$ac_exeext'
16700 { (case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16705 (eval "$ac_try") 2>&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; }; then
16709 ac_cv_lib_gcc___umoddi3=yes
16711 echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16714 ac_cv_lib_gcc___umoddi3=no
16717 rm -f core conftest.err conftest.$ac_objext \
16718 conftest$ac_exeext conftest.$ac_ext
16719 LIBS=$ac_check_lib_save_LIBS
16721 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16722 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16723 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16725 cat >>confdefs.h <<\_ACEOF
16726 #define HAVE___UMODDI3 1
16732 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16733 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16734 if test "${ac_cv_lib_gcc___main+set}" = set; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16737 ac_check_lib_save_LIBS=$LIBS
16739 cat >conftest.$ac_ext <<_ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h. */
16746 /* Override any GCC internal prototype to avoid an error.
16747 Use char because int might match the return type of a GCC
16748 builtin and then its argument prototype would still apply. */
16761 rm -f conftest.$ac_objext conftest$ac_exeext
16762 if { (ac_try="$ac_link"
16763 case "(($ac_try" in
16764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765 *) ac_try_echo=$ac_try;;
16767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768 (eval "$ac_link") 2>conftest.er1
16770 grep -v '^ *+' conftest.er1 >conftest.err
16772 cat conftest.err >&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } &&
16775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16776 { (case "(($ac_try" in
16777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778 *) ac_try_echo=$ac_try;;
16780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781 (eval "$ac_try") 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; } &&
16785 { ac_try='test -s conftest$ac_exeext'
16786 { (case "(($ac_try" in
16787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_try") 2>&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; }; then
16795 ac_cv_lib_gcc___main=yes
16797 echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16800 ac_cv_lib_gcc___main=no
16803 rm -f core conftest.err conftest.$ac_objext \
16804 conftest$ac_exeext conftest.$ac_ext
16805 LIBS=$ac_check_lib_save_LIBS
16807 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16808 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16809 if test $ac_cv_lib_gcc___main = yes; then
16811 cat >>confdefs.h <<\_ACEOF
16812 #define HAVE___MAIN 1
16817 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16818 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16819 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16822 ac_check_lib_save_LIBS=$LIBS
16824 cat >conftest.$ac_ext <<_ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h. */
16831 /* Override any GCC internal prototype to avoid an error.
16832 Use char because int might match the return type of a GCC
16833 builtin and then its argument prototype would still apply. */
16841 return __cmpdi2 ();
16846 rm -f conftest.$ac_objext conftest$ac_exeext
16847 if { (ac_try="$ac_link"
16848 case "(($ac_try" in
16849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850 *) ac_try_echo=$ac_try;;
16852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16853 (eval "$ac_link") 2>conftest.er1
16855 grep -v '^ *+' conftest.er1 >conftest.err
16857 cat conftest.err >&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); } &&
16860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16861 { (case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_try") 2>&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; } &&
16870 { ac_try='test -s conftest$ac_exeext'
16871 { (case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_try") 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; }; then
16880 ac_cv_lib_gcc___cmpdi2=yes
16882 echo "$as_me: failed program was:" >&5
16883 sed 's/^/| /' conftest.$ac_ext >&5
16885 ac_cv_lib_gcc___cmpdi2=no
16888 rm -f core conftest.err conftest.$ac_objext \
16889 conftest$ac_exeext conftest.$ac_ext
16890 LIBS=$ac_check_lib_save_LIBS
16892 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16893 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16894 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16896 cat >>confdefs.h <<\_ACEOF
16897 #define HAVE___CMPDI2 1
16904 if test "$llvm_cv_os_type" = "MingW" ; then
16905 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16906 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16907 cat >conftest.$ac_ext <<_ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16915 #include <windows.h>
16916 #include <imagehlp.h>
16917 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16918 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16922 rm -f conftest.$ac_objext
16923 if { (ac_try="$ac_compile"
16924 case "(($ac_try" in
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929 (eval "$ac_compile") 2>conftest.er1
16931 grep -v '^ *+' conftest.er1 >conftest.err
16933 cat conftest.err >&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
16936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16937 { (case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_try") 2>&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; } &&
16946 { ac_try='test -s conftest.$ac_objext'
16947 { (case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_try") 2>&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
16957 { echo "$as_me:$LINENO: result: yes" >&5
16958 echo "${ECHO_T}yes" >&6; }
16959 llvm_cv_win32_elmcb_pcstr="PCSTR"
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16966 { echo "$as_me:$LINENO: result: no" >&5
16967 echo "${ECHO_T}no" >&6; }
16968 llvm_cv_win32_elmcb_pcstr="PSTR"
16972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 cat >>confdefs.h <<_ACEOF
16975 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16980 if test "$llvm_cv_platform_type" = "Unix" ; then
16983 for ac_header in stdlib.h unistd.h
16985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16992 ac_res=`eval echo '${'$as_ac_Header'}'`
16993 { echo "$as_me:$LINENO: result: $ac_res" >&5
16994 echo "${ECHO_T}$ac_res" >&6; }
16996 # Is the header compilable?
16997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16999 cat >conftest.$ac_ext <<_ACEOF
17002 cat confdefs.h >>conftest.$ac_ext
17003 cat >>conftest.$ac_ext <<_ACEOF
17004 /* end confdefs.h. */
17005 $ac_includes_default
17006 #include <$ac_header>
17008 rm -f conftest.$ac_objext
17009 if { (ac_try="$ac_compile"
17010 case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_compile") 2>conftest.er1
17017 grep -v '^ *+' conftest.er1 >conftest.err
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_try") 2>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; } &&
17032 { ac_try='test -s conftest.$ac_objext'
17033 { (case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_try") 2>&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 ac_header_compiler=yes
17044 echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17047 ac_header_compiler=no
17050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17052 echo "${ECHO_T}$ac_header_compiler" >&6; }
17054 # Is the header present?
17055 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17057 cat >conftest.$ac_ext <<_ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 #include <$ac_header>
17065 if { (ac_try="$ac_cpp conftest.$ac_ext"
17066 case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17073 grep -v '^ *+' conftest.er1 >conftest.err
17075 cat conftest.err >&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } >/dev/null; then
17078 if test -s conftest.err; then
17079 ac_cpp_err=$ac_c_preproc_warn_flag
17080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17087 if test -z "$ac_cpp_err"; then
17088 ac_header_preproc=yes
17090 echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17093 ac_header_preproc=no
17096 rm -f conftest.err conftest.$ac_ext
17097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17098 echo "${ECHO_T}$ac_header_preproc" >&6; }
17100 # So? What about this header?
17101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17107 ac_header_preproc=yes
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17123 ## ------------------------------------ ##
17124 ## Report this to http://llvm.org/bugs/ ##
17125 ## ------------------------------------ ##
17127 ) | sed "s/^/$as_me: WARNING: /" >&2
17130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17135 eval "$as_ac_Header=\$ac_header_preproc"
17137 ac_res=`eval echo '${'$as_ac_Header'}'`
17138 { echo "$as_me:$LINENO: result: $ac_res" >&5
17139 echo "${ECHO_T}$ac_res" >&6; }
17142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17143 cat >>confdefs.h <<_ACEOF
17144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17152 for ac_func in getpagesize
17154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17158 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 cat >conftest.$ac_ext <<_ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17168 #define $ac_func innocuous_$ac_func
17170 /* System header to define __stub macros and hopefully few prototypes,
17171 which can conflict with char $ac_func (); below.
17172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17173 <limits.h> exists even on freestanding compilers. */
17176 # include <limits.h>
17178 # include <assert.h>
17183 /* Override any GCC internal prototype to avoid an error.
17184 Use char because int might match the return type of a GCC
17185 builtin and then its argument prototype would still apply. */
17190 /* The GNU C library defines this for functions which it implements
17191 to always fail with ENOSYS. Some functions are actually named
17192 something starting with __ and the normal name is an alias. */
17193 #if defined __stub_$ac_func || defined __stub___$ac_func
17200 return $ac_func ();
17205 rm -f conftest.$ac_objext conftest$ac_exeext
17206 if { (ac_try="$ac_link"
17207 case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_link") 2>conftest.er1
17214 grep -v '^ *+' conftest.er1 >conftest.err
17216 cat conftest.err >&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } &&
17219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17220 { (case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_try") 2>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; } &&
17229 { ac_try='test -s conftest$ac_exeext'
17230 { (case "(($ac_try" in
17231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17232 *) ac_try_echo=$ac_try;;
17234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17235 (eval "$ac_try") 2>&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; }; then
17239 eval "$as_ac_var=yes"
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17244 eval "$as_ac_var=no"
17247 rm -f core conftest.err conftest.$ac_objext \
17248 conftest$ac_exeext conftest.$ac_ext
17250 ac_res=`eval echo '${'$as_ac_var'}'`
17251 { echo "$as_me:$LINENO: result: $ac_res" >&5
17252 echo "${ECHO_T}$ac_res" >&6; }
17253 if test `eval echo '${'$as_ac_var'}'` = yes; then
17254 cat >>confdefs.h <<_ACEOF
17255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17261 { echo "$as_me:$LINENO: checking for working mmap" >&5
17262 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17263 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17264 echo $ECHO_N "(cached) $ECHO_C" >&6
17266 if test "$cross_compiling" = yes; then
17267 ac_cv_func_mmap_fixed_mapped=no
17269 cat >conftest.$ac_ext <<_ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17275 $ac_includes_default
17276 /* malloc might have been renamed as rpl_malloc. */
17279 /* Thanks to Mike Haertel and Jim Avera for this test.
17280 Here is a matrix of mmap possibilities:
17281 mmap private not fixed
17282 mmap private fixed at somewhere currently unmapped
17283 mmap private fixed at somewhere already mapped
17284 mmap shared not fixed
17285 mmap shared fixed at somewhere currently unmapped
17286 mmap shared fixed at somewhere already mapped
17287 For private mappings, we should verify that changes cannot be read()
17288 back from the file, nor mmap's back from the file at a different
17289 address. (There have been systems where private was not correctly
17290 implemented like the infamous i386 svr4.0, and systems where the
17291 VM page cache was not coherent with the file system buffer cache
17292 like early versions of FreeBSD and possibly contemporary NetBSD.)
17293 For shared mappings, we should conversely verify that changes get
17294 propagated back to all the places they're supposed to be.
17296 Grep wants private fixed already mapped.
17297 The main things grep needs to know about mmap are:
17298 * does it exist and is it safe to write into the mmap'd area
17299 * how to use it (BSD variants) */
17302 #include <sys/mman.h>
17304 #if !STDC_HEADERS && !HAVE_STDLIB_H
17308 /* This mess was copied from the GNU getpagesize.h. */
17309 #if !HAVE_GETPAGESIZE
17310 /* Assume that all systems that can run configure have sys/param.h. */
17311 # if !HAVE_SYS_PARAM_H
17312 # define HAVE_SYS_PARAM_H 1
17315 # ifdef _SC_PAGESIZE
17316 # define getpagesize() sysconf(_SC_PAGESIZE)
17317 # else /* no _SC_PAGESIZE */
17318 # if HAVE_SYS_PARAM_H
17319 # include <sys/param.h>
17320 # ifdef EXEC_PAGESIZE
17321 # define getpagesize() EXEC_PAGESIZE
17322 # else /* no EXEC_PAGESIZE */
17324 # define getpagesize() NBPG * CLSIZE
17327 # endif /* no CLSIZE */
17328 # else /* no NBPG */
17330 # define getpagesize() NBPC
17331 # else /* no NBPC */
17333 # define getpagesize() PAGESIZE
17334 # endif /* PAGESIZE */
17335 # endif /* no NBPC */
17336 # endif /* no NBPG */
17337 # endif /* no EXEC_PAGESIZE */
17338 # else /* no HAVE_SYS_PARAM_H */
17339 # define getpagesize() 8192 /* punt totally */
17340 # endif /* no HAVE_SYS_PARAM_H */
17341 # endif /* no _SC_PAGESIZE */
17343 #endif /* no HAVE_GETPAGESIZE */
17348 char *data, *data2, *data3;
17352 pagesize = getpagesize ();
17354 /* First, make a file with some known garbage in it. */
17355 data = (char *) malloc (pagesize);
17358 for (i = 0; i < pagesize; ++i)
17359 *(data + i) = rand ();
17361 fd = creat ("conftest.mmap", 0600);
17364 if (write (fd, data, pagesize) != pagesize)
17368 /* Next, try to mmap the file at a fixed address which already has
17369 something else allocated at it. If we can, also make sure that
17370 we see the same garbage. */
17371 fd = open ("conftest.mmap", O_RDWR);
17374 data2 = (char *) malloc (2 * pagesize);
17377 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17378 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17379 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17381 for (i = 0; i < pagesize; ++i)
17382 if (*(data + i) != *(data2 + i))
17385 /* Finally, make sure that changes to the mapped area do not
17386 percolate back to the file as seen by read(). (This is a bug on
17387 some variants of i386 svr4.0.) */
17388 for (i = 0; i < pagesize; ++i)
17389 *(data2 + i) = *(data2 + i) + 1;
17390 data3 = (char *) malloc (pagesize);
17393 if (read (fd, data3, pagesize) != pagesize)
17395 for (i = 0; i < pagesize; ++i)
17396 if (*(data + i) != *(data3 + i))
17402 rm -f conftest$ac_exeext
17403 if { (ac_try="$ac_link"
17404 case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_link") 2>&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17413 { (case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_try") 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ac_cv_func_mmap_fixed_mapped=yes
17424 echo "$as_me: program exited with status $ac_status" >&5
17425 echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17428 ( exit $ac_status )
17429 ac_cv_func_mmap_fixed_mapped=no
17431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17436 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17437 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17438 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17440 cat >>confdefs.h <<\_ACEOF
17441 #define HAVE_MMAP 1
17445 rm -f conftest.mmap
17447 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17448 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17449 if test "${ac_cv_func_mmap_file+set}" = set; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17453 ac_cpp='$CPP $CPPFLAGS'
17454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17458 if test "$cross_compiling" = yes; then
17459 ac_cv_func_mmap_file=no
17461 cat >conftest.$ac_ext <<_ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h. */
17469 #include <sys/types.h>
17470 #include <sys/mman.h>
17478 fd = creat ("foo",0777);
17479 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17481 return (fd != (int) MAP_FAILED);
17486 rm -f conftest$ac_exeext
17487 if { (ac_try="$ac_link"
17488 case "(($ac_try" in
17489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490 *) ac_try_echo=$ac_try;;
17492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493 (eval "$ac_link") 2>&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 ac_cv_func_mmap_file=yes
17508 echo "$as_me: program exited with status $ac_status" >&5
17509 echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17512 ( exit $ac_status )
17513 ac_cv_func_mmap_file=no
17515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17520 ac_cpp='$CPP $CPPFLAGS'
17521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17527 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17528 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17529 if test "$ac_cv_func_mmap_file" = yes; then
17531 cat >>confdefs.h <<\_ACEOF
17532 #define HAVE_MMAP_FILE
17539 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17540 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17541 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 if test "$llvm_cv_os_type" = "Interix" ; then
17545 ac_cv_need_dev_zero_for_mmap=yes
17547 ac_cv_need_dev_zero_for_mmap=no
17551 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17552 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17553 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17555 cat >>confdefs.h <<\_ACEOF
17556 #define NEED_DEV_ZERO_FOR_MMAP 1
17561 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17563 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17564 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17566 if test "$ac_cv_func_mmap_file" = "no"
17568 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17569 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17573 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17574 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17576 ac_cpp='$CXXCPP $CPPFLAGS'
17577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17581 cat >conftest.$ac_ext <<_ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h. */
17590 volatile unsigned long val = 1;
17591 __sync_synchronize();
17592 __sync_val_compare_and_swap(&val, 1, 0);
17593 __sync_add_and_fetch(&val, 1);
17594 __sync_sub_and_fetch(&val, 1);
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (ac_try="$ac_link"
17602 case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_link") 2>conftest.er1
17609 grep -v '^ *+' conftest.er1 >conftest.err
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
17614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17615 { (case "(($ac_try" in
17616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617 *) ac_try_echo=$ac_try;;
17619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620 (eval "$ac_try") 2>&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; } &&
17624 { ac_try='test -s conftest$ac_exeext'
17625 { (case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_try") 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17635 { echo "$as_me:$LINENO: result: yes" >&5
17636 echo "${ECHO_T}yes" >&6; }
17638 cat >>confdefs.h <<\_ACEOF
17639 #define LLVM_HAS_ATOMICS 1
17644 echo "$as_me: failed program was:" >&5
17645 sed 's/^/| /' conftest.$ac_ext >&5
17648 { echo "$as_me:$LINENO: result: no" >&5
17649 echo "${ECHO_T}no" >&6; }
17651 cat >>confdefs.h <<\_ACEOF
17652 #define LLVM_HAS_ATOMICS 0
17655 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17656 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17660 rm -f core conftest.err conftest.$ac_objext \
17661 conftest$ac_exeext conftest.$ac_ext
17663 ac_cpp='$CPP $CPPFLAGS'
17664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17670 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17671 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17672 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17673 if test "${llvm_cv_linux_mixed+set}" = set; then
17674 echo $ECHO_N "(cached) $ECHO_C" >&6
17677 ac_cpp='$CPP $CPPFLAGS'
17678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17682 cat >conftest.$ac_ext <<_ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17689 error: Not x86-64 even if uname says so!
17700 rm -f conftest.$ac_objext
17701 if { (ac_try="$ac_compile"
17702 case "(($ac_try" in
17703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17704 *) ac_try_echo=$ac_try;;
17706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17707 (eval "$ac_compile") 2>conftest.er1
17709 grep -v '^ *+' conftest.er1 >conftest.err
17711 cat conftest.err >&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
17714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17715 { (case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_try") 2>&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; } &&
17724 { ac_try='test -s conftest.$ac_objext'
17725 { (case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_try") 2>&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 llvm_cv_linux_mixed=no
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17739 llvm_cv_linux_mixed=yes
17742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744 ac_cpp='$CPP $CPPFLAGS'
17745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17751 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17752 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17754 if test "$llvm_cv_linux_mixed" = "yes"; then
17755 llvm_cv_target_arch="x86"
17761 for ac_func in __dso_handle
17763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 cat >conftest.$ac_ext <<_ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17777 #define $ac_func innocuous_$ac_func
17779 /* System header to define __stub macros and hopefully few prototypes,
17780 which can conflict with char $ac_func (); below.
17781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17782 <limits.h> exists even on freestanding compilers. */
17785 # include <limits.h>
17787 # include <assert.h>
17792 /* Override any GCC internal prototype to avoid an error.
17793 Use char because int might match the return type of a GCC
17794 builtin and then its argument prototype would still apply. */
17799 /* The GNU C library defines this for functions which it implements
17800 to always fail with ENOSYS. Some functions are actually named
17801 something starting with __ and the normal name is an alias. */
17802 #if defined __stub_$ac_func || defined __stub___$ac_func
17809 return $ac_func ();
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (ac_try="$ac_link"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_link") 2>conftest.er1
17823 grep -v '^ *+' conftest.er1 >conftest.err
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_try") 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest$ac_exeext'
17839 { (case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_try") 2>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 eval "$as_ac_var=yes"
17850 echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17853 eval "$as_ac_var=no"
17856 rm -f core conftest.err conftest.$ac_objext \
17857 conftest$ac_exeext conftest.$ac_ext
17859 ac_res=`eval echo '${'$as_ac_var'}'`
17860 { echo "$as_me:$LINENO: result: $ac_res" >&5
17861 echo "${ECHO_T}$ac_res" >&6; }
17862 if test `eval echo '${'$as_ac_var'}'` = yes; then
17863 cat >>confdefs.h <<_ACEOF
17864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17871 SHLIBEXT=$llvm_shlib_ext
17874 if test "${prefix}" = "NONE" ; then
17875 prefix="/usr/local"
17877 eval LLVM_PREFIX="${prefix}";
17878 eval LLVM_BINDIR="${prefix}/bin";
17879 eval LLVM_DATADIR="${prefix}/share/llvm";
17880 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17881 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17882 eval LLVM_INCLUDEDIR="${prefix}/include";
17883 eval LLVM_INFODIR="${prefix}/info";
17884 eval LLVM_MANDIR="${prefix}/man";
17885 LLVM_CONFIGTIME=`date`
17896 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17897 LLVM_CONFIGTIME="(timestamp not enabled)"
17901 cat >>confdefs.h <<_ACEOF
17902 #define LLVM_PREFIX "$LLVM_PREFIX"
17906 cat >>confdefs.h <<_ACEOF
17907 #define LLVM_BINDIR "$LLVM_BINDIR"
17911 cat >>confdefs.h <<_ACEOF
17912 #define LLVM_DATADIR "$LLVM_DATADIR"
17916 cat >>confdefs.h <<_ACEOF
17917 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17921 cat >>confdefs.h <<_ACEOF
17922 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17926 cat >>confdefs.h <<_ACEOF
17927 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17931 cat >>confdefs.h <<_ACEOF
17932 #define LLVM_INFODIR "$LLVM_INFODIR"
17936 cat >>confdefs.h <<_ACEOF
17937 #define LLVM_MANDIR "$LLVM_MANDIR"
17941 cat >>confdefs.h <<_ACEOF
17942 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17946 cat >>confdefs.h <<_ACEOF
17947 #define LLVM_HOST_TRIPLE "$host"
17951 cat >>confdefs.h <<_ACEOF
17952 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17956 if test "$BINDINGS_TO_BUILD" = auto ; then
17957 BINDINGS_TO_BUILD=""
17958 if test "x$OCAMLFIND" != x ; then
17959 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17961 if test "x$GO" != x ; then
17962 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17963 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17967 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17970 binding_prereqs_failed=0
17971 for a_binding in $BINDINGS_TO_BUILD ; do
17972 case "$a_binding" in
17974 if test "x$OCAMLFIND" = x ; then
17975 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17976 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17977 binding_prereqs_failed=1
17980 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17987 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17988 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17989 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17990 binding_prereqs_failed=1
17993 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17997 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17998 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18002 if test "x$with_ocaml_libdir" != xauto ; then
18003 OCAML_LIBDIR=$with_ocaml_libdir
18006 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18007 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18009 # ocaml stdlib is beneath our prefix; use stdlib
18010 OCAML_LIBDIR=$ocaml_stdlib
18013 # ocaml stdlib is outside our prefix; use libdir/ocaml
18014 OCAML_LIBDIR=${prefix}/lib/ocaml
18020 if test "x$GO" = x ; then
18021 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18022 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18023 binding_prereqs_failed=1
18025 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18028 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18029 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18030 binding_prereqs_failed=1
18036 if test "$binding_prereqs_failed" = 1 ; then
18037 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18038 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18039 { (exit 1); exit 1; }; }
18042 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18043 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18044 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 ac_cpp='$CXXCPP $CPPFLAGS'
18049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18053 oldcxxflags="$CXXFLAGS"
18054 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18055 cat >conftest.$ac_ext <<_ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18061 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18070 rm -f conftest.$ac_objext
18071 if { (ac_try="$ac_compile"
18072 case "(($ac_try" in
18073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074 *) ac_try_echo=$ac_try;;
18076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077 (eval "$ac_compile") 2>conftest.er1
18079 grep -v '^ *+' conftest.er1 >conftest.err
18081 cat conftest.err >&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } &&
18084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18085 { (case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_try") 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
18094 { ac_try='test -s conftest.$ac_objext'
18095 { (case "(($ac_try" in
18096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097 *) ac_try_echo=$ac_try;;
18099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100 (eval "$ac_try") 2>&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 llvm_cv_cxx_visibility_inlines_hidden=yes
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 llvm_cv_cxx_visibility_inlines_hidden=no
18112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18113 CXXFLAGS="$oldcxxflags"
18115 ac_cpp='$CPP $CPPFLAGS'
18116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18122 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18123 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18124 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18125 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18128 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18133 if test "$llvm_cv_link_use_r" = "yes" ; then
18140 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18141 RDYNAMIC="-rdynamic"
18148 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18155 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18157 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18159 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18161 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18163 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18166 ac_config_files="$ac_config_files Makefile.config"
18169 ac_config_files="$ac_config_files llvm.spec"
18172 ac_config_files="$ac_config_files docs/doxygen.cfg"
18175 if test "${clang_src_root}" = ""; then
18176 clang_src_root="$srcdir/tools/clang"
18178 if test -f ${clang_src_root}/README.txt; then
18180 cat >>confdefs.h <<_ACEOF
18181 #define CLANG_LIBDIR_SUFFIX ""
18185 configh="include/clang/Config/config.h"
18186 doxy="docs/doxygen.cfg"
18187 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18189 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18193 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18196 test "x$program_prefix" = "xNONE" && program_prefix=""
18200 ac_config_commands="$ac_config_commands setup"
18202 ac_config_commands="$ac_config_commands Makefile"
18205 ac_config_commands="$ac_config_commands Makefile.common"
18208 ac_config_commands="$ac_config_commands examples/Makefile"
18211 ac_config_commands="$ac_config_commands lib/Makefile"
18214 ac_config_commands="$ac_config_commands test/Makefile"
18217 ac_config_commands="$ac_config_commands test/Makefile.tests"
18220 ac_config_commands="$ac_config_commands unittests/Makefile"
18223 ac_config_commands="$ac_config_commands tools/Makefile"
18226 ac_config_commands="$ac_config_commands utils/Makefile"
18229 ac_config_commands="$ac_config_commands projects/Makefile"
18232 ac_config_commands="$ac_config_commands bindings/Makefile"
18235 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18239 cat >confcache <<\_ACEOF
18240 # This file is a shell script that caches the results of configure
18241 # tests run on this system so they can be shared between configure
18242 # scripts and configure runs, see configure's option --config-cache.
18243 # It is not useful on other systems. If it contains results you don't
18244 # want to keep, you may remove or edit it.
18246 # config.status only pays attention to the cache file if you give it
18247 # the --recheck option to rerun configure.
18249 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18250 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18251 # following values.
18255 # The following way of writing the cache mishandles newlines in values,
18256 # but we know of no workaround that is simple, portable, and efficient.
18257 # So, we kill variables containing newlines.
18258 # Ultrix sh set writes to stderr and can't be redirected directly,
18259 # and sets the high bit in the cache file unless we assign to the vars.
18261 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18262 eval ac_val=\$$ac_var
18266 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18267 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18270 _ | IFS | as_nl) ;; #(
18271 *) $as_unset $ac_var ;;
18277 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18278 *${as_nl}ac_space=\ *)
18279 # `set' does not quote correctly, so add quotes (double-quote
18280 # substitution turns \\\\ into \\, and sed turns \\ into \).
18283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18286 # `set' quotes correctly as required by POSIX, so do not add quotes.
18287 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18296 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18298 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18300 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18301 if test -w "$cache_file"; then
18302 test "x$cache_file" != "x/dev/null" &&
18303 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18304 echo "$as_me: updating cache $cache_file" >&6;}
18305 cat confcache >$cache_file
18307 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18308 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18313 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18314 # Let make expand exec_prefix.
18315 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18317 DEFS=-DHAVE_CONFIG_H
18321 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18322 # 1. Remove the extension, and $U if already installed.
18323 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18324 ac_i=`echo "$ac_i" | sed "$ac_script"`
18325 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18326 # will be set to the directory where LIBOBJS objects are built.
18327 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18328 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18330 LIBOBJS=$ac_libobjs
18332 LTLIBOBJS=$ac_ltlibobjs
18336 : ${CONFIG_STATUS=./config.status}
18337 ac_clean_files_save=$ac_clean_files
18338 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18339 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18340 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18341 cat >$CONFIG_STATUS <<_ACEOF
18343 # Generated by $as_me.
18344 # Run this file to recreate the current configuration.
18345 # Compiler output produced by configure, useful for debugging
18346 # configure, is in config.log if it exists.
18349 ac_cs_recheck=false
18351 SHELL=\${CONFIG_SHELL-$SHELL}
18354 cat >>$CONFIG_STATUS <<\_ACEOF
18355 ## --------------------- ##
18356 ## M4sh Initialization. ##
18357 ## --------------------- ##
18359 # Be Bourne compatible
18360 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18363 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18364 # is contrary to our usage. Disable this feature.
18365 alias -g '${1+"$@"}'='"$@"'
18366 setopt NO_GLOB_SUBST
18368 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18370 BIN_SH=xpg4; export BIN_SH # for Tru64
18371 DUALCASE=1; export DUALCASE # for MKS sh
18375 # Avoid depending upon Character Ranges.
18376 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18377 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18378 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18379 as_cr_digits='0123456789'
18380 as_cr_alnum=$as_cr_Letters$as_cr_digits
18382 # The user is always right.
18383 if test "${PATH_SEPARATOR+set}" != set; then
18384 echo "#! /bin/sh" >conf$$.sh
18385 echo "exit 0" >>conf$$.sh
18387 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18395 # Support unset when possible.
18396 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18404 # We need space, tab and new line, in precisely that order. Quoting is
18405 # there to prevent editors from complaining about space-tab.
18406 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18407 # splitting by setting IFS to empty value.)
18412 # Find who we are. Look in the path if we contain no directory separator.
18414 *[\\/]* ) as_myself=$0 ;;
18415 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18416 for as_dir in $PATH
18419 test -z "$as_dir" && as_dir=.
18420 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18426 # We did not find ourselves, most probably we were run as `sh COMMAND'
18427 # in which case we are not to be found in the path.
18428 if test "x$as_myself" = x; then
18431 if test ! -f "$as_myself"; then
18432 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18433 { (exit 1); exit 1; }
18436 # Work around bugs in pre-3.0 UWIN ksh.
18437 for as_var in ENV MAIL MAILPATH
18438 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18446 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18447 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18448 LC_TELEPHONE LC_TIME
18450 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18451 eval $as_var=C; export $as_var
18453 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18457 # Required to use basename.
18458 if expr a : '\(a\)' >/dev/null 2>&1 &&
18459 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18465 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18466 as_basename=basename
18472 # Name of the executable.
18473 as_me=`$as_basename -- "$0" ||
18474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18475 X"$0" : 'X\(//\)$' \| \
18476 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18478 sed '/^.*\/\([^/][^/]*\)\/*$/{
18497 as_lineno_1=$LINENO
18498 as_lineno_2=$LINENO
18499 test "x$as_lineno_1" != "x$as_lineno_2" &&
18500 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18502 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18503 # uniformly replaced by the line number. The first 'sed' inserts a
18504 # line-number line after each line using $LINENO; the second 'sed'
18505 # does the real work. The second script uses 'N' to pair each
18506 # line-number line with the line containing $LINENO, and appends
18507 # trailing '-' during substitution so that $LINENO is not a special
18508 # case at line end.
18509 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18510 # scripts with optimization help from Paolo Bonzini. Blame Lee
18511 # E. McMahon (1931-1989) for sed's syntax. :-)
18523 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18526 ' >$as_me.lineno &&
18527 chmod +x "$as_me.lineno" ||
18528 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18529 { (exit 1); exit 1; }; }
18531 # Don't try to exec as it changes $[0], causing all sort of problems
18532 # (the dirname of $[0] is not the place where we might find the
18533 # original and so on. Autoconf is especially sensitive to this).
18534 . "./$as_me.lineno"
18535 # Exit status is that of the last command.
18540 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18546 ECHO_C= ECHO_N= ECHO_T=
18547 case `echo -n x` in
18549 case `echo 'x\c'` in
18550 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18557 if expr a : '\(a\)' >/dev/null 2>&1 &&
18558 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18564 rm -f conf$$ conf$$.exe conf$$.file
18565 if test -d conf$$.dir; then
18566 rm -f conf$$.dir/conf$$.file
18572 if ln -s conf$$.file conf$$ 2>/dev/null; then
18574 # ... but there are two gotchas:
18575 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18576 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18577 # In both cases, we have to default to `cp -p'.
18578 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18580 elif ln conf$$.file conf$$ 2>/dev/null; then
18585 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18586 rmdir conf$$.dir 2>/dev/null
18588 if mkdir -p . 2>/dev/null; then
18591 test -d ./-p && rmdir ./-p
18595 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18596 # systems may use methods other than mode bits to determine executability.
18597 cat >conf$$.file <<_ASEOF
18601 chmod +x conf$$.file
18602 if test -x conf$$.file >/dev/null 2>&1; then
18603 as_executable_p="test -x"
18609 # Sed expression to map a string onto a valid CPP name.
18610 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18612 # Sed expression to map a string onto a valid variable name.
18613 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18618 # Save the log message, to keep $[0] and so on meaningful, and to
18619 # report actual input values of CONFIG_FILES etc. instead of their
18620 # values after options handling.
18622 This file was extended by LLVM $as_me 3.7.0svn, which was
18623 generated by GNU Autoconf 2.60. Invocation command line was
18625 CONFIG_FILES = $CONFIG_FILES
18626 CONFIG_HEADERS = $CONFIG_HEADERS
18627 CONFIG_LINKS = $CONFIG_LINKS
18628 CONFIG_COMMANDS = $CONFIG_COMMANDS
18631 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18636 cat >>$CONFIG_STATUS <<_ACEOF
18637 # Files that config.status was made for.
18638 config_files="$ac_config_files"
18639 config_headers="$ac_config_headers"
18640 config_commands="$ac_config_commands"
18644 cat >>$CONFIG_STATUS <<\_ACEOF
18646 \`$as_me' instantiates files from templates according to the
18647 current configuration.
18649 Usage: $0 [OPTIONS] [FILE]...
18651 -h, --help print this help, then exit
18652 -V, --version print version number, then exit
18653 -q, --quiet do not print progress messages
18654 -d, --debug don't remove temporary files
18655 --recheck update $as_me by reconfiguring in the same conditions
18656 --file=FILE[:TEMPLATE]
18657 instantiate the configuration file FILE
18658 --header=FILE[:TEMPLATE]
18659 instantiate the configuration header FILE
18661 Configuration files:
18664 Configuration headers:
18667 Configuration commands:
18670 Report bugs to <bug-autoconf@gnu.org>."
18673 cat >>$CONFIG_STATUS <<_ACEOF
18675 LLVM config.status 3.7.0svn
18676 configured by $0, generated by GNU Autoconf 2.60,
18677 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18679 Copyright (C) 2006 Free Software Foundation, Inc.
18680 This config.status script is free software; the Free Software Foundation
18681 gives unlimited permission to copy, distribute and modify it."
18688 cat >>$CONFIG_STATUS <<\_ACEOF
18689 # If no file are specified by the user, then we need to provide default
18690 # value. By we need to know if files were specified by the user.
18696 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18697 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18708 # Handling of the options.
18709 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18711 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18712 echo "$ac_cs_version"; exit ;;
18713 --debug | --debu | --deb | --de | --d | -d )
18715 --file | --fil | --fi | --f )
18717 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18718 ac_need_defaults=false;;
18719 --header | --heade | --head | --hea )
18721 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18722 ac_need_defaults=false;;
18724 # Conflict between --help and --header
18725 { echo "$as_me: error: ambiguous option: $1
18726 Try \`$0 --help' for more information." >&2
18727 { (exit 1); exit 1; }; };;
18728 --help | --hel | -h )
18729 echo "$ac_cs_usage"; exit ;;
18730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18731 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18734 # This is an error.
18735 -*) { echo "$as_me: error: unrecognized option: $1
18736 Try \`$0 --help' for more information." >&2
18737 { (exit 1); exit 1; }; } ;;
18739 *) ac_config_targets="$ac_config_targets $1"
18740 ac_need_defaults=false ;;
18746 ac_configure_extra_args=
18748 if $ac_cs_silent; then
18750 ac_configure_extra_args="$ac_configure_extra_args --silent"
18754 cat >>$CONFIG_STATUS <<_ACEOF
18755 if \$ac_cs_recheck; then
18756 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18757 CONFIG_SHELL=$SHELL
18758 export CONFIG_SHELL
18759 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18763 cat >>$CONFIG_STATUS <<\_ACEOF
18767 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18768 ## Running $as_me. ##
18774 cat >>$CONFIG_STATUS <<_ACEOF
18778 llvm_src="${srcdir}"
18782 cat >>$CONFIG_STATUS <<\_ACEOF
18784 # Handling of arguments.
18785 for ac_config_target in $ac_config_targets
18787 case $ac_config_target in
18788 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18789 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18790 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18791 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18792 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18793 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18794 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18795 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18796 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18797 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18798 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18799 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18800 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18801 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18802 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18803 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18804 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18805 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18806 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18807 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18808 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18809 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18810 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18811 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18812 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18813 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18815 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18816 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18817 { (exit 1); exit 1; }; };;
18822 # If the user did not use the arguments to specify the items to instantiate,
18823 # then the envvar interface is used. Set only those that are not.
18824 # We use the long form for the default assignment because of an extremely
18825 # bizarre bug on SunOS 4.1.3.
18826 if $ac_need_defaults; then
18827 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18828 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18829 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18832 # Have a temporary directory for convenience. Make it in the build tree
18833 # simply because there is no reason against having it here, and in addition,
18834 # creating and moving files from /tmp can sometimes cause problems.
18835 # Hook for its removal unless debugging.
18836 # Note that there is a small window in which the directory will not be cleaned:
18837 # after its creation but before its name has been assigned to `$tmp'.
18841 trap 'exit_status=$?
18842 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18844 trap '{ (exit 1); exit 1; }' 1 2 13 15
18846 # Create a (secure) tmp directory for tmp files.
18849 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18850 test -n "$tmp" && test -d "$tmp"
18853 tmp=./conf$$-$RANDOM
18854 (umask 077 && mkdir "$tmp")
18857 echo "$me: cannot create a temporary directory in ." >&2
18858 { (exit 1); exit 1; }
18862 # Set up the sed scripts for CONFIG_FILES section.
18865 # No need to generate the scripts if there are no CONFIG_FILES.
18866 # This happens for instance when ./config.status config.h
18867 if test -n "$CONFIG_FILES"; then
18874 for ac_last_try in false false false false false :; do
18875 cat >conf$$subs.sed <<_ACEOF
18876 SHELL!$SHELL$ac_delim
18877 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18878 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18879 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18880 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18881 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18882 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18883 exec_prefix!$exec_prefix$ac_delim
18884 prefix!$prefix$ac_delim
18885 program_transform_name!$program_transform_name$ac_delim
18886 bindir!$bindir$ac_delim
18887 sbindir!$sbindir$ac_delim
18888 libexecdir!$libexecdir$ac_delim
18889 datarootdir!$datarootdir$ac_delim
18890 datadir!$datadir$ac_delim
18891 sysconfdir!$sysconfdir$ac_delim
18892 sharedstatedir!$sharedstatedir$ac_delim
18893 localstatedir!$localstatedir$ac_delim
18894 includedir!$includedir$ac_delim
18895 oldincludedir!$oldincludedir$ac_delim
18896 docdir!$docdir$ac_delim
18897 infodir!$infodir$ac_delim
18898 htmldir!$htmldir$ac_delim
18899 dvidir!$dvidir$ac_delim
18900 pdfdir!$pdfdir$ac_delim
18901 psdir!$psdir$ac_delim
18902 libdir!$libdir$ac_delim
18903 localedir!$localedir$ac_delim
18904 mandir!$mandir$ac_delim
18905 DEFS!$DEFS$ac_delim
18906 ECHO_C!$ECHO_C$ac_delim
18907 ECHO_N!$ECHO_N$ac_delim
18908 ECHO_T!$ECHO_T$ac_delim
18909 LIBS!$LIBS$ac_delim
18910 build_alias!$build_alias$ac_delim
18911 host_alias!$host_alias$ac_delim
18912 target_alias!$target_alias$ac_delim
18913 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18914 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18915 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18916 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18917 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18919 CFLAGS!$CFLAGS$ac_delim
18920 LDFLAGS!$LDFLAGS$ac_delim
18921 CPPFLAGS!$CPPFLAGS$ac_delim
18922 ac_ct_CC!$ac_ct_CC$ac_delim
18923 EXEEXT!$EXEEXT$ac_delim
18924 OBJEXT!$OBJEXT$ac_delim
18926 CXXFLAGS!$CXXFLAGS$ac_delim
18927 ac_ct_CXX!$ac_ct_CXX$ac_delim
18929 subdirs!$subdirs$ac_delim
18930 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18931 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18932 build!$build$ac_delim
18933 build_cpu!$build_cpu$ac_delim
18934 build_vendor!$build_vendor$ac_delim
18935 build_os!$build_os$ac_delim
18936 host!$host$ac_delim
18937 host_cpu!$host_cpu$ac_delim
18938 host_vendor!$host_vendor$ac_delim
18939 host_os!$host_os$ac_delim
18940 target!$target$ac_delim
18941 target_cpu!$target_cpu$ac_delim
18942 target_vendor!$target_vendor$ac_delim
18943 target_os!$target_os$ac_delim
18945 HOST_OS!$HOST_OS$ac_delim
18946 TARGET_OS!$TARGET_OS$ac_delim
18947 LINKALL!$LINKALL$ac_delim
18948 NOLINKALL!$NOLINKALL$ac_delim
18949 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18950 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18951 ARCH!$ARCH$ac_delim
18952 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18953 HOST_ARCH!$HOST_ARCH$ac_delim
18954 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18955 BUILD_CC!$BUILD_CC$ac_delim
18956 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18957 BUILD_CXX!$BUILD_CXX$ac_delim
18958 CVSBUILD!$CVSBUILD$ac_delim
18959 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18960 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18961 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18962 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18963 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18964 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18965 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18966 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18967 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18968 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18969 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18970 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18971 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18972 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18975 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18977 elif $ac_last_try; then
18978 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18979 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18980 { (exit 1); exit 1; }; }
18982 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18986 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18987 if test -n "$ac_eof"; then
18988 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18989 ac_eof=`expr $ac_eof + 1`
18992 cat >>$CONFIG_STATUS <<_ACEOF
18993 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18997 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18998 s/^/s,@/; s/!/@,|#_!!_#|/
19001 s/'"$ac_delim"'$/,g/; t
19003 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19004 ' >>$CONFIG_STATUS <conf$$subs.sed
19005 rm -f conf$$subs.sed
19006 cat >>$CONFIG_STATUS <<_ACEOF
19012 for ac_last_try in false false false false false :; do
19013 cat >conf$$subs.sed <<_ACEOF
19014 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19015 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19017 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19018 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19019 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19020 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19021 enable_searchengine!$enable_searchengine$ac_delim
19022 enable_external_search!$enable_external_search$ac_delim
19023 enable_server_based_search!$enable_server_based_search$ac_delim
19024 searchengine_url!$searchengine_url$ac_delim
19025 extra_search_mappings!$extra_search_mappings$ac_delim
19026 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
19027 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
19028 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
19029 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
19030 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
19031 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
19032 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
19033 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
19034 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
19035 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
19036 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
19037 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
19038 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
19039 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19040 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19041 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19042 ENABLE_PIC!$ENABLE_PIC$ac_delim
19043 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19044 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19045 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19046 ALL_TARGETS!$ALL_TARGETS$ac_delim
19047 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19048 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19049 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19050 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19051 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19052 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19053 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19054 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19055 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19056 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19057 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19058 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19059 ifGNUmake!$ifGNUmake$ac_delim
19060 LN_S!$LN_S$ac_delim
19064 DATE!$DATE$ac_delim
19065 FIND!$FIND$ac_delim
19066 GREP!$GREP$ac_delim
19067 MKDIR!$MKDIR$ac_delim
19069 RANLIB!$RANLIB$ac_delim
19074 BINPWD!$BINPWD$ac_delim
19076 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19077 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19078 INSTALL_DATA!$INSTALL_DATA$ac_delim
19079 BZIP2!$BZIP2$ac_delim
19081 DOXYGEN!$DOXYGEN$ac_delim
19082 GROFF!$GROFF$ac_delim
19083 GZIPBIN!$GZIPBIN$ac_delim
19084 PDFROFF!$PDFROFF$ac_delim
19087 OCAMLFIND!$OCAMLFIND$ac_delim
19089 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19090 EGREP!$EGREP$ac_delim
19091 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19092 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19093 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19094 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19095 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19096 NO_COMMENT!$NO_COMMENT$ac_delim
19097 PYTHON!$PYTHON$ac_delim
19098 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19099 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19100 USE_OPROFILE!$USE_OPROFILE$ac_delim
19101 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19102 XML2CONFIG!$XML2CONFIG$ac_delim
19103 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19104 LIBXML2_INC!$LIBXML2_INC$ac_delim
19105 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19106 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19107 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19108 MMAP_FILE!$MMAP_FILE$ac_delim
19109 SHLIBEXT!$SHLIBEXT$ac_delim
19110 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19113 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19115 elif $ac_last_try; then
19116 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19117 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19118 { (exit 1); exit 1; }; }
19120 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19124 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19125 if test -n "$ac_eof"; then
19126 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19127 ac_eof=`expr $ac_eof + 1`
19130 cat >>$CONFIG_STATUS <<_ACEOF
19131 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19135 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19136 s/^/s,@/; s/!/@,|#_!!_#|/
19139 s/'"$ac_delim"'$/,g/; t
19141 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19142 ' >>$CONFIG_STATUS <conf$$subs.sed
19143 rm -f conf$$subs.sed
19144 cat >>$CONFIG_STATUS <<_ACEOF
19150 for ac_last_try in false false false false false :; do
19151 cat >conf$$subs.sed <<_ACEOF
19152 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19153 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19154 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19155 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19156 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19157 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19158 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19159 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19160 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19161 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19162 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19163 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19164 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19165 RPATH!$RPATH$ac_delim
19166 RDYNAMIC!$RDYNAMIC$ac_delim
19167 program_prefix!$program_prefix$ac_delim
19168 LIBOBJS!$LIBOBJS$ac_delim
19169 LTLIBOBJS!$LTLIBOBJS$ac_delim
19172 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19174 elif $ac_last_try; then
19175 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19176 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19177 { (exit 1); exit 1; }; }
19179 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19183 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19184 if test -n "$ac_eof"; then
19185 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19186 ac_eof=`expr $ac_eof + 1`
19189 cat >>$CONFIG_STATUS <<_ACEOF
19190 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19191 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19194 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19195 s/^/s,@/; s/!/@,|#_!!_#|/
19198 s/'"$ac_delim"'$/,g/; t
19200 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19201 ' >>$CONFIG_STATUS <conf$$subs.sed
19202 rm -f conf$$subs.sed
19203 cat >>$CONFIG_STATUS <<_ACEOF
19210 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19211 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19212 # trailing colons and then remove the whole line if VPATH becomes empty
19213 # (actually we leave an empty line to preserve line numbers).
19214 if test "x$srcdir" = x.; then
19215 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19216 s/:*\$(srcdir):*/:/
19217 s/:*\${srcdir}:*/:/
19219 s/^\([^=]*=[ ]*\):*/\1/
19225 cat >>$CONFIG_STATUS <<\_ACEOF
19226 fi # test -n "$CONFIG_FILES"
19229 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19232 :[FHLC]) ac_mode=$ac_tag; continue;;
19234 case $ac_mode$ac_tag in
19236 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19237 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19238 { (exit 1); exit 1; }; };;
19239 :[FH]-) ac_tag=-:-;;
19240 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19257 -) ac_f="$tmp/stdin";;
19258 *) # Look for the file first in the build tree, then in the source tree
19259 # (if the path is not absolute). The absolute path cannot be DOS-style,
19260 # because $ac_f cannot contain `:'.
19264 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19266 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19267 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19268 { (exit 1); exit 1; }; };;
19270 ac_file_inputs="$ac_file_inputs $ac_f"
19273 # Let's still pretend it is `configure' which instantiates (i.e., don't
19274 # use $as_me), people would be surprised to read:
19275 # /* config.h. Generated by config.status. */
19276 configure_input="Generated from "`IFS=:
19277 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19278 if test x"$ac_file" != x-; then
19279 configure_input="$ac_file. $configure_input"
19280 { echo "$as_me:$LINENO: creating $ac_file" >&5
19281 echo "$as_me: creating $ac_file" >&6;}
19285 *:-:* | *:-) cat >"$tmp/stdin";;
19290 ac_dir=`$as_dirname -- "$ac_file" ||
19291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19292 X"$ac_file" : 'X\(//\)[^/]' \| \
19293 X"$ac_file" : 'X\(//\)$' \| \
19294 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19300 /^X\(\/\/\)[^/].*/{
19315 -*) as_dir=./$as_dir;;
19317 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19321 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19322 *) as_qdir=$as_dir;;
19324 as_dirs="'$as_qdir' $as_dirs"
19325 as_dir=`$as_dirname -- "$as_dir" ||
19326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19327 X"$as_dir" : 'X\(//\)[^/]' \| \
19328 X"$as_dir" : 'X\(//\)$' \| \
19329 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19335 /^X\(\/\/\)[^/].*/{
19348 test -d "$as_dir" && break
19350 test -z "$as_dirs" || eval "mkdir $as_dirs"
19351 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19352 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19353 { (exit 1); exit 1; }; }; }
19357 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19359 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19360 # A ".." for each directory in $ac_dir_suffix.
19361 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19362 case $ac_top_builddir_sub in
19363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19367 ac_abs_top_builddir=$ac_pwd
19368 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19369 # for backward compatibility:
19370 ac_top_builddir=$ac_top_build_prefix
19373 .) # We are building in place.
19375 ac_top_srcdir=$ac_top_builddir_sub
19376 ac_abs_top_srcdir=$ac_pwd ;;
19377 [\\/]* | ?:[\\/]* ) # Absolute name.
19378 ac_srcdir=$srcdir$ac_dir_suffix;
19379 ac_top_srcdir=$srcdir
19380 ac_abs_top_srcdir=$srcdir ;;
19381 *) # Relative name.
19382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19383 ac_top_srcdir=$ac_top_build_prefix$srcdir
19384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19386 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19396 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19397 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19401 cat >>$CONFIG_STATUS <<\_ACEOF
19402 # If the template does not know about datarootdir, expand it.
19403 # FIXME: This hack should be removed a few years after 2.60.
19404 ac_datarootdir_hack=; ac_datarootdir_seen=
19406 case `sed -n '/datarootdir/ {
19415 ' $ac_file_inputs` in
19416 *datarootdir*) ac_datarootdir_seen=yes;;
19417 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19418 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19419 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19421 cat >>$CONFIG_STATUS <<_ACEOF
19422 ac_datarootdir_hack='
19423 s&@datadir@&$datadir&g
19424 s&@docdir@&$docdir&g
19425 s&@infodir@&$infodir&g
19426 s&@localedir@&$localedir&g
19427 s&@mandir@&$mandir&g
19428 s&\\\${datarootdir}&$datarootdir&g' ;;
19432 # Neutralize VPATH when `$srcdir' = `.'.
19433 # Shell code in configure.ac might set extrasub.
19434 # FIXME: do we really want to maintain this feature?
19435 cat >>$CONFIG_STATUS <<_ACEOF
19439 cat >>$CONFIG_STATUS <<\_ACEOF
19441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19442 s&@configure_input@&$configure_input&;t t
19443 s&@top_builddir@&$ac_top_builddir_sub&;t t
19444 s&@srcdir@&$ac_srcdir&;t t
19445 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19446 s&@top_srcdir@&$ac_top_srcdir&;t t
19447 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19448 s&@builddir@&$ac_builddir&;t t
19449 s&@abs_builddir@&$ac_abs_builddir&;t t
19450 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19451 s&@INSTALL@&$ac_INSTALL&;t t
19452 $ac_datarootdir_hack
19453 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19455 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19456 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19457 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19458 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19459 which seems to be undefined. Please make sure it is defined." >&5
19460 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19461 which seems to be undefined. Please make sure it is defined." >&2;}
19465 -) cat "$tmp/out"; rm -f "$tmp/out";;
19466 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19475 # Transform confdefs.h into a sed script `conftest.defines', that
19476 # substitutes the proper values into config.h.in to produce config.h.
19477 rm -f conftest.defines conftest.tail
19478 # First, append a space to every undef/define line, to ease matching.
19479 echo 's/$/ /' >conftest.defines
19480 # Then, protect against being on the right side of a sed subst, or in
19481 # an unquoted here document, in config.status. If some macros were
19482 # called several times there might be several #defines for the same
19483 # symbol, which is useless. But do not sort them, since the last
19484 # AC_DEFINE must be honored.
19485 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19486 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19487 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19488 # PARAMS is the parameter list in the macro definition--in most cases, it's
19489 # just an empty string.
19490 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19491 ac_dB='\\)[ (].*,\\1define\\2'
19499 s/^[ ]*#[ ]*define[ ][ ]*//
19504 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19505 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19506 ' >>conftest.defines
19508 # Remove the space that was appended to ease matching.
19509 # Then replace #undef with comments. This is necessary, for
19510 # example, in the case of _POSIX_SOURCE, which is predefined and required
19511 # on some systems where configure will not decide to define it.
19512 # (The regexp can be short, since the line contains either #define or #undef.)
19514 s,^[ #]*u.*,/* & */,' >>conftest.defines
19516 # Break up conftest.defines:
19517 ac_max_sed_lines=50
19519 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19520 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19521 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19523 ac_in='$ac_file_inputs'
19524 ac_out='"$tmp/out1"'
19525 ac_nxt='"$tmp/out2"'
19529 # Write a here document:
19530 cat >>$CONFIG_STATUS <<_ACEOF
19531 # First, check the format of the line:
19532 cat >"\$tmp/defines.sed" <<\\CEOF
19533 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19534 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19538 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19540 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19541 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19542 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19543 grep . conftest.tail >/dev/null || break
19544 rm -f conftest.defines
19545 mv conftest.tail conftest.defines
19547 rm -f conftest.defines conftest.tail
19549 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19550 cat >>$CONFIG_STATUS <<\_ACEOF
19551 if test x"$ac_file" != x-; then
19552 echo "/* $configure_input */" >"$tmp/config.h"
19553 cat "$ac_result" >>"$tmp/config.h"
19554 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19555 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19556 echo "$as_me: $ac_file is unchanged" >&6;}
19559 mv "$tmp/config.h" $ac_file
19562 echo "/* $configure_input */"
19568 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19569 echo "$as_me: executing $ac_file commands" >&6;}
19574 case $ac_file$ac_mode in
19575 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19576 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19577 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19578 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19579 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19580 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19581 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19582 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19583 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19584 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19585 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19586 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19587 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19588 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19589 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19590 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19591 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19592 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19593 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19594 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19595 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19596 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19597 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19598 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19604 { (exit 0); exit 0; }
19606 chmod +x $CONFIG_STATUS
19607 ac_clean_files=$ac_clean_files_save
19610 # configure is writing to config.log, and then calls config.status.
19611 # config.status does its own redirection, appending to config.log.
19612 # Unfortunately, on DOS this fails, as config.log is still kept open
19613 # by configure, so config.status won't be able to write to it; its
19614 # output is simply discarded. So we exec the FD to /dev/null,
19615 # effectively closing config.log, so it can be properly (re)opened and
19616 # appended to by config.status. When coming back to configure, we
19617 # need to make the FD available again.
19618 if test "$no_create" != yes; then
19620 ac_config_status_args=
19621 test "$silent" = yes &&
19622 ac_config_status_args="$ac_config_status_args --quiet"
19624 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19626 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19627 # would make configure fail if this is the last instruction.
19628 $ac_cs_success || { (exit 1); exit 1; }
19632 # CONFIG_SUBDIRS section.
19634 if test "$no_recursion" != yes; then
19636 # Remove --cache-file and --srcdir arguments so they do not pile up.
19637 ac_sub_configure_args=
19639 eval "set x $ac_configure_args"
19643 if test -n "$ac_prev"; then
19648 -cache-file | --cache-file | --cache-fil | --cache-fi \
19649 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19650 ac_prev=cache_file ;;
19651 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19652 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19655 --config-cache | -C)
19657 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19659 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19661 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19663 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19667 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19669 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19673 # Always prepend --prefix to ensure using the same prefix
19674 # in subdir configurations.
19675 ac_arg="--prefix=$prefix"
19677 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19679 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19682 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19684 # Do not complain, so a configure script can configure whichever
19685 # parts of a large source tree are present.
19686 test -d "$srcdir/$ac_dir" || continue
19688 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19689 echo "$as_me:$LINENO: $ac_msg" >&5
19693 -*) as_dir=./$as_dir;;
19695 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19699 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19700 *) as_qdir=$as_dir;;
19702 as_dirs="'$as_qdir' $as_dirs"
19703 as_dir=`$as_dirname -- "$as_dir" ||
19704 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19705 X"$as_dir" : 'X\(//\)[^/]' \| \
19706 X"$as_dir" : 'X\(//\)$' \| \
19707 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19713 /^X\(\/\/\)[^/].*/{
19726 test -d "$as_dir" && break
19728 test -z "$as_dirs" || eval "mkdir $as_dirs"
19729 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19730 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19731 { (exit 1); exit 1; }; }; }
19735 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19737 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19738 # A ".." for each directory in $ac_dir_suffix.
19739 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19740 case $ac_top_builddir_sub in
19741 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19742 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19745 ac_abs_top_builddir=$ac_pwd
19746 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19747 # for backward compatibility:
19748 ac_top_builddir=$ac_top_build_prefix
19751 .) # We are building in place.
19753 ac_top_srcdir=$ac_top_builddir_sub
19754 ac_abs_top_srcdir=$ac_pwd ;;
19755 [\\/]* | ?:[\\/]* ) # Absolute name.
19756 ac_srcdir=$srcdir$ac_dir_suffix;
19757 ac_top_srcdir=$srcdir
19758 ac_abs_top_srcdir=$srcdir ;;
19759 *) # Relative name.
19760 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19761 ac_top_srcdir=$ac_top_build_prefix$srcdir
19762 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19764 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19769 # Check for guested configure; otherwise get Cygnus style configure.
19770 if test -f "$ac_srcdir/configure.gnu"; then
19771 ac_sub_configure=$ac_srcdir/configure.gnu
19772 elif test -f "$ac_srcdir/configure"; then
19773 ac_sub_configure=$ac_srcdir/configure
19774 elif test -f "$ac_srcdir/configure.in"; then
19775 # This should be Cygnus configure.
19776 ac_sub_configure=$ac_aux_dir/configure
19778 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19779 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19783 # The recursion is here.
19784 if test -n "$ac_sub_configure"; then
19785 # Make the cache file name correct relative to the subdirectory.
19786 case $cache_file in
19787 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19788 *) # Relative name.
19789 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19792 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19793 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19794 # The eval makes quoting arguments work.
19795 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19796 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19797 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19798 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19799 { (exit 1); exit 1; }; }