2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
693 ENABLE_CLANG_STATIC_ANALYZER
698 ENABLE_EXPENSIVE_CHECKS
700 ENABLE_ABI_BREAKING_CHECKS
710 enable_external_search
711 enable_server_based_search
713 extra_search_mappings
715 llvm_doxygen_generate_qhp
716 llvm_doxygen_qch_filename
717 llvm_doxygen_qhp_namespace
718 llvm_doxygen_qhelpgenerator_path
719 llvm_doxygen_qhp_cust_filter_name
720 llvm_doxygen_qhp_cust_filter_attrs
721 clang_doxygen_generate_qhp
722 clang_doxygen_qch_filename
723 clang_doxygen_qhp_namespace
724 clang_doxygen_qhelpgenerator_path
725 clang_doxygen_qhp_cust_filter_name
726 clang_doxygen_qhp_cust_filter_attrs
737 LLVM_ENUM_ASM_PRINTERS
738 LLVM_ENUM_ASM_PARSERS
739 LLVM_ENUM_DISASSEMBLERS
777 HAVE_LINK_VERSION_SCRIPT
780 NO_MISSING_FIELD_INITIALIZERS
781 COVERED_SWITCH_DEFAULT
782 NO_MAYBE_UNINITIALIZED
811 ENABLE_VISIBILITY_INLINES_HIDDEN
818 ac_precious_vars='build_alias
829 ac_subdirs_all='projects/test-suite
832 projects/llvm-poolalloc
836 # Initialize some variables set by options.
838 ac_init_version=false
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
848 program_transform_name=s,x,x,
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
894 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 # Accept the important Cygnus configure options, so we can diagnose typos.
900 case $ac_dashdash$ac_option in
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
922 cache_file=config.cache ;;
924 -datadir | --datadir | --datadi | --datad)
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
936 -disable-* | --disable-*)
937 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941 { (exit 1); exit 1; }; }
942 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943 eval enable_$ac_feature=no ;;
945 -docdir | --docdir | --docdi | --doc | --do)
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 -enable-* | --enable-*)
956 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960 { (exit 1); exit 1; }; }
961 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962 eval enable_$ac_feature=\$ac_optarg ;;
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
977 -help | --help | --hel | --he | -h)
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 htmldir=$ac_optarg ;;
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1007 -libdir | --libdir | --libdi | --libd)
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1098 -psdir | --psdir | --psdi | --psd | --ps)
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 sbindir=$ac_optarg ;;
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 sharedstatedir=$ac_optarg ;;
1124 -site | --site | --sit)
1126 -site=* | --site=* | --sit=*)
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1153 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid package name: $ac_package" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_package=`echo $ac_package| sed 's/-/_/g'`
1159 eval with_$ac_package=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid package name: $ac_package" >&2
1166 { (exit 1); exit 1; }; }
1167 ac_package=`echo $ac_package | sed 's/-/_/g'`
1168 eval with_$ac_package=no ;;
1171 # Obsolete; use --with-x.
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1188 -*) { echo "$as_me: error: unrecognized option: $ac_option
1189 Try \`$0 --help' for more information." >&2
1190 { (exit 1); exit 1; }; }
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1197 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1198 { (exit 1); exit 1; }; }
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1203 # FIXME: should be removed in autoconf 3.0.
1204 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 { echo "$as_me: error: missing argument to $ac_option" >&2
1216 { (exit 1); exit 1; }; }
1219 # Be sure to have absolute directory names.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1225 eval ac_val=\$$ac_var
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1231 { (exit 1); exit 1; }; }
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 { echo "$as_me: error: Working directory cannot be determined" >&2
1262 { (exit 1); exit 1; }; }
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 { echo "$as_me: error: pwd does not report name of working directory" >&2
1265 { (exit 1); exit 1; }; }
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$0" ||
1273 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$0" : 'X\(//\)[^/]' \| \
1275 X"$0" : 'X\(//\)$' \| \
1276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1300 ac_srcdir_defaulted=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1305 { (exit 1); exit 1; }; }
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1310 { (exit 1); exit 1; }; }
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 # Report the --help message.
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1336 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1343 Defaults for the options are specified in brackets.
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1367 For better control, use the options below.
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 --target=TARGET configure for building compilers for TARGET [HOST]
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-polly Use polly if available (default is YES)
1410 --enable-libcpp Use libc++ if available (default is NO)
1411 --enable-compiler-version-checks
1412 Check the version of the host compiler (default is
1414 --enable-cxx1y Use c++1y if available (default is NO)
1415 --enable-split-dwarf Use split-dwarf if available (default is NO)
1416 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1417 --enable-clang-plugin-support
1418 Enable plugin support in clang (default is YES)
1419 --enable-clang-static-analyzer
1420 Enable building of clang Static Analyzer (default is
1422 --enable-optimized Compile with optimizations enabled (default is NO)
1423 --enable-profiling Compile with profiling enabled (default is NO)
1424 --enable-assertions Compile with assertion checks enabled (default is
1426 --enable-werror Compile with -Werror enabled (default is NO)
1427 --enable-expensive-checks
1428 Compile with expensive debug checks enabled (default
1430 --enable-abi-breaking-checks
1431 Compile with abi-breaking asserts support (default
1433 --enable-debug-runtime Build runtime libs with debug symbols (default is
1435 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1436 optimization is on and YES if it's off)
1437 --enable-keep-symbols Do not strip installed executables)
1438 --enable-jit Enable Just In Time Compiling (default is YES)
1439 --enable-docs Build documents (default is YES)
1440 --enable-doxygen Build doxygen documentation (default is NO)
1441 --enable-doxygen-search Enable doxygen search support (default is NO)
1442 --enable-doxygen-external-search
1443 Enable doxygen exteranl search (default is NO)
1444 --enable-doxygen-qt-help
1445 Build Qt help files (default is NO)
1446 --enable-threads Use threads if available (default is YES)
1447 --enable-pthreads Use pthreads if available (default is YES)
1448 --enable-zlib Use zlib for compression/decompression if available
1450 --enable-pic Build LLVM with Position Independent Code (default
1452 --enable-shared Build a shared library and link tools against it
1454 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1455 Win32 DLL (default is NO)
1456 --enable-timestamps Enable embedding timestamp information in build
1458 --enable-backtraces Enable embedding backtraces on crash (default is
1460 --enable-crash-overrides
1461 Enable crash handling overrides (default is YES)
1462 --enable-targets Build specific host targets: all or
1463 target1,target2,... Valid targets are: host, x86,
1464 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1465 hexagon, xcore, msp430, nvptx, systemz, r600, bpf,
1466 and cpp (default=all)
1467 --enable-experimental-targets
1468 Build experimental host targets: disable or
1469 target1,target2,... (default=disable)
1470 --enable-bindings Build specific language bindings:
1471 all,auto,none,{binding-name} (default=auto)
1472 --enable-terminfo Query the terminfo database if available (default is
1474 --enable-libedit Use libedit if available (default is YES)
1475 --enable-libffi Check for the presence of libffi (default is NO)
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-doxygen-search-engine-url
1481 Specify the external search engine for doxygen
1482 --with-doxygen-search-mappings
1483 Specify the extra search mapping for doxygen
1484 --with-optimize-option Select the compiler options to use for optimized
1486 --with-extra-options Specify additional options to compile LLVM with
1487 --with-extra-ld-options Specify additional options to link LLVM with
1488 --with-ocaml-libdir Specify install location for ocaml bindings (default
1490 --with-clang-srcdir Directory to the out-of-tree Clang source
1491 --with-clang-resource-dir
1492 Relative directory from the Clang binary for
1494 --with-c-include-dirs Colon separated list of directories clang will
1496 --with-gcc-toolchain Directory where gcc is installed.
1497 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1498 --with-clang-default-openmp-runtime
1499 The default OpenMP runtime for Clang.
1500 --with-binutils-include Specify path to binutils/include/ containing
1501 plugin-api.h file for gold plugin.
1502 --with-bug-report-url Specify the URL where bug reports should be
1503 submitted (default=http://llvm.org/bugs/)
1504 --with-internal-prefix Installation directory for internal files
1505 --with-python path to python
1506 --with-oprofile=<prefix>
1507 Tell OProfile >= 0.9.4 how to symbolize JIT output
1508 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1511 Some influential environment variables:
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
1516 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 CXX C++ compiler command
1519 CXXFLAGS C++ compiler flags
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1525 Report bugs to <http://llvm.org/bugs/>.
1530 if test "$ac_init_help" = "recursive"; then
1531 # If there are subdirs, report their specific --help.
1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533 test -d "$ac_dir" || continue
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540 # A ".." for each directory in $ac_dir_suffix.
1541 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542 case $ac_top_builddir_sub in
1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1553 .) # We are building in place.
1555 ac_top_srcdir=$ac_top_builddir_sub
1556 ac_abs_top_srcdir=$ac_pwd ;;
1557 [\\/]* | ?:[\\/]* ) # Absolute name.
1558 ac_srcdir=$srcdir$ac_dir_suffix;
1559 ac_top_srcdir=$srcdir
1560 ac_abs_top_srcdir=$srcdir ;;
1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568 cd "$ac_dir" || { ac_status=$?; continue; }
1569 # Check for guested configure.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1586 LLVM configure 3.7.0svn
1587 generated by GNU Autoconf 2.60
1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1594 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1598 cat >config.log <<_ACEOF
1599 This file contains any messages produced by compilers while
1600 running configure, to aid debugging if configure makes a mistake.
1602 It was created by LLVM $as_me 3.7.0svn, which was
1603 generated by GNU Autoconf 2.60. Invocation command line was
1615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1622 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1624 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1625 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1627 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1628 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1629 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1630 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 test -z "$as_dir" && as_dir=.
1639 echo "PATH: $as_dir"
1655 # Keep a trace of the command line.
1656 # Strip out --no-create and --no-recursion so they do not pile up.
1657 # Strip out --silent because we don't want to record it for future runs.
1658 # Also quote any args containing shell meta-characters.
1659 # Make two passes to allow for proper duplicate-argument suppression.
1663 ac_must_keep_next=false
1669 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1671 | -silent | --silent | --silen | --sile | --sil)
1674 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1677 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1679 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1680 if test $ac_must_keep_next = true; then
1681 ac_must_keep_next=false # Got value, back to normal.
1684 *=* | --config-cache | -C | -disable-* | --disable-* \
1685 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1686 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1687 | -with-* | --with-* | -without-* | --without-* | --x)
1688 case "$ac_configure_args0 " in
1689 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1692 -* ) ac_must_keep_next=true ;;
1695 ac_configure_args="$ac_configure_args '$ac_arg'"
1700 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1701 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1703 # When interrupted or exit'd, cleanup temporary files, and complete
1704 # config.log. We remove comments because anyway the quotes in there
1705 # would cause problems or look ugly.
1706 # WARNING: Use '\'' to represent an apostrophe within the trap.
1707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1708 trap 'exit_status=$?
1709 # Save into config.log some information that might help in debugging.
1714 ## ---------------- ##
1715 ## Cache variables. ##
1716 ## ---------------- ##
1719 # The following way of writing the cache mishandles newlines in values,
1721 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1722 eval ac_val=\$$ac_var
1726 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1730 _ | IFS | as_nl) ;; #(
1731 *) $as_unset $ac_var ;;
1736 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737 *${as_nl}ac_space=\ *)
1739 "s/'\''/'\''\\\\'\'''\''/g;
1740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751 ## ----------------- ##
1752 ## Output variables. ##
1753 ## ----------------- ##
1756 for ac_var in $ac_subst_vars
1758 eval ac_val=\$$ac_var
1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 echo "$ac_var='\''$ac_val'\''"
1766 if test -n "$ac_subst_files"; then
1768 ## ------------------- ##
1769 ## File substitutions. ##
1770 ## ------------------- ##
1773 for ac_var in $ac_subst_files
1775 eval ac_val=\$$ac_var
1777 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779 echo "$ac_var='\''$ac_val'\''"
1784 if test -s confdefs.h; then
1794 test "$ac_signal" != 0 &&
1795 echo "$as_me: caught signal $ac_signal"
1796 echo "$as_me: exit $exit_status"
1798 rm -f core *.core core.conftest.* &&
1799 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802 for ac_signal in 1 2 13 15; do
1803 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1808 rm -f -r conftest* confdefs.h
1810 # Predefined preprocessor variables.
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_NAME "$PACKAGE_NAME"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_STRING "$PACKAGE_STRING"
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837 # Let the site file select an alternate cache file if it wants to.
1838 # Prefer explicitly selected file to automatically selected ones.
1839 if test -n "$CONFIG_SITE"; then
1840 set x "$CONFIG_SITE"
1841 elif test "x$prefix" != xNONE; then
1842 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1844 set x "$ac_default_prefix/share/config.site" \
1845 "$ac_default_prefix/etc/config.site"
1850 if test -r "$ac_site_file"; then
1851 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852 echo "$as_me: loading site script $ac_site_file" >&6;}
1853 sed 's/^/| /' "$ac_site_file" >&5
1858 if test -r "$cache_file"; then
1859 # Some versions of bash will fail to source /dev/null (special
1860 # files actually), so we avoid doing that.
1861 if test -f "$cache_file"; then
1862 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863 echo "$as_me: loading cache $cache_file" >&6;}
1865 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1866 *) . "./$cache_file";;
1870 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871 echo "$as_me: creating cache $cache_file" >&6;}
1875 # Check that the precious variables saved in the cache have kept the same
1877 ac_cache_corrupted=false
1878 for ac_var in $ac_precious_vars; do
1879 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880 eval ac_new_set=\$ac_env_${ac_var}_set
1881 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882 eval ac_new_val=\$ac_env_${ac_var}_value
1883 case $ac_old_set,$ac_new_set in
1885 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887 ac_cache_corrupted=: ;;
1889 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891 ac_cache_corrupted=: ;;
1894 if test "x$ac_old_val" != "x$ac_new_val"; then
1895 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1896 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1897 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1898 echo "$as_me: former value: $ac_old_val" >&2;}
1899 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1900 echo "$as_me: current value: $ac_new_val" >&2;}
1901 ac_cache_corrupted=:
1904 # Pass precious variables to config.status.
1905 if test "$ac_new_set" = set; then
1907 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908 *) ac_arg=$ac_var=$ac_new_val ;;
1910 case " $ac_configure_args " in
1911 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1912 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916 if $ac_cache_corrupted; then
1917 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921 { (exit 1); exit 1; }; }
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 LLVM_VERSION_MAJOR=3
1957 LLVM_VERSION_MINOR=7
1958 LLVM_VERSION_PATCH=0
1959 LLVM_VERSION_SUFFIX=svn
1962 cat >>confdefs.h <<_ACEOF
1963 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1967 cat >>confdefs.h <<_ACEOF
1968 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1972 cat >>confdefs.h <<_ACEOF
1973 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1977 cat >>confdefs.h <<_ACEOF
1978 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1987 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1996 for ac_dir in autoconf "$srcdir"/autoconf; do
1997 if test -f "$ac_dir/install-sh"; then
1999 ac_install_sh="$ac_aux_dir/install-sh -c"
2001 elif test -f "$ac_dir/install.sh"; then
2003 ac_install_sh="$ac_aux_dir/install.sh -c"
2005 elif test -f "$ac_dir/shtool"; then
2007 ac_install_sh="$ac_aux_dir/shtool install -c"
2011 if test -z "$ac_aux_dir"; then
2012 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2013 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2014 { (exit 1); exit 1; }; }
2017 # These three variables are undocumented and unsupported,
2018 # and are intended to be withdrawn in a future Autoconf release.
2019 # They can cause serious problems if a builder's source tree is in a directory
2020 # whose full name contains unusual characters.
2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2023 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2027 if test ${srcdir} != "." ; then
2028 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2029 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2030 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2031 { (exit 1); exit 1; }; }
2035 if test ${srcdir} == "." ; then
2036 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2037 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2038 { echo "$as_me:$LINENO: WARNING: * *" >&5
2039 echo "$as_me: WARNING: * *" >&2;}
2040 { echo "$as_me:$LINENO: WARNING: * WARNING *" >&5
2041 echo "$as_me: WARNING: * WARNING *" >&2;}
2042 { echo "$as_me:$LINENO: WARNING: * *" >&5
2043 echo "$as_me: WARNING: * *" >&2;}
2044 { echo "$as_me:$LINENO: WARNING: * In-source builds are deprecated. *" >&5
2045 echo "$as_me: WARNING: * In-source builds are deprecated. *" >&2;}
2046 { echo "$as_me:$LINENO: WARNING: * *" >&5
2047 echo "$as_me: WARNING: * *" >&2;}
2048 { echo "$as_me:$LINENO: WARNING: * Please configure from a separate build directory! *" >&5
2049 echo "$as_me: WARNING: * Please configure from a separate build directory! *" >&2;}
2050 { echo "$as_me:$LINENO: WARNING: * *" >&5
2051 echo "$as_me: WARNING: * *" >&2;}
2052 { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2053 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064 if test -n "$ac_tool_prefix"; then
2065 for ac_prog in clang gcc
2067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2104 test -n "$CC" && break
2107 if test -z "$CC"; then
2109 for ac_prog in clang gcc
2111 # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_ac_ct_CC="$ac_prog"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2148 test -n "$ac_ct_CC" && break
2151 if test "x$ac_ct_CC" = x; then
2154 case $cross_compiling:$ac_tool_warned in
2156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2157 whose name does not start with the host triplet. If you think this
2158 configuration is useful to you, please write to autoconf@gnu.org." >&5
2159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet. If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2162 ac_tool_warned=yes ;;
2169 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: no acceptable C compiler found in \$PATH
2172 See \`config.log' for more details." >&2;}
2173 { (exit 1); exit 1; }; }
2175 # Provide some information about the compiler.
2176 echo "$as_me:$LINENO: checking for C compiler version" >&5
2177 ac_compiler=`set X $ac_compile; echo $2`
2178 { (ac_try="$ac_compiler --version >&5"
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184 (eval "$ac_compiler --version >&5") 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }
2188 { (ac_try="$ac_compiler -v >&5"
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2194 (eval "$ac_compiler -v >&5") 2>&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }
2198 { (ac_try="$ac_compiler -V >&5"
2200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201 *) ac_try_echo=$ac_try;;
2203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204 (eval "$ac_compiler -V >&5") 2>&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }
2209 cat >conftest.$ac_ext <<_ACEOF
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h. */
2224 ac_clean_files_save=$ac_clean_files
2225 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2226 # Try to create an executable without -o first, disregard a.out.
2227 # It will help us diagnose broken compilers, and finding out an intuition
2229 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2230 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2231 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2233 # List of possible output files, starting from the most likely.
2234 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2235 # only as a last resort. b.out is created by i960 compilers.
2236 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2238 # The IRIX 6 linker writes into existing files which may not be
2239 # executable, retaining their permissions. Remove them first so a
2240 # subsequent execution test works.
2242 for ac_file in $ac_files
2245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2246 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2251 if { (ac_try="$ac_link_default"
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257 (eval "$ac_link_default") 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; then
2261 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2263 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2264 # so that the user can short-circuit this test for compilers unknown to
2266 for ac_file in $ac_files
2268 test -f "$ac_file" || continue
2270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2273 # We found the default executable, but exeext='' is most
2277 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2279 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281 # We set ac_cv_exeext here because the later test for it is not
2282 # safe: cross compilers may not add the suffix if given an `-o'
2283 # argument, so we may need to know it at that point already.
2284 # Even if this section looks crufty: it has the advantage of
2291 test "$ac_cv_exeext" = no && ac_cv_exeext=
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2297 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: C compiler cannot create executables
2300 See \`config.log' for more details." >&2;}
2301 { (exit 77); exit 77; }; }
2304 ac_exeext=$ac_cv_exeext
2305 { echo "$as_me:$LINENO: result: $ac_file" >&5
2306 echo "${ECHO_T}$ac_file" >&6; }
2308 # Check that the compiler produces executables we can run. If not, either
2309 # the compiler is broken, or we cross compile.
2310 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2311 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2312 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2313 # If not cross compiling, check that we can run a simple program.
2314 if test "$cross_compiling" != yes; then
2315 if { ac_try='./$ac_file'
2316 { (case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_try") 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 if test "$cross_compiling" = maybe; then
2330 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: cannot run C compiled programs.
2334 If you meant to cross compile, use \`--host'.
2335 See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2340 { echo "$as_me:$LINENO: result: yes" >&5
2341 echo "${ECHO_T}yes" >&6; }
2343 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2344 ac_clean_files=$ac_clean_files_save
2345 # Check that the compiler produces executables we can run. If not, either
2346 # the compiler is broken, or we cross compile.
2347 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2348 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2349 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2350 echo "${ECHO_T}$cross_compiling" >&6; }
2352 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2353 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2354 if { (ac_try="$ac_link"
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_link") 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; then
2364 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2365 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2366 # work properly (i.e., refer to `conftest.exe'), while it won't with
2368 for ac_file in conftest.exe conftest conftest.*; do
2369 test -f "$ac_file" || continue
2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2372 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }
2385 rm -f conftest$ac_cv_exeext
2386 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2392 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2394 if test "${ac_cv_objext+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 cat >conftest.$ac_ext <<_ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2412 rm -f conftest.o conftest.obj
2413 if { (ac_try="$ac_compile"
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval "$ac_compile") 2>&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; then
2423 for ac_file in conftest.o conftest.obj conftest.*; do
2424 test -f "$ac_file" || continue;
2426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2427 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2438 See \`config.log' for more details." >&2;}
2439 { (exit 1); exit 1; }; }
2442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2444 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2445 echo "${ECHO_T}$ac_cv_objext" >&6; }
2446 OBJEXT=$ac_cv_objext
2448 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 cat >conftest.$ac_ext <<_ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2471 rm -f conftest.$ac_objext
2472 if { (ac_try="$ac_compile"
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_compile") 2>conftest.er1
2480 grep -v '^ *+' conftest.er1 >conftest.err
2482 cat conftest.err >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
2485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_try") 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; }; then
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2517 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2518 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2519 GCC=`test $ac_compiler_gnu = yes && echo yes`
2520 ac_test_CFLAGS=${CFLAGS+set}
2521 ac_save_CFLAGS=$CFLAGS
2522 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2523 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_cc_g+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 ac_save_c_werror_flag=$ac_c_werror_flag
2528 ac_c_werror_flag=yes
2531 cat >conftest.$ac_ext <<_ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2546 rm -f conftest.$ac_objext
2547 if { (ac_try="$ac_compile"
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553 (eval "$ac_compile") 2>conftest.er1
2555 grep -v '^ *+' conftest.er1 >conftest.err
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2561 { (case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_try") 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_try") 2>&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_compile") 2>conftest.er1
2610 grep -v '^ *+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_try") 2>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2640 ac_c_werror_flag=$ac_save_c_werror_flag
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compile") 2>conftest.er1
2666 grep -v '^ *+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2672 { (case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_try") 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try='test -s conftest.$ac_objext'
2682 { (case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_try") 2>&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 ac_c_werror_flag=$ac_save_c_werror_flag
2708 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2709 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2710 if test "$ac_test_CFLAGS" = set; then
2711 CFLAGS=$ac_save_CFLAGS
2712 elif test $ac_cv_prog_cc_g = yes; then
2713 if test "$GCC" = yes; then
2719 if test "$GCC" = yes; then
2725 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2726 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2727 if test "${ac_cv_prog_cc_c89+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 ac_cv_prog_cc_c89=no
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2740 #include <sys/types.h>
2741 #include <sys/stat.h>
2742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2743 struct buf { int x; };
2744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745 static char *e (p, i)
2751 static char *f (char * (*g) (char **, int), char **p, ...)
2756 s = g (p, va_arg (v,int));
2761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2762 function prototypes and stuff, but not '\xHH' hex character constants.
2763 These don't provoke an error unfortunately, instead are silently treated
2764 as 'x'. The following induces an error, until -std is added to get
2765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2766 array size at least. It's necessary to write '\x00'==0 to get something
2767 that's true only with -std. */
2768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2771 inside strings and character constants. */
2773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2775 int test (int i, double x);
2776 struct s1 {int (*f) (int a);};
2777 struct s2 {int (*f) (double a);};
2778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2792 CC="$ac_save_CC $ac_arg"
2793 rm -f conftest.$ac_objext
2794 if { (ac_try="$ac_compile"
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_compile") 2>conftest.er1
2802 grep -v '^ *+' conftest.er1 >conftest.err
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
2807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2808 { (case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_try") 2>&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; } &&
2817 { ac_try='test -s conftest.$ac_objext'
2818 { (case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_try") 2>&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 ac_cv_prog_cc_c89=$ac_arg
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2835 rm -f core conftest.err conftest.$ac_objext
2836 test "x$ac_cv_prog_cc_c89" != "xno" && break
2838 rm -f conftest.$ac_ext
2843 case "x$ac_cv_prog_cc_c89" in
2845 { echo "$as_me:$LINENO: result: none needed" >&5
2846 echo "${ECHO_T}none needed" >&6; } ;;
2848 { echo "$as_me:$LINENO: result: unsupported" >&5
2849 echo "${ECHO_T}unsupported" >&6; } ;;
2851 CC="$CC $ac_cv_prog_cc_c89"
2852 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2853 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2864 ac_cpp='$CXXCPP $CPPFLAGS'
2865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2868 if test -z "$CXX"; then
2869 if test -n "$CCC"; then
2872 if test -n "$ac_tool_prefix"; then
2873 for ac_prog in clang++ g++
2875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_CXX+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 if test -n "$CXX"; then
2883 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 if test -n "$CXX"; then
2904 { echo "$as_me:$LINENO: result: $CXX" >&5
2905 echo "${ECHO_T}$CXX" >&6; }
2907 { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2912 test -n "$CXX" && break
2915 if test -z "$CXX"; then
2917 for ac_prog in clang++ g++
2919 # Extract the first word of "$ac_prog", so it can be a program name with args.
2920 set dummy $ac_prog; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 if test -n "$ac_ct_CXX"; then
2927 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_ac_ct_CXX="$ac_prog"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2947 if test -n "$ac_ct_CXX"; then
2948 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2949 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2951 { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2956 test -n "$ac_ct_CXX" && break
2959 if test "x$ac_ct_CXX" = x; then
2962 case $cross_compiling:$ac_tool_warned in
2964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet. If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&5
2967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet. If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970 ac_tool_warned=yes ;;
2978 # Provide some information about the compiler.
2979 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2980 ac_compiler=`set X $ac_compile; echo $2`
2981 { (ac_try="$ac_compiler --version >&5"
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compiler --version >&5") 2>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }
2991 { (ac_try="$ac_compiler -v >&5"
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_compiler -v >&5") 2>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }
3001 { (ac_try="$ac_compiler -V >&5"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compiler -V >&5") 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3081 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3082 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3083 GXX=`test $ac_compiler_gnu = yes && echo yes`
3084 ac_test_CXXFLAGS=${CXXFLAGS+set}
3085 ac_save_CXXFLAGS=$CXXFLAGS
3086 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3087 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3088 if test "${ac_cv_prog_cxx_g+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3092 ac_cxx_werror_flag=yes
3095 cat >conftest.$ac_ext <<_ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_compile") 2>conftest.er1
3119 grep -v '^ *+' conftest.er1 >conftest.err
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } &&
3124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3125 { (case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_try") 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; } &&
3134 { ac_try='test -s conftest.$ac_objext'
3135 { (case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_try") 2>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; }; then
3144 ac_cv_prog_cxx_g=yes
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>conftest.er1
3230 grep -v '^ *+' conftest.er1 >conftest.err
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3236 { (case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_try") 2>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_try") 2>&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_prog_cxx_g=yes
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3272 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3274 if test "$ac_test_CXXFLAGS" = set; then
3275 CXXFLAGS=$ac_save_CXXFLAGS
3276 elif test $ac_cv_prog_cxx_g = yes; then
3277 if test "$GXX" = yes; then
3283 if test "$GXX" = yes; then
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3301 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3302 # On Suns, sometimes $CPP names a directory.
3303 if test -n "$CPP" && test -d "$CPP"; then
3306 if test -z "$CPP"; then
3307 if test "${ac_cv_prog_CPP+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 # Double quotes because CPP needs to be expanded
3311 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3314 for ac_c_preproc_warn_flag in '' yes
3316 # Use a header file that comes with gcc, so configuring glibc
3317 # with a fresh cross-compiler works.
3318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3319 # <limits.h> exists even on freestanding compilers.
3320 # On the NeXT, cc -E runs the code through the compiler's parser,
3321 # not just through cpp. "Syntax error" is here to catch this case.
3322 cat >conftest.$ac_ext <<_ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3329 # include <limits.h>
3331 # include <assert.h>
3335 if { (ac_try="$ac_cpp conftest.$ac_ext"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } >/dev/null; then
3348 if test -s conftest.err; then
3349 ac_cpp_err=$ac_c_preproc_warn_flag
3350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357 if test -z "$ac_cpp_err"; then
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 # Broken: fails on valid input.
3367 rm -f conftest.err conftest.$ac_ext
3369 # OK, works on sane cases. Now check whether nonexistent headers
3370 # can be detected and how.
3371 cat >conftest.$ac_ext <<_ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3377 #include <ac_nonexistent.h>
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null; then
3392 if test -s conftest.err; then
3393 ac_cpp_err=$ac_c_preproc_warn_flag
3394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3401 if test -z "$ac_cpp_err"; then
3402 # Broken: success on invalid input.
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 # Passes both tests.
3413 rm -f conftest.err conftest.$ac_ext
3416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3417 rm -f conftest.err conftest.$ac_ext
3418 if $ac_preproc_ok; then
3430 { echo "$as_me:$LINENO: result: $CPP" >&5
3431 echo "${ECHO_T}$CPP" >&6; }
3433 for ac_c_preproc_warn_flag in '' yes
3435 # Use a header file that comes with gcc, so configuring glibc
3436 # with a fresh cross-compiler works.
3437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3438 # <limits.h> exists even on freestanding compilers.
3439 # On the NeXT, cc -E runs the code through the compiler's parser,
3440 # not just through cpp. "Syntax error" is here to catch this case.
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3448 # include <limits.h>
3450 # include <assert.h>
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3462 grep -v '^ *+' conftest.er1 >conftest.err
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } >/dev/null; then
3467 if test -s conftest.err; then
3468 ac_cpp_err=$ac_c_preproc_warn_flag
3469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3476 if test -z "$ac_cpp_err"; then
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 # Broken: fails on valid input.
3486 rm -f conftest.err conftest.$ac_ext
3488 # OK, works on sane cases. Now check whether nonexistent headers
3489 # can be detected and how.
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3506 grep -v '^ *+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } >/dev/null; then
3511 if test -s conftest.err; then
3512 ac_cpp_err=$ac_c_preproc_warn_flag
3513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3520 if test -z "$ac_cpp_err"; then
3521 # Broken: success on invalid input.
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 # Passes both tests.
3532 rm -f conftest.err conftest.$ac_ext
3535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536 rm -f conftest.err conftest.$ac_ext
3537 if $ac_preproc_ok; then
3540 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." >&5
3542 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3543 See \`config.log' for more details." >&2;}
3544 { (exit 1); exit 1; }; }
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554 if test "$CXX" = "clang++" ; then
3555 { echo "$as_me:$LINENO: checking whether clang works" >&5
3556 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3558 ac_cpp='$CXXCPP $CPPFLAGS'
3559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3571 #if __has_include (<cxxabi.h>)
3574 #if __has_include (<unwind.h>)
3586 rm -f conftest.$ac_objext
3587 if { (ac_try="$ac_compile"
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_compile") 2>conftest.er1
3595 grep -v '^ *+' conftest.er1 >conftest.err
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
3600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3601 { (case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_try") 2>&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_try") 2>&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3621 { echo "$as_me:$LINENO: result: yes" >&5
3622 echo "${ECHO_T}yes" >&6; }
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3629 { echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6; }
3631 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&5
3632 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&2;}
3633 { (exit 1); exit 1; }; }
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3647 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3649 ac_cpp='$CXXCPP $CPPFLAGS'
3650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3654 llvm_cv_cxx_compiler=unknown
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3666 rm -f conftest.$ac_objext
3667 if { (ac_try="$ac_compile"
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_compile") 2>conftest.er1
3675 grep -v '^ *+' conftest.er1 >conftest.err
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3681 { (case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_try") 2>&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; } &&
3690 { ac_try='test -s conftest.$ac_objext'
3691 { (case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_try") 2>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 llvm_cv_cxx_compiler=clang
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_compile") 2>conftest.er1
3725 grep -v '^ *+' conftest.er1 >conftest.err
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } &&
3730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3731 { (case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_try") 2>&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; } &&
3740 { ac_try='test -s conftest.$ac_objext'
3741 { (case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746 (eval "$ac_try") 2>&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; }; then
3750 llvm_cv_cxx_compiler=gcc
3752 echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3769 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3773 if test -d ${srcdir}/projects/test-suite ; then
3774 subdirs="$subdirs projects/test-suite"
3778 if test -d ${srcdir}/projects/llvm-test ; then
3779 subdirs="$subdirs projects/llvm-test"
3783 if test -d ${srcdir}/projects/poolalloc ; then
3784 subdirs="$subdirs projects/poolalloc"
3788 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3789 subdirs="$subdirs projects/llvm-poolalloc"
3793 for i in `ls ${srcdir}/projects`
3795 if test -d ${srcdir}/projects/${i} ; then
3797 safecode) subdirs="$subdirs projects/safecode"
3805 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3806 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3812 # Check whether --enable-polly was given.
3813 if test "${enable_polly+set}" = set; then
3814 enableval=$enable_polly;
3819 case "$enableval" in
3824 default) ENABLE_POLLY=1
3826 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3827 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3828 { (exit 1); exit 1; }; } ;;
3832 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3835 subdirs="$subdirs tools/polly"
3840 # Make sure we can run config.sub.
3841 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3842 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3843 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3844 { (exit 1); exit 1; }; }
3846 { echo "$as_me:$LINENO: checking build system type" >&5
3847 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3848 if test "${ac_cv_build+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 ac_build_alias=$build_alias
3852 test "x$ac_build_alias" = x &&
3853 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3854 test "x$ac_build_alias" = x &&
3855 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3856 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3857 { (exit 1); exit 1; }; }
3858 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3859 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3860 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3861 { (exit 1); exit 1; }; }
3864 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3865 echo "${ECHO_T}$ac_cv_build" >&6; }
3866 case $ac_cv_build in
3868 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3869 echo "$as_me: error: invalid value of canonical build" >&2;}
3870 { (exit 1); exit 1; }; };;
3873 ac_save_IFS=$IFS; IFS='-'
3879 # Remember, the first character of IFS is used to create $*,
3880 # except with old shells:
3883 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3886 { echo "$as_me:$LINENO: checking host system type" >&5
3887 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3888 if test "${ac_cv_host+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 if test "x$host_alias" = x; then
3892 ac_cv_host=$ac_cv_build
3894 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3895 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3896 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3897 { (exit 1); exit 1; }; }
3901 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3902 echo "${ECHO_T}$ac_cv_host" >&6; }
3905 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3906 echo "$as_me: error: invalid value of canonical host" >&2;}
3907 { (exit 1); exit 1; }; };;
3910 ac_save_IFS=$IFS; IFS='-'
3916 # Remember, the first character of IFS is used to create $*,
3917 # except with old shells:
3920 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3923 { echo "$as_me:$LINENO: checking target system type" >&5
3924 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3925 if test "${ac_cv_target+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 if test "x$target_alias" = x; then
3929 ac_cv_target=$ac_cv_host
3931 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3932 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3933 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3934 { (exit 1); exit 1; }; }
3938 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3939 echo "${ECHO_T}$ac_cv_target" >&6; }
3940 case $ac_cv_target in
3942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3943 echo "$as_me: error: invalid value of canonical target" >&2;}
3944 { (exit 1); exit 1; }; };;
3946 target=$ac_cv_target
3947 ac_save_IFS=$IFS; IFS='-'
3953 # Remember, the first character of IFS is used to create $*,
3954 # except with old shells:
3957 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3960 # The aliases save the names the user supplied, while $host etc.
3961 # will get canonicalized.
3962 test -n "$target_alias" &&
3963 test "$program_prefix$program_suffix$program_transform_name" = \
3965 program_prefix=${target_alias}-
3967 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3968 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3969 if test "${llvm_cv_os_type+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 llvm_cv_link_all_option="-Wl,--whole-archive"
3975 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3976 llvm_cv_os_type="AIX"
3977 llvm_cv_platform_type="Unix" ;;
3979 llvm_cv_link_all_option="-Wl,--whole-archive"
3980 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3981 llvm_cv_os_type="IRIX"
3982 llvm_cv_platform_type="Unix" ;;
3984 llvm_cv_link_all_option="-Wl,--whole-archive"
3985 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3986 llvm_cv_os_type="Cygwin"
3987 llvm_cv_platform_type="Unix" ;;
3989 llvm_cv_link_all_option="-Wl,-all_load"
3990 llvm_cv_no_link_all_option="-Wl,-noall_load"
3991 llvm_cv_os_type="Darwin"
3992 llvm_cv_platform_type="Unix" ;;
3994 llvm_cv_link_all_option="-Wl,-all_load"
3995 llvm_cv_no_link_all_option="-Wl,-noall_load"
3996 llvm_cv_os_type="Minix"
3997 llvm_cv_platform_type="Unix" ;;
3999 llvm_cv_link_all_option="-Wl,--whole-archive"
4000 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4001 llvm_cv_os_type="FreeBSD"
4002 llvm_cv_platform_type="Unix" ;;
4004 llvm_cv_link_all_option="-Wl,--whole-archive"
4005 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4006 llvm_cv_os_type="GNU/kFreeBSD"
4007 llvm_cv_platform_type="Unix" ;;
4009 llvm_cv_link_all_option="-Wl,--whole-archive"
4010 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4011 llvm_cv_os_type="OpenBSD"
4012 llvm_cv_platform_type="Unix" ;;
4014 llvm_cv_link_all_option="-Wl,--whole-archive"
4015 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4016 llvm_cv_os_type="NetBSD"
4017 llvm_cv_platform_type="Unix" ;;
4019 llvm_cv_link_all_option="-Wl,--whole-archive"
4020 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4021 llvm_cv_os_type="DragonFly"
4022 llvm_cv_platform_type="Unix" ;;
4024 llvm_cv_link_all_option="-Wl,--whole-archive"
4025 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4026 llvm_cv_os_type="Bitrig"
4027 llvm_cv_platform_type="Unix" ;;
4029 llvm_cv_link_all_option="-Wl,--whole-archive"
4030 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4031 llvm_cv_os_type="HP-UX"
4032 llvm_cv_platform_type="Unix" ;;
4034 llvm_cv_link_all_option="-Wl,--whole-archive"
4035 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4036 llvm_cv_os_type="Interix"
4037 llvm_cv_platform_type="Unix" ;;
4039 llvm_cv_link_all_option="-Wl,--whole-archive"
4040 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4041 llvm_cv_os_type="Linux"
4042 llvm_cv_platform_type="Unix" ;;
4044 llvm_cv_link_all_option="-Wl,--whole-archive"
4045 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4046 llvm_cv_os_type="GNU"
4047 llvm_cv_platform_type="Unix" ;;
4049 llvm_cv_link_all_option="-Wl,-z,allextract"
4050 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4051 llvm_cv_os_type="SunOS"
4052 llvm_cv_platform_type="Unix" ;;
4054 llvm_cv_link_all_option="-Wl,--whole-archive"
4055 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4056 llvm_cv_os_type="Win32"
4057 llvm_cv_platform_type="Win32" ;;
4059 llvm_cv_link_all_option="-Wl,--whole-archive"
4060 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4061 llvm_cv_os_type="MingW"
4062 llvm_cv_platform_type="Win32" ;;
4064 llvm_cv_link_all_option="-Wl,--whole-archive"
4065 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4066 llvm_cv_os_type="Haiku"
4067 llvm_cv_platform_type="Unix" ;;
4069 llvm_cv_link_all_option="-Wl,--whole-archive"
4070 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4071 llvm_cv_os_type="Freestanding"
4072 llvm_cv_platform_type="Unix" ;;
4074 llvm_cv_link_all_option="-Wl,--whole-archive"
4075 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4076 llvm_cv_os_type="Freestanding"
4077 llvm_cv_platform_type="Unix" ;;
4079 llvm_cv_link_all_option=""
4080 llvm_cv_no_link_all_option=""
4081 llvm_cv_os_type="Unknown"
4082 llvm_cv_platform_type="Unknown" ;;
4085 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4086 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4088 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4089 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4090 if test "${llvm_cv_target_os_type+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 llvm_cv_target_os_type="AIX" ;;
4097 llvm_cv_target_os_type="IRIX" ;;
4099 llvm_cv_target_os_type="Cygwin" ;;
4101 llvm_cv_target_os_type="Darwin" ;;
4103 llvm_cv_target_os_type="Minix" ;;
4105 llvm_cv_target_os_type="FreeBSD" ;;
4107 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4109 llvm_cv_target_os_type="OpenBSD" ;;
4111 llvm_cv_target_os_type="NetBSD" ;;
4113 llvm_cv_target_os_type="DragonFly" ;;
4115 llvm_cv_target_os_type="Bitrig" ;;
4117 llvm_cv_target_os_type="HP-UX" ;;
4119 llvm_cv_target_os_type="Interix" ;;
4121 llvm_cv_target_os_type="Linux" ;;
4123 llvm_cv_target_os_type="GNU" ;;
4125 llvm_cv_target_os_type="SunOS" ;;
4127 llvm_cv_target_os_type="Win32" ;;
4129 llvm_cv_target_os_type="MingW" ;;
4131 llvm_cv_target_os_type="Haiku" ;;
4133 llvm_cv_target_os_type="RTEMS" ;;
4135 llvm_cv_target_os_type="NativeClient" ;;
4137 llvm_cv_target_os_type="Freestanding" ;;
4139 llvm_cv_target_os_type="PS4" ;;
4141 llvm_cv_target_os_type="Unknown" ;;
4144 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4145 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4147 if test "$llvm_cv_os_type" = "Unknown" ; then
4148 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4149 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4150 { (exit 1); exit 1; }; }
4155 HOST_OS=$llvm_cv_os_type
4157 TARGET_OS=$llvm_cv_target_os_type
4160 LINKALL=$llvm_cv_link_all_option
4162 NOLINKALL=$llvm_cv_no_link_all_option
4165 case $llvm_cv_platform_type in
4168 cat >>confdefs.h <<\_ACEOF
4169 #define LLVM_ON_UNIX 1
4179 cat >>confdefs.h <<\_ACEOF
4180 #define LLVM_ON_WIN32 1
4190 { echo "$as_me:$LINENO: checking target architecture" >&5
4191 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4192 if test "${llvm_cv_target_arch+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 i?86-*) llvm_cv_target_arch="x86" ;;
4197 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4198 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4199 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4200 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4201 arm*-*) llvm_cv_target_arch="ARM" ;;
4202 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4203 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4204 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4205 xcore-*) llvm_cv_target_arch="XCore" ;;
4206 msp430-*) llvm_cv_target_arch="MSP430" ;;
4207 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4208 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4209 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4210 *) llvm_cv_target_arch="Unknown" ;;
4213 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4214 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4216 if test "$llvm_cv_target_arch" = "Unknown" ; then
4217 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4218 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4221 case "$llvm_cv_target_arch" in
4222 x86) LLVM_NATIVE_ARCH="X86" ;;
4223 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4224 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4227 ARCH=$llvm_cv_target_arch
4229 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4233 i?86-*) host_arch="x86" ;;
4234 amd64-* | x86_64-*) host_arch="x86_64" ;;
4235 sparc*-*) host_arch="Sparc" ;;
4236 powerpc*-*) host_arch="PowerPC" ;;
4237 arm64*-*) host_arch="AArch64" ;;
4238 arm*-*) host_arch="ARM" ;;
4239 aarch64*-*) host_arch="AArch64" ;;
4240 mips-* | mips64-*) host_arch="Mips" ;;
4241 mipsel-* | mips64el-*) host_arch="Mips" ;;
4242 xcore-*) host_arch="XCore" ;;
4243 msp430-*) host_arch="MSP430" ;;
4244 hexagon-*) host_arch="Hexagon" ;;
4245 s390x-*) host_arch="SystemZ" ;;
4246 *) host_arch="Unknown" ;;
4249 if test "$host_arch" = "Unknown" ; then
4250 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4251 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4254 HOST_ARCH=$host_arch
4257 if test "$cross_compiling" = yes; then
4258 LLVM_CROSS_COMPILING=1
4261 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4262 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4263 if test "${ac_cv_build_exeext+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4267 ac_cv_build_exeext=.exe
4269 ac_build_prefix=${build_alias}-
4271 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4272 set dummy ${ac_build_prefix}gcc; ac_word=$2
4273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4275 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 if test -n "$BUILD_CC"; then
4279 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4288 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 BUILD_CC=$ac_cv_prog_BUILD_CC
4299 if test -n "$BUILD_CC"; then
4300 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4301 echo "${ECHO_T}$BUILD_CC" >&6; }
4303 { echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6; }
4308 if test -z "$BUILD_CC"; then
4309 # Extract the first word of "gcc", so it can be a program name with args.
4310 set dummy gcc; ac_word=$2
4311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4313 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 if test -n "$BUILD_CC"; then
4317 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_prog_BUILD_CC="gcc"
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 BUILD_CC=$ac_cv_prog_BUILD_CC
4337 if test -n "$BUILD_CC"; then
4338 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4339 echo "${ECHO_T}$BUILD_CC" >&6; }
4341 { echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6; }
4346 if test -z "$BUILD_CC"; then
4347 # Extract the first word of "cc", so it can be a program name with args.
4348 set dummy cc; ac_word=$2
4349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4351 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 if test -n "$BUILD_CC"; then
4355 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4366 ac_prog_rejected=yes
4369 ac_cv_prog_BUILD_CC="cc"
4370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 if test $ac_prog_rejected = yes; then
4378 # We found a bogon in the path, so make sure we never use it.
4379 set dummy $ac_cv_prog_BUILD_CC
4381 if test $# != 0; then
4382 # We chose a different compiler from the bogus one.
4383 # However, it has the same basename, so the bogon will be chosen
4384 # first if we set BUILD_CC to just the basename; use the full file name.
4386 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4391 BUILD_CC=$ac_cv_prog_BUILD_CC
4392 if test -n "$BUILD_CC"; then
4393 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4394 echo "${ECHO_T}$BUILD_CC" >&6; }
4396 { echo "$as_me:$LINENO: result: no" >&5
4397 echo "${ECHO_T}no" >&6; }
4403 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4404 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4405 { (exit 1); exit 1; }; }
4406 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4408 echo 'int main () { return 0; }' > conftest.$ac_ext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4411 (eval $ac_build_link) 2>&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; then
4415 for file in conftest.*; do
4417 *.c | *.o | *.obj | *.dSYM) ;;
4418 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4422 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4423 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4424 { (exit 1); exit 1; }; }
4427 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4432 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4433 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4434 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4435 ac_build_exeext=$BUILD_EXEEXT
4437 ac_build_prefix=${build_alias}-
4438 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4439 set dummy ${ac_build_prefix}g++; ac_word=$2
4440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4442 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 if test -n "$BUILD_CXX"; then
4446 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4466 if test -n "$BUILD_CXX"; then
4467 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4468 echo "${ECHO_T}$BUILD_CXX" >&6; }
4470 { echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6; }
4475 if test -z "$BUILD_CXX"; then
4476 # Extract the first word of "g++", so it can be a program name with args.
4477 set dummy g++; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 if test -n "$BUILD_CXX"; then
4484 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_BUILD_CXX="g++"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4504 if test -n "$BUILD_CXX"; then
4505 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4506 echo "${ECHO_T}$BUILD_CXX" >&6; }
4508 { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4513 if test -z "$BUILD_CXX"; then
4514 # Extract the first word of "c++", so it can be a program name with args.
4515 set dummy c++; ac_word=$2
4516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4518 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 if test -n "$BUILD_CXX"; then
4522 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4532 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4533 ac_prog_rejected=yes
4536 ac_cv_prog_BUILD_CXX="c++"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 if test $ac_prog_rejected = yes; then
4545 # We found a bogon in the path, so make sure we never use it.
4546 set dummy $ac_cv_prog_BUILD_CXX
4548 if test $# != 0; then
4549 # We chose a different compiler from the bogus one.
4550 # However, it has the same basename, so the bogon will be chosen
4551 # first if we set BUILD_CXX to just the basename; use the full file name.
4553 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4558 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4559 if test -n "$BUILD_CXX"; then
4560 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4561 echo "${ECHO_T}$BUILD_CXX" >&6; }
4563 { echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6; }
4571 LLVM_CROSS_COMPILING=0
4575 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4586 # Check whether --enable-libcpp was given.
4587 if test "${enable_libcpp+set}" = set; then
4588 enableval=$enable_libcpp;
4593 case "$enableval" in
4594 yes) ENABLE_LIBCPP=1
4598 default) ENABLE_LIBCPP=0
4600 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4601 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4602 { (exit 1); exit 1; }; } ;;
4605 # Check whether --enable-compiler-version-checks was given.
4606 if test "${enable_compiler_version_checks+set}" = set; then
4607 enableval=$enable_compiler_version_checks;
4612 case "$enableval" in
4617 ac_cpp='$CXXCPP $CPPFLAGS'
4618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4622 case "$llvm_cv_cxx_compiler" in
4624 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4625 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4626 cat >conftest.$ac_ext <<_ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4633 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4634 #error This version of Clang is too old to build LLVM
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_compile") 2>conftest.er1
4647 grep -v '^ *+' conftest.er1 >conftest.err
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } &&
4652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4653 { (case "(($ac_try" in
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658 (eval "$ac_try") 2>&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; } &&
4662 { ac_try='test -s conftest.$ac_objext'
4663 { (case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4668 (eval "$ac_try") 2>&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; }; then
4672 { echo "$as_me:$LINENO: result: yes" >&5
4673 echo "${ECHO_T}yes" >&6; }
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4680 { { echo "$as_me:$LINENO: error:
4681 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4682 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4683 bypass these sanity checks." >&5
4684 echo "$as_me: error:
4685 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4686 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4687 bypass these sanity checks." >&2;}
4688 { (exit 1); exit 1; }; }
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 if test "$ENABLE_LIBCPP" -eq 0 ; then
4694 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4695 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4696 llvm_cv_old_cxxflags="$CXXFLAGS"
4697 CXXFLAGS="$CXXFLAGS -std=c++0x"
4698 cat >conftest.$ac_ext <<_ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4706 std::atomic<float> x(0.0f);
4707 int main() { return (float)x; }
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (ac_try="$ac_link"
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_link") 2>conftest.er1
4719 grep -v '^ *+' conftest.er1 >conftest.err
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4725 { (case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_try") 2>&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; } &&
4734 { ac_try='test -s conftest$ac_exeext'
4735 { (case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740 (eval "$ac_try") 2>&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 { echo "$as_me:$LINENO: result: yes" >&5
4745 echo "${ECHO_T}yes" >&6; }
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4750 { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4752 { { echo "$as_me:$LINENO: error:
4753 We detected a missing feature in the standard C++ library that was known to be
4754 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4755 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4756 than 4.7. You will need to update your system and ensure Clang uses the newer
4759 If this error is incorrect or you need to force things to work, you may pass
4760 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4761 echo "$as_me: error:
4762 We detected a missing feature in the standard C++ library that was known to be
4763 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4764 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4765 than 4.7. You will need to update your system and ensure Clang uses the newer
4768 If this error is incorrect or you need to force things to work, you may pass
4769 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4770 { (exit 1); exit 1; }; }
4773 rm -f core conftest.err conftest.$ac_objext \
4774 conftest$ac_exeext conftest.$ac_ext
4775 CXXFLAGS="$llvm_cv_old_cxxflags"
4779 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4780 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4781 cat >conftest.$ac_ext <<_ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4788 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4789 #error This version of GCC is too old to build LLVM
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_compile") 2>conftest.er1
4802 grep -v '^ *+' conftest.er1 >conftest.err
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4808 { (case "(($ac_try" in
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813 (eval "$ac_try") 2>&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; } &&
4817 { ac_try='test -s conftest.$ac_objext'
4818 { (case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_try") 2>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 { echo "$as_me:$LINENO: result: yes" >&5
4828 echo "${ECHO_T}yes" >&6; }
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835 { { echo "$as_me:$LINENO: error:
4836 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4837 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4838 bypass these sanity checks." >&5
4839 echo "$as_me: error:
4840 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4841 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4842 bypass these sanity checks." >&2;}
4843 { (exit 1); exit 1; }; }
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4860 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4861 { (exit 1); exit 1; }; }
4865 # Check whether --enable-cxx1y was given.
4866 if test "${enable_cxx1y+set}" = set; then
4867 enableval=$enable_cxx1y;
4872 case "$enableval" in
4877 default) ENABLE_CXX1Y=0
4879 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4880 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4881 { (exit 1); exit 1; }; } ;;
4884 # Check whether --enable-split-dwarf was given.
4885 if test "${enable_split_dwarf+set}" = set; then
4886 enableval=$enable_split_dwarf;
4891 case "$enableval" in
4892 yes) ENABLE_SPLIT_DWARF=1
4894 no) ENABLE_SPLIT_DWARF=0
4896 default) ENABLE_SPLIT_DWARF=0
4898 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4899 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4900 { (exit 1); exit 1; }; } ;;
4904 # Check whether --enable-clang-arcmt was given.
4905 if test "${enable_clang_arcmt+set}" = set; then
4906 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4911 case "$enableval" in
4912 yes) ENABLE_CLANG_ARCMT=1
4914 no) ENABLE_CLANG_ARCMT=0
4916 default) ENABLE_CLANG_ARCMT=1
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4923 clang_plugin_support="yes"
4924 # Check whether --enable-clang-plugin-support was given.
4925 if test "${enable_clang_plugin_support+set}" = set; then
4926 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4931 case "$enableval" in
4932 yes) CLANG_PLUGIN_SUPPORT=1
4934 no) CLANG_PLUGIN_SUPPORT=0
4936 default) CLANG_PLUGIN_SUPPORT=1
4938 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4939 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4940 { (exit 1); exit 1; }; } ;;
4943 clang_static_analyzer="yes"
4944 # Check whether --enable-clang-static-analyzer was given.
4945 if test "${enable_clang_static_analyzer+set}" = set; then
4946 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4951 case "$enableval" in
4952 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4955 if test ${clang_arcmt} != "no" ; then
4956 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4957 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4958 { (exit 1); exit 1; }; }
4960 ENABLE_CLANG_STATIC_ANALYZER=0
4963 default) ENABLE_CLANG_STATIC_ANALYZER=1
4965 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4967 { (exit 1); exit 1; }; } ;;
4970 # Check whether --enable-optimized was given.
4971 if test "${enable_optimized+set}" = set; then
4972 enableval=$enable_optimized;
4977 if test ${enableval} = "no" ; then
4981 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4985 # Check whether --enable-profiling was given.
4986 if test "${enable_profiling+set}" = set; then
4987 enableval=$enable_profiling;
4992 if test ${enableval} = "no" ; then
4996 ENABLE_PROFILING=ENABLE_PROFILING=1
5000 # Check whether --enable-assertions was given.
5001 if test "${enable_assertions+set}" = set; then
5002 enableval=$enable_assertions;
5007 if test ${enableval} = "yes" ; then
5010 assertions_enabled="yes"
5012 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5014 assertions_enabled="no"
5017 # Check whether --enable-werror was given.
5018 if test "${enable_werror+set}" = set; then
5019 enableval=$enable_werror;
5024 case "$enableval" in
5025 yes) ENABLE_WERROR=1
5029 default) ENABLE_WERROR=0
5031 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5032 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5033 { (exit 1); exit 1; }; } ;;
5036 # Check whether --enable-expensive-checks was given.
5037 if test "${enable_expensive_checks+set}" = set; then
5038 enableval=$enable_expensive_checks;
5043 if test ${enableval} = "yes" ; then
5044 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5046 EXPENSIVE_CHECKS=yes
5049 ENABLE_EXPENSIVE_CHECKS=
5055 # Check whether --enable-abi-breaking-checks was given.
5056 if test "${enable_abi_breaking_checks+set}" = set; then
5057 enableval=$enable_abi_breaking_checks;
5059 enableval="with-asserts"
5062 case "$enableval" in
5063 with-asserts) if test ${assertions_enabled} = "yes" ; then
5065 cat >>confdefs.h <<\_ACEOF
5066 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5069 ENABLE_ABI_BREAKING_CHECKS=1
5072 ENABLE_ABI_BREAKING_CHECKS=0
5077 cat >>confdefs.h <<\_ACEOF
5078 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5081 ENABLE_ABI_BREAKING_CHECKS=1
5085 ENABLE_ABI_BREAKING_CHECKS=0
5088 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&5
5089 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks. Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5090 { (exit 1); exit 1; }; }
5093 # Check whether --enable-debug-runtime was given.
5094 if test "${enable_debug_runtime+set}" = set; then
5095 enableval=$enable_debug_runtime;
5100 if test ${enableval} = "no" ; then
5104 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5108 # Check whether --enable-debug-symbols was given.
5109 if test "${enable_debug_symbols+set}" = set; then
5110 enableval=$enable_debug_symbols;
5115 if test ${enableval} = "no" ; then
5119 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5123 # Check whether --enable-keep-symbols was given.
5124 if test "${enable_keep_symbols+set}" = set; then
5125 enableval=$enable_keep_symbols;
5130 if test ${enableval} = "no" ; then
5134 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5138 # Check whether --enable-jit was given.
5139 if test "${enable_jit+set}" = set; then
5140 enableval=$enable_jit;
5145 if test ${enableval} = "no"
5150 case "$llvm_cv_target_arch" in
5151 x86) TARGET_HAS_JIT=1
5153 Sparc) TARGET_HAS_JIT=0
5155 PowerPC) TARGET_HAS_JIT=1
5157 x86_64) TARGET_HAS_JIT=1
5159 ARM) TARGET_HAS_JIT=1
5161 Mips) TARGET_HAS_JIT=1
5163 XCore) TARGET_HAS_JIT=0
5165 MSP430) TARGET_HAS_JIT=0
5167 Hexagon) TARGET_HAS_JIT=0
5169 NVPTX) TARGET_HAS_JIT=0
5171 SystemZ) TARGET_HAS_JIT=1
5178 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5179 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5182 # Check whether --enable-docs was given.
5183 if test "${enable_docs+set}" = set; then
5184 enableval=$enable_docs;
5189 case "$enableval" in
5194 default) ENABLE_DOCS=1
5196 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5197 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5198 { (exit 1); exit 1; }; } ;;
5201 # Check whether --enable-doxygen was given.
5202 if test "${enable_doxygen+set}" = set; then
5203 enableval=$enable_doxygen;
5208 case "$enableval" in
5209 yes) ENABLE_DOXYGEN=1
5211 no|default) ENABLE_DOXYGEN=0
5213 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5215 { (exit 1); exit 1; }; } ;;
5218 # Check whether --enable-doxygen-search was given.
5219 if test "${enable_doxygen_search+set}" = set; then
5220 enableval=$enable_doxygen_search;
5225 ENABLE_DOXYGEN_SEARCH="$enableval"
5227 case "$enableval" in
5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
5234 # Check whether --enable-doxygen-external-search was given.
5235 if test "${enable_doxygen_external_search+set}" = set; then
5236 enableval=$enable_doxygen_external_search;
5241 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5243 case "$enableval" in
5245 case "$ENABLE_DOXYGEN_SEARCH" in
5246 yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5247 no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5248 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5249 { (exit 1); exit 1; }; } ;;
5253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; } ;;
5259 # Check whether --with-doxygen-search-engine-url was given.
5260 if test "${with_doxygen_search_engine_url+set}" = set; then
5261 withval=$with_doxygen_search_engine_url;
5264 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5267 # Check whether --with-doxygen-search-mappings was given.
5268 if test "${with_doxygen_search_mappings+set}" = set; then
5269 withval=$with_doxygen_search_mappings;
5272 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5274 case "$ENABLE_DOXYGEN_SEARCH" in
5276 if test "$ENABLE_DOXYGEN" = "0" ; then
5277 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5278 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5279 { (exit 1); exit 1; }; }
5282 enable_searchengine=YES
5285 case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5287 enable_external_search=YES
5289 enable_server_based_search=YES
5291 searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5293 extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5298 enable_external_search=NO
5300 enable_server_based_search=NO
5309 enable_searchengine=NO
5312 enable_server_based_search=NO
5314 enable_external_search=NO
5320 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5321 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5322 { (exit 1); exit 1; }; }
5326 # Check whether --enable-doxygen-qt-help was given.
5327 if test "${enable_doxygen_qt_help+set}" = set; then
5328 enableval=$enable_doxygen_qt_help;
5333 case "$enableval" in
5335 if test "$ENABLE_DOXYGEN" = "0" ; then
5336 { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5337 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5338 { (exit 1); exit 1; }; }
5341 # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5342 set dummy qhelpgenerator; ac_word=$2
5343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5345 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 case $QHELPGENERATOR in
5350 ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5372 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5373 if test -n "$QHELPGENERATOR"; then
5374 { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5375 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5377 { echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6; }
5383 llvm_doxygen_generate_qhp=YES
5385 llvm_doxygen_qch_filename=org.llvm.qch
5387 llvm_doxygen_qhp_namespace=org.llvm
5389 llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5391 llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5393 llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5396 clang_doxygen_generate_qhp=YES
5398 clang_doxygen_qch_filename=org.llvm.clang.qch
5400 clang_doxygen_qhp_namespace=org.llvm.clang
5402 clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5404 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5406 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5411 llvm_doxygen_generate_qhp=NO
5419 clang_doxygen_generate_qhp=NO
5424 clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5426 clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5431 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5432 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5433 { (exit 1); exit 1; }; } ;;
5436 # Check whether --enable-threads was given.
5437 if test "${enable_threads+set}" = set; then
5438 enableval=$enable_threads;
5443 case "$enableval" in
5444 yes) LLVM_ENABLE_THREADS=1
5446 no) LLVM_ENABLE_THREADS=0
5448 default) LLVM_ENABLE_THREADS=1
5450 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5451 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5452 { (exit 1); exit 1; }; } ;;
5455 cat >>confdefs.h <<_ACEOF
5456 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5460 # Check whether --enable-pthreads was given.
5461 if test "${enable_pthreads+set}" = set; then
5462 enableval=$enable_pthreads;
5467 case "$enableval" in
5468 yes) ENABLE_PTHREADS=1
5470 no) ENABLE_PTHREADS=0
5472 default) ENABLE_PTHREADS=1
5474 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5475 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5476 { (exit 1); exit 1; }; } ;;
5479 # Check whether --enable-zlib was given.
5480 if test "${enable_zlib+set}" = set; then
5481 enableval=$enable_zlib;
5486 case "$enableval" in
5487 yes) LLVM_ENABLE_ZLIB=1
5489 no) LLVM_ENABLE_ZLIB=0
5491 default) LLVM_ENABLE_ZLIB=1
5493 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5494 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5495 { (exit 1); exit 1; }; } ;;
5498 cat >>confdefs.h <<_ACEOF
5499 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5503 # Check whether --enable-pic was given.
5504 if test "${enable_pic+set}" = set; then
5505 enableval=$enable_pic;
5510 case "$enableval" in
5515 default) ENABLE_PIC=1
5517 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5518 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5519 { (exit 1); exit 1; }; } ;;
5522 cat >>confdefs.h <<_ACEOF
5523 #define ENABLE_PIC $ENABLE_PIC
5527 # Check whether --enable-shared was given.
5528 if test "${enable_shared+set}" = set; then
5529 enableval=$enable_shared;
5534 case "$enableval" in
5535 yes) ENABLE_SHARED=1
5539 default) ENABLE_SHARED=0
5541 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5542 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5543 { (exit 1); exit 1; }; } ;;
5546 # Check whether --enable-embed-stdcxx was given.
5547 if test "${enable_embed_stdcxx+set}" = set; then
5548 enableval=$enable_embed_stdcxx;
5553 case "$enableval" in
5554 yes) ENABLE_EMBED_STDCXX=1
5556 no) ENABLE_EMBED_STDCXX=0
5558 default) ENABLE_EMBED_STDCXX=0
5560 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5561 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5562 { (exit 1); exit 1; }; } ;;
5565 # Check whether --enable-timestamps was given.
5566 if test "${enable_timestamps+set}" = set; then
5567 enableval=$enable_timestamps;
5572 case "$enableval" in
5573 yes) ENABLE_TIMESTAMPS=1
5575 no) ENABLE_TIMESTAMPS=0
5577 default) ENABLE_TIMESTAMPS=1
5579 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5580 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5581 { (exit 1); exit 1; }; } ;;
5584 cat >>confdefs.h <<_ACEOF
5585 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5589 # Check whether --enable-backtraces was given.
5590 if test "${enable_backtraces+set}" = set; then
5591 enableval=$enable_backtraces; case "$enableval" in
5592 yes) llvm_cv_enable_backtraces="yes" ;;
5593 no) llvm_cv_enable_backtraces="no" ;;
5594 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5595 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5596 { (exit 1); exit 1; }; } ;;
5599 llvm_cv_enable_backtraces="yes"
5602 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5604 cat >>confdefs.h <<\_ACEOF
5605 #define ENABLE_BACKTRACES 1
5610 # Check whether --enable-crash-overrides was given.
5611 if test "${enable_crash_overrides+set}" = set; then
5612 enableval=$enable_crash_overrides; case "$enableval" in
5613 yes) llvm_cv_enable_crash_overrides="yes" ;;
5614 no) llvm_cv_enable_crash_overrides="no" ;;
5615 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5616 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5617 { (exit 1); exit 1; }; } ;;
5620 llvm_cv_enable_crash_overrides="yes"
5623 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5625 cat >>confdefs.h <<\_ACEOF
5626 #define ENABLE_CRASH_OVERRIDES 1
5631 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600 BPF"
5632 ALL_TARGETS=$ALL_TARGETS
5636 # Check whether --enable-targets was given.
5637 if test "${enable_targets+set}" = set; then
5638 enableval=$enable_targets;
5643 if test "$enableval" = host-only ; then
5646 case "$enableval" in
5647 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5648 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5650 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5651 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5652 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5653 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5654 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5655 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5656 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5657 bpf) TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
5658 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5659 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5660 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5661 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5662 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5663 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5664 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5665 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5666 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5667 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5668 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5669 host) case "$llvm_cv_target_arch" in
5670 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5671 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5672 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5673 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5674 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5675 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5676 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5677 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5678 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5679 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5680 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5681 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5682 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5683 echo "$as_me: error: Can not set target to build" >&2;}
5684 { (exit 1); exit 1; }; } ;;
5686 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5687 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5688 { (exit 1); exit 1; }; } ;;
5694 # Check whether --enable-experimental-targets was given.
5695 if test "${enable_experimental_targets+set}" = set; then
5696 enableval=$enable_experimental_targets;
5702 if test ${enableval} != "disable"
5704 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5707 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5710 for a_target in $TARGETS_TO_BUILD; do
5711 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5713 cat >>confdefs.h <<_ACEOF
5714 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5717 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5718 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5719 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5720 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5721 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5722 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5724 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5725 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5728 cat >>confdefs.h <<_ACEOF
5729 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5733 cat >>confdefs.h <<_ACEOF
5734 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5738 cat >>confdefs.h <<_ACEOF
5739 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5743 cat >>confdefs.h <<_ACEOF
5744 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5747 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5749 cat >>confdefs.h <<_ACEOF
5750 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5754 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5756 cat >>confdefs.h <<_ACEOF
5757 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5764 LLVM_ENUM_TARGETS=""
5765 LLVM_ENUM_ASM_PRINTERS=""
5766 LLVM_ENUM_ASM_PARSERS=""
5767 LLVM_ENUM_DISASSEMBLERS=""
5768 for target_to_build in $TARGETS_TO_BUILD; do
5769 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5770 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5771 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5773 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5774 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5776 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5777 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5786 # Check whether --with-optimize-option was given.
5787 if test "${with_optimize_option+set}" = set; then
5788 withval=$with_optimize_option;
5793 { echo "$as_me:$LINENO: checking optimization flags" >&5
5794 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5797 case "$llvm_cv_os_type" in
5798 FreeBSD) optimize_option=-O2 ;;
5799 MingW) optimize_option=-O2 ;;
5800 *) optimize_option=-O3 ;;
5802 *) optimize_option="$withval" ;;
5804 OPTIMIZE_OPTION=$optimize_option
5806 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5807 echo "${ECHO_T}$optimize_option" >&6; }
5810 # Check whether --with-extra-options was given.
5811 if test "${with_extra_options+set}" = set; then
5812 withval=$with_extra_options;
5818 default) EXTRA_OPTIONS= ;;
5819 *) EXTRA_OPTIONS=$withval ;;
5821 EXTRA_OPTIONS=$EXTRA_OPTIONS
5825 # Check whether --with-extra-ld-options was given.
5826 if test "${with_extra_ld_options+set}" = set; then
5827 withval=$with_extra_ld_options;
5833 default) EXTRA_LD_OPTIONS= ;;
5834 *) EXTRA_LD_OPTIONS=$withval ;;
5836 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5839 # Check whether --enable-bindings was given.
5840 if test "${enable_bindings+set}" = set; then
5841 enableval=$enable_bindings;
5846 BINDINGS_TO_BUILD=""
5847 case "$enableval" in
5848 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5849 all ) BINDINGS_TO_BUILD="ocaml" ;;
5850 none | no) BINDINGS_TO_BUILD="" ;;
5851 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5852 case "$a_binding" in
5853 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5854 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5855 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5856 { (exit 1); exit 1; }; } ;;
5863 # Check whether --with-ocaml-libdir was given.
5864 if test "${with_ocaml_libdir+set}" = set; then
5865 withval=$with_ocaml_libdir;
5871 auto) with_ocaml_libdir="$withval" ;;
5872 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5873 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5874 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5875 { (exit 1); exit 1; }; } ;;
5879 # Check whether --with-clang-srcdir was given.
5880 if test "${with_clang_srcdir+set}" = set; then
5881 withval=$with_clang_srcdir;
5887 -) clang_src_root="" ;;
5888 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5889 *) clang_src_root="$ac_pwd/$withval" ;;
5891 CLANG_SRC_ROOT=$clang_src_root
5895 # Check whether --with-clang-resource-dir was given.
5896 if test "${with_clang_resource_dir+set}" = set; then
5897 withval=$with_clang_resource_dir;
5903 cat >>confdefs.h <<_ACEOF
5904 #define CLANG_RESOURCE_DIR "$withval"
5909 # Check whether --with-c-include-dirs was given.
5910 if test "${with_c_include_dirs+set}" = set; then
5911 withval=$with_c_include_dirs;
5917 cat >>confdefs.h <<_ACEOF
5918 #define C_INCLUDE_DIRS "$withval"
5922 # Clang normally uses the system c++ headers and libraries. With this option,
5923 # clang will use the ones provided by a gcc installation instead. This option should
5924 # be passed the same value that was used with --prefix when configuring gcc.
5926 # Check whether --with-gcc-toolchain was given.
5927 if test "${with_gcc_toolchain+set}" = set; then
5928 withval=$with_gcc_toolchain;
5934 cat >>confdefs.h <<_ACEOF
5935 #define GCC_INSTALL_PREFIX "$withval"
5940 # Check whether --with-default-sysroot was given.
5941 if test "${with_default_sysroot+set}" = set; then
5942 withval=$with_default_sysroot;
5948 cat >>confdefs.h <<_ACEOF
5949 #define DEFAULT_SYSROOT "$withval"
5954 # Check whether --with-clang-default-openmp-runtime was given.
5955 if test "${with_clang_default_openmp_runtime+set}" = set; then
5956 withval=$with_clang_default_openmp_runtime;
5962 cat >>confdefs.h <<_ACEOF
5963 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5968 # Check whether --with-binutils-include was given.
5969 if test "${with_binutils_include+set}" = set; then
5970 withval=$with_binutils_include;
5976 default) WITH_BINUTILS_INCDIR=default ;;
5977 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5978 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5979 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5980 { (exit 1); exit 1; }; } ;;
5982 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5983 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5985 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5986 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5987 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5988 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5989 { (exit 1); exit 1; }; };
5994 # Check whether --with-bug-report-url was given.
5995 if test "${with_bug_report_url+set}" = set; then
5996 withval=$with_bug_report_url;
5998 withval="http://llvm.org/bugs/"
6002 cat >>confdefs.h <<_ACEOF
6003 #define BUG_REPORT_URL "$withval"
6007 # Check whether --enable-terminfo was given.
6008 if test "${enable_terminfo+set}" = set; then
6009 enableval=$enable_terminfo; case "$enableval" in
6010 yes) llvm_cv_enable_terminfo="yes" ;;
6011 no) llvm_cv_enable_terminfo="no" ;;
6012 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6013 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6014 { (exit 1); exit 1; }; } ;;
6017 llvm_cv_enable_terminfo="yes"
6020 case "$llvm_cv_enable_terminfo" in
6021 yes) ENABLE_TERMINFO=1
6023 no) ENABLE_TERMINFO=0
6027 # Check whether --enable-libedit was given.
6028 if test "${enable_libedit+set}" = set; then
6029 enableval=$enable_libedit; case "$enableval" in
6030 yes) llvm_cv_enable_libedit="yes" ;;
6031 no) llvm_cv_enable_libedit="no" ;;
6032 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6033 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6034 { (exit 1); exit 1; }; } ;;
6037 llvm_cv_enable_libedit="yes"
6041 # Check whether --enable-libffi was given.
6042 if test "${enable_libffi+set}" = set; then
6043 enableval=$enable_libffi; case "$enableval" in
6044 yes) llvm_cv_enable_libffi="yes" ;;
6045 no) llvm_cv_enable_libffi="no" ;;
6046 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6047 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6048 { (exit 1); exit 1; }; } ;;
6051 llvm_cv_enable_libffi=no
6056 # Check whether --with-internal-prefix was given.
6057 if test "${with_internal_prefix+set}" = set; then
6058 withval=$with_internal_prefix;
6063 INTERNAL_PREFIX=$withval
6067 { echo "$as_me:$LINENO: checking for GNU make" >&5
6068 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6069 if test "${llvm_cv_gnu_make_command+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 llvm_cv_gnu_make_command=''
6073 for a in "$MAKE" make gmake gnumake ; do
6074 if test -z "$a" ; then continue ; fi ;
6075 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6077 llvm_cv_gnu_make_command=$a ;
6082 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6083 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6084 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6088 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6089 echo "${ECHO_T}\"Not found\"" >&6; };
6093 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6094 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6096 if test "$LN_S" = "ln -s"; then
6097 { echo "$as_me:$LINENO: result: yes" >&5
6098 echo "${ECHO_T}yes" >&6; }
6100 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6101 echo "${ECHO_T}no, using $LN_S" >&6; }
6104 # Extract the first word of "nm", so it can be a program name with args.
6105 set dummy nm; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_path_NM+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 ac_cv_path_NM="$NM" # Let the user override the test with a path.
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6123 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6136 if test -n "$NM"; then
6137 { echo "$as_me:$LINENO: result: $NM" >&5
6138 echo "${ECHO_T}$NM" >&6; }
6140 { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6145 # Extract the first word of "cmp", so it can be a program name with args.
6146 set dummy cmp; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_path_CMP+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6177 if test -n "$CMP"; then
6178 { echo "$as_me:$LINENO: result: $CMP" >&5
6179 echo "${ECHO_T}$CMP" >&6; }
6181 { echo "$as_me:$LINENO: result: no" >&5
6182 echo "${ECHO_T}no" >&6; }
6186 # Extract the first word of "cp", so it can be a program name with args.
6187 set dummy cp; ac_word=$2
6188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190 if test "${ac_cv_path_CP+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6205 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6218 if test -n "$CP"; then
6219 { echo "$as_me:$LINENO: result: $CP" >&5
6220 echo "${ECHO_T}$CP" >&6; }
6222 { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6227 # Extract the first word of "date", so it can be a program name with args.
6228 set dummy date; ac_word=$2
6229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231 if test "${ac_cv_path_DATE+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6258 DATE=$ac_cv_path_DATE
6259 if test -n "$DATE"; then
6260 { echo "$as_me:$LINENO: result: $DATE" >&5
6261 echo "${ECHO_T}$DATE" >&6; }
6263 { echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6; }
6268 # Extract the first word of "find", so it can be a program name with args.
6269 set dummy find; ac_word=$2
6270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6272 if test "${ac_cv_path_FIND+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6299 FIND=$ac_cv_path_FIND
6300 if test -n "$FIND"; then
6301 { echo "$as_me:$LINENO: result: $FIND" >&5
6302 echo "${ECHO_T}$FIND" >&6; }
6304 { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6309 # Extract the first word of "grep", so it can be a program name with args.
6310 set dummy grep; ac_word=$2
6311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313 if test "${ac_cv_path_GREP+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6340 GREP=$ac_cv_path_GREP
6341 if test -n "$GREP"; then
6342 { echo "$as_me:$LINENO: result: $GREP" >&5
6343 echo "${ECHO_T}$GREP" >&6; }
6345 { echo "$as_me:$LINENO: result: no" >&5
6346 echo "${ECHO_T}no" >&6; }
6350 # Extract the first word of "mkdir", so it can be a program name with args.
6351 set dummy mkdir; ac_word=$2
6352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6354 if test "${ac_cv_path_MKDIR+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6369 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6381 MKDIR=$ac_cv_path_MKDIR
6382 if test -n "$MKDIR"; then
6383 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6384 echo "${ECHO_T}$MKDIR" >&6; }
6386 { echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6; }
6391 # Extract the first word of "mv", so it can be a program name with args.
6392 set dummy mv; ac_word=$2
6393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395 if test "${ac_cv_path_MV+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6423 if test -n "$MV"; then
6424 { echo "$as_me:$LINENO: result: $MV" >&5
6425 echo "${ECHO_T}$MV" >&6; }
6427 { echo "$as_me:$LINENO: result: no" >&5
6428 echo "${ECHO_T}no" >&6; }
6432 if test -n "$ac_tool_prefix"; then
6433 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6434 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6437 if test "${ac_cv_prog_RANLIB+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 if test -n "$RANLIB"; then
6441 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 RANLIB=$ac_cv_prog_RANLIB
6461 if test -n "$RANLIB"; then
6462 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6463 echo "${ECHO_T}$RANLIB" >&6; }
6465 { echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6; }
6471 if test -z "$ac_cv_prog_RANLIB"; then
6472 ac_ct_RANLIB=$RANLIB
6473 # Extract the first word of "ranlib", so it can be a program name with args.
6474 set dummy ranlib; ac_word=$2
6475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6477 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 if test -n "$ac_ct_RANLIB"; then
6481 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6490 ac_cv_prog_ac_ct_RANLIB="ranlib"
6491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6501 if test -n "$ac_ct_RANLIB"; then
6502 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6503 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6505 { echo "$as_me:$LINENO: result: no" >&5
6506 echo "${ECHO_T}no" >&6; }
6509 if test "x$ac_ct_RANLIB" = x; then
6512 case $cross_compiling:$ac_tool_warned in
6514 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6515 whose name does not start with the host triplet. If you think this
6516 configuration is useful to you, please write to autoconf@gnu.org." >&5
6517 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6518 whose name does not start with the host triplet. If you think this
6519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6520 ac_tool_warned=yes ;;
6522 RANLIB=$ac_ct_RANLIB
6525 RANLIB="$ac_cv_prog_RANLIB"
6528 if test -n "$ac_tool_prefix"; then
6529 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6530 set dummy ${ac_tool_prefix}ar; ac_word=$2
6531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6533 if test "${ac_cv_prog_AR+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 if test -n "$AR"; then
6537 ac_cv_prog_AR="$AR" # Let the user override the test.
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6546 ac_cv_prog_AR="${ac_tool_prefix}ar"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 if test -n "$AR"; then
6558 { echo "$as_me:$LINENO: result: $AR" >&5
6559 echo "${ECHO_T}$AR" >&6; }
6561 { echo "$as_me:$LINENO: result: no" >&5
6562 echo "${ECHO_T}no" >&6; }
6567 if test -z "$ac_cv_prog_AR"; then
6569 # Extract the first word of "ar", so it can be a program name with args.
6570 set dummy ar; ac_word=$2
6571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6573 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 if test -n "$ac_ct_AR"; then
6577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_prog_ac_ct_AR="ar"
6587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6597 if test -n "$ac_ct_AR"; then
6598 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6599 echo "${ECHO_T}$ac_ct_AR" >&6; }
6601 { echo "$as_me:$LINENO: result: no" >&5
6602 echo "${ECHO_T}no" >&6; }
6605 if test "x$ac_ct_AR" = x; then
6608 case $cross_compiling:$ac_tool_warned in
6610 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6611 whose name does not start with the host triplet. If you think this
6612 configuration is useful to you, please write to autoconf@gnu.org." >&5
6613 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6614 whose name does not start with the host triplet. If you think this
6615 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6616 ac_tool_warned=yes ;;
6624 # Extract the first word of "rm", so it can be a program name with args.
6625 set dummy rm; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_path_RM+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6656 if test -n "$RM"; then
6657 { echo "$as_me:$LINENO: result: $RM" >&5
6658 echo "${ECHO_T}$RM" >&6; }
6660 { echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6; }
6665 # Extract the first word of "sed", so it can be a program name with args.
6666 set dummy sed; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_path_SED+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6697 if test -n "$SED"; then
6698 { echo "$as_me:$LINENO: result: $SED" >&5
6699 echo "${ECHO_T}$SED" >&6; }
6701 { echo "$as_me:$LINENO: result: no" >&5
6702 echo "${ECHO_T}no" >&6; }
6706 # Extract the first word of "tar", so it can be a program name with args.
6707 set dummy tar; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_path_TAR+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6738 if test -n "$TAR"; then
6739 { echo "$as_me:$LINENO: result: $TAR" >&5
6740 echo "${ECHO_T}$TAR" >&6; }
6742 { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6747 # Extract the first word of "pwd", so it can be a program name with args.
6748 set dummy pwd; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_path_BINPWD+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6766 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6778 BINPWD=$ac_cv_path_BINPWD
6779 if test -n "$BINPWD"; then
6780 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6781 echo "${ECHO_T}$BINPWD" >&6; }
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6789 # Extract the first word of "dot", so it can be a program name with args.
6790 set dummy dot; ac_word=$2
6791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6793 if test "${ac_cv_path_DOT+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6808 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6821 if test -n "$DOT"; then
6822 { echo "$as_me:$LINENO: result: $DOT" >&5
6823 echo "${ECHO_T}$DOT" >&6; }
6825 { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6830 if test "$DOT" != "echo dot" ; then
6832 cat >>confdefs.h <<\_ACEOF
6836 if test "$llvm_cv_os_type" = "MingW" ; then
6837 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6840 cat >>confdefs.h <<_ACEOF
6841 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6846 # Find a good install program. We prefer a C program (faster),
6847 # so one script is as good as another. But avoid the broken or
6848 # incompatible versions:
6849 # SysV /etc/install, /usr/sbin/install
6850 # SunOS /usr/etc/install
6851 # IRIX /sbin/install
6853 # AmigaOS /C/install, which installs bootblocks on floppy discs
6854 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6855 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6856 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6857 # OS/2's system install, which has a completely different semantic
6858 # ./install, which can be erroneously created by make from ./install.sh.
6859 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6860 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6861 if test -z "$INSTALL"; then
6862 if test "${ac_cv_path_install+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 # Account for people who put trailing slashes in PATH elements.
6872 ./ | .// | /cC/* | \
6873 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6874 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6877 # OSF1 and SCO ODT 3.0 have their own names for install.
6878 # Don't use installbsd from OSF since it installs stuff as root
6880 for ac_prog in ginstall scoinst install; do
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6883 if test $ac_prog = install &&
6884 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6885 # AIX install. It has an incompatible calling convention.
6887 elif test $ac_prog = install &&
6888 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6889 # program-specific install script used by HP pwplus--don't use.
6892 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6905 if test "${ac_cv_path_install+set}" = set; then
6906 INSTALL=$ac_cv_path_install
6908 # As a last resort, use the slow shell script. Don't cache a
6909 # value for INSTALL within a source directory, because that will
6910 # break other packages using the cache if that directory is
6911 # removed, or if the value is a relative name.
6912 INSTALL=$ac_install_sh
6915 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6916 echo "${ECHO_T}$INSTALL" >&6; }
6918 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6919 # It thinks the first close brace ends the variable substitution.
6920 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6922 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6924 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6927 [\\/$]* | ?:[\\/]* ) ;;
6928 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6931 # Extract the first word of "bzip2", so it can be a program name with args.
6932 set dummy bzip2; ac_word=$2
6933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6935 if test "${ac_cv_path_BZIP2+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6950 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 BZIP2=$ac_cv_path_BZIP2
6962 if test -n "$BZIP2"; then
6963 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6964 echo "${ECHO_T}$BZIP2" >&6; }
6966 { echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6; }
6971 # Extract the first word of "cat", so it can be a program name with args.
6972 set dummy cat; ac_word=$2
6973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975 if test "${ac_cv_path_CAT+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 if test -n "$CAT"; then
7003 { echo "$as_me:$LINENO: result: $CAT" >&5
7004 echo "${ECHO_T}$CAT" >&6; }
7006 { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7011 # Extract the first word of "doxygen", so it can be a program name with args.
7012 set dummy doxygen; ac_word=$2
7013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7030 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 DOXYGEN=$ac_cv_path_DOXYGEN
7042 if test -n "$DOXYGEN"; then
7043 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7044 echo "${ECHO_T}$DOXYGEN" >&6; }
7046 { echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6; }
7051 # Extract the first word of "groff", so it can be a program name with args.
7052 set dummy groff; ac_word=$2
7053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7055 if test "${ac_cv_path_GROFF+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 GROFF=$ac_cv_path_GROFF
7082 if test -n "$GROFF"; then
7083 { echo "$as_me:$LINENO: result: $GROFF" >&5
7084 echo "${ECHO_T}$GROFF" >&6; }
7086 { echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6; }
7091 # Extract the first word of "gzip", so it can be a program name with args.
7092 set dummy gzip; ac_word=$2
7093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7095 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7110 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 GZIPBIN=$ac_cv_path_GZIPBIN
7122 if test -n "$GZIPBIN"; then
7123 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7124 echo "${ECHO_T}$GZIPBIN" >&6; }
7126 { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7131 # Extract the first word of "pdfroff", so it can be a program name with args.
7132 set dummy pdfroff; ac_word=$2
7133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135 if test "${ac_cv_path_PDFROFF+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 PDFROFF=$ac_cv_path_PDFROFF
7162 if test -n "$PDFROFF"; then
7163 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7164 echo "${ECHO_T}$PDFROFF" >&6; }
7166 { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7171 # Extract the first word of "zip", so it can be a program name with args.
7172 set dummy zip; ac_word=$2
7173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175 if test "${ac_cv_path_ZIP+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 if test -n "$ZIP"; then
7203 { echo "$as_me:$LINENO: result: $ZIP" >&5
7204 echo "${ECHO_T}$ZIP" >&6; }
7206 { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7211 # Extract the first word of "go", so it can be a program name with args.
7212 set dummy go; ac_word=$2
7213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215 if test "${ac_cv_path_GO+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 ac_cv_path_GO="$GO" # Let the user override the test with a path.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 if test -n "$GO"; then
7243 { echo "$as_me:$LINENO: result: $GO" >&5
7244 echo "${ECHO_T}$GO" >&6; }
7246 { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7251 for ac_prog in ocamlfind
7253 # Extract the first word of "$ac_prog", so it can be a program name with args.
7254 set dummy $ac_prog; ac_word=$2
7255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 OCAMLFIND=$ac_cv_path_OCAMLFIND
7284 if test -n "$OCAMLFIND"; then
7285 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7286 echo "${ECHO_T}$OCAMLFIND" >&6; }
7288 { echo "$as_me:$LINENO: result: no" >&5
7289 echo "${ECHO_T}no" >&6; }
7293 test -n "$OCAMLFIND" && break
7296 for ac_prog in gas as
7298 # Extract the first word of "$ac_prog", so it can be a program name with args.
7299 set dummy $ac_prog; ac_word=$2
7300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7302 if test "${ac_cv_path_GAS+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7317 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 if test -n "$GAS"; then
7330 { echo "$as_me:$LINENO: result: $GAS" >&5
7331 echo "${ECHO_T}$GAS" >&6; }
7333 { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7338 test -n "$GAS" && break
7342 { echo "$as_me:$LINENO: checking for linker version" >&5
7343 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7344 if test "${llvm_cv_link_version+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7351 if (echo "$version_string" | grep -q "ld64"); then
7352 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7354 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7358 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7359 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7361 cat >>confdefs.h <<_ACEOF
7362 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7368 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7369 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7370 if test "${llvm_cv_link_use_r+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 ac_cpp='$CPP $CPPFLAGS'
7375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380 CFLAGS="$CFLAGS -Wl,-R."
7381 cat >conftest.$ac_ext <<_ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7396 rm -f conftest.$ac_objext conftest$ac_exeext
7397 if { (ac_try="$ac_link"
7399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400 *) ac_try_echo=$ac_try;;
7402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403 (eval "$ac_link") 2>conftest.er1
7405 grep -v '^ *+' conftest.er1 >conftest.err
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } &&
7410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7411 { (case "(($ac_try" in
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_try") 2>&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; } &&
7420 { ac_try='test -s conftest$ac_exeext'
7421 { (case "(($ac_try" in
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426 (eval "$ac_try") 2>&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 llvm_cv_link_use_r=yes
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 llvm_cv_link_use_r=no
7438 rm -f core conftest.err conftest.$ac_objext \
7439 conftest$ac_exeext conftest.$ac_ext
7442 ac_cpp='$CPP $CPPFLAGS'
7443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7449 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7450 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7451 if test "$llvm_cv_link_use_r" = yes ; then
7453 cat >>confdefs.h <<\_ACEOF
7454 #define HAVE_LINK_R 1
7460 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7461 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7462 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 ac_cpp='$CPP $CPPFLAGS'
7467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7472 CFLAGS="$CFLAGS -rdynamic"
7473 cat >conftest.$ac_ext <<_ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7488 rm -f conftest.$ac_objext conftest$ac_exeext
7489 if { (ac_try="$ac_link"
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_link") 2>conftest.er1
7497 grep -v '^ *+' conftest.er1 >conftest.err
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } &&
7502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7503 { (case "(($ac_try" in
7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508 (eval "$ac_try") 2>&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; } &&
7512 { ac_try='test -s conftest$ac_exeext'
7513 { (case "(($ac_try" in
7514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7518 (eval "$ac_try") 2>&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7522 llvm_cv_link_use_export_dynamic=yes
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 llvm_cv_link_use_export_dynamic=no
7530 rm -f core conftest.err conftest.$ac_objext \
7531 conftest$ac_exeext conftest.$ac_ext
7534 ac_cpp='$CPP $CPPFLAGS'
7535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7541 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7542 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7543 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7545 cat >>confdefs.h <<\_ACEOF
7546 #define HAVE_LINK_EXPORT_DYNAMIC 1
7552 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7553 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7554 if test "${llvm_cv_link_use_version_script+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 ac_cpp='$CPP $CPPFLAGS'
7559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7565 # The following code is from the autoconf manual,
7566 # "11.13: Limitations of Usual Tools".
7567 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7568 # Use mktemp if possible; otherwise fall back on mkdir,
7569 # with $RANDOM to make collisions less likely.
7573 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7575 test -n "$tmp" && test -d "$tmp"
7577 tmp=$TMPDIR/foo$$-$RANDOM
7578 (umask 077 && mkdir "$tmp")
7581 echo "{" > "$tmp/export.map"
7582 echo " global: main;" >> "$tmp/export.map"
7583 echo " local: *;" >> "$tmp/export.map"
7584 echo "};" >> "$tmp/export.map"
7586 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7587 cat >conftest.$ac_ext <<_ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7602 rm -f conftest.$ac_objext conftest$ac_exeext
7603 if { (ac_try="$ac_link"
7605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7606 *) ac_try_echo=$ac_try;;
7608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7609 (eval "$ac_link") 2>conftest.er1
7611 grep -v '^ *+' conftest.er1 >conftest.err
7613 cat conftest.err >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } &&
7616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7617 { (case "(($ac_try" in
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622 (eval "$ac_try") 2>&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; } &&
7626 { ac_try='test -s conftest$ac_exeext'
7627 { (case "(($ac_try" in
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_try") 2>&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 llvm_cv_link_use_version_script=yes
7638 echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7641 llvm_cv_link_use_version_script=no
7644 rm -f core conftest.err conftest.$ac_objext \
7645 conftest$ac_exeext conftest.$ac_ext
7646 rm "$tmp/export.map"
7650 ac_cpp='$CPP $CPPFLAGS'
7651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7658 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7659 if test "$llvm_cv_link_use_version_script" = yes ; then
7660 HAVE_LINK_VERSION_SCRIPT=1
7666 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7667 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7668 if test "${ac_cv_path_GREP+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 # Extract the first word of "grep ggrep" to use in msg output
7672 if test -z "$GREP"; then
7673 set dummy grep ggrep; ac_prog_name=$2
7674 if test "${ac_cv_path_GREP+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 ac_path_GREP_found=false
7678 # Loop through the user's path and test for each of PROGNAME-LIST
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7683 test -z "$as_dir" && as_dir=.
7684 for ac_prog in grep ggrep; do
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7687 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7688 # Check for GNU ac_path_GREP and select it if it is found.
7689 # Check for GNU $ac_path_GREP
7690 case `"$ac_path_GREP" --version 2>&1` in
7692 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7695 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7698 cat "conftest.in" "conftest.in" >"conftest.tmp"
7699 mv "conftest.tmp" "conftest.in"
7700 cp "conftest.in" "conftest.nl"
7701 echo 'GREP' >> "conftest.nl"
7702 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7704 ac_count=`expr $ac_count + 1`
7705 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7706 # Best one so far, save it but keep looking for a better one
7707 ac_cv_path_GREP="$ac_path_GREP"
7708 ac_path_GREP_max=$ac_count
7710 # 10*(2^10) chars as input seems more than enough
7711 test $ac_count -gt 10 && break
7713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7717 $ac_path_GREP_found && break 3
7727 GREP="$ac_cv_path_GREP"
7728 if test -z "$GREP"; then
7729 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7730 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7731 { (exit 1); exit 1; }; }
7735 ac_cv_path_GREP=$GREP
7740 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7741 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7742 GREP="$ac_cv_path_GREP"
7745 { echo "$as_me:$LINENO: checking for egrep" >&5
7746 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7747 if test "${ac_cv_path_EGREP+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7751 then ac_cv_path_EGREP="$GREP -E"
7753 # Extract the first word of "egrep" to use in msg output
7754 if test -z "$EGREP"; then
7755 set dummy egrep; ac_prog_name=$2
7756 if test "${ac_cv_path_EGREP+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 ac_path_EGREP_found=false
7760 # Loop through the user's path and test for each of PROGNAME-LIST
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7765 test -z "$as_dir" && as_dir=.
7766 for ac_prog in egrep; do
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7769 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7770 # Check for GNU ac_path_EGREP and select it if it is found.
7771 # Check for GNU $ac_path_EGREP
7772 case `"$ac_path_EGREP" --version 2>&1` in
7774 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7777 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7780 cat "conftest.in" "conftest.in" >"conftest.tmp"
7781 mv "conftest.tmp" "conftest.in"
7782 cp "conftest.in" "conftest.nl"
7783 echo 'EGREP' >> "conftest.nl"
7784 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7786 ac_count=`expr $ac_count + 1`
7787 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7788 # Best one so far, save it but keep looking for a better one
7789 ac_cv_path_EGREP="$ac_path_EGREP"
7790 ac_path_EGREP_max=$ac_count
7792 # 10*(2^10) chars as input seems more than enough
7793 test $ac_count -gt 10 && break
7795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7799 $ac_path_EGREP_found && break 3
7809 EGREP="$ac_cv_path_EGREP"
7810 if test -z "$EGREP"; then
7811 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7812 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7813 { (exit 1); exit 1; }; }
7817 ac_cv_path_EGREP=$EGREP
7823 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7824 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7825 EGREP="$ac_cv_path_EGREP"
7828 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7830 if test "${ac_cv_header_stdc+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 cat >conftest.$ac_ext <<_ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7852 rm -f conftest.$ac_objext
7853 if { (ac_try="$ac_compile"
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_compile") 2>conftest.er1
7861 grep -v '^ *+' conftest.er1 >conftest.err
7863 cat conftest.err >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } &&
7866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7867 { (case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_try") 2>&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; } &&
7876 { ac_try='test -s conftest.$ac_objext'
7877 { (case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_try") 2>&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 ac_cv_header_stdc=yes
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 ac_cv_header_stdc=no
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896 if test $ac_cv_header_stdc = yes; then
7897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7898 cat >conftest.$ac_ext <<_ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7908 $EGREP "memchr" >/dev/null 2>&1; then
7911 ac_cv_header_stdc=no
7917 if test $ac_cv_header_stdc = yes; then
7918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7919 cat >conftest.$ac_ext <<_ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7929 $EGREP "free" >/dev/null 2>&1; then
7932 ac_cv_header_stdc=no
7938 if test $ac_cv_header_stdc = yes; then
7939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7940 if test "$cross_compiling" = yes; then
7943 cat >conftest.$ac_ext <<_ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7951 #if ((' ' & 0x0FF) == 0x020)
7952 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7953 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7955 # define ISLOWER(c) \
7956 (('a' <= (c) && (c) <= 'i') \
7957 || ('j' <= (c) && (c) <= 'r') \
7958 || ('s' <= (c) && (c) <= 'z'))
7959 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7962 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7967 for (i = 0; i < 256; i++)
7968 if (XOR (islower (i), ISLOWER (i))
7969 || toupper (i) != TOUPPER (i))
7974 rm -f conftest$ac_exeext
7975 if { (ac_try="$ac_link"
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_link") 2>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7985 { (case "(($ac_try" in
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_try") 2>&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
7996 echo "$as_me: program exited with status $ac_status" >&5
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8001 ac_cv_header_stdc=no
8003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8009 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8010 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8011 if test $ac_cv_header_stdc = yes; then
8013 cat >>confdefs.h <<\_ACEOF
8014 #define STDC_HEADERS 1
8019 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8029 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8030 inttypes.h stdint.h unistd.h
8032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 cat >conftest.$ac_ext <<_ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8044 $ac_includes_default
8046 #include <$ac_header>
8048 rm -f conftest.$ac_objext
8049 if { (ac_try="$ac_compile"
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_compile") 2>conftest.er1
8057 grep -v '^ *+' conftest.er1 >conftest.err
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8063 { (case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_try") 2>&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest.$ac_objext'
8073 { (case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_try") 2>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 eval "$as_ac_Header=yes"
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 eval "$as_ac_Header=no"
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 ac_res=`eval echo '${'$as_ac_Header'}'`
8093 { echo "$as_me:$LINENO: result: $ac_res" >&5
8094 echo "${ECHO_T}$ac_res" >&6; }
8095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8096 cat >>confdefs.h <<_ACEOF
8097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8106 for ac_header in errno.h
8108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 ac_res=`eval echo '${'$as_ac_Header'}'`
8116 { echo "$as_me:$LINENO: result: $ac_res" >&5
8117 echo "${ECHO_T}$ac_res" >&6; }
8119 # Is the header compilable?
8120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8122 cat >conftest.$ac_ext <<_ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 $ac_includes_default
8129 #include <$ac_header>
8131 rm -f conftest.$ac_objext
8132 if { (ac_try="$ac_compile"
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_compile") 2>conftest.er1
8140 grep -v '^ *+' conftest.er1 >conftest.err
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } &&
8145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8146 { (case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_try") 2>&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; } &&
8155 { ac_try='test -s conftest.$ac_objext'
8156 { (case "(($ac_try" in
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_try") 2>&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; }; then
8165 ac_header_compiler=yes
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8170 ac_header_compiler=no
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8175 echo "${ECHO_T}$ac_header_compiler" >&6; }
8177 # Is the header present?
8178 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8180 cat >conftest.$ac_ext <<_ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8186 #include <$ac_header>
8188 if { (ac_try="$ac_cpp conftest.$ac_ext"
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8196 grep -v '^ *+' conftest.er1 >conftest.err
8198 cat conftest.err >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } >/dev/null; then
8201 if test -s conftest.err; then
8202 ac_cpp_err=$ac_c_preproc_warn_flag
8203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8210 if test -z "$ac_cpp_err"; then
8211 ac_header_preproc=yes
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8216 ac_header_preproc=no
8219 rm -f conftest.err conftest.$ac_ext
8220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8221 echo "${ECHO_T}$ac_header_preproc" >&6; }
8223 # So? What about this header?
8224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8230 ac_header_preproc=yes
8233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8240 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8246 ## ------------------------------------ ##
8247 ## Report this to http://llvm.org/bugs/ ##
8248 ## ------------------------------------ ##
8250 ) | sed "s/^/$as_me: WARNING: /" >&2
8253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 eval "$as_ac_Header=\$ac_header_preproc"
8260 ac_res=`eval echo '${'$as_ac_Header'}'`
8261 { echo "$as_me:$LINENO: result: $ac_res" >&5
8262 echo "${ECHO_T}$ac_res" >&6; }
8265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8266 cat >>confdefs.h <<_ACEOF
8267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8275 case "$llvm_cv_os_type" in
8276 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8277 Darwin) llvm_shlib_ext=.dylib ;;
8278 *) llvm_shlib_ext=.so ;;
8282 cat >>confdefs.h <<_ACEOF
8283 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8287 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8288 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8301 if test "$GCC" != "yes" && test "$ICC" != "yes"
8303 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8304 echo "$as_me: error: gcc|icc required but not found" >&2;}
8305 { (exit 1); exit 1; }; }
8308 if test "$GXX" != "yes" && test "$IXX" != "yes"
8310 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8311 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8312 { (exit 1); exit 1; }; }
8315 if test "$GCC" = "yes"
8317 cat >conftest.$ac_ext <<_ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8325 #if !defined(__GNUC__) || __GNUC__ < 3
8326 #error Unsupported GCC version
8331 rm -f conftest.$ac_objext
8332 if { (ac_try="$ac_compile"
8334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335 *) ac_try_echo=$ac_try;;
8337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8338 (eval "$ac_compile") 2>conftest.er1
8340 grep -v '^ *+' conftest.er1 >conftest.err
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8346 { (case "(($ac_try" in
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_try") 2>&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; } &&
8355 { ac_try='test -s conftest.$ac_objext'
8356 { (case "(($ac_try" in
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_try") 2>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8370 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8371 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8372 { (exit 1); exit 1; }; }
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378 if test -z "$llvm_cv_gnu_make_command"
8380 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8381 echo "$as_me: error: GNU Make required but not found" >&2;}
8382 { (exit 1); exit 1; }; }
8385 { echo "$as_me:$LINENO: result: ok" >&5
8386 echo "${ECHO_T}ok" >&6; }
8388 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8389 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8390 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8392 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8394 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8398 NO_MAYBE_UNINITIALIZED=
8399 if test "$GXX" = "yes"
8401 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8403 if test -z "$NO_MAYBE_UNINITIALIZED"
8405 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8411 llvm_cv_old_cxxflags="$CXXFLAGS"
8412 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8413 cat >conftest.$ac_ext <<_ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8422 int main() { return 0; }
8426 rm -f conftest.$ac_objext
8427 if { (ac_try="$ac_compile"
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433 (eval "$ac_compile") 2>conftest.er1
8435 grep -v '^ *+' conftest.er1 >conftest.err
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8441 { (case "(($ac_try" in
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_try") 2>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; } &&
8450 { ac_try='test -s conftest.$ac_objext'
8451 { (case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_try") 2>&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8461 no_comment=-Wno-comment
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8471 NO_COMMENT=$no_comment
8473 CXXFLAGS="$llvm_cv_old_cxxflags"
8475 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8476 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8479 # Check whether --with-python was given.
8480 if test "${with_python+set}" = set; then
8481 withval=$with_python; PYTHON="$withval"
8485 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8486 { echo "$as_me:$LINENO: checking for python" >&5
8487 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8488 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8489 echo "${ECHO_T}user defined: $with_python" >&6; }
8491 if test -n "$PYTHON" ; then
8492 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8493 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8496 # Extract the first word of "python python2 python27", so it can be a program name with args.
8497 set dummy python python2 python27; ac_word=$2
8498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8500 if test "${ac_cv_path_PYTHON+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8524 echo "${ECHO_T}not found" >&6; }
8525 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8526 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8527 { (exit 1); exit 1; }; }"
8531 PYTHON=$ac_cv_path_PYTHON
8532 if test -n "$PYTHON"; then
8533 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8534 echo "${ECHO_T}$PYTHON" >&6; }
8536 { echo "$as_me:$LINENO: result: no" >&5
8537 echo "${ECHO_T}no" >&6; }
8543 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8544 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8545 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8546 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8547 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8548 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8549 if test "$ac_python_version_major" -gt "2" || \
8550 (test "$ac_python_version_major" -eq "2" && \
8551 test "$ac_python_version_minor" -ge "7") ; then
8552 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8553 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8555 { echo "$as_me:$LINENO: result: not found" >&5
8556 echo "${ECHO_T}not found" >&6; }
8557 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8558 See \`config.log' for more details." >&5
8559 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8560 See \`config.log' for more details." >&2;}
8561 { (exit 1); exit 1; }; }
8566 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8567 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8568 if test "${ac_cv_lib_m_sin+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 ac_check_lib_save_LIBS=$LIBS
8573 cat >conftest.$ac_ext <<_ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8580 /* Override any GCC internal prototype to avoid an error.
8581 Use char because int might match the return type of a GCC
8582 builtin and then its argument prototype would still apply. */
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (ac_try="$ac_link"
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_link") 2>conftest.er1
8604 grep -v '^ *+' conftest.er1 >conftest.err
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8610 { (case "(($ac_try" in
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615 (eval "$ac_try") 2>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest$ac_exeext'
8620 { (case "(($ac_try" in
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_try") 2>&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8637 rm -f core conftest.err conftest.$ac_objext \
8638 conftest$ac_exeext conftest.$ac_ext
8639 LIBS=$ac_check_lib_save_LIBS
8641 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8642 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8643 if test $ac_cv_lib_m_sin = yes; then
8644 cat >>confdefs.h <<_ACEOF
8652 if test "$llvm_cv_os_type" = "MingW" ; then
8654 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8655 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8656 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 ac_check_lib_save_LIBS=$LIBS
8660 LIBS="-limagehlp $LIBS"
8661 cat >conftest.$ac_ext <<_ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8677 rm -f conftest.$ac_objext conftest$ac_exeext
8678 if { (ac_try="$ac_link"
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_link") 2>conftest.er1
8686 grep -v '^ *+' conftest.er1 >conftest.err
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } &&
8691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8692 { (case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_try") 2>&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; } &&
8701 { ac_try='test -s conftest$ac_exeext'
8702 { (case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_try") 2>&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_lib_imagehlp_main=yes
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 ac_cv_lib_imagehlp_main=no
8719 rm -f core conftest.err conftest.$ac_objext \
8720 conftest$ac_exeext conftest.$ac_ext
8721 LIBS=$ac_check_lib_save_LIBS
8723 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8724 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8725 if test $ac_cv_lib_imagehlp_main = yes; then
8726 cat >>confdefs.h <<_ACEOF
8727 #define HAVE_LIBIMAGEHLP 1
8730 LIBS="-limagehlp $LIBS"
8735 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8736 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8737 if test "${ac_cv_lib_psapi_main+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 ac_check_lib_save_LIBS=$LIBS
8741 LIBS="-lpsapi $LIBS"
8742 cat >conftest.$ac_ext <<_ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (ac_try="$ac_link"
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_link") 2>conftest.er1
8767 grep -v '^ *+' conftest.er1 >conftest.err
8769 cat conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } &&
8772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8773 { (case "(($ac_try" in
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778 (eval "$ac_try") 2>&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; } &&
8782 { ac_try='test -s conftest$ac_exeext'
8783 { (case "(($ac_try" in
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_try") 2>&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; }; then
8792 ac_cv_lib_psapi_main=yes
8794 echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 ac_cv_lib_psapi_main=no
8800 rm -f core conftest.err conftest.$ac_objext \
8801 conftest$ac_exeext conftest.$ac_ext
8802 LIBS=$ac_check_lib_save_LIBS
8804 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8805 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8806 if test $ac_cv_lib_psapi_main = yes; then
8807 cat >>confdefs.h <<_ACEOF
8808 #define HAVE_LIBPSAPI 1
8811 LIBS="-lpsapi $LIBS"
8816 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8817 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8818 if test "${ac_cv_lib_shell32_main+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 ac_check_lib_save_LIBS=$LIBS
8822 LIBS="-lshell32 $LIBS"
8823 cat >conftest.$ac_ext <<_ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8839 rm -f conftest.$ac_objext conftest$ac_exeext
8840 if { (ac_try="$ac_link"
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846 (eval "$ac_link") 2>conftest.er1
8848 grep -v '^ *+' conftest.er1 >conftest.err
8850 cat conftest.err >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } &&
8853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8854 { (case "(($ac_try" in
8855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856 *) ac_try_echo=$ac_try;;
8858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859 (eval "$ac_try") 2>&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; } &&
8863 { ac_try='test -s conftest$ac_exeext'
8864 { (case "(($ac_try" in
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_try") 2>&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 ac_cv_lib_shell32_main=yes
8875 echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8878 ac_cv_lib_shell32_main=no
8881 rm -f core conftest.err conftest.$ac_objext \
8882 conftest$ac_exeext conftest.$ac_ext
8883 LIBS=$ac_check_lib_save_LIBS
8885 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8886 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8887 if test $ac_cv_lib_shell32_main = yes; then
8888 cat >>confdefs.h <<_ACEOF
8889 #define HAVE_LIBSHELL32 1
8892 LIBS="-lshell32 $LIBS"
8898 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8899 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8900 if test "${ac_cv_search_dlopen+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 ac_func_search_save_LIBS=$LIBS
8904 cat >conftest.$ac_ext <<_ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8911 /* Override any GCC internal prototype to avoid an error.
8912 Use char because int might match the return type of a GCC
8913 builtin and then its argument prototype would still apply. */
8926 for ac_lib in '' dl; do
8927 if test -z "$ac_lib"; then
8928 ac_res="none required"
8931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (ac_try="$ac_link"
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940 (eval "$ac_link") 2>conftest.er1
8942 grep -v '^ *+' conftest.er1 >conftest.err
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8948 { (case "(($ac_try" in
8949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953 (eval "$ac_try") 2>&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; } &&
8957 { ac_try='test -s conftest$ac_exeext'
8958 { (case "(($ac_try" in
8959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8960 *) ac_try_echo=$ac_try;;
8962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8963 (eval "$ac_try") 2>&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_cv_search_dlopen=$ac_res
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8975 rm -f core conftest.err conftest.$ac_objext \
8977 if test "${ac_cv_search_dlopen+set}" = set; then
8981 if test "${ac_cv_search_dlopen+set}" = set; then
8984 ac_cv_search_dlopen=no
8987 LIBS=$ac_func_search_save_LIBS
8989 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8990 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8991 ac_res=$ac_cv_search_dlopen
8992 if test "$ac_res" != no; then
8993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8996 cat >>confdefs.h <<\_ACEOF
8997 #define HAVE_DLOPEN 1
9004 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9005 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9009 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9010 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9011 if test "${ac_cv_search_clock_gettime+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 ac_func_search_save_LIBS=$LIBS
9015 cat >conftest.$ac_ext <<_ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9022 /* Override any GCC internal prototype to avoid an error.
9023 Use char because int might match the return type of a GCC
9024 builtin and then its argument prototype would still apply. */
9028 char clock_gettime ();
9032 return clock_gettime ();
9037 for ac_lib in '' rt; do
9038 if test -z "$ac_lib"; then
9039 ac_res="none required"
9042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9044 rm -f conftest.$ac_objext conftest$ac_exeext
9045 if { (ac_try="$ac_link"
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_link") 2>conftest.er1
9053 grep -v '^ *+' conftest.er1 >conftest.err
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
9058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9059 { (case "(($ac_try" in
9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064 (eval "$ac_try") 2>&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; } &&
9068 { ac_try='test -s conftest$ac_exeext'
9069 { (case "(($ac_try" in
9070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071 *) ac_try_echo=$ac_try;;
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074 (eval "$ac_try") 2>&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 ac_cv_search_clock_gettime=$ac_res
9080 echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9086 rm -f core conftest.err conftest.$ac_objext \
9088 if test "${ac_cv_search_clock_gettime+set}" = set; then
9092 if test "${ac_cv_search_clock_gettime+set}" = set; then
9095 ac_cv_search_clock_gettime=no
9098 LIBS=$ac_func_search_save_LIBS
9100 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9101 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9102 ac_res=$ac_cv_search_clock_gettime
9103 if test "$ac_res" != no; then
9104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9109 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9110 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9111 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9112 if test "${ac_cv_search_setupterm+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 ac_func_search_save_LIBS=$LIBS
9116 cat >conftest.$ac_ext <<_ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9123 /* Override any GCC internal prototype to avoid an error.
9124 Use char because int might match the return type of a GCC
9125 builtin and then its argument prototype would still apply. */
9133 return setupterm ();
9138 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9139 if test -z "$ac_lib"; then
9140 ac_res="none required"
9143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9145 rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_link") 2>conftest.er1
9154 grep -v '^ *+' conftest.er1 >conftest.err
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9160 { (case "(($ac_try" in
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165 (eval "$ac_try") 2>&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; } &&
9169 { ac_try='test -s conftest$ac_exeext'
9170 { (case "(($ac_try" in
9171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172 *) ac_try_echo=$ac_try;;
9174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175 (eval "$ac_try") 2>&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179 ac_cv_search_setupterm=$ac_res
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9187 rm -f core conftest.err conftest.$ac_objext \
9189 if test "${ac_cv_search_setupterm+set}" = set; then
9193 if test "${ac_cv_search_setupterm+set}" = set; then
9196 ac_cv_search_setupterm=no
9199 LIBS=$ac_func_search_save_LIBS
9201 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9202 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9203 ac_res=$ac_cv_search_setupterm
9204 if test "$ac_res" != no; then
9205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9208 cat >>confdefs.h <<\_ACEOF
9209 #define HAVE_TERMINFO 1
9219 if test "$llvm_cv_enable_libedit" = "yes" ; then
9220 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9221 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9222 if test "${ac_cv_search_el_init+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 ac_func_search_save_LIBS=$LIBS
9226 cat >conftest.$ac_ext <<_ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9233 /* Override any GCC internal prototype to avoid an error.
9234 Use char because int might match the return type of a GCC
9235 builtin and then its argument prototype would still apply. */
9248 for ac_lib in '' edit; do
9249 if test -z "$ac_lib"; then
9250 ac_res="none required"
9253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9255 rm -f conftest.$ac_objext conftest$ac_exeext
9256 if { (ac_try="$ac_link"
9258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9259 *) ac_try_echo=$ac_try;;
9261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9262 (eval "$ac_link") 2>conftest.er1
9264 grep -v '^ *+' conftest.er1 >conftest.err
9266 cat conftest.err >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } &&
9269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9270 { (case "(($ac_try" in
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_try") 2>&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; } &&
9279 { ac_try='test -s conftest$ac_exeext'
9280 { (case "(($ac_try" in
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_try") 2>&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 ac_cv_search_el_init=$ac_res
9291 echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9297 rm -f core conftest.err conftest.$ac_objext \
9299 if test "${ac_cv_search_el_init+set}" = set; then
9303 if test "${ac_cv_search_el_init+set}" = set; then
9306 ac_cv_search_el_init=no
9309 LIBS=$ac_func_search_save_LIBS
9311 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9312 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9313 ac_res=$ac_cv_search_el_init
9314 if test "$ac_res" != no; then
9315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9317 cat >>confdefs.h <<\_ACEOF
9318 #define HAVE_LIBEDIT 1
9325 if test "$llvm_cv_enable_libffi" = "yes" ; then
9326 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9327 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9328 if test "${ac_cv_search_ffi_call+set}" = set; then
9329 echo $ECHO_N "(cached) $ECHO_C" >&6
9331 ac_func_search_save_LIBS=$LIBS
9332 cat >conftest.$ac_ext <<_ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9339 /* Override any GCC internal prototype to avoid an error.
9340 Use char because int might match the return type of a GCC
9341 builtin and then its argument prototype would still apply. */
9354 for ac_lib in '' ffi; do
9355 if test -z "$ac_lib"; then
9356 ac_res="none required"
9359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9361 rm -f conftest.$ac_objext conftest$ac_exeext
9362 if { (ac_try="$ac_link"
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368 (eval "$ac_link") 2>conftest.er1
9370 grep -v '^ *+' conftest.er1 >conftest.err
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9376 { (case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_try") 2>&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; } &&
9385 { ac_try='test -s conftest$ac_exeext'
9386 { (case "(($ac_try" in
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_try") 2>&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
9395 ac_cv_search_ffi_call=$ac_res
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9403 rm -f core conftest.err conftest.$ac_objext \
9405 if test "${ac_cv_search_ffi_call+set}" = set; then
9409 if test "${ac_cv_search_ffi_call+set}" = set; then
9412 ac_cv_search_ffi_call=no
9415 LIBS=$ac_func_search_save_LIBS
9417 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9418 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9419 ac_res=$ac_cv_search_ffi_call
9420 if test "$ac_res" != no; then
9421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9423 cat >>confdefs.h <<\_ACEOF
9424 #define HAVE_FFI_CALL 1
9428 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9429 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9430 { (exit 1); exit 1; }; }
9435 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9436 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9437 if test "${ac_cv_search_mallinfo+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 ac_func_search_save_LIBS=$LIBS
9441 cat >conftest.$ac_ext <<_ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9448 /* Override any GCC internal prototype to avoid an error.
9449 Use char because int might match the return type of a GCC
9450 builtin and then its argument prototype would still apply. */
9463 for ac_lib in '' malloc; do
9464 if test -z "$ac_lib"; then
9465 ac_res="none required"
9468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (ac_try="$ac_link"
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_link") 2>conftest.er1
9479 grep -v '^ *+' conftest.er1 >conftest.err
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } &&
9484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9485 { (case "(($ac_try" in
9486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9487 *) ac_try_echo=$ac_try;;
9489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9490 (eval "$ac_try") 2>&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try='test -s conftest$ac_exeext'
9495 { (case "(($ac_try" in
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_try") 2>&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; }; then
9504 ac_cv_search_mallinfo=$ac_res
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9512 rm -f core conftest.err conftest.$ac_objext \
9514 if test "${ac_cv_search_mallinfo+set}" = set; then
9518 if test "${ac_cv_search_mallinfo+set}" = set; then
9521 ac_cv_search_mallinfo=no
9524 LIBS=$ac_func_search_save_LIBS
9526 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9527 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9528 ac_res=$ac_cv_search_mallinfo
9529 if test "$ac_res" != no; then
9530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9532 cat >>confdefs.h <<\_ACEOF
9533 #define HAVE_MALLINFO 1
9539 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9541 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9542 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9543 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 ac_check_lib_save_LIBS=$LIBS
9547 LIBS="-lpthread $LIBS"
9548 cat >conftest.$ac_ext <<_ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9555 /* Override any GCC internal prototype to avoid an error.
9556 Use char because int might match the return type of a GCC
9557 builtin and then its argument prototype would still apply. */
9561 char pthread_mutex_init ();
9565 return pthread_mutex_init ();
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (ac_try="$ac_link"
9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574 *) ac_try_echo=$ac_try;;
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577 (eval "$ac_link") 2>conftest.er1
9579 grep -v '^ *+' conftest.er1 >conftest.err
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } &&
9584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9585 { (case "(($ac_try" in
9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590 (eval "$ac_try") 2>&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; } &&
9594 { ac_try='test -s conftest$ac_exeext'
9595 { (case "(($ac_try" in
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600 (eval "$ac_try") 2>&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 ac_cv_lib_pthread_pthread_mutex_init=yes
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9609 ac_cv_lib_pthread_pthread_mutex_init=no
9612 rm -f core conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9614 LIBS=$ac_check_lib_save_LIBS
9616 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9617 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9618 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9619 cat >>confdefs.h <<_ACEOF
9620 #define HAVE_LIBPTHREAD 1
9623 LIBS="-lpthread $LIBS"
9627 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9628 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9629 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9632 ac_func_search_save_LIBS=$LIBS
9633 cat >conftest.$ac_ext <<_ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9640 /* Override any GCC internal prototype to avoid an error.
9641 Use char because int might match the return type of a GCC
9642 builtin and then its argument prototype would still apply. */
9646 char pthread_mutex_lock ();
9650 return pthread_mutex_lock ();
9655 for ac_lib in '' pthread; do
9656 if test -z "$ac_lib"; then
9657 ac_res="none required"
9660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669 (eval "$ac_link") 2>conftest.er1
9671 grep -v '^ *+' conftest.er1 >conftest.err
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } &&
9676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9677 { (case "(($ac_try" in
9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679 *) ac_try_echo=$ac_try;;
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682 (eval "$ac_try") 2>&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try='test -s conftest$ac_exeext'
9687 { (case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_try") 2>&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_cv_search_pthread_mutex_lock=$ac_res
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9704 rm -f core conftest.err conftest.$ac_objext \
9706 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9710 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9713 ac_cv_search_pthread_mutex_lock=no
9716 LIBS=$ac_func_search_save_LIBS
9718 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9719 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9720 ac_res=$ac_cv_search_pthread_mutex_lock
9721 if test "$ac_res" != no; then
9722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9724 cat >>confdefs.h <<\_ACEOF
9725 #define HAVE_PTHREAD_MUTEX_LOCK 1
9730 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9731 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9732 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 ac_func_search_save_LIBS=$LIBS
9736 cat >conftest.$ac_ext <<_ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9743 /* Override any GCC internal prototype to avoid an error.
9744 Use char because int might match the return type of a GCC
9745 builtin and then its argument prototype would still apply. */
9749 char pthread_rwlock_init ();
9753 return pthread_rwlock_init ();
9758 for ac_lib in '' pthread; do
9759 if test -z "$ac_lib"; then
9760 ac_res="none required"
9763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (ac_try="$ac_link"
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_link") 2>conftest.er1
9774 grep -v '^ *+' conftest.er1 >conftest.err
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9780 { (case "(($ac_try" in
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_try") 2>&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; } &&
9789 { ac_try='test -s conftest$ac_exeext'
9790 { (case "(($ac_try" in
9791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792 *) ac_try_echo=$ac_try;;
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795 (eval "$ac_try") 2>&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 ac_cv_search_pthread_rwlock_init=$ac_res
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9807 rm -f core conftest.err conftest.$ac_objext \
9809 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9813 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9816 ac_cv_search_pthread_rwlock_init=no
9819 LIBS=$ac_func_search_save_LIBS
9821 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9822 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9823 ac_res=$ac_cv_search_pthread_rwlock_init
9824 if test "$ac_res" != no; then
9825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9827 cat >>confdefs.h <<\_ACEOF
9828 #define HAVE_PTHREAD_RWLOCK_INIT 1
9833 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9834 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9835 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 ac_func_search_save_LIBS=$LIBS
9839 cat >conftest.$ac_ext <<_ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9846 /* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
9852 char pthread_getspecific ();
9856 return pthread_getspecific ();
9861 for ac_lib in '' pthread; do
9862 if test -z "$ac_lib"; then
9863 ac_res="none required"
9866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9868 rm -f conftest.$ac_objext conftest$ac_exeext
9869 if { (ac_try="$ac_link"
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_link") 2>conftest.er1
9877 grep -v '^ *+' conftest.er1 >conftest.err
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9883 { (case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888 (eval "$ac_try") 2>&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_search_pthread_getspecific=$ac_res
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9910 rm -f core conftest.err conftest.$ac_objext \
9912 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9916 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9919 ac_cv_search_pthread_getspecific=no
9922 LIBS=$ac_func_search_save_LIBS
9924 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9925 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9926 ac_res=$ac_cv_search_pthread_getspecific
9927 if test "$ac_res" != no; then
9928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9930 cat >>confdefs.h <<\_ACEOF
9931 #define HAVE_PTHREAD_GETSPECIFIC 1
9938 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9940 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9941 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9942 if test "${ac_cv_lib_z_compress2+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 ac_check_lib_save_LIBS=$LIBS
9947 cat >conftest.$ac_ext <<_ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h. */
9954 /* Override any GCC internal prototype to avoid an error.
9955 Use char because int might match the return type of a GCC
9956 builtin and then its argument prototype would still apply. */
9964 return compress2 ();
9969 rm -f conftest.$ac_objext conftest$ac_exeext
9970 if { (ac_try="$ac_link"
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_link") 2>conftest.er1
9978 grep -v '^ *+' conftest.er1 >conftest.err
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9984 { (case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_try") 2>&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; } &&
9993 { ac_try='test -s conftest$ac_exeext'
9994 { (case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_try") 2>&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 ac_cv_lib_z_compress2=yes
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10008 ac_cv_lib_z_compress2=no
10011 rm -f core conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext conftest.$ac_ext
10013 LIBS=$ac_check_lib_save_LIBS
10015 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10016 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10017 if test $ac_cv_lib_z_compress2 = yes; then
10018 cat >>confdefs.h <<_ACEOF
10019 #define HAVE_LIBZ 1
10029 # Check whether --with-oprofile was given.
10030 if test "${with_oprofile+set}" = set; then
10031 withval=$with_oprofile;
10035 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10036 no) llvm_cv_oppath=
10039 *) llvm_cv_oppath="${withval}/lib/oprofile"
10040 CPPFLAGS="-I${withval}/include";;
10042 case $llvm_cv_os_type in
10044 if test -n "$llvm_cv_oppath" ; then
10045 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10046 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10047 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10048 if test "${ac_cv_search_bfd_init+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 ac_func_search_save_LIBS=$LIBS
10052 cat >conftest.$ac_ext <<_ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10059 /* Override any GCC internal prototype to avoid an error.
10060 Use char because int might match the return type of a GCC
10061 builtin and then its argument prototype would still apply. */
10069 return bfd_init ();
10074 for ac_lib in '' bfd; do
10075 if test -z "$ac_lib"; then
10076 ac_res="none required"
10079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10081 rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (ac_try="$ac_link"
10083 case "(($ac_try" in
10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085 *) ac_try_echo=$ac_try;;
10087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10088 (eval "$ac_link") 2>conftest.er1
10090 grep -v '^ *+' conftest.er1 >conftest.err
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10096 { (case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_try") 2>&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; } &&
10105 { ac_try='test -s conftest$ac_exeext'
10106 { (case "(($ac_try" in
10107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10108 *) ac_try_echo=$ac_try;;
10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10111 (eval "$ac_try") 2>&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; }; then
10115 ac_cv_search_bfd_init=$ac_res
10117 echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10123 rm -f core conftest.err conftest.$ac_objext \
10125 if test "${ac_cv_search_bfd_init+set}" = set; then
10129 if test "${ac_cv_search_bfd_init+set}" = set; then
10132 ac_cv_search_bfd_init=no
10134 rm conftest.$ac_ext
10135 LIBS=$ac_func_search_save_LIBS
10137 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10138 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10139 ac_res=$ac_cv_search_bfd_init
10140 if test "$ac_res" != no; then
10141 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10145 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10146 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10147 if test "${ac_cv_search_op_open_agent+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 ac_func_search_save_LIBS=$LIBS
10151 cat >conftest.$ac_ext <<_ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10158 /* Override any GCC internal prototype to avoid an error.
10159 Use char because int might match the return type of a GCC
10160 builtin and then its argument prototype would still apply. */
10164 char op_open_agent ();
10168 return op_open_agent ();
10173 for ac_lib in '' opagent; do
10174 if test -z "$ac_lib"; then
10175 ac_res="none required"
10178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_link") 2>conftest.er1
10189 grep -v '^ *+' conftest.er1 >conftest.err
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10195 { (case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_try") 2>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; } &&
10204 { ac_try='test -s conftest$ac_exeext'
10205 { (case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_try") 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 ac_cv_search_op_open_agent=$ac_res
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10222 rm -f core conftest.err conftest.$ac_objext \
10224 if test "${ac_cv_search_op_open_agent+set}" = set; then
10228 if test "${ac_cv_search_op_open_agent+set}" = set; then
10231 ac_cv_search_op_open_agent=no
10233 rm conftest.$ac_ext
10234 LIBS=$ac_func_search_save_LIBS
10236 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10237 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10238 ac_res=$ac_cv_search_op_open_agent
10239 if test "$ac_res" != no; then
10240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10244 echo "Error! You need to have libopagent around."
10249 if test "${ac_cv_header_opagent_h+set}" = set; then
10250 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10251 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10252 if test "${ac_cv_header_opagent_h+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10256 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10258 # Is the header compilable?
10259 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10260 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10261 cat >conftest.$ac_ext <<_ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267 $ac_includes_default
10268 #include <opagent.h>
10270 rm -f conftest.$ac_objext
10271 if { (ac_try="$ac_compile"
10272 case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_compile") 2>conftest.er1
10279 grep -v '^ *+' conftest.er1 >conftest.err
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } &&
10284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10285 { (case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_try") 2>&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; } &&
10294 { ac_try='test -s conftest.$ac_objext'
10295 { (case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300 (eval "$ac_try") 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; }; then
10304 ac_header_compiler=yes
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 ac_header_compiler=no
10312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10314 echo "${ECHO_T}$ac_header_compiler" >&6; }
10316 # Is the header present?
10317 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10318 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10319 cat >conftest.$ac_ext <<_ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10325 #include <opagent.h>
10327 if { (ac_try="$ac_cpp conftest.$ac_ext"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10335 grep -v '^ *+' conftest.er1 >conftest.err
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } >/dev/null; then
10340 if test -s conftest.err; then
10341 ac_cpp_err=$ac_c_preproc_warn_flag
10342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10349 if test -z "$ac_cpp_err"; then
10350 ac_header_preproc=yes
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10355 ac_header_preproc=no
10358 rm -f conftest.err conftest.$ac_ext
10359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10360 echo "${ECHO_T}$ac_header_preproc" >&6; }
10362 # So? What about this header?
10363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10365 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10366 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10367 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10368 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10369 ac_header_preproc=yes
10372 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10373 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10374 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10375 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10376 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10377 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10378 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10379 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10381 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10383 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10385 ## ------------------------------------ ##
10386 ## Report this to http://llvm.org/bugs/ ##
10387 ## ------------------------------------ ##
10389 ) | sed "s/^/$as_me: WARNING: /" >&2
10392 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10393 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10394 if test "${ac_cv_header_opagent_h+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 ac_cv_header_opagent_h=$ac_header_preproc
10399 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10400 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10403 if test $ac_cv_header_opagent_h = yes; then
10407 echo "Error! You need to have opagent.h around."
10415 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10416 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10417 { (exit 1); exit 1; }; } ;;
10428 cat >>confdefs.h <<_ACEOF
10429 #define LLVM_USE_OPROFILE $USE_OPROFILE
10434 # Check whether --with-intel-jitevents was given.
10435 if test "${with_intel_jitevents+set}" = set; then
10436 withval=$with_intel_jitevents;
10438 yes) USE_INTEL_JITEVENTS=1
10440 no) USE_INTEL_JITEVENTS=0
10442 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10443 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10444 { (exit 1); exit 1; }; };;
10447 case $llvm_cv_os_type in
10448 Linux|Win32|Cygwin|MingW) ;;
10449 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10450 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10451 { (exit 1); exit 1; }; };;
10454 case "$llvm_cv_target_arch" in
10456 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10457 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10458 { (exit 1); exit 1; }; };;
10463 USE_INTEL_JITEVENTS=0
10469 cat >>confdefs.h <<_ACEOF
10470 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10474 for ac_prog in xml2-config
10476 # Extract the first word of "$ac_prog", so it can be a program name with args.
10477 set dummy $ac_prog; ac_word=$2
10478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10480 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 if test -n "$XML2CONFIG"; then
10484 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487 for as_dir in $PATH
10490 test -z "$as_dir" && as_dir=.
10491 for ac_exec_ext in '' $ac_executable_extensions; do
10492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10493 ac_cv_prog_XML2CONFIG="$ac_prog"
10494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10503 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10504 if test -n "$XML2CONFIG"; then
10505 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10506 echo "${ECHO_T}$XML2CONFIG" >&6; }
10508 { echo "$as_me:$LINENO: result: no" >&5
10509 echo "${ECHO_T}no" >&6; }
10513 test -n "$XML2CONFIG" && break
10517 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10518 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10519 if test "x$XML2CONFIG" = "x"; then
10520 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10521 echo "${ECHO_T}xml2-config not found" >&6; }
10523 LIBXML2_INC=`$XML2CONFIG --cflags`
10524 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10525 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10526 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10527 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10528 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 ac_check_lib_save_LIBS=$LIBS
10532 LIBS="-lxml2 $LIBS"
10533 cat >conftest.$ac_ext <<_ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10540 /* Override any GCC internal prototype to avoid an error.
10541 Use char because int might match the return type of a GCC
10542 builtin and then its argument prototype would still apply. */
10546 char xmlReadFile ();
10550 return xmlReadFile ();
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (ac_try="$ac_link"
10557 case "(($ac_try" in
10558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562 (eval "$ac_link") 2>conftest.er1
10564 grep -v '^ *+' conftest.er1 >conftest.err
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10570 { (case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_try") 2>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; } &&
10579 { ac_try='test -s conftest$ac_exeext'
10580 { (case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_try") 2>&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10589 ac_cv_lib_xml2_xmlReadFile=yes
10591 echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10594 ac_cv_lib_xml2_xmlReadFile=no
10597 rm -f core conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_lib_save_LIBS
10601 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10602 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10603 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10605 cat >>confdefs.h <<\_ACEOF
10606 #define CLANG_HAVE_LIBXML 1
10609 LIBXML2_LIBS="-lxml2"
10622 ac_header_dirent=no
10623 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10624 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10625 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10626 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 cat >conftest.$ac_ext <<_ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 #include <sys/types.h>
10648 rm -f conftest.$ac_objext
10649 if { (ac_try="$ac_compile"
10650 case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_compile") 2>conftest.er1
10657 grep -v '^ *+' conftest.er1 >conftest.err
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10663 { (case "(($ac_try" in
10664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668 (eval "$ac_try") 2>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; } &&
10672 { ac_try='test -s conftest.$ac_objext'
10673 { (case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_try") 2>&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
10682 eval "$as_ac_Header=yes"
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10687 eval "$as_ac_Header=no"
10690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692 ac_res=`eval echo '${'$as_ac_Header'}'`
10693 { echo "$as_me:$LINENO: result: $ac_res" >&5
10694 echo "${ECHO_T}$ac_res" >&6; }
10695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10696 cat >>confdefs.h <<_ACEOF
10697 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10700 ac_header_dirent=$ac_hdr; break
10704 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10705 if test $ac_header_dirent = dirent.h; then
10706 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10707 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10708 if test "${ac_cv_search_opendir+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 ac_func_search_save_LIBS=$LIBS
10712 cat >conftest.$ac_ext <<_ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10719 /* Override any GCC internal prototype to avoid an error.
10720 Use char because int might match the return type of a GCC
10721 builtin and then its argument prototype would still apply. */
10734 for ac_lib in '' dir; do
10735 if test -z "$ac_lib"; then
10736 ac_res="none required"
10739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (ac_try="$ac_link"
10743 case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_link") 2>conftest.er1
10750 grep -v '^ *+' conftest.er1 >conftest.err
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10756 { (case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 (eval "$ac_try") 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; } &&
10765 { ac_try='test -s conftest$ac_exeext'
10766 { (case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_try") 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 ac_cv_search_opendir=$ac_res
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10783 rm -f core conftest.err conftest.$ac_objext \
10785 if test "${ac_cv_search_opendir+set}" = set; then
10789 if test "${ac_cv_search_opendir+set}" = set; then
10792 ac_cv_search_opendir=no
10794 rm conftest.$ac_ext
10795 LIBS=$ac_func_search_save_LIBS
10797 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10798 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10799 ac_res=$ac_cv_search_opendir
10800 if test "$ac_res" != no; then
10801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10806 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10807 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10808 if test "${ac_cv_search_opendir+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 ac_func_search_save_LIBS=$LIBS
10812 cat >conftest.$ac_ext <<_ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10819 /* Override any GCC internal prototype to avoid an error.
10820 Use char because int might match the return type of a GCC
10821 builtin and then its argument prototype would still apply. */
10834 for ac_lib in '' x; do
10835 if test -z "$ac_lib"; then
10836 ac_res="none required"
10839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10841 rm -f conftest.$ac_objext conftest$ac_exeext
10842 if { (ac_try="$ac_link"
10843 case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 (eval "$ac_link") 2>conftest.er1
10850 grep -v '^ *+' conftest.er1 >conftest.err
10852 cat conftest.err >&5
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } &&
10855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10856 { (case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_try") 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest$ac_exeext'
10866 { (case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_try") 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10875 ac_cv_search_opendir=$ac_res
10877 echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10883 rm -f core conftest.err conftest.$ac_objext \
10885 if test "${ac_cv_search_opendir+set}" = set; then
10889 if test "${ac_cv_search_opendir+set}" = set; then
10892 ac_cv_search_opendir=no
10894 rm conftest.$ac_ext
10895 LIBS=$ac_func_search_save_LIBS
10897 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10898 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10899 ac_res=$ac_cv_search_opendir
10900 if test "$ac_res" != no; then
10901 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10907 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10908 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10909 if test "${ac_cv_header_mmap_anon+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 ac_cpp='$CPP $CPPFLAGS'
10914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10918 cat >conftest.$ac_ext <<_ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 #include <sys/mman.h>
10925 #include <unistd.h>
10930 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10935 rm -f conftest.$ac_objext
10936 if { (ac_try="$ac_compile"
10937 case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942 (eval "$ac_compile") 2>conftest.er1
10944 grep -v '^ *+' conftest.er1 >conftest.err
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950 { (case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_try") 2>&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; } &&
10959 { ac_try='test -s conftest.$ac_objext'
10960 { (case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_try") 2>&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 ac_cv_header_mmap_anon=yes
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 ac_cv_header_mmap_anon=no
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979 ac_cpp='$CPP $CPPFLAGS'
10980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10986 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10987 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10988 if test "$ac_cv_header_mmap_anon" = yes; then
10990 cat >>confdefs.h <<\_ACEOF
10991 #define HAVE_MMAP_ANONYMOUS 1
10996 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10997 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10998 if test "${ac_cv_header_stat_broken+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 cat >conftest.$ac_ext <<_ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11007 #include <sys/types.h>
11008 #include <sys/stat.h>
11010 #if defined S_ISBLK && defined S_IFDIR
11011 # if S_ISBLK (S_IFDIR)
11016 #if defined S_ISBLK && defined S_IFCHR
11017 # if S_ISBLK (S_IFCHR)
11022 #if defined S_ISLNK && defined S_IFREG
11023 # if S_ISLNK (S_IFREG)
11028 #if defined S_ISSOCK && defined S_IFREG
11029 # if S_ISSOCK (S_IFREG)
11035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11036 $EGREP "You lose" >/dev/null 2>&1; then
11037 ac_cv_header_stat_broken=yes
11039 ac_cv_header_stat_broken=no
11044 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11045 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11046 if test $ac_cv_header_stat_broken = yes; then
11048 cat >>confdefs.h <<\_ACEOF
11049 #define STAT_MACROS_BROKEN 1
11054 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11055 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11056 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11059 cat >conftest.$ac_ext <<_ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h. */
11065 #include <sys/types.h>
11066 #include <sys/wait.h>
11067 #ifndef WEXITSTATUS
11068 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11071 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11079 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11084 rm -f conftest.$ac_objext
11085 if { (ac_try="$ac_compile"
11086 case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_compile") 2>conftest.er1
11093 grep -v '^ *+' conftest.er1 >conftest.err
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11099 { (case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_try") 2>&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; } &&
11108 { ac_try='test -s conftest.$ac_objext'
11109 { (case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_try") 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; }; then
11118 ac_cv_header_sys_wait_h=yes
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11123 ac_cv_header_sys_wait_h=no
11126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11128 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11129 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11130 if test $ac_cv_header_sys_wait_h = yes; then
11132 cat >>confdefs.h <<\_ACEOF
11133 #define HAVE_SYS_WAIT_H 1
11138 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11139 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11140 if test "${ac_cv_header_time+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 cat >conftest.$ac_ext <<_ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 #include <sys/types.h>
11150 #include <sys/time.h>
11156 if ((struct tm *) 0)
11162 rm -f conftest.$ac_objext
11163 if { (ac_try="$ac_compile"
11164 case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_compile") 2>conftest.er1
11171 grep -v '^ *+' conftest.er1 >conftest.err
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } &&
11176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11177 { (case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_try") 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest.$ac_objext'
11187 { (case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_try") 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_cv_header_time=yes
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_cv_header_time=no
11204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11207 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11208 if test $ac_cv_header_time = yes; then
11210 cat >>confdefs.h <<\_ACEOF
11211 #define TIME_WITH_SYS_TIME 1
11218 ac_cpp='$CXXCPP $CPPFLAGS'
11219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11224 for ac_header in cxxabi.h
11226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 cat >conftest.$ac_ext <<_ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 #include <stddef.h>
11241 #include <$ac_header>
11243 rm -f conftest.$ac_objext
11244 if { (ac_try="$ac_compile"
11245 case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_compile") 2>conftest.er1
11252 grep -v '^ *+' conftest.er1 >conftest.err
11254 cat conftest.err >&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } &&
11257 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11258 { (case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263 (eval "$ac_try") 2>&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; } &&
11267 { ac_try='test -s conftest.$ac_objext'
11268 { (case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_try") 2>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; }; then
11277 eval "$as_ac_Header=yes"
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11282 eval "$as_ac_Header=no"
11285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11287 ac_res=`eval echo '${'$as_ac_Header'}'`
11288 { echo "$as_me:$LINENO: result: $ac_res" >&5
11289 echo "${ECHO_T}$ac_res" >&6; }
11290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11291 cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11300 ac_cpp='$CPP $CPPFLAGS'
11301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11311 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 ac_res=`eval echo '${'$as_ac_Header'}'`
11321 { echo "$as_me:$LINENO: result: $ac_res" >&5
11322 echo "${ECHO_T}$ac_res" >&6; }
11324 # Is the header compilable?
11325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11327 cat >conftest.$ac_ext <<_ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333 $ac_includes_default
11334 #include <$ac_header>
11336 rm -f conftest.$ac_objext
11337 if { (ac_try="$ac_compile"
11338 case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_compile") 2>conftest.er1
11345 grep -v '^ *+' conftest.er1 >conftest.err
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11351 { (case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_try") 2>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try='test -s conftest.$ac_objext'
11361 { (case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_try") 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }; then
11370 ac_header_compiler=yes
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11375 ac_header_compiler=no
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11380 echo "${ECHO_T}$ac_header_compiler" >&6; }
11382 # Is the header present?
11383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11385 cat >conftest.$ac_ext <<_ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 #include <$ac_header>
11393 if { (ac_try="$ac_cpp conftest.$ac_ext"
11394 case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11401 grep -v '^ *+' conftest.er1 >conftest.err
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } >/dev/null; then
11406 if test -s conftest.err; then
11407 ac_cpp_err=$ac_c_preproc_warn_flag
11408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11415 if test -z "$ac_cpp_err"; then
11416 ac_header_preproc=yes
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 ac_header_preproc=no
11424 rm -f conftest.err conftest.$ac_ext
11425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11426 echo "${ECHO_T}$ac_header_preproc" >&6; }
11428 # So? What about this header?
11429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11435 ac_header_preproc=yes
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11451 ## ------------------------------------ ##
11452 ## Report this to http://llvm.org/bugs/ ##
11453 ## ------------------------------------ ##
11455 ) | sed "s/^/$as_me: WARNING: /" >&2
11458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 eval "$as_ac_Header=\$ac_header_preproc"
11465 ac_res=`eval echo '${'$as_ac_Header'}'`
11466 { echo "$as_me:$LINENO: result: $ac_res" >&5
11467 echo "${ECHO_T}$ac_res" >&6; }
11470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11471 cat >>confdefs.h <<_ACEOF
11472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11485 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 ac_res=`eval echo '${'$as_ac_Header'}'`
11495 { echo "$as_me:$LINENO: result: $ac_res" >&5
11496 echo "${ECHO_T}$ac_res" >&6; }
11498 # Is the header compilable?
11499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11501 cat >conftest.$ac_ext <<_ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 $ac_includes_default
11508 #include <$ac_header>
11510 rm -f conftest.$ac_objext
11511 if { (ac_try="$ac_compile"
11512 case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_compile") 2>conftest.er1
11519 grep -v '^ *+' conftest.er1 >conftest.err
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
11524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11525 { (case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_try") 2>&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try='test -s conftest.$ac_objext'
11535 { (case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_try") 2>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11544 ac_header_compiler=yes
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 ac_header_compiler=no
11552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11554 echo "${ECHO_T}$ac_header_compiler" >&6; }
11556 # Is the header present?
11557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11559 cat >conftest.$ac_ext <<_ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11565 #include <$ac_header>
11567 if { (ac_try="$ac_cpp conftest.$ac_ext"
11568 case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11575 grep -v '^ *+' conftest.er1 >conftest.err
11577 cat conftest.err >&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } >/dev/null; then
11580 if test -s conftest.err; then
11581 ac_cpp_err=$ac_c_preproc_warn_flag
11582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11589 if test -z "$ac_cpp_err"; then
11590 ac_header_preproc=yes
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11595 ac_header_preproc=no
11598 rm -f conftest.err conftest.$ac_ext
11599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11600 echo "${ECHO_T}$ac_header_preproc" >&6; }
11602 # So? What about this header?
11603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11609 ac_header_preproc=yes
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11625 ## ------------------------------------ ##
11626 ## Report this to http://llvm.org/bugs/ ##
11627 ## ------------------------------------ ##
11629 ) | sed "s/^/$as_me: WARNING: /" >&2
11632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 eval "$as_ac_Header=\$ac_header_preproc"
11639 ac_res=`eval echo '${'$as_ac_Header'}'`
11640 { echo "$as_me:$LINENO: result: $ac_res" >&5
11641 echo "${ECHO_T}$ac_res" >&6; }
11644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11645 cat >>confdefs.h <<_ACEOF
11646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11654 for ac_header in utime.h
11656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11663 ac_res=`eval echo '${'$as_ac_Header'}'`
11664 { echo "$as_me:$LINENO: result: $ac_res" >&5
11665 echo "${ECHO_T}$ac_res" >&6; }
11667 # Is the header compilable?
11668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11670 cat >conftest.$ac_ext <<_ACEOF
11673 cat confdefs.h >>conftest.$ac_ext
11674 cat >>conftest.$ac_ext <<_ACEOF
11675 /* end confdefs.h. */
11676 $ac_includes_default
11677 #include <$ac_header>
11679 rm -f conftest.$ac_objext
11680 if { (ac_try="$ac_compile"
11681 case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_compile") 2>conftest.er1
11688 grep -v '^ *+' conftest.er1 >conftest.err
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } &&
11693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11694 { (case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_try") 2>&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try='test -s conftest.$ac_objext'
11704 { (case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_try") 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }; then
11713 ac_header_compiler=yes
11715 echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11718 ac_header_compiler=no
11721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11723 echo "${ECHO_T}$ac_header_compiler" >&6; }
11725 # Is the header present?
11726 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11728 cat >conftest.$ac_ext <<_ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11734 #include <$ac_header>
11736 if { (ac_try="$ac_cpp conftest.$ac_ext"
11737 case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11744 grep -v '^ *+' conftest.er1 >conftest.err
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } >/dev/null; then
11749 if test -s conftest.err; then
11750 ac_cpp_err=$ac_c_preproc_warn_flag
11751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11758 if test -z "$ac_cpp_err"; then
11759 ac_header_preproc=yes
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11764 ac_header_preproc=no
11767 rm -f conftest.err conftest.$ac_ext
11768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11769 echo "${ECHO_T}$ac_header_preproc" >&6; }
11771 # So? What about this header?
11772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11778 ac_header_preproc=yes
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11794 ## ------------------------------------ ##
11795 ## Report this to http://llvm.org/bugs/ ##
11796 ## ------------------------------------ ##
11798 ) | sed "s/^/$as_me: WARNING: /" >&2
11801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 eval "$as_ac_Header=\$ac_header_preproc"
11808 ac_res=`eval echo '${'$as_ac_Header'}'`
11809 { echo "$as_me:$LINENO: result: $ac_res" >&5
11810 echo "${ECHO_T}$ac_res" >&6; }
11813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11814 cat >>confdefs.h <<_ACEOF
11815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11827 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11836 ac_res=`eval echo '${'$as_ac_Header'}'`
11837 { echo "$as_me:$LINENO: result: $ac_res" >&5
11838 echo "${ECHO_T}$ac_res" >&6; }
11840 # Is the header compilable?
11841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11843 cat >conftest.$ac_ext <<_ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 $ac_includes_default
11850 #include <$ac_header>
11852 rm -f conftest.$ac_objext
11853 if { (ac_try="$ac_compile"
11854 case "(($ac_try" in
11855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856 *) ac_try_echo=$ac_try;;
11858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11859 (eval "$ac_compile") 2>conftest.er1
11861 grep -v '^ *+' conftest.er1 >conftest.err
11863 cat conftest.err >&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } &&
11866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11867 { (case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_try") 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; } &&
11876 { ac_try='test -s conftest.$ac_objext'
11877 { (case "(($ac_try" in
11878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879 *) ac_try_echo=$ac_try;;
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882 (eval "$ac_try") 2>&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; }; then
11886 ac_header_compiler=yes
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 ac_header_compiler=no
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11896 echo "${ECHO_T}$ac_header_compiler" >&6; }
11898 # Is the header present?
11899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11901 cat >conftest.$ac_ext <<_ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 #include <$ac_header>
11909 if { (ac_try="$ac_cpp conftest.$ac_ext"
11910 case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11917 grep -v '^ *+' conftest.er1 >conftest.err
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } >/dev/null; then
11922 if test -s conftest.err; then
11923 ac_cpp_err=$ac_c_preproc_warn_flag
11924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11931 if test -z "$ac_cpp_err"; then
11932 ac_header_preproc=yes
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 ac_header_preproc=no
11940 rm -f conftest.err conftest.$ac_ext
11941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11942 echo "${ECHO_T}$ac_header_preproc" >&6; }
11944 # So? What about this header?
11945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11951 ac_header_preproc=yes
11954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11967 ## ------------------------------------ ##
11968 ## Report this to http://llvm.org/bugs/ ##
11969 ## ------------------------------------ ##
11971 ) | sed "s/^/$as_me: WARNING: /" >&2
11974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 eval "$as_ac_Header=\$ac_header_preproc"
11981 ac_res=`eval echo '${'$as_ac_Header'}'`
11982 { echo "$as_me:$LINENO: result: $ac_res" >&5
11983 echo "${ECHO_T}$ac_res" >&6; }
11986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11987 cat >>confdefs.h <<_ACEOF
11988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11998 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12007 ac_res=`eval echo '${'$as_ac_Header'}'`
12008 { echo "$as_me:$LINENO: result: $ac_res" >&5
12009 echo "${ECHO_T}$ac_res" >&6; }
12011 # Is the header compilable?
12012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12014 cat >conftest.$ac_ext <<_ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h. */
12020 $ac_includes_default
12021 #include <$ac_header>
12023 rm -f conftest.$ac_objext
12024 if { (ac_try="$ac_compile"
12025 case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_compile") 2>conftest.er1
12032 grep -v '^ *+' conftest.er1 >conftest.err
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12038 { (case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_try") 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest.$ac_objext'
12048 { (case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_try") 2>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 ac_header_compiler=yes
12059 echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12062 ac_header_compiler=no
12065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12067 echo "${ECHO_T}$ac_header_compiler" >&6; }
12069 # Is the header present?
12070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12072 cat >conftest.$ac_ext <<_ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12078 #include <$ac_header>
12080 if { (ac_try="$ac_cpp conftest.$ac_ext"
12081 case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12088 grep -v '^ *+' conftest.er1 >conftest.err
12090 cat conftest.err >&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } >/dev/null; then
12093 if test -s conftest.err; then
12094 ac_cpp_err=$ac_c_preproc_warn_flag
12095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12102 if test -z "$ac_cpp_err"; then
12103 ac_header_preproc=yes
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12108 ac_header_preproc=no
12111 rm -f conftest.err conftest.$ac_ext
12112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12113 echo "${ECHO_T}$ac_header_preproc" >&6; }
12115 # So? What about this header?
12116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12122 ac_header_preproc=yes
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12138 ## ------------------------------------ ##
12139 ## Report this to http://llvm.org/bugs/ ##
12140 ## ------------------------------------ ##
12142 ) | sed "s/^/$as_me: WARNING: /" >&2
12145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12150 eval "$as_ac_Header=\$ac_header_preproc"
12152 ac_res=`eval echo '${'$as_ac_Header'}'`
12153 { echo "$as_me:$LINENO: result: $ac_res" >&5
12154 echo "${ECHO_T}$ac_res" >&6; }
12157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12158 cat >>confdefs.h <<_ACEOF
12159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12167 for ac_header in valgrind/valgrind.h
12169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 ac_res=`eval echo '${'$as_ac_Header'}'`
12177 { echo "$as_me:$LINENO: result: $ac_res" >&5
12178 echo "${ECHO_T}$ac_res" >&6; }
12180 # Is the header compilable?
12181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12183 cat >conftest.$ac_ext <<_ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 $ac_includes_default
12190 #include <$ac_header>
12192 rm -f conftest.$ac_objext
12193 if { (ac_try="$ac_compile"
12194 case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_compile") 2>conftest.er1
12201 grep -v '^ *+' conftest.er1 >conftest.err
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12207 { (case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_try") 2>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; } &&
12216 { ac_try='test -s conftest.$ac_objext'
12217 { (case "(($ac_try" in
12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219 *) ac_try_echo=$ac_try;;
12221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222 (eval "$ac_try") 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_header_compiler=yes
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_header_compiler=no
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236 echo "${ECHO_T}$ac_header_compiler" >&6; }
12238 # Is the header present?
12239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12241 cat >conftest.$ac_ext <<_ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 #include <$ac_header>
12249 if { (ac_try="$ac_cpp conftest.$ac_ext"
12250 case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12257 grep -v '^ *+' conftest.er1 >conftest.err
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } >/dev/null; then
12262 if test -s conftest.err; then
12263 ac_cpp_err=$ac_c_preproc_warn_flag
12264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12271 if test -z "$ac_cpp_err"; then
12272 ac_header_preproc=yes
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12277 ac_header_preproc=no
12280 rm -f conftest.err conftest.$ac_ext
12281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12282 echo "${ECHO_T}$ac_header_preproc" >&6; }
12284 # So? What about this header?
12285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12291 ac_header_preproc=yes
12294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12307 ## ------------------------------------ ##
12308 ## Report this to http://llvm.org/bugs/ ##
12309 ## ------------------------------------ ##
12311 ) | sed "s/^/$as_me: WARNING: /" >&2
12314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12319 eval "$as_ac_Header=\$ac_header_preproc"
12321 ac_res=`eval echo '${'$as_ac_Header'}'`
12322 { echo "$as_me:$LINENO: result: $ac_res" >&5
12323 echo "${ECHO_T}$ac_res" >&6; }
12326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12327 cat >>confdefs.h <<_ACEOF
12328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12336 for ac_header in fenv.h
12338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 ac_res=`eval echo '${'$as_ac_Header'}'`
12346 { echo "$as_me:$LINENO: result: $ac_res" >&5
12347 echo "${ECHO_T}$ac_res" >&6; }
12349 # Is the header compilable?
12350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12352 cat >conftest.$ac_ext <<_ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h. */
12358 $ac_includes_default
12359 #include <$ac_header>
12361 rm -f conftest.$ac_objext
12362 if { (ac_try="$ac_compile"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_compile") 2>conftest.er1
12370 grep -v '^ *+' conftest.er1 >conftest.err
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12376 { (case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_try") 2>&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; } &&
12385 { ac_try='test -s conftest.$ac_objext'
12386 { (case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_try") 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; }; then
12395 ac_header_compiler=yes
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12400 ac_header_compiler=no
12403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12405 echo "${ECHO_T}$ac_header_compiler" >&6; }
12407 # Is the header present?
12408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12410 cat >conftest.$ac_ext <<_ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h. */
12416 #include <$ac_header>
12418 if { (ac_try="$ac_cpp conftest.$ac_ext"
12419 case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12426 grep -v '^ *+' conftest.er1 >conftest.err
12428 cat conftest.err >&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } >/dev/null; then
12431 if test -s conftest.err; then
12432 ac_cpp_err=$ac_c_preproc_warn_flag
12433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12440 if test -z "$ac_cpp_err"; then
12441 ac_header_preproc=yes
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 ac_header_preproc=no
12449 rm -f conftest.err conftest.$ac_ext
12450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12451 echo "${ECHO_T}$ac_header_preproc" >&6; }
12453 # So? What about this header?
12454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12460 ac_header_preproc=yes
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12470 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12476 ## ------------------------------------ ##
12477 ## Report this to http://llvm.org/bugs/ ##
12478 ## ------------------------------------ ##
12480 ) | sed "s/^/$as_me: WARNING: /" >&2
12483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 eval "$as_ac_Header=\$ac_header_preproc"
12490 ac_res=`eval echo '${'$as_ac_Header'}'`
12491 { echo "$as_me:$LINENO: result: $ac_res" >&5
12492 echo "${ECHO_T}$ac_res" >&6; }
12495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12496 cat >>confdefs.h <<_ACEOF
12497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12504 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12505 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12506 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12509 cat >conftest.$ac_ext <<_ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h. */
12520 #ifndef FE_ALL_EXCEPT
12521 char *p = (char *) FE_ALL_EXCEPT;
12529 rm -f conftest.$ac_objext
12530 if { (ac_try="$ac_compile"
12531 case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_compile") 2>conftest.er1
12538 grep -v '^ *+' conftest.er1 >conftest.err
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } &&
12543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12544 { (case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_try") 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest.$ac_objext'
12554 { (case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559 (eval "$ac_try") 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 ac_cv_have_decl_FE_ALL_EXCEPT=no
12571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12573 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12574 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12575 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12577 cat >>confdefs.h <<_ACEOF
12578 #define HAVE_DECL_FE_ALL_EXCEPT 1
12583 cat >>confdefs.h <<_ACEOF
12584 #define HAVE_DECL_FE_ALL_EXCEPT 0
12589 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12590 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12591 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 cat >conftest.$ac_ext <<_ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12606 char *p = (char *) FE_INEXACT;
12614 rm -f conftest.$ac_objext
12615 if { (ac_try="$ac_compile"
12616 case "(($ac_try" in
12617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618 *) ac_try_echo=$ac_try;;
12620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621 (eval "$ac_compile") 2>conftest.er1
12623 grep -v '^ *+' conftest.er1 >conftest.err
12625 cat conftest.err >&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } &&
12628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12629 { (case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_try") 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest.$ac_objext'
12639 { (case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_try") 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12648 ac_cv_have_decl_FE_INEXACT=yes
12650 echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12653 ac_cv_have_decl_FE_INEXACT=no
12656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12658 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12659 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12660 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12662 cat >>confdefs.h <<_ACEOF
12663 #define HAVE_DECL_FE_INEXACT 1
12668 cat >>confdefs.h <<_ACEOF
12669 #define HAVE_DECL_FE_INEXACT 0
12676 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12678 for ac_header in pthread.h
12680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 ac_res=`eval echo '${'$as_ac_Header'}'`
12688 { echo "$as_me:$LINENO: result: $ac_res" >&5
12689 echo "${ECHO_T}$ac_res" >&6; }
12691 # Is the header compilable?
12692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12694 cat >conftest.$ac_ext <<_ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h. */
12700 $ac_includes_default
12701 #include <$ac_header>
12703 rm -f conftest.$ac_objext
12704 if { (ac_try="$ac_compile"
12705 case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_compile") 2>conftest.er1
12712 grep -v '^ *+' conftest.er1 >conftest.err
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } &&
12717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12718 { (case "(($ac_try" in
12719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720 *) ac_try_echo=$ac_try;;
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723 (eval "$ac_try") 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; } &&
12727 { ac_try='test -s conftest.$ac_objext'
12728 { (case "(($ac_try" in
12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730 *) ac_try_echo=$ac_try;;
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733 (eval "$ac_try") 2>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; }; then
12737 ac_header_compiler=yes
12739 echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12742 ac_header_compiler=no
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12747 echo "${ECHO_T}$ac_header_compiler" >&6; }
12749 # Is the header present?
12750 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12752 cat >conftest.$ac_ext <<_ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12758 #include <$ac_header>
12760 if { (ac_try="$ac_cpp conftest.$ac_ext"
12761 case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12768 grep -v '^ *+' conftest.er1 >conftest.err
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } >/dev/null; then
12773 if test -s conftest.err; then
12774 ac_cpp_err=$ac_c_preproc_warn_flag
12775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12782 if test -z "$ac_cpp_err"; then
12783 ac_header_preproc=yes
12785 echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12788 ac_header_preproc=no
12791 rm -f conftest.err conftest.$ac_ext
12792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12793 echo "${ECHO_T}$ac_header_preproc" >&6; }
12795 # So? What about this header?
12796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12802 ac_header_preproc=yes
12805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12812 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12818 ## ------------------------------------ ##
12819 ## Report this to http://llvm.org/bugs/ ##
12820 ## ------------------------------------ ##
12822 ) | sed "s/^/$as_me: WARNING: /" >&2
12825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 eval "$as_ac_Header=\$ac_header_preproc"
12832 ac_res=`eval echo '${'$as_ac_Header'}'`
12833 { echo "$as_me:$LINENO: result: $ac_res" >&5
12834 echo "${ECHO_T}$ac_res" >&6; }
12837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12838 cat >>confdefs.h <<_ACEOF
12839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12854 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12856 for ac_header in zlib.h
12858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 ac_res=`eval echo '${'$as_ac_Header'}'`
12866 { echo "$as_me:$LINENO: result: $ac_res" >&5
12867 echo "${ECHO_T}$ac_res" >&6; }
12869 # Is the header compilable?
12870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12872 cat >conftest.$ac_ext <<_ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878 $ac_includes_default
12879 #include <$ac_header>
12881 rm -f conftest.$ac_objext
12882 if { (ac_try="$ac_compile"
12883 case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888 (eval "$ac_compile") 2>conftest.er1
12890 grep -v '^ *+' conftest.er1 >conftest.err
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
12895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12896 { (case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_try") 2>&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; } &&
12905 { ac_try='test -s conftest.$ac_objext'
12906 { (case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_try") 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 ac_header_compiler=yes
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12920 ac_header_compiler=no
12923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12925 echo "${ECHO_T}$ac_header_compiler" >&6; }
12927 # Is the header present?
12928 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12930 cat >conftest.$ac_ext <<_ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 #include <$ac_header>
12938 if { (ac_try="$ac_cpp conftest.$ac_ext"
12939 case "(($ac_try" in
12940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12941 *) ac_try_echo=$ac_try;;
12943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12946 grep -v '^ *+' conftest.er1 >conftest.err
12948 cat conftest.err >&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } >/dev/null; then
12951 if test -s conftest.err; then
12952 ac_cpp_err=$ac_c_preproc_warn_flag
12953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12960 if test -z "$ac_cpp_err"; then
12961 ac_header_preproc=yes
12963 echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12966 ac_header_preproc=no
12969 rm -f conftest.err conftest.$ac_ext
12970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12971 echo "${ECHO_T}$ac_header_preproc" >&6; }
12973 # So? What about this header?
12974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12980 ac_header_preproc=yes
12983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12996 ## ------------------------------------ ##
12997 ## Report this to http://llvm.org/bugs/ ##
12998 ## ------------------------------------ ##
13000 ) | sed "s/^/$as_me: WARNING: /" >&2
13003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13008 eval "$as_ac_Header=\$ac_header_preproc"
13010 ac_res=`eval echo '${'$as_ac_Header'}'`
13011 { echo "$as_me:$LINENO: result: $ac_res" >&5
13012 echo "${ECHO_T}$ac_res" >&6; }
13015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13016 cat >>confdefs.h <<_ACEOF
13017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13033 if test "$llvm_cv_enable_libffi" = "yes" ; then
13036 for ac_header in ffi.h ffi/ffi.h
13038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13045 ac_res=`eval echo '${'$as_ac_Header'}'`
13046 { echo "$as_me:$LINENO: result: $ac_res" >&5
13047 echo "${ECHO_T}$ac_res" >&6; }
13049 # Is the header compilable?
13050 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13052 cat >conftest.$ac_ext <<_ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h. */
13058 $ac_includes_default
13059 #include <$ac_header>
13061 rm -f conftest.$ac_objext
13062 if { (ac_try="$ac_compile"
13063 case "(($ac_try" in
13064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068 (eval "$ac_compile") 2>conftest.er1
13070 grep -v '^ *+' conftest.er1 >conftest.err
13072 cat conftest.err >&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } &&
13075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13076 { (case "(($ac_try" in
13077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13078 *) ac_try_echo=$ac_try;;
13080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13081 (eval "$ac_try") 2>&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; } &&
13085 { ac_try='test -s conftest.$ac_objext'
13086 { (case "(($ac_try" in
13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_try") 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 ac_header_compiler=yes
13097 echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13100 ac_header_compiler=no
13103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13105 echo "${ECHO_T}$ac_header_compiler" >&6; }
13107 # Is the header present?
13108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13110 cat >conftest.$ac_ext <<_ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h. */
13116 #include <$ac_header>
13118 if { (ac_try="$ac_cpp conftest.$ac_ext"
13119 case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13126 grep -v '^ *+' conftest.er1 >conftest.err
13128 cat conftest.err >&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } >/dev/null; then
13131 if test -s conftest.err; then
13132 ac_cpp_err=$ac_c_preproc_warn_flag
13133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13140 if test -z "$ac_cpp_err"; then
13141 ac_header_preproc=yes
13143 echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13146 ac_header_preproc=no
13149 rm -f conftest.err conftest.$ac_ext
13150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13151 echo "${ECHO_T}$ac_header_preproc" >&6; }
13153 # So? What about this header?
13154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13160 ac_header_preproc=yes
13163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13176 ## ------------------------------------ ##
13177 ## Report this to http://llvm.org/bugs/ ##
13178 ## ------------------------------------ ##
13180 ) | sed "s/^/$as_me: WARNING: /" >&2
13183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 eval "$as_ac_Header=\$ac_header_preproc"
13190 ac_res=`eval echo '${'$as_ac_Header'}'`
13191 { echo "$as_me:$LINENO: result: $ac_res" >&5
13192 echo "${ECHO_T}$ac_res" >&6; }
13195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13196 cat >>confdefs.h <<_ACEOF
13197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13207 for ac_header in CrashReporterClient.h
13209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13216 ac_res=`eval echo '${'$as_ac_Header'}'`
13217 { echo "$as_me:$LINENO: result: $ac_res" >&5
13218 echo "${ECHO_T}$ac_res" >&6; }
13220 # Is the header compilable?
13221 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13223 cat >conftest.$ac_ext <<_ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13229 $ac_includes_default
13230 #include <$ac_header>
13232 rm -f conftest.$ac_objext
13233 if { (ac_try="$ac_compile"
13234 case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_compile") 2>conftest.er1
13241 grep -v '^ *+' conftest.er1 >conftest.err
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13247 { (case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252 (eval "$ac_try") 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try='test -s conftest.$ac_objext'
13257 { (case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_try") 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; }; then
13266 ac_header_compiler=yes
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13271 ac_header_compiler=no
13274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13276 echo "${ECHO_T}$ac_header_compiler" >&6; }
13278 # Is the header present?
13279 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13281 cat >conftest.$ac_ext <<_ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 #include <$ac_header>
13289 if { (ac_try="$ac_cpp conftest.$ac_ext"
13290 case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13297 grep -v '^ *+' conftest.er1 >conftest.err
13299 cat conftest.err >&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } >/dev/null; then
13302 if test -s conftest.err; then
13303 ac_cpp_err=$ac_c_preproc_warn_flag
13304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13311 if test -z "$ac_cpp_err"; then
13312 ac_header_preproc=yes
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 ac_header_preproc=no
13320 rm -f conftest.err conftest.$ac_ext
13321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13322 echo "${ECHO_T}$ac_header_preproc" >&6; }
13324 # So? What about this header?
13325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13331 ac_header_preproc=yes
13334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13347 ## ------------------------------------ ##
13348 ## Report this to http://llvm.org/bugs/ ##
13349 ## ------------------------------------ ##
13351 ) | sed "s/^/$as_me: WARNING: /" >&2
13354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 eval "$as_ac_Header=\$ac_header_preproc"
13361 ac_res=`eval echo '${'$as_ac_Header'}'`
13362 { echo "$as_me:$LINENO: result: $ac_res" >&5
13363 echo "${ECHO_T}$ac_res" >&6; }
13366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13367 cat >>confdefs.h <<_ACEOF
13368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13376 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13377 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13378 cat >conftest.$ac_ext <<_ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13386 extern const char *__crashreporter_info__;
13388 __crashreporter_info__ = "test";
13394 rm -f conftest.$ac_objext conftest$ac_exeext
13395 if { (ac_try="$ac_link"
13396 case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_link") 2>conftest.er1
13403 grep -v '^ *+' conftest.er1 >conftest.err
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
13408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13409 { (case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_try") 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; } &&
13418 { ac_try='test -s conftest$ac_exeext'
13419 { (case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_try") 2>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13429 { echo "$as_me:$LINENO: result: yes" >&5
13430 echo "${ECHO_T}yes" >&6; }
13432 cat >>confdefs.h <<\_ACEOF
13433 #define HAVE_CRASHREPORTER_INFO 1
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13442 { echo "$as_me:$LINENO: result: no" >&5
13443 echo "${ECHO_T}no" >&6; }
13445 cat >>confdefs.h <<\_ACEOF
13446 #define HAVE_CRASHREPORTER_INFO 0
13452 rm -f core conftest.err conftest.$ac_objext \
13453 conftest$ac_exeext conftest.$ac_ext
13457 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13458 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13459 if test "${ac_cv_huge_val_sanity+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 ac_cpp='$CXXCPP $CPPFLAGS'
13465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13469 ac_save_CXXFLAGS=$CXXFLAGS
13470 CXXFLAGS="$CXXFLAGS -pedantic"
13471 if test "$cross_compiling" = yes; then
13472 ac_cv_huge_val_sanity=yes
13474 cat >conftest.$ac_ext <<_ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13484 double x = HUGE_VAL; return x != x;
13489 rm -f conftest$ac_exeext
13490 if { (ac_try="$ac_link"
13491 case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_link") 2>&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13500 { (case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_try") 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_huge_val_sanity=yes
13511 echo "$as_me: program exited with status $ac_status" >&5
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13515 ( exit $ac_status )
13516 ac_cv_huge_val_sanity=no
13518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13522 CXXFLAGS=$ac_save_CXXFLAGS
13524 ac_cpp='$CPP $CPPFLAGS'
13525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13531 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13532 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13533 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13536 { echo "$as_me:$LINENO: checking for pid_t" >&5
13537 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13538 if test "${ac_cv_type_pid_t+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 cat >conftest.$ac_ext <<_ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13547 $ac_includes_default
13548 typedef pid_t ac__type_new_;
13552 if ((ac__type_new_ *) 0)
13554 if (sizeof (ac__type_new_))
13560 rm -f conftest.$ac_objext
13561 if { (ac_try="$ac_compile"
13562 case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_compile") 2>conftest.er1
13569 grep -v '^ *+' conftest.er1 >conftest.err
13571 cat conftest.err >&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } &&
13574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13575 { (case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_try") 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; } &&
13584 { ac_try='test -s conftest.$ac_objext'
13585 { (case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_try") 2>&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 ac_cv_type_pid_t=yes
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 ac_cv_type_pid_t=no
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13605 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13606 if test $ac_cv_type_pid_t = yes; then
13610 cat >>confdefs.h <<_ACEOF
13616 { echo "$as_me:$LINENO: checking for size_t" >&5
13617 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13618 if test "${ac_cv_type_size_t+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13621 cat >conftest.$ac_ext <<_ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h. */
13627 $ac_includes_default
13628 typedef size_t ac__type_new_;
13632 if ((ac__type_new_ *) 0)
13634 if (sizeof (ac__type_new_))
13640 rm -f conftest.$ac_objext
13641 if { (ac_try="$ac_compile"
13642 case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_compile") 2>conftest.er1
13649 grep -v '^ *+' conftest.er1 >conftest.err
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
13654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13655 { (case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660 (eval "$ac_try") 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; } &&
13664 { ac_try='test -s conftest.$ac_objext'
13665 { (case "(($ac_try" in
13666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667 *) ac_try_echo=$ac_try;;
13669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670 (eval "$ac_try") 2>&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
13674 ac_cv_type_size_t=yes
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13679 ac_cv_type_size_t=no
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13684 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13685 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13686 if test $ac_cv_type_size_t = yes; then
13690 cat >>confdefs.h <<_ACEOF
13691 #define size_t unsigned int
13697 cat >>confdefs.h <<_ACEOF
13698 #define RETSIGTYPE void
13701 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13702 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13703 if test "${ac_cv_struct_tm+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 cat >conftest.$ac_ext <<_ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13712 #include <sys/types.h>
13718 struct tm *tp; tp->tm_sec;
13723 rm -f conftest.$ac_objext
13724 if { (ac_try="$ac_compile"
13725 case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_compile") 2>conftest.er1
13732 grep -v '^ *+' conftest.er1 >conftest.err
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13738 { (case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_try") 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_try") 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13757 ac_cv_struct_tm=time.h
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 ac_cv_struct_tm=sys/time.h
13765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13767 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13768 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13769 if test $ac_cv_struct_tm = sys/time.h; then
13771 cat >>confdefs.h <<\_ACEOF
13772 #define TM_IN_SYS_TIME 1
13777 { echo "$as_me:$LINENO: checking for int64_t" >&5
13778 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13779 if test "${ac_cv_type_int64_t+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 cat >conftest.$ac_ext <<_ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13788 $ac_includes_default
13789 typedef int64_t ac__type_new_;
13793 if ((ac__type_new_ *) 0)
13795 if (sizeof (ac__type_new_))
13801 rm -f conftest.$ac_objext
13802 if { (ac_try="$ac_compile"
13803 case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_compile") 2>conftest.er1
13810 grep -v '^ *+' conftest.er1 >conftest.err
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13816 { (case "(($ac_try" in
13817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818 *) ac_try_echo=$ac_try;;
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821 (eval "$ac_try") 2>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try='test -s conftest.$ac_objext'
13826 { (case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_try") 2>&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13835 ac_cv_type_int64_t=yes
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13840 ac_cv_type_int64_t=no
13843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13846 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13847 if test $ac_cv_type_int64_t = yes; then
13849 cat >>confdefs.h <<_ACEOF
13850 #define HAVE_INT64_T 1
13855 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13856 echo "$as_me: error: Type int64_t required but not found" >&2;}
13857 { (exit 1); exit 1; }; }
13860 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13861 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13862 if test "${ac_cv_type_uint64_t+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 cat >conftest.$ac_ext <<_ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13871 $ac_includes_default
13872 typedef uint64_t ac__type_new_;
13876 if ((ac__type_new_ *) 0)
13878 if (sizeof (ac__type_new_))
13884 rm -f conftest.$ac_objext
13885 if { (ac_try="$ac_compile"
13886 case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_compile") 2>conftest.er1
13893 grep -v '^ *+' conftest.er1 >conftest.err
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } &&
13898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13899 { (case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_try") 2>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; } &&
13908 { ac_try='test -s conftest.$ac_objext'
13909 { (case "(($ac_try" in
13910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911 *) ac_try_echo=$ac_try;;
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914 (eval "$ac_try") 2>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_type_uint64_t=yes
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13923 ac_cv_type_uint64_t=no
13926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13929 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13930 if test $ac_cv_type_uint64_t = yes; then
13932 cat >>confdefs.h <<_ACEOF
13933 #define HAVE_UINT64_T 1
13938 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13939 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13940 if test "${ac_cv_type_u_int64_t+set}" = set; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 cat >conftest.$ac_ext <<_ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13949 $ac_includes_default
13950 typedef u_int64_t ac__type_new_;
13954 if ((ac__type_new_ *) 0)
13956 if (sizeof (ac__type_new_))
13962 rm -f conftest.$ac_objext
13963 if { (ac_try="$ac_compile"
13964 case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969 (eval "$ac_compile") 2>conftest.er1
13971 grep -v '^ *+' conftest.er1 >conftest.err
13973 cat conftest.err >&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } &&
13976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13977 { (case "(($ac_try" in
13978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979 *) ac_try_echo=$ac_try;;
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982 (eval "$ac_try") 2>&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; } &&
13986 { ac_try='test -s conftest.$ac_objext'
13987 { (case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_try") 2>&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13996 ac_cv_type_u_int64_t=yes
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14001 ac_cv_type_u_int64_t=no
14004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14006 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14007 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14008 if test $ac_cv_type_u_int64_t = yes; then
14010 cat >>confdefs.h <<_ACEOF
14011 #define HAVE_U_INT64_T 1
14016 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14017 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14018 { (exit 1); exit 1; }; }
14027 for ac_func in backtrace getcwd
14029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 cat >conftest.$ac_ext <<_ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14043 #define $ac_func innocuous_$ac_func
14045 /* System header to define __stub macros and hopefully few prototypes,
14046 which can conflict with char $ac_func (); below.
14047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14048 <limits.h> exists even on freestanding compilers. */
14051 # include <limits.h>
14053 # include <assert.h>
14058 /* Override any GCC internal prototype to avoid an error.
14059 Use char because int might match the return type of a GCC
14060 builtin and then its argument prototype would still apply. */
14065 /* The GNU C library defines this for functions which it implements
14066 to always fail with ENOSYS. Some functions are actually named
14067 something starting with __ and the normal name is an alias. */
14068 #if defined __stub_$ac_func || defined __stub___$ac_func
14075 return $ac_func ();
14080 rm -f conftest.$ac_objext conftest$ac_exeext
14081 if { (ac_try="$ac_link"
14082 case "(($ac_try" in
14083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084 *) ac_try_echo=$ac_try;;
14086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087 (eval "$ac_link") 2>conftest.er1
14089 grep -v '^ *+' conftest.er1 >conftest.err
14091 cat conftest.err >&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); } &&
14094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14095 { (case "(($ac_try" in
14096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097 *) ac_try_echo=$ac_try;;
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100 (eval "$ac_try") 2>&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; } &&
14104 { ac_try='test -s conftest$ac_exeext'
14105 { (case "(($ac_try" in
14106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107 *) ac_try_echo=$ac_try;;
14109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14110 (eval "$ac_try") 2>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 eval "$as_ac_var=yes"
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14119 eval "$as_ac_var=no"
14122 rm -f core conftest.err conftest.$ac_objext \
14123 conftest$ac_exeext conftest.$ac_ext
14125 ac_res=`eval echo '${'$as_ac_var'}'`
14126 { echo "$as_me:$LINENO: result: $ac_res" >&5
14127 echo "${ECHO_T}$ac_res" >&6; }
14128 if test `eval echo '${'$as_ac_var'}'` = yes; then
14129 cat >>confdefs.h <<_ACEOF
14130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14141 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 cat >conftest.$ac_ext <<_ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14157 #define $ac_func innocuous_$ac_func
14159 /* System header to define __stub macros and hopefully few prototypes,
14160 which can conflict with char $ac_func (); below.
14161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14162 <limits.h> exists even on freestanding compilers. */
14165 # include <limits.h>
14167 # include <assert.h>
14172 /* Override any GCC internal prototype to avoid an error.
14173 Use char because int might match the return type of a GCC
14174 builtin and then its argument prototype would still apply. */
14179 /* The GNU C library defines this for functions which it implements
14180 to always fail with ENOSYS. Some functions are actually named
14181 something starting with __ and the normal name is an alias. */
14182 #if defined __stub_$ac_func || defined __stub___$ac_func
14189 return $ac_func ();
14194 rm -f conftest.$ac_objext conftest$ac_exeext
14195 if { (ac_try="$ac_link"
14196 case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_link") 2>conftest.er1
14203 grep -v '^ *+' conftest.er1 >conftest.err
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14209 { (case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_try") 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; } &&
14218 { ac_try='test -s conftest$ac_exeext'
14219 { (case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_try") 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 eval "$as_ac_var=yes"
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14233 eval "$as_ac_var=no"
14236 rm -f core conftest.err conftest.$ac_objext \
14237 conftest$ac_exeext conftest.$ac_ext
14239 ac_res=`eval echo '${'$as_ac_var'}'`
14240 { echo "$as_me:$LINENO: result: $ac_res" >&5
14241 echo "${ECHO_T}$ac_res" >&6; }
14242 if test `eval echo '${'$as_ac_var'}'` = yes; then
14243 cat >>confdefs.h <<_ACEOF
14244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14253 for ac_func in isatty mkdtemp mkstemp
14255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14256 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 cat >conftest.$ac_ext <<_ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14269 #define $ac_func innocuous_$ac_func
14271 /* System header to define __stub macros and hopefully few prototypes,
14272 which can conflict with char $ac_func (); below.
14273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14274 <limits.h> exists even on freestanding compilers. */
14277 # include <limits.h>
14279 # include <assert.h>
14284 /* Override any GCC internal prototype to avoid an error.
14285 Use char because int might match the return type of a GCC
14286 builtin and then its argument prototype would still apply. */
14291 /* The GNU C library defines this for functions which it implements
14292 to always fail with ENOSYS. Some functions are actually named
14293 something starting with __ and the normal name is an alias. */
14294 #if defined __stub_$ac_func || defined __stub___$ac_func
14301 return $ac_func ();
14306 rm -f conftest.$ac_objext conftest$ac_exeext
14307 if { (ac_try="$ac_link"
14308 case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_link") 2>conftest.er1
14315 grep -v '^ *+' conftest.er1 >conftest.err
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14321 { (case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_try") 2>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; } &&
14330 { ac_try='test -s conftest$ac_exeext'
14331 { (case "(($ac_try" in
14332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333 *) ac_try_echo=$ac_try;;
14335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14336 (eval "$ac_try") 2>&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 eval "$as_ac_var=yes"
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14345 eval "$as_ac_var=no"
14348 rm -f core conftest.err conftest.$ac_objext \
14349 conftest$ac_exeext conftest.$ac_ext
14351 ac_res=`eval echo '${'$as_ac_var'}'`
14352 { echo "$as_me:$LINENO: result: $ac_res" >&5
14353 echo "${ECHO_T}$ac_res" >&6; }
14354 if test `eval echo '${'$as_ac_var'}'` = yes; then
14355 cat >>confdefs.h <<_ACEOF
14356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14368 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14376 cat >conftest.$ac_ext <<_ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14384 #define $ac_func innocuous_$ac_func
14386 /* System header to define __stub macros and hopefully few prototypes,
14387 which can conflict with char $ac_func (); below.
14388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14389 <limits.h> exists even on freestanding compilers. */
14392 # include <limits.h>
14394 # include <assert.h>
14399 /* Override any GCC internal prototype to avoid an error.
14400 Use char because int might match the return type of a GCC
14401 builtin and then its argument prototype would still apply. */
14406 /* The GNU C library defines this for functions which it implements
14407 to always fail with ENOSYS. Some functions are actually named
14408 something starting with __ and the normal name is an alias. */
14409 #if defined __stub_$ac_func || defined __stub___$ac_func
14416 return $ac_func ();
14421 rm -f conftest.$ac_objext conftest$ac_exeext
14422 if { (ac_try="$ac_link"
14423 case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_link") 2>conftest.er1
14430 grep -v '^ *+' conftest.er1 >conftest.err
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
14435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14436 { (case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_try") 2>&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest$ac_exeext'
14446 { (case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_try") 2>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 eval "$as_ac_var=yes"
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14460 eval "$as_ac_var=no"
14463 rm -f core conftest.err conftest.$ac_objext \
14464 conftest$ac_exeext conftest.$ac_ext
14466 ac_res=`eval echo '${'$as_ac_var'}'`
14467 { echo "$as_me:$LINENO: result: $ac_res" >&5
14468 echo "${ECHO_T}$ac_res" >&6; }
14469 if test `eval echo '${'$as_ac_var'}'` = yes; then
14470 cat >>confdefs.h <<_ACEOF
14471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14480 for ac_func in strerror strerror_r setenv
14482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 cat >conftest.$ac_ext <<_ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14496 #define $ac_func innocuous_$ac_func
14498 /* System header to define __stub macros and hopefully few prototypes,
14499 which can conflict with char $ac_func (); below.
14500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14501 <limits.h> exists even on freestanding compilers. */
14504 # include <limits.h>
14506 # include <assert.h>
14511 /* Override any GCC internal prototype to avoid an error.
14512 Use char because int might match the return type of a GCC
14513 builtin and then its argument prototype would still apply. */
14518 /* The GNU C library defines this for functions which it implements
14519 to always fail with ENOSYS. Some functions are actually named
14520 something starting with __ and the normal name is an alias. */
14521 #if defined __stub_$ac_func || defined __stub___$ac_func
14528 return $ac_func ();
14533 rm -f conftest.$ac_objext conftest$ac_exeext
14534 if { (ac_try="$ac_link"
14535 case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_link") 2>conftest.er1
14542 grep -v '^ *+' conftest.er1 >conftest.err
14544 cat conftest.err >&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } &&
14547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14548 { (case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_try") 2>&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } &&
14557 { ac_try='test -s conftest$ac_exeext'
14558 { (case "(($ac_try" in
14559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560 *) ac_try_echo=$ac_try;;
14562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563 (eval "$ac_try") 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14567 eval "$as_ac_var=yes"
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 eval "$as_ac_var=no"
14575 rm -f core conftest.err conftest.$ac_objext \
14576 conftest$ac_exeext conftest.$ac_ext
14578 ac_res=`eval echo '${'$as_ac_var'}'`
14579 { echo "$as_me:$LINENO: result: $ac_res" >&5
14580 echo "${ECHO_T}$ac_res" >&6; }
14581 if test `eval echo '${'$as_ac_var'}'` = yes; then
14582 cat >>confdefs.h <<_ACEOF
14583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14593 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 cat >conftest.$ac_ext <<_ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h. */
14607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14609 #define $ac_func innocuous_$ac_func
14611 /* System header to define __stub macros and hopefully few prototypes,
14612 which can conflict with char $ac_func (); below.
14613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14614 <limits.h> exists even on freestanding compilers. */
14617 # include <limits.h>
14619 # include <assert.h>
14624 /* Override any GCC internal prototype to avoid an error.
14625 Use char because int might match the return type of a GCC
14626 builtin and then its argument prototype would still apply. */
14631 /* The GNU C library defines this for functions which it implements
14632 to always fail with ENOSYS. Some functions are actually named
14633 something starting with __ and the normal name is an alias. */
14634 #if defined __stub_$ac_func || defined __stub___$ac_func
14641 return $ac_func ();
14646 rm -f conftest.$ac_objext conftest$ac_exeext
14647 if { (ac_try="$ac_link"
14648 case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_link") 2>conftest.er1
14655 grep -v '^ *+' conftest.er1 >conftest.err
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14661 { (case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_try") 2>&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; } &&
14670 { ac_try='test -s conftest$ac_exeext'
14671 { (case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_try") 2>&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 eval "$as_ac_var=yes"
14682 echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14685 eval "$as_ac_var=no"
14688 rm -f core conftest.err conftest.$ac_objext \
14689 conftest$ac_exeext conftest.$ac_ext
14691 ac_res=`eval echo '${'$as_ac_var'}'`
14692 { echo "$as_me:$LINENO: result: $ac_res" >&5
14693 echo "${ECHO_T}$ac_res" >&6; }
14694 if test `eval echo '${'$as_ac_var'}'` = yes; then
14695 cat >>confdefs.h <<_ACEOF
14696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14707 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 cat >conftest.$ac_ext <<_ACEOF
14718 cat confdefs.h >>conftest.$ac_ext
14719 cat >>conftest.$ac_ext <<_ACEOF
14720 /* end confdefs.h. */
14721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14723 #define $ac_func innocuous_$ac_func
14725 /* System header to define __stub macros and hopefully few prototypes,
14726 which can conflict with char $ac_func (); below.
14727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14728 <limits.h> exists even on freestanding compilers. */
14731 # include <limits.h>
14733 # include <assert.h>
14738 /* Override any GCC internal prototype to avoid an error.
14739 Use char because int might match the return type of a GCC
14740 builtin and then its argument prototype would still apply. */
14745 /* The GNU C library defines this for functions which it implements
14746 to always fail with ENOSYS. Some functions are actually named
14747 something starting with __ and the normal name is an alias. */
14748 #if defined __stub_$ac_func || defined __stub___$ac_func
14755 return $ac_func ();
14760 rm -f conftest.$ac_objext conftest$ac_exeext
14761 if { (ac_try="$ac_link"
14762 case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_link") 2>conftest.er1
14769 grep -v '^ *+' conftest.er1 >conftest.err
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14775 { (case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_try") 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; } &&
14784 { ac_try='test -s conftest$ac_exeext'
14785 { (case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_try") 2>&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14794 eval "$as_ac_var=yes"
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14799 eval "$as_ac_var=no"
14802 rm -f core conftest.err conftest.$ac_objext \
14803 conftest$ac_exeext conftest.$ac_ext
14805 ac_res=`eval echo '${'$as_ac_var'}'`
14806 { echo "$as_me:$LINENO: result: $ac_res" >&5
14807 echo "${ECHO_T}$ac_res" >&6; }
14808 if test `eval echo '${'$as_ac_var'}'` = yes; then
14809 cat >>confdefs.h <<_ACEOF
14810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14818 for ac_func in futimes futimens
14820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 cat >conftest.$ac_ext <<_ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14834 #define $ac_func innocuous_$ac_func
14836 /* System header to define __stub macros and hopefully few prototypes,
14837 which can conflict with char $ac_func (); below.
14838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14839 <limits.h> exists even on freestanding compilers. */
14842 # include <limits.h>
14844 # include <assert.h>
14849 /* Override any GCC internal prototype to avoid an error.
14850 Use char because int might match the return type of a GCC
14851 builtin and then its argument prototype would still apply. */
14856 /* The GNU C library defines this for functions which it implements
14857 to always fail with ENOSYS. Some functions are actually named
14858 something starting with __ and the normal name is an alias. */
14859 #if defined __stub_$ac_func || defined __stub___$ac_func
14866 return $ac_func ();
14871 rm -f conftest.$ac_objext conftest$ac_exeext
14872 if { (ac_try="$ac_link"
14873 case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_link") 2>conftest.er1
14880 grep -v '^ *+' conftest.er1 >conftest.err
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } &&
14885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14886 { (case "(($ac_try" in
14887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14888 *) ac_try_echo=$ac_try;;
14890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14891 (eval "$ac_try") 2>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; } &&
14895 { ac_try='test -s conftest$ac_exeext'
14896 { (case "(($ac_try" in
14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898 *) ac_try_echo=$ac_try;;
14900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14901 (eval "$ac_try") 2>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; }; then
14905 eval "$as_ac_var=yes"
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14910 eval "$as_ac_var=no"
14913 rm -f core conftest.err conftest.$ac_objext \
14914 conftest$ac_exeext conftest.$ac_ext
14916 ac_res=`eval echo '${'$as_ac_var'}'`
14917 { echo "$as_me:$LINENO: result: $ac_res" >&5
14918 echo "${ECHO_T}$ac_res" >&6; }
14919 if test `eval echo '${'$as_ac_var'}'` = yes; then
14920 cat >>confdefs.h <<_ACEOF
14921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14927 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14928 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14929 if test "${llvm_cv_c_printf_a+set}" = set; then
14930 echo $ECHO_N "(cached) $ECHO_C" >&6
14933 ac_cpp='$CPP $CPPFLAGS'
14934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14938 if test "$cross_compiling" = yes; then
14939 llvmac_cv_c_printf_a=no
14941 cat >conftest.$ac_ext <<_ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14950 #include <stdlib.h>
14956 volatile double A, B;
14960 sprintf(Buffer, "%a", A);
14964 if (A != 0x1.999999999999ap-4)
14971 rm -f conftest$ac_exeext
14972 if { (ac_try="$ac_link"
14973 case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_link") 2>&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14982 { (case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_try") 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }; then
14991 llvm_cv_c_printf_a=yes
14993 echo "$as_me: program exited with status $ac_status" >&5
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 ( exit $ac_status )
14998 llvmac_cv_c_printf_a=no
15000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15005 ac_cpp='$CPP $CPPFLAGS'
15006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15011 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15012 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15013 if test "$llvm_cv_c_printf_a" = "yes"; then
15015 cat >>confdefs.h <<\_ACEOF
15016 #define HAVE_PRINTF_A 1
15023 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15024 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15025 if test "${ac_cv_func_rand48+set}" = set; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 ac_cpp='$CXXCPP $CPPFLAGS'
15031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15035 cat >conftest.$ac_ext <<_ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15041 #include <stdlib.h>
15045 srand48(0);lrand48();drand48();
15050 rm -f conftest.$ac_objext
15051 if { (ac_try="$ac_compile"
15052 case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_compile") 2>conftest.er1
15059 grep -v '^ *+' conftest.er1 >conftest.err
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } &&
15064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15065 { (case "(($ac_try" in
15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067 *) ac_try_echo=$ac_try;;
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070 (eval "$ac_try") 2>&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; } &&
15074 { ac_try='test -s conftest.$ac_objext'
15075 { (case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_try") 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; }; then
15084 ac_cv_func_rand48=yes
15086 echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15089 ac_cv_func_rand48=no
15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094 ac_cpp='$CPP $CPPFLAGS'
15095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15101 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15102 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15104 if test "$ac_cv_func_rand48" = "yes" ; then
15106 cat >>confdefs.h <<\_ACEOF
15107 #define HAVE_RAND48 1
15113 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15114 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15115 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 cat >conftest.$ac_ext <<_ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15124 $ac_includes_default
15129 char *p = (char *) arc4random;
15137 rm -f conftest.$ac_objext
15138 if { (ac_try="$ac_compile"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_compile") 2>conftest.er1
15146 grep -v '^ *+' conftest.er1 >conftest.err
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15152 { (case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_try") 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; } &&
15161 { ac_try='test -s conftest.$ac_objext'
15162 { (case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_try") 2>&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_cv_have_decl_arc4random=yes
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ac_cv_have_decl_arc4random=no
15179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15181 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15182 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15183 if test $ac_cv_have_decl_arc4random = yes; then
15185 cat >>confdefs.h <<_ACEOF
15186 #define HAVE_DECL_ARC4RANDOM 1
15191 cat >>confdefs.h <<_ACEOF
15192 #define HAVE_DECL_ARC4RANDOM 0
15200 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15201 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15202 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15205 cat >conftest.$ac_ext <<_ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15211 $ac_includes_default
15216 char *p = (char *) strerror_s;
15224 rm -f conftest.$ac_objext
15225 if { (ac_try="$ac_compile"
15226 case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_compile") 2>conftest.er1
15233 grep -v '^ *+' conftest.er1 >conftest.err
15235 cat conftest.err >&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); } &&
15238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15239 { (case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_try") 2>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; } &&
15248 { ac_try='test -s conftest.$ac_objext'
15249 { (case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_try") 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_cv_have_decl_strerror_s=yes
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15263 ac_cv_have_decl_strerror_s=no
15266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15268 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15269 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15270 if test $ac_cv_have_decl_strerror_s = yes; then
15272 cat >>confdefs.h <<_ACEOF
15273 #define HAVE_DECL_STRERROR_S 1
15278 cat >>confdefs.h <<_ACEOF
15279 #define HAVE_DECL_STRERROR_S 0
15287 if test "$llvm_cv_os_type" = "MingW" ; then
15288 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15289 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15290 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15293 ac_check_lib_save_LIBS=$LIBS
15295 cat >conftest.$ac_ext <<_ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h. */
15302 /* Override any GCC internal prototype to avoid an error.
15303 Use char because int might match the return type of a GCC
15304 builtin and then its argument prototype would still apply. */
15317 rm -f conftest.$ac_objext conftest$ac_exeext
15318 if { (ac_try="$ac_link"
15319 case "(($ac_try" in
15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324 (eval "$ac_link") 2>conftest.er1
15326 grep -v '^ *+' conftest.er1 >conftest.err
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
15331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15332 { (case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_try") 2>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; } &&
15341 { ac_try='test -s conftest$ac_exeext'
15342 { (case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_try") 2>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }; then
15351 ac_cv_lib_gcc__alloca=yes
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15356 ac_cv_lib_gcc__alloca=no
15359 rm -f core conftest.err conftest.$ac_objext \
15360 conftest$ac_exeext conftest.$ac_ext
15361 LIBS=$ac_check_lib_save_LIBS
15363 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15364 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15365 if test $ac_cv_lib_gcc__alloca = yes; then
15367 cat >>confdefs.h <<\_ACEOF
15368 #define HAVE__ALLOCA 1
15373 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15374 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15375 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15378 ac_check_lib_save_LIBS=$LIBS
15380 cat >conftest.$ac_ext <<_ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15387 /* Override any GCC internal prototype to avoid an error.
15388 Use char because int might match the return type of a GCC
15389 builtin and then its argument prototype would still apply. */
15397 return __alloca ();
15402 rm -f conftest.$ac_objext conftest$ac_exeext
15403 if { (ac_try="$ac_link"
15404 case "(($ac_try" in
15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409 (eval "$ac_link") 2>conftest.er1
15411 grep -v '^ *+' conftest.er1 >conftest.err
15413 cat conftest.err >&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); } &&
15416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15417 { (case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422 (eval "$ac_try") 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; } &&
15426 { ac_try='test -s conftest$ac_exeext'
15427 { (case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_try") 2>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; }; then
15436 ac_cv_lib_gcc___alloca=yes
15438 echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15441 ac_cv_lib_gcc___alloca=no
15444 rm -f core conftest.err conftest.$ac_objext \
15445 conftest$ac_exeext conftest.$ac_ext
15446 LIBS=$ac_check_lib_save_LIBS
15448 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15449 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15450 if test $ac_cv_lib_gcc___alloca = yes; then
15452 cat >>confdefs.h <<\_ACEOF
15453 #define HAVE___ALLOCA 1
15458 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15459 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15460 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 ac_check_lib_save_LIBS=$LIBS
15465 cat >conftest.$ac_ext <<_ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15472 /* Override any GCC internal prototype to avoid an error.
15473 Use char because int might match the return type of a GCC
15474 builtin and then its argument prototype would still apply. */
15482 return __chkstk ();
15487 rm -f conftest.$ac_objext conftest$ac_exeext
15488 if { (ac_try="$ac_link"
15489 case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_link") 2>conftest.er1
15496 grep -v '^ *+' conftest.er1 >conftest.err
15498 cat conftest.err >&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } &&
15501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15502 { (case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_try") 2>&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; } &&
15511 { ac_try='test -s conftest$ac_exeext'
15512 { (case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_try") 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }; then
15521 ac_cv_lib_gcc___chkstk=yes
15523 echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 ac_cv_lib_gcc___chkstk=no
15529 rm -f core conftest.err conftest.$ac_objext \
15530 conftest$ac_exeext conftest.$ac_ext
15531 LIBS=$ac_check_lib_save_LIBS
15533 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15534 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15535 if test $ac_cv_lib_gcc___chkstk = yes; then
15537 cat >>confdefs.h <<\_ACEOF
15538 #define HAVE___CHKSTK 1
15543 { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15544 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15545 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15546 echo $ECHO_N "(cached) $ECHO_C" >&6
15548 ac_check_lib_save_LIBS=$LIBS
15550 cat >conftest.$ac_ext <<_ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h. */
15557 /* Override any GCC internal prototype to avoid an error.
15558 Use char because int might match the return type of a GCC
15559 builtin and then its argument prototype would still apply. */
15563 char __chkstk_ms ();
15567 return __chkstk_ms ();
15572 rm -f conftest.$ac_objext conftest$ac_exeext
15573 if { (ac_try="$ac_link"
15574 case "(($ac_try" in
15575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576 *) ac_try_echo=$ac_try;;
15578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579 (eval "$ac_link") 2>conftest.er1
15581 grep -v '^ *+' conftest.er1 >conftest.err
15583 cat conftest.err >&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
15586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15587 { (case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_try") 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; } &&
15596 { ac_try='test -s conftest$ac_exeext'
15597 { (case "(($ac_try" in
15598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599 *) ac_try_echo=$ac_try;;
15601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15602 (eval "$ac_try") 2>&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); }; }; then
15606 ac_cv_lib_gcc___chkstk_ms=yes
15608 echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15611 ac_cv_lib_gcc___chkstk_ms=no
15614 rm -f core conftest.err conftest.$ac_objext \
15615 conftest$ac_exeext conftest.$ac_ext
15616 LIBS=$ac_check_lib_save_LIBS
15618 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15619 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15620 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15622 cat >>confdefs.h <<\_ACEOF
15623 #define HAVE___CHKSTK_MS 1
15628 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15629 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15630 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15633 ac_check_lib_save_LIBS=$LIBS
15635 cat >conftest.$ac_ext <<_ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h. */
15642 /* Override any GCC internal prototype to avoid an error.
15643 Use char because int might match the return type of a GCC
15644 builtin and then its argument prototype would still apply. */
15652 return ___chkstk ();
15657 rm -f conftest.$ac_objext conftest$ac_exeext
15658 if { (ac_try="$ac_link"
15659 case "(($ac_try" in
15660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661 *) ac_try_echo=$ac_try;;
15663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15664 (eval "$ac_link") 2>conftest.er1
15666 grep -v '^ *+' conftest.er1 >conftest.err
15668 cat conftest.err >&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); } &&
15671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15672 { (case "(($ac_try" in
15673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674 *) ac_try_echo=$ac_try;;
15676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15677 (eval "$ac_try") 2>&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); }; } &&
15681 { ac_try='test -s conftest$ac_exeext'
15682 { (case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_try") 2>&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; }; then
15691 ac_cv_lib_gcc____chkstk=yes
15693 echo "$as_me: failed program was:" >&5
15694 sed 's/^/| /' conftest.$ac_ext >&5
15696 ac_cv_lib_gcc____chkstk=no
15699 rm -f core conftest.err conftest.$ac_objext \
15700 conftest$ac_exeext conftest.$ac_ext
15701 LIBS=$ac_check_lib_save_LIBS
15703 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15704 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15705 if test $ac_cv_lib_gcc____chkstk = yes; then
15707 cat >>confdefs.h <<\_ACEOF
15708 #define HAVE____CHKSTK 1
15713 { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15714 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15715 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15716 echo $ECHO_N "(cached) $ECHO_C" >&6
15718 ac_check_lib_save_LIBS=$LIBS
15720 cat >conftest.$ac_ext <<_ACEOF
15723 cat confdefs.h >>conftest.$ac_ext
15724 cat >>conftest.$ac_ext <<_ACEOF
15725 /* end confdefs.h. */
15727 /* Override any GCC internal prototype to avoid an error.
15728 Use char because int might match the return type of a GCC
15729 builtin and then its argument prototype would still apply. */
15733 char ___chkstk_ms ();
15737 return ___chkstk_ms ();
15742 rm -f conftest.$ac_objext conftest$ac_exeext
15743 if { (ac_try="$ac_link"
15744 case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_link") 2>conftest.er1
15751 grep -v '^ *+' conftest.er1 >conftest.err
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15757 { (case "(($ac_try" in
15758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759 *) ac_try_echo=$ac_try;;
15761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762 (eval "$ac_try") 2>&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; } &&
15766 { ac_try='test -s conftest$ac_exeext'
15767 { (case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_try") 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_cv_lib_gcc____chkstk_ms=yes
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15781 ac_cv_lib_gcc____chkstk_ms=no
15784 rm -f core conftest.err conftest.$ac_objext \
15785 conftest$ac_exeext conftest.$ac_ext
15786 LIBS=$ac_check_lib_save_LIBS
15788 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15789 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15790 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15792 cat >>confdefs.h <<\_ACEOF
15793 #define HAVE____CHKSTK_MS 1
15799 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15800 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15801 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 ac_check_lib_save_LIBS=$LIBS
15806 cat >conftest.$ac_ext <<_ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h. */
15813 /* Override any GCC internal prototype to avoid an error.
15814 Use char because int might match the return type of a GCC
15815 builtin and then its argument prototype would still apply. */
15823 return __ashldi3 ();
15828 rm -f conftest.$ac_objext conftest$ac_exeext
15829 if { (ac_try="$ac_link"
15830 case "(($ac_try" in
15831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15832 *) ac_try_echo=$ac_try;;
15834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835 (eval "$ac_link") 2>conftest.er1
15837 grep -v '^ *+' conftest.er1 >conftest.err
15839 cat conftest.err >&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } &&
15842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15843 { (case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848 (eval "$ac_try") 2>&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; } &&
15852 { ac_try='test -s conftest$ac_exeext'
15853 { (case "(($ac_try" in
15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858 (eval "$ac_try") 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; }; then
15862 ac_cv_lib_gcc___ashldi3=yes
15864 echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15867 ac_cv_lib_gcc___ashldi3=no
15870 rm -f core conftest.err conftest.$ac_objext \
15871 conftest$ac_exeext conftest.$ac_ext
15872 LIBS=$ac_check_lib_save_LIBS
15874 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15875 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15876 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15878 cat >>confdefs.h <<\_ACEOF
15879 #define HAVE___ASHLDI3 1
15884 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15885 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15886 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 ac_check_lib_save_LIBS=$LIBS
15891 cat >conftest.$ac_ext <<_ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15898 /* Override any GCC internal prototype to avoid an error.
15899 Use char because int might match the return type of a GCC
15900 builtin and then its argument prototype would still apply. */
15908 return __ashrdi3 ();
15913 rm -f conftest.$ac_objext conftest$ac_exeext
15914 if { (ac_try="$ac_link"
15915 case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_link") 2>conftest.er1
15922 grep -v '^ *+' conftest.er1 >conftest.err
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } &&
15927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15928 { (case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_try") 2>&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; } &&
15937 { ac_try='test -s conftest$ac_exeext'
15938 { (case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_try") 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; }; then
15947 ac_cv_lib_gcc___ashrdi3=yes
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 ac_cv_lib_gcc___ashrdi3=no
15955 rm -f core conftest.err conftest.$ac_objext \
15956 conftest$ac_exeext conftest.$ac_ext
15957 LIBS=$ac_check_lib_save_LIBS
15959 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15960 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15961 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15963 cat >>confdefs.h <<\_ACEOF
15964 #define HAVE___ASHRDI3 1
15969 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15970 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15971 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15972 echo $ECHO_N "(cached) $ECHO_C" >&6
15974 ac_check_lib_save_LIBS=$LIBS
15976 cat >conftest.$ac_ext <<_ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h. */
15983 /* Override any GCC internal prototype to avoid an error.
15984 Use char because int might match the return type of a GCC
15985 builtin and then its argument prototype would still apply. */
15993 return __divdi3 ();
15998 rm -f conftest.$ac_objext conftest$ac_exeext
15999 if { (ac_try="$ac_link"
16000 case "(($ac_try" in
16001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002 *) ac_try_echo=$ac_try;;
16004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16005 (eval "$ac_link") 2>conftest.er1
16007 grep -v '^ *+' conftest.er1 >conftest.err
16009 cat conftest.err >&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
16012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16013 { (case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16018 (eval "$ac_try") 2>&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; } &&
16022 { ac_try='test -s conftest$ac_exeext'
16023 { (case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028 (eval "$ac_try") 2>&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
16032 ac_cv_lib_gcc___divdi3=yes
16034 echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16037 ac_cv_lib_gcc___divdi3=no
16040 rm -f core conftest.err conftest.$ac_objext \
16041 conftest$ac_exeext conftest.$ac_ext
16042 LIBS=$ac_check_lib_save_LIBS
16044 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16045 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16046 if test $ac_cv_lib_gcc___divdi3 = yes; then
16048 cat >>confdefs.h <<\_ACEOF
16049 #define HAVE___DIVDI3 1
16054 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16055 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16056 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 ac_check_lib_save_LIBS=$LIBS
16061 cat >conftest.$ac_ext <<_ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16068 /* Override any GCC internal prototype to avoid an error.
16069 Use char because int might match the return type of a GCC
16070 builtin and then its argument prototype would still apply. */
16078 return __fixdfdi ();
16083 rm -f conftest.$ac_objext conftest$ac_exeext
16084 if { (ac_try="$ac_link"
16085 case "(($ac_try" in
16086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087 *) ac_try_echo=$ac_try;;
16089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16090 (eval "$ac_link") 2>conftest.er1
16092 grep -v '^ *+' conftest.er1 >conftest.err
16094 cat conftest.err >&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } &&
16097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16098 { (case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_try") 2>&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); }; } &&
16107 { ac_try='test -s conftest$ac_exeext'
16108 { (case "(($ac_try" in
16109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110 *) ac_try_echo=$ac_try;;
16112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16113 (eval "$ac_try") 2>&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; }; then
16117 ac_cv_lib_gcc___fixdfdi=yes
16119 echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16122 ac_cv_lib_gcc___fixdfdi=no
16125 rm -f core conftest.err conftest.$ac_objext \
16126 conftest$ac_exeext conftest.$ac_ext
16127 LIBS=$ac_check_lib_save_LIBS
16129 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16130 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16131 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16133 cat >>confdefs.h <<\_ACEOF
16134 #define HAVE___FIXDFDI 1
16139 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16140 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16141 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 ac_check_lib_save_LIBS=$LIBS
16146 cat >conftest.$ac_ext <<_ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h. */
16153 /* Override any GCC internal prototype to avoid an error.
16154 Use char because int might match the return type of a GCC
16155 builtin and then its argument prototype would still apply. */
16163 return __fixsfdi ();
16168 rm -f conftest.$ac_objext conftest$ac_exeext
16169 if { (ac_try="$ac_link"
16170 case "(($ac_try" in
16171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16172 *) ac_try_echo=$ac_try;;
16174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16175 (eval "$ac_link") 2>conftest.er1
16177 grep -v '^ *+' conftest.er1 >conftest.err
16179 cat conftest.err >&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } &&
16182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16183 { (case "(($ac_try" in
16184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16185 *) ac_try_echo=$ac_try;;
16187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16188 (eval "$ac_try") 2>&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; } &&
16192 { ac_try='test -s conftest$ac_exeext'
16193 { (case "(($ac_try" in
16194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16195 *) ac_try_echo=$ac_try;;
16197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16198 (eval "$ac_try") 2>&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; }; then
16202 ac_cv_lib_gcc___fixsfdi=yes
16204 echo "$as_me: failed program was:" >&5
16205 sed 's/^/| /' conftest.$ac_ext >&5
16207 ac_cv_lib_gcc___fixsfdi=no
16210 rm -f core conftest.err conftest.$ac_objext \
16211 conftest$ac_exeext conftest.$ac_ext
16212 LIBS=$ac_check_lib_save_LIBS
16214 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16215 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16216 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16218 cat >>confdefs.h <<\_ACEOF
16219 #define HAVE___FIXSFDI 1
16224 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16225 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16226 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16227 echo $ECHO_N "(cached) $ECHO_C" >&6
16229 ac_check_lib_save_LIBS=$LIBS
16231 cat >conftest.$ac_ext <<_ACEOF
16234 cat confdefs.h >>conftest.$ac_ext
16235 cat >>conftest.$ac_ext <<_ACEOF
16236 /* end confdefs.h. */
16238 /* Override any GCC internal prototype to avoid an error.
16239 Use char because int might match the return type of a GCC
16240 builtin and then its argument prototype would still apply. */
16244 char __floatdidf ();
16248 return __floatdidf ();
16253 rm -f conftest.$ac_objext conftest$ac_exeext
16254 if { (ac_try="$ac_link"
16255 case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_link") 2>conftest.er1
16262 grep -v '^ *+' conftest.er1 >conftest.err
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } &&
16267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16268 { (case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273 (eval "$ac_try") 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; } &&
16277 { ac_try='test -s conftest$ac_exeext'
16278 { (case "(($ac_try" in
16279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16280 *) ac_try_echo=$ac_try;;
16282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16283 (eval "$ac_try") 2>&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }; then
16287 ac_cv_lib_gcc___floatdidf=yes
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 ac_cv_lib_gcc___floatdidf=no
16295 rm -f core conftest.err conftest.$ac_objext \
16296 conftest$ac_exeext conftest.$ac_ext
16297 LIBS=$ac_check_lib_save_LIBS
16299 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16300 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16301 if test $ac_cv_lib_gcc___floatdidf = yes; then
16303 cat >>confdefs.h <<\_ACEOF
16304 #define HAVE___FLOATDIDF 1
16309 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16310 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16311 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16312 echo $ECHO_N "(cached) $ECHO_C" >&6
16314 ac_check_lib_save_LIBS=$LIBS
16316 cat >conftest.$ac_ext <<_ACEOF
16319 cat confdefs.h >>conftest.$ac_ext
16320 cat >>conftest.$ac_ext <<_ACEOF
16321 /* end confdefs.h. */
16323 /* Override any GCC internal prototype to avoid an error.
16324 Use char because int might match the return type of a GCC
16325 builtin and then its argument prototype would still apply. */
16333 return __lshrdi3 ();
16338 rm -f conftest.$ac_objext conftest$ac_exeext
16339 if { (ac_try="$ac_link"
16340 case "(($ac_try" in
16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342 *) ac_try_echo=$ac_try;;
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_link") 2>conftest.er1
16347 grep -v '^ *+' conftest.er1 >conftest.err
16349 cat conftest.err >&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } &&
16352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16353 { (case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_try") 2>&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } &&
16362 { ac_try='test -s conftest$ac_exeext'
16363 { (case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_try") 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 ac_cv_lib_gcc___lshrdi3=yes
16374 echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16377 ac_cv_lib_gcc___lshrdi3=no
16380 rm -f core conftest.err conftest.$ac_objext \
16381 conftest$ac_exeext conftest.$ac_ext
16382 LIBS=$ac_check_lib_save_LIBS
16384 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16385 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16386 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16388 cat >>confdefs.h <<\_ACEOF
16389 #define HAVE___LSHRDI3 1
16394 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16395 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16396 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16397 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 ac_check_lib_save_LIBS=$LIBS
16401 cat >conftest.$ac_ext <<_ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16408 /* Override any GCC internal prototype to avoid an error.
16409 Use char because int might match the return type of a GCC
16410 builtin and then its argument prototype would still apply. */
16418 return __moddi3 ();
16423 rm -f conftest.$ac_objext conftest$ac_exeext
16424 if { (ac_try="$ac_link"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_link") 2>conftest.er1
16432 grep -v '^ *+' conftest.er1 >conftest.err
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
16437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16438 { (case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_try") 2>&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; } &&
16447 { ac_try='test -s conftest$ac_exeext'
16448 { (case "(($ac_try" in
16449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450 *) ac_try_echo=$ac_try;;
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453 (eval "$ac_try") 2>&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; }; then
16457 ac_cv_lib_gcc___moddi3=yes
16459 echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16462 ac_cv_lib_gcc___moddi3=no
16465 rm -f core conftest.err conftest.$ac_objext \
16466 conftest$ac_exeext conftest.$ac_ext
16467 LIBS=$ac_check_lib_save_LIBS
16469 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16470 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16471 if test $ac_cv_lib_gcc___moddi3 = yes; then
16473 cat >>confdefs.h <<\_ACEOF
16474 #define HAVE___MODDI3 1
16479 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16480 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16481 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 ac_check_lib_save_LIBS=$LIBS
16486 cat >conftest.$ac_ext <<_ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16493 /* Override any GCC internal prototype to avoid an error.
16494 Use char because int might match the return type of a GCC
16495 builtin and then its argument prototype would still apply. */
16503 return __udivdi3 ();
16508 rm -f conftest.$ac_objext conftest$ac_exeext
16509 if { (ac_try="$ac_link"
16510 case "(($ac_try" in
16511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512 *) ac_try_echo=$ac_try;;
16514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515 (eval "$ac_link") 2>conftest.er1
16517 grep -v '^ *+' conftest.er1 >conftest.err
16519 cat conftest.err >&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); } &&
16522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16523 { (case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_try") 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; } &&
16532 { ac_try='test -s conftest$ac_exeext'
16533 { (case "(($ac_try" in
16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535 *) ac_try_echo=$ac_try;;
16537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538 (eval "$ac_try") 2>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 ac_cv_lib_gcc___udivdi3=yes
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16547 ac_cv_lib_gcc___udivdi3=no
16550 rm -f core conftest.err conftest.$ac_objext \
16551 conftest$ac_exeext conftest.$ac_ext
16552 LIBS=$ac_check_lib_save_LIBS
16554 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16555 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16556 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16558 cat >>confdefs.h <<\_ACEOF
16559 #define HAVE___UDIVDI3 1
16564 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16565 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16566 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 ac_check_lib_save_LIBS=$LIBS
16571 cat >conftest.$ac_ext <<_ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16578 /* Override any GCC internal prototype to avoid an error.
16579 Use char because int might match the return type of a GCC
16580 builtin and then its argument prototype would still apply. */
16588 return __umoddi3 ();
16593 rm -f conftest.$ac_objext conftest$ac_exeext
16594 if { (ac_try="$ac_link"
16595 case "(($ac_try" in
16596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_link") 2>conftest.er1
16602 grep -v '^ *+' conftest.er1 >conftest.err
16604 cat conftest.err >&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } &&
16607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16608 { (case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_try") 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; } &&
16617 { ac_try='test -s conftest$ac_exeext'
16618 { (case "(($ac_try" in
16619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620 *) ac_try_echo=$ac_try;;
16622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623 (eval "$ac_try") 2>&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; }; then
16627 ac_cv_lib_gcc___umoddi3=yes
16629 echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16632 ac_cv_lib_gcc___umoddi3=no
16635 rm -f core conftest.err conftest.$ac_objext \
16636 conftest$ac_exeext conftest.$ac_ext
16637 LIBS=$ac_check_lib_save_LIBS
16639 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16640 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16641 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16643 cat >>confdefs.h <<\_ACEOF
16644 #define HAVE___UMODDI3 1
16650 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16651 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16652 if test "${ac_cv_lib_gcc___main+set}" = set; then
16653 echo $ECHO_N "(cached) $ECHO_C" >&6
16655 ac_check_lib_save_LIBS=$LIBS
16657 cat >conftest.$ac_ext <<_ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h. */
16664 /* Override any GCC internal prototype to avoid an error.
16665 Use char because int might match the return type of a GCC
16666 builtin and then its argument prototype would still apply. */
16679 rm -f conftest.$ac_objext conftest$ac_exeext
16680 if { (ac_try="$ac_link"
16681 case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_link") 2>conftest.er1
16688 grep -v '^ *+' conftest.er1 >conftest.err
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } &&
16693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16694 { (case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_try") 2>&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; } &&
16703 { ac_try='test -s conftest$ac_exeext'
16704 { (case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_try") 2>&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; }; then
16713 ac_cv_lib_gcc___main=yes
16715 echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16718 ac_cv_lib_gcc___main=no
16721 rm -f core conftest.err conftest.$ac_objext \
16722 conftest$ac_exeext conftest.$ac_ext
16723 LIBS=$ac_check_lib_save_LIBS
16725 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16726 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16727 if test $ac_cv_lib_gcc___main = yes; then
16729 cat >>confdefs.h <<\_ACEOF
16730 #define HAVE___MAIN 1
16735 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16736 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16737 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16738 echo $ECHO_N "(cached) $ECHO_C" >&6
16740 ac_check_lib_save_LIBS=$LIBS
16742 cat >conftest.$ac_ext <<_ACEOF
16745 cat confdefs.h >>conftest.$ac_ext
16746 cat >>conftest.$ac_ext <<_ACEOF
16747 /* end confdefs.h. */
16749 /* Override any GCC internal prototype to avoid an error.
16750 Use char because int might match the return type of a GCC
16751 builtin and then its argument prototype would still apply. */
16759 return __cmpdi2 ();
16764 rm -f conftest.$ac_objext conftest$ac_exeext
16765 if { (ac_try="$ac_link"
16766 case "(($ac_try" in
16767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768 *) ac_try_echo=$ac_try;;
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771 (eval "$ac_link") 2>conftest.er1
16773 grep -v '^ *+' conftest.er1 >conftest.err
16775 cat conftest.err >&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } &&
16778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16779 { (case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_try") 2>&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; } &&
16788 { ac_try='test -s conftest$ac_exeext'
16789 { (case "(($ac_try" in
16790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791 *) ac_try_echo=$ac_try;;
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794 (eval "$ac_try") 2>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_cv_lib_gcc___cmpdi2=yes
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 ac_cv_lib_gcc___cmpdi2=no
16806 rm -f core conftest.err conftest.$ac_objext \
16807 conftest$ac_exeext conftest.$ac_ext
16808 LIBS=$ac_check_lib_save_LIBS
16810 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16811 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16812 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16814 cat >>confdefs.h <<\_ACEOF
16815 #define HAVE___CMPDI2 1
16822 if test "$llvm_cv_os_type" = "MingW" ; then
16823 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16824 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16825 cat >conftest.$ac_ext <<_ACEOF
16829 cat confdefs.h >>conftest.$ac_ext
16830 cat >>conftest.$ac_ext <<_ACEOF
16831 /* end confdefs.h. */
16833 #include <windows.h>
16834 #include <imagehlp.h>
16835 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16836 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16840 rm -f conftest.$ac_objext
16841 if { (ac_try="$ac_compile"
16842 case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847 (eval "$ac_compile") 2>conftest.er1
16849 grep -v '^ *+' conftest.er1 >conftest.err
16851 cat conftest.err >&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
16854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16855 { (case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_try") 2>&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; } &&
16864 { ac_try='test -s conftest.$ac_objext'
16865 { (case "(($ac_try" in
16866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867 *) ac_try_echo=$ac_try;;
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870 (eval "$ac_try") 2>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16875 { echo "$as_me:$LINENO: result: yes" >&5
16876 echo "${ECHO_T}yes" >&6; }
16877 llvm_cv_win32_elmcb_pcstr="PCSTR"
16880 echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16884 { echo "$as_me:$LINENO: result: no" >&5
16885 echo "${ECHO_T}no" >&6; }
16886 llvm_cv_win32_elmcb_pcstr="PSTR"
16890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16892 cat >>confdefs.h <<_ACEOF
16893 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16898 if test "$llvm_cv_platform_type" = "Unix" ; then
16901 for ac_header in stdlib.h unistd.h
16903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16910 ac_res=`eval echo '${'$as_ac_Header'}'`
16911 { echo "$as_me:$LINENO: result: $ac_res" >&5
16912 echo "${ECHO_T}$ac_res" >&6; }
16914 # Is the header compilable?
16915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16917 cat >conftest.$ac_ext <<_ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h. */
16923 $ac_includes_default
16924 #include <$ac_header>
16926 rm -f conftest.$ac_objext
16927 if { (ac_try="$ac_compile"
16928 case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_compile") 2>conftest.er1
16935 grep -v '^ *+' conftest.er1 >conftest.err
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16941 { (case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_try") 2>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; } &&
16950 { ac_try='test -s conftest.$ac_objext'
16951 { (case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956 (eval "$ac_try") 2>&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
16960 ac_header_compiler=yes
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ac_header_compiler=no
16968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16970 echo "${ECHO_T}$ac_header_compiler" >&6; }
16972 # Is the header present?
16973 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16975 cat >conftest.$ac_ext <<_ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16981 #include <$ac_header>
16983 if { (ac_try="$ac_cpp conftest.$ac_ext"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16991 grep -v '^ *+' conftest.er1 >conftest.err
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } >/dev/null; then
16996 if test -s conftest.err; then
16997 ac_cpp_err=$ac_c_preproc_warn_flag
16998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17005 if test -z "$ac_cpp_err"; then
17006 ac_header_preproc=yes
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17011 ac_header_preproc=no
17014 rm -f conftest.err conftest.$ac_ext
17015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17016 echo "${ECHO_T}$ac_header_preproc" >&6; }
17018 # So? What about this header?
17019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17025 ac_header_preproc=yes
17028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17035 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17041 ## ------------------------------------ ##
17042 ## Report this to http://llvm.org/bugs/ ##
17043 ## ------------------------------------ ##
17045 ) | sed "s/^/$as_me: WARNING: /" >&2
17048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 eval "$as_ac_Header=\$ac_header_preproc"
17055 ac_res=`eval echo '${'$as_ac_Header'}'`
17056 { echo "$as_me:$LINENO: result: $ac_res" >&5
17057 echo "${ECHO_T}$ac_res" >&6; }
17060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17061 cat >>confdefs.h <<_ACEOF
17062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17070 for ac_func in getpagesize
17072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17076 echo $ECHO_N "(cached) $ECHO_C" >&6
17078 cat >conftest.$ac_ext <<_ACEOF
17081 cat confdefs.h >>conftest.$ac_ext
17082 cat >>conftest.$ac_ext <<_ACEOF
17083 /* end confdefs.h. */
17084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17086 #define $ac_func innocuous_$ac_func
17088 /* System header to define __stub macros and hopefully few prototypes,
17089 which can conflict with char $ac_func (); below.
17090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17091 <limits.h> exists even on freestanding compilers. */
17094 # include <limits.h>
17096 # include <assert.h>
17101 /* Override any GCC internal prototype to avoid an error.
17102 Use char because int might match the return type of a GCC
17103 builtin and then its argument prototype would still apply. */
17108 /* The GNU C library defines this for functions which it implements
17109 to always fail with ENOSYS. Some functions are actually named
17110 something starting with __ and the normal name is an alias. */
17111 #if defined __stub_$ac_func || defined __stub___$ac_func
17118 return $ac_func ();
17123 rm -f conftest.$ac_objext conftest$ac_exeext
17124 if { (ac_try="$ac_link"
17125 case "(($ac_try" in
17126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130 (eval "$ac_link") 2>conftest.er1
17132 grep -v '^ *+' conftest.er1 >conftest.err
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } &&
17137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest$ac_exeext'
17148 { (case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_try") 2>&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 eval "$as_ac_var=yes"
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17162 eval "$as_ac_var=no"
17165 rm -f core conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext conftest.$ac_ext
17168 ac_res=`eval echo '${'$as_ac_var'}'`
17169 { echo "$as_me:$LINENO: result: $ac_res" >&5
17170 echo "${ECHO_T}$ac_res" >&6; }
17171 if test `eval echo '${'$as_ac_var'}'` = yes; then
17172 cat >>confdefs.h <<_ACEOF
17173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17179 { echo "$as_me:$LINENO: checking for working mmap" >&5
17180 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17181 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 if test "$cross_compiling" = yes; then
17185 ac_cv_func_mmap_fixed_mapped=no
17187 cat >conftest.$ac_ext <<_ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 $ac_includes_default
17194 /* malloc might have been renamed as rpl_malloc. */
17197 /* Thanks to Mike Haertel and Jim Avera for this test.
17198 Here is a matrix of mmap possibilities:
17199 mmap private not fixed
17200 mmap private fixed at somewhere currently unmapped
17201 mmap private fixed at somewhere already mapped
17202 mmap shared not fixed
17203 mmap shared fixed at somewhere currently unmapped
17204 mmap shared fixed at somewhere already mapped
17205 For private mappings, we should verify that changes cannot be read()
17206 back from the file, nor mmap's back from the file at a different
17207 address. (There have been systems where private was not correctly
17208 implemented like the infamous i386 svr4.0, and systems where the
17209 VM page cache was not coherent with the file system buffer cache
17210 like early versions of FreeBSD and possibly contemporary NetBSD.)
17211 For shared mappings, we should conversely verify that changes get
17212 propagated back to all the places they're supposed to be.
17214 Grep wants private fixed already mapped.
17215 The main things grep needs to know about mmap are:
17216 * does it exist and is it safe to write into the mmap'd area
17217 * how to use it (BSD variants) */
17220 #include <sys/mman.h>
17222 #if !STDC_HEADERS && !HAVE_STDLIB_H
17226 /* This mess was copied from the GNU getpagesize.h. */
17227 #if !HAVE_GETPAGESIZE
17228 /* Assume that all systems that can run configure have sys/param.h. */
17229 # if !HAVE_SYS_PARAM_H
17230 # define HAVE_SYS_PARAM_H 1
17233 # ifdef _SC_PAGESIZE
17234 # define getpagesize() sysconf(_SC_PAGESIZE)
17235 # else /* no _SC_PAGESIZE */
17236 # if HAVE_SYS_PARAM_H
17237 # include <sys/param.h>
17238 # ifdef EXEC_PAGESIZE
17239 # define getpagesize() EXEC_PAGESIZE
17240 # else /* no EXEC_PAGESIZE */
17242 # define getpagesize() NBPG * CLSIZE
17245 # endif /* no CLSIZE */
17246 # else /* no NBPG */
17248 # define getpagesize() NBPC
17249 # else /* no NBPC */
17251 # define getpagesize() PAGESIZE
17252 # endif /* PAGESIZE */
17253 # endif /* no NBPC */
17254 # endif /* no NBPG */
17255 # endif /* no EXEC_PAGESIZE */
17256 # else /* no HAVE_SYS_PARAM_H */
17257 # define getpagesize() 8192 /* punt totally */
17258 # endif /* no HAVE_SYS_PARAM_H */
17259 # endif /* no _SC_PAGESIZE */
17261 #endif /* no HAVE_GETPAGESIZE */
17266 char *data, *data2, *data3;
17270 pagesize = getpagesize ();
17272 /* First, make a file with some known garbage in it. */
17273 data = (char *) malloc (pagesize);
17276 for (i = 0; i < pagesize; ++i)
17277 *(data + i) = rand ();
17279 fd = creat ("conftest.mmap", 0600);
17282 if (write (fd, data, pagesize) != pagesize)
17286 /* Next, try to mmap the file at a fixed address which already has
17287 something else allocated at it. If we can, also make sure that
17288 we see the same garbage. */
17289 fd = open ("conftest.mmap", O_RDWR);
17292 data2 = (char *) malloc (2 * pagesize);
17295 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17296 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17297 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17299 for (i = 0; i < pagesize; ++i)
17300 if (*(data + i) != *(data2 + i))
17303 /* Finally, make sure that changes to the mapped area do not
17304 percolate back to the file as seen by read(). (This is a bug on
17305 some variants of i386 svr4.0.) */
17306 for (i = 0; i < pagesize; ++i)
17307 *(data2 + i) = *(data2 + i) + 1;
17308 data3 = (char *) malloc (pagesize);
17311 if (read (fd, data3, pagesize) != pagesize)
17313 for (i = 0; i < pagesize; ++i)
17314 if (*(data + i) != *(data3 + i))
17320 rm -f conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_link") 2>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17331 { (case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_try") 2>&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; }; then
17340 ac_cv_func_mmap_fixed_mapped=yes
17342 echo "$as_me: program exited with status $ac_status" >&5
17343 echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17346 ( exit $ac_status )
17347 ac_cv_func_mmap_fixed_mapped=no
17349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17354 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17355 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17356 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17358 cat >>confdefs.h <<\_ACEOF
17359 #define HAVE_MMAP 1
17363 rm -f conftest.mmap
17365 { echo "$as_me:$LINENO: checking for mmap of files" >&5
17366 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17367 if test "${ac_cv_func_mmap_file+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17371 ac_cpp='$CPP $CPPFLAGS'
17372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17376 if test "$cross_compiling" = yes; then
17377 ac_cv_func_mmap_file=no
17379 cat >conftest.$ac_ext <<_ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h. */
17387 #include <sys/types.h>
17388 #include <sys/mman.h>
17396 fd = creat ("foo",0777);
17397 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17399 return (fd != (int) MAP_FAILED);
17404 rm -f conftest$ac_exeext
17405 if { (ac_try="$ac_link"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_link") 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17415 { (case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_try") 2>&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; }; then
17424 ac_cv_func_mmap_file=yes
17426 echo "$as_me: program exited with status $ac_status" >&5
17427 echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17430 ( exit $ac_status )
17431 ac_cv_func_mmap_file=no
17433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17438 ac_cpp='$CPP $CPPFLAGS'
17439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17445 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17446 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17447 if test "$ac_cv_func_mmap_file" = yes; then
17449 cat >>confdefs.h <<\_ACEOF
17450 #define HAVE_MMAP_FILE
17457 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17458 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17459 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17460 echo $ECHO_N "(cached) $ECHO_C" >&6
17462 if test "$llvm_cv_os_type" = "Interix" ; then
17463 ac_cv_need_dev_zero_for_mmap=yes
17465 ac_cv_need_dev_zero_for_mmap=no
17469 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17470 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17471 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17473 cat >>confdefs.h <<\_ACEOF
17474 #define NEED_DEV_ZERO_FOR_MMAP 1
17479 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17481 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17482 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17484 if test "$ac_cv_func_mmap_file" = "no"
17486 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17487 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17491 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17492 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17494 ac_cpp='$CXXCPP $CPPFLAGS'
17495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17499 cat >conftest.$ac_ext <<_ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h. */
17508 volatile unsigned long val = 1;
17509 __sync_synchronize();
17510 __sync_val_compare_and_swap(&val, 1, 0);
17511 __sync_add_and_fetch(&val, 1);
17512 __sync_sub_and_fetch(&val, 1);
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (ac_try="$ac_link"
17520 case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_link") 2>conftest.er1
17527 grep -v '^ *+' conftest.er1 >conftest.err
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17533 { (case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_try") 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest$ac_exeext'
17543 { (case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_try") 2>&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17553 { echo "$as_me:$LINENO: result: yes" >&5
17554 echo "${ECHO_T}yes" >&6; }
17556 cat >>confdefs.h <<\_ACEOF
17557 #define LLVM_HAS_ATOMICS 1
17562 echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17566 { echo "$as_me:$LINENO: result: no" >&5
17567 echo "${ECHO_T}no" >&6; }
17569 cat >>confdefs.h <<\_ACEOF
17570 #define LLVM_HAS_ATOMICS 0
17573 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17574 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17578 rm -f core conftest.err conftest.$ac_objext \
17579 conftest$ac_exeext conftest.$ac_ext
17581 ac_cpp='$CPP $CPPFLAGS'
17582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17588 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17589 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17590 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17591 if test "${llvm_cv_linux_mixed+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17595 ac_cpp='$CPP $CPPFLAGS'
17596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17600 cat >conftest.$ac_ext <<_ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17607 error: Not x86-64 even if uname says so!
17618 rm -f conftest.$ac_objext
17619 if { (ac_try="$ac_compile"
17620 case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625 (eval "$ac_compile") 2>conftest.er1
17627 grep -v '^ *+' conftest.er1 >conftest.err
17629 cat conftest.err >&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } &&
17632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17633 { (case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_try") 2>&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; } &&
17642 { ac_try='test -s conftest.$ac_objext'
17643 { (case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648 (eval "$ac_try") 2>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 llvm_cv_linux_mixed=no
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 llvm_cv_linux_mixed=yes
17660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17662 ac_cpp='$CPP $CPPFLAGS'
17663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17669 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17670 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17672 if test "$llvm_cv_linux_mixed" = "yes"; then
17673 llvm_cv_target_arch="x86"
17679 for ac_func in __dso_handle
17681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17685 echo $ECHO_N "(cached) $ECHO_C" >&6
17687 cat >conftest.$ac_ext <<_ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h. */
17693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17695 #define $ac_func innocuous_$ac_func
17697 /* System header to define __stub macros and hopefully few prototypes,
17698 which can conflict with char $ac_func (); below.
17699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17700 <limits.h> exists even on freestanding compilers. */
17703 # include <limits.h>
17705 # include <assert.h>
17710 /* Override any GCC internal prototype to avoid an error.
17711 Use char because int might match the return type of a GCC
17712 builtin and then its argument prototype would still apply. */
17717 /* The GNU C library defines this for functions which it implements
17718 to always fail with ENOSYS. Some functions are actually named
17719 something starting with __ and the normal name is an alias. */
17720 #if defined __stub_$ac_func || defined __stub___$ac_func
17727 return $ac_func ();
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (ac_try="$ac_link"
17734 case "(($ac_try" in
17735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736 *) ac_try_echo=$ac_try;;
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739 (eval "$ac_link") 2>conftest.er1
17741 grep -v '^ *+' conftest.er1 >conftest.err
17743 cat conftest.err >&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } &&
17746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17747 { (case "(($ac_try" in
17748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749 *) ac_try_echo=$ac_try;;
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752 (eval "$ac_try") 2>&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try='test -s conftest$ac_exeext'
17757 { (case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_try") 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 eval "$as_ac_var=yes"
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17771 eval "$as_ac_var=no"
17774 rm -f core conftest.err conftest.$ac_objext \
17775 conftest$ac_exeext conftest.$ac_ext
17777 ac_res=`eval echo '${'$as_ac_var'}'`
17778 { echo "$as_me:$LINENO: result: $ac_res" >&5
17779 echo "${ECHO_T}$ac_res" >&6; }
17780 if test `eval echo '${'$as_ac_var'}'` = yes; then
17781 cat >>confdefs.h <<_ACEOF
17782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17789 SHLIBEXT=$llvm_shlib_ext
17792 if test "${prefix}" = "NONE" ; then
17793 prefix="/usr/local"
17795 eval LLVM_PREFIX="${prefix}";
17796 eval LLVM_BINDIR="${prefix}/bin";
17797 eval LLVM_DATADIR="${prefix}/share/llvm";
17798 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17799 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17800 eval LLVM_INCLUDEDIR="${prefix}/include";
17801 eval LLVM_INFODIR="${prefix}/info";
17802 eval LLVM_MANDIR="${prefix}/man";
17803 LLVM_CONFIGTIME=`date`
17814 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17815 LLVM_CONFIGTIME="(timestamp not enabled)"
17819 cat >>confdefs.h <<_ACEOF
17820 #define LLVM_PREFIX "$LLVM_PREFIX"
17824 cat >>confdefs.h <<_ACEOF
17825 #define LLVM_BINDIR "$LLVM_BINDIR"
17829 cat >>confdefs.h <<_ACEOF
17830 #define LLVM_DATADIR "$LLVM_DATADIR"
17834 cat >>confdefs.h <<_ACEOF
17835 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17839 cat >>confdefs.h <<_ACEOF
17840 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17844 cat >>confdefs.h <<_ACEOF
17845 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17849 cat >>confdefs.h <<_ACEOF
17850 #define LLVM_INFODIR "$LLVM_INFODIR"
17854 cat >>confdefs.h <<_ACEOF
17855 #define LLVM_MANDIR "$LLVM_MANDIR"
17859 cat >>confdefs.h <<_ACEOF
17860 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17864 cat >>confdefs.h <<_ACEOF
17865 #define LLVM_HOST_TRIPLE "$host"
17869 cat >>confdefs.h <<_ACEOF
17870 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17874 if test "$BINDINGS_TO_BUILD" = auto ; then
17875 BINDINGS_TO_BUILD=""
17876 if test "x$OCAMLFIND" != x ; then
17877 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17879 if test "x$GO" != x ; then
17880 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17881 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17885 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17888 binding_prereqs_failed=0
17889 for a_binding in $BINDINGS_TO_BUILD ; do
17890 case "$a_binding" in
17892 if test "x$OCAMLFIND" = x ; then
17893 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17894 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17895 binding_prereqs_failed=1
17898 if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17905 if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17906 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17907 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17908 binding_prereqs_failed=1
17911 if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17915 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17916 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17920 if test "x$with_ocaml_libdir" != xauto ; then
17921 OCAML_LIBDIR=$with_ocaml_libdir
17924 ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17925 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17927 # ocaml stdlib is beneath our prefix; use stdlib
17928 OCAML_LIBDIR=$ocaml_stdlib
17931 # ocaml stdlib is outside our prefix; use libdir/ocaml
17932 OCAML_LIBDIR=${prefix}/lib/ocaml
17938 if test "x$GO" = x ; then
17939 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17940 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17941 binding_prereqs_failed=1
17943 if $GO run ${srcdir}/bindings/go/conftest.go ; then
17946 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17947 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17948 binding_prereqs_failed=1
17954 if test "$binding_prereqs_failed" = 1 ; then
17955 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17956 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17957 { (exit 1); exit 1; }; }
17960 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17961 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17962 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17966 ac_cpp='$CXXCPP $CPPFLAGS'
17967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17971 oldcxxflags="$CXXFLAGS"
17972 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17973 cat >conftest.$ac_ext <<_ACEOF
17976 cat confdefs.h >>conftest.$ac_ext
17977 cat >>conftest.$ac_ext <<_ACEOF
17978 /* end confdefs.h. */
17979 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17988 rm -f conftest.$ac_objext
17989 if { (ac_try="$ac_compile"
17990 case "(($ac_try" in
17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995 (eval "$ac_compile") 2>conftest.er1
17997 grep -v '^ *+' conftest.er1 >conftest.err
17999 cat conftest.err >&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18003 { (case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_try") 2>&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; } &&
18012 { ac_try='test -s conftest.$ac_objext'
18013 { (case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_try") 2>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 llvm_cv_cxx_visibility_inlines_hidden=yes
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18027 llvm_cv_cxx_visibility_inlines_hidden=no
18030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18031 CXXFLAGS="$oldcxxflags"
18033 ac_cpp='$CPP $CPPFLAGS'
18034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18040 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18041 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18042 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18043 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18046 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18051 if test "$llvm_cv_link_use_r" = "yes" ; then
18058 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18059 RDYNAMIC="-rdynamic"
18066 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18073 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18075 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18077 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18079 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18081 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18084 ac_config_files="$ac_config_files Makefile.config"
18087 ac_config_files="$ac_config_files llvm.spec"
18090 ac_config_files="$ac_config_files docs/doxygen.cfg"
18093 if test "${clang_src_root}" = ""; then
18094 clang_src_root="$srcdir/tools/clang"
18096 if test -f ${clang_src_root}/README.txt; then
18098 cat >>confdefs.h <<_ACEOF
18099 #define CLANG_LIBDIR_SUFFIX ""
18103 configh="include/clang/Config/config.h"
18104 doxy="docs/doxygen.cfg"
18105 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18107 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18111 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18114 test "x$program_prefix" = "xNONE" && program_prefix=""
18118 ac_config_commands="$ac_config_commands setup"
18120 ac_config_commands="$ac_config_commands Makefile"
18123 ac_config_commands="$ac_config_commands Makefile.common"
18126 ac_config_commands="$ac_config_commands examples/Makefile"
18129 ac_config_commands="$ac_config_commands lib/Makefile"
18132 ac_config_commands="$ac_config_commands test/Makefile"
18135 ac_config_commands="$ac_config_commands test/Makefile.tests"
18138 ac_config_commands="$ac_config_commands unittests/Makefile"
18141 ac_config_commands="$ac_config_commands tools/Makefile"
18144 ac_config_commands="$ac_config_commands utils/Makefile"
18147 ac_config_commands="$ac_config_commands projects/Makefile"
18150 ac_config_commands="$ac_config_commands bindings/Makefile"
18153 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18157 cat >confcache <<\_ACEOF
18158 # This file is a shell script that caches the results of configure
18159 # tests run on this system so they can be shared between configure
18160 # scripts and configure runs, see configure's option --config-cache.
18161 # It is not useful on other systems. If it contains results you don't
18162 # want to keep, you may remove or edit it.
18164 # config.status only pays attention to the cache file if you give it
18165 # the --recheck option to rerun configure.
18167 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18168 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18169 # following values.
18173 # The following way of writing the cache mishandles newlines in values,
18174 # but we know of no workaround that is simple, portable, and efficient.
18175 # So, we kill variables containing newlines.
18176 # Ultrix sh set writes to stderr and can't be redirected directly,
18177 # and sets the high bit in the cache file unless we assign to the vars.
18179 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18180 eval ac_val=\$$ac_var
18184 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18185 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18188 _ | IFS | as_nl) ;; #(
18189 *) $as_unset $ac_var ;;
18195 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18196 *${as_nl}ac_space=\ *)
18197 # `set' does not quote correctly, so add quotes (double-quote
18198 # substitution turns \\\\ into \\, and sed turns \\ into \).
18201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18204 # `set' quotes correctly as required by POSIX, so do not add quotes.
18205 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18214 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18216 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18218 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18219 if test -w "$cache_file"; then
18220 test "x$cache_file" != "x/dev/null" &&
18221 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18222 echo "$as_me: updating cache $cache_file" >&6;}
18223 cat confcache >$cache_file
18225 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18226 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18231 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18232 # Let make expand exec_prefix.
18233 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18235 DEFS=-DHAVE_CONFIG_H
18239 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18240 # 1. Remove the extension, and $U if already installed.
18241 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18242 ac_i=`echo "$ac_i" | sed "$ac_script"`
18243 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18244 # will be set to the directory where LIBOBJS objects are built.
18245 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18246 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18248 LIBOBJS=$ac_libobjs
18250 LTLIBOBJS=$ac_ltlibobjs
18254 : ${CONFIG_STATUS=./config.status}
18255 ac_clean_files_save=$ac_clean_files
18256 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18257 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18258 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18259 cat >$CONFIG_STATUS <<_ACEOF
18261 # Generated by $as_me.
18262 # Run this file to recreate the current configuration.
18263 # Compiler output produced by configure, useful for debugging
18264 # configure, is in config.log if it exists.
18267 ac_cs_recheck=false
18269 SHELL=\${CONFIG_SHELL-$SHELL}
18272 cat >>$CONFIG_STATUS <<\_ACEOF
18273 ## --------------------- ##
18274 ## M4sh Initialization. ##
18275 ## --------------------- ##
18277 # Be Bourne compatible
18278 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18281 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18282 # is contrary to our usage. Disable this feature.
18283 alias -g '${1+"$@"}'='"$@"'
18284 setopt NO_GLOB_SUBST
18286 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18288 BIN_SH=xpg4; export BIN_SH # for Tru64
18289 DUALCASE=1; export DUALCASE # for MKS sh
18293 # Avoid depending upon Character Ranges.
18294 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18295 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18296 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18297 as_cr_digits='0123456789'
18298 as_cr_alnum=$as_cr_Letters$as_cr_digits
18300 # The user is always right.
18301 if test "${PATH_SEPARATOR+set}" != set; then
18302 echo "#! /bin/sh" >conf$$.sh
18303 echo "exit 0" >>conf$$.sh
18305 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18313 # Support unset when possible.
18314 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18322 # We need space, tab and new line, in precisely that order. Quoting is
18323 # there to prevent editors from complaining about space-tab.
18324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18325 # splitting by setting IFS to empty value.)
18330 # Find who we are. Look in the path if we contain no directory separator.
18332 *[\\/]* ) as_myself=$0 ;;
18333 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18334 for as_dir in $PATH
18337 test -z "$as_dir" && as_dir=.
18338 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18344 # We did not find ourselves, most probably we were run as `sh COMMAND'
18345 # in which case we are not to be found in the path.
18346 if test "x$as_myself" = x; then
18349 if test ! -f "$as_myself"; then
18350 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18351 { (exit 1); exit 1; }
18354 # Work around bugs in pre-3.0 UWIN ksh.
18355 for as_var in ENV MAIL MAILPATH
18356 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18364 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18365 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18366 LC_TELEPHONE LC_TIME
18368 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18369 eval $as_var=C; export $as_var
18371 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18375 # Required to use basename.
18376 if expr a : '\(a\)' >/dev/null 2>&1 &&
18377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18384 as_basename=basename
18390 # Name of the executable.
18391 as_me=`$as_basename -- "$0" ||
18392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18393 X"$0" : 'X\(//\)$' \| \
18394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18396 sed '/^.*\/\([^/][^/]*\)\/*$/{
18415 as_lineno_1=$LINENO
18416 as_lineno_2=$LINENO
18417 test "x$as_lineno_1" != "x$as_lineno_2" &&
18418 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18420 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18421 # uniformly replaced by the line number. The first 'sed' inserts a
18422 # line-number line after each line using $LINENO; the second 'sed'
18423 # does the real work. The second script uses 'N' to pair each
18424 # line-number line with the line containing $LINENO, and appends
18425 # trailing '-' during substitution so that $LINENO is not a special
18426 # case at line end.
18427 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18428 # scripts with optimization help from Paolo Bonzini. Blame Lee
18429 # E. McMahon (1931-1989) for sed's syntax. :-)
18441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18444 ' >$as_me.lineno &&
18445 chmod +x "$as_me.lineno" ||
18446 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18447 { (exit 1); exit 1; }; }
18449 # Don't try to exec as it changes $[0], causing all sort of problems
18450 # (the dirname of $[0] is not the place where we might find the
18451 # original and so on. Autoconf is especially sensitive to this).
18452 . "./$as_me.lineno"
18453 # Exit status is that of the last command.
18458 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18464 ECHO_C= ECHO_N= ECHO_T=
18465 case `echo -n x` in
18467 case `echo 'x\c'` in
18468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18475 if expr a : '\(a\)' >/dev/null 2>&1 &&
18476 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18482 rm -f conf$$ conf$$.exe conf$$.file
18483 if test -d conf$$.dir; then
18484 rm -f conf$$.dir/conf$$.file
18490 if ln -s conf$$.file conf$$ 2>/dev/null; then
18492 # ... but there are two gotchas:
18493 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18494 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18495 # In both cases, we have to default to `cp -p'.
18496 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18498 elif ln conf$$.file conf$$ 2>/dev/null; then
18503 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18504 rmdir conf$$.dir 2>/dev/null
18506 if mkdir -p . 2>/dev/null; then
18509 test -d ./-p && rmdir ./-p
18513 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18514 # systems may use methods other than mode bits to determine executability.
18515 cat >conf$$.file <<_ASEOF
18519 chmod +x conf$$.file
18520 if test -x conf$$.file >/dev/null 2>&1; then
18521 as_executable_p="test -x"
18527 # Sed expression to map a string onto a valid CPP name.
18528 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18530 # Sed expression to map a string onto a valid variable name.
18531 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18536 # Save the log message, to keep $[0] and so on meaningful, and to
18537 # report actual input values of CONFIG_FILES etc. instead of their
18538 # values after options handling.
18540 This file was extended by LLVM $as_me 3.7.0svn, which was
18541 generated by GNU Autoconf 2.60. Invocation command line was
18543 CONFIG_FILES = $CONFIG_FILES
18544 CONFIG_HEADERS = $CONFIG_HEADERS
18545 CONFIG_LINKS = $CONFIG_LINKS
18546 CONFIG_COMMANDS = $CONFIG_COMMANDS
18549 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18554 cat >>$CONFIG_STATUS <<_ACEOF
18555 # Files that config.status was made for.
18556 config_files="$ac_config_files"
18557 config_headers="$ac_config_headers"
18558 config_commands="$ac_config_commands"
18562 cat >>$CONFIG_STATUS <<\_ACEOF
18564 \`$as_me' instantiates files from templates according to the
18565 current configuration.
18567 Usage: $0 [OPTIONS] [FILE]...
18569 -h, --help print this help, then exit
18570 -V, --version print version number, then exit
18571 -q, --quiet do not print progress messages
18572 -d, --debug don't remove temporary files
18573 --recheck update $as_me by reconfiguring in the same conditions
18574 --file=FILE[:TEMPLATE]
18575 instantiate the configuration file FILE
18576 --header=FILE[:TEMPLATE]
18577 instantiate the configuration header FILE
18579 Configuration files:
18582 Configuration headers:
18585 Configuration commands:
18588 Report bugs to <bug-autoconf@gnu.org>."
18591 cat >>$CONFIG_STATUS <<_ACEOF
18593 LLVM config.status 3.7.0svn
18594 configured by $0, generated by GNU Autoconf 2.60,
18595 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18597 Copyright (C) 2006 Free Software Foundation, Inc.
18598 This config.status script is free software; the Free Software Foundation
18599 gives unlimited permission to copy, distribute and modify it."
18606 cat >>$CONFIG_STATUS <<\_ACEOF
18607 # If no file are specified by the user, then we need to provide default
18608 # value. By we need to know if files were specified by the user.
18614 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18615 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18626 # Handling of the options.
18627 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18629 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18630 echo "$ac_cs_version"; exit ;;
18631 --debug | --debu | --deb | --de | --d | -d )
18633 --file | --fil | --fi | --f )
18635 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18636 ac_need_defaults=false;;
18637 --header | --heade | --head | --hea )
18639 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18640 ac_need_defaults=false;;
18642 # Conflict between --help and --header
18643 { echo "$as_me: error: ambiguous option: $1
18644 Try \`$0 --help' for more information." >&2
18645 { (exit 1); exit 1; }; };;
18646 --help | --hel | -h )
18647 echo "$ac_cs_usage"; exit ;;
18648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18649 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18652 # This is an error.
18653 -*) { echo "$as_me: error: unrecognized option: $1
18654 Try \`$0 --help' for more information." >&2
18655 { (exit 1); exit 1; }; } ;;
18657 *) ac_config_targets="$ac_config_targets $1"
18658 ac_need_defaults=false ;;
18664 ac_configure_extra_args=
18666 if $ac_cs_silent; then
18668 ac_configure_extra_args="$ac_configure_extra_args --silent"
18672 cat >>$CONFIG_STATUS <<_ACEOF
18673 if \$ac_cs_recheck; then
18674 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18675 CONFIG_SHELL=$SHELL
18676 export CONFIG_SHELL
18677 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18681 cat >>$CONFIG_STATUS <<\_ACEOF
18685 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18686 ## Running $as_me. ##
18692 cat >>$CONFIG_STATUS <<_ACEOF
18696 llvm_src="${srcdir}"
18700 cat >>$CONFIG_STATUS <<\_ACEOF
18702 # Handling of arguments.
18703 for ac_config_target in $ac_config_targets
18705 case $ac_config_target in
18706 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18707 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18708 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18709 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18710 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18711 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18712 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18713 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18714 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18715 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18716 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18717 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18718 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18719 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18720 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18721 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18722 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18723 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18724 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18725 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18726 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18727 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18728 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18729 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18730 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18731 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18733 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18734 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18735 { (exit 1); exit 1; }; };;
18740 # If the user did not use the arguments to specify the items to instantiate,
18741 # then the envvar interface is used. Set only those that are not.
18742 # We use the long form for the default assignment because of an extremely
18743 # bizarre bug on SunOS 4.1.3.
18744 if $ac_need_defaults; then
18745 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18746 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18747 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18750 # Have a temporary directory for convenience. Make it in the build tree
18751 # simply because there is no reason against having it here, and in addition,
18752 # creating and moving files from /tmp can sometimes cause problems.
18753 # Hook for its removal unless debugging.
18754 # Note that there is a small window in which the directory will not be cleaned:
18755 # after its creation but before its name has been assigned to `$tmp'.
18759 trap 'exit_status=$?
18760 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18762 trap '{ (exit 1); exit 1; }' 1 2 13 15
18764 # Create a (secure) tmp directory for tmp files.
18767 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18768 test -n "$tmp" && test -d "$tmp"
18771 tmp=./conf$$-$RANDOM
18772 (umask 077 && mkdir "$tmp")
18775 echo "$me: cannot create a temporary directory in ." >&2
18776 { (exit 1); exit 1; }
18780 # Set up the sed scripts for CONFIG_FILES section.
18783 # No need to generate the scripts if there are no CONFIG_FILES.
18784 # This happens for instance when ./config.status config.h
18785 if test -n "$CONFIG_FILES"; then
18792 for ac_last_try in false false false false false :; do
18793 cat >conf$$subs.sed <<_ACEOF
18794 SHELL!$SHELL$ac_delim
18795 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18796 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18797 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18798 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18799 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18800 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18801 exec_prefix!$exec_prefix$ac_delim
18802 prefix!$prefix$ac_delim
18803 program_transform_name!$program_transform_name$ac_delim
18804 bindir!$bindir$ac_delim
18805 sbindir!$sbindir$ac_delim
18806 libexecdir!$libexecdir$ac_delim
18807 datarootdir!$datarootdir$ac_delim
18808 datadir!$datadir$ac_delim
18809 sysconfdir!$sysconfdir$ac_delim
18810 sharedstatedir!$sharedstatedir$ac_delim
18811 localstatedir!$localstatedir$ac_delim
18812 includedir!$includedir$ac_delim
18813 oldincludedir!$oldincludedir$ac_delim
18814 docdir!$docdir$ac_delim
18815 infodir!$infodir$ac_delim
18816 htmldir!$htmldir$ac_delim
18817 dvidir!$dvidir$ac_delim
18818 pdfdir!$pdfdir$ac_delim
18819 psdir!$psdir$ac_delim
18820 libdir!$libdir$ac_delim
18821 localedir!$localedir$ac_delim
18822 mandir!$mandir$ac_delim
18823 DEFS!$DEFS$ac_delim
18824 ECHO_C!$ECHO_C$ac_delim
18825 ECHO_N!$ECHO_N$ac_delim
18826 ECHO_T!$ECHO_T$ac_delim
18827 LIBS!$LIBS$ac_delim
18828 build_alias!$build_alias$ac_delim
18829 host_alias!$host_alias$ac_delim
18830 target_alias!$target_alias$ac_delim
18831 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18832 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18833 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18834 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18835 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18837 CFLAGS!$CFLAGS$ac_delim
18838 LDFLAGS!$LDFLAGS$ac_delim
18839 CPPFLAGS!$CPPFLAGS$ac_delim
18840 ac_ct_CC!$ac_ct_CC$ac_delim
18841 EXEEXT!$EXEEXT$ac_delim
18842 OBJEXT!$OBJEXT$ac_delim
18844 CXXFLAGS!$CXXFLAGS$ac_delim
18845 ac_ct_CXX!$ac_ct_CXX$ac_delim
18847 subdirs!$subdirs$ac_delim
18848 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18849 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18850 build!$build$ac_delim
18851 build_cpu!$build_cpu$ac_delim
18852 build_vendor!$build_vendor$ac_delim
18853 build_os!$build_os$ac_delim
18854 host!$host$ac_delim
18855 host_cpu!$host_cpu$ac_delim
18856 host_vendor!$host_vendor$ac_delim
18857 host_os!$host_os$ac_delim
18858 target!$target$ac_delim
18859 target_cpu!$target_cpu$ac_delim
18860 target_vendor!$target_vendor$ac_delim
18861 target_os!$target_os$ac_delim
18863 HOST_OS!$HOST_OS$ac_delim
18864 TARGET_OS!$TARGET_OS$ac_delim
18865 LINKALL!$LINKALL$ac_delim
18866 NOLINKALL!$NOLINKALL$ac_delim
18867 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18868 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18869 ARCH!$ARCH$ac_delim
18870 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18871 HOST_ARCH!$HOST_ARCH$ac_delim
18872 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18873 BUILD_CC!$BUILD_CC$ac_delim
18874 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18875 BUILD_CXX!$BUILD_CXX$ac_delim
18876 CVSBUILD!$CVSBUILD$ac_delim
18877 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18878 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18879 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18880 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18881 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18882 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18883 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18884 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18885 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18886 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18887 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18888 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18889 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18890 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18893 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18895 elif $ac_last_try; then
18896 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18897 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18898 { (exit 1); exit 1; }; }
18900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18904 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18905 if test -n "$ac_eof"; then
18906 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18907 ac_eof=`expr $ac_eof + 1`
18910 cat >>$CONFIG_STATUS <<_ACEOF
18911 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18915 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18916 s/^/s,@/; s/!/@,|#_!!_#|/
18919 s/'"$ac_delim"'$/,g/; t
18921 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18922 ' >>$CONFIG_STATUS <conf$$subs.sed
18923 rm -f conf$$subs.sed
18924 cat >>$CONFIG_STATUS <<_ACEOF
18930 for ac_last_try in false false false false false :; do
18931 cat >conf$$subs.sed <<_ACEOF
18932 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18933 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18935 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18936 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18937 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18938 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18939 enable_searchengine!$enable_searchengine$ac_delim
18940 enable_external_search!$enable_external_search$ac_delim
18941 enable_server_based_search!$enable_server_based_search$ac_delim
18942 searchengine_url!$searchengine_url$ac_delim
18943 extra_search_mappings!$extra_search_mappings$ac_delim
18944 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18945 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18946 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18947 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18948 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18949 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18950 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18951 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18952 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18953 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18954 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18955 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18956 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18957 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18958 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18959 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18960 ENABLE_PIC!$ENABLE_PIC$ac_delim
18961 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18962 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18963 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18964 ALL_TARGETS!$ALL_TARGETS$ac_delim
18965 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18966 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18967 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18968 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18969 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18970 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18971 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18972 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18973 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18974 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18975 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18976 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18977 ifGNUmake!$ifGNUmake$ac_delim
18978 LN_S!$LN_S$ac_delim
18982 DATE!$DATE$ac_delim
18983 FIND!$FIND$ac_delim
18984 GREP!$GREP$ac_delim
18985 MKDIR!$MKDIR$ac_delim
18987 RANLIB!$RANLIB$ac_delim
18992 BINPWD!$BINPWD$ac_delim
18994 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18995 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18996 INSTALL_DATA!$INSTALL_DATA$ac_delim
18997 BZIP2!$BZIP2$ac_delim
18999 DOXYGEN!$DOXYGEN$ac_delim
19000 GROFF!$GROFF$ac_delim
19001 GZIPBIN!$GZIPBIN$ac_delim
19002 PDFROFF!$PDFROFF$ac_delim
19005 OCAMLFIND!$OCAMLFIND$ac_delim
19007 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19008 EGREP!$EGREP$ac_delim
19009 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19010 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19011 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19012 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19013 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19014 NO_COMMENT!$NO_COMMENT$ac_delim
19015 PYTHON!$PYTHON$ac_delim
19016 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19017 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19018 USE_OPROFILE!$USE_OPROFILE$ac_delim
19019 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19020 XML2CONFIG!$XML2CONFIG$ac_delim
19021 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19022 LIBXML2_INC!$LIBXML2_INC$ac_delim
19023 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19024 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19025 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19026 MMAP_FILE!$MMAP_FILE$ac_delim
19027 SHLIBEXT!$SHLIBEXT$ac_delim
19028 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19031 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19033 elif $ac_last_try; then
19034 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19035 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19036 { (exit 1); exit 1; }; }
19038 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19042 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19043 if test -n "$ac_eof"; then
19044 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19045 ac_eof=`expr $ac_eof + 1`
19048 cat >>$CONFIG_STATUS <<_ACEOF
19049 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19053 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19054 s/^/s,@/; s/!/@,|#_!!_#|/
19057 s/'"$ac_delim"'$/,g/; t
19059 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19060 ' >>$CONFIG_STATUS <conf$$subs.sed
19061 rm -f conf$$subs.sed
19062 cat >>$CONFIG_STATUS <<_ACEOF
19068 for ac_last_try in false false false false false :; do
19069 cat >conf$$subs.sed <<_ACEOF
19070 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19071 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19072 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19073 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19074 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19075 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19076 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19077 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19078 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19079 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19080 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19081 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19082 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19083 RPATH!$RPATH$ac_delim
19084 RDYNAMIC!$RDYNAMIC$ac_delim
19085 program_prefix!$program_prefix$ac_delim
19086 LIBOBJS!$LIBOBJS$ac_delim
19087 LTLIBOBJS!$LTLIBOBJS$ac_delim
19090 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19092 elif $ac_last_try; then
19093 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19094 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19095 { (exit 1); exit 1; }; }
19097 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19101 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19102 if test -n "$ac_eof"; then
19103 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19104 ac_eof=`expr $ac_eof + 1`
19107 cat >>$CONFIG_STATUS <<_ACEOF
19108 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19112 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19113 s/^/s,@/; s/!/@,|#_!!_#|/
19116 s/'"$ac_delim"'$/,g/; t
19118 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19119 ' >>$CONFIG_STATUS <conf$$subs.sed
19120 rm -f conf$$subs.sed
19121 cat >>$CONFIG_STATUS <<_ACEOF
19128 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19129 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19130 # trailing colons and then remove the whole line if VPATH becomes empty
19131 # (actually we leave an empty line to preserve line numbers).
19132 if test "x$srcdir" = x.; then
19133 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19134 s/:*\$(srcdir):*/:/
19135 s/:*\${srcdir}:*/:/
19137 s/^\([^=]*=[ ]*\):*/\1/
19143 cat >>$CONFIG_STATUS <<\_ACEOF
19144 fi # test -n "$CONFIG_FILES"
19147 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19150 :[FHLC]) ac_mode=$ac_tag; continue;;
19152 case $ac_mode$ac_tag in
19154 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19155 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19156 { (exit 1); exit 1; }; };;
19157 :[FH]-) ac_tag=-:-;;
19158 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19175 -) ac_f="$tmp/stdin";;
19176 *) # Look for the file first in the build tree, then in the source tree
19177 # (if the path is not absolute). The absolute path cannot be DOS-style,
19178 # because $ac_f cannot contain `:'.
19182 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19184 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19185 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19186 { (exit 1); exit 1; }; };;
19188 ac_file_inputs="$ac_file_inputs $ac_f"
19191 # Let's still pretend it is `configure' which instantiates (i.e., don't
19192 # use $as_me), people would be surprised to read:
19193 # /* config.h. Generated by config.status. */
19194 configure_input="Generated from "`IFS=:
19195 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19196 if test x"$ac_file" != x-; then
19197 configure_input="$ac_file. $configure_input"
19198 { echo "$as_me:$LINENO: creating $ac_file" >&5
19199 echo "$as_me: creating $ac_file" >&6;}
19203 *:-:* | *:-) cat >"$tmp/stdin";;
19208 ac_dir=`$as_dirname -- "$ac_file" ||
19209 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19210 X"$ac_file" : 'X\(//\)[^/]' \| \
19211 X"$ac_file" : 'X\(//\)$' \| \
19212 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19218 /^X\(\/\/\)[^/].*/{
19233 -*) as_dir=./$as_dir;;
19235 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19239 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19240 *) as_qdir=$as_dir;;
19242 as_dirs="'$as_qdir' $as_dirs"
19243 as_dir=`$as_dirname -- "$as_dir" ||
19244 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19245 X"$as_dir" : 'X\(//\)[^/]' \| \
19246 X"$as_dir" : 'X\(//\)$' \| \
19247 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19253 /^X\(\/\/\)[^/].*/{
19266 test -d "$as_dir" && break
19268 test -z "$as_dirs" || eval "mkdir $as_dirs"
19269 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19270 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19271 { (exit 1); exit 1; }; }; }
19275 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19277 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19278 # A ".." for each directory in $ac_dir_suffix.
19279 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19280 case $ac_top_builddir_sub in
19281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19285 ac_abs_top_builddir=$ac_pwd
19286 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19287 # for backward compatibility:
19288 ac_top_builddir=$ac_top_build_prefix
19291 .) # We are building in place.
19293 ac_top_srcdir=$ac_top_builddir_sub
19294 ac_abs_top_srcdir=$ac_pwd ;;
19295 [\\/]* | ?:[\\/]* ) # Absolute name.
19296 ac_srcdir=$srcdir$ac_dir_suffix;
19297 ac_top_srcdir=$srcdir
19298 ac_abs_top_srcdir=$srcdir ;;
19299 *) # Relative name.
19300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19301 ac_top_srcdir=$ac_top_build_prefix$srcdir
19302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19304 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19315 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19319 cat >>$CONFIG_STATUS <<\_ACEOF
19320 # If the template does not know about datarootdir, expand it.
19321 # FIXME: This hack should be removed a few years after 2.60.
19322 ac_datarootdir_hack=; ac_datarootdir_seen=
19324 case `sed -n '/datarootdir/ {
19333 ' $ac_file_inputs` in
19334 *datarootdir*) ac_datarootdir_seen=yes;;
19335 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19336 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19337 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19339 cat >>$CONFIG_STATUS <<_ACEOF
19340 ac_datarootdir_hack='
19341 s&@datadir@&$datadir&g
19342 s&@docdir@&$docdir&g
19343 s&@infodir@&$infodir&g
19344 s&@localedir@&$localedir&g
19345 s&@mandir@&$mandir&g
19346 s&\\\${datarootdir}&$datarootdir&g' ;;
19350 # Neutralize VPATH when `$srcdir' = `.'.
19351 # Shell code in configure.ac might set extrasub.
19352 # FIXME: do we really want to maintain this feature?
19353 cat >>$CONFIG_STATUS <<_ACEOF
19357 cat >>$CONFIG_STATUS <<\_ACEOF
19359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19360 s&@configure_input@&$configure_input&;t t
19361 s&@top_builddir@&$ac_top_builddir_sub&;t t
19362 s&@srcdir@&$ac_srcdir&;t t
19363 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19364 s&@top_srcdir@&$ac_top_srcdir&;t t
19365 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19366 s&@builddir@&$ac_builddir&;t t
19367 s&@abs_builddir@&$ac_abs_builddir&;t t
19368 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19369 s&@INSTALL@&$ac_INSTALL&;t t
19370 $ac_datarootdir_hack
19371 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19373 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19374 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19375 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19376 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19377 which seems to be undefined. Please make sure it is defined." >&5
19378 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19379 which seems to be undefined. Please make sure it is defined." >&2;}
19383 -) cat "$tmp/out"; rm -f "$tmp/out";;
19384 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19393 # Transform confdefs.h into a sed script `conftest.defines', that
19394 # substitutes the proper values into config.h.in to produce config.h.
19395 rm -f conftest.defines conftest.tail
19396 # First, append a space to every undef/define line, to ease matching.
19397 echo 's/$/ /' >conftest.defines
19398 # Then, protect against being on the right side of a sed subst, or in
19399 # an unquoted here document, in config.status. If some macros were
19400 # called several times there might be several #defines for the same
19401 # symbol, which is useless. But do not sort them, since the last
19402 # AC_DEFINE must be honored.
19403 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19404 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19405 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19406 # PARAMS is the parameter list in the macro definition--in most cases, it's
19407 # just an empty string.
19408 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19409 ac_dB='\\)[ (].*,\\1define\\2'
19417 s/^[ ]*#[ ]*define[ ][ ]*//
19422 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19423 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19424 ' >>conftest.defines
19426 # Remove the space that was appended to ease matching.
19427 # Then replace #undef with comments. This is necessary, for
19428 # example, in the case of _POSIX_SOURCE, which is predefined and required
19429 # on some systems where configure will not decide to define it.
19430 # (The regexp can be short, since the line contains either #define or #undef.)
19432 s,^[ #]*u.*,/* & */,' >>conftest.defines
19434 # Break up conftest.defines:
19435 ac_max_sed_lines=50
19437 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19438 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19439 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19441 ac_in='$ac_file_inputs'
19442 ac_out='"$tmp/out1"'
19443 ac_nxt='"$tmp/out2"'
19447 # Write a here document:
19448 cat >>$CONFIG_STATUS <<_ACEOF
19449 # First, check the format of the line:
19450 cat >"\$tmp/defines.sed" <<\\CEOF
19451 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19452 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19456 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19458 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19459 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19460 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19461 grep . conftest.tail >/dev/null || break
19462 rm -f conftest.defines
19463 mv conftest.tail conftest.defines
19465 rm -f conftest.defines conftest.tail
19467 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19468 cat >>$CONFIG_STATUS <<\_ACEOF
19469 if test x"$ac_file" != x-; then
19470 echo "/* $configure_input */" >"$tmp/config.h"
19471 cat "$ac_result" >>"$tmp/config.h"
19472 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19473 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19474 echo "$as_me: $ac_file is unchanged" >&6;}
19477 mv "$tmp/config.h" $ac_file
19480 echo "/* $configure_input */"
19486 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19487 echo "$as_me: executing $ac_file commands" >&6;}
19492 case $ac_file$ac_mode in
19493 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19494 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19495 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19496 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19497 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19498 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19499 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19500 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19501 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19502 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19503 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19504 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19505 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19506 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19507 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19508 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19509 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19510 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19511 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19512 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19513 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19514 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19515 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19516 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19522 { (exit 0); exit 0; }
19524 chmod +x $CONFIG_STATUS
19525 ac_clean_files=$ac_clean_files_save
19528 # configure is writing to config.log, and then calls config.status.
19529 # config.status does its own redirection, appending to config.log.
19530 # Unfortunately, on DOS this fails, as config.log is still kept open
19531 # by configure, so config.status won't be able to write to it; its
19532 # output is simply discarded. So we exec the FD to /dev/null,
19533 # effectively closing config.log, so it can be properly (re)opened and
19534 # appended to by config.status. When coming back to configure, we
19535 # need to make the FD available again.
19536 if test "$no_create" != yes; then
19538 ac_config_status_args=
19539 test "$silent" = yes &&
19540 ac_config_status_args="$ac_config_status_args --quiet"
19542 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19544 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19545 # would make configure fail if this is the last instruction.
19546 $ac_cs_success || { (exit 1); exit 1; }
19550 # CONFIG_SUBDIRS section.
19552 if test "$no_recursion" != yes; then
19554 # Remove --cache-file and --srcdir arguments so they do not pile up.
19555 ac_sub_configure_args=
19557 eval "set x $ac_configure_args"
19561 if test -n "$ac_prev"; then
19566 -cache-file | --cache-file | --cache-fil | --cache-fi \
19567 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19568 ac_prev=cache_file ;;
19569 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19570 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19573 --config-cache | -C)
19575 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19577 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19579 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19581 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19585 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19587 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19591 # Always prepend --prefix to ensure using the same prefix
19592 # in subdir configurations.
19593 ac_arg="--prefix=$prefix"
19595 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19597 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19600 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19602 # Do not complain, so a configure script can configure whichever
19603 # parts of a large source tree are present.
19604 test -d "$srcdir/$ac_dir" || continue
19606 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19607 echo "$as_me:$LINENO: $ac_msg" >&5
19611 -*) as_dir=./$as_dir;;
19613 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19617 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19618 *) as_qdir=$as_dir;;
19620 as_dirs="'$as_qdir' $as_dirs"
19621 as_dir=`$as_dirname -- "$as_dir" ||
19622 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19623 X"$as_dir" : 'X\(//\)[^/]' \| \
19624 X"$as_dir" : 'X\(//\)$' \| \
19625 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19631 /^X\(\/\/\)[^/].*/{
19644 test -d "$as_dir" && break
19646 test -z "$as_dirs" || eval "mkdir $as_dirs"
19647 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19648 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19649 { (exit 1); exit 1; }; }; }
19653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19655 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19656 # A ".." for each directory in $ac_dir_suffix.
19657 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19658 case $ac_top_builddir_sub in
19659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19663 ac_abs_top_builddir=$ac_pwd
19664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19665 # for backward compatibility:
19666 ac_top_builddir=$ac_top_build_prefix
19669 .) # We are building in place.
19671 ac_top_srcdir=$ac_top_builddir_sub
19672 ac_abs_top_srcdir=$ac_pwd ;;
19673 [\\/]* | ?:[\\/]* ) # Absolute name.
19674 ac_srcdir=$srcdir$ac_dir_suffix;
19675 ac_top_srcdir=$srcdir
19676 ac_abs_top_srcdir=$srcdir ;;
19677 *) # Relative name.
19678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19679 ac_top_srcdir=$ac_top_build_prefix$srcdir
19680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19687 # Check for guested configure; otherwise get Cygnus style configure.
19688 if test -f "$ac_srcdir/configure.gnu"; then
19689 ac_sub_configure=$ac_srcdir/configure.gnu
19690 elif test -f "$ac_srcdir/configure"; then
19691 ac_sub_configure=$ac_srcdir/configure
19692 elif test -f "$ac_srcdir/configure.in"; then
19693 # This should be Cygnus configure.
19694 ac_sub_configure=$ac_aux_dir/configure
19696 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19697 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19701 # The recursion is here.
19702 if test -n "$ac_sub_configure"; then
19703 # Make the cache file name correct relative to the subdirectory.
19704 case $cache_file in
19705 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19706 *) # Relative name.
19707 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19710 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19711 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19712 # The eval makes quoting arguments work.
19713 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19714 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19715 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19716 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19717 { (exit 1); exit 1; }; }