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, and
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-binutils-include Specify path to binutils/include/ containing
1499 plugin-api.h file for gold plugin.
1500 --with-bug-report-url Specify the URL where bug reports should be
1501 submitted (default=http://llvm.org/bugs/)
1502 --with-internal-prefix Installation directory for internal files
1503 --with-python path to python
1504 --with-oprofile=<prefix>
1505 Tell OProfile >= 0.9.4 how to symbolize JIT output
1506 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1509 Some influential environment variables:
1510 CC C compiler command
1511 CFLAGS C compiler flags
1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513 nonstandard directory <lib dir>
1514 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1516 CXX C++ compiler command
1517 CXXFLAGS C++ compiler flags
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1523 Report bugs to <http://llvm.org/bugs/>.
1528 if test "$ac_init_help" = "recursive"; then
1529 # If there are subdirs, report their specific --help.
1530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531 test -d "$ac_dir" || continue
1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1538 # A ".." for each directory in $ac_dir_suffix.
1539 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1540 case $ac_top_builddir_sub in
1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545 ac_abs_top_builddir=$ac_pwd
1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547 # for backward compatibility:
1548 ac_top_builddir=$ac_top_build_prefix
1551 .) # We are building in place.
1553 ac_top_srcdir=$ac_top_builddir_sub
1554 ac_abs_top_srcdir=$ac_pwd ;;
1555 [\\/]* | ?:[\\/]* ) # Absolute name.
1556 ac_srcdir=$srcdir$ac_dir_suffix;
1557 ac_top_srcdir=$srcdir
1558 ac_abs_top_srcdir=$srcdir ;;
1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561 ac_top_srcdir=$ac_top_build_prefix$srcdir
1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566 cd "$ac_dir" || { ac_status=$?; continue; }
1567 # Check for guested configure.
1568 if test -f "$ac_srcdir/configure.gnu"; then
1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571 elif test -f "$ac_srcdir/configure"; then
1573 $SHELL "$ac_srcdir/configure" --help=recursive
1575 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577 cd "$ac_pwd" || { ac_status=$?; break; }
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1584 LLVM configure 3.7.0svn
1585 generated by GNU Autoconf 2.60
1587 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1588 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1589 This configure script is free software; the Free Software Foundation
1590 gives unlimited permission to copy, distribute and modify it.
1592 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1596 cat >config.log <<_ACEOF
1597 This file contains any messages produced by compilers while
1598 running configure, to aid debugging if configure makes a mistake.
1600 It was created by LLVM $as_me 3.7.0svn, which was
1601 generated by GNU Autoconf 2.60. Invocation command line was
1613 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1614 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1615 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1616 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1617 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1619 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1620 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1622 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1623 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1624 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1625 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1626 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1627 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1628 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 test -z "$as_dir" && as_dir=.
1637 echo "PATH: $as_dir"
1653 # Keep a trace of the command line.
1654 # Strip out --no-create and --no-recursion so they do not pile up.
1655 # Strip out --silent because we don't want to record it for future runs.
1656 # Also quote any args containing shell meta-characters.
1657 # Make two passes to allow for proper duplicate-argument suppression.
1661 ac_must_keep_next=false
1667 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669 | -silent | --silent | --silen | --sile | --sil)
1672 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1675 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1677 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1678 if test $ac_must_keep_next = true; then
1679 ac_must_keep_next=false # Got value, back to normal.
1682 *=* | --config-cache | -C | -disable-* | --disable-* \
1683 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1684 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1685 | -with-* | --with-* | -without-* | --without-* | --x)
1686 case "$ac_configure_args0 " in
1687 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1690 -* ) ac_must_keep_next=true ;;
1693 ac_configure_args="$ac_configure_args '$ac_arg'"
1698 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1699 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1701 # When interrupted or exit'd, cleanup temporary files, and complete
1702 # config.log. We remove comments because anyway the quotes in there
1703 # would cause problems or look ugly.
1704 # WARNING: Use '\'' to represent an apostrophe within the trap.
1705 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1706 trap 'exit_status=$?
1707 # Save into config.log some information that might help in debugging.
1712 ## ---------------- ##
1713 ## Cache variables. ##
1714 ## ---------------- ##
1717 # The following way of writing the cache mishandles newlines in values,
1719 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1720 eval ac_val=\$$ac_var
1724 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1725 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1728 _ | IFS | as_nl) ;; #(
1729 *) $as_unset $ac_var ;;
1734 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1735 *${as_nl}ac_space=\ *)
1737 "s/'\''/'\''\\\\'\'''\''/g;
1738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1749 ## ----------------- ##
1750 ## Output variables. ##
1751 ## ----------------- ##
1754 for ac_var in $ac_subst_vars
1756 eval ac_val=\$$ac_var
1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 echo "$ac_var='\''$ac_val'\''"
1764 if test -n "$ac_subst_files"; then
1766 ## ------------------- ##
1767 ## File substitutions. ##
1768 ## ------------------- ##
1771 for ac_var in $ac_subst_files
1773 eval ac_val=\$$ac_var
1775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777 echo "$ac_var='\''$ac_val'\''"
1782 if test -s confdefs.h; then
1792 test "$ac_signal" != 0 &&
1793 echo "$as_me: caught signal $ac_signal"
1794 echo "$as_me: exit $exit_status"
1796 rm -f core *.core core.conftest.* &&
1797 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1800 for ac_signal in 1 2 13 15; do
1801 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1805 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1806 rm -f -r conftest* confdefs.h
1808 # Predefined preprocessor variables.
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_NAME "$PACKAGE_NAME"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_STRING "$PACKAGE_STRING"
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1835 # Let the site file select an alternate cache file if it wants to.
1836 # Prefer explicitly selected file to automatically selected ones.
1837 if test -n "$CONFIG_SITE"; then
1838 set x "$CONFIG_SITE"
1839 elif test "x$prefix" != xNONE; then
1840 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1842 set x "$ac_default_prefix/share/config.site" \
1843 "$ac_default_prefix/etc/config.site"
1848 if test -r "$ac_site_file"; then
1849 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850 echo "$as_me: loading site script $ac_site_file" >&6;}
1851 sed 's/^/| /' "$ac_site_file" >&5
1856 if test -r "$cache_file"; then
1857 # Some versions of bash will fail to source /dev/null (special
1858 # files actually), so we avoid doing that.
1859 if test -f "$cache_file"; then
1860 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861 echo "$as_me: loading cache $cache_file" >&6;}
1863 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1864 *) . "./$cache_file";;
1868 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869 echo "$as_me: creating cache $cache_file" >&6;}
1873 # Check that the precious variables saved in the cache have kept the same
1875 ac_cache_corrupted=false
1876 for ac_var in $ac_precious_vars; do
1877 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878 eval ac_new_set=\$ac_env_${ac_var}_set
1879 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880 eval ac_new_val=\$ac_env_${ac_var}_value
1881 case $ac_old_set,$ac_new_set in
1883 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1887 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889 ac_cache_corrupted=: ;;
1892 if test "x$ac_old_val" != "x$ac_new_val"; then
1893 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1896 echo "$as_me: former value: $ac_old_val" >&2;}
1897 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1898 echo "$as_me: current value: $ac_new_val" >&2;}
1899 ac_cache_corrupted=:
1902 # Pass precious variables to config.status.
1903 if test "$ac_new_set" = set; then
1905 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906 *) ac_arg=$ac_var=$ac_new_val ;;
1908 case " $ac_configure_args " in
1909 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1910 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1914 if $ac_cache_corrupted; then
1915 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919 { (exit 1); exit 1; }; }
1947 ac_cpp='$CPP $CPPFLAGS'
1948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954 LLVM_VERSION_MAJOR=3
1955 LLVM_VERSION_MINOR=7
1956 LLVM_VERSION_PATCH=0
1957 LLVM_VERSION_SUFFIX=svn
1960 cat >>confdefs.h <<_ACEOF
1961 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1965 cat >>confdefs.h <<_ACEOF
1966 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1970 cat >>confdefs.h <<_ACEOF
1971 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1975 cat >>confdefs.h <<_ACEOF
1976 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1985 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1994 for ac_dir in autoconf "$srcdir"/autoconf; do
1995 if test -f "$ac_dir/install-sh"; then
1997 ac_install_sh="$ac_aux_dir/install-sh -c"
1999 elif test -f "$ac_dir/install.sh"; then
2001 ac_install_sh="$ac_aux_dir/install.sh -c"
2003 elif test -f "$ac_dir/shtool"; then
2005 ac_install_sh="$ac_aux_dir/shtool install -c"
2009 if test -z "$ac_aux_dir"; then
2010 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2011 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2012 { (exit 1); exit 1; }; }
2015 # These three variables are undocumented and unsupported,
2016 # and are intended to be withdrawn in a future Autoconf release.
2017 # They can cause serious problems if a builder's source tree is in a directory
2018 # whose full name contains unusual characters.
2019 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2020 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2021 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2025 if test ${srcdir} != "." ; then
2026 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2027 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2028 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2029 { (exit 1); exit 1; }; }
2033 if test ${srcdir} == "." ; then
2034 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2035 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2036 { echo "$as_me:$LINENO: WARNING: * *" >&5
2037 echo "$as_me: WARNING: * *" >&2;}
2038 { echo "$as_me:$LINENO: WARNING: * WARNING *" >&5
2039 echo "$as_me: WARNING: * WARNING *" >&2;}
2040 { echo "$as_me:$LINENO: WARNING: * *" >&5
2041 echo "$as_me: WARNING: * *" >&2;}
2042 { echo "$as_me:$LINENO: WARNING: * In-source builds are deprecated. *" >&5
2043 echo "$as_me: WARNING: * In-source builds are deprecated. *" >&2;}
2044 { echo "$as_me:$LINENO: WARNING: * *" >&5
2045 echo "$as_me: WARNING: * *" >&2;}
2046 { echo "$as_me:$LINENO: WARNING: * Please configure from a separate build directory! *" >&5
2047 echo "$as_me: WARNING: * Please configure from a separate build directory! *" >&2;}
2048 { echo "$as_me:$LINENO: WARNING: * *" >&5
2049 echo "$as_me: WARNING: * *" >&2;}
2050 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2051 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2058 ac_cpp='$CPP $CPPFLAGS'
2059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062 if test -n "$ac_tool_prefix"; then
2063 for ac_prog in clang gcc
2065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2069 if test "${ac_cv_prog_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 if test -n "$CC"; then
2073 ac_cv_prog_CC="$CC" # Let the user override the test.
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2082 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 if test -n "$CC"; then
2094 { echo "$as_me:$LINENO: result: $CC" >&5
2095 echo "${ECHO_T}$CC" >&6; }
2097 { echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6; }
2102 test -n "$CC" && break
2105 if test -z "$CC"; then
2107 for ac_prog in clang gcc
2109 # Extract the first word of "$ac_prog", so it can be a program name with args.
2110 set dummy $ac_prog; ac_word=$2
2111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 if test -n "$ac_ct_CC"; then
2117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2126 ac_cv_prog_ac_ct_CC="$ac_prog"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2137 if test -n "$ac_ct_CC"; then
2138 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2139 echo "${ECHO_T}$ac_ct_CC" >&6; }
2141 { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2146 test -n "$ac_ct_CC" && break
2149 if test "x$ac_ct_CC" = x; then
2152 case $cross_compiling:$ac_tool_warned in
2154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2155 whose name does not start with the host triplet. If you think this
2156 configuration is useful to you, please write to autoconf@gnu.org." >&5
2157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2158 whose name does not start with the host triplet. If you think this
2159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2160 ac_tool_warned=yes ;;
2167 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2168 See \`config.log' for more details." >&5
2169 echo "$as_me: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&2;}
2171 { (exit 1); exit 1; }; }
2173 # Provide some information about the compiler.
2174 echo "$as_me:$LINENO: checking for C compiler version" >&5
2175 ac_compiler=`set X $ac_compile; echo $2`
2176 { (ac_try="$ac_compiler --version >&5"
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2182 (eval "$ac_compiler --version >&5") 2>&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }
2186 { (ac_try="$ac_compiler -v >&5"
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2192 (eval "$ac_compiler -v >&5") 2>&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }
2196 { (ac_try="$ac_compiler -V >&5"
2198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199 *) ac_try_echo=$ac_try;;
2201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2202 (eval "$ac_compiler -V >&5") 2>&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }
2207 cat >conftest.$ac_ext <<_ACEOF
2210 cat confdefs.h >>conftest.$ac_ext
2211 cat >>conftest.$ac_ext <<_ACEOF
2212 /* end confdefs.h. */
2222 ac_clean_files_save=$ac_clean_files
2223 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2224 # Try to create an executable without -o first, disregard a.out.
2225 # It will help us diagnose broken compilers, and finding out an intuition
2227 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2228 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2229 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2231 # List of possible output files, starting from the most likely.
2232 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2233 # only as a last resort. b.out is created by i960 compilers.
2234 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2236 # The IRIX 6 linker writes into existing files which may not be
2237 # executable, retaining their permissions. Remove them first so a
2238 # subsequent execution test works.
2240 for ac_file in $ac_files
2243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2244 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2249 if { (ac_try="$ac_link_default"
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_link_default") 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
2259 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2260 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2261 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2262 # so that the user can short-circuit this test for compilers unknown to
2264 for ac_file in $ac_files
2266 test -f "$ac_file" || continue
2268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2271 # We found the default executable, but exeext='' is most
2275 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2277 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279 # We set ac_cv_exeext here because the later test for it is not
2280 # safe: cross compilers may not add the suffix if given an `-o'
2281 # argument, so we may need to know it at that point already.
2282 # Even if this section looks crufty: it has the advantage of
2289 test "$ac_cv_exeext" = no && ac_cv_exeext=
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2295 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: C compiler cannot create executables
2298 See \`config.log' for more details." >&2;}
2299 { (exit 77); exit 77; }; }
2302 ac_exeext=$ac_cv_exeext
2303 { echo "$as_me:$LINENO: result: $ac_file" >&5
2304 echo "${ECHO_T}$ac_file" >&6; }
2306 # Check that the compiler produces executables we can run. If not, either
2307 # the compiler is broken, or we cross compile.
2308 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2309 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2310 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2311 # If not cross compiling, check that we can run a simple program.
2312 if test "$cross_compiling" != yes; then
2313 if { ac_try='./$ac_file'
2314 { (case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319 (eval "$ac_try") 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2325 if test "$cross_compiling" = maybe; then
2328 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2329 If you meant to cross compile, use \`--host'.
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: cannot run C compiled programs.
2332 If you meant to cross compile, use \`--host'.
2333 See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2338 { echo "$as_me:$LINENO: result: yes" >&5
2339 echo "${ECHO_T}yes" >&6; }
2341 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2342 ac_clean_files=$ac_clean_files_save
2343 # Check that the compiler produces executables we can run. If not, either
2344 # the compiler is broken, or we cross compile.
2345 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2346 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2347 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2348 echo "${ECHO_T}$cross_compiling" >&6; }
2350 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2351 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2352 if { (ac_try="$ac_link"
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358 (eval "$ac_link") 2>&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; then
2362 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2363 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2364 # work properly (i.e., refer to `conftest.exe'), while it won't with
2366 for ac_file in conftest.exe conftest conftest.*; do
2367 test -f "$ac_file" || continue
2369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2370 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2376 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2377 See \`config.log' for more details." >&5
2378 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&2;}
2380 { (exit 1); exit 1; }; }
2383 rm -f conftest$ac_cv_exeext
2384 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2385 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2387 rm -f conftest.$ac_ext
2388 EXEEXT=$ac_cv_exeext
2390 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2391 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2392 if test "${ac_cv_objext+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 cat >conftest.$ac_ext <<_ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2410 rm -f conftest.o conftest.obj
2411 if { (ac_try="$ac_compile"
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_compile") 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; then
2421 for ac_file in conftest.o conftest.obj conftest.*; do
2422 test -f "$ac_file" || continue;
2424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2425 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2430 echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2433 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2434 See \`config.log' for more details." >&5
2435 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }
2440 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2442 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2443 echo "${ECHO_T}$ac_cv_objext" >&6; }
2444 OBJEXT=$ac_cv_objext
2446 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2447 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2448 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 cat >conftest.$ac_ext <<_ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2469 rm -f conftest.$ac_objext
2470 if { (ac_try="$ac_compile"
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_compile") 2>conftest.er1
2478 grep -v '^ *+' conftest.er1 >conftest.err
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2484 { (case "(($ac_try" in
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489 (eval "$ac_try") 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; } &&
2493 { ac_try='test -s conftest.$ac_objext'
2494 { (case "(($ac_try" in
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_try") 2>&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2515 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2516 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2517 GCC=`test $ac_compiler_gnu = yes && echo yes`
2518 ac_test_CFLAGS=${CFLAGS+set}
2519 ac_save_CFLAGS=$CFLAGS
2520 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2521 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_cc_g+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 ac_save_c_werror_flag=$ac_c_werror_flag
2526 ac_c_werror_flag=yes
2529 cat >conftest.$ac_ext <<_ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2544 rm -f conftest.$ac_objext
2545 if { (ac_try="$ac_compile"
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_compile") 2>conftest.er1
2553 grep -v '^ *+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2559 { (case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_try") 2>&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest.$ac_objext'
2569 { (case "(($ac_try" in
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574 (eval "$ac_try") 2>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2584 cat >conftest.$ac_ext <<_ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2599 rm -f conftest.$ac_objext
2600 if { (ac_try="$ac_compile"
2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603 *) ac_try_echo=$ac_try;;
2605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606 (eval "$ac_compile") 2>conftest.er1
2608 grep -v '^ *+' conftest.er1 >conftest.err
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2614 { (case "(($ac_try" in
2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619 (eval "$ac_try") 2>&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (case "(($ac_try" in
2625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626 *) ac_try_echo=$ac_try;;
2628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2629 (eval "$ac_try") 2>&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2638 ac_c_werror_flag=$ac_save_c_werror_flag
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2655 rm -f conftest.$ac_objext
2656 if { (ac_try="$ac_compile"
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compile") 2>conftest.er1
2664 grep -v '^ *+' conftest.er1 >conftest.err
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2670 { (case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_try") 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; } &&
2679 { ac_try='test -s conftest.$ac_objext'
2680 { (case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_try") 2>&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; }; then
2691 echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704 ac_c_werror_flag=$ac_save_c_werror_flag
2706 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2707 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2708 if test "$ac_test_CFLAGS" = set; then
2709 CFLAGS=$ac_save_CFLAGS
2710 elif test $ac_cv_prog_cc_g = yes; then
2711 if test "$GCC" = yes; then
2717 if test "$GCC" = yes; then
2723 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2724 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2725 if test "${ac_cv_prog_cc_c89+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 ac_cv_prog_cc_c89=no
2730 cat >conftest.$ac_ext <<_ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2738 #include <sys/types.h>
2739 #include <sys/stat.h>
2740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2741 struct buf { int x; };
2742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2743 static char *e (p, i)
2749 static char *f (char * (*g) (char **, int), char **p, ...)
2754 s = g (p, va_arg (v,int));
2759 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2760 function prototypes and stuff, but not '\xHH' hex character constants.
2761 These don't provoke an error unfortunately, instead are silently treated
2762 as 'x'. The following induces an error, until -std is added to get
2763 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2764 array size at least. It's necessary to write '\x00'==0 to get something
2765 that's true only with -std. */
2766 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2768 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2769 inside strings and character constants. */
2771 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2773 int test (int i, double x);
2774 struct s1 {int (*f) (int a);};
2775 struct s2 {int (*f) (double a);};
2776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2782 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2787 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2788 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2790 CC="$ac_save_CC $ac_arg"
2791 rm -f conftest.$ac_objext
2792 if { (ac_try="$ac_compile"
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_compile") 2>conftest.er1
2800 grep -v '^ *+' conftest.er1 >conftest.err
2802 cat conftest.err >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } &&
2805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2806 { (case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_try") 2>&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; } &&
2815 { ac_try='test -s conftest.$ac_objext'
2816 { (case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_try") 2>&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 ac_cv_prog_cc_c89=$ac_arg
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2833 rm -f core conftest.err conftest.$ac_objext
2834 test "x$ac_cv_prog_cc_c89" != "xno" && break
2836 rm -f conftest.$ac_ext
2841 case "x$ac_cv_prog_cc_c89" in
2843 { echo "$as_me:$LINENO: result: none needed" >&5
2844 echo "${ECHO_T}none needed" >&6; } ;;
2846 { echo "$as_me:$LINENO: result: unsupported" >&5
2847 echo "${ECHO_T}unsupported" >&6; } ;;
2849 CC="$CC $ac_cv_prog_cc_c89"
2850 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2851 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2856 ac_cpp='$CPP $CPPFLAGS'
2857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862 ac_cpp='$CXXCPP $CPPFLAGS'
2863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2866 if test -z "$CXX"; then
2867 if test -n "$CCC"; then
2870 if test -n "$ac_tool_prefix"; then
2871 for ac_prog in clang++ g++
2873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2874 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_CXX+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 if test -n "$CXX"; then
2881 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2890 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 if test -n "$CXX"; then
2902 { echo "$as_me:$LINENO: result: $CXX" >&5
2903 echo "${ECHO_T}$CXX" >&6; }
2905 { echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6; }
2910 test -n "$CXX" && break
2913 if test -z "$CXX"; then
2915 for ac_prog in clang++ g++
2917 # Extract the first word of "$ac_prog", so it can be a program name with args.
2918 set dummy $ac_prog; ac_word=$2
2919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2921 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 if test -n "$ac_ct_CXX"; then
2925 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 ac_cv_prog_ac_ct_CXX="$ac_prog"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2945 if test -n "$ac_ct_CXX"; then
2946 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2947 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2949 { echo "$as_me:$LINENO: result: no" >&5
2950 echo "${ECHO_T}no" >&6; }
2954 test -n "$ac_ct_CXX" && break
2957 if test "x$ac_ct_CXX" = x; then
2960 case $cross_compiling:$ac_tool_warned in
2962 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2963 whose name does not start with the host triplet. If you think this
2964 configuration is useful to you, please write to autoconf@gnu.org." >&5
2965 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2966 whose name does not start with the host triplet. If you think this
2967 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2968 ac_tool_warned=yes ;;
2976 # Provide some information about the compiler.
2977 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2978 ac_compiler=`set X $ac_compile; echo $2`
2979 { (ac_try="$ac_compiler --version >&5"
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compiler --version >&5") 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }
2989 { (ac_try="$ac_compiler -v >&5"
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_compiler -v >&5") 2>&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }
2999 { (ac_try="$ac_compiler -V >&5"
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compiler -V >&5") 2>&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3010 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3011 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3012 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 cat >conftest.$ac_ext <<_ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3033 rm -f conftest.$ac_objext
3034 if { (ac_try="$ac_compile"
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compile") 2>conftest.er1
3042 grep -v '^ *+' conftest.er1 >conftest.err
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3048 { (case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_try") 2>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_try") 2>&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; }; then
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3079 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3080 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3081 GXX=`test $ac_compiler_gnu = yes && echo yes`
3082 ac_test_CXXFLAGS=${CXXFLAGS+set}
3083 ac_save_CXXFLAGS=$CXXFLAGS
3084 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3085 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3086 if test "${ac_cv_prog_cxx_g+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3090 ac_cxx_werror_flag=yes
3093 cat >conftest.$ac_ext <<_ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3108 rm -f conftest.$ac_objext
3109 if { (ac_try="$ac_compile"
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compile") 2>conftest.er1
3117 grep -v '^ *+' conftest.er1 >conftest.err
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3123 { (case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_try") 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; } &&
3132 { ac_try='test -s conftest.$ac_objext'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3142 ac_cv_prog_cxx_g=yes
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3148 cat >conftest.$ac_ext <<_ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3163 rm -f conftest.$ac_objext
3164 if { (ac_try="$ac_compile"
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3172 grep -v '^ *+' conftest.er1 >conftest.err
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3178 { (case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_try") 2>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_try") 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3202 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3204 cat >conftest.$ac_ext <<_ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3219 rm -f conftest.$ac_objext
3220 if { (ac_try="$ac_compile"
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_compile") 2>conftest.er1
3228 grep -v '^ *+' conftest.er1 >conftest.err
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3234 { (case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_try") 2>&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; } &&
3243 { ac_try='test -s conftest.$ac_objext'
3244 { (case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_try") 2>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
3253 ac_cv_prog_cxx_g=yes
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3270 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3271 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3272 if test "$ac_test_CXXFLAGS" = set; then
3273 CXXFLAGS=$ac_save_CXXFLAGS
3274 elif test $ac_cv_prog_cxx_g = yes; then
3275 if test "$GXX" = yes; then
3281 if test "$GXX" = yes; then
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 ac_cpp='$CPP $CPPFLAGS'
3295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3299 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3300 # On Suns, sometimes $CPP names a directory.
3301 if test -n "$CPP" && test -d "$CPP"; then
3304 if test -z "$CPP"; then
3305 if test "${ac_cv_prog_CPP+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 # Double quotes because CPP needs to be expanded
3309 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3312 for ac_c_preproc_warn_flag in '' yes
3314 # Use a header file that comes with gcc, so configuring glibc
3315 # with a fresh cross-compiler works.
3316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3317 # <limits.h> exists even on freestanding compilers.
3318 # On the NeXT, cc -E runs the code through the compiler's parser,
3319 # not just through cpp. "Syntax error" is here to catch this case.
3320 cat >conftest.$ac_ext <<_ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3327 # include <limits.h>
3329 # include <assert.h>
3333 if { (ac_try="$ac_cpp conftest.$ac_ext"
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3341 grep -v '^ *+' conftest.er1 >conftest.err
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } >/dev/null; then
3346 if test -s conftest.err; then
3347 ac_cpp_err=$ac_c_preproc_warn_flag
3348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3355 if test -z "$ac_cpp_err"; then
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 # Broken: fails on valid input.
3365 rm -f conftest.err conftest.$ac_ext
3367 # OK, works on sane cases. Now check whether nonexistent headers
3368 # can be detected and how.
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375 #include <ac_nonexistent.h>
3377 if { (ac_try="$ac_cpp conftest.$ac_ext"
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385 grep -v '^ *+' conftest.er1 >conftest.err
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev/null; then
3390 if test -s conftest.err; then
3391 ac_cpp_err=$ac_c_preproc_warn_flag
3392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3399 if test -z "$ac_cpp_err"; then
3400 # Broken: success on invalid input.
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 # Passes both tests.
3411 rm -f conftest.err conftest.$ac_ext
3414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3415 rm -f conftest.err conftest.$ac_ext
3416 if $ac_preproc_ok; then
3428 { echo "$as_me:$LINENO: result: $CPP" >&5
3429 echo "${ECHO_T}$CPP" >&6; }
3431 for ac_c_preproc_warn_flag in '' yes
3433 # Use a header file that comes with gcc, so configuring glibc
3434 # with a fresh cross-compiler works.
3435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3436 # <limits.h> exists even on freestanding compilers.
3437 # On the NeXT, cc -E runs the code through the compiler's parser,
3438 # not just through cpp. "Syntax error" is here to catch this case.
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3446 # include <limits.h>
3448 # include <assert.h>
3452 if { (ac_try="$ac_cpp conftest.$ac_ext"
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3460 grep -v '^ *+' conftest.er1 >conftest.err
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } >/dev/null; then
3465 if test -s conftest.err; then
3466 ac_cpp_err=$ac_c_preproc_warn_flag
3467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3474 if test -z "$ac_cpp_err"; then
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 # Broken: fails on valid input.
3484 rm -f conftest.err conftest.$ac_ext
3486 # OK, works on sane cases. Now check whether nonexistent headers
3487 # can be detected and how.
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494 #include <ac_nonexistent.h>
3496 if { (ac_try="$ac_cpp conftest.$ac_ext"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } >/dev/null; then
3509 if test -s conftest.err; then
3510 ac_cpp_err=$ac_c_preproc_warn_flag
3511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3518 if test -z "$ac_cpp_err"; then
3519 # Broken: success on invalid input.
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3525 # Passes both tests.
3530 rm -f conftest.err conftest.$ac_ext
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.err conftest.$ac_ext
3535 if $ac_preproc_ok; then
3538 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3539 See \`config.log' for more details." >&5
3540 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." >&2;}
3542 { (exit 1); exit 1; }; }
3546 ac_cpp='$CPP $CPPFLAGS'
3547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552 if test "$CXX" = "clang++" ; then
3553 { echo "$as_me:$LINENO: checking whether clang works" >&5
3554 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3556 ac_cpp='$CXXCPP $CPPFLAGS'
3557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3562 cat >conftest.$ac_ext <<_ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3569 #if __has_include (<cxxabi.h>)
3572 #if __has_include (<unwind.h>)
3584 rm -f conftest.$ac_objext
3585 if { (ac_try="$ac_compile"
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_compile") 2>conftest.er1
3593 grep -v '^ *+' conftest.er1 >conftest.err
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } &&
3598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3599 { (case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604 (eval "$ac_try") 2>&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_try") 2>&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3619 { echo "$as_me:$LINENO: result: yes" >&5
3620 echo "${ECHO_T}yes" >&6; }
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3627 { echo "$as_me:$LINENO: result: no" >&5
3628 echo "${ECHO_T}no" >&6; }
3629 { { 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
3630 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;}
3631 { (exit 1); exit 1; }; }
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3645 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3647 ac_cpp='$CXXCPP $CPPFLAGS'
3648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3652 llvm_cv_cxx_compiler=unknown
3653 cat >conftest.$ac_ext <<_ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3664 rm -f conftest.$ac_objext
3665 if { (ac_try="$ac_compile"
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_compile") 2>conftest.er1
3673 grep -v '^ *+' conftest.er1 >conftest.err
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3679 { (case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 (eval "$ac_try") 2>&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest.$ac_objext'
3689 { (case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694 (eval "$ac_try") 2>&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3698 llvm_cv_cxx_compiler=clang
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 cat >conftest.$ac_ext <<_ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3714 rm -f conftest.$ac_objext
3715 if { (ac_try="$ac_compile"
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721 (eval "$ac_compile") 2>conftest.er1
3723 grep -v '^ *+' conftest.er1 >conftest.err
3725 cat conftest.err >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
3728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3729 { (case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734 (eval "$ac_try") 2>&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; } &&
3738 { ac_try='test -s conftest.$ac_objext'
3739 { (case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744 (eval "$ac_try") 2>&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 llvm_cv_cxx_compiler=gcc
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 ac_cpp='$CPP $CPPFLAGS'
3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3767 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3771 if test -d ${srcdir}/projects/test-suite ; then
3772 subdirs="$subdirs projects/test-suite"
3776 if test -d ${srcdir}/projects/llvm-test ; then
3777 subdirs="$subdirs projects/llvm-test"
3781 if test -d ${srcdir}/projects/poolalloc ; then
3782 subdirs="$subdirs projects/poolalloc"
3786 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3787 subdirs="$subdirs projects/llvm-poolalloc"
3791 for i in `ls ${srcdir}/projects`
3793 if test -d ${srcdir}/projects/${i} ; then
3795 safecode) subdirs="$subdirs projects/safecode"
3803 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3804 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3810 # Check whether --enable-polly was given.
3811 if test "${enable_polly+set}" = set; then
3812 enableval=$enable_polly;
3817 case "$enableval" in
3822 default) ENABLE_POLLY=1
3824 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3825 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3826 { (exit 1); exit 1; }; } ;;
3830 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3833 subdirs="$subdirs tools/polly"
3838 # Make sure we can run config.sub.
3839 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3840 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3841 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3842 { (exit 1); exit 1; }; }
3844 { echo "$as_me:$LINENO: checking build system type" >&5
3845 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3846 if test "${ac_cv_build+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 ac_build_alias=$build_alias
3850 test "x$ac_build_alias" = x &&
3851 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3852 test "x$ac_build_alias" = x &&
3853 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3854 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3855 { (exit 1); exit 1; }; }
3856 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3857 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3858 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3859 { (exit 1); exit 1; }; }
3862 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3863 echo "${ECHO_T}$ac_cv_build" >&6; }
3864 case $ac_cv_build in
3866 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3867 echo "$as_me: error: invalid value of canonical build" >&2;}
3868 { (exit 1); exit 1; }; };;
3871 ac_save_IFS=$IFS; IFS='-'
3877 # Remember, the first character of IFS is used to create $*,
3878 # except with old shells:
3881 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3884 { echo "$as_me:$LINENO: checking host system type" >&5
3885 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3886 if test "${ac_cv_host+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 if test "x$host_alias" = x; then
3890 ac_cv_host=$ac_cv_build
3892 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3893 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3894 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3895 { (exit 1); exit 1; }; }
3899 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3900 echo "${ECHO_T}$ac_cv_host" >&6; }
3903 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3904 echo "$as_me: error: invalid value of canonical host" >&2;}
3905 { (exit 1); exit 1; }; };;
3908 ac_save_IFS=$IFS; IFS='-'
3914 # Remember, the first character of IFS is used to create $*,
3915 # except with old shells:
3918 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3921 { echo "$as_me:$LINENO: checking target system type" >&5
3922 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3923 if test "${ac_cv_target+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 if test "x$target_alias" = x; then
3927 ac_cv_target=$ac_cv_host
3929 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3930 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3931 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3932 { (exit 1); exit 1; }; }
3936 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3937 echo "${ECHO_T}$ac_cv_target" >&6; }
3938 case $ac_cv_target in
3940 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3941 echo "$as_me: error: invalid value of canonical target" >&2;}
3942 { (exit 1); exit 1; }; };;
3944 target=$ac_cv_target
3945 ac_save_IFS=$IFS; IFS='-'
3951 # Remember, the first character of IFS is used to create $*,
3952 # except with old shells:
3955 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3958 # The aliases save the names the user supplied, while $host etc.
3959 # will get canonicalized.
3960 test -n "$target_alias" &&
3961 test "$program_prefix$program_suffix$program_transform_name" = \
3963 program_prefix=${target_alias}-
3965 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3966 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3967 if test "${llvm_cv_os_type+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 llvm_cv_link_all_option="-Wl,--whole-archive"
3973 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3974 llvm_cv_os_type="AIX"
3975 llvm_cv_platform_type="Unix" ;;
3977 llvm_cv_link_all_option="-Wl,--whole-archive"
3978 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3979 llvm_cv_os_type="IRIX"
3980 llvm_cv_platform_type="Unix" ;;
3982 llvm_cv_link_all_option="-Wl,--whole-archive"
3983 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3984 llvm_cv_os_type="Cygwin"
3985 llvm_cv_platform_type="Unix" ;;
3987 llvm_cv_link_all_option="-Wl,-all_load"
3988 llvm_cv_no_link_all_option="-Wl,-noall_load"
3989 llvm_cv_os_type="Darwin"
3990 llvm_cv_platform_type="Unix" ;;
3992 llvm_cv_link_all_option="-Wl,-all_load"
3993 llvm_cv_no_link_all_option="-Wl,-noall_load"
3994 llvm_cv_os_type="Minix"
3995 llvm_cv_platform_type="Unix" ;;
3997 llvm_cv_link_all_option="-Wl,--whole-archive"
3998 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3999 llvm_cv_os_type="FreeBSD"
4000 llvm_cv_platform_type="Unix" ;;
4002 llvm_cv_link_all_option="-Wl,--whole-archive"
4003 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4004 llvm_cv_os_type="GNU/kFreeBSD"
4005 llvm_cv_platform_type="Unix" ;;
4007 llvm_cv_link_all_option="-Wl,--whole-archive"
4008 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4009 llvm_cv_os_type="OpenBSD"
4010 llvm_cv_platform_type="Unix" ;;
4012 llvm_cv_link_all_option="-Wl,--whole-archive"
4013 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4014 llvm_cv_os_type="NetBSD"
4015 llvm_cv_platform_type="Unix" ;;
4017 llvm_cv_link_all_option="-Wl,--whole-archive"
4018 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4019 llvm_cv_os_type="DragonFly"
4020 llvm_cv_platform_type="Unix" ;;
4022 llvm_cv_link_all_option="-Wl,--whole-archive"
4023 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4024 llvm_cv_os_type="Bitrig"
4025 llvm_cv_platform_type="Unix" ;;
4027 llvm_cv_link_all_option="-Wl,--whole-archive"
4028 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4029 llvm_cv_os_type="HP-UX"
4030 llvm_cv_platform_type="Unix" ;;
4032 llvm_cv_link_all_option="-Wl,--whole-archive"
4033 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4034 llvm_cv_os_type="Interix"
4035 llvm_cv_platform_type="Unix" ;;
4037 llvm_cv_link_all_option="-Wl,--whole-archive"
4038 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4039 llvm_cv_os_type="Linux"
4040 llvm_cv_platform_type="Unix" ;;
4042 llvm_cv_link_all_option="-Wl,--whole-archive"
4043 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4044 llvm_cv_os_type="GNU"
4045 llvm_cv_platform_type="Unix" ;;
4047 llvm_cv_link_all_option="-Wl,-z,allextract"
4048 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4049 llvm_cv_os_type="SunOS"
4050 llvm_cv_platform_type="Unix" ;;
4052 llvm_cv_link_all_option="-Wl,--whole-archive"
4053 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4054 llvm_cv_os_type="Win32"
4055 llvm_cv_platform_type="Win32" ;;
4057 llvm_cv_link_all_option="-Wl,--whole-archive"
4058 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4059 llvm_cv_os_type="MingW"
4060 llvm_cv_platform_type="Win32" ;;
4062 llvm_cv_link_all_option="-Wl,--whole-archive"
4063 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4064 llvm_cv_os_type="Haiku"
4065 llvm_cv_platform_type="Unix" ;;
4067 llvm_cv_link_all_option="-Wl,--whole-archive"
4068 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4069 llvm_cv_os_type="Freestanding"
4070 llvm_cv_platform_type="Unix" ;;
4072 llvm_cv_link_all_option="-Wl,--whole-archive"
4073 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4074 llvm_cv_os_type="Freestanding"
4075 llvm_cv_platform_type="Unix" ;;
4077 llvm_cv_link_all_option=""
4078 llvm_cv_no_link_all_option=""
4079 llvm_cv_os_type="Unknown"
4080 llvm_cv_platform_type="Unknown" ;;
4083 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4084 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4086 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4087 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4088 if test "${llvm_cv_target_os_type+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 llvm_cv_target_os_type="AIX" ;;
4095 llvm_cv_target_os_type="IRIX" ;;
4097 llvm_cv_target_os_type="Cygwin" ;;
4099 llvm_cv_target_os_type="Darwin" ;;
4101 llvm_cv_target_os_type="Minix" ;;
4103 llvm_cv_target_os_type="FreeBSD" ;;
4105 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4107 llvm_cv_target_os_type="OpenBSD" ;;
4109 llvm_cv_target_os_type="NetBSD" ;;
4111 llvm_cv_target_os_type="DragonFly" ;;
4113 llvm_cv_target_os_type="Bitrig" ;;
4115 llvm_cv_target_os_type="HP-UX" ;;
4117 llvm_cv_target_os_type="Interix" ;;
4119 llvm_cv_target_os_type="Linux" ;;
4121 llvm_cv_target_os_type="GNU" ;;
4123 llvm_cv_target_os_type="SunOS" ;;
4125 llvm_cv_target_os_type="Win32" ;;
4127 llvm_cv_target_os_type="MingW" ;;
4129 llvm_cv_target_os_type="Haiku" ;;
4131 llvm_cv_target_os_type="RTEMS" ;;
4133 llvm_cv_target_os_type="NativeClient" ;;
4135 llvm_cv_target_os_type="Freestanding" ;;
4137 llvm_cv_target_os_type="PS4" ;;
4139 llvm_cv_target_os_type="Unknown" ;;
4142 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4143 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4145 if test "$llvm_cv_os_type" = "Unknown" ; then
4146 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4147 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4148 { (exit 1); exit 1; }; }
4153 HOST_OS=$llvm_cv_os_type
4155 TARGET_OS=$llvm_cv_target_os_type
4158 LINKALL=$llvm_cv_link_all_option
4160 NOLINKALL=$llvm_cv_no_link_all_option
4163 case $llvm_cv_platform_type in
4166 cat >>confdefs.h <<\_ACEOF
4167 #define LLVM_ON_UNIX 1
4177 cat >>confdefs.h <<\_ACEOF
4178 #define LLVM_ON_WIN32 1
4188 { echo "$as_me:$LINENO: checking target architecture" >&5
4189 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4190 if test "${llvm_cv_target_arch+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 i?86-*) llvm_cv_target_arch="x86" ;;
4195 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4196 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4197 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4198 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4199 arm*-*) llvm_cv_target_arch="ARM" ;;
4200 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4201 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4202 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4203 xcore-*) llvm_cv_target_arch="XCore" ;;
4204 msp430-*) llvm_cv_target_arch="MSP430" ;;
4205 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4206 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4207 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4208 *) llvm_cv_target_arch="Unknown" ;;
4211 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4212 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4214 if test "$llvm_cv_target_arch" = "Unknown" ; then
4215 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4216 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4219 case "$llvm_cv_target_arch" in
4220 x86) LLVM_NATIVE_ARCH="X86" ;;
4221 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4222 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4225 ARCH=$llvm_cv_target_arch
4227 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4231 i?86-*) host_arch="x86" ;;
4232 amd64-* | x86_64-*) host_arch="x86_64" ;;
4233 sparc*-*) host_arch="Sparc" ;;
4234 powerpc*-*) host_arch="PowerPC" ;;
4235 arm64*-*) host_arch="AArch64" ;;
4236 arm*-*) host_arch="ARM" ;;
4237 aarch64*-*) host_arch="AArch64" ;;
4238 mips-* | mips64-*) host_arch="Mips" ;;
4239 mipsel-* | mips64el-*) host_arch="Mips" ;;
4240 xcore-*) host_arch="XCore" ;;
4241 msp430-*) host_arch="MSP430" ;;
4242 hexagon-*) host_arch="Hexagon" ;;
4243 s390x-*) host_arch="SystemZ" ;;
4244 *) host_arch="Unknown" ;;
4247 if test "$host_arch" = "Unknown" ; then
4248 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4249 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4252 HOST_ARCH=$host_arch
4255 if test "$cross_compiling" = yes; then
4256 LLVM_CROSS_COMPILING=1
4259 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4260 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4261 if test "${ac_cv_build_exeext+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4265 ac_cv_build_exeext=.exe
4267 ac_build_prefix=${build_alias}-
4269 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4270 set dummy ${ac_build_prefix}gcc; ac_word=$2
4271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4273 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 if test -n "$BUILD_CC"; then
4277 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 BUILD_CC=$ac_cv_prog_BUILD_CC
4297 if test -n "$BUILD_CC"; then
4298 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4299 echo "${ECHO_T}$BUILD_CC" >&6; }
4301 { echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6; }
4306 if test -z "$BUILD_CC"; then
4307 # Extract the first word of "gcc", so it can be a program name with args.
4308 set dummy gcc; ac_word=$2
4309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4311 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 if test -n "$BUILD_CC"; then
4315 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_BUILD_CC="gcc"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 BUILD_CC=$ac_cv_prog_BUILD_CC
4335 if test -n "$BUILD_CC"; then
4336 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4337 echo "${ECHO_T}$BUILD_CC" >&6; }
4339 { echo "$as_me:$LINENO: result: no" >&5
4340 echo "${ECHO_T}no" >&6; }
4344 if test -z "$BUILD_CC"; then
4345 # Extract the first word of "cc", so it can be a program name with args.
4346 set dummy cc; ac_word=$2
4347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4349 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 if test -n "$BUILD_CC"; then
4353 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4364 ac_prog_rejected=yes
4367 ac_cv_prog_BUILD_CC="cc"
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 if test $ac_prog_rejected = yes; then
4376 # We found a bogon in the path, so make sure we never use it.
4377 set dummy $ac_cv_prog_BUILD_CC
4379 if test $# != 0; then
4380 # We chose a different compiler from the bogus one.
4381 # However, it has the same basename, so the bogon will be chosen
4382 # first if we set BUILD_CC to just the basename; use the full file name.
4384 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4389 BUILD_CC=$ac_cv_prog_BUILD_CC
4390 if test -n "$BUILD_CC"; then
4391 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4392 echo "${ECHO_T}$BUILD_CC" >&6; }
4394 { echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6; }
4401 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4402 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4403 { (exit 1); exit 1; }; }
4404 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4406 echo 'int main () { return 0; }' > conftest.$ac_ext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4409 (eval $ac_build_link) 2>&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; then
4413 for file in conftest.*; do
4415 *.c | *.o | *.obj | *.dSYM) ;;
4416 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4420 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4421 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4422 { (exit 1); exit 1; }; }
4425 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4430 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4431 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4432 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4433 ac_build_exeext=$BUILD_EXEEXT
4435 ac_build_prefix=${build_alias}-
4436 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4437 set dummy ${ac_build_prefix}g++; ac_word=$2
4438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 if test -n "$BUILD_CXX"; then
4444 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4464 if test -n "$BUILD_CXX"; then
4465 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4466 echo "${ECHO_T}$BUILD_CXX" >&6; }
4468 { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4473 if test -z "$BUILD_CXX"; then
4474 # Extract the first word of "g++", so it can be a program name with args.
4475 set dummy g++; ac_word=$2
4476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 if test -n "$BUILD_CXX"; then
4482 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4491 ac_cv_prog_BUILD_CXX="g++"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4502 if test -n "$BUILD_CXX"; then
4503 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4504 echo "${ECHO_T}$BUILD_CXX" >&6; }
4506 { echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6; }
4511 if test -z "$BUILD_CXX"; then
4512 # Extract the first word of "c++", so it can be a program name with args.
4513 set dummy c++; ac_word=$2
4514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4516 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 if test -n "$BUILD_CXX"; then
4520 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4531 ac_prog_rejected=yes
4534 ac_cv_prog_BUILD_CXX="c++"
4535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 if test $ac_prog_rejected = yes; then
4543 # We found a bogon in the path, so make sure we never use it.
4544 set dummy $ac_cv_prog_BUILD_CXX
4546 if test $# != 0; then
4547 # We chose a different compiler from the bogus one.
4548 # However, it has the same basename, so the bogon will be chosen
4549 # first if we set BUILD_CXX to just the basename; use the full file name.
4551 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4556 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4557 if test -n "$BUILD_CXX"; then
4558 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4559 echo "${ECHO_T}$BUILD_CXX" >&6; }
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4569 LLVM_CROSS_COMPILING=0
4573 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4584 # Check whether --enable-libcpp was given.
4585 if test "${enable_libcpp+set}" = set; then
4586 enableval=$enable_libcpp;
4591 case "$enableval" in
4592 yes) ENABLE_LIBCPP=1
4596 default) ENABLE_LIBCPP=0
4598 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4599 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4600 { (exit 1); exit 1; }; } ;;
4603 # Check whether --enable-compiler-version-checks was given.
4604 if test "${enable_compiler_version_checks+set}" = set; then
4605 enableval=$enable_compiler_version_checks;
4610 case "$enableval" in
4615 ac_cpp='$CXXCPP $CPPFLAGS'
4616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4620 case "$llvm_cv_cxx_compiler" in
4622 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4623 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4624 cat >conftest.$ac_ext <<_ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4631 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4632 #error This version of Clang is too old to build LLVM
4636 rm -f conftest.$ac_objext
4637 if { (ac_try="$ac_compile"
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_compile") 2>conftest.er1
4645 grep -v '^ *+' conftest.er1 >conftest.err
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4651 { (case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656 (eval "$ac_try") 2>&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; } &&
4660 { ac_try='test -s conftest.$ac_objext'
4661 { (case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666 (eval "$ac_try") 2>&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 { echo "$as_me:$LINENO: result: yes" >&5
4671 echo "${ECHO_T}yes" >&6; }
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4678 { { echo "$as_me:$LINENO: error:
4679 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4680 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4681 bypass these sanity checks." >&5
4682 echo "$as_me: error:
4683 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4684 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4685 bypass these sanity checks." >&2;}
4686 { (exit 1); exit 1; }; }
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 if test "$ENABLE_LIBCPP" -eq 0 ; then
4692 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4693 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4694 llvm_cv_old_cxxflags="$CXXFLAGS"
4695 CXXFLAGS="$CXXFLAGS -std=c++0x"
4696 cat >conftest.$ac_ext <<_ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4704 std::atomic<float> x(0.0f);
4705 int main() { return (float)x; }
4708 rm -f conftest.$ac_objext conftest$ac_exeext
4709 if { (ac_try="$ac_link"
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715 (eval "$ac_link") 2>conftest.er1
4717 grep -v '^ *+' conftest.er1 >conftest.err
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } &&
4722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4723 { (case "(($ac_try" in
4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725 *) ac_try_echo=$ac_try;;
4727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4728 (eval "$ac_try") 2>&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest$ac_exeext'
4733 { (case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_try") 2>&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 { echo "$as_me:$LINENO: result: yes" >&5
4743 echo "${ECHO_T}yes" >&6; }
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 { echo "$as_me:$LINENO: result: no" >&5
4749 echo "${ECHO_T}no" >&6; }
4750 { { echo "$as_me:$LINENO: error:
4751 We detected a missing feature in the standard C++ library that was known to be
4752 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4753 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4754 than 4.7. You will need to update your system and ensure Clang uses the newer
4757 If this error is incorrect or you need to force things to work, you may pass
4758 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4759 echo "$as_me: error:
4760 We detected a missing feature in the standard C++ library that was known to be
4761 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4762 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4763 than 4.7. You will need to update your system and ensure Clang uses the newer
4766 If this error is incorrect or you need to force things to work, you may pass
4767 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4768 { (exit 1); exit 1; }; }
4771 rm -f core conftest.err conftest.$ac_objext \
4772 conftest$ac_exeext conftest.$ac_ext
4773 CXXFLAGS="$llvm_cv_old_cxxflags"
4777 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4778 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4779 cat >conftest.$ac_ext <<_ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4786 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4787 #error This version of GCC is too old to build LLVM
4791 rm -f conftest.$ac_objext
4792 if { (ac_try="$ac_compile"
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4806 { (case "(($ac_try" in
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811 (eval "$ac_try") 2>&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (case "(($ac_try" in
4817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818 *) ac_try_echo=$ac_try;;
4820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4821 (eval "$ac_try") 2>&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 { echo "$as_me:$LINENO: result: yes" >&5
4826 echo "${ECHO_T}yes" >&6; }
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4831 { echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6; }
4833 { { echo "$as_me:$LINENO: error:
4834 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4835 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4836 bypass these sanity checks." >&5
4837 echo "$as_me: error:
4838 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4839 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4840 bypass these sanity checks." >&2;}
4841 { (exit 1); exit 1; }; }
4844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 ac_cpp='$CPP $CPPFLAGS'
4851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4858 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4859 { (exit 1); exit 1; }; }
4863 # Check whether --enable-cxx1y was given.
4864 if test "${enable_cxx1y+set}" = set; then
4865 enableval=$enable_cxx1y;
4870 case "$enableval" in
4875 default) ENABLE_CXX1Y=0
4877 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4878 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4879 { (exit 1); exit 1; }; } ;;
4882 # Check whether --enable-split-dwarf was given.
4883 if test "${enable_split_dwarf+set}" = set; then
4884 enableval=$enable_split_dwarf;
4889 case "$enableval" in
4890 yes) ENABLE_SPLIT_DWARF=1
4892 no) ENABLE_SPLIT_DWARF=0
4894 default) ENABLE_SPLIT_DWARF=0
4896 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4897 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4898 { (exit 1); exit 1; }; } ;;
4902 # Check whether --enable-clang-arcmt was given.
4903 if test "${enable_clang_arcmt+set}" = set; then
4904 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4909 case "$enableval" in
4910 yes) ENABLE_CLANG_ARCMT=1
4912 no) ENABLE_CLANG_ARCMT=0
4914 default) ENABLE_CLANG_ARCMT=1
4916 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4917 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4918 { (exit 1); exit 1; }; } ;;
4921 clang_plugin_support="yes"
4922 # Check whether --enable-clang-plugin-support was given.
4923 if test "${enable_clang_plugin_support+set}" = set; then
4924 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4929 case "$enableval" in
4930 yes) CLANG_PLUGIN_SUPPORT=1
4932 no) CLANG_PLUGIN_SUPPORT=0
4934 default) CLANG_PLUGIN_SUPPORT=1
4936 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4937 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4941 clang_static_analyzer="yes"
4942 # Check whether --enable-clang-static-analyzer was given.
4943 if test "${enable_clang_static_analyzer+set}" = set; then
4944 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4949 case "$enableval" in
4950 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4953 if test ${clang_arcmt} != "no" ; then
4954 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4955 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4956 { (exit 1); exit 1; }; }
4958 ENABLE_CLANG_STATIC_ANALYZER=0
4961 default) ENABLE_CLANG_STATIC_ANALYZER=1
4963 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4964 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4965 { (exit 1); exit 1; }; } ;;
4968 # Check whether --enable-optimized was given.
4969 if test "${enable_optimized+set}" = set; then
4970 enableval=$enable_optimized;
4975 if test ${enableval} = "no" ; then
4979 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4983 # Check whether --enable-profiling was given.
4984 if test "${enable_profiling+set}" = set; then
4985 enableval=$enable_profiling;
4990 if test ${enableval} = "no" ; then
4994 ENABLE_PROFILING=ENABLE_PROFILING=1
4998 # Check whether --enable-assertions was given.
4999 if test "${enable_assertions+set}" = set; then
5000 enableval=$enable_assertions;
5005 if test ${enableval} = "yes" ; then
5008 assertions_enabled="yes"
5010 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5012 assertions_enabled="no"
5015 # Check whether --enable-werror was given.
5016 if test "${enable_werror+set}" = set; then
5017 enableval=$enable_werror;
5022 case "$enableval" in
5023 yes) ENABLE_WERROR=1
5027 default) ENABLE_WERROR=0
5029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5030 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5031 { (exit 1); exit 1; }; } ;;
5034 # Check whether --enable-expensive-checks was given.
5035 if test "${enable_expensive_checks+set}" = set; then
5036 enableval=$enable_expensive_checks;
5041 if test ${enableval} = "yes" ; then
5042 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5044 EXPENSIVE_CHECKS=yes
5047 ENABLE_EXPENSIVE_CHECKS=
5053 # Check whether --enable-abi-breaking-checks was given.
5054 if test "${enable_abi_breaking_checks+set}" = set; then
5055 enableval=$enable_abi_breaking_checks;
5057 enableval="with-asserts"
5060 case "$enableval" in
5061 with-asserts) if test ${assertions_enabled} = "yes" ; then
5063 cat >>confdefs.h <<\_ACEOF
5064 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5067 ENABLE_ABI_BREAKING_CHECKS=1
5070 ENABLE_ABI_BREAKING_CHECKS=0
5075 cat >>confdefs.h <<\_ACEOF
5076 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5079 ENABLE_ABI_BREAKING_CHECKS=1
5083 ENABLE_ABI_BREAKING_CHECKS=0
5086 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5
5087 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5088 { (exit 1); exit 1; }; }
5091 # Check whether --enable-debug-runtime was given.
5092 if test "${enable_debug_runtime+set}" = set; then
5093 enableval=$enable_debug_runtime;
5098 if test ${enableval} = "no" ; then
5102 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5106 # Check whether --enable-debug-symbols was given.
5107 if test "${enable_debug_symbols+set}" = set; then
5108 enableval=$enable_debug_symbols;
5113 if test ${enableval} = "no" ; then
5117 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5121 # Check whether --enable-keep-symbols was given.
5122 if test "${enable_keep_symbols+set}" = set; then
5123 enableval=$enable_keep_symbols;
5128 if test ${enableval} = "no" ; then
5132 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5136 # Check whether --enable-jit was given.
5137 if test "${enable_jit+set}" = set; then
5138 enableval=$enable_jit;
5143 if test ${enableval} = "no"
5148 case "$llvm_cv_target_arch" in
5149 x86) TARGET_HAS_JIT=1
5151 Sparc) TARGET_HAS_JIT=0
5153 PowerPC) TARGET_HAS_JIT=1
5155 x86_64) TARGET_HAS_JIT=1
5157 ARM) TARGET_HAS_JIT=1
5159 Mips) TARGET_HAS_JIT=1
5161 XCore) TARGET_HAS_JIT=0
5163 MSP430) TARGET_HAS_JIT=0
5165 Hexagon) TARGET_HAS_JIT=0
5167 NVPTX) TARGET_HAS_JIT=0
5169 SystemZ) TARGET_HAS_JIT=1
5176 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5177 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5180 # Check whether --enable-docs was given.
5181 if test "${enable_docs+set}" = set; then
5182 enableval=$enable_docs;
5187 case "$enableval" in
5192 default) ENABLE_DOCS=1
5194 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5195 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5196 { (exit 1); exit 1; }; } ;;
5199 # Check whether --enable-doxygen was given.
5200 if test "${enable_doxygen+set}" = set; then
5201 enableval=$enable_doxygen;
5206 case "$enableval" in
5207 yes) ENABLE_DOXYGEN=1
5209 no|default) ENABLE_DOXYGEN=0
5211 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5212 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5213 { (exit 1); exit 1; }; } ;;
5216 # Check whether --enable-doxygen-search was given.
5217 if test "${enable_doxygen_search+set}" = set; then
5218 enableval=$enable_doxygen_search;
5223 ENABLE_DOXYGEN_SEARCH="$enableval"
5225 case "$enableval" in
5227 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5228 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5229 { (exit 1); exit 1; }; } ;;
5232 # Check whether --enable-doxygen-external-search was given.
5233 if test "${enable_doxygen_external_search+set}" = set; then
5234 enableval=$enable_doxygen_external_search;
5239 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5241 case "$enableval" in
5243 case "$ENABLE_DOXYGEN_SEARCH" in
5244 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5245 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5246 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5247 { (exit 1); exit 1; }; } ;;
5251 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5252 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5253 { (exit 1); exit 1; }; } ;;
5257 # Check whether --with-doxygen-search-engine-url was given.
5258 if test "${with_doxygen_search_engine_url+set}" = set; then
5259 withval=$with_doxygen_search_engine_url;
5262 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5265 # Check whether --with-doxygen-search-mappings was given.
5266 if test "${with_doxygen_search_mappings+set}" = set; then
5267 withval=$with_doxygen_search_mappings;
5270 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5272 case "$ENABLE_DOXYGEN_SEARCH" in
5274 if test "$ENABLE_DOXYGEN" = "0" ; then
5275 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5276 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5277 { (exit 1); exit 1; }; }
5280 enable_searchengine=YES
5283 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5285 enable_external_search=YES
5287 enable_server_based_search=YES
5289 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5291 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5296 enable_external_search=NO
5298 enable_server_based_search=NO
5307 enable_searchengine=NO
5310 enable_server_based_search=NO
5312 enable_external_search=NO
5318 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5319 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5320 { (exit 1); exit 1; }; }
5324 # Check whether --enable-doxygen-qt-help was given.
5325 if test "${enable_doxygen_qt_help+set}" = set; then
5326 enableval=$enable_doxygen_qt_help;
5331 case "$enableval" in
5333 if test "$ENABLE_DOXYGEN" = "0" ; then
5334 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5335 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5336 { (exit 1); exit 1; }; }
5339 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5340 set dummy qhelpgenerator; ac_word=$2
5341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5343 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 case $QHELPGENERATOR in
5348 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5358 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5370 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5371 if test -n "$QHELPGENERATOR"; then
5372 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5373 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5375 { echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6; }
5381 llvm_doxygen_generate_qhp=YES
5383 llvm_doxygen_qch_filename=org.llvm.qch
5385 llvm_doxygen_qhp_namespace=org.llvm
5387 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5389 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5391 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5394 clang_doxygen_generate_qhp=YES
5396 clang_doxygen_qch_filename=org.llvm.clang.qch
5398 clang_doxygen_qhp_namespace=org.llvm.clang
5400 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5402 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5404 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5409 llvm_doxygen_generate_qhp=NO
5417 clang_doxygen_generate_qhp=NO
5422 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5424 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5429 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5430 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5431 { (exit 1); exit 1; }; } ;;
5434 # Check whether --enable-threads was given.
5435 if test "${enable_threads+set}" = set; then
5436 enableval=$enable_threads;
5441 case "$enableval" in
5442 yes) LLVM_ENABLE_THREADS=1
5444 no) LLVM_ENABLE_THREADS=0
5446 default) LLVM_ENABLE_THREADS=1
5448 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5449 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5450 { (exit 1); exit 1; }; } ;;
5453 cat >>confdefs.h <<_ACEOF
5454 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5458 # Check whether --enable-pthreads was given.
5459 if test "${enable_pthreads+set}" = set; then
5460 enableval=$enable_pthreads;
5465 case "$enableval" in
5466 yes) ENABLE_PTHREADS=1
5468 no) ENABLE_PTHREADS=0
5470 default) ENABLE_PTHREADS=1
5472 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5473 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5474 { (exit 1); exit 1; }; } ;;
5477 # Check whether --enable-zlib was given.
5478 if test "${enable_zlib+set}" = set; then
5479 enableval=$enable_zlib;
5484 case "$enableval" in
5485 yes) LLVM_ENABLE_ZLIB=1
5487 no) LLVM_ENABLE_ZLIB=0
5489 default) LLVM_ENABLE_ZLIB=1
5491 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5492 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5493 { (exit 1); exit 1; }; } ;;
5496 cat >>confdefs.h <<_ACEOF
5497 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5501 # Check whether --enable-pic was given.
5502 if test "${enable_pic+set}" = set; then
5503 enableval=$enable_pic;
5508 case "$enableval" in
5513 default) ENABLE_PIC=1
5515 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5516 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5517 { (exit 1); exit 1; }; } ;;
5520 cat >>confdefs.h <<_ACEOF
5521 #define ENABLE_PIC $ENABLE_PIC
5525 # Check whether --enable-shared was given.
5526 if test "${enable_shared+set}" = set; then
5527 enableval=$enable_shared;
5532 case "$enableval" in
5533 yes) ENABLE_SHARED=1
5537 default) ENABLE_SHARED=0
5539 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5540 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5541 { (exit 1); exit 1; }; } ;;
5544 # Check whether --enable-embed-stdcxx was given.
5545 if test "${enable_embed_stdcxx+set}" = set; then
5546 enableval=$enable_embed_stdcxx;
5551 case "$enableval" in
5552 yes) ENABLE_EMBED_STDCXX=1
5554 no) ENABLE_EMBED_STDCXX=0
5556 default) ENABLE_EMBED_STDCXX=0
5558 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5559 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5560 { (exit 1); exit 1; }; } ;;
5563 # Check whether --enable-timestamps was given.
5564 if test "${enable_timestamps+set}" = set; then
5565 enableval=$enable_timestamps;
5570 case "$enableval" in
5571 yes) ENABLE_TIMESTAMPS=1
5573 no) ENABLE_TIMESTAMPS=0
5575 default) ENABLE_TIMESTAMPS=1
5577 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5578 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5579 { (exit 1); exit 1; }; } ;;
5582 cat >>confdefs.h <<_ACEOF
5583 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5587 # Check whether --enable-backtraces was given.
5588 if test "${enable_backtraces+set}" = set; then
5589 enableval=$enable_backtraces; case "$enableval" in
5590 yes) llvm_cv_enable_backtraces="yes" ;;
5591 no) llvm_cv_enable_backtraces="no" ;;
5592 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5593 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5594 { (exit 1); exit 1; }; } ;;
5597 llvm_cv_enable_backtraces="yes"
5600 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5602 cat >>confdefs.h <<\_ACEOF
5603 #define ENABLE_BACKTRACES 1
5608 # Check whether --enable-crash-overrides was given.
5609 if test "${enable_crash_overrides+set}" = set; then
5610 enableval=$enable_crash_overrides; case "$enableval" in
5611 yes) llvm_cv_enable_crash_overrides="yes" ;;
5612 no) llvm_cv_enable_crash_overrides="no" ;;
5613 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5614 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5615 { (exit 1); exit 1; }; } ;;
5618 llvm_cv_enable_crash_overrides="yes"
5621 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5623 cat >>confdefs.h <<\_ACEOF
5624 #define ENABLE_CRASH_OVERRIDES 1
5629 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5630 ALL_TARGETS=$ALL_TARGETS
5634 # Check whether --enable-targets was given.
5635 if test "${enable_targets+set}" = set; then
5636 enableval=$enable_targets;
5641 if test "$enableval" = host-only ; then
5644 case "$enableval" in
5645 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5646 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5648 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5649 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5650 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5651 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5652 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5653 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5654 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5655 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5656 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5657 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5658 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5659 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5660 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5661 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5662 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5663 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5664 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5665 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5666 host) case "$llvm_cv_target_arch" in
5667 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5668 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5669 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5670 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5671 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5672 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5673 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5674 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5675 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5676 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5677 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5678 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5679 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5680 echo "$as_me: error: Can not set target to build" >&2;}
5681 { (exit 1); exit 1; }; } ;;
5683 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5684 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5685 { (exit 1); exit 1; }; } ;;
5691 # Check whether --enable-experimental-targets was given.
5692 if test "${enable_experimental_targets+set}" = set; then
5693 enableval=$enable_experimental_targets;
5699 if test ${enableval} != "disable"
5701 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5704 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5707 for a_target in $TARGETS_TO_BUILD; do
5708 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5710 cat >>confdefs.h <<_ACEOF
5711 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5714 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5715 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5716 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5717 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5718 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5719 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5721 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5722 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5725 cat >>confdefs.h <<_ACEOF
5726 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5730 cat >>confdefs.h <<_ACEOF
5731 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5735 cat >>confdefs.h <<_ACEOF
5736 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5740 cat >>confdefs.h <<_ACEOF
5741 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5744 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5746 cat >>confdefs.h <<_ACEOF
5747 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5751 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5753 cat >>confdefs.h <<_ACEOF
5754 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5761 LLVM_ENUM_TARGETS=""
5762 LLVM_ENUM_ASM_PRINTERS=""
5763 LLVM_ENUM_ASM_PARSERS=""
5764 LLVM_ENUM_DISASSEMBLERS=""
5765 for target_to_build in $TARGETS_TO_BUILD; do
5766 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5767 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5768 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5770 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5771 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5773 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5774 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5783 # Check whether --with-optimize-option was given.
5784 if test "${with_optimize_option+set}" = set; then
5785 withval=$with_optimize_option;
5790 { echo "$as_me:$LINENO: checking optimization flags" >&5
5791 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5794 case "$llvm_cv_os_type" in
5795 FreeBSD) optimize_option=-O2 ;;
5796 MingW) optimize_option=-O2 ;;
5797 *) optimize_option=-O3 ;;
5799 *) optimize_option="$withval" ;;
5801 OPTIMIZE_OPTION=$optimize_option
5803 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5804 echo "${ECHO_T}$optimize_option" >&6; }
5807 # Check whether --with-extra-options was given.
5808 if test "${with_extra_options+set}" = set; then
5809 withval=$with_extra_options;
5815 default) EXTRA_OPTIONS= ;;
5816 *) EXTRA_OPTIONS=$withval ;;
5818 EXTRA_OPTIONS=$EXTRA_OPTIONS
5822 # Check whether --with-extra-ld-options was given.
5823 if test "${with_extra_ld_options+set}" = set; then
5824 withval=$with_extra_ld_options;
5830 default) EXTRA_LD_OPTIONS= ;;
5831 *) EXTRA_LD_OPTIONS=$withval ;;
5833 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5836 # Check whether --enable-bindings was given.
5837 if test "${enable_bindings+set}" = set; then
5838 enableval=$enable_bindings;
5843 BINDINGS_TO_BUILD=""
5844 case "$enableval" in
5845 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5846 all ) BINDINGS_TO_BUILD="ocaml" ;;
5847 none | no) BINDINGS_TO_BUILD="" ;;
5848 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5849 case "$a_binding" in
5850 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5851 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5852 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5853 { (exit 1); exit 1; }; } ;;
5860 # Check whether --with-ocaml-libdir was given.
5861 if test "${with_ocaml_libdir+set}" = set; then
5862 withval=$with_ocaml_libdir;
5868 auto) with_ocaml_libdir="$withval" ;;
5869 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5870 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5871 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5872 { (exit 1); exit 1; }; } ;;
5876 # Check whether --with-clang-srcdir was given.
5877 if test "${with_clang_srcdir+set}" = set; then
5878 withval=$with_clang_srcdir;
5884 -) clang_src_root="" ;;
5885 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5886 *) clang_src_root="$ac_pwd/$withval" ;;
5888 CLANG_SRC_ROOT=$clang_src_root
5892 # Check whether --with-clang-resource-dir was given.
5893 if test "${with_clang_resource_dir+set}" = set; then
5894 withval=$with_clang_resource_dir;
5900 cat >>confdefs.h <<_ACEOF
5901 #define CLANG_RESOURCE_DIR "$withval"
5906 # Check whether --with-c-include-dirs was given.
5907 if test "${with_c_include_dirs+set}" = set; then
5908 withval=$with_c_include_dirs;
5914 cat >>confdefs.h <<_ACEOF
5915 #define C_INCLUDE_DIRS "$withval"
5919 # Clang normally uses the system c++ headers and libraries. With this option,
5920 # clang will use the ones provided by a gcc installation instead. This option should
5921 # be passed the same value that was used with --prefix when configuring gcc.
5923 # Check whether --with-gcc-toolchain was given.
5924 if test "${with_gcc_toolchain+set}" = set; then
5925 withval=$with_gcc_toolchain;
5931 cat >>confdefs.h <<_ACEOF
5932 #define GCC_INSTALL_PREFIX "$withval"
5937 # Check whether --with-default-sysroot was given.
5938 if test "${with_default_sysroot+set}" = set; then
5939 withval=$with_default_sysroot;
5945 cat >>confdefs.h <<_ACEOF
5946 #define DEFAULT_SYSROOT "$withval"
5951 # Check whether --with-binutils-include was given.
5952 if test "${with_binutils_include+set}" = set; then
5953 withval=$with_binutils_include;
5959 default) WITH_BINUTILS_INCDIR=default ;;
5960 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5961 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5962 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5963 { (exit 1); exit 1; }; } ;;
5965 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5966 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5968 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5969 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5970 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5971 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5972 { (exit 1); exit 1; }; };
5977 # Check whether --with-bug-report-url was given.
5978 if test "${with_bug_report_url+set}" = set; then
5979 withval=$with_bug_report_url;
5981 withval="http://llvm.org/bugs/"
5985 cat >>confdefs.h <<_ACEOF
5986 #define BUG_REPORT_URL "$withval"
5990 # Check whether --enable-terminfo was given.
5991 if test "${enable_terminfo+set}" = set; then
5992 enableval=$enable_terminfo; case "$enableval" in
5993 yes) llvm_cv_enable_terminfo="yes" ;;
5994 no) llvm_cv_enable_terminfo="no" ;;
5995 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5996 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5997 { (exit 1); exit 1; }; } ;;
6000 llvm_cv_enable_terminfo="yes"
6003 case "$llvm_cv_enable_terminfo" in
6004 yes) ENABLE_TERMINFO=1
6006 no) ENABLE_TERMINFO=0
6010 # Check whether --enable-libedit was given.
6011 if test "${enable_libedit+set}" = set; then
6012 enableval=$enable_libedit; case "$enableval" in
6013 yes) llvm_cv_enable_libedit="yes" ;;
6014 no) llvm_cv_enable_libedit="no" ;;
6015 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6016 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6017 { (exit 1); exit 1; }; } ;;
6020 llvm_cv_enable_libedit="yes"
6024 # Check whether --enable-libffi was given.
6025 if test "${enable_libffi+set}" = set; then
6026 enableval=$enable_libffi; case "$enableval" in
6027 yes) llvm_cv_enable_libffi="yes" ;;
6028 no) llvm_cv_enable_libffi="no" ;;
6029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6030 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6031 { (exit 1); exit 1; }; } ;;
6034 llvm_cv_enable_libffi=no
6039 # Check whether --with-internal-prefix was given.
6040 if test "${with_internal_prefix+set}" = set; then
6041 withval=$with_internal_prefix;
6046 INTERNAL_PREFIX=$withval
6050 { echo "$as_me:$LINENO: checking for GNU make" >&5
6051 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6052 if test "${llvm_cv_gnu_make_command+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 llvm_cv_gnu_make_command=''
6056 for a in "$MAKE" make gmake gnumake ; do
6057 if test -z "$a" ; then continue ; fi ;
6058 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6060 llvm_cv_gnu_make_command=$a ;
6065 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6066 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6067 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6071 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6072 echo "${ECHO_T}\"Not found\"" >&6; };
6076 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6077 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6079 if test "$LN_S" = "ln -s"; then
6080 { echo "$as_me:$LINENO: result: yes" >&5
6081 echo "${ECHO_T}yes" >&6; }
6083 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6084 echo "${ECHO_T}no, using $LN_S" >&6; }
6087 # Extract the first word of "nm", so it can be a program name with args.
6088 set dummy nm; ac_word=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_path_NM+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 ac_cv_path_NM="$NM" # Let the user override the test with a path.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6119 if test -n "$NM"; then
6120 { echo "$as_me:$LINENO: result: $NM" >&5
6121 echo "${ECHO_T}$NM" >&6; }
6123 { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6128 # Extract the first word of "cmp", so it can be a program name with args.
6129 set dummy cmp; ac_word=$2
6130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6132 if test "${ac_cv_path_CMP+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6147 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6160 if test -n "$CMP"; then
6161 { echo "$as_me:$LINENO: result: $CMP" >&5
6162 echo "${ECHO_T}$CMP" >&6; }
6164 { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6169 # Extract the first word of "cp", so it can be a program name with args.
6170 set dummy cp; ac_word=$2
6171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6173 if test "${ac_cv_path_CP+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6188 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6201 if test -n "$CP"; then
6202 { echo "$as_me:$LINENO: result: $CP" >&5
6203 echo "${ECHO_T}$CP" >&6; }
6205 { echo "$as_me:$LINENO: result: no" >&5
6206 echo "${ECHO_T}no" >&6; }
6210 # Extract the first word of "date", so it can be a program name with args.
6211 set dummy date; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_path_DATE+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6229 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6241 DATE=$ac_cv_path_DATE
6242 if test -n "$DATE"; then
6243 { echo "$as_me:$LINENO: result: $DATE" >&5
6244 echo "${ECHO_T}$DATE" >&6; }
6246 { echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6; }
6251 # Extract the first word of "find", so it can be a program name with args.
6252 set dummy find; ac_word=$2
6253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255 if test "${ac_cv_path_FIND+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6282 FIND=$ac_cv_path_FIND
6283 if test -n "$FIND"; then
6284 { echo "$as_me:$LINENO: result: $FIND" >&5
6285 echo "${ECHO_T}$FIND" >&6; }
6287 { echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6; }
6292 # Extract the first word of "grep", so it can be a program name with args.
6293 set dummy grep; ac_word=$2
6294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6296 if test "${ac_cv_path_GREP+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6311 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6323 GREP=$ac_cv_path_GREP
6324 if test -n "$GREP"; then
6325 { echo "$as_me:$LINENO: result: $GREP" >&5
6326 echo "${ECHO_T}$GREP" >&6; }
6328 { echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6; }
6333 # Extract the first word of "mkdir", so it can be a program name with args.
6334 set dummy mkdir; ac_word=$2
6335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6337 if test "${ac_cv_path_MKDIR+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6352 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6364 MKDIR=$ac_cv_path_MKDIR
6365 if test -n "$MKDIR"; then
6366 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6367 echo "${ECHO_T}$MKDIR" >&6; }
6369 { echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6; }
6374 # Extract the first word of "mv", so it can be a program name with args.
6375 set dummy mv; ac_word=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_path_MV+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6406 if test -n "$MV"; then
6407 { echo "$as_me:$LINENO: result: $MV" >&5
6408 echo "${ECHO_T}$MV" >&6; }
6410 { echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6; }
6415 if test -n "$ac_tool_prefix"; then
6416 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6420 if test "${ac_cv_prog_RANLIB+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 if test -n "$RANLIB"; then
6424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 RANLIB=$ac_cv_prog_RANLIB
6444 if test -n "$RANLIB"; then
6445 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6446 echo "${ECHO_T}$RANLIB" >&6; }
6448 { echo "$as_me:$LINENO: result: no" >&5
6449 echo "${ECHO_T}no" >&6; }
6454 if test -z "$ac_cv_prog_RANLIB"; then
6455 ac_ct_RANLIB=$RANLIB
6456 # Extract the first word of "ranlib", so it can be a program name with args.
6457 set dummy ranlib; ac_word=$2
6458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 if test -n "$ac_ct_RANLIB"; then
6464 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_prog_ac_ct_RANLIB="ranlib"
6474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6484 if test -n "$ac_ct_RANLIB"; then
6485 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6486 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6488 { echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6; }
6492 if test "x$ac_ct_RANLIB" = x; then
6495 case $cross_compiling:$ac_tool_warned in
6497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6498 whose name does not start with the host triplet. If you think this
6499 configuration is useful to you, please write to autoconf@gnu.org." >&5
6500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6501 whose name does not start with the host triplet. If you think this
6502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6503 ac_tool_warned=yes ;;
6505 RANLIB=$ac_ct_RANLIB
6508 RANLIB="$ac_cv_prog_RANLIB"
6511 if test -n "$ac_tool_prefix"; then
6512 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6513 set dummy ${ac_tool_prefix}ar; ac_word=$2
6514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516 if test "${ac_cv_prog_AR+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 if test -n "$AR"; then
6520 ac_cv_prog_AR="$AR" # Let the user override the test.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_prog_AR="${ac_tool_prefix}ar"
6530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 if test -n "$AR"; then
6541 { echo "$as_me:$LINENO: result: $AR" >&5
6542 echo "${ECHO_T}$AR" >&6; }
6544 { echo "$as_me:$LINENO: result: no" >&5
6545 echo "${ECHO_T}no" >&6; }
6550 if test -z "$ac_cv_prog_AR"; then
6552 # Extract the first word of "ar", so it can be a program name with args.
6553 set dummy ar; ac_word=$2
6554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6556 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 if test -n "$ac_ct_AR"; then
6560 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_prog_ac_ct_AR="ar"
6570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6580 if test -n "$ac_ct_AR"; then
6581 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6582 echo "${ECHO_T}$ac_ct_AR" >&6; }
6584 { echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6; }
6588 if test "x$ac_ct_AR" = x; then
6591 case $cross_compiling:$ac_tool_warned in
6593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6594 whose name does not start with the host triplet. If you think this
6595 configuration is useful to you, please write to autoconf@gnu.org." >&5
6596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6597 whose name does not start with the host triplet. If you think this
6598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6599 ac_tool_warned=yes ;;
6607 # Extract the first word of "rm", so it can be a program name with args.
6608 set dummy rm; ac_word=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_path_RM+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6639 if test -n "$RM"; then
6640 { echo "$as_me:$LINENO: result: $RM" >&5
6641 echo "${ECHO_T}$RM" >&6; }
6643 { echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6; }
6648 # Extract the first word of "sed", so it can be a program name with args.
6649 set dummy sed; ac_word=$2
6650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652 if test "${ac_cv_path_SED+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6680 if test -n "$SED"; then
6681 { echo "$as_me:$LINENO: result: $SED" >&5
6682 echo "${ECHO_T}$SED" >&6; }
6684 { echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6; }
6689 # Extract the first word of "tar", so it can be a program name with args.
6690 set dummy tar; ac_word=$2
6691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693 if test "${ac_cv_path_TAR+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6721 if test -n "$TAR"; then
6722 { echo "$as_me:$LINENO: result: $TAR" >&5
6723 echo "${ECHO_T}$TAR" >&6; }
6725 { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6730 # Extract the first word of "pwd", so it can be a program name with args.
6731 set dummy pwd; ac_word=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_path_BINPWD+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6761 BINPWD=$ac_cv_path_BINPWD
6762 if test -n "$BINPWD"; then
6763 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6764 echo "${ECHO_T}$BINPWD" >&6; }
6766 { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6772 # Extract the first word of "dot", so it can be a program name with args.
6773 set dummy dot; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_DOT+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6804 if test -n "$DOT"; then
6805 { echo "$as_me:$LINENO: result: $DOT" >&5
6806 echo "${ECHO_T}$DOT" >&6; }
6808 { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6813 if test "$DOT" != "echo dot" ; then
6815 cat >>confdefs.h <<\_ACEOF
6819 if test "$llvm_cv_os_type" = "MingW" ; then
6820 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6823 cat >>confdefs.h <<_ACEOF
6824 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6829 # Find a good install program. We prefer a C program (faster),
6830 # so one script is as good as another. But avoid the broken or
6831 # incompatible versions:
6832 # SysV /etc/install, /usr/sbin/install
6833 # SunOS /usr/etc/install
6834 # IRIX /sbin/install
6836 # AmigaOS /C/install, which installs bootblocks on floppy discs
6837 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6838 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6839 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6840 # OS/2's system install, which has a completely different semantic
6841 # ./install, which can be erroneously created by make from ./install.sh.
6842 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6843 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6844 if test -z "$INSTALL"; then
6845 if test "${ac_cv_path_install+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 test -z "$as_dir" && as_dir=.
6853 # Account for people who put trailing slashes in PATH elements.
6855 ./ | .// | /cC/* | \
6856 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6857 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6860 # OSF1 and SCO ODT 3.0 have their own names for install.
6861 # Don't use installbsd from OSF since it installs stuff as root
6863 for ac_prog in ginstall scoinst install; do
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6866 if test $ac_prog = install &&
6867 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6868 # AIX install. It has an incompatible calling convention.
6870 elif test $ac_prog = install &&
6871 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6872 # program-specific install script used by HP pwplus--don't use.
6875 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6888 if test "${ac_cv_path_install+set}" = set; then
6889 INSTALL=$ac_cv_path_install
6891 # As a last resort, use the slow shell script. Don't cache a
6892 # value for INSTALL within a source directory, because that will
6893 # break other packages using the cache if that directory is
6894 # removed, or if the value is a relative name.
6895 INSTALL=$ac_install_sh
6898 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6899 echo "${ECHO_T}$INSTALL" >&6; }
6901 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6902 # It thinks the first close brace ends the variable substitution.
6903 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6905 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6907 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6910 [\\/$]* | ?:[\\/]* ) ;;
6911 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6914 # Extract the first word of "bzip2", so it can be a program name with args.
6915 set dummy bzip2; ac_word=$2
6916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6918 if test "${ac_cv_path_BZIP2+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 BZIP2=$ac_cv_path_BZIP2
6945 if test -n "$BZIP2"; then
6946 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6947 echo "${ECHO_T}$BZIP2" >&6; }
6949 { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6954 # Extract the first word of "cat", so it can be a program name with args.
6955 set dummy cat; ac_word=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_path_CAT+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 if test -n "$CAT"; then
6986 { echo "$as_me:$LINENO: result: $CAT" >&5
6987 echo "${ECHO_T}$CAT" >&6; }
6989 { echo "$as_me:$LINENO: result: no" >&5
6990 echo "${ECHO_T}no" >&6; }
6994 # Extract the first word of "doxygen", so it can be a program name with args.
6995 set dummy doxygen; ac_word=$2
6996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6998 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7013 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 DOXYGEN=$ac_cv_path_DOXYGEN
7025 if test -n "$DOXYGEN"; then
7026 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7027 echo "${ECHO_T}$DOXYGEN" >&6; }
7029 { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7034 # Extract the first word of "groff", so it can be a program name with args.
7035 set dummy groff; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_GROFF+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 GROFF=$ac_cv_path_GROFF
7065 if test -n "$GROFF"; then
7066 { echo "$as_me:$LINENO: result: $GROFF" >&5
7067 echo "${ECHO_T}$GROFF" >&6; }
7069 { echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6; }
7074 # Extract the first word of "gzip", so it can be a program name with args.
7075 set dummy gzip; ac_word=$2
7076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7078 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7093 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 GZIPBIN=$ac_cv_path_GZIPBIN
7105 if test -n "$GZIPBIN"; then
7106 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7107 echo "${ECHO_T}$GZIPBIN" >&6; }
7109 { echo "$as_me:$LINENO: result: no" >&5
7110 echo "${ECHO_T}no" >&6; }
7114 # Extract the first word of "pdfroff", so it can be a program name with args.
7115 set dummy pdfroff; ac_word=$2
7116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7118 if test "${ac_cv_path_PDFROFF+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 PDFROFF=$ac_cv_path_PDFROFF
7145 if test -n "$PDFROFF"; then
7146 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7147 echo "${ECHO_T}$PDFROFF" >&6; }
7149 { echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6; }
7154 # Extract the first word of "zip", so it can be a program name with args.
7155 set dummy zip; ac_word=$2
7156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7158 if test "${ac_cv_path_ZIP+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7173 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 if test -n "$ZIP"; then
7186 { echo "$as_me:$LINENO: result: $ZIP" >&5
7187 echo "${ECHO_T}$ZIP" >&6; }
7189 { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7194 # Extract the first word of "go", so it can be a program name with args.
7195 set dummy go; ac_word=$2
7196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7198 if test "${ac_cv_path_GO+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 ac_cv_path_GO="$GO" # Let the user override the test with a path.
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7213 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 if test -n "$GO"; then
7226 { echo "$as_me:$LINENO: result: $GO" >&5
7227 echo "${ECHO_T}$GO" >&6; }
7229 { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7234 for ac_prog in ocamlfind
7236 # Extract the first word of "$ac_prog", so it can be a program name with args.
7237 set dummy $ac_prog; ac_word=$2
7238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7255 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 OCAMLFIND=$ac_cv_path_OCAMLFIND
7267 if test -n "$OCAMLFIND"; then
7268 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7269 echo "${ECHO_T}$OCAMLFIND" >&6; }
7271 { echo "$as_me:$LINENO: result: no" >&5
7272 echo "${ECHO_T}no" >&6; }
7276 test -n "$OCAMLFIND" && break
7279 for ac_prog in gas as
7281 # Extract the first word of "$ac_prog", so it can be a program name with args.
7282 set dummy $ac_prog; ac_word=$2
7283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285 if test "${ac_cv_path_GAS+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 if test -n "$GAS"; then
7313 { echo "$as_me:$LINENO: result: $GAS" >&5
7314 echo "${ECHO_T}$GAS" >&6; }
7316 { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7321 test -n "$GAS" && break
7325 { echo "$as_me:$LINENO: checking for linker version" >&5
7326 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7327 if test "${llvm_cv_link_version+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7334 if (echo "$version_string" | grep -q "ld64"); then
7335 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7337 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7341 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7342 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7344 cat >>confdefs.h <<_ACEOF
7345 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7351 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7352 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7353 if test "${llvm_cv_link_use_r+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363 CFLAGS="$CFLAGS -Wl,-R."
7364 cat >conftest.$ac_ext <<_ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7379 rm -f conftest.$ac_objext conftest$ac_exeext
7380 if { (ac_try="$ac_link"
7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386 (eval "$ac_link") 2>conftest.er1
7388 grep -v '^ *+' conftest.er1 >conftest.err
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } &&
7393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7394 { (case "(($ac_try" in
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_try") 2>&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; } &&
7403 { ac_try='test -s conftest$ac_exeext'
7404 { (case "(($ac_try" in
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409 (eval "$ac_try") 2>&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 llvm_cv_link_use_r=yes
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7418 llvm_cv_link_use_r=no
7421 rm -f core conftest.err conftest.$ac_objext \
7422 conftest$ac_exeext conftest.$ac_ext
7425 ac_cpp='$CPP $CPPFLAGS'
7426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7433 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7434 if test "$llvm_cv_link_use_r" = yes ; then
7436 cat >>confdefs.h <<\_ACEOF
7437 #define HAVE_LINK_R 1
7443 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7444 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7445 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 ac_cpp='$CPP $CPPFLAGS'
7450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7455 CFLAGS="$CFLAGS -rdynamic"
7456 cat >conftest.$ac_ext <<_ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7471 rm -f conftest.$ac_objext conftest$ac_exeext
7472 if { (ac_try="$ac_link"
7474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475 *) ac_try_echo=$ac_try;;
7477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7478 (eval "$ac_link") 2>conftest.er1
7480 grep -v '^ *+' conftest.er1 >conftest.err
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } &&
7485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7486 { (case "(($ac_try" in
7487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7488 *) ac_try_echo=$ac_try;;
7490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7491 (eval "$ac_try") 2>&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; } &&
7495 { ac_try='test -s conftest$ac_exeext'
7496 { (case "(($ac_try" in
7497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7498 *) ac_try_echo=$ac_try;;
7500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7501 (eval "$ac_try") 2>&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 llvm_cv_link_use_export_dynamic=yes
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 llvm_cv_link_use_export_dynamic=no
7513 rm -f core conftest.err conftest.$ac_objext \
7514 conftest$ac_exeext conftest.$ac_ext
7517 ac_cpp='$CPP $CPPFLAGS'
7518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7524 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7525 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7526 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7528 cat >>confdefs.h <<\_ACEOF
7529 #define HAVE_LINK_EXPORT_DYNAMIC 1
7535 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7536 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7537 if test "${llvm_cv_link_use_version_script+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 ac_cpp='$CPP $CPPFLAGS'
7542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7548 # The following code is from the autoconf manual,
7549 # "11.13: Limitations of Usual Tools".
7550 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7551 # Use mktemp if possible; otherwise fall back on mkdir,
7552 # with $RANDOM to make collisions less likely.
7556 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7558 test -n "$tmp" && test -d "$tmp"
7560 tmp=$TMPDIR/foo$$-$RANDOM
7561 (umask 077 && mkdir "$tmp")
7564 echo "{" > "$tmp/export.map"
7565 echo " global: main;" >> "$tmp/export.map"
7566 echo " local: *;" >> "$tmp/export.map"
7567 echo "};" >> "$tmp/export.map"
7569 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7570 cat >conftest.$ac_ext <<_ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7585 rm -f conftest.$ac_objext conftest$ac_exeext
7586 if { (ac_try="$ac_link"
7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7592 (eval "$ac_link") 2>conftest.er1
7594 grep -v '^ *+' conftest.er1 >conftest.err
7596 cat conftest.err >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } &&
7599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7600 { (case "(($ac_try" in
7601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605 (eval "$ac_try") 2>&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; } &&
7609 { ac_try='test -s conftest$ac_exeext'
7610 { (case "(($ac_try" in
7611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7612 *) ac_try_echo=$ac_try;;
7614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7615 (eval "$ac_try") 2>&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7619 llvm_cv_link_use_version_script=yes
7621 echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7624 llvm_cv_link_use_version_script=no
7627 rm -f core conftest.err conftest.$ac_objext \
7628 conftest$ac_exeext conftest.$ac_ext
7629 rm "$tmp/export.map"
7633 ac_cpp='$CPP $CPPFLAGS'
7634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7640 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7641 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7642 if test "$llvm_cv_link_use_version_script" = yes ; then
7643 HAVE_LINK_VERSION_SCRIPT=1
7649 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7650 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7651 if test "${ac_cv_path_GREP+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 # Extract the first word of "grep ggrep" to use in msg output
7655 if test -z "$GREP"; then
7656 set dummy grep ggrep; ac_prog_name=$2
7657 if test "${ac_cv_path_GREP+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 ac_path_GREP_found=false
7661 # Loop through the user's path and test for each of PROGNAME-LIST
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7666 test -z "$as_dir" && as_dir=.
7667 for ac_prog in grep ggrep; do
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7670 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7671 # Check for GNU ac_path_GREP and select it if it is found.
7672 # Check for GNU $ac_path_GREP
7673 case `"$ac_path_GREP" --version 2>&1` in
7675 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7678 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7681 cat "conftest.in" "conftest.in" >"conftest.tmp"
7682 mv "conftest.tmp" "conftest.in"
7683 cp "conftest.in" "conftest.nl"
7684 echo 'GREP' >> "conftest.nl"
7685 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7686 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7687 ac_count=`expr $ac_count + 1`
7688 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7689 # Best one so far, save it but keep looking for a better one
7690 ac_cv_path_GREP="$ac_path_GREP"
7691 ac_path_GREP_max=$ac_count
7693 # 10*(2^10) chars as input seems more than enough
7694 test $ac_count -gt 10 && break
7696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7700 $ac_path_GREP_found && break 3
7710 GREP="$ac_cv_path_GREP"
7711 if test -z "$GREP"; then
7712 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7713 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7714 { (exit 1); exit 1; }; }
7718 ac_cv_path_GREP=$GREP
7723 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7724 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7725 GREP="$ac_cv_path_GREP"
7728 { echo "$as_me:$LINENO: checking for egrep" >&5
7729 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7730 if test "${ac_cv_path_EGREP+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7734 then ac_cv_path_EGREP="$GREP -E"
7736 # Extract the first word of "egrep" to use in msg output
7737 if test -z "$EGREP"; then
7738 set dummy egrep; ac_prog_name=$2
7739 if test "${ac_cv_path_EGREP+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 ac_path_EGREP_found=false
7743 # Loop through the user's path and test for each of PROGNAME-LIST
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7748 test -z "$as_dir" && as_dir=.
7749 for ac_prog in egrep; do
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7752 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7753 # Check for GNU ac_path_EGREP and select it if it is found.
7754 # Check for GNU $ac_path_EGREP
7755 case `"$ac_path_EGREP" --version 2>&1` in
7757 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7760 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7763 cat "conftest.in" "conftest.in" >"conftest.tmp"
7764 mv "conftest.tmp" "conftest.in"
7765 cp "conftest.in" "conftest.nl"
7766 echo 'EGREP' >> "conftest.nl"
7767 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7769 ac_count=`expr $ac_count + 1`
7770 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7771 # Best one so far, save it but keep looking for a better one
7772 ac_cv_path_EGREP="$ac_path_EGREP"
7773 ac_path_EGREP_max=$ac_count
7775 # 10*(2^10) chars as input seems more than enough
7776 test $ac_count -gt 10 && break
7778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7782 $ac_path_EGREP_found && break 3
7792 EGREP="$ac_cv_path_EGREP"
7793 if test -z "$EGREP"; then
7794 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7795 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7796 { (exit 1); exit 1; }; }
7800 ac_cv_path_EGREP=$EGREP
7806 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7807 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7808 EGREP="$ac_cv_path_EGREP"
7811 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7812 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7813 if test "${ac_cv_header_stdc+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 cat >conftest.$ac_ext <<_ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7835 rm -f conftest.$ac_objext
7836 if { (ac_try="$ac_compile"
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_compile") 2>conftest.er1
7844 grep -v '^ *+' conftest.er1 >conftest.err
7846 cat conftest.err >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } &&
7849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7850 { (case "(($ac_try" in
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855 (eval "$ac_try") 2>&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; } &&
7859 { ac_try='test -s conftest.$ac_objext'
7860 { (case "(($ac_try" in
7861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862 *) ac_try_echo=$ac_try;;
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865 (eval "$ac_try") 2>&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; }; then
7869 ac_cv_header_stdc=yes
7871 echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7874 ac_cv_header_stdc=no
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879 if test $ac_cv_header_stdc = yes; then
7880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7881 cat >conftest.$ac_ext <<_ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7891 $EGREP "memchr" >/dev/null 2>&1; then
7894 ac_cv_header_stdc=no
7900 if test $ac_cv_header_stdc = yes; then
7901 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7902 cat >conftest.$ac_ext <<_ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7912 $EGREP "free" >/dev/null 2>&1; then
7915 ac_cv_header_stdc=no
7921 if test $ac_cv_header_stdc = yes; then
7922 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7923 if test "$cross_compiling" = yes; then
7926 cat >conftest.$ac_ext <<_ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7934 #if ((' ' & 0x0FF) == 0x020)
7935 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7936 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7938 # define ISLOWER(c) \
7939 (('a' <= (c) && (c) <= 'i') \
7940 || ('j' <= (c) && (c) <= 'r') \
7941 || ('s' <= (c) && (c) <= 'z'))
7942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7945 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7950 for (i = 0; i < 256; i++)
7951 if (XOR (islower (i), ISLOWER (i))
7952 || toupper (i) != TOUPPER (i))
7957 rm -f conftest$ac_exeext
7958 if { (ac_try="$ac_link"
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_link") 2>&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7968 { (case "(($ac_try" in
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_try") 2>&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7979 echo "$as_me: program exited with status $ac_status" >&5
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7984 ac_cv_header_stdc=no
7986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7992 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7993 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7994 if test $ac_cv_header_stdc = yes; then
7996 cat >>confdefs.h <<\_ACEOF
7997 #define STDC_HEADERS 1
8002 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8013 inttypes.h stdint.h unistd.h
8015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 cat >conftest.$ac_ext <<_ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 $ac_includes_default
8029 #include <$ac_header>
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_compile") 2>conftest.er1
8040 grep -v '^ *+' conftest.er1 >conftest.err
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest.$ac_objext'
8056 { (case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_try") 2>&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 eval "$as_ac_Header=yes"
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8070 eval "$as_ac_Header=no"
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 ac_res=`eval echo '${'$as_ac_Header'}'`
8076 { echo "$as_me:$LINENO: result: $ac_res" >&5
8077 echo "${ECHO_T}$ac_res" >&6; }
8078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8079 cat >>confdefs.h <<_ACEOF
8080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8089 for ac_header in errno.h
8091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 ac_res=`eval echo '${'$as_ac_Header'}'`
8099 { echo "$as_me:$LINENO: result: $ac_res" >&5
8100 echo "${ECHO_T}$ac_res" >&6; }
8102 # Is the header compilable?
8103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8105 cat >conftest.$ac_ext <<_ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8111 $ac_includes_default
8112 #include <$ac_header>
8114 rm -f conftest.$ac_objext
8115 if { (ac_try="$ac_compile"
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_compile") 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129 { (case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_try") 2>&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest.$ac_objext'
8139 { (case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_try") 2>&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 ac_header_compiler=yes
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8153 ac_header_compiler=no
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8158 echo "${ECHO_T}$ac_header_compiler" >&6; }
8160 # Is the header present?
8161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8163 cat >conftest.$ac_ext <<_ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h. */
8169 #include <$ac_header>
8171 if { (ac_try="$ac_cpp conftest.$ac_ext"
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8179 grep -v '^ *+' conftest.er1 >conftest.err
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } >/dev/null; then
8184 if test -s conftest.err; then
8185 ac_cpp_err=$ac_c_preproc_warn_flag
8186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8193 if test -z "$ac_cpp_err"; then
8194 ac_header_preproc=yes
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 ac_header_preproc=no
8202 rm -f conftest.err conftest.$ac_ext
8203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8204 echo "${ECHO_T}$ac_header_preproc" >&6; }
8206 # So? What about this header?
8207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8213 ac_header_preproc=yes
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8229 ## ------------------------------------ ##
8230 ## Report this to http://llvm.org/bugs/ ##
8231 ## ------------------------------------ ##
8233 ) | sed "s/^/$as_me: WARNING: /" >&2
8236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 eval "$as_ac_Header=\$ac_header_preproc"
8243 ac_res=`eval echo '${'$as_ac_Header'}'`
8244 { echo "$as_me:$LINENO: result: $ac_res" >&5
8245 echo "${ECHO_T}$ac_res" >&6; }
8248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8249 cat >>confdefs.h <<_ACEOF
8250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8258 case "$llvm_cv_os_type" in
8259 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8260 Darwin) llvm_shlib_ext=.dylib ;;
8261 *) llvm_shlib_ext=.so ;;
8265 cat >>confdefs.h <<_ACEOF
8266 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8270 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8271 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8284 if test "$GCC" != "yes" && test "$ICC" != "yes"
8286 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8287 echo "$as_me: error: gcc|icc required but not found" >&2;}
8288 { (exit 1); exit 1; }; }
8291 if test "$GXX" != "yes" && test "$IXX" != "yes"
8293 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8294 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8295 { (exit 1); exit 1; }; }
8298 if test "$GCC" = "yes"
8300 cat >conftest.$ac_ext <<_ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8308 #if !defined(__GNUC__) || __GNUC__ < 3
8309 #error Unsupported GCC version
8314 rm -f conftest.$ac_objext
8315 if { (ac_try="$ac_compile"
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_compile") 2>conftest.er1
8323 grep -v '^ *+' conftest.er1 >conftest.err
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8329 { (case "(($ac_try" in
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_try") 2>&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest.$ac_objext'
8339 { (case "(($ac_try" in
8340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8341 *) ac_try_echo=$ac_try;;
8343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8344 (eval "$ac_try") 2>&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; }; then
8350 echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8353 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8354 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8355 { (exit 1); exit 1; }; }
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361 if test -z "$llvm_cv_gnu_make_command"
8363 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8364 echo "$as_me: error: GNU Make required but not found" >&2;}
8365 { (exit 1); exit 1; }; }
8368 { echo "$as_me:$LINENO: result: ok" >&5
8369 echo "${ECHO_T}ok" >&6; }
8371 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8372 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8373 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8375 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8377 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8381 NO_MAYBE_UNINITIALIZED=
8382 if test "$GXX" = "yes"
8384 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8386 if test -z "$NO_MAYBE_UNINITIALIZED"
8388 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8394 llvm_cv_old_cxxflags="$CXXFLAGS"
8395 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8396 cat >conftest.$ac_ext <<_ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8405 int main() { return 0; }
8409 rm -f conftest.$ac_objext
8410 if { (ac_try="$ac_compile"
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_compile") 2>conftest.er1
8418 grep -v '^ *+' conftest.er1 >conftest.err
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8424 { (case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_try") 2>&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest.$ac_objext'
8434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_try") 2>&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8444 no_comment=-Wno-comment
8447 echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 NO_COMMENT=$no_comment
8456 CXXFLAGS="$llvm_cv_old_cxxflags"
8458 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8459 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8462 # Check whether --with-python was given.
8463 if test "${with_python+set}" = set; then
8464 withval=$with_python; PYTHON="$withval"
8468 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8469 { echo "$as_me:$LINENO: checking for python" >&5
8470 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8471 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8472 echo "${ECHO_T}user defined: $with_python" >&6; }
8474 if test -n "$PYTHON" ; then
8475 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8476 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8479 # Extract the first word of "python python2 python27", so it can be a program name with args.
8480 set dummy python python2 python27; ac_word=$2
8481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8483 if test "${ac_cv_path_PYTHON+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 test -z "$as_dir" && as_dir=.
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8498 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8507 echo "${ECHO_T}not found" >&6; }
8508 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8509 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8510 { (exit 1); exit 1; }; }"
8514 PYTHON=$ac_cv_path_PYTHON
8515 if test -n "$PYTHON"; then
8516 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8517 echo "${ECHO_T}$PYTHON" >&6; }
8519 { echo "$as_me:$LINENO: result: no" >&5
8520 echo "${ECHO_T}no" >&6; }
8526 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8527 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8528 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8529 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8530 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8531 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8532 if test "$ac_python_version_major" -gt "2" || \
8533 (test "$ac_python_version_major" -eq "2" && \
8534 test "$ac_python_version_minor" -ge "7") ; then
8535 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8536 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8538 { echo "$as_me:$LINENO: result: not found" >&5
8539 echo "${ECHO_T}not found" >&6; }
8540 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8541 See \`config.log' for more details." >&5
8542 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8543 See \`config.log' for more details." >&2;}
8544 { (exit 1); exit 1; }; }
8549 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8550 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8551 if test "${ac_cv_lib_m_sin+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 ac_check_lib_save_LIBS=$LIBS
8556 cat >conftest.$ac_ext <<_ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8563 /* Override any GCC internal prototype to avoid an error.
8564 Use char because int might match the return type of a GCC
8565 builtin and then its argument prototype would still apply. */
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (ac_try="$ac_link"
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_link") 2>conftest.er1
8587 grep -v '^ *+' conftest.er1 >conftest.err
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8593 { (case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_try") 2>&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; } &&
8602 { ac_try='test -s conftest$ac_exeext'
8603 { (case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_try") 2>&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8614 echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8620 rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8622 LIBS=$ac_check_lib_save_LIBS
8624 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8625 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8626 if test $ac_cv_lib_m_sin = yes; then
8627 cat >>confdefs.h <<_ACEOF
8635 if test "$llvm_cv_os_type" = "MingW" ; then
8637 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8638 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8639 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 ac_check_lib_save_LIBS=$LIBS
8643 LIBS="-limagehlp $LIBS"
8644 cat >conftest.$ac_ext <<_ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8660 rm -f conftest.$ac_objext conftest$ac_exeext
8661 if { (ac_try="$ac_link"
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_link") 2>conftest.er1
8669 grep -v '^ *+' conftest.er1 >conftest.err
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8675 { (case "(($ac_try" in
8676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677 *) ac_try_echo=$ac_try;;
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680 (eval "$ac_try") 2>&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; } &&
8684 { ac_try='test -s conftest$ac_exeext'
8685 { (case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_try") 2>&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; }; then
8694 ac_cv_lib_imagehlp_main=yes
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_cv_lib_imagehlp_main=no
8702 rm -f core conftest.err conftest.$ac_objext \
8703 conftest$ac_exeext conftest.$ac_ext
8704 LIBS=$ac_check_lib_save_LIBS
8706 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8707 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8708 if test $ac_cv_lib_imagehlp_main = yes; then
8709 cat >>confdefs.h <<_ACEOF
8710 #define HAVE_LIBIMAGEHLP 1
8713 LIBS="-limagehlp $LIBS"
8718 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8719 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8720 if test "${ac_cv_lib_psapi_main+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 ac_check_lib_save_LIBS=$LIBS
8724 LIBS="-lpsapi $LIBS"
8725 cat >conftest.$ac_ext <<_ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8741 rm -f conftest.$ac_objext conftest$ac_exeext
8742 if { (ac_try="$ac_link"
8744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8748 (eval "$ac_link") 2>conftest.er1
8750 grep -v '^ *+' conftest.er1 >conftest.err
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } &&
8755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8756 { (case "(($ac_try" in
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_try") 2>&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; } &&
8765 { ac_try='test -s conftest$ac_exeext'
8766 { (case "(($ac_try" in
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_try") 2>&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; }; then
8775 ac_cv_lib_psapi_main=yes
8777 echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8780 ac_cv_lib_psapi_main=no
8783 rm -f core conftest.err conftest.$ac_objext \
8784 conftest$ac_exeext conftest.$ac_ext
8785 LIBS=$ac_check_lib_save_LIBS
8787 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8788 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8789 if test $ac_cv_lib_psapi_main = yes; then
8790 cat >>confdefs.h <<_ACEOF
8791 #define HAVE_LIBPSAPI 1
8794 LIBS="-lpsapi $LIBS"
8799 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8800 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8801 if test "${ac_cv_lib_shell32_main+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 ac_check_lib_save_LIBS=$LIBS
8805 LIBS="-lshell32 $LIBS"
8806 cat >conftest.$ac_ext <<_ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (ac_try="$ac_link"
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_link") 2>conftest.er1
8831 grep -v '^ *+' conftest.er1 >conftest.err
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8837 { (case "(($ac_try" in
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_try") 2>&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; } &&
8846 { ac_try='test -s conftest$ac_exeext'
8847 { (case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_try") 2>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; }; then
8856 ac_cv_lib_shell32_main=yes
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_cv_lib_shell32_main=no
8864 rm -f core conftest.err conftest.$ac_objext \
8865 conftest$ac_exeext conftest.$ac_ext
8866 LIBS=$ac_check_lib_save_LIBS
8868 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8869 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8870 if test $ac_cv_lib_shell32_main = yes; then
8871 cat >>confdefs.h <<_ACEOF
8872 #define HAVE_LIBSHELL32 1
8875 LIBS="-lshell32 $LIBS"
8881 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8882 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8883 if test "${ac_cv_search_dlopen+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 ac_func_search_save_LIBS=$LIBS
8887 cat >conftest.$ac_ext <<_ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8894 /* Override any GCC internal prototype to avoid an error.
8895 Use char because int might match the return type of a GCC
8896 builtin and then its argument prototype would still apply. */
8909 for ac_lib in '' dl; do
8910 if test -z "$ac_lib"; then
8911 ac_res="none required"
8914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923 (eval "$ac_link") 2>conftest.er1
8925 grep -v '^ *+' conftest.er1 >conftest.err
8927 cat conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8931 { (case "(($ac_try" in
8932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933 *) ac_try_echo=$ac_try;;
8935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936 (eval "$ac_try") 2>&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; } &&
8940 { ac_try='test -s conftest$ac_exeext'
8941 { (case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_try") 2>&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 ac_cv_search_dlopen=$ac_res
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8958 rm -f core conftest.err conftest.$ac_objext \
8960 if test "${ac_cv_search_dlopen+set}" = set; then
8964 if test "${ac_cv_search_dlopen+set}" = set; then
8967 ac_cv_search_dlopen=no
8970 LIBS=$ac_func_search_save_LIBS
8972 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8973 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8974 ac_res=$ac_cv_search_dlopen
8975 if test "$ac_res" != no; then
8976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8979 cat >>confdefs.h <<\_ACEOF
8980 #define HAVE_DLOPEN 1
8987 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8988 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8992 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8993 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8994 if test "${ac_cv_search_clock_gettime+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 ac_func_search_save_LIBS=$LIBS
8998 cat >conftest.$ac_ext <<_ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9005 /* Override any GCC internal prototype to avoid an error.
9006 Use char because int might match the return type of a GCC
9007 builtin and then its argument prototype would still apply. */
9011 char clock_gettime ();
9015 return clock_gettime ();
9020 for ac_lib in '' rt; do
9021 if test -z "$ac_lib"; then
9022 ac_res="none required"
9025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9027 rm -f conftest.$ac_objext conftest$ac_exeext
9028 if { (ac_try="$ac_link"
9030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031 *) ac_try_echo=$ac_try;;
9033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034 (eval "$ac_link") 2>conftest.er1
9036 grep -v '^ *+' conftest.er1 >conftest.err
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9042 { (case "(($ac_try" in
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_try") 2>&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; } &&
9051 { ac_try='test -s conftest$ac_exeext'
9052 { (case "(($ac_try" in
9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057 (eval "$ac_try") 2>&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
9061 ac_cv_search_clock_gettime=$ac_res
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9069 rm -f core conftest.err conftest.$ac_objext \
9071 if test "${ac_cv_search_clock_gettime+set}" = set; then
9075 if test "${ac_cv_search_clock_gettime+set}" = set; then
9078 ac_cv_search_clock_gettime=no
9081 LIBS=$ac_func_search_save_LIBS
9083 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9084 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9085 ac_res=$ac_cv_search_clock_gettime
9086 if test "$ac_res" != no; then
9087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9092 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9093 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9094 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9095 if test "${ac_cv_search_setupterm+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 ac_func_search_save_LIBS=$LIBS
9099 cat >conftest.$ac_ext <<_ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9106 /* Override any GCC internal prototype to avoid an error.
9107 Use char because int might match the return type of a GCC
9108 builtin and then its argument prototype would still apply. */
9116 return setupterm ();
9121 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9122 if test -z "$ac_lib"; then
9123 ac_res="none required"
9126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (ac_try="$ac_link"
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_link") 2>conftest.er1
9137 grep -v '^ *+' conftest.er1 >conftest.err
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } &&
9142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9143 { (case "(($ac_try" in
9144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145 *) ac_try_echo=$ac_try;;
9147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_try") 2>&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; } &&
9152 { ac_try='test -s conftest$ac_exeext'
9153 { (case "(($ac_try" in
9154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155 *) ac_try_echo=$ac_try;;
9157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158 (eval "$ac_try") 2>&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; }; then
9162 ac_cv_search_setupterm=$ac_res
9164 echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9170 rm -f core conftest.err conftest.$ac_objext \
9172 if test "${ac_cv_search_setupterm+set}" = set; then
9176 if test "${ac_cv_search_setupterm+set}" = set; then
9179 ac_cv_search_setupterm=no
9182 LIBS=$ac_func_search_save_LIBS
9184 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9185 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9186 ac_res=$ac_cv_search_setupterm
9187 if test "$ac_res" != no; then
9188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9191 cat >>confdefs.h <<\_ACEOF
9192 #define HAVE_TERMINFO 1
9202 if test "$llvm_cv_enable_libedit" = "yes" ; then
9203 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9204 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9205 if test "${ac_cv_search_el_init+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 ac_func_search_save_LIBS=$LIBS
9209 cat >conftest.$ac_ext <<_ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9216 /* Override any GCC internal prototype to avoid an error.
9217 Use char because int might match the return type of a GCC
9218 builtin and then its argument prototype would still apply. */
9231 for ac_lib in '' edit; do
9232 if test -z "$ac_lib"; then
9233 ac_res="none required"
9236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9238 rm -f conftest.$ac_objext conftest$ac_exeext
9239 if { (ac_try="$ac_link"
9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242 *) ac_try_echo=$ac_try;;
9244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245 (eval "$ac_link") 2>conftest.er1
9247 grep -v '^ *+' conftest.er1 >conftest.err
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9253 { (case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_try") 2>&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest$ac_exeext'
9263 { (case "(($ac_try" in
9264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265 *) ac_try_echo=$ac_try;;
9267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268 (eval "$ac_try") 2>&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_cv_search_el_init=$ac_res
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9280 rm -f core conftest.err conftest.$ac_objext \
9282 if test "${ac_cv_search_el_init+set}" = set; then
9286 if test "${ac_cv_search_el_init+set}" = set; then
9289 ac_cv_search_el_init=no
9292 LIBS=$ac_func_search_save_LIBS
9294 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9295 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9296 ac_res=$ac_cv_search_el_init
9297 if test "$ac_res" != no; then
9298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9300 cat >>confdefs.h <<\_ACEOF
9301 #define HAVE_LIBEDIT 1
9308 if test "$llvm_cv_enable_libffi" = "yes" ; then
9309 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9310 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9311 if test "${ac_cv_search_ffi_call+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 ac_func_search_save_LIBS=$LIBS
9315 cat >conftest.$ac_ext <<_ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h. */
9322 /* Override any GCC internal prototype to avoid an error.
9323 Use char because int might match the return type of a GCC
9324 builtin and then its argument prototype would still apply. */
9337 for ac_lib in '' ffi; do
9338 if test -z "$ac_lib"; then
9339 ac_res="none required"
9342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (ac_try="$ac_link"
9347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351 (eval "$ac_link") 2>conftest.er1
9353 grep -v '^ *+' conftest.er1 >conftest.err
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9359 { (case "(($ac_try" in
9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_try") 2>&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; } &&
9368 { ac_try='test -s conftest$ac_exeext'
9369 { (case "(($ac_try" in
9370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9371 *) ac_try_echo=$ac_try;;
9373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9374 (eval "$ac_try") 2>&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; }; then
9378 ac_cv_search_ffi_call=$ac_res
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9386 rm -f core conftest.err conftest.$ac_objext \
9388 if test "${ac_cv_search_ffi_call+set}" = set; then
9392 if test "${ac_cv_search_ffi_call+set}" = set; then
9395 ac_cv_search_ffi_call=no
9398 LIBS=$ac_func_search_save_LIBS
9400 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9401 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9402 ac_res=$ac_cv_search_ffi_call
9403 if test "$ac_res" != no; then
9404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9406 cat >>confdefs.h <<\_ACEOF
9407 #define HAVE_FFI_CALL 1
9411 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9412 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9413 { (exit 1); exit 1; }; }
9418 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9419 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9420 if test "${ac_cv_search_mallinfo+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 ac_func_search_save_LIBS=$LIBS
9424 cat >conftest.$ac_ext <<_ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h. */
9431 /* Override any GCC internal prototype to avoid an error.
9432 Use char because int might match the return type of a GCC
9433 builtin and then its argument prototype would still apply. */
9446 for ac_lib in '' malloc; do
9447 if test -z "$ac_lib"; then
9448 ac_res="none required"
9451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9453 rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (ac_try="$ac_link"
9456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457 *) ac_try_echo=$ac_try;;
9459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460 (eval "$ac_link") 2>conftest.er1
9462 grep -v '^ *+' conftest.er1 >conftest.err
9464 cat conftest.err >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } &&
9467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9477 { ac_try='test -s conftest$ac_exeext'
9478 { (case "(($ac_try" in
9479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9480 *) ac_try_echo=$ac_try;;
9482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9483 (eval "$ac_try") 2>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9487 ac_cv_search_mallinfo=$ac_res
9489 echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9495 rm -f core conftest.err conftest.$ac_objext \
9497 if test "${ac_cv_search_mallinfo+set}" = set; then
9501 if test "${ac_cv_search_mallinfo+set}" = set; then
9504 ac_cv_search_mallinfo=no
9507 LIBS=$ac_func_search_save_LIBS
9509 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9510 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9511 ac_res=$ac_cv_search_mallinfo
9512 if test "$ac_res" != no; then
9513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9515 cat >>confdefs.h <<\_ACEOF
9516 #define HAVE_MALLINFO 1
9522 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9524 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9525 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9526 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 ac_check_lib_save_LIBS=$LIBS
9530 LIBS="-lpthread $LIBS"
9531 cat >conftest.$ac_ext <<_ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9538 /* Override any GCC internal prototype to avoid an error.
9539 Use char because int might match the return type of a GCC
9540 builtin and then its argument prototype would still apply. */
9544 char pthread_mutex_init ();
9548 return pthread_mutex_init ();
9553 rm -f conftest.$ac_objext conftest$ac_exeext
9554 if { (ac_try="$ac_link"
9556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557 *) ac_try_echo=$ac_try;;
9559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560 (eval "$ac_link") 2>conftest.er1
9562 grep -v '^ *+' conftest.er1 >conftest.err
9564 cat conftest.err >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } &&
9567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9568 { (case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_try") 2>&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; } &&
9577 { ac_try='test -s conftest$ac_exeext'
9578 { (case "(($ac_try" in
9579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583 (eval "$ac_try") 2>&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 ac_cv_lib_pthread_pthread_mutex_init=yes
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9592 ac_cv_lib_pthread_pthread_mutex_init=no
9595 rm -f core conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext conftest.$ac_ext
9597 LIBS=$ac_check_lib_save_LIBS
9599 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9600 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9601 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9602 cat >>confdefs.h <<_ACEOF
9603 #define HAVE_LIBPTHREAD 1
9606 LIBS="-lpthread $LIBS"
9610 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9611 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9612 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 ac_func_search_save_LIBS=$LIBS
9616 cat >conftest.$ac_ext <<_ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9623 /* Override any GCC internal prototype to avoid an error.
9624 Use char because int might match the return type of a GCC
9625 builtin and then its argument prototype would still apply. */
9629 char pthread_mutex_lock ();
9633 return pthread_mutex_lock ();
9638 for ac_lib in '' pthread; do
9639 if test -z "$ac_lib"; then
9640 ac_res="none required"
9643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (ac_try="$ac_link"
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_link") 2>conftest.er1
9654 grep -v '^ *+' conftest.er1 >conftest.err
9656 cat conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
9659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9660 { (case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_try") 2>&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; } &&
9669 { ac_try='test -s conftest$ac_exeext'
9670 { (case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_try") 2>&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_cv_search_pthread_mutex_lock=$ac_res
9681 echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9687 rm -f core conftest.err conftest.$ac_objext \
9689 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9693 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9696 ac_cv_search_pthread_mutex_lock=no
9699 LIBS=$ac_func_search_save_LIBS
9701 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9702 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9703 ac_res=$ac_cv_search_pthread_mutex_lock
9704 if test "$ac_res" != no; then
9705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9707 cat >>confdefs.h <<\_ACEOF
9708 #define HAVE_PTHREAD_MUTEX_LOCK 1
9713 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9714 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9715 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 ac_func_search_save_LIBS=$LIBS
9719 cat >conftest.$ac_ext <<_ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9726 /* Override any GCC internal prototype to avoid an error.
9727 Use char because int might match the return type of a GCC
9728 builtin and then its argument prototype would still apply. */
9732 char pthread_rwlock_init ();
9736 return pthread_rwlock_init ();
9741 for ac_lib in '' pthread; do
9742 if test -z "$ac_lib"; then
9743 ac_res="none required"
9746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9748 rm -f conftest.$ac_objext conftest$ac_exeext
9749 if { (ac_try="$ac_link"
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_link") 2>conftest.er1
9757 grep -v '^ *+' conftest.er1 >conftest.err
9759 cat conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9763 { (case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_try") 2>&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
9772 { ac_try='test -s conftest$ac_exeext'
9773 { (case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_try") 2>&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 ac_cv_search_pthread_rwlock_init=$ac_res
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9790 rm -f core conftest.err conftest.$ac_objext \
9792 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9796 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9799 ac_cv_search_pthread_rwlock_init=no
9802 LIBS=$ac_func_search_save_LIBS
9804 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9805 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9806 ac_res=$ac_cv_search_pthread_rwlock_init
9807 if test "$ac_res" != no; then
9808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_PTHREAD_RWLOCK_INIT 1
9816 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9817 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9818 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 ac_func_search_save_LIBS=$LIBS
9822 cat >conftest.$ac_ext <<_ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9829 /* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
9835 char pthread_getspecific ();
9839 return pthread_getspecific ();
9844 for ac_lib in '' pthread; do
9845 if test -z "$ac_lib"; then
9846 ac_res="none required"
9849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (ac_try="$ac_link"
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_link") 2>conftest.er1
9860 grep -v '^ *+' conftest.er1 >conftest.err
9862 cat conftest.err >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } &&
9865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9866 { (case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_try") 2>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest$ac_exeext'
9876 { (case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_try") 2>&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 ac_cv_search_pthread_getspecific=$ac_res
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9893 rm -f core conftest.err conftest.$ac_objext \
9895 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9899 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9902 ac_cv_search_pthread_getspecific=no
9905 LIBS=$ac_func_search_save_LIBS
9907 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9908 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9909 ac_res=$ac_cv_search_pthread_getspecific
9910 if test "$ac_res" != no; then
9911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9913 cat >>confdefs.h <<\_ACEOF
9914 #define HAVE_PTHREAD_GETSPECIFIC 1
9921 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9923 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9924 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9925 if test "${ac_cv_lib_z_compress2+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 ac_check_lib_save_LIBS=$LIBS
9930 cat >conftest.$ac_ext <<_ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9937 /* Override any GCC internal prototype to avoid an error.
9938 Use char because int might match the return type of a GCC
9939 builtin and then its argument prototype would still apply. */
9947 return compress2 ();
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (ac_try="$ac_link"
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_link") 2>conftest.er1
9961 grep -v '^ *+' conftest.er1 >conftest.err
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } &&
9966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9967 { (case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_try") 2>&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; } &&
9976 { ac_try='test -s conftest$ac_exeext'
9977 { (case "(($ac_try" in
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_try") 2>&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_cv_lib_z_compress2=yes
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 ac_cv_lib_z_compress2=no
9994 rm -f core conftest.err conftest.$ac_objext \
9995 conftest$ac_exeext conftest.$ac_ext
9996 LIBS=$ac_check_lib_save_LIBS
9998 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9999 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10000 if test $ac_cv_lib_z_compress2 = yes; then
10001 cat >>confdefs.h <<_ACEOF
10002 #define HAVE_LIBZ 1
10012 # Check whether --with-oprofile was given.
10013 if test "${with_oprofile+set}" = set; then
10014 withval=$with_oprofile;
10018 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10019 no) llvm_cv_oppath=
10022 *) llvm_cv_oppath="${withval}/lib/oprofile"
10023 CPPFLAGS="-I${withval}/include";;
10025 case $llvm_cv_os_type in
10027 if test -n "$llvm_cv_oppath" ; then
10028 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10029 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10030 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10031 if test "${ac_cv_search_bfd_init+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 ac_func_search_save_LIBS=$LIBS
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10042 /* Override any GCC internal prototype to avoid an error.
10043 Use char because int might match the return type of a GCC
10044 builtin and then its argument prototype would still apply. */
10052 return bfd_init ();
10057 for ac_lib in '' bfd; do
10058 if test -z "$ac_lib"; then
10059 ac_res="none required"
10062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10073 grep -v '^ *+' conftest.er1 >conftest.err
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } &&
10078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10079 { (case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_try") 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; } &&
10088 { ac_try='test -s conftest$ac_exeext'
10089 { (case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_try") 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
10098 ac_cv_search_bfd_init=$ac_res
10100 echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10106 rm -f core conftest.err conftest.$ac_objext \
10108 if test "${ac_cv_search_bfd_init+set}" = set; then
10112 if test "${ac_cv_search_bfd_init+set}" = set; then
10115 ac_cv_search_bfd_init=no
10117 rm conftest.$ac_ext
10118 LIBS=$ac_func_search_save_LIBS
10120 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10121 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10122 ac_res=$ac_cv_search_bfd_init
10123 if test "$ac_res" != no; then
10124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10128 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10129 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10130 if test "${ac_cv_search_op_open_agent+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. */
10147 char op_open_agent ();
10151 return op_open_agent ();
10156 for ac_lib in '' opagent; 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_op_open_agent=$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_op_open_agent+set}" = set; then
10211 if test "${ac_cv_search_op_open_agent+set}" = set; then
10214 ac_cv_search_op_open_agent=no
10216 rm conftest.$ac_ext
10217 LIBS=$ac_func_search_save_LIBS
10219 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10220 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10221 ac_res=$ac_cv_search_op_open_agent
10222 if test "$ac_res" != no; then
10223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10227 echo "Error! You need to have libopagent around."
10232 if test "${ac_cv_header_opagent_h+set}" = set; then
10233 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10234 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10235 if test "${ac_cv_header_opagent_h+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10239 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10241 # Is the header compilable?
10242 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10243 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10244 cat >conftest.$ac_ext <<_ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 $ac_includes_default
10251 #include <opagent.h>
10253 rm -f conftest.$ac_objext
10254 if { (ac_try="$ac_compile"
10255 case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_compile") 2>conftest.er1
10262 grep -v '^ *+' conftest.er1 >conftest.err
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } &&
10267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10268 { (case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_try") 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; } &&
10277 { ac_try='test -s conftest.$ac_objext'
10278 { (case "(($ac_try" in
10279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280 *) ac_try_echo=$ac_try;;
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283 (eval "$ac_try") 2>&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 ac_header_compiler=yes
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10292 ac_header_compiler=no
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10297 echo "${ECHO_T}$ac_header_compiler" >&6; }
10299 # Is the header present?
10300 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10301 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10302 cat >conftest.$ac_ext <<_ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308 #include <opagent.h>
10310 if { (ac_try="$ac_cpp conftest.$ac_ext"
10311 case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10318 grep -v '^ *+' conftest.er1 >conftest.err
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } >/dev/null; then
10323 if test -s conftest.err; then
10324 ac_cpp_err=$ac_c_preproc_warn_flag
10325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10332 if test -z "$ac_cpp_err"; then
10333 ac_header_preproc=yes
10335 echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10338 ac_header_preproc=no
10341 rm -f conftest.err conftest.$ac_ext
10342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10343 echo "${ECHO_T}$ac_header_preproc" >&6; }
10345 # So? What about this header?
10346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10348 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10349 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10350 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10351 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10352 ac_header_preproc=yes
10355 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10356 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10358 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10359 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10360 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10361 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10362 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10363 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10364 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10365 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10366 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10368 ## ------------------------------------ ##
10369 ## Report this to http://llvm.org/bugs/ ##
10370 ## ------------------------------------ ##
10372 ) | sed "s/^/$as_me: WARNING: /" >&2
10375 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10376 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10377 if test "${ac_cv_header_opagent_h+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 ac_cv_header_opagent_h=$ac_header_preproc
10382 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10383 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10386 if test $ac_cv_header_opagent_h = yes; then
10390 echo "Error! You need to have opagent.h around."
10398 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10399 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10400 { (exit 1); exit 1; }; } ;;
10411 cat >>confdefs.h <<_ACEOF
10412 #define LLVM_USE_OPROFILE $USE_OPROFILE
10417 # Check whether --with-intel-jitevents was given.
10418 if test "${with_intel_jitevents+set}" = set; then
10419 withval=$with_intel_jitevents;
10421 yes) USE_INTEL_JITEVENTS=1
10423 no) USE_INTEL_JITEVENTS=0
10425 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10426 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10427 { (exit 1); exit 1; }; };;
10430 case $llvm_cv_os_type in
10431 Linux|Win32|Cygwin|MingW) ;;
10432 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10433 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10434 { (exit 1); exit 1; }; };;
10437 case "$llvm_cv_target_arch" in
10439 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10440 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10441 { (exit 1); exit 1; }; };;
10446 USE_INTEL_JITEVENTS=0
10452 cat >>confdefs.h <<_ACEOF
10453 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10457 for ac_prog in xml2-config
10459 # Extract the first word of "$ac_prog", so it can be a program name with args.
10460 set dummy $ac_prog; ac_word=$2
10461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10463 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 if test -n "$XML2CONFIG"; then
10467 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $PATH
10473 test -z "$as_dir" && as_dir=.
10474 for ac_exec_ext in '' $ac_executable_extensions; do
10475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10476 ac_cv_prog_XML2CONFIG="$ac_prog"
10477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10486 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10487 if test -n "$XML2CONFIG"; then
10488 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10489 echo "${ECHO_T}$XML2CONFIG" >&6; }
10491 { echo "$as_me:$LINENO: result: no" >&5
10492 echo "${ECHO_T}no" >&6; }
10496 test -n "$XML2CONFIG" && break
10500 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10501 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10502 if test "x$XML2CONFIG" = "x"; then
10503 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10504 echo "${ECHO_T}xml2-config not found" >&6; }
10506 LIBXML2_INC=`$XML2CONFIG --cflags`
10507 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10508 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10509 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10510 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10511 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 ac_check_lib_save_LIBS=$LIBS
10515 LIBS="-lxml2 $LIBS"
10516 cat >conftest.$ac_ext <<_ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10523 /* Override any GCC internal prototype to avoid an error.
10524 Use char because int might match the return type of a GCC
10525 builtin and then its argument prototype would still apply. */
10529 char xmlReadFile ();
10533 return xmlReadFile ();
10538 rm -f conftest.$ac_objext conftest$ac_exeext
10539 if { (ac_try="$ac_link"
10540 case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_link") 2>conftest.er1
10547 grep -v '^ *+' conftest.er1 >conftest.err
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } &&
10552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10553 { (case "(($ac_try" in
10554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555 *) ac_try_echo=$ac_try;;
10557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10558 (eval "$ac_try") 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; } &&
10562 { ac_try='test -s conftest$ac_exeext'
10563 { (case "(($ac_try" in
10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10565 *) ac_try_echo=$ac_try;;
10567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10568 (eval "$ac_try") 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10572 ac_cv_lib_xml2_xmlReadFile=yes
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10577 ac_cv_lib_xml2_xmlReadFile=no
10580 rm -f core conftest.err conftest.$ac_objext \
10581 conftest$ac_exeext conftest.$ac_ext
10582 LIBS=$ac_check_lib_save_LIBS
10584 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10585 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10586 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10588 cat >>confdefs.h <<\_ACEOF
10589 #define CLANG_HAVE_LIBXML 1
10592 LIBXML2_LIBS="-lxml2"
10605 ac_header_dirent=no
10606 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10607 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10608 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10609 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 #include <sys/types.h>
10631 rm -f conftest.$ac_objext
10632 if { (ac_try="$ac_compile"
10633 case "(($ac_try" in
10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638 (eval "$ac_compile") 2>conftest.er1
10640 grep -v '^ *+' conftest.er1 >conftest.err
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } &&
10645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10646 { (case "(($ac_try" in
10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648 *) ac_try_echo=$ac_try;;
10650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10651 (eval "$ac_try") 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; } &&
10655 { ac_try='test -s conftest.$ac_objext'
10656 { (case "(($ac_try" in
10657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10658 *) ac_try_echo=$ac_try;;
10660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10661 (eval "$ac_try") 2>&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; }; then
10665 eval "$as_ac_Header=yes"
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10670 eval "$as_ac_Header=no"
10673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10675 ac_res=`eval echo '${'$as_ac_Header'}'`
10676 { echo "$as_me:$LINENO: result: $ac_res" >&5
10677 echo "${ECHO_T}$ac_res" >&6; }
10678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10679 cat >>confdefs.h <<_ACEOF
10680 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10683 ac_header_dirent=$ac_hdr; break
10687 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10688 if test $ac_header_dirent = dirent.h; then
10689 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10690 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10691 if test "${ac_cv_search_opendir+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 ac_func_search_save_LIBS=$LIBS
10695 cat >conftest.$ac_ext <<_ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10702 /* Override any GCC internal prototype to avoid an error.
10703 Use char because int might match the return type of a GCC
10704 builtin and then its argument prototype would still apply. */
10717 for ac_lib in '' dir; do
10718 if test -z "$ac_lib"; then
10719 ac_res="none required"
10722 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10724 rm -f conftest.$ac_objext conftest$ac_exeext
10725 if { (ac_try="$ac_link"
10726 case "(($ac_try" in
10727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728 *) ac_try_echo=$ac_try;;
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731 (eval "$ac_link") 2>conftest.er1
10733 grep -v '^ *+' conftest.er1 >conftest.err
10735 cat conftest.err >&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } &&
10738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10739 { (case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_try") 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; } &&
10748 { ac_try='test -s conftest$ac_exeext'
10749 { (case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754 (eval "$ac_try") 2>&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10758 ac_cv_search_opendir=$ac_res
10760 echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10766 rm -f core conftest.err conftest.$ac_objext \
10768 if test "${ac_cv_search_opendir+set}" = set; then
10772 if test "${ac_cv_search_opendir+set}" = set; then
10775 ac_cv_search_opendir=no
10777 rm conftest.$ac_ext
10778 LIBS=$ac_func_search_save_LIBS
10780 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10781 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10782 ac_res=$ac_cv_search_opendir
10783 if test "$ac_res" != no; then
10784 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10789 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10790 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10791 if test "${ac_cv_search_opendir+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 ac_func_search_save_LIBS=$LIBS
10795 cat >conftest.$ac_ext <<_ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h. */
10802 /* Override any GCC internal prototype to avoid an error.
10803 Use char because int might match the return type of a GCC
10804 builtin and then its argument prototype would still apply. */
10817 for ac_lib in '' x; do
10818 if test -z "$ac_lib"; then
10819 ac_res="none required"
10822 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (ac_try="$ac_link"
10826 case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_link") 2>conftest.er1
10833 grep -v '^ *+' conftest.er1 >conftest.err
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10839 { (case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_try") 2>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; } &&
10848 { ac_try='test -s conftest$ac_exeext'
10849 { (case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_try") 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 ac_cv_search_opendir=$ac_res
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10866 rm -f core conftest.err conftest.$ac_objext \
10868 if test "${ac_cv_search_opendir+set}" = set; then
10872 if test "${ac_cv_search_opendir+set}" = set; then
10875 ac_cv_search_opendir=no
10877 rm conftest.$ac_ext
10878 LIBS=$ac_func_search_save_LIBS
10880 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10881 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10882 ac_res=$ac_cv_search_opendir
10883 if test "$ac_res" != no; then
10884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10890 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10891 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10892 if test "${ac_cv_header_mmap_anon+set}" = set; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 ac_cpp='$CPP $CPPFLAGS'
10897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10901 cat >conftest.$ac_ext <<_ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h. */
10907 #include <sys/mman.h>
10908 #include <unistd.h>
10913 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10918 rm -f conftest.$ac_objext
10919 if { (ac_try="$ac_compile"
10920 case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_compile") 2>conftest.er1
10927 grep -v '^ *+' conftest.er1 >conftest.err
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; } &&
10942 { ac_try='test -s conftest.$ac_objext'
10943 { (case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_try") 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_cv_header_mmap_anon=yes
10954 echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10957 ac_cv_header_mmap_anon=no
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962 ac_cpp='$CPP $CPPFLAGS'
10963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10969 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10970 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10971 if test "$ac_cv_header_mmap_anon" = yes; then
10973 cat >>confdefs.h <<\_ACEOF
10974 #define HAVE_MMAP_ANONYMOUS 1
10979 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10980 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10981 if test "${ac_cv_header_stat_broken+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 cat >conftest.$ac_ext <<_ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10990 #include <sys/types.h>
10991 #include <sys/stat.h>
10993 #if defined S_ISBLK && defined S_IFDIR
10994 # if S_ISBLK (S_IFDIR)
10999 #if defined S_ISBLK && defined S_IFCHR
11000 # if S_ISBLK (S_IFCHR)
11005 #if defined S_ISLNK && defined S_IFREG
11006 # if S_ISLNK (S_IFREG)
11011 #if defined S_ISSOCK && defined S_IFREG
11012 # if S_ISSOCK (S_IFREG)
11018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11019 $EGREP "You lose" >/dev/null 2>&1; then
11020 ac_cv_header_stat_broken=yes
11022 ac_cv_header_stat_broken=no
11027 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11028 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11029 if test $ac_cv_header_stat_broken = yes; then
11031 cat >>confdefs.h <<\_ACEOF
11032 #define STAT_MACROS_BROKEN 1
11037 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11038 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11039 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 cat >conftest.$ac_ext <<_ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 #include <sys/types.h>
11049 #include <sys/wait.h>
11050 #ifndef WEXITSTATUS
11051 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11054 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11062 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11067 rm -f conftest.$ac_objext
11068 if { (ac_try="$ac_compile"
11069 case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_compile") 2>conftest.er1
11076 grep -v '^ *+' conftest.er1 >conftest.err
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11082 { (case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_try") 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try='test -s conftest.$ac_objext'
11092 { (case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_try") 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
11101 ac_cv_header_sys_wait_h=yes
11103 echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11106 ac_cv_header_sys_wait_h=no
11109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11111 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11112 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11113 if test $ac_cv_header_sys_wait_h = yes; then
11115 cat >>confdefs.h <<\_ACEOF
11116 #define HAVE_SYS_WAIT_H 1
11121 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11122 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11123 if test "${ac_cv_header_time+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 cat >conftest.$ac_ext <<_ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132 #include <sys/types.h>
11133 #include <sys/time.h>
11139 if ((struct tm *) 0)
11145 rm -f conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_compile") 2>conftest.er1
11154 grep -v '^ *+' conftest.er1 >conftest.err
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160 { (case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_try") 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest.$ac_objext'
11170 { (case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175 (eval "$ac_try") 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 ac_cv_header_time=yes
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 ac_cv_header_time=no
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11189 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11190 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11191 if test $ac_cv_header_time = yes; then
11193 cat >>confdefs.h <<\_ACEOF
11194 #define TIME_WITH_SYS_TIME 1
11201 ac_cpp='$CXXCPP $CPPFLAGS'
11202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11207 for ac_header in cxxabi.h
11209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11215 cat >conftest.$ac_ext <<_ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11221 #include <stddef.h>
11224 #include <$ac_header>
11226 rm -f conftest.$ac_objext
11227 if { (ac_try="$ac_compile"
11228 case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_compile") 2>conftest.er1
11235 grep -v '^ *+' conftest.er1 >conftest.err
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11241 { (case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 (eval "$ac_try") 2>&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; } &&
11250 { ac_try='test -s conftest.$ac_objext'
11251 { (case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256 (eval "$ac_try") 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 eval "$as_ac_Header=yes"
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 eval "$as_ac_Header=no"
11268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11270 ac_res=`eval echo '${'$as_ac_Header'}'`
11271 { echo "$as_me:$LINENO: result: $ac_res" >&5
11272 echo "${ECHO_T}$ac_res" >&6; }
11273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11274 cat >>confdefs.h <<_ACEOF
11275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11283 ac_cpp='$CPP $CPPFLAGS'
11284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11294 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 ac_res=`eval echo '${'$as_ac_Header'}'`
11304 { echo "$as_me:$LINENO: result: $ac_res" >&5
11305 echo "${ECHO_T}$ac_res" >&6; }
11307 # Is the header compilable?
11308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11310 cat >conftest.$ac_ext <<_ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11316 $ac_includes_default
11317 #include <$ac_header>
11319 rm -f conftest.$ac_objext
11320 if { (ac_try="$ac_compile"
11321 case "(($ac_try" in
11322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323 *) ac_try_echo=$ac_try;;
11325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11326 (eval "$ac_compile") 2>conftest.er1
11328 grep -v '^ *+' conftest.er1 >conftest.err
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11334 { (case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_try") 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; } &&
11343 { ac_try='test -s conftest.$ac_objext'
11344 { (case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_try") 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
11353 ac_header_compiler=yes
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 ac_header_compiler=no
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11363 echo "${ECHO_T}$ac_header_compiler" >&6; }
11365 # Is the header present?
11366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11368 cat >conftest.$ac_ext <<_ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h. */
11374 #include <$ac_header>
11376 if { (ac_try="$ac_cpp conftest.$ac_ext"
11377 case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11384 grep -v '^ *+' conftest.er1 >conftest.err
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } >/dev/null; then
11389 if test -s conftest.err; then
11390 ac_cpp_err=$ac_c_preproc_warn_flag
11391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11398 if test -z "$ac_cpp_err"; then
11399 ac_header_preproc=yes
11401 echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11404 ac_header_preproc=no
11407 rm -f conftest.err conftest.$ac_ext
11408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11409 echo "${ECHO_T}$ac_header_preproc" >&6; }
11411 # So? What about this header?
11412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11418 ac_header_preproc=yes
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11434 ## ------------------------------------ ##
11435 ## Report this to http://llvm.org/bugs/ ##
11436 ## ------------------------------------ ##
11438 ) | sed "s/^/$as_me: WARNING: /" >&2
11441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 eval "$as_ac_Header=\$ac_header_preproc"
11448 ac_res=`eval echo '${'$as_ac_Header'}'`
11449 { echo "$as_me:$LINENO: result: $ac_res" >&5
11450 echo "${ECHO_T}$ac_res" >&6; }
11453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11454 cat >>confdefs.h <<_ACEOF
11455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11468 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11477 ac_res=`eval echo '${'$as_ac_Header'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11481 # Is the header compilable?
11482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11484 cat >conftest.$ac_ext <<_ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 $ac_includes_default
11491 #include <$ac_header>
11493 rm -f conftest.$ac_objext
11494 if { (ac_try="$ac_compile"
11495 case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_compile") 2>conftest.er1
11502 grep -v '^ *+' conftest.er1 >conftest.err
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } &&
11507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11508 { (case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_try") 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; } &&
11517 { ac_try='test -s conftest.$ac_objext'
11518 { (case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_try") 2>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; }; then
11527 ac_header_compiler=yes
11529 echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11532 ac_header_compiler=no
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11537 echo "${ECHO_T}$ac_header_compiler" >&6; }
11539 # Is the header present?
11540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11542 cat >conftest.$ac_ext <<_ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11548 #include <$ac_header>
11550 if { (ac_try="$ac_cpp conftest.$ac_ext"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } >/dev/null; then
11563 if test -s conftest.err; then
11564 ac_cpp_err=$ac_c_preproc_warn_flag
11565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11572 if test -z "$ac_cpp_err"; then
11573 ac_header_preproc=yes
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11578 ac_header_preproc=no
11581 rm -f conftest.err conftest.$ac_ext
11582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11583 echo "${ECHO_T}$ac_header_preproc" >&6; }
11585 # So? What about this header?
11586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11592 ac_header_preproc=yes
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11608 ## ------------------------------------ ##
11609 ## Report this to http://llvm.org/bugs/ ##
11610 ## ------------------------------------ ##
11612 ) | sed "s/^/$as_me: WARNING: /" >&2
11615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 eval "$as_ac_Header=\$ac_header_preproc"
11622 ac_res=`eval echo '${'$as_ac_Header'}'`
11623 { echo "$as_me:$LINENO: result: $ac_res" >&5
11624 echo "${ECHO_T}$ac_res" >&6; }
11627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11628 cat >>confdefs.h <<_ACEOF
11629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11637 for ac_header in utime.h
11639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 ac_res=`eval echo '${'$as_ac_Header'}'`
11647 { echo "$as_me:$LINENO: result: $ac_res" >&5
11648 echo "${ECHO_T}$ac_res" >&6; }
11650 # Is the header compilable?
11651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11653 cat >conftest.$ac_ext <<_ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659 $ac_includes_default
11660 #include <$ac_header>
11662 rm -f conftest.$ac_objext
11663 if { (ac_try="$ac_compile"
11664 case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_compile") 2>conftest.er1
11671 grep -v '^ *+' conftest.er1 >conftest.err
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11677 { (case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682 (eval "$ac_try") 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; } &&
11686 { ac_try='test -s conftest.$ac_objext'
11687 { (case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_try") 2>&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 ac_header_compiler=yes
11698 echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11701 ac_header_compiler=no
11704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11706 echo "${ECHO_T}$ac_header_compiler" >&6; }
11708 # Is the header present?
11709 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11711 cat >conftest.$ac_ext <<_ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 #include <$ac_header>
11719 if { (ac_try="$ac_cpp conftest.$ac_ext"
11720 case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11727 grep -v '^ *+' conftest.er1 >conftest.err
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } >/dev/null; then
11732 if test -s conftest.err; then
11733 ac_cpp_err=$ac_c_preproc_warn_flag
11734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11741 if test -z "$ac_cpp_err"; then
11742 ac_header_preproc=yes
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 ac_header_preproc=no
11750 rm -f conftest.err conftest.$ac_ext
11751 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11752 echo "${ECHO_T}$ac_header_preproc" >&6; }
11754 # So? What about this header?
11755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11761 ac_header_preproc=yes
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11777 ## ------------------------------------ ##
11778 ## Report this to http://llvm.org/bugs/ ##
11779 ## ------------------------------------ ##
11781 ) | sed "s/^/$as_me: WARNING: /" >&2
11784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 eval "$as_ac_Header=\$ac_header_preproc"
11791 ac_res=`eval echo '${'$as_ac_Header'}'`
11792 { echo "$as_me:$LINENO: result: $ac_res" >&5
11793 echo "${ECHO_T}$ac_res" >&6; }
11796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11797 cat >>confdefs.h <<_ACEOF
11798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11810 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 ac_res=`eval echo '${'$as_ac_Header'}'`
11820 { echo "$as_me:$LINENO: result: $ac_res" >&5
11821 echo "${ECHO_T}$ac_res" >&6; }
11823 # Is the header compilable?
11824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11826 cat >conftest.$ac_ext <<_ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 $ac_includes_default
11833 #include <$ac_header>
11835 rm -f conftest.$ac_objext
11836 if { (ac_try="$ac_compile"
11837 case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_compile") 2>conftest.er1
11844 grep -v '^ *+' conftest.er1 >conftest.err
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } &&
11849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11850 { (case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_try") 2>&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; } &&
11859 { ac_try='test -s conftest.$ac_objext'
11860 { (case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_try") 2>&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; }; then
11869 ac_header_compiler=yes
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11874 ac_header_compiler=no
11877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11879 echo "${ECHO_T}$ac_header_compiler" >&6; }
11881 # Is the header present?
11882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11884 cat >conftest.$ac_ext <<_ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11890 #include <$ac_header>
11892 if { (ac_try="$ac_cpp conftest.$ac_ext"
11893 case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11900 grep -v '^ *+' conftest.er1 >conftest.err
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } >/dev/null; then
11905 if test -s conftest.err; then
11906 ac_cpp_err=$ac_c_preproc_warn_flag
11907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11914 if test -z "$ac_cpp_err"; then
11915 ac_header_preproc=yes
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_header_preproc=no
11923 rm -f conftest.err conftest.$ac_ext
11924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11925 echo "${ECHO_T}$ac_header_preproc" >&6; }
11927 # So? What about this header?
11928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11934 ac_header_preproc=yes
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11950 ## ------------------------------------ ##
11951 ## Report this to http://llvm.org/bugs/ ##
11952 ## ------------------------------------ ##
11954 ) | sed "s/^/$as_me: WARNING: /" >&2
11957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 eval "$as_ac_Header=\$ac_header_preproc"
11964 ac_res=`eval echo '${'$as_ac_Header'}'`
11965 { echo "$as_me:$LINENO: result: $ac_res" >&5
11966 echo "${ECHO_T}$ac_res" >&6; }
11969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11970 cat >>confdefs.h <<_ACEOF
11971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11981 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11990 ac_res=`eval echo '${'$as_ac_Header'}'`
11991 { echo "$as_me:$LINENO: result: $ac_res" >&5
11992 echo "${ECHO_T}$ac_res" >&6; }
11994 # Is the header compilable?
11995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11997 cat >conftest.$ac_ext <<_ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 $ac_includes_default
12004 #include <$ac_header>
12006 rm -f conftest.$ac_objext
12007 if { (ac_try="$ac_compile"
12008 case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_compile") 2>conftest.er1
12015 grep -v '^ *+' conftest.er1 >conftest.err
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
12020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12021 { (case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_try") 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; } &&
12030 { ac_try='test -s conftest.$ac_objext'
12031 { (case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_try") 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 ac_header_compiler=yes
12042 echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12045 ac_header_compiler=no
12048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12050 echo "${ECHO_T}$ac_header_compiler" >&6; }
12052 # Is the header present?
12053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12055 cat >conftest.$ac_ext <<_ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12061 #include <$ac_header>
12063 if { (ac_try="$ac_cpp conftest.$ac_ext"
12064 case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12071 grep -v '^ *+' conftest.er1 >conftest.err
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } >/dev/null; then
12076 if test -s conftest.err; then
12077 ac_cpp_err=$ac_c_preproc_warn_flag
12078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12085 if test -z "$ac_cpp_err"; then
12086 ac_header_preproc=yes
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12091 ac_header_preproc=no
12094 rm -f conftest.err conftest.$ac_ext
12095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12096 echo "${ECHO_T}$ac_header_preproc" >&6; }
12098 # So? What about this header?
12099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12105 ac_header_preproc=yes
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12121 ## ------------------------------------ ##
12122 ## Report this to http://llvm.org/bugs/ ##
12123 ## ------------------------------------ ##
12125 ) | sed "s/^/$as_me: WARNING: /" >&2
12128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 eval "$as_ac_Header=\$ac_header_preproc"
12135 ac_res=`eval echo '${'$as_ac_Header'}'`
12136 { echo "$as_me:$LINENO: result: $ac_res" >&5
12137 echo "${ECHO_T}$ac_res" >&6; }
12140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12141 cat >>confdefs.h <<_ACEOF
12142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12150 for ac_header in valgrind/valgrind.h
12152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 ac_res=`eval echo '${'$as_ac_Header'}'`
12160 { echo "$as_me:$LINENO: result: $ac_res" >&5
12161 echo "${ECHO_T}$ac_res" >&6; }
12163 # Is the header compilable?
12164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12166 cat >conftest.$ac_ext <<_ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12172 $ac_includes_default
12173 #include <$ac_header>
12175 rm -f conftest.$ac_objext
12176 if { (ac_try="$ac_compile"
12177 case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_compile") 2>conftest.er1
12184 grep -v '^ *+' conftest.er1 >conftest.err
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12190 { (case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_try") 2>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; } &&
12199 { ac_try='test -s conftest.$ac_objext'
12200 { (case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_try") 2>&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
12209 ac_header_compiler=yes
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12214 ac_header_compiler=no
12217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12219 echo "${ECHO_T}$ac_header_compiler" >&6; }
12221 # Is the header present?
12222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12224 cat >conftest.$ac_ext <<_ACEOF
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h. */
12230 #include <$ac_header>
12232 if { (ac_try="$ac_cpp conftest.$ac_ext"
12233 case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12240 grep -v '^ *+' conftest.er1 >conftest.err
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } >/dev/null; then
12245 if test -s conftest.err; then
12246 ac_cpp_err=$ac_c_preproc_warn_flag
12247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12254 if test -z "$ac_cpp_err"; then
12255 ac_header_preproc=yes
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12260 ac_header_preproc=no
12263 rm -f conftest.err conftest.$ac_ext
12264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12265 echo "${ECHO_T}$ac_header_preproc" >&6; }
12267 # So? What about this header?
12268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12274 ac_header_preproc=yes
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12290 ## ------------------------------------ ##
12291 ## Report this to http://llvm.org/bugs/ ##
12292 ## ------------------------------------ ##
12294 ) | sed "s/^/$as_me: WARNING: /" >&2
12297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 eval "$as_ac_Header=\$ac_header_preproc"
12304 ac_res=`eval echo '${'$as_ac_Header'}'`
12305 { echo "$as_me:$LINENO: result: $ac_res" >&5
12306 echo "${ECHO_T}$ac_res" >&6; }
12309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12310 cat >>confdefs.h <<_ACEOF
12311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12319 for ac_header in fenv.h
12321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 ac_res=`eval echo '${'$as_ac_Header'}'`
12329 { echo "$as_me:$LINENO: result: $ac_res" >&5
12330 echo "${ECHO_T}$ac_res" >&6; }
12332 # Is the header compilable?
12333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12335 cat >conftest.$ac_ext <<_ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12341 $ac_includes_default
12342 #include <$ac_header>
12344 rm -f conftest.$ac_objext
12345 if { (ac_try="$ac_compile"
12346 case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_compile") 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12359 { (case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_try") 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest.$ac_objext'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_header_compiler=yes
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 ac_header_compiler=no
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12388 echo "${ECHO_T}$ac_header_compiler" >&6; }
12390 # Is the header present?
12391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12393 cat >conftest.$ac_ext <<_ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 #include <$ac_header>
12401 if { (ac_try="$ac_cpp conftest.$ac_ext"
12402 case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12409 grep -v '^ *+' conftest.er1 >conftest.err
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } >/dev/null; then
12414 if test -s conftest.err; then
12415 ac_cpp_err=$ac_c_preproc_warn_flag
12416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12423 if test -z "$ac_cpp_err"; then
12424 ac_header_preproc=yes
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12429 ac_header_preproc=no
12432 rm -f conftest.err conftest.$ac_ext
12433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12434 echo "${ECHO_T}$ac_header_preproc" >&6; }
12436 # So? What about this header?
12437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12443 ac_header_preproc=yes
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12459 ## ------------------------------------ ##
12460 ## Report this to http://llvm.org/bugs/ ##
12461 ## ------------------------------------ ##
12463 ) | sed "s/^/$as_me: WARNING: /" >&2
12466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12471 eval "$as_ac_Header=\$ac_header_preproc"
12473 ac_res=`eval echo '${'$as_ac_Header'}'`
12474 { echo "$as_me:$LINENO: result: $ac_res" >&5
12475 echo "${ECHO_T}$ac_res" >&6; }
12478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12479 cat >>confdefs.h <<_ACEOF
12480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12487 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12488 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12489 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12490 echo $ECHO_N "(cached) $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. */
12503 #ifndef FE_ALL_EXCEPT
12504 char *p = (char *) FE_ALL_EXCEPT;
12512 rm -f conftest.$ac_objext
12513 if { (ac_try="$ac_compile"
12514 case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_compile") 2>conftest.er1
12521 grep -v '^ *+' conftest.er1 >conftest.err
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12527 { (case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_try") 2>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; } &&
12536 { ac_try='test -s conftest.$ac_objext'
12537 { (case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_try") 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12551 ac_cv_have_decl_FE_ALL_EXCEPT=no
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12557 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12558 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12560 cat >>confdefs.h <<_ACEOF
12561 #define HAVE_DECL_FE_ALL_EXCEPT 1
12566 cat >>confdefs.h <<_ACEOF
12567 #define HAVE_DECL_FE_ALL_EXCEPT 0
12572 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12573 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12574 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 cat >conftest.$ac_ext <<_ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12589 char *p = (char *) FE_INEXACT;
12597 rm -f conftest.$ac_objext
12598 if { (ac_try="$ac_compile"
12599 case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_compile") 2>conftest.er1
12606 grep -v '^ *+' conftest.er1 >conftest.err
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
12611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12612 { (case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_try") 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; } &&
12621 { ac_try='test -s conftest.$ac_objext'
12622 { (case "(($ac_try" in
12623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624 *) ac_try_echo=$ac_try;;
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627 (eval "$ac_try") 2>&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 ac_cv_have_decl_FE_INEXACT=yes
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12636 ac_cv_have_decl_FE_INEXACT=no
12639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12641 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12642 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12643 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12645 cat >>confdefs.h <<_ACEOF
12646 #define HAVE_DECL_FE_INEXACT 1
12651 cat >>confdefs.h <<_ACEOF
12652 #define HAVE_DECL_FE_INEXACT 0
12659 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12661 for ac_header in pthread.h
12663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 ac_res=`eval echo '${'$as_ac_Header'}'`
12671 { echo "$as_me:$LINENO: result: $ac_res" >&5
12672 echo "${ECHO_T}$ac_res" >&6; }
12674 # Is the header compilable?
12675 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12677 cat >conftest.$ac_ext <<_ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 $ac_includes_default
12684 #include <$ac_header>
12686 rm -f conftest.$ac_objext
12687 if { (ac_try="$ac_compile"
12688 case "(($ac_try" in
12689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690 *) ac_try_echo=$ac_try;;
12692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12693 (eval "$ac_compile") 2>conftest.er1
12695 grep -v '^ *+' conftest.er1 >conftest.err
12697 cat conftest.err >&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
12700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12701 { (case "(($ac_try" in
12702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706 (eval "$ac_try") 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; } &&
12710 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12720 ac_header_compiler=yes
12722 echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12725 ac_header_compiler=no
12728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12730 echo "${ECHO_T}$ac_header_compiler" >&6; }
12732 # Is the header present?
12733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12735 cat >conftest.$ac_ext <<_ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12741 #include <$ac_header>
12743 if { (ac_try="$ac_cpp conftest.$ac_ext"
12744 case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12751 grep -v '^ *+' conftest.er1 >conftest.err
12753 cat conftest.err >&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } >/dev/null; then
12756 if test -s conftest.err; then
12757 ac_cpp_err=$ac_c_preproc_warn_flag
12758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12765 if test -z "$ac_cpp_err"; then
12766 ac_header_preproc=yes
12768 echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.$ac_ext >&5
12771 ac_header_preproc=no
12774 rm -f conftest.err conftest.$ac_ext
12775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12776 echo "${ECHO_T}$ac_header_preproc" >&6; }
12778 # So? What about this header?
12779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12785 ac_header_preproc=yes
12788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12801 ## ------------------------------------ ##
12802 ## Report this to http://llvm.org/bugs/ ##
12803 ## ------------------------------------ ##
12805 ) | sed "s/^/$as_me: WARNING: /" >&2
12808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 eval "$as_ac_Header=\$ac_header_preproc"
12815 ac_res=`eval echo '${'$as_ac_Header'}'`
12816 { echo "$as_me:$LINENO: result: $ac_res" >&5
12817 echo "${ECHO_T}$ac_res" >&6; }
12820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12821 cat >>confdefs.h <<_ACEOF
12822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12837 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12839 for ac_header in zlib.h
12841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12846 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 ac_res=`eval echo '${'$as_ac_Header'}'`
12849 { echo "$as_me:$LINENO: result: $ac_res" >&5
12850 echo "${ECHO_T}$ac_res" >&6; }
12852 # Is the header compilable?
12853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12855 cat >conftest.$ac_ext <<_ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12861 $ac_includes_default
12862 #include <$ac_header>
12864 rm -f conftest.$ac_objext
12865 if { (ac_try="$ac_compile"
12866 case "(($ac_try" in
12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_compile") 2>conftest.er1
12873 grep -v '^ *+' conftest.er1 >conftest.err
12875 cat conftest.err >&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } &&
12878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12879 { (case "(($ac_try" in
12880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881 *) ac_try_echo=$ac_try;;
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884 (eval "$ac_try") 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; } &&
12888 { ac_try='test -s conftest.$ac_objext'
12889 { (case "(($ac_try" in
12890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891 *) ac_try_echo=$ac_try;;
12893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894 (eval "$ac_try") 2>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; }; then
12898 ac_header_compiler=yes
12900 echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.$ac_ext >&5
12903 ac_header_compiler=no
12906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12908 echo "${ECHO_T}$ac_header_compiler" >&6; }
12910 # Is the header present?
12911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12913 cat >conftest.$ac_ext <<_ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h. */
12919 #include <$ac_header>
12921 if { (ac_try="$ac_cpp conftest.$ac_ext"
12922 case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12929 grep -v '^ *+' conftest.er1 >conftest.err
12931 cat conftest.err >&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } >/dev/null; then
12934 if test -s conftest.err; then
12935 ac_cpp_err=$ac_c_preproc_warn_flag
12936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12943 if test -z "$ac_cpp_err"; then
12944 ac_header_preproc=yes
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12949 ac_header_preproc=no
12952 rm -f conftest.err conftest.$ac_ext
12953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12954 echo "${ECHO_T}$ac_header_preproc" >&6; }
12956 # So? What about this header?
12957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12963 ac_header_preproc=yes
12966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12973 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12979 ## ------------------------------------ ##
12980 ## Report this to http://llvm.org/bugs/ ##
12981 ## ------------------------------------ ##
12983 ) | sed "s/^/$as_me: WARNING: /" >&2
12986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 eval "$as_ac_Header=\$ac_header_preproc"
12993 ac_res=`eval echo '${'$as_ac_Header'}'`
12994 { echo "$as_me:$LINENO: result: $ac_res" >&5
12995 echo "${ECHO_T}$ac_res" >&6; }
12998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12999 cat >>confdefs.h <<_ACEOF
13000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13016 if test "$llvm_cv_enable_libffi" = "yes" ; then
13019 for ac_header in ffi.h ffi/ffi.h
13021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 ac_res=`eval echo '${'$as_ac_Header'}'`
13029 { echo "$as_me:$LINENO: result: $ac_res" >&5
13030 echo "${ECHO_T}$ac_res" >&6; }
13032 # Is the header compilable?
13033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13035 cat >conftest.$ac_ext <<_ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13041 $ac_includes_default
13042 #include <$ac_header>
13044 rm -f conftest.$ac_objext
13045 if { (ac_try="$ac_compile"
13046 case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_compile") 2>conftest.er1
13053 grep -v '^ *+' conftest.er1 >conftest.err
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13059 { (case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_try") 2>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; } &&
13068 { ac_try='test -s conftest.$ac_objext'
13069 { (case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_try") 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
13078 ac_header_compiler=yes
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13083 ac_header_compiler=no
13086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13088 echo "${ECHO_T}$ac_header_compiler" >&6; }
13090 # Is the header present?
13091 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13093 cat >conftest.$ac_ext <<_ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h. */
13099 #include <$ac_header>
13101 if { (ac_try="$ac_cpp conftest.$ac_ext"
13102 case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13109 grep -v '^ *+' conftest.er1 >conftest.err
13111 cat conftest.err >&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } >/dev/null; then
13114 if test -s conftest.err; then
13115 ac_cpp_err=$ac_c_preproc_warn_flag
13116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13123 if test -z "$ac_cpp_err"; then
13124 ac_header_preproc=yes
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13129 ac_header_preproc=no
13132 rm -f conftest.err conftest.$ac_ext
13133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13134 echo "${ECHO_T}$ac_header_preproc" >&6; }
13136 # So? What about this header?
13137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13143 ac_header_preproc=yes
13146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13159 ## ------------------------------------ ##
13160 ## Report this to http://llvm.org/bugs/ ##
13161 ## ------------------------------------ ##
13163 ) | sed "s/^/$as_me: WARNING: /" >&2
13166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 eval "$as_ac_Header=\$ac_header_preproc"
13173 ac_res=`eval echo '${'$as_ac_Header'}'`
13174 { echo "$as_me:$LINENO: result: $ac_res" >&5
13175 echo "${ECHO_T}$ac_res" >&6; }
13178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13179 cat >>confdefs.h <<_ACEOF
13180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13190 for ac_header in CrashReporterClient.h
13192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 ac_res=`eval echo '${'$as_ac_Header'}'`
13200 { echo "$as_me:$LINENO: result: $ac_res" >&5
13201 echo "${ECHO_T}$ac_res" >&6; }
13203 # Is the header compilable?
13204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13206 cat >conftest.$ac_ext <<_ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13212 $ac_includes_default
13213 #include <$ac_header>
13215 rm -f conftest.$ac_objext
13216 if { (ac_try="$ac_compile"
13217 case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_compile") 2>conftest.er1
13224 grep -v '^ *+' conftest.er1 >conftest.err
13226 cat conftest.err >&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } &&
13229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13230 { (case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_try") 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; } &&
13239 { ac_try='test -s conftest.$ac_objext'
13240 { (case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_try") 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249 ac_header_compiler=yes
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13254 ac_header_compiler=no
13257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13259 echo "${ECHO_T}$ac_header_compiler" >&6; }
13261 # Is the header present?
13262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13264 cat >conftest.$ac_ext <<_ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13270 #include <$ac_header>
13272 if { (ac_try="$ac_cpp conftest.$ac_ext"
13273 case "(($ac_try" in
13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275 *) ac_try_echo=$ac_try;;
13277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13280 grep -v '^ *+' conftest.er1 >conftest.err
13282 cat conftest.err >&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); } >/dev/null; then
13285 if test -s conftest.err; then
13286 ac_cpp_err=$ac_c_preproc_warn_flag
13287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13294 if test -z "$ac_cpp_err"; then
13295 ac_header_preproc=yes
13297 echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13300 ac_header_preproc=no
13303 rm -f conftest.err conftest.$ac_ext
13304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13305 echo "${ECHO_T}$ac_header_preproc" >&6; }
13307 # So? What about this header?
13308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13314 ac_header_preproc=yes
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13330 ## ------------------------------------ ##
13331 ## Report this to http://llvm.org/bugs/ ##
13332 ## ------------------------------------ ##
13334 ) | sed "s/^/$as_me: WARNING: /" >&2
13337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13342 eval "$as_ac_Header=\$ac_header_preproc"
13344 ac_res=`eval echo '${'$as_ac_Header'}'`
13345 { echo "$as_me:$LINENO: result: $ac_res" >&5
13346 echo "${ECHO_T}$ac_res" >&6; }
13349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13350 cat >>confdefs.h <<_ACEOF
13351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13359 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13360 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13361 cat >conftest.$ac_ext <<_ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13369 extern const char *__crashreporter_info__;
13371 __crashreporter_info__ = "test";
13377 rm -f conftest.$ac_objext conftest$ac_exeext
13378 if { (ac_try="$ac_link"
13379 case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_link") 2>conftest.er1
13386 grep -v '^ *+' conftest.er1 >conftest.err
13388 cat conftest.err >&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } &&
13391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13392 { (case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_try") 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try='test -s conftest$ac_exeext'
13402 { (case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_try") 2>&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; }; then
13412 { echo "$as_me:$LINENO: result: yes" >&5
13413 echo "${ECHO_T}yes" >&6; }
13415 cat >>confdefs.h <<\_ACEOF
13416 #define HAVE_CRASHREPORTER_INFO 1
13421 echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13425 { echo "$as_me:$LINENO: result: no" >&5
13426 echo "${ECHO_T}no" >&6; }
13428 cat >>confdefs.h <<\_ACEOF
13429 #define HAVE_CRASHREPORTER_INFO 0
13435 rm -f core conftest.err conftest.$ac_objext \
13436 conftest$ac_exeext conftest.$ac_ext
13440 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13441 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13442 if test "${ac_cv_huge_val_sanity+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 ac_cpp='$CXXCPP $CPPFLAGS'
13448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13452 ac_save_CXXFLAGS=$CXXFLAGS
13453 CXXFLAGS="$CXXFLAGS -pedantic"
13454 if test "$cross_compiling" = yes; then
13455 ac_cv_huge_val_sanity=yes
13457 cat >conftest.$ac_ext <<_ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13467 double x = HUGE_VAL; return x != x;
13472 rm -f conftest$ac_exeext
13473 if { (ac_try="$ac_link"
13474 case "(($ac_try" in
13475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476 *) ac_try_echo=$ac_try;;
13478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13479 (eval "$ac_link") 2>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13483 { (case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_try") 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
13492 ac_cv_huge_val_sanity=yes
13494 echo "$as_me: program exited with status $ac_status" >&5
13495 echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13498 ( exit $ac_status )
13499 ac_cv_huge_val_sanity=no
13501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13505 CXXFLAGS=$ac_save_CXXFLAGS
13507 ac_cpp='$CPP $CPPFLAGS'
13508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13514 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13515 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13516 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13519 { echo "$as_me:$LINENO: checking for pid_t" >&5
13520 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13521 if test "${ac_cv_type_pid_t+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 cat >conftest.$ac_ext <<_ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h. */
13530 $ac_includes_default
13531 typedef pid_t ac__type_new_;
13535 if ((ac__type_new_ *) 0)
13537 if (sizeof (ac__type_new_))
13543 rm -f conftest.$ac_objext
13544 if { (ac_try="$ac_compile"
13545 case "(($ac_try" in
13546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547 *) ac_try_echo=$ac_try;;
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550 (eval "$ac_compile") 2>conftest.er1
13552 grep -v '^ *+' conftest.er1 >conftest.err
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
13557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13558 { (case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_try") 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest.$ac_objext'
13568 { (case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_try") 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; }; then
13577 ac_cv_type_pid_t=yes
13579 echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13582 ac_cv_type_pid_t=no
13585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13588 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13589 if test $ac_cv_type_pid_t = yes; then
13593 cat >>confdefs.h <<_ACEOF
13599 { echo "$as_me:$LINENO: checking for size_t" >&5
13600 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13601 if test "${ac_cv_type_size_t+set}" = set; then
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13604 cat >conftest.$ac_ext <<_ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13610 $ac_includes_default
13611 typedef size_t ac__type_new_;
13615 if ((ac__type_new_ *) 0)
13617 if (sizeof (ac__type_new_))
13623 rm -f conftest.$ac_objext
13624 if { (ac_try="$ac_compile"
13625 case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_compile") 2>conftest.er1
13632 grep -v '^ *+' conftest.er1 >conftest.err
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } &&
13637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13638 { (case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643 (eval "$ac_try") 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; } &&
13647 { ac_try='test -s conftest.$ac_objext'
13648 { (case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_try") 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13657 ac_cv_type_size_t=yes
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13662 ac_cv_type_size_t=no
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13668 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13669 if test $ac_cv_type_size_t = yes; then
13673 cat >>confdefs.h <<_ACEOF
13674 #define size_t unsigned int
13680 cat >>confdefs.h <<_ACEOF
13681 #define RETSIGTYPE void
13684 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13685 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13686 if test "${ac_cv_struct_tm+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13689 cat >conftest.$ac_ext <<_ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 #include <sys/types.h>
13701 struct tm *tp; tp->tm_sec;
13706 rm -f conftest.$ac_objext
13707 if { (ac_try="$ac_compile"
13708 case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_compile") 2>conftest.er1
13715 grep -v '^ *+' conftest.er1 >conftest.err
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
13720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13721 { (case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_try") 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; } &&
13730 { ac_try='test -s conftest.$ac_objext'
13731 { (case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_try") 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; }; then
13740 ac_cv_struct_tm=time.h
13742 echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.$ac_ext >&5
13745 ac_cv_struct_tm=sys/time.h
13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13750 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13751 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13752 if test $ac_cv_struct_tm = sys/time.h; then
13754 cat >>confdefs.h <<\_ACEOF
13755 #define TM_IN_SYS_TIME 1
13760 { echo "$as_me:$LINENO: checking for int64_t" >&5
13761 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13762 if test "${ac_cv_type_int64_t+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 cat >conftest.$ac_ext <<_ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13771 $ac_includes_default
13772 typedef int64_t ac__type_new_;
13776 if ((ac__type_new_ *) 0)
13778 if (sizeof (ac__type_new_))
13784 rm -f conftest.$ac_objext
13785 if { (ac_try="$ac_compile"
13786 case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_compile") 2>conftest.er1
13793 grep -v '^ *+' conftest.er1 >conftest.err
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13799 { (case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_try") 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest.$ac_objext'
13809 { (case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_try") 2>&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }; then
13818 ac_cv_type_int64_t=yes
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 ac_cv_type_int64_t=no
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13828 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13829 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13830 if test $ac_cv_type_int64_t = yes; then
13832 cat >>confdefs.h <<_ACEOF
13833 #define HAVE_INT64_T 1
13838 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13839 echo "$as_me: error: Type int64_t required but not found" >&2;}
13840 { (exit 1); exit 1; }; }
13843 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13844 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13845 if test "${ac_cv_type_uint64_t+set}" = set; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 cat >conftest.$ac_ext <<_ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13854 $ac_includes_default
13855 typedef uint64_t ac__type_new_;
13859 if ((ac__type_new_ *) 0)
13861 if (sizeof (ac__type_new_))
13867 rm -f conftest.$ac_objext
13868 if { (ac_try="$ac_compile"
13869 case "(($ac_try" in
13870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871 *) ac_try_echo=$ac_try;;
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874 (eval "$ac_compile") 2>conftest.er1
13876 grep -v '^ *+' conftest.er1 >conftest.err
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13882 { (case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_try") 2>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; } &&
13891 { ac_try='test -s conftest.$ac_objext'
13892 { (case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_try") 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 ac_cv_type_uint64_t=yes
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13906 ac_cv_type_uint64_t=no
13909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13912 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13913 if test $ac_cv_type_uint64_t = yes; then
13915 cat >>confdefs.h <<_ACEOF
13916 #define HAVE_UINT64_T 1
13921 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13922 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13923 if test "${ac_cv_type_u_int64_t+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 cat >conftest.$ac_ext <<_ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h. */
13932 $ac_includes_default
13933 typedef u_int64_t ac__type_new_;
13937 if ((ac__type_new_ *) 0)
13939 if (sizeof (ac__type_new_))
13945 rm -f conftest.$ac_objext
13946 if { (ac_try="$ac_compile"
13947 case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_compile") 2>conftest.er1
13954 grep -v '^ *+' conftest.er1 >conftest.err
13956 cat conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } &&
13959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13960 { (case "(($ac_try" in
13961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962 *) ac_try_echo=$ac_try;;
13964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965 (eval "$ac_try") 2>&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; } &&
13969 { ac_try='test -s conftest.$ac_objext'
13970 { (case "(($ac_try" in
13971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972 *) ac_try_echo=$ac_try;;
13974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13975 (eval "$ac_try") 2>&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
13979 ac_cv_type_u_int64_t=yes
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13984 ac_cv_type_u_int64_t=no
13987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13990 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13991 if test $ac_cv_type_u_int64_t = yes; then
13993 cat >>confdefs.h <<_ACEOF
13994 #define HAVE_U_INT64_T 1
13999 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14000 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14001 { (exit 1); exit 1; }; }
14010 for ac_func in backtrace getcwd
14012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14018 cat >conftest.$ac_ext <<_ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h. */
14024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14026 #define $ac_func innocuous_$ac_func
14028 /* System header to define __stub macros and hopefully few prototypes,
14029 which can conflict with char $ac_func (); below.
14030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14031 <limits.h> exists even on freestanding compilers. */
14034 # include <limits.h>
14036 # include <assert.h>
14041 /* Override any GCC internal prototype to avoid an error.
14042 Use char because int might match the return type of a GCC
14043 builtin and then its argument prototype would still apply. */
14048 /* The GNU C library defines this for functions which it implements
14049 to always fail with ENOSYS. Some functions are actually named
14050 something starting with __ and the normal name is an alias. */
14051 #if defined __stub_$ac_func || defined __stub___$ac_func
14058 return $ac_func ();
14063 rm -f conftest.$ac_objext conftest$ac_exeext
14064 if { (ac_try="$ac_link"
14065 case "(($ac_try" in
14066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067 *) ac_try_echo=$ac_try;;
14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070 (eval "$ac_link") 2>conftest.er1
14072 grep -v '^ *+' conftest.er1 >conftest.err
14074 cat conftest.err >&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
14077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14078 { (case "(($ac_try" in
14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_try") 2>&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; } &&
14087 { ac_try='test -s conftest$ac_exeext'
14088 { (case "(($ac_try" in
14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 *) ac_try_echo=$ac_try;;
14092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093 (eval "$ac_try") 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 eval "$as_ac_var=yes"
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 eval "$as_ac_var=no"
14105 rm -f core conftest.err conftest.$ac_objext \
14106 conftest$ac_exeext conftest.$ac_ext
14108 ac_res=`eval echo '${'$as_ac_var'}'`
14109 { echo "$as_me:$LINENO: result: $ac_res" >&5
14110 echo "${ECHO_T}$ac_res" >&6; }
14111 if test `eval echo '${'$as_ac_var'}'` = yes; then
14112 cat >>confdefs.h <<_ACEOF
14113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14124 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 cat >conftest.$ac_ext <<_ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14140 #define $ac_func innocuous_$ac_func
14142 /* System header to define __stub macros and hopefully few prototypes,
14143 which can conflict with char $ac_func (); below.
14144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14145 <limits.h> exists even on freestanding compilers. */
14148 # include <limits.h>
14150 # include <assert.h>
14155 /* Override any GCC internal prototype to avoid an error.
14156 Use char because int might match the return type of a GCC
14157 builtin and then its argument prototype would still apply. */
14162 /* The GNU C library defines this for functions which it implements
14163 to always fail with ENOSYS. Some functions are actually named
14164 something starting with __ and the normal name is an alias. */
14165 #if defined __stub_$ac_func || defined __stub___$ac_func
14172 return $ac_func ();
14177 rm -f conftest.$ac_objext conftest$ac_exeext
14178 if { (ac_try="$ac_link"
14179 case "(($ac_try" in
14180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181 *) ac_try_echo=$ac_try;;
14183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14184 (eval "$ac_link") 2>conftest.er1
14186 grep -v '^ *+' conftest.er1 >conftest.err
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14192 { (case "(($ac_try" in
14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194 *) ac_try_echo=$ac_try;;
14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197 (eval "$ac_try") 2>&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; } &&
14201 { ac_try='test -s conftest$ac_exeext'
14202 { (case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_try") 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }; then
14211 eval "$as_ac_var=yes"
14213 echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14216 eval "$as_ac_var=no"
14219 rm -f core conftest.err conftest.$ac_objext \
14220 conftest$ac_exeext conftest.$ac_ext
14222 ac_res=`eval echo '${'$as_ac_var'}'`
14223 { echo "$as_me:$LINENO: result: $ac_res" >&5
14224 echo "${ECHO_T}$ac_res" >&6; }
14225 if test `eval echo '${'$as_ac_var'}'` = yes; then
14226 cat >>confdefs.h <<_ACEOF
14227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14236 for ac_func in isatty mkdtemp mkstemp
14238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14239 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14241 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 cat >conftest.$ac_ext <<_ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14252 #define $ac_func innocuous_$ac_func
14254 /* System header to define __stub macros and hopefully few prototypes,
14255 which can conflict with char $ac_func (); below.
14256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14257 <limits.h> exists even on freestanding compilers. */
14260 # include <limits.h>
14262 # include <assert.h>
14267 /* Override any GCC internal prototype to avoid an error.
14268 Use char because int might match the return type of a GCC
14269 builtin and then its argument prototype would still apply. */
14274 /* The GNU C library defines this for functions which it implements
14275 to always fail with ENOSYS. Some functions are actually named
14276 something starting with __ and the normal name is an alias. */
14277 #if defined __stub_$ac_func || defined __stub___$ac_func
14284 return $ac_func ();
14289 rm -f conftest.$ac_objext conftest$ac_exeext
14290 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
14298 grep -v '^ *+' conftest.er1 >conftest.err
14300 cat conftest.err >&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } &&
14303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14304 { (case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_try") 2>&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; } &&
14313 { ac_try='test -s conftest$ac_exeext'
14314 { (case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319 (eval "$ac_try") 2>&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 eval "$as_ac_var=yes"
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 eval "$as_ac_var=no"
14331 rm -f core conftest.err conftest.$ac_objext \
14332 conftest$ac_exeext conftest.$ac_ext
14334 ac_res=`eval echo '${'$as_ac_var'}'`
14335 { echo "$as_me:$LINENO: result: $ac_res" >&5
14336 echo "${ECHO_T}$ac_res" >&6; }
14337 if test `eval echo '${'$as_ac_var'}'` = yes; then
14338 cat >>confdefs.h <<_ACEOF
14339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14351 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 cat >conftest.$ac_ext <<_ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14367 #define $ac_func innocuous_$ac_func
14369 /* System header to define __stub macros and hopefully few prototypes,
14370 which can conflict with char $ac_func (); below.
14371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14372 <limits.h> exists even on freestanding compilers. */
14375 # include <limits.h>
14377 # include <assert.h>
14382 /* Override any GCC internal prototype to avoid an error.
14383 Use char because int might match the return type of a GCC
14384 builtin and then its argument prototype would still apply. */
14389 /* The GNU C library defines this for functions which it implements
14390 to always fail with ENOSYS. Some functions are actually named
14391 something starting with __ and the normal name is an alias. */
14392 #if defined __stub_$ac_func || defined __stub___$ac_func
14399 return $ac_func ();
14404 rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (ac_try="$ac_link"
14406 case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_link") 2>conftest.er1
14413 grep -v '^ *+' conftest.er1 >conftest.err
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14419 { (case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424 (eval "$ac_try") 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; } &&
14428 { ac_try='test -s conftest$ac_exeext'
14429 { (case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_try") 2>&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14438 eval "$as_ac_var=yes"
14440 echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14443 eval "$as_ac_var=no"
14446 rm -f core conftest.err conftest.$ac_objext \
14447 conftest$ac_exeext conftest.$ac_ext
14449 ac_res=`eval echo '${'$as_ac_var'}'`
14450 { echo "$as_me:$LINENO: result: $ac_res" >&5
14451 echo "${ECHO_T}$ac_res" >&6; }
14452 if test `eval echo '${'$as_ac_var'}'` = yes; then
14453 cat >>confdefs.h <<_ACEOF
14454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14463 for ac_func in strerror strerror_r setenv
14465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 cat >conftest.$ac_ext <<_ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h. */
14477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14479 #define $ac_func innocuous_$ac_func
14481 /* System header to define __stub macros and hopefully few prototypes,
14482 which can conflict with char $ac_func (); below.
14483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14484 <limits.h> exists even on freestanding compilers. */
14487 # include <limits.h>
14489 # include <assert.h>
14494 /* Override any GCC internal prototype to avoid an error.
14495 Use char because int might match the return type of a GCC
14496 builtin and then its argument prototype would still apply. */
14501 /* The GNU C library defines this for functions which it implements
14502 to always fail with ENOSYS. Some functions are actually named
14503 something starting with __ and the normal name is an alias. */
14504 #if defined __stub_$ac_func || defined __stub___$ac_func
14511 return $ac_func ();
14516 rm -f conftest.$ac_objext conftest$ac_exeext
14517 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
14525 grep -v '^ *+' conftest.er1 >conftest.err
14527 cat conftest.err >&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
14530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14531 { (case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_try") 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; } &&
14540 { ac_try='test -s conftest$ac_exeext'
14541 { (case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546 (eval "$ac_try") 2>&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; }; then
14550 eval "$as_ac_var=yes"
14552 echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14555 eval "$as_ac_var=no"
14558 rm -f core conftest.err conftest.$ac_objext \
14559 conftest$ac_exeext conftest.$ac_ext
14561 ac_res=`eval echo '${'$as_ac_var'}'`
14562 { echo "$as_me:$LINENO: result: $ac_res" >&5
14563 echo "${ECHO_T}$ac_res" >&6; }
14564 if test `eval echo '${'$as_ac_var'}'` = yes; then
14565 cat >>confdefs.h <<_ACEOF
14566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14576 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 cat >conftest.$ac_ext <<_ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14592 #define $ac_func innocuous_$ac_func
14594 /* System header to define __stub macros and hopefully few prototypes,
14595 which can conflict with char $ac_func (); below.
14596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14597 <limits.h> exists even on freestanding compilers. */
14600 # include <limits.h>
14602 # include <assert.h>
14607 /* Override any GCC internal prototype to avoid an error.
14608 Use char because int might match the return type of a GCC
14609 builtin and then its argument prototype would still apply. */
14614 /* The GNU C library defines this for functions which it implements
14615 to always fail with ENOSYS. Some functions are actually named
14616 something starting with __ and the normal name is an alias. */
14617 #if defined __stub_$ac_func || defined __stub___$ac_func
14624 return $ac_func ();
14629 rm -f conftest.$ac_objext conftest$ac_exeext
14630 if { (ac_try="$ac_link"
14631 case "(($ac_try" in
14632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633 *) ac_try_echo=$ac_try;;
14635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636 (eval "$ac_link") 2>conftest.er1
14638 grep -v '^ *+' conftest.er1 >conftest.err
14640 cat conftest.err >&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); } &&
14643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14644 { (case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_try") 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; } &&
14653 { ac_try='test -s conftest$ac_exeext'
14654 { (case "(($ac_try" in
14655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656 *) ac_try_echo=$ac_try;;
14658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14659 (eval "$ac_try") 2>&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; }; then
14663 eval "$as_ac_var=yes"
14665 echo "$as_me: failed program was:" >&5
14666 sed 's/^/| /' conftest.$ac_ext >&5
14668 eval "$as_ac_var=no"
14671 rm -f core conftest.err conftest.$ac_objext \
14672 conftest$ac_exeext conftest.$ac_ext
14674 ac_res=`eval echo '${'$as_ac_var'}'`
14675 { echo "$as_me:$LINENO: result: $ac_res" >&5
14676 echo "${ECHO_T}$ac_res" >&6; }
14677 if test `eval echo '${'$as_ac_var'}'` = yes; then
14678 cat >>confdefs.h <<_ACEOF
14679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14690 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 cat >conftest.$ac_ext <<_ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14706 #define $ac_func innocuous_$ac_func
14708 /* System header to define __stub macros and hopefully few prototypes,
14709 which can conflict with char $ac_func (); below.
14710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14711 <limits.h> exists even on freestanding compilers. */
14714 # include <limits.h>
14716 # include <assert.h>
14721 /* Override any GCC internal prototype to avoid an error.
14722 Use char because int might match the return type of a GCC
14723 builtin and then its argument prototype would still apply. */
14728 /* The GNU C library defines this for functions which it implements
14729 to always fail with ENOSYS. Some functions are actually named
14730 something starting with __ and the normal name is an alias. */
14731 #if defined __stub_$ac_func || defined __stub___$ac_func
14738 return $ac_func ();
14743 rm -f conftest.$ac_objext conftest$ac_exeext
14744 if { (ac_try="$ac_link"
14745 case "(($ac_try" in
14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747 *) ac_try_echo=$ac_try;;
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_link") 2>conftest.er1
14752 grep -v '^ *+' conftest.er1 >conftest.err
14754 cat conftest.err >&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } &&
14757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14758 { (case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_try") 2>&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; } &&
14767 { ac_try='test -s conftest$ac_exeext'
14768 { (case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773 (eval "$ac_try") 2>&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }; }; then
14777 eval "$as_ac_var=yes"
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 eval "$as_ac_var=no"
14785 rm -f core conftest.err conftest.$ac_objext \
14786 conftest$ac_exeext conftest.$ac_ext
14788 ac_res=`eval echo '${'$as_ac_var'}'`
14789 { echo "$as_me:$LINENO: result: $ac_res" >&5
14790 echo "${ECHO_T}$ac_res" >&6; }
14791 if test `eval echo '${'$as_ac_var'}'` = yes; then
14792 cat >>confdefs.h <<_ACEOF
14793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14801 for ac_func in futimes futimens
14803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 cat >conftest.$ac_ext <<_ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14817 #define $ac_func innocuous_$ac_func
14819 /* System header to define __stub macros and hopefully few prototypes,
14820 which can conflict with char $ac_func (); below.
14821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14822 <limits.h> exists even on freestanding compilers. */
14825 # include <limits.h>
14827 # include <assert.h>
14832 /* Override any GCC internal prototype to avoid an error.
14833 Use char because int might match the return type of a GCC
14834 builtin and then its argument prototype would still apply. */
14839 /* The GNU C library defines this for functions which it implements
14840 to always fail with ENOSYS. Some functions are actually named
14841 something starting with __ and the normal name is an alias. */
14842 #if defined __stub_$ac_func || defined __stub___$ac_func
14849 return $ac_func ();
14854 rm -f conftest.$ac_objext conftest$ac_exeext
14855 if { (ac_try="$ac_link"
14856 case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_link") 2>conftest.er1
14863 grep -v '^ *+' conftest.er1 >conftest.err
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14869 { (case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874 (eval "$ac_try") 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try='test -s conftest$ac_exeext'
14879 { (case "(($ac_try" in
14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_try") 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
14888 eval "$as_ac_var=yes"
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 eval "$as_ac_var=no"
14896 rm -f core conftest.err conftest.$ac_objext \
14897 conftest$ac_exeext conftest.$ac_ext
14899 ac_res=`eval echo '${'$as_ac_var'}'`
14900 { echo "$as_me:$LINENO: result: $ac_res" >&5
14901 echo "${ECHO_T}$ac_res" >&6; }
14902 if test `eval echo '${'$as_ac_var'}'` = yes; then
14903 cat >>confdefs.h <<_ACEOF
14904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14910 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14911 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14912 if test "${llvm_cv_c_printf_a+set}" = set; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14916 ac_cpp='$CPP $CPPFLAGS'
14917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14921 if test "$cross_compiling" = yes; then
14922 llvmac_cv_c_printf_a=no
14924 cat >conftest.$ac_ext <<_ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14933 #include <stdlib.h>
14939 volatile double A, B;
14943 sprintf(Buffer, "%a", A);
14947 if (A != 0x1.999999999999ap-4)
14954 rm -f conftest$ac_exeext
14955 if { (ac_try="$ac_link"
14956 case "(($ac_try" in
14957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14958 *) ac_try_echo=$ac_try;;
14960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14961 (eval "$ac_link") 2>&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14965 { (case "(($ac_try" in
14966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967 *) ac_try_echo=$ac_try;;
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970 (eval "$ac_try") 2>&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; }; then
14974 llvm_cv_c_printf_a=yes
14976 echo "$as_me: program exited with status $ac_status" >&5
14977 echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14980 ( exit $ac_status )
14981 llvmac_cv_c_printf_a=no
14983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14988 ac_cpp='$CPP $CPPFLAGS'
14989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14994 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14995 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14996 if test "$llvm_cv_c_printf_a" = "yes"; then
14998 cat >>confdefs.h <<\_ACEOF
14999 #define HAVE_PRINTF_A 1
15006 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15007 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15008 if test "${ac_cv_func_rand48+set}" = set; then
15009 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 ac_cpp='$CXXCPP $CPPFLAGS'
15014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15018 cat >conftest.$ac_ext <<_ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15024 #include <stdlib.h>
15028 srand48(0);lrand48();drand48();
15033 rm -f conftest.$ac_objext
15034 if { (ac_try="$ac_compile"
15035 case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_compile") 2>conftest.er1
15042 grep -v '^ *+' conftest.er1 >conftest.err
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
15047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15048 { (case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_try") 2>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; } &&
15057 { ac_try='test -s conftest.$ac_objext'
15058 { (case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063 (eval "$ac_try") 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15067 ac_cv_func_rand48=yes
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 ac_cv_func_rand48=no
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15077 ac_cpp='$CPP $CPPFLAGS'
15078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15084 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15085 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15087 if test "$ac_cv_func_rand48" = "yes" ; then
15089 cat >>confdefs.h <<\_ACEOF
15090 #define HAVE_RAND48 1
15096 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15097 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15098 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 cat >conftest.$ac_ext <<_ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15107 $ac_includes_default
15112 char *p = (char *) arc4random;
15120 rm -f conftest.$ac_objext
15121 if { (ac_try="$ac_compile"
15122 case "(($ac_try" in
15123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15124 *) ac_try_echo=$ac_try;;
15126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15127 (eval "$ac_compile") 2>conftest.er1
15129 grep -v '^ *+' conftest.er1 >conftest.err
15131 cat conftest.err >&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); } &&
15134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15135 { (case "(($ac_try" in
15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137 *) ac_try_echo=$ac_try;;
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140 (eval "$ac_try") 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; } &&
15144 { ac_try='test -s conftest.$ac_objext'
15145 { (case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_try") 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }; then
15154 ac_cv_have_decl_arc4random=yes
15156 echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15159 ac_cv_have_decl_arc4random=no
15162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15165 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15166 if test $ac_cv_have_decl_arc4random = yes; then
15168 cat >>confdefs.h <<_ACEOF
15169 #define HAVE_DECL_ARC4RANDOM 1
15174 cat >>confdefs.h <<_ACEOF
15175 #define HAVE_DECL_ARC4RANDOM 0
15183 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15184 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15185 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 cat >conftest.$ac_ext <<_ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15194 $ac_includes_default
15199 char *p = (char *) strerror_s;
15207 rm -f conftest.$ac_objext
15208 if { (ac_try="$ac_compile"
15209 case "(($ac_try" in
15210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211 *) ac_try_echo=$ac_try;;
15213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15214 (eval "$ac_compile") 2>conftest.er1
15216 grep -v '^ *+' conftest.er1 >conftest.err
15218 cat conftest.err >&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } &&
15221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15222 { (case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_try") 2>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; } &&
15231 { ac_try='test -s conftest.$ac_objext'
15232 { (case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_try") 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 ac_cv_have_decl_strerror_s=yes
15243 echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15246 ac_cv_have_decl_strerror_s=no
15249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15252 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15253 if test $ac_cv_have_decl_strerror_s = yes; then
15255 cat >>confdefs.h <<_ACEOF
15256 #define HAVE_DECL_STRERROR_S 1
15261 cat >>confdefs.h <<_ACEOF
15262 #define HAVE_DECL_STRERROR_S 0
15270 if test "$llvm_cv_os_type" = "MingW" ; then
15271 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15272 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15273 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 ac_check_lib_save_LIBS=$LIBS
15278 cat >conftest.$ac_ext <<_ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15285 /* Override any GCC internal prototype to avoid an error.
15286 Use char because int might match the return type of a GCC
15287 builtin and then its argument prototype would still apply. */
15300 rm -f conftest.$ac_objext conftest$ac_exeext
15301 if { (ac_try="$ac_link"
15302 case "(($ac_try" in
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304 *) ac_try_echo=$ac_try;;
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307 (eval "$ac_link") 2>conftest.er1
15309 grep -v '^ *+' conftest.er1 >conftest.err
15311 cat conftest.err >&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } &&
15314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15315 { (case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_try") 2>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; } &&
15324 { ac_try='test -s conftest$ac_exeext'
15325 { (case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_try") 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_cv_lib_gcc__alloca=yes
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 ac_cv_lib_gcc__alloca=no
15342 rm -f core conftest.err conftest.$ac_objext \
15343 conftest$ac_exeext conftest.$ac_ext
15344 LIBS=$ac_check_lib_save_LIBS
15346 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15347 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15348 if test $ac_cv_lib_gcc__alloca = yes; then
15350 cat >>confdefs.h <<\_ACEOF
15351 #define HAVE__ALLOCA 1
15356 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15357 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15358 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15361 ac_check_lib_save_LIBS=$LIBS
15363 cat >conftest.$ac_ext <<_ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15370 /* Override any GCC internal prototype to avoid an error.
15371 Use char because int might match the return type of a GCC
15372 builtin and then its argument prototype would still apply. */
15380 return __alloca ();
15385 rm -f conftest.$ac_objext conftest$ac_exeext
15386 if { (ac_try="$ac_link"
15387 case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392 (eval "$ac_link") 2>conftest.er1
15394 grep -v '^ *+' conftest.er1 >conftest.err
15396 cat conftest.err >&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } &&
15399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15400 { (case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_try") 2>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; } &&
15409 { ac_try='test -s conftest$ac_exeext'
15410 { (case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_try") 2>&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 ac_cv_lib_gcc___alloca=yes
15421 echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 ac_cv_lib_gcc___alloca=no
15427 rm -f core conftest.err conftest.$ac_objext \
15428 conftest$ac_exeext conftest.$ac_ext
15429 LIBS=$ac_check_lib_save_LIBS
15431 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15432 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15433 if test $ac_cv_lib_gcc___alloca = yes; then
15435 cat >>confdefs.h <<\_ACEOF
15436 #define HAVE___ALLOCA 1
15441 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15442 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15443 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 ac_check_lib_save_LIBS=$LIBS
15448 cat >conftest.$ac_ext <<_ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15455 /* Override any GCC internal prototype to avoid an error.
15456 Use char because int might match the return type of a GCC
15457 builtin and then its argument prototype would still apply. */
15465 return __chkstk ();
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (ac_try="$ac_link"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_link") 2>conftest.er1
15479 grep -v '^ *+' conftest.er1 >conftest.err
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } &&
15484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15485 { (case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_try") 2>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } &&
15494 { ac_try='test -s conftest$ac_exeext'
15495 { (case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_try") 2>&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 ac_cv_lib_gcc___chkstk=yes
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ac_cv_lib_gcc___chkstk=no
15512 rm -f core conftest.err conftest.$ac_objext \
15513 conftest$ac_exeext conftest.$ac_ext
15514 LIBS=$ac_check_lib_save_LIBS
15516 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15517 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15518 if test $ac_cv_lib_gcc___chkstk = yes; then
15520 cat >>confdefs.h <<\_ACEOF
15521 #define HAVE___CHKSTK 1
15526 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15527 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15528 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 ac_check_lib_save_LIBS=$LIBS
15533 cat >conftest.$ac_ext <<_ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15540 /* Override any GCC internal prototype to avoid an error.
15541 Use char because int might match the return type of a GCC
15542 builtin and then its argument prototype would still apply. */
15546 char __chkstk_ms ();
15550 return __chkstk_ms ();
15555 rm -f conftest.$ac_objext conftest$ac_exeext
15556 if { (ac_try="$ac_link"
15557 case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_link") 2>conftest.er1
15564 grep -v '^ *+' conftest.er1 >conftest.err
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
15569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15570 { (case "(($ac_try" in
15571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575 (eval "$ac_try") 2>&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; } &&
15579 { ac_try='test -s conftest$ac_exeext'
15580 { (case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_try") 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
15589 ac_cv_lib_gcc___chkstk_ms=yes
15591 echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15594 ac_cv_lib_gcc___chkstk_ms=no
15597 rm -f core conftest.err conftest.$ac_objext \
15598 conftest$ac_exeext conftest.$ac_ext
15599 LIBS=$ac_check_lib_save_LIBS
15601 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15602 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15603 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15605 cat >>confdefs.h <<\_ACEOF
15606 #define HAVE___CHKSTK_MS 1
15611 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15612 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15613 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15614 echo $ECHO_N "(cached) $ECHO_C" >&6
15616 ac_check_lib_save_LIBS=$LIBS
15618 cat >conftest.$ac_ext <<_ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15625 /* Override any GCC internal prototype to avoid an error.
15626 Use char because int might match the return type of a GCC
15627 builtin and then its argument prototype would still apply. */
15635 return ___chkstk ();
15640 rm -f conftest.$ac_objext conftest$ac_exeext
15641 if { (ac_try="$ac_link"
15642 case "(($ac_try" in
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644 *) ac_try_echo=$ac_try;;
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647 (eval "$ac_link") 2>conftest.er1
15649 grep -v '^ *+' conftest.er1 >conftest.err
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
15654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15655 { (case "(($ac_try" in
15656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657 *) ac_try_echo=$ac_try;;
15659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660 (eval "$ac_try") 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try='test -s conftest$ac_exeext'
15665 { (case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_try") 2>&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_cv_lib_gcc____chkstk=yes
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15679 ac_cv_lib_gcc____chkstk=no
15682 rm -f core conftest.err conftest.$ac_objext \
15683 conftest$ac_exeext conftest.$ac_ext
15684 LIBS=$ac_check_lib_save_LIBS
15686 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15687 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15688 if test $ac_cv_lib_gcc____chkstk = yes; then
15690 cat >>confdefs.h <<\_ACEOF
15691 #define HAVE____CHKSTK 1
15696 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15697 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15698 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 ac_check_lib_save_LIBS=$LIBS
15703 cat >conftest.$ac_ext <<_ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15710 /* Override any GCC internal prototype to avoid an error.
15711 Use char because int might match the return type of a GCC
15712 builtin and then its argument prototype would still apply. */
15716 char ___chkstk_ms ();
15720 return ___chkstk_ms ();
15725 rm -f conftest.$ac_objext conftest$ac_exeext
15726 if { (ac_try="$ac_link"
15727 case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_link") 2>conftest.er1
15734 grep -v '^ *+' conftest.er1 >conftest.err
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15740 { (case "(($ac_try" in
15741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742 *) ac_try_echo=$ac_try;;
15744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745 (eval "$ac_try") 2>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; } &&
15749 { ac_try='test -s conftest$ac_exeext'
15750 { (case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_try") 2>&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
15759 ac_cv_lib_gcc____chkstk_ms=yes
15761 echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15764 ac_cv_lib_gcc____chkstk_ms=no
15767 rm -f core conftest.err conftest.$ac_objext \
15768 conftest$ac_exeext conftest.$ac_ext
15769 LIBS=$ac_check_lib_save_LIBS
15771 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15772 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15773 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15775 cat >>confdefs.h <<\_ACEOF
15776 #define HAVE____CHKSTK_MS 1
15782 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15783 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15784 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 ac_check_lib_save_LIBS=$LIBS
15789 cat >conftest.$ac_ext <<_ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15796 /* Override any GCC internal prototype to avoid an error.
15797 Use char because int might match the return type of a GCC
15798 builtin and then its argument prototype would still apply. */
15806 return __ashldi3 ();
15811 rm -f conftest.$ac_objext conftest$ac_exeext
15812 if { (ac_try="$ac_link"
15813 case "(($ac_try" in
15814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815 *) ac_try_echo=$ac_try;;
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818 (eval "$ac_link") 2>conftest.er1
15820 grep -v '^ *+' conftest.er1 >conftest.err
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } &&
15825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; } &&
15835 { ac_try='test -s conftest$ac_exeext'
15836 { (case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841 (eval "$ac_try") 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; }; then
15845 ac_cv_lib_gcc___ashldi3=yes
15847 echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15850 ac_cv_lib_gcc___ashldi3=no
15853 rm -f core conftest.err conftest.$ac_objext \
15854 conftest$ac_exeext conftest.$ac_ext
15855 LIBS=$ac_check_lib_save_LIBS
15857 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15858 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15859 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15861 cat >>confdefs.h <<\_ACEOF
15862 #define HAVE___ASHLDI3 1
15867 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15868 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15869 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15872 ac_check_lib_save_LIBS=$LIBS
15874 cat >conftest.$ac_ext <<_ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15881 /* Override any GCC internal prototype to avoid an error.
15882 Use char because int might match the return type of a GCC
15883 builtin and then its argument prototype would still apply. */
15891 return __ashrdi3 ();
15896 rm -f conftest.$ac_objext conftest$ac_exeext
15897 if { (ac_try="$ac_link"
15898 case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_link") 2>conftest.er1
15905 grep -v '^ *+' conftest.er1 >conftest.err
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15911 { (case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916 (eval "$ac_try") 2>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; } &&
15920 { ac_try='test -s conftest$ac_exeext'
15921 { (case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_try") 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }; then
15930 ac_cv_lib_gcc___ashrdi3=yes
15932 echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15935 ac_cv_lib_gcc___ashrdi3=no
15938 rm -f core conftest.err conftest.$ac_objext \
15939 conftest$ac_exeext conftest.$ac_ext
15940 LIBS=$ac_check_lib_save_LIBS
15942 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15943 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15944 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15946 cat >>confdefs.h <<\_ACEOF
15947 #define HAVE___ASHRDI3 1
15952 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15953 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15954 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15957 ac_check_lib_save_LIBS=$LIBS
15959 cat >conftest.$ac_ext <<_ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15966 /* Override any GCC internal prototype to avoid an error.
15967 Use char because int might match the return type of a GCC
15968 builtin and then its argument prototype would still apply. */
15976 return __divdi3 ();
15981 rm -f conftest.$ac_objext conftest$ac_exeext
15982 if { (ac_try="$ac_link"
15983 case "(($ac_try" in
15984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985 *) ac_try_echo=$ac_try;;
15987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988 (eval "$ac_link") 2>conftest.er1
15990 grep -v '^ *+' conftest.er1 >conftest.err
15992 cat conftest.err >&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } &&
15995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15996 { (case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_try") 2>&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; } &&
16005 { ac_try='test -s conftest$ac_exeext'
16006 { (case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_try") 2>&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16015 ac_cv_lib_gcc___divdi3=yes
16017 echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16020 ac_cv_lib_gcc___divdi3=no
16023 rm -f core conftest.err conftest.$ac_objext \
16024 conftest$ac_exeext conftest.$ac_ext
16025 LIBS=$ac_check_lib_save_LIBS
16027 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16028 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16029 if test $ac_cv_lib_gcc___divdi3 = yes; then
16031 cat >>confdefs.h <<\_ACEOF
16032 #define HAVE___DIVDI3 1
16037 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16038 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16039 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16042 ac_check_lib_save_LIBS=$LIBS
16044 cat >conftest.$ac_ext <<_ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16051 /* Override any GCC internal prototype to avoid an error.
16052 Use char because int might match the return type of a GCC
16053 builtin and then its argument prototype would still apply. */
16061 return __fixdfdi ();
16066 rm -f conftest.$ac_objext conftest$ac_exeext
16067 if { (ac_try="$ac_link"
16068 case "(($ac_try" in
16069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070 *) ac_try_echo=$ac_try;;
16072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16073 (eval "$ac_link") 2>conftest.er1
16075 grep -v '^ *+' conftest.er1 >conftest.err
16077 cat conftest.err >&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } &&
16080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16081 { (case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_try") 2>&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; } &&
16090 { ac_try='test -s conftest$ac_exeext'
16091 { (case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_try") 2>&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; }; then
16100 ac_cv_lib_gcc___fixdfdi=yes
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16105 ac_cv_lib_gcc___fixdfdi=no
16108 rm -f core conftest.err conftest.$ac_objext \
16109 conftest$ac_exeext conftest.$ac_ext
16110 LIBS=$ac_check_lib_save_LIBS
16112 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16113 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16114 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16116 cat >>confdefs.h <<\_ACEOF
16117 #define HAVE___FIXDFDI 1
16122 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16123 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16124 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16127 ac_check_lib_save_LIBS=$LIBS
16129 cat >conftest.$ac_ext <<_ACEOF
16132 cat confdefs.h >>conftest.$ac_ext
16133 cat >>conftest.$ac_ext <<_ACEOF
16134 /* end confdefs.h. */
16136 /* Override any GCC internal prototype to avoid an error.
16137 Use char because int might match the return type of a GCC
16138 builtin and then its argument prototype would still apply. */
16146 return __fixsfdi ();
16151 rm -f conftest.$ac_objext conftest$ac_exeext
16152 if { (ac_try="$ac_link"
16153 case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158 (eval "$ac_link") 2>conftest.er1
16160 grep -v '^ *+' conftest.er1 >conftest.err
16162 cat conftest.err >&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } &&
16165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16166 { (case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171 (eval "$ac_try") 2>&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; } &&
16175 { ac_try='test -s conftest$ac_exeext'
16176 { (case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181 (eval "$ac_try") 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16185 ac_cv_lib_gcc___fixsfdi=yes
16187 echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16190 ac_cv_lib_gcc___fixsfdi=no
16193 rm -f core conftest.err conftest.$ac_objext \
16194 conftest$ac_exeext conftest.$ac_ext
16195 LIBS=$ac_check_lib_save_LIBS
16197 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16198 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16199 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16201 cat >>confdefs.h <<\_ACEOF
16202 #define HAVE___FIXSFDI 1
16207 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16208 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16209 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16212 ac_check_lib_save_LIBS=$LIBS
16214 cat >conftest.$ac_ext <<_ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16221 /* Override any GCC internal prototype to avoid an error.
16222 Use char because int might match the return type of a GCC
16223 builtin and then its argument prototype would still apply. */
16227 char __floatdidf ();
16231 return __floatdidf ();
16236 rm -f conftest.$ac_objext conftest$ac_exeext
16237 if { (ac_try="$ac_link"
16238 case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_link") 2>conftest.er1
16245 grep -v '^ *+' conftest.er1 >conftest.err
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
16250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16251 { (case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_try") 2>&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; } &&
16260 { ac_try='test -s conftest$ac_exeext'
16261 { (case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_try") 2>&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 ac_cv_lib_gcc___floatdidf=yes
16272 echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16275 ac_cv_lib_gcc___floatdidf=no
16278 rm -f core conftest.err conftest.$ac_objext \
16279 conftest$ac_exeext conftest.$ac_ext
16280 LIBS=$ac_check_lib_save_LIBS
16282 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16283 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16284 if test $ac_cv_lib_gcc___floatdidf = yes; then
16286 cat >>confdefs.h <<\_ACEOF
16287 #define HAVE___FLOATDIDF 1
16292 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16293 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16294 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16295 echo $ECHO_N "(cached) $ECHO_C" >&6
16297 ac_check_lib_save_LIBS=$LIBS
16299 cat >conftest.$ac_ext <<_ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16306 /* Override any GCC internal prototype to avoid an error.
16307 Use char because int might match the return type of a GCC
16308 builtin and then its argument prototype would still apply. */
16316 return __lshrdi3 ();
16321 rm -f conftest.$ac_objext conftest$ac_exeext
16322 if { (ac_try="$ac_link"
16323 case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_link") 2>conftest.er1
16330 grep -v '^ *+' conftest.er1 >conftest.err
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
16335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16336 { (case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_try") 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; } &&
16345 { ac_try='test -s conftest$ac_exeext'
16346 { (case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_try") 2>&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; }; then
16355 ac_cv_lib_gcc___lshrdi3=yes
16357 echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16360 ac_cv_lib_gcc___lshrdi3=no
16363 rm -f core conftest.err conftest.$ac_objext \
16364 conftest$ac_exeext conftest.$ac_ext
16365 LIBS=$ac_check_lib_save_LIBS
16367 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16368 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16369 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE___LSHRDI3 1
16377 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16378 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16379 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 ac_check_lib_save_LIBS=$LIBS
16384 cat >conftest.$ac_ext <<_ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h. */
16391 /* Override any GCC internal prototype to avoid an error.
16392 Use char because int might match the return type of a GCC
16393 builtin and then its argument prototype would still apply. */
16401 return __moddi3 ();
16406 rm -f conftest.$ac_objext conftest$ac_exeext
16407 if { (ac_try="$ac_link"
16408 case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_link") 2>conftest.er1
16415 grep -v '^ *+' conftest.er1 >conftest.err
16417 cat conftest.err >&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } &&
16420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16421 { (case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_try") 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; } &&
16430 { ac_try='test -s conftest$ac_exeext'
16431 { (case "(($ac_try" in
16432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433 *) ac_try_echo=$ac_try;;
16435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16436 (eval "$ac_try") 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; }; then
16440 ac_cv_lib_gcc___moddi3=yes
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16445 ac_cv_lib_gcc___moddi3=no
16448 rm -f core conftest.err conftest.$ac_objext \
16449 conftest$ac_exeext conftest.$ac_ext
16450 LIBS=$ac_check_lib_save_LIBS
16452 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16453 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16454 if test $ac_cv_lib_gcc___moddi3 = yes; then
16456 cat >>confdefs.h <<\_ACEOF
16457 #define HAVE___MODDI3 1
16462 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16463 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16464 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 ac_check_lib_save_LIBS=$LIBS
16469 cat >conftest.$ac_ext <<_ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16476 /* Override any GCC internal prototype to avoid an error.
16477 Use char because int might match the return type of a GCC
16478 builtin and then its argument prototype would still apply. */
16486 return __udivdi3 ();
16491 rm -f conftest.$ac_objext conftest$ac_exeext
16492 if { (ac_try="$ac_link"
16493 case "(($ac_try" in
16494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495 *) ac_try_echo=$ac_try;;
16497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498 (eval "$ac_link") 2>conftest.er1
16500 grep -v '^ *+' conftest.er1 >conftest.err
16502 cat conftest.err >&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16506 { (case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_try") 2>&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; } &&
16515 { ac_try='test -s conftest$ac_exeext'
16516 { (case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_try") 2>&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525 ac_cv_lib_gcc___udivdi3=yes
16527 echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.$ac_ext >&5
16530 ac_cv_lib_gcc___udivdi3=no
16533 rm -f core conftest.err conftest.$ac_objext \
16534 conftest$ac_exeext conftest.$ac_ext
16535 LIBS=$ac_check_lib_save_LIBS
16537 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16538 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16539 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16541 cat >>confdefs.h <<\_ACEOF
16542 #define HAVE___UDIVDI3 1
16547 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16548 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16549 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16552 ac_check_lib_save_LIBS=$LIBS
16554 cat >conftest.$ac_ext <<_ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h. */
16561 /* Override any GCC internal prototype to avoid an error.
16562 Use char because int might match the return type of a GCC
16563 builtin and then its argument prototype would still apply. */
16571 return __umoddi3 ();
16576 rm -f conftest.$ac_objext conftest$ac_exeext
16577 if { (ac_try="$ac_link"
16578 case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_link") 2>conftest.er1
16585 grep -v '^ *+' conftest.er1 >conftest.err
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16591 { (case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_try") 2>&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; } &&
16600 { ac_try='test -s conftest$ac_exeext'
16601 { (case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_try") 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_cv_lib_gcc___umoddi3=yes
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16615 ac_cv_lib_gcc___umoddi3=no
16618 rm -f core conftest.err conftest.$ac_objext \
16619 conftest$ac_exeext conftest.$ac_ext
16620 LIBS=$ac_check_lib_save_LIBS
16622 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16623 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16624 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16626 cat >>confdefs.h <<\_ACEOF
16627 #define HAVE___UMODDI3 1
16633 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16634 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16635 if test "${ac_cv_lib_gcc___main+set}" = set; then
16636 echo $ECHO_N "(cached) $ECHO_C" >&6
16638 ac_check_lib_save_LIBS=$LIBS
16640 cat >conftest.$ac_ext <<_ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16647 /* Override any GCC internal prototype to avoid an error.
16648 Use char because int might match the return type of a GCC
16649 builtin and then its argument prototype would still apply. */
16662 rm -f conftest.$ac_objext conftest$ac_exeext
16663 if { (ac_try="$ac_link"
16664 case "(($ac_try" in
16665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669 (eval "$ac_link") 2>conftest.er1
16671 grep -v '^ *+' conftest.er1 >conftest.err
16673 cat conftest.err >&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } &&
16676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; } &&
16686 { ac_try='test -s conftest$ac_exeext'
16687 { (case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_try") 2>&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16696 ac_cv_lib_gcc___main=yes
16698 echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16701 ac_cv_lib_gcc___main=no
16704 rm -f core conftest.err conftest.$ac_objext \
16705 conftest$ac_exeext conftest.$ac_ext
16706 LIBS=$ac_check_lib_save_LIBS
16708 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16709 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16710 if test $ac_cv_lib_gcc___main = yes; then
16712 cat >>confdefs.h <<\_ACEOF
16713 #define HAVE___MAIN 1
16718 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16719 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16720 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16723 ac_check_lib_save_LIBS=$LIBS
16725 cat >conftest.$ac_ext <<_ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h. */
16732 /* Override any GCC internal prototype to avoid an error.
16733 Use char because int might match the return type of a GCC
16734 builtin and then its argument prototype would still apply. */
16742 return __cmpdi2 ();
16747 rm -f conftest.$ac_objext conftest$ac_exeext
16748 if { (ac_try="$ac_link"
16749 case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_link") 2>conftest.er1
16756 grep -v '^ *+' conftest.er1 >conftest.err
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } &&
16761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; } &&
16771 { ac_try='test -s conftest$ac_exeext'
16772 { (case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_try") 2>&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; }; then
16781 ac_cv_lib_gcc___cmpdi2=yes
16783 echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16786 ac_cv_lib_gcc___cmpdi2=no
16789 rm -f core conftest.err conftest.$ac_objext \
16790 conftest$ac_exeext conftest.$ac_ext
16791 LIBS=$ac_check_lib_save_LIBS
16793 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16794 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16795 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16797 cat >>confdefs.h <<\_ACEOF
16798 #define HAVE___CMPDI2 1
16805 if test "$llvm_cv_os_type" = "MingW" ; then
16806 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16807 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16808 cat >conftest.$ac_ext <<_ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16816 #include <windows.h>
16817 #include <imagehlp.h>
16818 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16819 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16823 rm -f conftest.$ac_objext
16824 if { (ac_try="$ac_compile"
16825 case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_compile") 2>conftest.er1
16832 grep -v '^ *+' conftest.er1 >conftest.err
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
16837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16838 { (case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843 (eval "$ac_try") 2>&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; } &&
16847 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16858 { echo "$as_me:$LINENO: result: yes" >&5
16859 echo "${ECHO_T}yes" >&6; }
16860 llvm_cv_win32_elmcb_pcstr="PCSTR"
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16867 { echo "$as_me:$LINENO: result: no" >&5
16868 echo "${ECHO_T}no" >&6; }
16869 llvm_cv_win32_elmcb_pcstr="PSTR"
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16875 cat >>confdefs.h <<_ACEOF
16876 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16881 if test "$llvm_cv_platform_type" = "Unix" ; then
16884 for ac_header in stdlib.h unistd.h
16886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16893 ac_res=`eval echo '${'$as_ac_Header'}'`
16894 { echo "$as_me:$LINENO: result: $ac_res" >&5
16895 echo "${ECHO_T}$ac_res" >&6; }
16897 # Is the header compilable?
16898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16900 cat >conftest.$ac_ext <<_ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 $ac_includes_default
16907 #include <$ac_header>
16909 rm -f conftest.$ac_objext
16910 if { (ac_try="$ac_compile"
16911 case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916 (eval "$ac_compile") 2>conftest.er1
16918 grep -v '^ *+' conftest.er1 >conftest.err
16920 cat conftest.err >&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
16923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; } &&
16933 { ac_try='test -s conftest.$ac_objext'
16934 { (case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939 (eval "$ac_try") 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 ac_header_compiler=yes
16945 echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16948 ac_header_compiler=no
16951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16953 echo "${ECHO_T}$ac_header_compiler" >&6; }
16955 # Is the header present?
16956 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16958 cat >conftest.$ac_ext <<_ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h. */
16964 #include <$ac_header>
16966 if { (ac_try="$ac_cpp conftest.$ac_ext"
16967 case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16974 grep -v '^ *+' conftest.er1 >conftest.err
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } >/dev/null; then
16979 if test -s conftest.err; then
16980 ac_cpp_err=$ac_c_preproc_warn_flag
16981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16988 if test -z "$ac_cpp_err"; then
16989 ac_header_preproc=yes
16991 echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16994 ac_header_preproc=no
16997 rm -f conftest.err conftest.$ac_ext
16998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16999 echo "${ECHO_T}$ac_header_preproc" >&6; }
17001 # So? What about this header?
17002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17007 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17008 ac_header_preproc=yes
17011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17014 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17015 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17016 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17017 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17018 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17021 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17022 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17024 ## ------------------------------------ ##
17025 ## Report this to http://llvm.org/bugs/ ##
17026 ## ------------------------------------ ##
17028 ) | sed "s/^/$as_me: WARNING: /" >&2
17031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17036 eval "$as_ac_Header=\$ac_header_preproc"
17038 ac_res=`eval echo '${'$as_ac_Header'}'`
17039 { echo "$as_me:$LINENO: result: $ac_res" >&5
17040 echo "${ECHO_T}$ac_res" >&6; }
17043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17044 cat >>confdefs.h <<_ACEOF
17045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17053 for ac_func in getpagesize
17055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17061 cat >conftest.$ac_ext <<_ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h. */
17067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17069 #define $ac_func innocuous_$ac_func
17071 /* System header to define __stub macros and hopefully few prototypes,
17072 which can conflict with char $ac_func (); below.
17073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17074 <limits.h> exists even on freestanding compilers. */
17077 # include <limits.h>
17079 # include <assert.h>
17084 /* Override any GCC internal prototype to avoid an error.
17085 Use char because int might match the return type of a GCC
17086 builtin and then its argument prototype would still apply. */
17091 /* The GNU C library defines this for functions which it implements
17092 to always fail with ENOSYS. Some functions are actually named
17093 something starting with __ and the normal name is an alias. */
17094 #if defined __stub_$ac_func || defined __stub___$ac_func
17101 return $ac_func ();
17106 rm -f conftest.$ac_objext conftest$ac_exeext
17107 if { (ac_try="$ac_link"
17108 case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_link") 2>conftest.er1
17115 grep -v '^ *+' conftest.er1 >conftest.err
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } &&
17120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17121 { (case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126 (eval "$ac_try") 2>&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; } &&
17130 { ac_try='test -s conftest$ac_exeext'
17131 { (case "(($ac_try" in
17132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133 *) ac_try_echo=$ac_try;;
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136 (eval "$ac_try") 2>&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140 eval "$as_ac_var=yes"
17142 echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17145 eval "$as_ac_var=no"
17148 rm -f core conftest.err conftest.$ac_objext \
17149 conftest$ac_exeext conftest.$ac_ext
17151 ac_res=`eval echo '${'$as_ac_var'}'`
17152 { echo "$as_me:$LINENO: result: $ac_res" >&5
17153 echo "${ECHO_T}$ac_res" >&6; }
17154 if test `eval echo '${'$as_ac_var'}'` = yes; then
17155 cat >>confdefs.h <<_ACEOF
17156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17162 { echo "$as_me:$LINENO: checking for working mmap" >&5
17163 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17164 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17167 if test "$cross_compiling" = yes; then
17168 ac_cv_func_mmap_fixed_mapped=no
17170 cat >conftest.$ac_ext <<_ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17176 $ac_includes_default
17177 /* malloc might have been renamed as rpl_malloc. */
17180 /* Thanks to Mike Haertel and Jim Avera for this test.
17181 Here is a matrix of mmap possibilities:
17182 mmap private not fixed
17183 mmap private fixed at somewhere currently unmapped
17184 mmap private fixed at somewhere already mapped
17185 mmap shared not fixed
17186 mmap shared fixed at somewhere currently unmapped
17187 mmap shared fixed at somewhere already mapped
17188 For private mappings, we should verify that changes cannot be read()
17189 back from the file, nor mmap's back from the file at a different
17190 address. (There have been systems where private was not correctly
17191 implemented like the infamous i386 svr4.0, and systems where the
17192 VM page cache was not coherent with the file system buffer cache
17193 like early versions of FreeBSD and possibly contemporary NetBSD.)
17194 For shared mappings, we should conversely verify that changes get
17195 propagated back to all the places they're supposed to be.
17197 Grep wants private fixed already mapped.
17198 The main things grep needs to know about mmap are:
17199 * does it exist and is it safe to write into the mmap'd area
17200 * how to use it (BSD variants) */
17203 #include <sys/mman.h>
17205 #if !STDC_HEADERS && !HAVE_STDLIB_H
17209 /* This mess was copied from the GNU getpagesize.h. */
17210 #if !HAVE_GETPAGESIZE
17211 /* Assume that all systems that can run configure have sys/param.h. */
17212 # if !HAVE_SYS_PARAM_H
17213 # define HAVE_SYS_PARAM_H 1
17216 # ifdef _SC_PAGESIZE
17217 # define getpagesize() sysconf(_SC_PAGESIZE)
17218 # else /* no _SC_PAGESIZE */
17219 # if HAVE_SYS_PARAM_H
17220 # include <sys/param.h>
17221 # ifdef EXEC_PAGESIZE
17222 # define getpagesize() EXEC_PAGESIZE
17223 # else /* no EXEC_PAGESIZE */
17225 # define getpagesize() NBPG * CLSIZE
17228 # endif /* no CLSIZE */
17229 # else /* no NBPG */
17231 # define getpagesize() NBPC
17232 # else /* no NBPC */
17234 # define getpagesize() PAGESIZE
17235 # endif /* PAGESIZE */
17236 # endif /* no NBPC */
17237 # endif /* no NBPG */
17238 # endif /* no EXEC_PAGESIZE */
17239 # else /* no HAVE_SYS_PARAM_H */
17240 # define getpagesize() 8192 /* punt totally */
17241 # endif /* no HAVE_SYS_PARAM_H */
17242 # endif /* no _SC_PAGESIZE */
17244 #endif /* no HAVE_GETPAGESIZE */
17249 char *data, *data2, *data3;
17253 pagesize = getpagesize ();
17255 /* First, make a file with some known garbage in it. */
17256 data = (char *) malloc (pagesize);
17259 for (i = 0; i < pagesize; ++i)
17260 *(data + i) = rand ();
17262 fd = creat ("conftest.mmap", 0600);
17265 if (write (fd, data, pagesize) != pagesize)
17269 /* Next, try to mmap the file at a fixed address which already has
17270 something else allocated at it. If we can, also make sure that
17271 we see the same garbage. */
17272 fd = open ("conftest.mmap", O_RDWR);
17275 data2 = (char *) malloc (2 * pagesize);
17278 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17279 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17280 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17282 for (i = 0; i < pagesize; ++i)
17283 if (*(data + i) != *(data2 + i))
17286 /* Finally, make sure that changes to the mapped area do not
17287 percolate back to the file as seen by read(). (This is a bug on
17288 some variants of i386 svr4.0.) */
17289 for (i = 0; i < pagesize; ++i)
17290 *(data2 + i) = *(data2 + i) + 1;
17291 data3 = (char *) malloc (pagesize);
17294 if (read (fd, data3, pagesize) != pagesize)
17296 for (i = 0; i < pagesize; ++i)
17297 if (*(data + i) != *(data3 + i))
17303 rm -f conftest$ac_exeext
17304 if { (ac_try="$ac_link"
17305 case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_link") 2>&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17314 { (case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319 (eval "$ac_try") 2>&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; }; then
17323 ac_cv_func_mmap_fixed_mapped=yes
17325 echo "$as_me: program exited with status $ac_status" >&5
17326 echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17329 ( exit $ac_status )
17330 ac_cv_func_mmap_fixed_mapped=no
17332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17337 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17338 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17339 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17341 cat >>confdefs.h <<\_ACEOF
17342 #define HAVE_MMAP 1
17346 rm -f conftest.mmap
17348 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17349 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17350 if test "${ac_cv_func_mmap_file+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17354 ac_cpp='$CPP $CPPFLAGS'
17355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17359 if test "$cross_compiling" = yes; then
17360 ac_cv_func_mmap_file=no
17362 cat >conftest.$ac_ext <<_ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17370 #include <sys/types.h>
17371 #include <sys/mman.h>
17379 fd = creat ("foo",0777);
17380 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17382 return (fd != (int) MAP_FAILED);
17387 rm -f conftest$ac_exeext
17388 if { (ac_try="$ac_link"
17389 case "(($ac_try" in
17390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17391 *) ac_try_echo=$ac_try;;
17393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17394 (eval "$ac_link") 2>&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17398 { (case "(($ac_try" in
17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400 *) ac_try_echo=$ac_try;;
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403 (eval "$ac_try") 2>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407 ac_cv_func_mmap_file=yes
17409 echo "$as_me: program exited with status $ac_status" >&5
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17413 ( exit $ac_status )
17414 ac_cv_func_mmap_file=no
17416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17421 ac_cpp='$CPP $CPPFLAGS'
17422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17428 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17429 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17430 if test "$ac_cv_func_mmap_file" = yes; then
17432 cat >>confdefs.h <<\_ACEOF
17433 #define HAVE_MMAP_FILE
17440 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17441 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17442 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 if test "$llvm_cv_os_type" = "Interix" ; then
17446 ac_cv_need_dev_zero_for_mmap=yes
17448 ac_cv_need_dev_zero_for_mmap=no
17452 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17453 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17454 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17456 cat >>confdefs.h <<\_ACEOF
17457 #define NEED_DEV_ZERO_FOR_MMAP 1
17462 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17464 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17465 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17467 if test "$ac_cv_func_mmap_file" = "no"
17469 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17470 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17474 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17475 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17477 ac_cpp='$CXXCPP $CPPFLAGS'
17478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17482 cat >conftest.$ac_ext <<_ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h. */
17491 volatile unsigned long val = 1;
17492 __sync_synchronize();
17493 __sync_val_compare_and_swap(&val, 1, 0);
17494 __sync_add_and_fetch(&val, 1);
17495 __sync_sub_and_fetch(&val, 1);
17501 rm -f conftest.$ac_objext conftest$ac_exeext
17502 if { (ac_try="$ac_link"
17503 case "(($ac_try" in
17504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505 *) ac_try_echo=$ac_try;;
17507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17508 (eval "$ac_link") 2>conftest.er1
17510 grep -v '^ *+' conftest.er1 >conftest.err
17512 cat conftest.err >&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); } &&
17515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17516 { (case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_try") 2>&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; } &&
17525 { ac_try='test -s conftest$ac_exeext'
17526 { (case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531 (eval "$ac_try") 2>&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; }; then
17536 { echo "$as_me:$LINENO: result: yes" >&5
17537 echo "${ECHO_T}yes" >&6; }
17539 cat >>confdefs.h <<\_ACEOF
17540 #define LLVM_HAS_ATOMICS 1
17545 echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17549 { echo "$as_me:$LINENO: result: no" >&5
17550 echo "${ECHO_T}no" >&6; }
17552 cat >>confdefs.h <<\_ACEOF
17553 #define LLVM_HAS_ATOMICS 0
17556 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17557 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17561 rm -f core conftest.err conftest.$ac_objext \
17562 conftest$ac_exeext conftest.$ac_ext
17564 ac_cpp='$CPP $CPPFLAGS'
17565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17571 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17572 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17573 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17574 if test "${llvm_cv_linux_mixed+set}" = set; then
17575 echo $ECHO_N "(cached) $ECHO_C" >&6
17578 ac_cpp='$CPP $CPPFLAGS'
17579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17583 cat >conftest.$ac_ext <<_ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17590 error: Not x86-64 even if uname says so!
17601 rm -f conftest.$ac_objext
17602 if { (ac_try="$ac_compile"
17603 case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608 (eval "$ac_compile") 2>conftest.er1
17610 grep -v '^ *+' conftest.er1 >conftest.err
17612 cat conftest.err >&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); } &&
17615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17616 { (case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621 (eval "$ac_try") 2>&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; } &&
17625 { ac_try='test -s conftest.$ac_objext'
17626 { (case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_try") 2>&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; }; then
17635 llvm_cv_linux_mixed=no
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17640 llvm_cv_linux_mixed=yes
17643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17645 ac_cpp='$CPP $CPPFLAGS'
17646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17652 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17653 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17655 if test "$llvm_cv_linux_mixed" = "yes"; then
17656 llvm_cv_target_arch="x86"
17662 for ac_func in __dso_handle
17664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17665 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17668 echo $ECHO_N "(cached) $ECHO_C" >&6
17670 cat >conftest.$ac_ext <<_ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17678 #define $ac_func innocuous_$ac_func
17680 /* System header to define __stub macros and hopefully few prototypes,
17681 which can conflict with char $ac_func (); below.
17682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17683 <limits.h> exists even on freestanding compilers. */
17686 # include <limits.h>
17688 # include <assert.h>
17693 /* Override any GCC internal prototype to avoid an error.
17694 Use char because int might match the return type of a GCC
17695 builtin and then its argument prototype would still apply. */
17700 /* The GNU C library defines this for functions which it implements
17701 to always fail with ENOSYS. Some functions are actually named
17702 something starting with __ and the normal name is an alias. */
17703 #if defined __stub_$ac_func || defined __stub___$ac_func
17710 return $ac_func ();
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (ac_try="$ac_link"
17717 case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_link") 2>conftest.er1
17724 grep -v '^ *+' conftest.er1 >conftest.err
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } &&
17729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17730 { (case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_try") 2>&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; } &&
17739 { ac_try='test -s conftest$ac_exeext'
17740 { (case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_try") 2>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; }; then
17749 eval "$as_ac_var=yes"
17751 echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17754 eval "$as_ac_var=no"
17757 rm -f core conftest.err conftest.$ac_objext \
17758 conftest$ac_exeext conftest.$ac_ext
17760 ac_res=`eval echo '${'$as_ac_var'}'`
17761 { echo "$as_me:$LINENO: result: $ac_res" >&5
17762 echo "${ECHO_T}$ac_res" >&6; }
17763 if test `eval echo '${'$as_ac_var'}'` = yes; then
17764 cat >>confdefs.h <<_ACEOF
17765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17772 SHLIBEXT=$llvm_shlib_ext
17775 if test "${prefix}" = "NONE" ; then
17776 prefix="/usr/local"
17778 eval LLVM_PREFIX="${prefix}";
17779 eval LLVM_BINDIR="${prefix}/bin";
17780 eval LLVM_DATADIR="${prefix}/share/llvm";
17781 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17782 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17783 eval LLVM_INCLUDEDIR="${prefix}/include";
17784 eval LLVM_INFODIR="${prefix}/info";
17785 eval LLVM_MANDIR="${prefix}/man";
17786 LLVM_CONFIGTIME=`date`
17797 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17798 LLVM_CONFIGTIME="(timestamp not enabled)"
17802 cat >>confdefs.h <<_ACEOF
17803 #define LLVM_PREFIX "$LLVM_PREFIX"
17807 cat >>confdefs.h <<_ACEOF
17808 #define LLVM_BINDIR "$LLVM_BINDIR"
17812 cat >>confdefs.h <<_ACEOF
17813 #define LLVM_DATADIR "$LLVM_DATADIR"
17817 cat >>confdefs.h <<_ACEOF
17818 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17822 cat >>confdefs.h <<_ACEOF
17823 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17827 cat >>confdefs.h <<_ACEOF
17828 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17832 cat >>confdefs.h <<_ACEOF
17833 #define LLVM_INFODIR "$LLVM_INFODIR"
17837 cat >>confdefs.h <<_ACEOF
17838 #define LLVM_MANDIR "$LLVM_MANDIR"
17842 cat >>confdefs.h <<_ACEOF
17843 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17847 cat >>confdefs.h <<_ACEOF
17848 #define LLVM_HOST_TRIPLE "$host"
17852 cat >>confdefs.h <<_ACEOF
17853 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17857 if test "$BINDINGS_TO_BUILD" = auto ; then
17858 BINDINGS_TO_BUILD=""
17859 if test "x$OCAMLFIND" != x ; then
17860 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17862 if test "x$GO" != x ; then
17863 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17864 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17868 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17871 binding_prereqs_failed=0
17872 for a_binding in $BINDINGS_TO_BUILD ; do
17873 case "$a_binding" in
17875 if test "x$OCAMLFIND" = x ; then
17876 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17877 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17878 binding_prereqs_failed=1
17881 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17888 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17889 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17890 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17891 binding_prereqs_failed=1
17894 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17898 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17899 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17903 if test "x$with_ocaml_libdir" != xauto ; then
17904 OCAML_LIBDIR=$with_ocaml_libdir
17907 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17908 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17910 # ocaml stdlib is beneath our prefix; use stdlib
17911 OCAML_LIBDIR=$ocaml_stdlib
17914 # ocaml stdlib is outside our prefix; use libdir/ocaml
17915 OCAML_LIBDIR=${prefix}/lib/ocaml
17921 if test "x$GO" = x ; then
17922 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17923 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17924 binding_prereqs_failed=1
17926 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17929 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17930 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17931 binding_prereqs_failed=1
17937 if test "$binding_prereqs_failed" = 1 ; then
17938 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17939 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17940 { (exit 1); exit 1; }; }
17943 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17944 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17945 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
17949 ac_cpp='$CXXCPP $CPPFLAGS'
17950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17954 oldcxxflags="$CXXFLAGS"
17955 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17956 cat >conftest.$ac_ext <<_ACEOF
17959 cat confdefs.h >>conftest.$ac_ext
17960 cat >>conftest.$ac_ext <<_ACEOF
17961 /* end confdefs.h. */
17962 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17971 rm -f conftest.$ac_objext
17972 if { (ac_try="$ac_compile"
17973 case "(($ac_try" in
17974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975 *) ac_try_echo=$ac_try;;
17977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978 (eval "$ac_compile") 2>conftest.er1
17980 grep -v '^ *+' conftest.er1 >conftest.err
17982 cat conftest.err >&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
17985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17986 { (case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_try") 2>&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; } &&
17995 { ac_try='test -s conftest.$ac_objext'
17996 { (case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_try") 2>&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18005 llvm_cv_cxx_visibility_inlines_hidden=yes
18007 echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18010 llvm_cv_cxx_visibility_inlines_hidden=no
18013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18014 CXXFLAGS="$oldcxxflags"
18016 ac_cpp='$CPP $CPPFLAGS'
18017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18023 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18024 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18025 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18026 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18029 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18034 if test "$llvm_cv_link_use_r" = "yes" ; then
18041 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18042 RDYNAMIC="-rdynamic"
18049 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18056 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18058 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18060 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18062 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18064 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18067 ac_config_files="$ac_config_files Makefile.config"
18070 ac_config_files="$ac_config_files llvm.spec"
18073 ac_config_files="$ac_config_files docs/doxygen.cfg"
18076 if test "${clang_src_root}" = ""; then
18077 clang_src_root="$srcdir/tools/clang"
18079 if test -f ${clang_src_root}/README.txt; then
18081 cat >>confdefs.h <<_ACEOF
18082 #define CLANG_LIBDIR_SUFFIX ""
18086 configh="include/clang/Config/config.h"
18087 doxy="docs/doxygen.cfg"
18088 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18090 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18094 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18097 test "x$program_prefix" = "xNONE" && program_prefix=""
18101 ac_config_commands="$ac_config_commands setup"
18103 ac_config_commands="$ac_config_commands Makefile"
18106 ac_config_commands="$ac_config_commands Makefile.common"
18109 ac_config_commands="$ac_config_commands examples/Makefile"
18112 ac_config_commands="$ac_config_commands lib/Makefile"
18115 ac_config_commands="$ac_config_commands test/Makefile"
18118 ac_config_commands="$ac_config_commands test/Makefile.tests"
18121 ac_config_commands="$ac_config_commands unittests/Makefile"
18124 ac_config_commands="$ac_config_commands tools/Makefile"
18127 ac_config_commands="$ac_config_commands utils/Makefile"
18130 ac_config_commands="$ac_config_commands projects/Makefile"
18133 ac_config_commands="$ac_config_commands bindings/Makefile"
18136 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18140 cat >confcache <<\_ACEOF
18141 # This file is a shell script that caches the results of configure
18142 # tests run on this system so they can be shared between configure
18143 # scripts and configure runs, see configure's option --config-cache.
18144 # It is not useful on other systems. If it contains results you don't
18145 # want to keep, you may remove or edit it.
18147 # config.status only pays attention to the cache file if you give it
18148 # the --recheck option to rerun configure.
18150 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18151 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18152 # following values.
18156 # The following way of writing the cache mishandles newlines in values,
18157 # but we know of no workaround that is simple, portable, and efficient.
18158 # So, we kill variables containing newlines.
18159 # Ultrix sh set writes to stderr and can't be redirected directly,
18160 # and sets the high bit in the cache file unless we assign to the vars.
18162 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18163 eval ac_val=\$$ac_var
18167 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18168 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18171 _ | IFS | as_nl) ;; #(
18172 *) $as_unset $ac_var ;;
18178 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18179 *${as_nl}ac_space=\ *)
18180 # `set' does not quote correctly, so add quotes (double-quote
18181 # substitution turns \\\\ into \\, and sed turns \\ into \).
18184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18187 # `set' quotes correctly as required by POSIX, so do not add quotes.
18188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18197 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18199 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18201 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18202 if test -w "$cache_file"; then
18203 test "x$cache_file" != "x/dev/null" &&
18204 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18205 echo "$as_me: updating cache $cache_file" >&6;}
18206 cat confcache >$cache_file
18208 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18209 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18214 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18215 # Let make expand exec_prefix.
18216 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18218 DEFS=-DHAVE_CONFIG_H
18222 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18223 # 1. Remove the extension, and $U if already installed.
18224 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18225 ac_i=`echo "$ac_i" | sed "$ac_script"`
18226 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18227 # will be set to the directory where LIBOBJS objects are built.
18228 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18229 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18231 LIBOBJS=$ac_libobjs
18233 LTLIBOBJS=$ac_ltlibobjs
18237 : ${CONFIG_STATUS=./config.status}
18238 ac_clean_files_save=$ac_clean_files
18239 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18240 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18241 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18242 cat >$CONFIG_STATUS <<_ACEOF
18244 # Generated by $as_me.
18245 # Run this file to recreate the current configuration.
18246 # Compiler output produced by configure, useful for debugging
18247 # configure, is in config.log if it exists.
18250 ac_cs_recheck=false
18252 SHELL=\${CONFIG_SHELL-$SHELL}
18255 cat >>$CONFIG_STATUS <<\_ACEOF
18256 ## --------------------- ##
18257 ## M4sh Initialization. ##
18258 ## --------------------- ##
18260 # Be Bourne compatible
18261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18265 # is contrary to our usage. Disable this feature.
18266 alias -g '${1+"$@"}'='"$@"'
18267 setopt NO_GLOB_SUBST
18269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18271 BIN_SH=xpg4; export BIN_SH # for Tru64
18272 DUALCASE=1; export DUALCASE # for MKS sh
18276 # Avoid depending upon Character Ranges.
18277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18280 as_cr_digits='0123456789'
18281 as_cr_alnum=$as_cr_Letters$as_cr_digits
18283 # The user is always right.
18284 if test "${PATH_SEPARATOR+set}" != set; then
18285 echo "#! /bin/sh" >conf$$.sh
18286 echo "exit 0" >>conf$$.sh
18288 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18296 # Support unset when possible.
18297 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18305 # We need space, tab and new line, in precisely that order. Quoting is
18306 # there to prevent editors from complaining about space-tab.
18307 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18308 # splitting by setting IFS to empty value.)
18313 # Find who we are. Look in the path if we contain no directory separator.
18315 *[\\/]* ) as_myself=$0 ;;
18316 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18317 for as_dir in $PATH
18320 test -z "$as_dir" && as_dir=.
18321 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18327 # We did not find ourselves, most probably we were run as `sh COMMAND'
18328 # in which case we are not to be found in the path.
18329 if test "x$as_myself" = x; then
18332 if test ! -f "$as_myself"; then
18333 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18334 { (exit 1); exit 1; }
18337 # Work around bugs in pre-3.0 UWIN ksh.
18338 for as_var in ENV MAIL MAILPATH
18339 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18347 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18348 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18349 LC_TELEPHONE LC_TIME
18351 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18352 eval $as_var=C; export $as_var
18354 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18358 # Required to use basename.
18359 if expr a : '\(a\)' >/dev/null 2>&1 &&
18360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18366 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18367 as_basename=basename
18373 # Name of the executable.
18374 as_me=`$as_basename -- "$0" ||
18375 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18376 X"$0" : 'X\(//\)$' \| \
18377 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18379 sed '/^.*\/\([^/][^/]*\)\/*$/{
18398 as_lineno_1=$LINENO
18399 as_lineno_2=$LINENO
18400 test "x$as_lineno_1" != "x$as_lineno_2" &&
18401 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18403 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18404 # uniformly replaced by the line number. The first 'sed' inserts a
18405 # line-number line after each line using $LINENO; the second 'sed'
18406 # does the real work. The second script uses 'N' to pair each
18407 # line-number line with the line containing $LINENO, and appends
18408 # trailing '-' during substitution so that $LINENO is not a special
18409 # case at line end.
18410 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18411 # scripts with optimization help from Paolo Bonzini. Blame Lee
18412 # E. McMahon (1931-1989) for sed's syntax. :-)
18424 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18427 ' >$as_me.lineno &&
18428 chmod +x "$as_me.lineno" ||
18429 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18430 { (exit 1); exit 1; }; }
18432 # Don't try to exec as it changes $[0], causing all sort of problems
18433 # (the dirname of $[0] is not the place where we might find the
18434 # original and so on. Autoconf is especially sensitive to this).
18435 . "./$as_me.lineno"
18436 # Exit status is that of the last command.
18441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18447 ECHO_C= ECHO_N= ECHO_T=
18448 case `echo -n x` in
18450 case `echo 'x\c'` in
18451 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18458 if expr a : '\(a\)' >/dev/null 2>&1 &&
18459 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18465 rm -f conf$$ conf$$.exe conf$$.file
18466 if test -d conf$$.dir; then
18467 rm -f conf$$.dir/conf$$.file
18473 if ln -s conf$$.file conf$$ 2>/dev/null; then
18475 # ... but there are two gotchas:
18476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18478 # In both cases, we have to default to `cp -p'.
18479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18481 elif ln conf$$.file conf$$ 2>/dev/null; then
18486 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18487 rmdir conf$$.dir 2>/dev/null
18489 if mkdir -p . 2>/dev/null; then
18492 test -d ./-p && rmdir ./-p
18496 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18497 # systems may use methods other than mode bits to determine executability.
18498 cat >conf$$.file <<_ASEOF
18502 chmod +x conf$$.file
18503 if test -x conf$$.file >/dev/null 2>&1; then
18504 as_executable_p="test -x"
18510 # Sed expression to map a string onto a valid CPP name.
18511 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18513 # Sed expression to map a string onto a valid variable name.
18514 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18519 # Save the log message, to keep $[0] and so on meaningful, and to
18520 # report actual input values of CONFIG_FILES etc. instead of their
18521 # values after options handling.
18523 This file was extended by LLVM $as_me 3.7.0svn, which was
18524 generated by GNU Autoconf 2.60. Invocation command line was
18526 CONFIG_FILES = $CONFIG_FILES
18527 CONFIG_HEADERS = $CONFIG_HEADERS
18528 CONFIG_LINKS = $CONFIG_LINKS
18529 CONFIG_COMMANDS = $CONFIG_COMMANDS
18532 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18537 cat >>$CONFIG_STATUS <<_ACEOF
18538 # Files that config.status was made for.
18539 config_files="$ac_config_files"
18540 config_headers="$ac_config_headers"
18541 config_commands="$ac_config_commands"
18545 cat >>$CONFIG_STATUS <<\_ACEOF
18547 \`$as_me' instantiates files from templates according to the
18548 current configuration.
18550 Usage: $0 [OPTIONS] [FILE]...
18552 -h, --help print this help, then exit
18553 -V, --version print version number, then exit
18554 -q, --quiet do not print progress messages
18555 -d, --debug don't remove temporary files
18556 --recheck update $as_me by reconfiguring in the same conditions
18557 --file=FILE[:TEMPLATE]
18558 instantiate the configuration file FILE
18559 --header=FILE[:TEMPLATE]
18560 instantiate the configuration header FILE
18562 Configuration files:
18565 Configuration headers:
18568 Configuration commands:
18571 Report bugs to <bug-autoconf@gnu.org>."
18574 cat >>$CONFIG_STATUS <<_ACEOF
18576 LLVM config.status 3.7.0svn
18577 configured by $0, generated by GNU Autoconf 2.60,
18578 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18580 Copyright (C) 2006 Free Software Foundation, Inc.
18581 This config.status script is free software; the Free Software Foundation
18582 gives unlimited permission to copy, distribute and modify it."
18589 cat >>$CONFIG_STATUS <<\_ACEOF
18590 # If no file are specified by the user, then we need to provide default
18591 # value. By we need to know if files were specified by the user.
18597 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18598 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18609 # Handling of the options.
18610 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18612 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18613 echo "$ac_cs_version"; exit ;;
18614 --debug | --debu | --deb | --de | --d | -d )
18616 --file | --fil | --fi | --f )
18618 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18619 ac_need_defaults=false;;
18620 --header | --heade | --head | --hea )
18622 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18623 ac_need_defaults=false;;
18625 # Conflict between --help and --header
18626 { echo "$as_me: error: ambiguous option: $1
18627 Try \`$0 --help' for more information." >&2
18628 { (exit 1); exit 1; }; };;
18629 --help | --hel | -h )
18630 echo "$ac_cs_usage"; exit ;;
18631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18632 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18635 # This is an error.
18636 -*) { echo "$as_me: error: unrecognized option: $1
18637 Try \`$0 --help' for more information." >&2
18638 { (exit 1); exit 1; }; } ;;
18640 *) ac_config_targets="$ac_config_targets $1"
18641 ac_need_defaults=false ;;
18647 ac_configure_extra_args=
18649 if $ac_cs_silent; then
18651 ac_configure_extra_args="$ac_configure_extra_args --silent"
18655 cat >>$CONFIG_STATUS <<_ACEOF
18656 if \$ac_cs_recheck; then
18657 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18658 CONFIG_SHELL=$SHELL
18659 export CONFIG_SHELL
18660 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18664 cat >>$CONFIG_STATUS <<\_ACEOF
18668 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18669 ## Running $as_me. ##
18675 cat >>$CONFIG_STATUS <<_ACEOF
18679 llvm_src="${srcdir}"
18683 cat >>$CONFIG_STATUS <<\_ACEOF
18685 # Handling of arguments.
18686 for ac_config_target in $ac_config_targets
18688 case $ac_config_target in
18689 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18690 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18691 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18692 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18693 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18694 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18695 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18696 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18697 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18698 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18699 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18700 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18701 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18702 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18703 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18704 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18705 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18706 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18707 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18708 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18709 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18710 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18711 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18712 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18713 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18714 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18716 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18717 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18718 { (exit 1); exit 1; }; };;
18723 # If the user did not use the arguments to specify the items to instantiate,
18724 # then the envvar interface is used. Set only those that are not.
18725 # We use the long form for the default assignment because of an extremely
18726 # bizarre bug on SunOS 4.1.3.
18727 if $ac_need_defaults; then
18728 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18729 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18730 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18733 # Have a temporary directory for convenience. Make it in the build tree
18734 # simply because there is no reason against having it here, and in addition,
18735 # creating and moving files from /tmp can sometimes cause problems.
18736 # Hook for its removal unless debugging.
18737 # Note that there is a small window in which the directory will not be cleaned:
18738 # after its creation but before its name has been assigned to `$tmp'.
18742 trap 'exit_status=$?
18743 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18745 trap '{ (exit 1); exit 1; }' 1 2 13 15
18747 # Create a (secure) tmp directory for tmp files.
18750 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18751 test -n "$tmp" && test -d "$tmp"
18754 tmp=./conf$$-$RANDOM
18755 (umask 077 && mkdir "$tmp")
18758 echo "$me: cannot create a temporary directory in ." >&2
18759 { (exit 1); exit 1; }
18763 # Set up the sed scripts for CONFIG_FILES section.
18766 # No need to generate the scripts if there are no CONFIG_FILES.
18767 # This happens for instance when ./config.status config.h
18768 if test -n "$CONFIG_FILES"; then
18775 for ac_last_try in false false false false false :; do
18776 cat >conf$$subs.sed <<_ACEOF
18777 SHELL!$SHELL$ac_delim
18778 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18779 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18780 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18781 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18782 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18783 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18784 exec_prefix!$exec_prefix$ac_delim
18785 prefix!$prefix$ac_delim
18786 program_transform_name!$program_transform_name$ac_delim
18787 bindir!$bindir$ac_delim
18788 sbindir!$sbindir$ac_delim
18789 libexecdir!$libexecdir$ac_delim
18790 datarootdir!$datarootdir$ac_delim
18791 datadir!$datadir$ac_delim
18792 sysconfdir!$sysconfdir$ac_delim
18793 sharedstatedir!$sharedstatedir$ac_delim
18794 localstatedir!$localstatedir$ac_delim
18795 includedir!$includedir$ac_delim
18796 oldincludedir!$oldincludedir$ac_delim
18797 docdir!$docdir$ac_delim
18798 infodir!$infodir$ac_delim
18799 htmldir!$htmldir$ac_delim
18800 dvidir!$dvidir$ac_delim
18801 pdfdir!$pdfdir$ac_delim
18802 psdir!$psdir$ac_delim
18803 libdir!$libdir$ac_delim
18804 localedir!$localedir$ac_delim
18805 mandir!$mandir$ac_delim
18806 DEFS!$DEFS$ac_delim
18807 ECHO_C!$ECHO_C$ac_delim
18808 ECHO_N!$ECHO_N$ac_delim
18809 ECHO_T!$ECHO_T$ac_delim
18810 LIBS!$LIBS$ac_delim
18811 build_alias!$build_alias$ac_delim
18812 host_alias!$host_alias$ac_delim
18813 target_alias!$target_alias$ac_delim
18814 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18815 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18816 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18817 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18818 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18820 CFLAGS!$CFLAGS$ac_delim
18821 LDFLAGS!$LDFLAGS$ac_delim
18822 CPPFLAGS!$CPPFLAGS$ac_delim
18823 ac_ct_CC!$ac_ct_CC$ac_delim
18824 EXEEXT!$EXEEXT$ac_delim
18825 OBJEXT!$OBJEXT$ac_delim
18827 CXXFLAGS!$CXXFLAGS$ac_delim
18828 ac_ct_CXX!$ac_ct_CXX$ac_delim
18830 subdirs!$subdirs$ac_delim
18831 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18832 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18833 build!$build$ac_delim
18834 build_cpu!$build_cpu$ac_delim
18835 build_vendor!$build_vendor$ac_delim
18836 build_os!$build_os$ac_delim
18837 host!$host$ac_delim
18838 host_cpu!$host_cpu$ac_delim
18839 host_vendor!$host_vendor$ac_delim
18840 host_os!$host_os$ac_delim
18841 target!$target$ac_delim
18842 target_cpu!$target_cpu$ac_delim
18843 target_vendor!$target_vendor$ac_delim
18844 target_os!$target_os$ac_delim
18846 HOST_OS!$HOST_OS$ac_delim
18847 TARGET_OS!$TARGET_OS$ac_delim
18848 LINKALL!$LINKALL$ac_delim
18849 NOLINKALL!$NOLINKALL$ac_delim
18850 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18851 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18852 ARCH!$ARCH$ac_delim
18853 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18854 HOST_ARCH!$HOST_ARCH$ac_delim
18855 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18856 BUILD_CC!$BUILD_CC$ac_delim
18857 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18858 BUILD_CXX!$BUILD_CXX$ac_delim
18859 CVSBUILD!$CVSBUILD$ac_delim
18860 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18861 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18862 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18863 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18864 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18865 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18866 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18867 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18868 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18869 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18870 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18871 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18872 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18873 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18876 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18878 elif $ac_last_try; then
18879 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18880 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18881 { (exit 1); exit 1; }; }
18883 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18887 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18888 if test -n "$ac_eof"; then
18889 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18890 ac_eof=`expr $ac_eof + 1`
18893 cat >>$CONFIG_STATUS <<_ACEOF
18894 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18895 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18898 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18899 s/^/s,@/; s/!/@,|#_!!_#|/
18902 s/'"$ac_delim"'$/,g/; t
18904 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18905 ' >>$CONFIG_STATUS <conf$$subs.sed
18906 rm -f conf$$subs.sed
18907 cat >>$CONFIG_STATUS <<_ACEOF
18913 for ac_last_try in false false false false false :; do
18914 cat >conf$$subs.sed <<_ACEOF
18915 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18916 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18918 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18919 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18920 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18921 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18922 enable_searchengine!$enable_searchengine$ac_delim
18923 enable_external_search!$enable_external_search$ac_delim
18924 enable_server_based_search!$enable_server_based_search$ac_delim
18925 searchengine_url!$searchengine_url$ac_delim
18926 extra_search_mappings!$extra_search_mappings$ac_delim
18927 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18928 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18929 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18930 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18931 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18932 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18933 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18934 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18935 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18936 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18937 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18938 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18939 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18940 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18941 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18942 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18943 ENABLE_PIC!$ENABLE_PIC$ac_delim
18944 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18945 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18946 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18947 ALL_TARGETS!$ALL_TARGETS$ac_delim
18948 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18949 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18950 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18951 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18952 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18953 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18954 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18955 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18956 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18957 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18958 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18959 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18960 ifGNUmake!$ifGNUmake$ac_delim
18961 LN_S!$LN_S$ac_delim
18965 DATE!$DATE$ac_delim
18966 FIND!$FIND$ac_delim
18967 GREP!$GREP$ac_delim
18968 MKDIR!$MKDIR$ac_delim
18970 RANLIB!$RANLIB$ac_delim
18975 BINPWD!$BINPWD$ac_delim
18977 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18978 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18979 INSTALL_DATA!$INSTALL_DATA$ac_delim
18980 BZIP2!$BZIP2$ac_delim
18982 DOXYGEN!$DOXYGEN$ac_delim
18983 GROFF!$GROFF$ac_delim
18984 GZIPBIN!$GZIPBIN$ac_delim
18985 PDFROFF!$PDFROFF$ac_delim
18988 OCAMLFIND!$OCAMLFIND$ac_delim
18990 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18991 EGREP!$EGREP$ac_delim
18992 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18993 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
18994 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
18995 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18996 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
18997 NO_COMMENT!$NO_COMMENT$ac_delim
18998 PYTHON!$PYTHON$ac_delim
18999 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19000 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19001 USE_OPROFILE!$USE_OPROFILE$ac_delim
19002 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19003 XML2CONFIG!$XML2CONFIG$ac_delim
19004 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19005 LIBXML2_INC!$LIBXML2_INC$ac_delim
19006 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19007 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19008 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19009 MMAP_FILE!$MMAP_FILE$ac_delim
19010 SHLIBEXT!$SHLIBEXT$ac_delim
19011 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19014 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19016 elif $ac_last_try; then
19017 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19018 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19019 { (exit 1); exit 1; }; }
19021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19025 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19026 if test -n "$ac_eof"; then
19027 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19028 ac_eof=`expr $ac_eof + 1`
19031 cat >>$CONFIG_STATUS <<_ACEOF
19032 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19033 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19036 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19037 s/^/s,@/; s/!/@,|#_!!_#|/
19040 s/'"$ac_delim"'$/,g/; t
19042 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19043 ' >>$CONFIG_STATUS <conf$$subs.sed
19044 rm -f conf$$subs.sed
19045 cat >>$CONFIG_STATUS <<_ACEOF
19051 for ac_last_try in false false false false false :; do
19052 cat >conf$$subs.sed <<_ACEOF
19053 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19054 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19055 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19056 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19057 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19058 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19059 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19060 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19061 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19062 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19063 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19064 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19065 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19066 RPATH!$RPATH$ac_delim
19067 RDYNAMIC!$RDYNAMIC$ac_delim
19068 program_prefix!$program_prefix$ac_delim
19069 LIBOBJS!$LIBOBJS$ac_delim
19070 LTLIBOBJS!$LTLIBOBJS$ac_delim
19073 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19075 elif $ac_last_try; then
19076 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19077 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19078 { (exit 1); exit 1; }; }
19080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19084 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19085 if test -n "$ac_eof"; then
19086 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19087 ac_eof=`expr $ac_eof + 1`
19090 cat >>$CONFIG_STATUS <<_ACEOF
19091 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19095 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19096 s/^/s,@/; s/!/@,|#_!!_#|/
19099 s/'"$ac_delim"'$/,g/; t
19101 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19102 ' >>$CONFIG_STATUS <conf$$subs.sed
19103 rm -f conf$$subs.sed
19104 cat >>$CONFIG_STATUS <<_ACEOF
19111 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19112 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19113 # trailing colons and then remove the whole line if VPATH becomes empty
19114 # (actually we leave an empty line to preserve line numbers).
19115 if test "x$srcdir" = x.; then
19116 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19117 s/:*\$(srcdir):*/:/
19118 s/:*\${srcdir}:*/:/
19120 s/^\([^=]*=[ ]*\):*/\1/
19126 cat >>$CONFIG_STATUS <<\_ACEOF
19127 fi # test -n "$CONFIG_FILES"
19130 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19133 :[FHLC]) ac_mode=$ac_tag; continue;;
19135 case $ac_mode$ac_tag in
19137 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19138 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19139 { (exit 1); exit 1; }; };;
19140 :[FH]-) ac_tag=-:-;;
19141 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19158 -) ac_f="$tmp/stdin";;
19159 *) # Look for the file first in the build tree, then in the source tree
19160 # (if the path is not absolute). The absolute path cannot be DOS-style,
19161 # because $ac_f cannot contain `:'.
19165 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19167 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19168 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19169 { (exit 1); exit 1; }; };;
19171 ac_file_inputs="$ac_file_inputs $ac_f"
19174 # Let's still pretend it is `configure' which instantiates (i.e., don't
19175 # use $as_me), people would be surprised to read:
19176 # /* config.h. Generated by config.status. */
19177 configure_input="Generated from "`IFS=:
19178 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19179 if test x"$ac_file" != x-; then
19180 configure_input="$ac_file. $configure_input"
19181 { echo "$as_me:$LINENO: creating $ac_file" >&5
19182 echo "$as_me: creating $ac_file" >&6;}
19186 *:-:* | *:-) cat >"$tmp/stdin";;
19191 ac_dir=`$as_dirname -- "$ac_file" ||
19192 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19193 X"$ac_file" : 'X\(//\)[^/]' \| \
19194 X"$ac_file" : 'X\(//\)$' \| \
19195 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19201 /^X\(\/\/\)[^/].*/{
19216 -*) as_dir=./$as_dir;;
19218 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19222 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19223 *) as_qdir=$as_dir;;
19225 as_dirs="'$as_qdir' $as_dirs"
19226 as_dir=`$as_dirname -- "$as_dir" ||
19227 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19228 X"$as_dir" : 'X\(//\)[^/]' \| \
19229 X"$as_dir" : 'X\(//\)$' \| \
19230 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19236 /^X\(\/\/\)[^/].*/{
19249 test -d "$as_dir" && break
19251 test -z "$as_dirs" || eval "mkdir $as_dirs"
19252 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19253 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19254 { (exit 1); exit 1; }; }; }
19258 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19260 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19261 # A ".." for each directory in $ac_dir_suffix.
19262 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19263 case $ac_top_builddir_sub in
19264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19268 ac_abs_top_builddir=$ac_pwd
19269 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19270 # for backward compatibility:
19271 ac_top_builddir=$ac_top_build_prefix
19274 .) # We are building in place.
19276 ac_top_srcdir=$ac_top_builddir_sub
19277 ac_abs_top_srcdir=$ac_pwd ;;
19278 [\\/]* | ?:[\\/]* ) # Absolute name.
19279 ac_srcdir=$srcdir$ac_dir_suffix;
19280 ac_top_srcdir=$srcdir
19281 ac_abs_top_srcdir=$srcdir ;;
19282 *) # Relative name.
19283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19284 ac_top_srcdir=$ac_top_build_prefix$srcdir
19285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19287 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19298 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19302 cat >>$CONFIG_STATUS <<\_ACEOF
19303 # If the template does not know about datarootdir, expand it.
19304 # FIXME: This hack should be removed a few years after 2.60.
19305 ac_datarootdir_hack=; ac_datarootdir_seen=
19307 case `sed -n '/datarootdir/ {
19316 ' $ac_file_inputs` in
19317 *datarootdir*) ac_datarootdir_seen=yes;;
19318 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19319 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19320 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19322 cat >>$CONFIG_STATUS <<_ACEOF
19323 ac_datarootdir_hack='
19324 s&@datadir@&$datadir&g
19325 s&@docdir@&$docdir&g
19326 s&@infodir@&$infodir&g
19327 s&@localedir@&$localedir&g
19328 s&@mandir@&$mandir&g
19329 s&\\\${datarootdir}&$datarootdir&g' ;;
19333 # Neutralize VPATH when `$srcdir' = `.'.
19334 # Shell code in configure.ac might set extrasub.
19335 # FIXME: do we really want to maintain this feature?
19336 cat >>$CONFIG_STATUS <<_ACEOF
19340 cat >>$CONFIG_STATUS <<\_ACEOF
19342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19343 s&@configure_input@&$configure_input&;t t
19344 s&@top_builddir@&$ac_top_builddir_sub&;t t
19345 s&@srcdir@&$ac_srcdir&;t t
19346 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19347 s&@top_srcdir@&$ac_top_srcdir&;t t
19348 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19349 s&@builddir@&$ac_builddir&;t t
19350 s&@abs_builddir@&$ac_abs_builddir&;t t
19351 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19352 s&@INSTALL@&$ac_INSTALL&;t t
19353 $ac_datarootdir_hack
19354 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19356 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19357 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19358 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19359 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19360 which seems to be undefined. Please make sure it is defined." >&5
19361 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19362 which seems to be undefined. Please make sure it is defined." >&2;}
19366 -) cat "$tmp/out"; rm -f "$tmp/out";;
19367 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19376 # Transform confdefs.h into a sed script `conftest.defines', that
19377 # substitutes the proper values into config.h.in to produce config.h.
19378 rm -f conftest.defines conftest.tail
19379 # First, append a space to every undef/define line, to ease matching.
19380 echo 's/$/ /' >conftest.defines
19381 # Then, protect against being on the right side of a sed subst, or in
19382 # an unquoted here document, in config.status. If some macros were
19383 # called several times there might be several #defines for the same
19384 # symbol, which is useless. But do not sort them, since the last
19385 # AC_DEFINE must be honored.
19386 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19387 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19388 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19389 # PARAMS is the parameter list in the macro definition--in most cases, it's
19390 # just an empty string.
19391 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19392 ac_dB='\\)[ (].*,\\1define\\2'
19400 s/^[ ]*#[ ]*define[ ][ ]*//
19405 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19406 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19407 ' >>conftest.defines
19409 # Remove the space that was appended to ease matching.
19410 # Then replace #undef with comments. This is necessary, for
19411 # example, in the case of _POSIX_SOURCE, which is predefined and required
19412 # on some systems where configure will not decide to define it.
19413 # (The regexp can be short, since the line contains either #define or #undef.)
19415 s,^[ #]*u.*,/* & */,' >>conftest.defines
19417 # Break up conftest.defines:
19418 ac_max_sed_lines=50
19420 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19421 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19422 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19424 ac_in='$ac_file_inputs'
19425 ac_out='"$tmp/out1"'
19426 ac_nxt='"$tmp/out2"'
19430 # Write a here document:
19431 cat >>$CONFIG_STATUS <<_ACEOF
19432 # First, check the format of the line:
19433 cat >"\$tmp/defines.sed" <<\\CEOF
19434 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19435 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19439 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19441 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19442 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19443 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19444 grep . conftest.tail >/dev/null || break
19445 rm -f conftest.defines
19446 mv conftest.tail conftest.defines
19448 rm -f conftest.defines conftest.tail
19450 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19451 cat >>$CONFIG_STATUS <<\_ACEOF
19452 if test x"$ac_file" != x-; then
19453 echo "/* $configure_input */" >"$tmp/config.h"
19454 cat "$ac_result" >>"$tmp/config.h"
19455 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19456 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19457 echo "$as_me: $ac_file is unchanged" >&6;}
19460 mv "$tmp/config.h" $ac_file
19463 echo "/* $configure_input */"
19469 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19470 echo "$as_me: executing $ac_file commands" >&6;}
19475 case $ac_file$ac_mode in
19476 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19477 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19478 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19479 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19480 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19481 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19482 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19483 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19484 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19485 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19486 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19487 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19488 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19489 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19490 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19491 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19492 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19493 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19494 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19495 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19496 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19497 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19498 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19499 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19505 { (exit 0); exit 0; }
19507 chmod +x $CONFIG_STATUS
19508 ac_clean_files=$ac_clean_files_save
19511 # configure is writing to config.log, and then calls config.status.
19512 # config.status does its own redirection, appending to config.log.
19513 # Unfortunately, on DOS this fails, as config.log is still kept open
19514 # by configure, so config.status won't be able to write to it; its
19515 # output is simply discarded. So we exec the FD to /dev/null,
19516 # effectively closing config.log, so it can be properly (re)opened and
19517 # appended to by config.status. When coming back to configure, we
19518 # need to make the FD available again.
19519 if test "$no_create" != yes; then
19521 ac_config_status_args=
19522 test "$silent" = yes &&
19523 ac_config_status_args="$ac_config_status_args --quiet"
19525 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19527 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19528 # would make configure fail if this is the last instruction.
19529 $ac_cs_success || { (exit 1); exit 1; }
19533 # CONFIG_SUBDIRS section.
19535 if test "$no_recursion" != yes; then
19537 # Remove --cache-file and --srcdir arguments so they do not pile up.
19538 ac_sub_configure_args=
19540 eval "set x $ac_configure_args"
19544 if test -n "$ac_prev"; then
19549 -cache-file | --cache-file | --cache-fil | --cache-fi \
19550 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19551 ac_prev=cache_file ;;
19552 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19553 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19556 --config-cache | -C)
19558 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19560 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19562 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19564 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19568 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19570 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19574 # Always prepend --prefix to ensure using the same prefix
19575 # in subdir configurations.
19576 ac_arg="--prefix=$prefix"
19578 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19580 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19583 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19585 # Do not complain, so a configure script can configure whichever
19586 # parts of a large source tree are present.
19587 test -d "$srcdir/$ac_dir" || continue
19589 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19590 echo "$as_me:$LINENO: $ac_msg" >&5
19594 -*) as_dir=./$as_dir;;
19596 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19600 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19601 *) as_qdir=$as_dir;;
19603 as_dirs="'$as_qdir' $as_dirs"
19604 as_dir=`$as_dirname -- "$as_dir" ||
19605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19606 X"$as_dir" : 'X\(//\)[^/]' \| \
19607 X"$as_dir" : 'X\(//\)$' \| \
19608 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19614 /^X\(\/\/\)[^/].*/{
19627 test -d "$as_dir" && break
19629 test -z "$as_dirs" || eval "mkdir $as_dirs"
19630 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19631 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19632 { (exit 1); exit 1; }; }; }
19636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19638 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19639 # A ".." for each directory in $ac_dir_suffix.
19640 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19641 case $ac_top_builddir_sub in
19642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19646 ac_abs_top_builddir=$ac_pwd
19647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19648 # for backward compatibility:
19649 ac_top_builddir=$ac_top_build_prefix
19652 .) # We are building in place.
19654 ac_top_srcdir=$ac_top_builddir_sub
19655 ac_abs_top_srcdir=$ac_pwd ;;
19656 [\\/]* | ?:[\\/]* ) # Absolute name.
19657 ac_srcdir=$srcdir$ac_dir_suffix;
19658 ac_top_srcdir=$srcdir
19659 ac_abs_top_srcdir=$srcdir ;;
19660 *) # Relative name.
19661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19662 ac_top_srcdir=$ac_top_build_prefix$srcdir
19663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19670 # Check for guested configure; otherwise get Cygnus style configure.
19671 if test -f "$ac_srcdir/configure.gnu"; then
19672 ac_sub_configure=$ac_srcdir/configure.gnu
19673 elif test -f "$ac_srcdir/configure"; then
19674 ac_sub_configure=$ac_srcdir/configure
19675 elif test -f "$ac_srcdir/configure.in"; then
19676 # This should be Cygnus configure.
19677 ac_sub_configure=$ac_aux_dir/configure
19679 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19680 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19684 # The recursion is here.
19685 if test -n "$ac_sub_configure"; then
19686 # Make the cache file name correct relative to the subdirectory.
19687 case $cache_file in
19688 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19689 *) # Relative name.
19690 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19693 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19694 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19695 # The eval makes quoting arguments work.
19696 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19697 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19698 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19699 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19700 { (exit 1); exit 1; }; }